/* ==========================================================================
   ÉTUDES ET CARRIÈRES — DESIGN SYSTEM & STYLESHEET
   Charte graphique officielle :
   - Vert exact : #0DCC96
   - Bleu nuit exact : #27005B
   - Blanc : #FFFFFF
   ========================================================================== */

:root {
  /* Couleurs primaires officielles du logo */
  --green: #0DCC96;
  --green-dark: #08AD80;
  --green-deep: #058A65;
  --green-light: #E8FAF4;
  --green-soft: #D1F6EA;
  --green-glow: rgba(13, 204, 150, 0.28);

  --navy: #27005B;
  --navy-deep: #1A003E;
  --navy-light: #3D0982;
  --navy-soft: #F0ECF8;
  --navy-glow: rgba(39, 0, 91, 0.18);

  /* Neutres & Contrastes */
  --white: #FFFFFF;
  --bg-page: #F8F9FC;
  --bg-card: #FFFFFF;
  --text-main: #19142A;
  --text-muted: #5E5873;
  --text-subtle: #89839C;
  --border-color: #E6E3ED;
  --border-subtle: #F0EDF6;

  /* Typographie */
  --font-main: 'Trebuchet MS', 'Segoe UI', sans-serif;
  --font-heading: 'Trebuchet MS', 'Segoe UI', sans-serif;

  /* Rayons & Ombres */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 12px rgba(39, 0, 91, 0.04);
  --shadow-md: 0 10px 30px rgba(39, 0, 91, 0.07);
  --shadow-lg: 0 20px 50px rgba(39, 0, 91, 0.12);
  --shadow-glow: 0 12px 35px var(--green-glow);

  /* Transitions */
  --tr-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: min(1220px, calc(100% - 44px));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHIE & BOUTONS
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

.highlight-green {
  color: var(--green-dark);
  position: relative;
  display: inline-block;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.section-eyebrow.light {
  color: var(--green);
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.section-title.light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 660px;
  margin-bottom: 0;
}

.section-subtitle.light {
  color: #DDD6EC;
}

/* Boutons d'action */
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px var(--green-glow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.primary-btn:hover {
  background: #11e2a8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--green-glow);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.secondary-btn:hover {
  background: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.white-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.white-btn:hover {
  background: var(--green-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.text-btn {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 16px;
  transition: color var(--tr-fast);
}

.text-btn:hover {
  color: var(--navy);
}

.full-btn {
  width: 100%;
}

.pulse {
  animation: subtlePulse 3s infinite;
}

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 204, 150, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(13, 204, 150, 0); }
}

/* --------------------------------------------------------------------------
   NAVBAR UNIFIÉE — Logo | Liens | Actions en une seule ligne
   -------------------------------------------------------------------------- */
.header-top-accent {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--green) 100%);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #ECEAEF;
  transition: box-shadow var(--tr-fast);
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(39, 0, 91, 0.10);
}

/* Rangée principale unique : logo + nav + actions */
.header-main-row, .header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  background: var(--white);
  height: 68px;
}

/* On supprime l'ancienne barre de navigation séparée */
.header-nav-bar, .main-nav {
  display: contents;
}

.nav-links-container, .header-nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
  padding: 0;
  flex-wrap: wrap;
}

/* ---- Logo ---- */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 180px;
  height: auto;
  display: block;
}

/* ---- Liens de navigation ---- */
.nav-link, .nav-item {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 10px;
  position: relative;
  white-space: nowrap;
  transition: color var(--tr-fast), background var(--tr-fast);
  border-radius: var(--radius-sm);
}

.nav-link::after, .nav-item::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background: var(--green);
  transition: width var(--tr-fast);
  border-radius: 2px;
}

.nav-link:hover, .nav-item:hover,
.nav-link.active, .nav-item.active {
  color: var(--green-dark);
  background: rgba(13, 204, 150, 0.06);
}

.nav-link:hover::after, .nav-item:hover::after,
.nav-link.active::after, .nav-item.active::after {
  width: 60%;
}

/* ---- Actions (Mon espace + burger) ---- */
.header-actions, .header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.mon-espace-btn, .favorites-btn, .user-space-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--green);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
}

.mon-espace-btn:hover, .favorites-btn:hover, .user-space-btn:hover {
  color: var(--white);
  background: var(--green);
}
.mon-espace-btn:hover .mon-espace-icon,
.mon-espace-btn:hover .user-icon {
  stroke: var(--white);
}

.mon-espace-icon, .user-icon {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  stroke-width: 2.2px;
  display: block;
  transition: stroke var(--tr-fast);
}

.mon-espace-text, .favorites-label {
  font-weight: 700;
  color: inherit;
}

