/* Accueil v2 — surcouche dédiée à la nouvelle direction visuelle. */
:root {
  --home-navy: #17375f;
  --home-green: #718e48;
  --home-green-dark: #5f793b;
  --home-paper: #fbfaf7;
  --home-text: #233142;
  --home-muted: #4f5d68;
  --home-line: #dfe3d9;
  --home-hero-blue: #eef5f8;
}

body {
  background: var(--home-paper);
  color: var(--home-text);
}

.home-header {
  position: relative;
  padding: 22px clamp(28px, 6vw, 92px) 14px;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 0;
  box-shadow: none;
}

.home-header .brand,
.home-header .brand-logo-wrap {
  width: clamp(190px, 20vw, 285px);
  max-width: none;
}

.home-header .main-nav {
  gap: clamp(20px, 3vw, 38px);
  font-size: 0.98rem;
}

.home-header .main-nav a {
  position: relative;
  padding: 10px 0 9px;
  color: #1e2a37;
}

.home-header .main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--home-green);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.home-header .main-nav a:hover::after,
.home-header .main-nav a:focus-visible::after,
.home-header .main-nav a.is-current::after {
  width: 100%;
}

.hero-v2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.62fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 86px);
  min-height: auto;
  align-items: center;
  padding: clamp(44px, 6vw, 78px) clamp(28px, 6vw, 92px) clamp(88px, 9vw, 124px);
  border-bottom: 0;
  background: var(--home-hero-blue);
}

.hero-v2::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -2%;
  bottom: -1px;
  height: clamp(42px, 5vw, 72px);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 58 C180 88 330 36 520 58 C720 82 845 98 1015 64 C1095 48 1150 50 1200 61 L1200 100 L0 100 Z' fill='%23fbfaf7'/%3E%3C/svg%3E")
    bottom center / 100% 100% no-repeat;
  pointer-events: none;
}

.hero-content-v2 {
  max-width: 670px;
}

.hero-content-v2 h1 {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--home-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.1vw, 5.2rem);
  font-weight: 400;
  line-height: 1.035;
  letter-spacing: -0.026em;
}

.hero-content-v2 .lead {
  max-width: 585px;
  margin-bottom: 0;
  color: var(--home-text);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.72;
}

.hero-content-v2 .hero-actions {
  margin-top: 28px;
}

.hero-cta {
  gap: 18px;
  min-height: 52px;
  padding: 13px 23px;
  border-radius: 999px;
  background: var(--home-green);
  font-size: 0.98rem;
  font-weight: 600;
  box-shadow: none;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--home-green-dark);
}

.hero-cta span {
  font-size: 1.35em;
  line-height: 1;
}

.hero-visual-v2 {
  display: block;
  min-width: 0;
}

.hero-visual-v2 img {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin-inline: auto;
}

@media (max-width: 1020px) {
  .home-header .main-nav {
    gap: 18px;
    font-size: 0.9rem;
  }

  .hero-v2 {
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, 1fr);
  }
}

@media (max-width: 820px) {
  .home-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(223, 227, 217, 0.7);
  }

  .home-header .brand,
  .home-header .brand-logo-wrap {
    width: min(240px, 66vw);
  }

  .hero-v2 {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 50px 22px 92px;
  }

  .hero-content-v2 {
    max-width: 760px;
  }

  .hero-content-v2 h1 {
    max-width: 720px;
    font-size: clamp(2.7rem, 8vw, 4.6rem);
  }

  .hero-visual-v2 {
    max-width: 640px;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .home-header .main-nav {
    gap: 8px;
    padding-top: 14px;
  }

  .home-header .main-nav a {
    width: 100%;
    padding: 8px 0;
  }

  .home-header .main-nav a::after {
    left: 0;
    transform: none;
  }

  .home-header .main-nav a:hover::after,
  .home-header .main-nav a:focus-visible::after,
  .home-header .main-nav a.is-current::after {
    width: 48px;
  }

  .hero-content-v2 h1 {
    font-size: clamp(2.5rem, 11vw, 3.7rem);
    line-height: 1.02;
  }

  .hero-content-v2 h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 22px;
  background: var(--home-green);
}

