/* -------------------------------------------------------------
   ARSTM MAIN STYLE SHEET
   Color Palette: Deep Blue, Maritime Light Blue, Vibrant Orange
---------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --primary-dark: #0F2C59;
  --primary-medium: #1E40AF;
  --primary-light: #38BDF8;
  --accent-orange: #F26419;
  --accent-orange-hover: #D84E0C;
  --text-dark: #1F2937;
  --text-muted: #4B5563;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.9);
  --border-color: #E2E8F0;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-full: 9999px;
  
  --max-width: 1280px;
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* --- UTILITIES --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 0;
}

.text-center { text-align: center; }
.reveal {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(4px);
  will-change: transform, opacity, filter;
}

/* Variations directionnelles premium */
.reveal.reveal-up {
  transform: translateY(40px);
}

.reveal.reveal-down {
  transform: translateY(-40px);
}

.reveal.reveal-left {
  transform: translateX(-40px);
}

.reveal.reveal-right {
  transform: translateX(40px);
}

.reveal.reveal-scale {
  transform: scale(0.92) translateY(15px);
}

.reveal.reveal-rotate {
  transform: scale(0.96) rotate(-2deg) translateY(20px);
}

.reveal.reveal-flip {
  transform: perspective(800px) rotateX(12deg) translateY(20px);
}

/* État Actif */
.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1) rotate(0) rotateX(0);
  filter: blur(0);
}


.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--border-radius-full);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.badge-orange { background: rgba(242,100,25,0.1); color: var(--accent-orange); }
.badge-blue { background: rgba(56,189,248,0.1); color: var(--primary-dark); }

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 32, 70, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--transition-medium), box-shadow var(--transition-medium);
}
header.sticky {
  box-shadow: 0 4px 28px rgba(0,0,0,0.35);
  background: #0a1f45;
}