.favorites-badge {
  background: var(--green);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 900;
  min-width: 19px;
  height: 19px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

/* ---- Burger (mobile) ---- */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Trigger recherche masqué */
.header-search-hidden, .header-search-trigger {
  display: none;
}

/* ---------- Responsive : tablettes ≤ 1024px ---------- */
@media (max-width: 1024px) {
  .nav-link, .nav-item {
    font-size: 0.82rem;
    padding: 7px 7px;
  }
  .brand img { width: 150px; }
  .header-main-row, .header-inner { gap: 14px; }
  .mon-espace-text, .favorites-label { display: none; }
}

/* ---------- Responsive : mobile ≤ 768px ---------- */
@media (max-width: 768px) {
  .header-main-row, .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 0;
  }

  .brand { order: 1; }
  .header-actions, .header-right-actions { order: 2; margin-left: auto; }

  .menu-toggle { display: flex; }

  .menu-toggle { display: flex; }


  .mon-espace-btn, .favorites-btn, .user-space-btn {
    padding: 7px 10px;
    font-size: 0;
    border: none;
  }
  .mon-espace-btn .mon-espace-icon,
  .favorites-btn .mon-espace-icon {
    width: 22px;
    height: 22px;
  }
  .favorites-badge {
    font-size: 0.62rem;
    min-width: 17px;
    height: 17px;
  }
}

/* Burger animation (open state) */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------------------------------------
   3. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FCFCFE 0%, #F5F7FC 45%, #EEFBF7 100%);
  padding: 70px 0 85px;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  background: rgba(13, 204, 150, 0.12);
  right: -100px;
  top: -120px;
}

.orb-2 {
  width: min(460px, 70vw);
  height: min(460px, 70vw);
  background: rgba(39, 0, 91, 0.08);
  left: -150px;
  bottom: -150px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(39, 0, 91, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.7;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.hero-pill-icon {
  color: var(--green);
  font-size: 0.9rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Zone de recherche Hero */
.hero-search-wrapper {
  position: relative;
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 7px 8px 7px 18px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.hero-search-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 10px 35px var(--green-glow);
}

.hero-search-icon {
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  margin-right: 12px;
}

.hero-search-box input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 0.98rem;
  color: var(--text-main);
  min-width: 0;
}

.hero-search-box input::placeholder {
  color: var(--text-subtle);
}

.hero-search-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-search-submit:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* Dropdown de suggestions sous la recherche Hero */
.hero-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.hero-suggestions.open {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--tr-fast);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: var(--green-light);
}

.suggestion-item-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}

.suggestion-item-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--navy-soft);
  color: var(--navy);
}

.hero-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-tags-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tag-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tag-btn:hover {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green-deep);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.trust-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-sep {
  width: 1px;
  height: 28px;
  background: var(--border-color);
}

/* Card Quiz Hero */
.hero-card-side {
  position: relative;
}

.hero-card-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  filter: blur(25px);
  z-index: 0;
}