.hero-content-v2 .lead {
    font-size: 1rem;
  }

  .hero-content-v2 .hero-actions {
    align-items: flex-start;
  }

  .hero-cta {
    width: auto;
  }
}


/* Mes accompagnements — section v2 */
.services-v2 {
  padding: clamp(58px, 7vw, 92px) clamp(28px, 6vw, 92px) clamp(66px, 8vw, 104px);
  background: var(--home-paper);
}

.services-v2-heading {
  text-align: center;
  margin-bottom: clamp(70px, 7vw, 96px);
}

.services-v2-heading h2 {
  margin: 0;
  color: var(--home-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
}

.section-accent {
  display: block;
  width: 42px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--home-green);
}

.services-v2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1260px;
  margin: 0 auto;
}

.service-v2 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 0 clamp(24px, 3vw, 46px);
  text-align: left;
}

.service-v2 + .service-v2 {
  border-left: 1px solid var(--home-line);
}

.service-v2-visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: 150px;
  margin-bottom: 24px;
}

.service-v2-visual img {
  display: block;
  width: min(100%, 230px);
  height: 145px;
  object-fit: contain;
}

.service-v2 h3 {
  margin: 0 0 12px;
  color: var(--home-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.16;
}

.service-v2 p {
  max-width: none;
  margin: 0 0 26px;
  color: var(--home-text);
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: left;
}

.service-v2-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 14px;
  margin-top: auto;
  color: var(--home-green-dark);
  font-weight: 600;
  text-decoration: none;
}

.service-v2-link:hover,
.service-v2-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.service-v2-link span {
  font-size: 1.25em;
  line-height: 1;
}

@media (max-width: 900px) {
  .services-v2-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .service-v2 {
    padding: 34px 0;
  }

  .service-v2:first-child {
    padding-top: 0;
  }

  .service-v2 + .service-v2 {
    border-left: 0;
    border-top: 1px solid var(--home-line);
  }

  .service-v2 p {
    max-width: 520px;
  }
}


/* Correction centrage du titre Mon accompagnement */
.services-v2 > .services-v2-heading {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
}

.services-v2 > .services-v2-heading h2 {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
}

.services-v2 > .services-v2-heading .section-accent {
  margin-left: auto;
  margin-right: auto;
}


/* Mission — version v4 sans illustration */
.mission-v4 {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.3fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: stretch;
  padding: clamp(78px, 9vw, 118px) clamp(28px, 6vw, 92px);
  background: #ffffff;
}

.mission-v4-intro {
  max-width: 500px;
  align-self: center;
}