/* TOP BAR */
.header-topbar {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.4rem 0;
  background: rgba(0,0,0,0.15);
}
.header-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 92%; max-width: var(--max-width);
  margin: 0 auto;
  gap: 1rem;
}
.topbar-left {
  display: flex; gap: 1.5rem;
}
.topbar-right {
  display: flex; align-items: center; gap: 1rem;
}
.topbar-item {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; color: rgba(255,255,255,0.55);
}
.topbar-item i { color: var(--accent-orange); font-size: 0.65rem; }
.lang-select {
  background: rgba(255,255,255,0.07);
  color: var(--bg-white);
  padding: 0.2rem 0.55rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer; font-weight: 700; font-size: 0.75rem;
}
.lang-select option { background: #0a1f45; }

/* MAIN NAV ROW */
.header-main { padding: 0.65rem 0; transition: padding var(--transition-medium); }
header.sticky .header-main { padding: 0.35rem 0; }
.header-container {
  display: flex; justify-content: space-between; align-items: center;
  width: 92%; max-width: var(--max-width); margin: 0 auto;
  gap: 1.5rem;
}

/* LOGO */
.logo-link {
  display: flex; align-items: center; gap: 0.9rem;
  flex-shrink: 0; text-decoration: none;
}
.logo-img {
  height: 54px; width: auto;
  transition: height var(--transition-medium);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45));
}
header.sticky .logo-img { height: 40px; }
.logo-text-block { display: flex; flex-direction: column; gap: 1px; }
.logo-acronym {
  color: #fff; font-family: var(--font-title); font-weight: 800;
  font-size: 1.45rem; letter-spacing: 0.06em; line-height: 1;
}
.logo-fullname {
  font-size: 0.56rem; font-weight: 400; letter-spacing: 0.07em;
  color: var(--primary-light); line-height: 1.35; max-width: 230px;
}
.logo-tagline {
  font-size: 0.58rem; color: var(--accent-orange); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* NAV MENU */
.nav-menu {
  display: flex; align-items: center; gap: 0;
  flex: 1; justify-content: center;
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 0.28rem;
  color: rgba(255,255,255,0.78); font-size: 0.855rem; font-weight: 500;
  padding: 0.55rem 0.85rem; border-radius: var(--border-radius-sm);
  white-space: nowrap; transition: all var(--transition-fast);
  position: relative; cursor: pointer;
}
.nav-arrow { font-size: 0.6rem; color: rgba(255,255,255,0.4); transition: transform var(--transition-fast); }
.nav-item:hover > .nav-link { color: #fff; background: rgba(255,255,255,0.07); }
.nav-item:hover > .nav-link .nav-arrow { transform: rotate(180deg); }
.nav-link.active { color: #fff; }
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; background: var(--accent-orange); border-radius: 2px;
}

/* DROPDOWN — supporte hover sur desktop, clic sur mobile/touch */
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #0c2040;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid var(--accent-orange);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  min-width: 255px; padding: 0.4rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1200;
}
/* Ouverture desktop : contrôlée par hover ET par JS via .open */
.nav-item:hover > .dropdown-menu,
.nav-item.open > .dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu.align-right { left: auto; right: 0; transform: translateY(-6px); }
.nav-item:hover > .dropdown-menu.align-right,
.nav-item.open > .dropdown-menu.align-right { transform: translateY(0); }
.dropdown-label {
  padding: 0.45rem 0.7rem 0.2rem;
  font-size: 0.63rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--accent-orange); opacity: 0.8;
}
.dropdown-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 0.35rem 0.4rem; }
.dropdown-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.8rem; border-radius: 6px;
  color: rgba(255,255,255,0.75); font-size: 0.86rem; font-weight: 500;
  transition: all 0.15s ease; text-decoration: none;
}
.dropdown-item i { width: 16px; text-align: center; color: var(--primary-light); font-size: 0.85rem; flex-shrink: 0; transition: color 0.15s; }
.dropdown-item:hover { background: rgba(242,100,25,0.13); color: #fff; }
.dropdown-item:hover i { color: var(--accent-orange); }
.dropdown-sub { font-size: 0.73rem; color: rgba(255,255,255,0.38); display: block; margin-top: 1px; }

/* CTA & ACTIONS */
.nav-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.btn-header-cta {
  background: var(--accent-orange); color: #fff;
  padding: 0.5rem 1rem; font-weight: 700; font-size: 0.8rem;
  border-radius: var(--border-radius-sm); white-space: nowrap;
  display: flex; align-items: center; gap: 0.35rem;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-header-cta:hover { background: var(--accent-orange-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(242,100,25,0.4); }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1100; padding: 4px; }
.hamburger span { display: block; width: 23px; height: 2.5px; background: #fff; border-radius: 3px; transition: var(--transition-medium); transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }




/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-medium);
  text-align: center;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary-dark);
  color: var(--bg-white);
}
.btn-primary:hover {
  background: var(--primary-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--accent-orange);
  color: var(--bg-white);
}
.btn-accent:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-secondary:hover {
  background: var(--primary-dark);
  color: var(--bg-white);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--bg-white);
  border-color: var(--bg-white);
}
.btn-outline-white:hover {
  background: var(--bg-white);
  color: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  background: linear-gradient(135deg, rgba(15,44,89,0.6) 0%, rgba(15,44,89,0.45) 100%), url('../assets/image/heromer.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: var(--bg-white);
  padding-top: 80px;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-baseline {
  font-size: 1.5rem;
  color: var(--accent-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.hero-title {
  font-size: 3.5rem;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.hero-desc {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}


/* --- PAGE HERO (Subpages) --- */
.page-hero {
  height: 45vh;
  min-height: 300px;
  background: linear-gradient(135deg, rgba(15,44,89,0.95) 0%, rgba(30,64,175,0.85) 100%), url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--bg-white);
  padding-top: 80px;
}
.page-hero-title {
  font-size: 2.75rem;
  color: var(--bg-white);
  margin-bottom: 0.5rem;
}
.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.breadcrumbs a:hover {
  color: var(--accent-orange);
}
.breadcrumbs span {
  color: var(--primary-light);
}

/* --- SECTION GENERAL STYLES --- */
.section-title-wrapper {
  margin-bottom: 3.5rem;
}
.section-subtitle {
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}
.section-title {
  font-size: 2.25rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-orange);
  border-radius: 2px;
}
.section-title-wrapper.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* --- CARDS & GRID LAYOUTS --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  align-items: center;
}

.school-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}
.school-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}
.school-card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.school-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.school-card:hover .school-card-img {
  transform: scale(1.1);
}
.school-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-dark);
  color: var(--bg-white);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
}
.school-card-content {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.school-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}
.school-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* --- STATS SECTION --- */
.stats-bar {
  background: var(--primary-dark);
  color: var(--bg-white);
  padding: 4rem 0;
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-size: 3.5rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* --- TESTIMONIALS SLIDER --- */
.testimonials-section {
  background: #EEF2F6;
}
.testimonial-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  margin-bottom: 2rem;
}
.testimonial-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  position: relative;
}
.testimonial-quote::before {
  content: '“';
  font-size: 4rem;
  color: rgba(242,100,25,0.15);
  position: absolute;
  top: -2rem;
  left: -1rem;
  line-height: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-full);
  object-fit: cover;
}
.testimonial-name {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
}
.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- PARTENAIRES (INFINITE LOGO TICKER) --- */
.partners-marquee-container {
  overflow: hidden;
  width: 100%;
  padding: 2.5rem 0;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}