.hero-quiz-card {
  position: relative;
  z-index: 1;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  box-shadow: 0 30px 70px rgba(39, 0, 91, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.hero-quiz-card::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(13, 204, 150, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.quiz-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(13, 204, 150, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #B9F8E4;
  margin-bottom: 20px;
}

.quiz-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.quiz-card-title {
  color: var(--white);
  font-size: 1.85rem;
  line-height: 1.2;
  margin-bottom: 14px;
}

.quiz-card-desc {
  color: #DDD6EA;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.quiz-card-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.q-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #EFEBF7;
}

.q-feat-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  font-weight: 900;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}

.quiz-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #B7AFC9;
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   4. QUICK ACCESS DOCK (8 RUBRIQUES)
   -------------------------------------------------------------------------- */
.quick-access-section {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.quick-dock {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-left: 1px solid var(--border-color);
}

.dock-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 16px;
  border-right: 1px solid var(--border-color);
  background: var(--white);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-item:hover {
  background: var(--green-light);
}

.dock-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--navy-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-icon.highlight {
  background: var(--green);
  color: var(--navy);
}

.dock-item:hover .dock-icon {
  background: var(--navy);
  color: var(--white);
}

.dock-meta strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
}

.dock-meta small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.dock-arrow {
  margin-left: auto;
  color: var(--green-dark);
  font-weight: 800;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-item:hover .dock-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   5. SECTIONS GÉNÉRALES & FILTRES
   -------------------------------------------------------------------------- */
.section {
  padding: 85px 0;
}

.section.soft-bg {
  background: var(--bg-page);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-header.text-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header.text-center .section-subtitle {
  margin-inline: auto;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.filter-pill:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.filter-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   6. GRILLES & CARTES (FORMATIONS, MÉTIERS, ÉTABLISSEMENTS)
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-grid.cards-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.item-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.item-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 204, 150, 0.4);
}

.card-top-visual {
  height: 105px;
  padding: 14px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--navy) 0%, #4C178C 100%);
  color: var(--white);
}

.card-top-visual.visual-health {
  background: linear-gradient(135deg, #058A65 0%, var(--green) 100%);
}

.card-top-visual.visual-business {
  background: linear-gradient(135deg, #1C0A45 0%, #6830A6 100%);
}

.card-top-visual.visual-engineering {
  background: linear-gradient(135deg, #0E2E5B 0%, #176B9B 100%);
}

.card-top-visual.visual-env {
  background: linear-gradient(135deg, #0A5E44 0%, #20A678 100%);
}

.card-top-visual.visual-law {
  background: linear-gradient(135deg, #37144D 0%, #76276F 100%);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-domain-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.card-bookmark-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-bookmark-btn svg {
  width: 15px;
  height: 15px;
}

.card-bookmark-btn:hover, .card-bookmark-btn.saved {
  background: var(--green);
  color: var(--navy);
}

.card-level-chip {
  align-self: flex-start;
  background: var(--green);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.48;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  padding: 8px 10px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  font-size: 0.76rem;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta-item strong {
  color: var(--navy);
}

.card-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.card-detail-link {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--tr-fast);
}

.card-detail-link:hover {
  color: var(--green-dark);
}

/* Redirection vers catalogue complet de formations */
.section-view-all-wrapper {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.section-view-all-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  background: linear-gradient(135deg, rgba(39, 0, 91, 0.03) 0%, rgba(13, 204, 150, 0.08) 100%);
  border: 1px dashed rgba(39, 0, 91, 0.22);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section-view-all-content:hover {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(39, 0, 91, 0.05) 0%, rgba(13, 204, 150, 0.12) 100%);
  box-shadow: var(--shadow-sm);
}

.view-all-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.view-all-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.view-all-text {
  font-size: 0.9rem;
  color: var(--navy);
  margin: 0;
}

.view-all-text strong {
  color: var(--navy);
  font-weight: 800;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(13, 204, 150, 0.25);
  text-decoration: none;
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 204, 150, 0.35);
}

.view-all-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.view-all-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--navy);
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.view-all-secondary-btn:hover {
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   7. SECTION BANNIÈRE TEST D'ORIENTATION
   -------------------------------------------------------------------------- */
.orientation-banner-section {
  background: var(--navy);
  color: var(--white);
  padding: 95px 0;
  position: relative;
  overflow: hidden;
}

.orientation-banner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 204, 150, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.orientation-banner-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge-white {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(13, 204, 150, 0.4);
  color: var(--green);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.banner-title {
  color: var(--white);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.banner-text {
  color: #DDD5ED;
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 26px;
}

.banner-dimensions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.dim-chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dim-a { border-color: #8B5CF6; color: #C4B5FD; }
.dim-s { border-color: var(--green); color: #A7F3D0; }
.dim-c { border-color: #EC4899; color: #FBCFE8; }
.dim-p { border-color: #10B981; color: #6EE7B7; }
.dim-e { border-color: #F59E0B; color: #FDE68A; }
.dim-o { border-color: #3B82F6; color: #BFDBFE; }

.banner-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banner-notice {
  font-size: 0.8rem;
  color: #B5AACB;
}

/* Orbite interactive des 6 dimensions */
.banner-orbit-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
  margin-inline: auto;
}

.orbit-center {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 900;
  z-index: 5;
  box-shadow: 0 0 45px var(--green-glow);
}

.orbit-logo-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.orbit-center-text {
  font-size: 0.72rem;
  letter-spacing: 1px;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  inset: 0;
  border: 1px dashed rgba(13, 204, 150, 0.3);
  pointer-events: none;
}

.ring-1 {
  inset: 35px;
  animation: rotateOrbit 40s linear infinite;
}

.ring-2 {
  inset: 75px;
  animation: rotateOrbit 25s linear infinite reverse;
}

@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-node {
  position: absolute;
  background: var(--white);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.76rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform var(--tr-fast);
}

.orbit-node:hover {
  transform: scale(1.1);
}

.node-1 { top: 10px; left: 50%; transform: translateX(-50%); }
.node-2 { top: 90px; right: -15px; }
.node-3 { bottom: 90px; right: -15px; }
.node-4 { bottom: 10px; left: 50%; transform: translateX(-50%); }
.node-5 { bottom: 90px; left: -25px; }
.node-6 { top: 90px; left: -25px; }

/* --------------------------------------------------------------------------
   8. SECTION MÉTIERS
   -------------------------------------------------------------------------- */
.career-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.career-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.career-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 204, 150, 0.4);
}

.career-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.career-sector-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--green-deep);
  background: var(--green-light);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.career-title {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.career-tagline {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.career-salaries-box {
  display: flex;
  gap: 14px;
  background: var(--bg-page);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.salary-item {
  display: flex;
  flex-direction: column;
}

.salary-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.salary-val {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
}

.career-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.skill-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--navy-soft);
  color: var(--navy);
  padding: 2px 7px;
  border-radius: 6px;
}

.career-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.career-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #DC2626;
  background: #FEE2E2;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.career-video-btn:hover {
  background: #FCA5A5;
  color: #991B1B;
}

/* --------------------------------------------------------------------------
   9. EMPLACEMENT PARTENAIRE (MONÉTISATION ÉTHIQUE)
   -------------------------------------------------------------------------- */
.sponsor-banner-section {
  padding: 20px 0 60px;
}

.sponsor-banner {
  background: linear-gradient(135deg, #FAF8FE 0%, #EDF9F5 100%);
  border: 2px dashed rgba(13, 204, 150, 0.6);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  position: relative;
}

.sponsor-tag {
  position: absolute;
  top: -12px;
  left: 36px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.sponsor-school {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sponsor-copy h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin: 6px 0 8px;
}

.sponsor-copy p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 680px;
}

.sponsor-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.sponsor-disclaimer {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   10. SECTION ÉTABLISSEMENTS (UNIVERSITÉS & LYCÉES)
   -------------------------------------------------------------------------- */
.institutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.institutions-grid.cards-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.inst-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.inst-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.inst-flag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.inst-flag {
  font-size: 1.35rem;
}

.inst-type-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--navy-soft);
  color: var(--navy);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.inst-title {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.inst-location {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.inst-highlight {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inst-programs-list {
  background: var(--bg-page);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.inst-programs-list span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.inst-programs-list p {
  font-size: 0.76rem;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inst-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.inst-card-footer .card-detail-link {
  font-size: 0.8rem;
}

.inst-card-footer .secondary-btn {
  padding: 4px 10px !important;
  font-size: 0.72rem !important;
}

/* --------------------------------------------------------------------------
   11. SECTION BOURSES D'ÉTUDES
   -------------------------------------------------------------------------- */
.scholarship-badge-filter {
  display: flex;
  align-items: center;
}

.active-badge {
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--green-light);
  color: var(--green-deep);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--green-soft);
}

.scholarship-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}



.scholarship-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scholarship-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.scholarship-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-light);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 900;
  flex-shrink: 0;
}

.scholarship-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.scholarship-type-pill {
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--navy-soft);
  color: var(--navy);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.scholarship-target-country {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-subtle);
}

.scholarship-title {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.scholarship-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scholarship-amount-tag {
  display: inline-block;
  font-weight: 800;
  color: var(--green-deep);
  background: #EDFDF8;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
}

.scholarship-side-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.scholarship-deadline {
  font-size: 0.74rem;
  font-weight: 800;
  color: #B91C1C;
  background: #FEE2E2;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   12. SECTION ÉTUDES À L'ÉTRANGER & SIMULATEUR DE BUDGET
   -------------------------------------------------------------------------- */
.abroad-section {
  background: var(--navy);
  color: var(--white);
  padding: 95px 0;
  position: relative;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.country-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.country-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-5px);
  border-color: var(--green);
}

.country-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.country-flag {
  font-size: 2.2rem;
}

.country-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(13, 204, 150, 0.2);
  color: var(--green);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.country-card h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.country-tuition {
  font-size: 0.85rem;
  color: #D2CBE0;
  margin-bottom: 14px;
}

.country-advantages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: #ECE7F5;
  margin-bottom: 20px;
  flex: 1;
}

.country-adv-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.country-adv-item::before {
  content: '✓';
  color: var(--green);
  font-weight: 900;
}

/* Simulateur de Budget */
.budget-simulator-card {
  background: var(--white);
  color: var(--text-main);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.sim-tag {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sim-header h3 {
  font-size: 1.6rem;
  color: var(--navy);
  margin: 4px 0;
}

.sim-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.sim-country-select {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-country-select select {
  background: var(--bg-page);
  border: 2px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--navy);
  outline: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sim-country-select select:focus {
  border-color: var(--green);
}

.sim-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.sim-sliders {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sim-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.sim-item-header strong {
  color: var(--green-dark);
  font-size: 1rem;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: var(--navy-soft);
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  cursor: pointer;
  box-shadow: 0 0 10px var(--green-glow);
  transition: transform var(--tr-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.sim-result-box {
  background: linear-gradient(135deg, var(--navy) 0%, #3B0B7C 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.sim-res-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #B2F0DD;
}

.sim-total-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1.1;
  margin: 10px 0 14px;
}

.sim-res-hint {
  font-size: 0.82rem;
  color: #DDD6EC;
  margin-bottom: 22px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   13. SECTION ACTUALITÉS, GUIDES & VIDÉOS
   -------------------------------------------------------------------------- */
.news-main-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 30px;
}

.featured-article {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.featured-article:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 20px rgba(0, 255, 136, 0.3);
}

.featured-media {
  height: 280px;
  background: linear-gradient(135deg, var(--navy) 0%, #682EA6 100%);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.featured-tag {
  align-self: flex-start;
  background: var(--green);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.featured-meta {
  color: #DDD6EC;
  font-size: 0.82rem;
  font-weight: 600;
}

.featured-body {
  padding: 30px;
}

.featured-title {
  font-size: 1.65rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.featured-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-item-card:hover {
  border-color: var(--green);
  transform: translateX(4px) translateY(-5px) rotateX(5deg) rotateY(-5deg) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15), 0 0 15px rgba(0, 255, 136, 0.2);
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.news-cat {
  color: var(--green-dark);
}

.news-time {
  color: var(--text-subtle);
}

.news-item-title {
  font-size: 1.08rem;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 6px;
}

.news-item-summary {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   13.B PUBLICITÉS & VIDÉOS
   -------------------------------------------------------------------------- */
.ad-section {
  padding: 30px 0;
}
.ad-banner {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ad-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--green);
}
.ad-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.ad-content h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin-bottom: 5px;
}
.ad-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
}

.videos-section {
  padding: 60px 0;
  background: var(--bg-page);
}
.video-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--tr-smooth), box-shadow var(--tr-smooth);
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.video-card:hover .play-button-overlay svg {
  transform: scale(1.1);
}
.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}
.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity var(--tr-fast);
}
.video-card:hover .video-thumbnail img {
  opacity: 1;
}
.play-button-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.play-button-overlay svg {
  transition: transform var(--tr-fast);
  margin-left: 3px;
}
.video-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--white);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.video-info {
  padding: 20px;
}
.video-category {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.video-title {
  font-size: 1.1rem;
  color: var(--navy);
  margin-top: 8px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   14. NEWSLETTER
   -------------------------------------------------------------------------- */
.newsletter-section {
  padding: 30px 0 80px;
}

.newsletter-card {
  background: linear-gradient(135deg, var(--green) 0%, #0AB785 100%);
  color: var(--navy);
  border-radius: var(--radius-xl);
  padding: 45px 50px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 50px var(--green-glow);
}

.newsletter-badge {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: rgba(39, 0, 91, 0.8);
}

.newsletter-copy h2 {
  font-size: 2rem;
  color: var(--navy);
  margin: 6px 0 10px;
}

.newsletter-copy p {
  color: rgba(39, 0, 91, 0.85);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-inputs {
  display: flex;
  gap: 8px;
  background: var(--white);
  padding: 6px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.newsletter-inputs select {
  border: none;
  background: var(--bg-page);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  outline: none;
  cursor: pointer;
}

.newsletter-inputs input {
  border: none;
  outline: none;
  flex: 1;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text-main);
  min-width: 0;
}

.newsletter-submit {
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.newsletter-submit:hover {
  background: var(--navy-light);
}

.newsletter-legal {
  font-size: 0.72rem;
  color: rgba(39, 0, 91, 0.75);
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 70px 0 30px;
}

.footer-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 45px;
  padding-bottom: 50px;
}

.footer-logo img {
  width: 185px;
  margin-bottom: 16px;
}

.footer-mission {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: 20px;
}

.social-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--tr-fast);
}

.social-links a:hover {
  color: var(--green-dark);
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: color var(--tr-fast);
}

.footer-col a:hover {
  color: var(--green-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 15px;
}

.footer-tags {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-cookie-btn {
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   16. MODALES, DIALOGUES & DRAWER
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 5, 34, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}

.modal-dialog {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-radius: var(--radius-xl);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-page);
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}

.modal-close-btn:hover {
  background: #F0EDF6;
  transform: rotate(90deg);
}

/* MODAL TEST D'ORIENTATION */
.quiz-dialog {
  width: min(720px, 100%);
  padding: 40px;
}

.quiz-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.quiz-badge {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--green-deep);
  letter-spacing: 1px;
}

.quiz-step-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy);
}

.quiz-progress-bar-wrap {
  height: 8px;
  background: var(--navy-soft);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
}

.quiz-progress-bar-fill {
  height: 100%;
  width: 4%;
  background: linear-gradient(90deg, var(--green), #14EBB0);
  border-radius: 10px;
  transition: width 0.35s ease;
}

.quiz-question-title {
  font-size: 1.45rem;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 8px;
}

.quiz-question-instruction {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.quiz-answers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.quiz-answer-btn {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quiz-answer-btn:hover {
  border-color: var(--green);
  background: var(--green-light);
  transform: translateX(4px);
}

.quiz-answer-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quiz-answer-btn:hover .quiz-answer-indicator {
  border-color: var(--green-dark);
  background: var(--green);
}

.quiz-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.quiz-nav-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quiz-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quiz-nav-btn:not(:disabled):hover {
  background: var(--navy-soft);
}

.quiz-hint-save {
  font-size: 0.74rem;
  color: var(--text-subtle);
}

/* Écran Résultat Quiz */
.quiz-result-view.hidden {
  display: none;
}

.result-celebrate {
  text-align: center;
  padding: 20px 0 28px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 26px;
}

.result-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.result-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--green-deep);
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.result-title {
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.result-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.6;
}

.result-breakdown-section {
  margin-bottom: 26px;
}

.result-breakdown-section h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.dimensions-bars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.dim-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dim-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
}

.dim-bar-track {
  height: 8px;
  background: var(--navy-soft);
  border-radius: 4px;
  overflow: hidden;
}

.dim-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.result-recommendations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.rec-col {
  background: var(--bg-page);
  padding: 20px;
  border-radius: var(--radius-lg);
}

.rec-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.rec-header h4 {
  font-size: 0.95rem;
  color: var(--navy);
}

.rec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rec-pill {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--navy);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.result-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.result-disclaimer {
  display: block;
  font-size: 0.74rem;
  color: var(--text-subtle);
  line-height: 1.4;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

/* MODAL FICHE DÉTAILLÉE DYNAMIQUE */
.detail-dialog {
  width: min(780px, 100%);
  padding: 40px;
}

.detail-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--green-light);
  color: var(--green-deep);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.detail-title {
  font-size: 1.85rem;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--bg-page);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.detail-info-item span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.detail-info-item strong {
  font-size: 0.92rem;
  color: var(--navy);
}

.detail-section-block {
  margin-bottom: 22px;
}

.detail-section-block h4 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.detail-section-block p, .detail-section-block li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.detail-section-block ul {
  padding-left: 18px;
  list-style: disc;
}

.detail-actions-row {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}

/* MODAL RECHERCHE GLOBALE (Ctrl+K) */
.search-dialog {
  width: min(680px, 100%);
  padding: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--white);
}

.search-modal-header input {
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--navy);
  flex: 1;
}

.kbd-esc {
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-subtle);
  cursor: pointer;
}

.search-modal-filters {
  display: flex;
  gap: 6px;
  padding: 12px 24px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.search-filter-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-filter-tag.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.search-modal-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 14px 20px;
}

.search-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.search-hit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--tr-fast);
}

.search-hit-item:hover {
  background: var(--green-light);
}

.search-hit-info {
  display: flex;
  flex-direction: column;
}

.search-hit-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.search-hit-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.search-hit-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--navy-soft);
  color: var(--navy);
}

/* MODAL VIDÉO */
.video-dialog {
  width: min(850px, 100%);
  padding: 20px;
  background: #000;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-local-notice {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.video-local-notice span {
  color: rgba(255, 255, 255, 0.76);
}

/* MODAL LEAD / BROCHURE */
.lead-dialog {
  width: min(540px, 100%);
  padding: 38px;
}

.lead-header h3 {
  font-size: 1.55rem;
  color: var(--navy);
  margin: 4px 0 6px;
}

.lead-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
}

.form-group input, .form-group select {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--tr-fast);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--green);
  background: var(--white);
}

.form-notice {
  font-size: 0.72rem;
  color: var(--text-subtle);
  line-height: 1.4;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   17. DRAWER « MON ESPACE » (FAVORIS & TEST)
   -------------------------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
}

.drawer.open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 5, 34, 0.7);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100%);
  background: var(--white);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: slideDrawer 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.drawer-header {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.drawer-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}

.drawer-header-left h3 {
  font-size: 1.25rem;
  margin: 0;
}

.drawer-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-page);
}