.mission-v4-intro h2 {
  margin: 0;
  color: var(--home-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 3.3vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
}

.mission-v4-intro .section-accent {
  width: 42px;
  margin: 14px 0 26px;
}

.mission-v4-intro p {
  margin: 0;
  color: var(--home-text);
  font-size: clamp(1.06rem, 1.3vw, 1.2rem);
  line-height: 1.75;
}

.mission-v4-accordions {
  width: 100%;
  border-top: 1px solid var(--home-line);
}

.mission-accordion {
  border-bottom: 1px solid var(--home-line);
}

.mission-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 21px 0;
  color: var(--home-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.mission-accordion summary::-webkit-details-marker {
  display: none;
}

.mission-accordion summary::marker {
  display: none;
}

.mission-plus {
  flex: 0 0 auto;
  color: var(--home-green-dark);
  font-family: Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  transition: transform 180ms ease;
}

.mission-accordion[open] .mission-plus {
  transform: rotate(45deg);
}

.mission-accordion-content {
  padding: 0 52px 22px 0;
}

.mission-accordion-content p {
  max-width: 720px;
  margin: 0;
  color: var(--home-text);
  font-size: 0.98rem;
  line-height: 1.7;
}

.mission-accordion summary:hover,
.mission-accordion summary:focus-visible {
  color: var(--home-green-dark);
}

@media (max-width: 900px) {
  .mission-v4 {
    grid-template-columns: 1fr;
    gap: 46px;
    padding: 66px 22px 78px;
  }

  .mission-v4-intro {
    max-width: 640px;
    align-self: start;
  }

  .mission-v4-accordions {
    max-width: none;
  }
}


/* À propos + Coin réflexif — v6 */
.about-reflexive-v6 {
  padding: clamp(78px, 9vw, 118px) clamp(28px, 6vw, 92px);
  background: var(--home-paper);
}

.about-reflexive-v6-heading {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto clamp(54px, 6vw, 76px);
  text-align: center;
}

.about-reflexive-v6-heading h2 {
  max-width: 940px;
  margin: 0 auto;
  color: var(--home-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.16;
  text-align: center;
}

.about-reflexive-v6-heading .section-accent {
  margin: 16px auto 0;
}

.about-reflexive-v6-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 1fr);
  gap: clamp(52px, 7vw, 94px);
  max-width: 1320px;
  margin: 0 auto;
  align-items: stretch;
}

.about-v6 {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 3.5vw, 48px);
  align-items: start;
}

.about-v6-photo {
  overflow: hidden;
  border-radius: 46% 46% 44% 44% / 38% 38% 52% 52%;
  aspect-ratio: 4 / 5;
}

.about-v6-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 58% center;
}

.about-v6-copy h3,
.reflexive-v6 h3 {
  margin: 0 0 18px;
  color: var(--home-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
}

.about-v6-copy p {
  margin: 0 0 15px;
  color: var(--home-text);
  font-size: 0.96rem;
  line-height: 1.65;
}

.about-v6-link,
.reflexive-v6-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  color: var(--home-green-dark);
  font-weight: 600;
  text-decoration: none;
}

.about-v6-link:hover,
.about-v6-link:focus-visible,
.reflexive-v6-link:hover,
.reflexive-v6-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reflexive-v6 {
  display: flex;
  align-items: center;
  padding-left: clamp(42px, 5vw, 72px);
  border-left: 1px solid var(--home-line);
}

.reflexive-v6-inner {
  max-width: 440px;
}

.reflexive-v6-visual {
  width: clamp(118px, 11vw, 168px);
  margin: 0 auto 22px;
}