.partners-marquee-inner {
  display: flex;
  width: max-content;
  animation: partnersTicker 25s linear infinite;
}
.partners-marquee-inner:hover {
  animation-play-state: paused;
}
.partners-slide {
  display: flex;
  align-items: center;
  gap: 5.5rem;
  padding-right: 5.5rem;
}
.partner-logo {
  height: 75px; /* Augmenté de 50px à 75px pour une excellente visibilité */
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.9);
  opacity: 0.65;
  transition: all var(--transition-fast);
}
.partner-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.1);
  cursor: pointer;
}

@keyframes partnersTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* --- TABS SYSTEM --- */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}
.tab-btn.active, .tab-btn:hover {
  color: var(--bg-white);
  background: var(--primary-dark);
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
  animation: fadeIn var(--transition-medium) forwards;
}

/* --- FORM CONTROLS --- */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  color: var(--text-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.25);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* File Upload custom styling */
.file-upload {
  position: relative;
  display: inline-block;
  width: 100%;
}
.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  text-align: center;
  background: rgba(255,255,255,0.5);
}
.file-upload-label:hover {
  border-color: var(--primary-light);
}
.file-upload input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* --- FAQ ACCORDION --- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: var(--primary-dark);
}
.faq-header i {
  transition: transform var(--transition-medium);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium), padding var(--transition-medium);
  padding: 0 1.5rem;
  color: var(--text-muted);
}
.faq-item.active .faq-header i {
  transform: rotate(180deg);
}
.faq-item.active .faq-body {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-dark);
  color: var(--bg-white);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform var(--transition-medium), opacity var(--transition-medium);
  display: flex;
  align-items: center;
}
.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.toast-success {
  border-left: 4px solid var(--accent-orange);
}