.drawer-tab {
  flex: 1;
  padding: 13px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.drawer-tab.active {
  color: var(--navy);
  border-bottom-color: var(--green);
  background: var(--white);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.drawer-view {
  display: none;
}

.drawer-view.active {
  display: block;
}

.drawer-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.drawer-item:hover {
  background: var(--white);
  border-color: var(--green);
}

.drawer-item-content strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
}

.drawer-item-content small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.drawer-remove-btn {
  color: var(--text-subtle);
  font-size: 1.1rem;
  padding: 4px;
  transition: color var(--tr-fast);
}

.drawer-remove-btn:hover {
  color: #DC2626;
}

.drawer-empty-notice {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   18. BANNIÈRE COOKIES (CNIL / RGPD)
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 300;
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-inner {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 4px;
}

.cookie-text p {
  font-size: 0.8rem;
  color: #DDD5EC;
  line-height: 1.45;
  margin: 0;
  max-width: 700px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-accept {
  background: var(--green);
  color: var(--navy);
}

.cookie-accept:hover {
  background: #12ebb0;
}

.cookie-refuse {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.cookie-refuse:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cookie-custom {
  color: #BBAFD3;
  font-weight: 700;
}

.cookie-custom:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   19. TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--green);
  z-index: 400;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   20. RESPONSIVE DESIGN (TABLETTES & MOBILES)
   -------------------------------------------------------------------------- */
@media (max-width: 1150px) {
  .nav-links-container {
    gap: 15px;
    margin-left: 0;
  }
  .nav-link, .nav-item {
    font-size: 0.85rem;
    padding: 8px 6px;
  }
  .brand img {
    width: 160px;
  }
  .mon-espace-text {
    display: none;
  }
}

@media (max-width: 1100px) {
  .hero-layout, .orientation-banner-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .banner-orbit-wrapper {
    display: none;
  }

  .cards-grid, .institutions-grid, .cards-grid.cards-grid-4, .institutions-grid.cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-dock {
    grid-template-columns: repeat(3, 1fr);
  }

  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sim-body {
    grid-template-columns: 1fr;
  }

  .newsletter-card {
    grid-template-columns: 1fr;
    padding: 35px;
  }

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

  .destinations-grid-dark {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .topbar-right {
    display: none;
  }

  .header-main-row, .header-inner {
    padding: 12px 0;
  }

  .brand img {
    width: 170px;
  }

  .header-nav-bar, .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--green);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 99;
  }

  .header-nav-bar.open, .main-nav.open {
    display: block;
  }

  .nav-links-container, .header-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 0;
  }

  .nav-link, .nav-item {
    font-size: 1.05rem;
    padding: 8px 0;
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
  }

  .menu-toggle {
    display: flex;
  }

  .hero-section {
    padding: 50px 0 65px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

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

  .scholarship-card {
    grid-template-columns: 1fr;
  }

  .scholarship-side-action {
    align-items: flex-start;
  }

  .news-main-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .cookie-actions {
    flex-wrap: wrap;
  }

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

  .contact-container-grid, .faq-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-panel, .contact-form-panel, .legal-content-card {
    padding: 24px;
  }
}

@media (max-width: 580px) {
  .container {
    width: calc(100% - 30px);
  }

  .comparator-section {
    padding: 20px 15px;
  }

  .brand img {
    width: 145px;
  }

  .favorites-label {
    display: none;
  }

  .cards-grid, .institutions-grid, .destinations-grid, .cards-grid.cards-grid-4, .institutions-grid.cards-grid-4 {
    grid-template-columns: 1fr;
  }

  .section-view-all-content {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 18px 16px;
  }

  .view-all-info {
    flex-direction: column;
    gap: 8px;
  }

  .view-all-btn, .view-all-btn-group, .view-all-secondary-btn {
    width: 100%;
    justify-content: center;
  }

  .quick-dock {
    grid-template-columns: 1fr;
    border-left: none;
  }

  .dock-item {
    border-left: 1px solid var(--border-color);
  }

  .hero-search-box {
    flex-direction: column;
    padding: 12px;
    align-items: stretch;
  }

  .hero-search-submit {
    margin-top: 10px;
    justify-content: center;
  }

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

  .sponsor-actions {
    align-items: flex-start;
  }

  .newsletter-inputs {
    flex-direction: column;
  }

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

  .dimensions-bars-grid, .result-recommendations-grid, .detail-info-grid, .form-row {
    grid-template-columns: 1fr;
  }

  .quiz-dialog, .detail-dialog, .lead-dialog {
    padding: 24px 20px;
  }

  .toolbar-search-row, .toolbar-filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .destinations-grid-dark {
    grid-template-columns: 1fr;
  }

  .chatbot-toggle-btn {
    width: 50px;
    height: 50px;
  }

  .chatbot-container {
    bottom: 16px;
    right: 16px;
  }
}

/* ==========================================================================
   21. COMPOSANTS DES PAGES DÉDIÉES (FORMATIONS, MÉTIERS, ANNUAIRES, ETC.)
   ========================================================================== */

/* En-tête de page & Fil d'Ariane */
.page-hero {
  background: linear-gradient(135deg, #FAF8FE 0%, #EDF9F5 100%);
  padding: 48px 0 52px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--navy);
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: var(--green-dark);
}

.breadcrumbs span.sep {
  color: var(--text-subtle);
}

.page-hero-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--navy);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
}

