/* Page service — Codéveloppement v1 */

.service-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) clamp(28px, 6vw, 92px) clamp(122px, 12vw, 158px);
  background: var(--home-hero-blue);
}

.service-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -2%;
  bottom: -1px;
  height: clamp(46px, 5.5vw, 78px);
  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='%23ffffff'/%3E%3C/svg%3E")
    bottom center / 100% 100% no-repeat;
  pointer-events: none;
}

.service-kicker {
  margin: 0 0 14px;
  color: var(--home-green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.service-hero h1 {
  margin: 0;
  color: var(--home-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 5.2vw, 5.7rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.service-accent {
  display: block;
  width: 42px;
  height: 2px;
  margin: 18px 0 24px;
  background: var(--home-green);
}

.service-hero-text {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--home-text);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.72;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 13px 23px;
  border-radius: 999px;
  background: #73a5ba;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.service-cta:hover,
.service-cta:focus-visible,
.service-cta:active {
  background: var(--home-green);
  color: #fff;
}

.service-cta:active { transform: translateY(1px); }

.service-hero-visual,
.service-discovery-visual {
  min-height: clamp(280px, 32vw, 470px);
}

.service-visual-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
  background:
    radial-gradient(circle at 42% 38%, rgba(115, 165, 186, 0.14), transparent 30%),
    radial-gradient(circle at 60% 64%, rgba(113, 142, 72, 0.10), transparent 34%);
}

.service-section {
  padding: clamp(72px, 9vw, 118px) clamp(28px, 6vw, 92px);
}

.service-section-heading h2,
.details-title h2 {
  margin: 0;
  color: var(--home-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.2vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
}

.service-section-heading.centered {
  text-align: center;
}

.service-section-heading.centered .service-accent {
  margin-left: auto;
  margin-right: auto;
}

.service-path {
  background: #fff;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 54px);
  max-width: 1240px;
  margin: clamp(54px, 6vw, 78px) auto 0;
}

.path-step {
  position: relative;
  text-align: center;
}

.path-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(50% + 44px);
  width: calc(100% - 54px);
  border-top: 1px dashed #9db7c6;
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #eef1f2;
  color: var(--home-text);
  font-size: 0.85rem;
}

.step-visual {
  height: 98px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 50% 60%, rgba(113, 142, 72, .12), transparent 32%),
    radial-gradient(circle at 45% 42%, rgba(115, 165, 186, .11), transparent 26%);
}

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

.path-step p {
  max-width: 240px;
  margin: 0 auto;
  line-height: 1.65;
  font-size: 0.94rem;
}

.service-details {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(56px, 8vw, 120px);
  background: #f7f6f2;
}

.details-title {
  align-self: center;
}

.details-list {
  border-top: 1px solid var(--home-line);
}

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

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

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

.accordion-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;
}

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

.accordion-content {
  padding: 0 48px 24px 0;
  color: var(--home-text);
  line-height: 1.7;
}

.accordion-content p {
  margin: 0 0 16px;
}

.accordion-content ul {
  margin: 0;
  padding-left: 1.2rem;
}

.accordion-content li + li {
  margin-top: 8px;
}

.service-audience {
  background: var(--home-paper);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1320px;
  margin: clamp(46px, 6vw, 70px) auto 0;
}

.audience-item {
  min-width: 0;
  padding: 0 clamp(18px, 2.6vw, 34px);
  text-align: center;
}

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

.audience-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  color: var(--home-green-dark);
  font-size: 2.25rem;
  font-family: Georgia, "Times New Roman", serif;
}

.audience-item p {
  margin: 0;
  line-height: 1.58;
  font-size: 0.93rem;
}

.service-discovery {
  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;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(94px, 10vw, 128px) clamp(34px, 7vw, 108px) clamp(68px, 8vw, 98px);
  background: var(--home-hero-blue);
}

.service-discovery::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;
}

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

.service-discovery 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;
}

.service-discovery p {
  max-width: 720px;
  margin: 0 0 30px;
  line-height: 1.7;
}