/* --- BACK TO TOP BUTTON --- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--accent-orange);
  color: var(--bg-white);
  width: 45px;
  height: 45px;
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-medium);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--accent-orange-hover);
  transform: scale(1.1);
}

/* --- FOOTER --- */
footer {
  background: #081B37;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--accent-orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col-title {
  color: var(--bg-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-orange);
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a:hover {
  color: var(--bg-white);
  padding-left: 5px;
}
.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer-social-link {
  width: 35px;
  height: 35px;
  border-radius: var(--border-radius-full);
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  transition: all var(--transition-fast);
}
.footer-social-link:hover {
  background: var(--accent-orange);
  transform: translateY(-3px);
}
.newsletter-form {
  display: flex;
  margin-top: 1rem;
}
.newsletter-form .form-control {
  border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
  border: none;
}
.newsletter-btn {
  background: var(--accent-orange);
  color: var(--bg-white);
  padding: 0 1rem;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  font-weight: 700;
  transition: background var(--transition-fast);
}
.newsletter-btn:hover {
  background: var(--accent-orange-hover);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* --- MODULE COMMERCE & DIPLOME & MAP --- */
.map-container {
  height: 450px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
  z-index: 1;
}
/* --- ANIMATION FLOATING POUR GRAPHES --- */
@keyframes floatChart {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.chart-card {
  background: var(--bg-white);
  padding: 1.75rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary-medium);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
  will-change: transform, box-shadow;
}

.chart-card:nth-child(2) {
  border-top-color: var(--accent-orange);
}

.chart-card:nth-child(3) {
  border-top-color: var(--primary-dark);
}

.chart-card-float-1 {
  animation: floatChart 6s ease-in-out infinite;
}
.chart-card-float-2 {
  animation: floatChart 6s ease-in-out infinite;
  animation-delay: 1.8s;
}
.chart-card-float-3 {
  animation: floatChart 6s ease-in-out infinite;
  animation-delay: 3.6s;
}

.chart-card:hover {
  animation-play-state: paused;
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(242, 100, 25, 0.4);
}

.chart-card-title {
  color: var(--primary-dark);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 700;
  transition: color var(--transition-fast);
}

.chart-card:hover .chart-card-title {
  color: var(--accent-orange);
}

.chart-container {
  position: relative;
  height: 300px;
}

.chart-container canvas {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Pivoter le doughnut spécifique au survol de sa carte */
.chart-card:hover #provenanceChart {
  transform: rotate(15deg) scale(1.02);
}

/* Cart & Checkout Panel */
.cart-summary-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: sticky;
  top: 100px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}
.cart-item-info h4 {
  font-size: 0.95rem;
  color: var(--primary-dark);
}
.cart-item-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cart-remove-btn {
  color: #EF4444;
  font-size: 0.85rem;
  background: none;
  border: none;
  cursor: pointer;
}
.cart-remove-btn:hover {
  text-decoration: underline;
}

/* Modale de Paiement Sécurisé Fictif */
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  backdrop-filter: blur(5px);
}
.payment-modal.active {
  display: flex;
  animation: fadeIn var(--transition-fast) forwards;
}
.payment-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  border-top: 6px solid var(--primary-medium);
}
.payment-header {
  background: var(--primary-dark);
  color: var(--bg-white);
  padding: 1.5rem;
  position: relative;
}
.payment-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--bg-white);
  font-size: 1.25rem;
  cursor: pointer;
  background: none;
  border: none;
}
.payment-body {
  padding: 2rem;
}
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.payment-method-btn {
  border: 2px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  text-align: center;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.payment-method-btn.active {
  border-color: var(--accent-orange);
  background: rgba(242,100,25,0.05);
}
.payment-method-btn img {
  height: 30px;
  margin: 0 auto 0.5rem;
}

/* Verification Tool styling */
.diploma-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}
.diploma-result {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--border-radius-md);
  display: none;
  animation: fadeIn var(--transition-fast) forwards;
}
.diploma-result.success {
  display: block;
  background: rgba(16,185,129,0.1);
  border: 1px solid #10B981;
  color: #065F46;
}
.diploma-result.error {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid #EF4444;
  color: #991B1B;
}

/* Virtual Tour Hotspots */
.tour-container {
  position: relative;
  background: #000;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 500px;
}
.tour-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--accent-orange);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 0.75rem;
  font-weight: bold;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(242,100,25,0.7);
}
.hotspot:hover .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
}
.hotspot-tooltip {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-dark);
  color: var(--bg-white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  z-index: 10;
}
.hotspot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--primary-dark);
}

/* --- KEYFRAMES --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242,100,25,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(242,100,25,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,100,25,0); }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
/* --- RESPONSIVE MEDIA QUERIES --- */
/* MOBILE NAV OVERLAY */
.nav-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 990; opacity: 0; visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
}
.nav-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