/* Barre d'outils de filtres avancés */
.page-toolbar {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toolbar-search-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.toolbar-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  transition: border-color var(--tr-fast);
}

.toolbar-input-wrap:focus-within {
  border-color: var(--green);
  background: var(--white);
}

.toolbar-input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.92rem;
  color: var(--navy);
}

.toolbar-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.toolbar-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tableau Comparateur de Formations */
.comparator-section {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 35px;
  box-shadow: var(--shadow-md);
  margin-top: 50px;
}

.comparator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 15px;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.comparison-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comparison-table th:first-child {
  border-top-left-radius: var(--radius-md);
}

.comparison-table th:last-child {
  border-top-right-radius: var(--radius-md);
}

.comparison-table tr:hover td {
  background: var(--green-light);
}

.comparison-table td strong {
  color: var(--navy);
}

/* Fiches Annuaires Lycées & Universités enrichies */
.directory-badges-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.badge-public {
  background: #E0F2FE;
  color: #0369A1;
}

.badge-private {
  background: #FEF3C7;
  color: #92400E;
}

.badge-success-rate {
  background: var(--green-light);
  color: var(--green-deep);
}

/* FAQ & Démarches */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 35px;
}

.faq-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.faq-card h4 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-card h4::before {
  content: '?';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  font-weight: 900;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.faq-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Formulaire de Contact avancé */
.contact-container-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: flex-start;
}