/* Menu déroulant Accompagnement */
.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: 980px) {
  .service-hero {
    grid-template-columns: 1fr;
    padding-bottom: 122px;
  }

  .service-hero-visual {
    min-height: 260px;
  }

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

  .path-step:nth-child(2)::after {
    display: none;
  }

  .service-details {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .details-title {
    align-self: start;
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 0;
  }

  .audience-item:nth-child(odd) {
    border-left: 0;
  }

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

  .service-discovery-visual {
    min-height: 120px;
  }
}

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

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

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

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

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

@media (max-width: 620px) {
  .service-hero,
  .service-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .path-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .path-step::after {
    display: none !important;
  }

  .audience-item {
    padding: 24px 0;
  }

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

  .accordion-content {
    padding-right: 0;
  }

  .service-discovery {
    padding-left: 22px;
    padding-right: 22px;
  }
}


/* Correction centrage explicite du titre Le parcours */
.service-path > .service-section-heading.centered {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
}

.service-path > .service-section-heading.centered h2 {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
}

.service-path > .service-section-heading.centered .service-accent {
  margin-left: auto;
  margin-right: auto;
}


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


/* v2.1 — Header blanc pour supprimer la démarcation autour du logo */
.site-header.home-header {
  background: #ffffff !important;
}


/* Codéveloppement : parcours en cinq étapes */
.path-intro {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--home-text);
  font-size: 1rem;
  line-height: 1.7;
}

.path-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.path-grid-five .path-step h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.68rem);
}

.path-grid-five .path-step p {
  max-width: 215px;
}

@media (max-width: 1120px) {
  .path-grid-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .path-grid-five .path-step::after { display: none; }
}

@media (max-width: 760px) {
  .path-grid-five { grid-template-columns: 1fr; }
}


/* v1.1 — Harmonisation des accordéons */
.accordion-content {
  padding: 0 48px 26px 0;
  color: var(--home-text);
  font-size: 1rem;
  line-height: 1.7;
}

.accordion-content p,
.accordion-content ul {
  margin-top: 0;
  margin-bottom: 16px;
}

.accordion-content p:last-child,
.accordion-content ul:last-child {
  margin-bottom: 0;
}

.accordion-content ul {
  padding-left: 1.25rem;
}

.accordion-content li {
  margin: 0;
  line-height: 1.7;
}

.accordion-content li + li {
  margin-top: 6px;
}

/* Garder le titre de la section audience sur une ligne lorsque la largeur le permet. */
.audience-heading-nowrap {
  white-space: nowrap;
  font-size: clamp(1.95rem, 2.8vw, 3rem) !important;
}