@media (max-width: 1100px) {
  html { font-size: 15px; }
  .header-topbar { display: none; }
  .btn-header-cta { display: none !important; }
  .hamburger { display: flex; }

  /* ===== PANNEAU MENU MOBILE REDESIGNÉ ===== */
  .nav-menu {
    display: none;
    position: fixed; top: 0; right: 0;
    width: 320px; height: 100dvh;
    background: linear-gradient(180deg, #061630 0%, #0a2040 100%);
    padding: 0;
    flex-direction: column;
    align-items: stretch; gap: 0;
    z-index: 1050; overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -12px 0 48px rgba(0,0,0,0.6);
  }
  .nav-menu.active { display: flex; animation: slideInRight var(--transition-medium) forwards; }

  /* En-tête du menu mobile */
  .nav-menu::before {
    content: 'MENU';
    display: block;
    padding: 5.5rem 1.5rem 1rem;
    font-family: var(--font-title);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--accent-orange);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 0.5rem;
  }

  .nav-item { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }

  /* Liens de navigation principaux — police TRÈS grande et blanche */
  .nav-link {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.25rem !important;
    font-weight: 700;
    color: #ffffff !important;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.02em;
    transition: background var(--transition-fast), color var(--transition-fast);
  }
  .nav-link:hover { background: rgba(255,255,255,0.06); color: #fff !important; }
  .nav-link.active { background: rgba(242,100,25,0.1); color: #fff !important; }
  .nav-link.active::after { display: none; }

  /* Flèche accordéon visible */
  .nav-arrow {
    font-size: 0.9rem !important;
    color: rgba(255,255,255,0.5) !important;
    transition: transform var(--transition-fast);
    margin-left: auto;
  }
  .nav-item.open > .nav-link .nav-arrow { transform: rotate(180deg); color: var(--accent-orange) !important; }

  /* Item ouvert : highlight orange */
  .nav-item.open > .nav-link {
    background: rgba(242,100,25,0.15);
    color: #ffffff !important;
    border-left: 3px solid var(--accent-orange);
  }

  /* ===== SOUS-MENUS ACCORDÉON ===== */
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    background: rgba(0,0,0,0.3) !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 0 !important;
    display: none !important;
    margin: 0 !important;
    min-width: unset !important;
    padding: 0.5rem 0 !important;
  }
  .nav-item.open > .dropdown-menu { 
    display: block !important; 
    animation: fadeIn 0.25s ease forwards !important; 
  }

  /* Labels de catégorie dans les sous-menus */
  .dropdown-label {
    padding: 0.8rem 1.75rem 0.4rem 2.2rem;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-orange);
    opacity: 1;
  }

  /* Items des sous-menus — police plus grande et bien lisibles */
  .dropdown-item {
    padding: 0.9rem 1.75rem 0.9rem 2.2rem;
    font-size: 1.12rem !important;
    font-weight: 600;
    color: #ffffff !important;
    border-radius: 0;
    border-left: none;
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }
  .dropdown-item i {
    color: var(--accent-orange) !important;
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
  }
  .dropdown-item:hover {
    background: rgba(242,100,25,0.12);
    color: #fff !important;
    padding-left: 2.5rem;
  }
  .dropdown-sub {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65) !important;
    display: block;
    margin-top: 3px;
    font-weight: 400;
  }
  .dropdown-sep { height: 1px; background: rgba(255,255,255,0.07); margin: 0.3rem 1.25rem; }

  /* Bouton S'inscrire au Concours pour menu mobile */
  .mobile-menu-cta {
    width: 100%;
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .btn-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: var(--accent-orange);
    color: #fff;
    padding: 0.9rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(242, 100, 25, 0.35);
    transition: all var(--transition-fast);
  }
  .btn-mobile-cta:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 100, 25, 0.5);
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}


@media (max-width: 768px) {
  html { font-size: 14px; }
  .hero-title { font-size: 2.4rem; }
  .hero-desc { font-size: 1.05rem; }
  .page-hero-title { font-size: 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .logo-fullname, .logo-tagline { display: none; }
  .logo-acronym { font-size: 1.2rem; }
  .logo-img { height: 42px; }
  header.sticky .logo-img { height: 34px; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* --- PRELOADER & PAGE TRANSITIONS --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, var(--primary-dark) 0%, #061630 100%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.preloader-logo-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-logo {
  width: 100px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 0 15px rgba(242, 100, 25, 0.3));
  animation: logoPulse 2s infinite ease-in-out;
}

.preloader-spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent-orange);
  border-bottom-color: var(--primary-light);
  border-radius: 50%;
  animation: spinnerRotate 1.5s infinite linear;
}

.preloader-text-block {
  color: #FFFFFF;
  margin-top: 0.5rem;
}

.preloader-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.preloader-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  animation: textGlow 2s infinite ease-in-out;
}

/* Animations */
@keyframes spinnerRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 10px rgba(242, 100, 25, 0.25));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(242, 100, 25, 0.6));
  }
}

@keyframes textGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; color: var(--accent-orange); }
}