.contact-info-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-info-panel h3 {
  color: var(--white);
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.contact-info-panel p {
  color: #DDD6EC;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.channel-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--white);
}

.channel-text span {
  font-size: 0.82rem;
  color: #CFC5E4;
}

.contact-form-panel {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-form-panel h3 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-form-panel p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Pages Légales & Texte éditorial */
.legal-content-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 45px 50px;
  box-shadow: var(--shadow-sm);
  margin-top: 30px;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section p, .legal-section li {
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-section ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 14px;
}

/* Destinations Dark Section */
.destinations-grid-dark {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background-color: #1a0b36;
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 60px;
}

.dest-card-dark {
  background-color: #2b1756;
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.dest-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.dest-code {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.dest-region {
  background-color: rgba(13, 204, 150, 0.15);
  color: #0dcc96;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
}

.dest-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dest-cost {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}
.dest-cost strong {
  color: #fff;
}

.dest-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.dest-features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.dest-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #0dcc96;
  font-weight: bold;
}

.dest-btn {
  background-color: #fff;
  color: #1a0b36;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.dest-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Scroll Reveal Styles */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section Delimiter */
.section-divider {
  width: 100%;
  max-width: 900px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  margin: 80px auto;
  position: relative;
  box-shadow: 0 0 12px rgba(13, 204, 150, 0.4);
}

.section-divider::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg-page);
  padding: 0 24px;
  color: var(--green);
  font-size: 1.8rem;
  text-shadow: 0 0 10px rgba(13, 204, 150, 0.4);
}

.soft-bg + .section-divider::after {
  background-color: var(--navy-soft); /* or whatever soft-bg is */
}

/* ==========================================================================
   EFFET 3D GLOBAL SUR TOUTES LES PAGES
   ========================================================================== */
.dock-item,
.card,
.career-card,
.inst-card,
.scholarship-card,
.dest-card-dark,
.news-card,
.newsletter-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2), box-shadow 0.4s ease;
  box-shadow: 0 10px 25px rgba(39, 0, 91, 0.08), inset 0 2px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(230, 227, 237, 0.5);
  will-change: transform, box-shadow;
}