@media (max-width: 900px) {
  .audience-heading-nowrap {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .accordion-content {
    padding-right: 0;
  }
}


/* v1.2 — Gabarit CTA commun : mêmes dimensions que le bandeau de l'accueil v9.1 */
.service-discovery {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(44px, 7vw, 96px);
  padding: clamp(92px, 10vw, 126px) clamp(34px, 7vw, 108px)
           clamp(66px, 8vw, 96px);
}

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

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


/* v1.3 — Correction de hauteur du bandeau pour correspondre à l'accueil */
.service-discovery {
  margin-top: clamp(56px, 7vw, 88px);
}

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

@media (max-width: 850px) {
  .service-discovery-visual {
    min-height: 110px;
  }
}

@media (max-width: 560px) {
  .service-discovery-visual {
    min-height: 80px;
  }
}


/* Codéveloppement — intégration visuelle validable : héros, Parcours et appel découverte */
.service-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-hero-illustration {
  display: block;
  width: min(118%, 850px);
  max-width: none;
  height: auto;
  object-fit: contain;
}

/* Parcours — même composant validé sur Coaching, adapté à cinq étapes. */
.service-path {
  padding-top: clamp(68px, 8vw, 104px);
  padding-bottom: clamp(76px, 8vw, 112px);
}
.path-grid.path-grid-five {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  max-width: 1480px;
  margin: clamp(48px, 5.5vw, 70px) auto 0;
}
.path-grid-five .path-step {
  position: relative;
  text-align: center;
}
.path-grid-five .path-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 52px;
  left: calc(50% + 64px);
  width: calc(100% + clamp(24px, 3vw, 48px) - 128px);
  height: 8px;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M1 6 C55 2 95 10 150 6 S245 3 299 6' fill='none' stroke='%2373A5BA' stroke-opacity='.72' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.path-grid-five .path-step:nth-child(even)::after { transform: scaleY(-1); }
.path-grid-five .path-marker {
  position: relative;
  z-index: 1;
  width: 108px;
  height: 104px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.path-grid-five .path-marker::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: transparent;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.path-grid-five .path-step:nth-child(1) .path-marker::before { background-image: url("../images/lavis-parcours-1.png"); }
.path-grid-five .path-step:nth-child(2) .path-marker::before { background-image: url("../images/lavis-parcours-2.png"); }
.path-grid-five .path-step:nth-child(3) .path-marker::before { background-image: url("../images/lavis-parcours-3.png"); }
.path-grid-five .path-step:nth-child(4) .path-marker::before { background-image: url("../images/lavis-parcours-4.png"); }
.path-grid-five .path-step:nth-child(5) .path-marker::before { background-image: url("../images/lavis-parcours-5.png"); }
.path-grid-five .path-marker::after { display: none; }
.path-grid-five .step-number {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: #17375f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
}
.path-grid-five .path-step h3 {
  margin: 0 0 12px;
  color: #17375f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 1.65vw, 1.72rem);
  font-weight: 400;
  line-height: 1.15;
}
.path-grid-five .path-step p {
  max-width: 235px;
  margin: 0 auto;
  line-height: 1.62;
  font-size: .96rem;
}

.service-discovery-visual {
  min-height: clamp(240px, 28vw, 390px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-discovery-illustration {
  display: block;
  width: min(100%, 760px);
  height: auto;
  object-fit: contain;
}
.service-discovery { grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); }

@media (max-width: 1120px) {
  .path-grid.path-grid-five { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 56px; }
  .path-grid-five .path-step::after { display: none; }
}
@media (max-width: 980px) {
  .service-hero-illustration { width: min(82vw, 660px); }
  .service-discovery { grid-template-columns: 1fr; }
  .service-discovery-visual { min-height: 220px; }
  .service-discovery-illustration { width: min(88vw, 720px); }
}
@media (max-width: 760px) {
  .path-grid.path-grid-five { grid-template-columns: 1fr; gap: 38px; }
  .path-grid-five .path-step { max-width: 420px; margin-inline: auto; }
  .path-grid-five .path-step p { max-width: 340px; }
  .path-grid-five .path-marker { margin-bottom: 14px; }
}
@media (max-width: 620px) {
  .service-hero-visual { min-height: 210px; }
  .service-hero-illustration { width: min(94vw, 520px); }
  .service-discovery-visual { min-height: 170px; }
  .service-discovery-illustration { width: min(96vw, 600px); }
}

/* v2.3 — agrandissement visuel ciblé du héros, sans incidence sur sa géométrie */
@media (min-width: 981px) {
  .service-hero-illustration {
    transform: scale(1.22);
    transform-origin: center center;
  }
}


/* Responsive intermédiaire — transition progressive du héros entre tablette et grand écran. */
@media (min-width: 981px) and (max-width: 1050px) {
  .service-hero-illustration { transform: scale(1.04); }
}
@media (min-width: 1051px) and (max-width: 1120px) {
  .service-hero-illustration { transform: scale(1.10); }
}
@media (min-width: 1121px) and (max-width: 1180px) {
  .service-hero-illustration { transform: scale(1.16); }
}

/* Responsive v3 — micro-correction de l’espace entre le contenu et l’illustration. */
@media (min-width: 621px) and (max-width: 980px) {
  .service-hero { gap: 0; }
  .service-hero-visual { min-height: 230px; }
}

/* 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; }
}

/* v5 : limiter le débordement du texte du héros sur petit mobile uniquement. */
@media (max-width: 420px) {
  .service-hero > div:first-child { min-width: 0; max-width: 100%; }
  .service-hero h1 {
    font-size: clamp(2.3rem, 10.2vw, 2.7rem);
    overflow-wrap: anywhere;
  }
  .service-hero-text { max-width: 100%; overflow-wrap: break-word; }
}

/* v6 — largeur réelle du héros sur les navigateurs Android étroits. */
@media (max-width: 420px) {
  .service-hero { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .service-hero-copy { min-width: 0; width: 100%; max-width: 100%; }
  .service-hero h1 {
    max-width: 100%;
    font-size: min(10vw, 2.3rem);
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .service-hero-text { width: 100%; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
}

/* v7 — entre 421 et 620 px, préserver la largeur utile du héros.
   Les correctifs v5/v6 ne couvraient pas cette plage (Android 432 px). */
@media (min-width: 421px) and (max-width: 620px) {
  .service-hero { grid-template-columns: minmax(0, 1fr); }
  .service-hero-copy { min-width: 0; max-width: 100%; }
  .service-hero h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 8.5vw, 2.7rem);
    overflow-wrap: anywhere;
  }
  .service-hero-text {
    max-width: 100%;
    overflow-wrap: break-word;
  }
}