.reflexive-v6-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.reflexive-v6-kicker {
  margin: 0 0 10px;
  color: var(--home-green-dark);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reflexive-v6 .section-accent {
  width: 42px;
  margin: 0 0 24px;
}

.reflexive-v6-inner > p:not(.reflexive-v6-kicker) {
  margin: 0 0 24px;
  color: var(--home-text);
  font-size: 1.02rem;
  line-height: 1.72;
}

@media (max-width: 980px) {
  .about-reflexive-v6-grid {
    grid-template-columns: 1fr;
  }

  .reflexive-v6 {
    padding: 48px 0 0;
    border-left: 0;
    border-top: 1px solid var(--home-line);
  }

  .reflexive-v6-inner {
    max-width: 650px;
  }
}

@media (max-width: 650px) {
  .about-reflexive-v6 {
    padding: 66px 22px 78px;
  }

  .about-v6 {
    grid-template-columns: 1fr;
  }

  .about-v6-photo {
    width: min(72vw, 300px);
    margin: 0 auto;
  }
}

.about-v6-accent {
  width: 42px;
  margin: 0 0 22px;
}

/* Garantit l'affichage du trait vert sous le grand titre du hero */
.hero-content-v2 h1::after {
  content: "" !important;
  display: block !important;
  width: 44px;
  height: 2px;
  margin-top: 22px;
  background: var(--home-green);
}


/* Appel découverte — v9 */
.discovery-v9 {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;

  /* Pleine largeur de la fenêtre, même si la section est dans un conteneur. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: clamp(56px, 7vw, 88px);
  margin-bottom: 0;

  padding: clamp(92px, 10vw, 126px) clamp(34px, 7vw, 108px)
           clamp(66px, 8vw, 96px);
  background: var(--home-hero-blue);
}

/* Vague blanche qui découpe le bord supérieur du bandeau. */
.discovery-v9::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: clamp(44px, 5vw, 72px);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1200 V38 C1030 75 875 28 690 48 C500 70 330 82 150 54 C92 45 43 47 0 55 Z' fill='%23fbfaf7'/%3E%3C/svg%3E")
    top center / 100% 100% no-repeat;
  pointer-events: none;
}

.discovery-v9-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.discovery-v9-copy h2 {
  margin: 0;
  color: var(--home-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.14;
}

.discovery-v9-copy .section-accent {
  width: 42px;
  margin: 16px 0 24px;
}

.discovery-v9-copy p {
  max-width: 680px;
  margin: 0 0 30px;
  color: var(--home-text);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.7;
}

/* CTA final : même forme que le bouton du hero, bleu puis vert au survol/clic. */
.discovery-v9-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 13px 23px;
  border: 0;
  border-radius: 999px;
  background: #73a5ba !important;
  color: #ffffff !important;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.discovery-v9-button:hover,
.discovery-v9-button:focus-visible,
.discovery-v9-button:active {
  background: var(--home-green) !important;
  color: #ffffff !important;
}

.discovery-v9-button:active {
  transform: translateY(1px);
}

.discovery-v9-button span {
  font-size: 1.35em;
  line-height: 1;
}

.discovery-v9-visual {
  min-height: clamp(190px, 20vw, 280px);
  width: 100%;
}

@media (max-width: 850px) {
  .discovery-v9 {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 88px 28px 62px;
  }

  .discovery-v9-visual {
    min-height: 110px;
  }
}

@media (max-width: 560px) {
  .discovery-v9 {
    padding: 80px 22px 52px;
  }

  .discovery-v9-visual {
    min-height: 80px;
  }
}


/* ==========================================================
   Accueil — reconstruction visuelle validée (septembre 2026)
   Surcouche ciblée : header, hero, vignettes et appel découverte.
   ========================================================== */

/* Le blanc du bandeau doit se fondre exactement avec celui du logo. */
.home-header {
  background: #ffffff;
}

/* Hero entièrement typographique : aucune ancienne colonne image. */
.hero-v2 {
  display: block;
  min-height: auto;
  padding: clamp(58px, 6.2vw, 92px) clamp(28px, 6vw, 116px)
           clamp(105px, 9vw, 142px);
}

.hero-content-v2 {
  width: 100%;
  max-width: 1500px;
}

.hero-content-v2 h1 {
  width: min(100%, 1460px);
  max-width: 1460px;
  margin: 0 0 30px;
  font-size: clamp(3.2rem, 4.55vw, 5.45rem);
  line-height: 1.03;
  letter-spacing: -0.026em;
}

/* Un seul trait vert sous le titre. */
.hero-content-v2 h1::after {
  content: "" !important;
  display: block !important;
  width: 72px;
  height: 2px;
  margin-top: 30px;
  background: var(--home-green);
}

.hero-content-v2 .lead {
  width: min(100%, 790px);
  max-width: 790px;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.62;
}

.hero-content-v2 .hero-actions {
  margin-top: 28px;
}

.hero-cta {
  background: #73a5ba !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.hero-cta:hover,
.hero-cta:focus-visible,
.hero-cta:active {
  background: var(--home-green) !important;
  color: #ffffff !important;
}

.hero-visual-v2 {
  display: none !important;
}

/* Les trois illustrations restent au-dessus du texte, centrées et comparables. */
.service-v2-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 178px;
  margin-bottom: 22px;
}

.service-v2-visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: 230px;
  max-height: 168px;
  object-fit: contain;
  object-position: center;
}

/* Ajustements optiques propres aux proportions des trois aquarelles. */
.service-v2:nth-child(1) .service-v2-visual img { max-width: 180px; max-height: 166px; }
.service-v2:nth-child(2) .service-v2-visual img { max-width: 205px; max-height: 166px; }
.service-v2:nth-child(3) .service-v2-visual img { max-width: 220px; max-height: 160px; }

/* Appel découverte : illustration ample mais entièrement contenue dans sa moitié. */
.discovery-v9 {
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(34px, 4vw, 68px);
}

.discovery-v9-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 300px;
  overflow: visible;
}