.dest-card-dark {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dock-item:hover,
.card:hover,
.career-card:hover,
.inst-card:hover,
.scholarship-card:hover,
.news-card:hover,
.newsletter-card:hover,
.country-card:hover,
.dock-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 30px 60px rgba(39, 0, 91, 0.18), 0 15px 20px rgba(39, 0, 91, 0.08), inset 0 2px 0 #ffffff;
  z-index: 10;
  position: relative;
}

.dest-card-dark:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 15px 25px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.2);
  z-index: 10;
  position: relative;
}

/* =========================================================================
   20. CHATBOT IA & GLASSMORPHISM PREMIUM
   ========================================================================= */

/* Glassmorphism sur la nav et la sidebar */
.header, .news-sidebar {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-main-row, .header-inner {
  background: transparent !important;
}

/* Chatbot Styles */
.chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-main);
  pointer-events: none;
}

.chatbot-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  border: none;
  box-shadow: 0 4px 16px rgba(13, 204, 150, 0.4);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
  z-index: 2;
  pointer-events: auto;
}

.chatbot-toggle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(13, 204, 150, 0.6);
}

.chatbot-window {
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 500px;
  max-height: calc(100vh - 100px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(39, 0, 91, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 16px;
  transition: opacity var(--tr-fast), transform var(--tr-fast), visibility var(--tr-fast);
  transform-origin: bottom right;
  border: 1px solid rgba(39, 0, 91, 0.1);
  pointer-events: auto;
}

.chatbot-window.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: scale(0.95) translateY(20px);
}

.chatbot-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header-info {
  display: flex;
  flex-direction: column;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--tr-fast);
}

.chatbot-close-btn:hover {
  opacity: 1;
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.bot-message {
  background: var(--white);
  color: var(--text-color);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.bot-message a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
}

.user-message {
  background: var(--navy);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(39, 0, 91, 0.1);
}

.chatbot-input-area {
  display: flex;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border-top: 1px solid #ECEAEF;
  gap: 12px;
}

.chatbot-input-area input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ECEAEF;
  border-radius: 20px;
  font-family: var(--font-main);
  outline: none;
  transition: border-color var(--tr-fast);
}

.chatbot-input-area input:focus {
  border-color: var(--green);
}

.chatbot-send-btn {
  background: var(--green);
  color: var(--navy);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--tr-fast);
}

.chatbot-send-btn:hover {
  transform: scale(1.05);
}
