/* ============================================
   ACCOMPAGNEMENT - Un fil sur douze mois
   ============================================ */

.acc-page {
  --acc-blue: #203267;
  --acc-deep: #16234d;
  --acc-gold: #d99b2b;
  --acc-paper: #faf8f3;
  --acc-soft: #eef2f8;
  --acc-line: rgba(32, 50, 103, .12);
  overflow: clip;
  background: var(--acc-paper);
}

.acc-page ul { list-style: none; }
.acc-eyebrow { display: inline-flex; align-items: center; gap: .7rem; color: var(--color-or-sombre); font-size: .66rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.acc-eyebrow::before { content: ''; width: 1.8rem; height: 1px; background: currentColor; }
.acc-eyebrow--light { color: var(--color-or-clair); }
.acc-text-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--acc-blue); font-size: .8rem; font-weight: 700; }
.acc-text-link span { transition: translate .25s ease; }
.acc-text-link:hover span { translate: 0 3px; }
.acc-wave { position: absolute; left: -4%; right: -4%; pointer-events: none; }

/* Hero */
.acc-hero { position: relative; min-height: 920px; padding: calc(74px + 2.7rem) 0 8rem; background: radial-gradient(circle at 10% 24%, rgba(217, 155, 43, .14), transparent 25%), radial-gradient(circle at 88% 74%, rgba(181, 202, 232, .34), transparent 30%), linear-gradient(145deg, #fbfaf7, #f0f3f8 72%, #faf8f3); isolation: isolate; }
.acc-hero__grid-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(32, 50, 103, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(32, 50, 103, .028) 1px, transparent 1px); background-size: 94px 94px; mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent); }
.acc-breadcrumb { display: flex; align-items: center; gap: .5rem; margin-bottom: 2.4rem; color: var(--color-texte-tres-doux); font-size: .66rem; }
.acc-breadcrumb a { color: var(--color-texte-doux); }
.acc-breadcrumb strong { color: var(--acc-blue); font-weight: 650; }
.acc-breadcrumb span { color: rgba(32, 50, 103, .24); }
.acc-hero__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .78fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.acc-hero__copy h1 { max-width: 760px; margin-top: 1rem; color: var(--acc-blue); font-size: clamp(3.5rem, 6.4vw, 6.2rem); line-height: .94; letter-spacing: -.045em; }
.acc-hero__copy h1 em { display: block; color: var(--color-or-sombre); font-style: normal; }
.acc-hero__copy > p { max-width: 680px; margin-top: 1.5rem; color: var(--color-texte-doux); font-size: clamp(.98rem, 1.35vw, 1.12rem); line-height: 1.72; }
.acc-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.7rem; }
.acc-hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 620px; margin-top: 3.2rem; padding-top: 1.2rem; border-top: 1px solid var(--acc-line); text-align: center; }
.acc-hero__facts li { display: flex; flex-direction: column; }
.acc-hero__facts li + li { border-left: 1px solid var(--acc-line); }
.acc-hero__facts strong { color: var(--acc-blue); font-family: var(--font-titre); font-size: 1.1rem; }
.acc-hero__facts span { color: var(--color-texte-tres-doux); font-size: .6rem; }
.acc-wave--hero { bottom: -1px; height: 54px; border-radius: 50% 50% 0 0 / 65% 65% 0 0; background: var(--acc-blue); }