.discovery-v9-visual img {
  display: block;
  width: min(100%, 900px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .hero-content-v2 h1 {
    width: min(100%, 1120px);
    font-size: clamp(3rem, 5.7vw, 4.7rem);
  }

  .discovery-v9 {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.95fr);
  }
}

@media (max-width: 850px) {
  .hero-v2 {
    padding: 52px 28px 104px;
  }

  .hero-content-v2 h1 {
    width: 100%;
    font-size: clamp(2.65rem, 7.8vw, 4.25rem);
  }

  .discovery-v9 {
    grid-template-columns: 1fr;
  }

  .discovery-v9-visual {
    min-height: 0;
    width: min(100%, 760px);
    margin: 4px auto 0;
  }
}

@media (max-width: 560px) {
  .hero-v2 {
    padding: 44px 22px 90px;
  }

  .hero-content-v2 h1 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    line-height: 1.04;
  }

  .hero-content-v2 h1::after {
    width: 52px;
    margin-top: 24px;
  }

  .service-v2-visual {
    height: 160px;
  }
}

@media (max-width: 980px) {
  .reflexive-v6-visual {
    width: clamp(112px, 20vw, 150px);
  }
}

@media (max-width: 650px) {
  .reflexive-v6-visual {
    width: 132px;
    margin-bottom: 18px;
  }
}

/* Navigation accueil — menu Accompagnement aligné sur programmes.html */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0 9px;
  border: 0;
  background: transparent;
  color: #1e2a37;
  font: inherit;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--home-green);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after,
.nav-dropdown-toggle.is-current::after {
  width: 100%;
}

.nav-dropdown-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 50%;
  min-width: 245px;
  padding: 9px 0;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 55, 95, 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.home-header .nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--home-text);
  white-space: nowrap;
}

.home-header .nav-dropdown-menu a::after {
  display: none;
}

.home-header .nav-dropdown-menu a:hover,
.home-header .nav-dropdown-menu a:focus-visible,
.home-header .nav-dropdown-menu a.is-current {
  background: var(--home-hero-blue);
  color: var(--home-navy);
}

@media (max-width: 700px) {
  .nav-dropdown {
    width: 100%;
    display: block;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 0;
  }

  .nav-dropdown-toggle::after {
    left: 0;
    transform: none;
  }

  .nav-dropdown:hover .nav-dropdown-toggle::after,
  .nav-dropdown:focus-within .nav-dropdown-toggle::after,
  .nav-dropdown-toggle.is-current::after {
    width: 48px;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    padding: 4px 0 4px 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
  }

  .home-header .nav-dropdown-menu a {
    padding: 8px 0;
    white-space: normal;
  }
}

/* Correction ciblée : sous-menu dans le flux à 390 px. */
@media (max-width: 700px) {
  .main-nav .nav-dropdown { width: 100%; min-width: 0; }
  .main-nav .nav-dropdown-menu {
    position: static; left: 0; right: auto; top: auto;
    width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
    margin: 0; padding: 4px 0 4px 18px;
    transform: none !important;
  }
  .main-nav .nav-dropdown-menu a { white-space: normal; overflow-wrap: anywhere; }
}