.acc-year { position: relative; min-height: 520px; padding: 1.5rem; border: 1px solid rgba(32, 50, 103, .1); border-radius: 30px; background: rgba(255, 255, 255, .84); box-shadow: 0 28px 70px rgba(32, 50, 103, .12); backdrop-filter: blur(10px); }
.acc-year__top { display: flex; align-items: center; justify-content: space-between; color: var(--color-texte-tres-doux); font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; }
.acc-year__top strong { color: var(--acc-blue); font-family: var(--font-titre); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.acc-year__months { display: grid; grid-template-columns: repeat(12, 1fr); gap: .2rem; margin-top: 1.4rem; }
.acc-year__months span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: var(--color-texte-tres-doux); font-size: .5rem; }
.acc-year__months .is-start { background: var(--acc-gold); color: var(--acc-deep); font-weight: 800; }
.acc-year__line { position: relative; height: 2px; margin: 1rem .6rem 0; background: rgba(32, 50, 103, .1); }
.acc-year__line span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--acc-gold), var(--acc-blue)); transform: scaleX(var(--acc-hero-progress, .08)); transform-origin: left; transition: transform .12s linear; }
.acc-year__line i { position: absolute; left: calc(var(--acc-hero-progress, .08) * 100%); top: 50%; width: 12px; aspect-ratio: 1; translate: -50% -50%; border: 3px solid #fff; border-radius: 50%; background: var(--acc-gold); box-shadow: 0 0 0 6px rgba(217, 155, 43, .13); transition: left .12s linear; }
.acc-year__focus { margin-top: 2.2rem; padding: 2.2rem; border-radius: 20px; background: var(--acc-blue); color: #fff; }
.acc-year__focus small { color: var(--color-or-clair); font-size: .52rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.acc-year__focus strong { display: block; margin-top: .7rem; font-family: var(--font-titre); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.04; }
.acc-year__focus p { margin-top: 1rem; color: rgba(255, 255, 255, .62); font-size: .7rem; line-height: 1.55; }
.acc-year__footer { display: flex; justify-content: space-between; margin-top: 1.4rem; color: var(--color-texte-tres-doux); font-size: .52rem; text-transform: uppercase; letter-spacing: .07em; }

/* Realite */
.acc-reality { padding: 7.5rem 0 8rem; background: var(--acc-blue); color: #fff; }
.acc-reality__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.acc-reality__heading h2,
.acc-section-heading h2,
.acc-dialogue__copy h2,
.acc-practical__heading h2 { margin: .8rem 0 1rem; font-size: clamp(2.5rem, 4.6vw, 4.45rem); line-height: 1; letter-spacing: -.035em; }
.acc-reality__heading h2 { color: #fff; }
.acc-reality__heading p { max-width: 620px; color: rgba(255, 255, 255, .62); line-height: 1.7; }
.acc-reality__notes { border-top: 1px solid rgba(255, 255, 255, .12); }
.acc-reality__notes article { display: grid; grid-template-columns: 38px 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.acc-reality__notes span { color: var(--color-or-clair); font-size: .55rem; font-weight: 800; }
.acc-reality__notes p { color: rgba(255, 255, 255, .8); font-family: var(--font-titre); font-size: 1.05rem; line-height: 1.42; }

/* Parcours */
.acc-journey { padding: 7.5rem 0 8rem; background: linear-gradient(180deg, var(--acc-paper), var(--acc-soft), var(--acc-paper)); }
.acc-section-heading { max-width: 900px; margin-bottom: 3.5rem; }
.acc-section-heading h2 { color: var(--acc-blue); }
.acc-section-heading > p { max-width: 720px; color: var(--color-texte-doux); line-height: 1.7; }
.acc-journey__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; padding-top: 2.4rem; counter-reset: accStep; }
.acc-journey__rail { position: absolute; left: 2%; right: 2%; top: 0; height: 2px; background: rgba(32, 50, 103, .1); }
.acc-journey__rail span { display: block; width: calc(var(--acc-progress, 0) * 100%); height: 100%; background: linear-gradient(90deg, var(--acc-gold), var(--acc-blue)); transition: width .12s linear; }
.acc-journey__rail i { position: absolute; left: calc(var(--acc-progress, 0) * 100%); top: 50%; width: 13px; aspect-ratio: 1; translate: -50% -50%; border: 3px solid #fff; border-radius: 50%; background: var(--acc-gold); box-shadow: 0 0 0 6px rgba(217, 155, 43, .13); transition: left .12s linear; }
.acc-journey__step { position: relative; counter-increment: accStep; min-height: 320px; display: flex; flex-direction: column; padding: 1.65rem 1.5rem 1.4rem; border: 1px solid rgba(32, 50, 103, .08); border-radius: 22px; background: linear-gradient(180deg, #fff, #fcfbf7); box-shadow: 0 14px 34px rgba(32, 50, 103, .05); transition: transform .55s cubic-bezier(.22, 1, .36, 1), box-shadow .55s cubic-bezier(.22, 1, .36, 1), border-color .55s ease; will-change: transform; }
.acc-journey__step::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(150deg, var(--acc-gold), rgba(217, 155, 43, 0) 55%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .55s ease; pointer-events: none; }
.acc-journey__step::before { content: counter(accStep, decimal-leading-zero); position: absolute; top: 1.05rem; right: 1.3rem; font-family: var(--font-titre); font-size: 2.7rem; font-weight: 700; line-height: 1; color: rgba(32, 50, 103, .07); transition: color .5s ease, transform .55s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.acc-journey__step small { align-self: flex-start; padding: .34rem .62rem; border-radius: 100px; background: rgba(217, 155, 43, .1); color: var(--color-or-sombre); font-size: .5rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; transition: background .4s ease, color .4s ease; }
.acc-journey__step strong { margin-top: 1.35rem; color: var(--acc-blue); font-family: var(--font-titre); font-size: 1.4rem; line-height: 1.1; letter-spacing: -.01em; }
.acc-journey__step p { margin-top: .75rem; color: var(--color-texte-doux); font-size: .72rem; line-height: 1.6; }
.acc-journey__step > span { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--acc-line); color: var(--color-texte-tres-doux); font-size: .56rem; font-weight: 600; }
.acc-journey__step > span::before { content: ''; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: rgba(217, 155, 43, .45); transition: background .4s ease, box-shadow .4s ease; }

/* Survol (avant la mise en valeur au scroll) */
@media (hover: hover) {
  .acc-journey__step:not(.is-active):hover { transform: translateY(-5px); border-color: rgba(217, 155, 43, .22); box-shadow: 0 22px 46px rgba(32, 50, 103, .09); }
}

/* Carte franchie : discrète, teintée d'or */
.acc-journey__step.is-passed { border-color: rgba(217, 155, 43, .24); box-shadow: 0 16px 38px rgba(32, 50, 103, .06); }
.acc-journey__step.is-passed::before { color: rgba(217, 155, 43, .13); }

/* Carte active : soulevée, contour doré lumineux et halo */
.acc-journey__step.is-active { transform: translateY(-14px); border-color: transparent; box-shadow: 0 34px 60px -18px rgba(217, 155, 43, .45), 0 20px 46px rgba(32, 50, 103, .1); }
.acc-journey__step.is-active::after { opacity: 1; }
.acc-journey__step.is-active::before { color: rgba(217, 155, 43, .22); transform: translateY(-2px); }
.acc-journey__step.is-active small { background: var(--acc-gold); color: #fff; }
.acc-journey__step.is-active > span::before { background: var(--acc-gold); box-shadow: 0 0 0 4px rgba(217, 155, 43, .16); }

/* Exemple d'echange */
.acc-dialogue { position: relative; padding: 9rem 0; background: var(--acc-blue); color: #fff; }
.acc-wave--dialogue-top { top: -1px; height: 48px; border-radius: 0 0 50% 50% / 0 0 70% 70%; background: var(--acc-paper); }
.acc-wave--dialogue-bottom { bottom: -1px; height: 48px; border-radius: 50% 50% 0 0 / 70% 70% 0 0; background: var(--acc-paper); }
.acc-dialogue__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.acc-dialogue__copy h2 { color: #fff; }
.acc-dialogue__copy p { color: rgba(255, 255, 255, .62); line-height: 1.7; }
.acc-dialogue__flow { display: grid; gap: .5rem; }
.acc-dialogue__flow > span { color: var(--color-or-clair); font-size: .8rem; text-align: center; }
.acc-dialogue__flow article { padding: 1.35rem 1.5rem; border: 1px solid rgba(255, 255, 255, .11); border-radius: 16px; background: rgba(255, 255, 255, .06); }
.acc-dialogue__flow article:nth-of-type(2) { margin-inline: 2.2rem; background: rgba(217, 155, 43, .12); }
.acc-dialogue__flow small { color: var(--color-or-clair); font-size: .52rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.acc-dialogue__flow p { margin-top: .5rem; color: #fff; font-family: var(--font-titre); font-size: 1rem; line-height: 1.42; }

/* Elements apportes */
.acc-material { padding: 7rem 0 8rem; }
.acc-material__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.acc-material__grid article { min-height: 250px; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid rgba(32, 50, 103, .09); border-radius: 18px; background: #fff; box-shadow: 0 15px 36px rgba(32, 50, 103, .05); }
.acc-material__grid span { width: 32px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--acc-soft); color: var(--acc-blue); font-size: .52rem; font-weight: 800; }
.acc-material__grid article:nth-child(2) span,
.acc-material__grid article:nth-child(4) span { background: rgba(217, 155, 43, .16); }
.acc-material__grid h3 { margin-top: auto; color: var(--acc-blue); font-size: 1.25rem; }
.acc-material__grid p { margin-top: .45rem; color: var(--color-texte-doux); font-size: .68rem; line-height: 1.52; }

/* Cadre pratique */
.acc-practical { padding: 6.5rem 0; background: var(--acc-soft); }
.acc-practical__card { overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 25px 65px rgba(32, 50, 103, .09); }
.acc-practical__heading { padding: clamp(2rem, 4vw, 3.5rem); }
.acc-practical__heading h2 { max-width: 850px; color: var(--acc-blue); }
.acc-practical__facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--acc-line); }
.acc-practical__facts article { min-height: 150px; padding: 1.5rem; border-right: 1px solid var(--acc-line); }
.acc-practical__facts article:last-child { border-right: 0; }
.acc-practical__facts strong { color: var(--acc-blue); font-family: var(--font-titre); font-size: 1.15rem; }
.acc-practical__facts p { margin-top: .4rem; color: var(--color-texte-doux); font-size: .66rem; line-height: 1.5; }
.acc-practical__action { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem clamp(2rem, 4vw, 3.5rem); background: var(--acc-blue); }
.acc-practical__action p { color: rgba(255, 255, 255, .68); font-size: .74rem; }

/* Conclusion */
.acc-final { position: relative; overflow: hidden; padding: 8rem 0 10rem; text-align: center; }
.acc-final__rings { position: absolute; left: 50%; top: 50%; width: 650px; aspect-ratio: 1; translate: -50% -50%; border: 1px solid rgba(217, 155, 43, .16); border-radius: 50%; box-shadow: 0 0 0 110px rgba(181, 202, 232, .08); }
.acc-final__inner { position: relative; }
.acc-final h2 { max-width: 1020px; margin: 1rem auto; color: var(--acc-blue); font-size: clamp(3rem, 5.6vw, 5.2rem); line-height: .98; letter-spacing: -.035em; }
.acc-final p { color: var(--color-texte-doux); }
.acc-final__inner > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.3rem; margin-top: 2rem; }
.acc-final__link { color: var(--acc-blue); font-size: .76rem; font-weight: 700; }

@media (max-width: 1000px) {
  .acc-hero__layout,
  .acc-reality__grid,
  .acc-dialogue__grid { grid-template-columns: 1fr; }
  .acc-year { max-width: 650px; }
  .acc-material__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .acc-hero { min-height: auto; padding-top: calc(74px + 2.2rem); }
  .acc-hero__copy h1 { font-size: clamp(3rem, 12vw, 4.8rem); }
  .acc-year { min-height: auto; }
  .acc-journey__track { grid-template-columns: 1fr; gap: .7rem; padding: 0 0 0 1.5rem; }
  .acc-journey__rail { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .acc-journey__rail span { width: 100%; height: calc(var(--acc-progress, 0) * 100%); }
  .acc-journey__rail i { left: 50%; top: calc(var(--acc-progress, 0) * 100%); }
  .acc-journey__step { min-height: 230px; }
  .acc-practical__action { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .acc-hero { padding-top: calc(74px + 1.6rem); }
  .acc-breadcrumb { font-size: .58rem; }
  .acc-hero__actions { align-items: stretch; flex-direction: column; }
  .acc-hero__actions .btn { width: 100%; justify-content: center; }
  .acc-hero__facts strong { font-size: .95rem; }
  .acc-hero__facts span { font-size: .52rem; }
  .acc-year { padding: 1rem; border-radius: 22px; }
  .acc-year__months { gap: 0; }
  .acc-year__focus { padding: 1.5rem; }
  .acc-reality,
  .acc-journey,
  .acc-material { padding-block: 6rem; }
  .acc-reality__heading h2,
  .acc-section-heading h2,
  .acc-dialogue__copy h2,
  .acc-practical__heading h2 { font-size: 2.2rem; }
  .acc-dialogue { padding-block: 7rem; }
  .acc-dialogue__flow article:nth-of-type(2) { margin-inline: 0; }
  .acc-material__grid { grid-template-columns: 1fr; }
  .acc-material__grid article { min-height: 190px; }
  .acc-practical__facts { grid-template-columns: 1fr; }
  .acc-practical__facts article { min-height: 115px; border-right: 0; border-bottom: 1px solid var(--acc-line); }
  .acc-final h2 { font-size: 2.8rem; }
  .acc-final__inner > div { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .acc-year__line span,
  .acc-year__line i,
  .acc-journey__rail span,
  .acc-journey__rail i { transition: none !important; }
  .acc-journey__step { transition: none !important; }
  .acc-journey__step.is-active { transform: none; }
}
