/* ══════════════════════════════════════════════════
   LA COMPAGNIE DU RÉTABLISSEMENT
   parcours.css — Page Mon Parcours
   Univers : carnet annoté à la main
   ══════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════
   UTILITAIRES GLOBAUX (page parcours)
   ════════════════════════════════════════════════ */

/* Fade-in scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.is-visible { opacity: 1; transform: none; }

/* Mots colorés */
.ink-orange { color: #FF6F00; font-weight: 500; }
.ink-blue   { color: #009EE0; font-weight: 500; }

/* Soulignage SVG inline */
.ink-underline {
  position: relative;
  display: inline;
}
.ink-underline svg {
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 6px;
  overflow: visible;
  pointer-events: none;
}

/* Annotation manuscrite Kalam volante */
.parcours-annot {
  font-family: 'Kalam', cursive;
  font-style: normal;
  font-size: .92rem;
  position: absolute;
  opacity: .78;
  pointer-events: none;
  line-height: 1.3;
  user-select: none;
}
.parcours-annot--cerulean { color: #009EE0; }
.parcours-annot--orange   { color: #FF6F00; }

/* Doodle décoratif dans une période */
.period-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

/* SVG scatter inline (étoiles, points, flèches) */
.sk {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

/* Lien discret dans le texte */
.parcours-lien {
  color: #009EE0;
  font-weight: 500;
  border-bottom: 1px dashed #009EE0;
  transition: color .2s, border-color .2s;
}
.parcours-lien:hover { color: #FF6F00; border-color: #FF6F00; }
.parcours-lien--extern {
  color: #FF6F00;
  font-weight: 700;
  border-bottom: 2px solid #FF6F00;
  background: rgba(255,111,0,.07);
  padding: 1px 5px;
  border-radius: 3px;
}
.parcours-lien--extern:hover { color: #c45500; border-color: #c45500; background: rgba(255,111,0,.13); }


/* ════════════════════════════════════════════════
   S1 — HERO
   Fond crème · photo cercle · texte Kalam
   ════════════════════════════════════════════════ */
.parcours-hero {
  background-color: #F5F0E8;
  background-image:
    repeating-linear-gradient(
      transparent, transparent 31px,
      rgba(140,110,75,.07) 31px, rgba(140,110,75,.07) 32px
    ),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(0,158,224,.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 15% 30%, rgba(255,111,0,.06) 0%, transparent 65%);
  padding: 7rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

/* Marge rouge carnet */
.parcours-hero::before {
  content: '';
  position: absolute;
  top: 0; left: clamp(3.5rem, 6.5vw, 7rem);
  bottom: 0; width: 1px;
  background: rgba(200,60,60,.16);
  pointer-events: none;
}

.parcours-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

/* ── Photo 40% ── */
.parcours-hero__photo-wrap {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.parcours-hero__photo-circle {
  /* Portrait large — chapeau visible */
  width: clamp(240px, 30vw, 340px);
  height: clamp(300px, 38vw, 430px);
  border-radius: 18px;
  object-fit: cover;
  object-position: center top; /* ancre sur le haut (chapeau) */
  position: relative;
  z-index: 1;
  display: block;
  box-shadow:
    0 4px 24px rgba(37,58,109,.16),
    0 0 0 3px rgba(255,111,0,.18);
}

/* Doodles autour de la photo */
.hero-photo-doodle {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

/* ── Texte 60% ── */
.parcours-hero__text {
  flex: 1;
  position: relative;
}

.parcours-hero__phrase {
  font-family: 'Kalam', cursive;
  font-style: normal;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: #253A6D;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.parcours-hero__phrase .en-dessous {
  color: #FF6F00;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.parcours-hero__sous-titre {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: .9rem;
  color: #009EE0;
  letter-spacing: .04em;
}


/* ════════════════════════════════════════════════
   S2 — ICEBERG
   Fond navy · visuel centré · légende crème
   ════════════════════════════════════════════════ */
.parcours-iceberg {
  background: #253A6D;
  padding: 4rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.parcours-iceberg__visuel {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.3));
}

.parcours-iceberg__legende {
  font-family: 'Kalam', cursive;
  font-style: normal;
  color: rgba(245,240,232,.95);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}


/* ════════════════════════════════════════════════
   S3 — INTRO TEXTE
   Fond crème · citation + paragraphes + invitation
   ════════════════════════════════════════════════ */
.parcours-intro {
  background: #F5F0E8;
  padding: 2.5rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.parcours-intro__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

/* Guillemets décoratifs */
.parcours-intro__citation-wrap {
  position: relative;
  margin-bottom: 1.2rem;
}

.parcours-intro__guillemet {
  font-family: 'Kalam', cursive;
  font-style: normal;
  font-size: 4rem;
  color: #009EE0;
  line-height: 1;
  opacity: .35;
  user-select: none;
  display: block;
  margin-bottom: .2rem;
}

.parcours-intro__citation {
  font-family: 'Kalam', cursive;
  font-style: normal;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #253A6D;
  line-height: 1.75;
}

.parcours-intro__para {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: #3a3a4a;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.parcours-intro__invite {
  font-family: 'Kalam', cursive;
  font-style: normal;
  font-size: 1.15rem;
  color: #FF6F00;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* Flèche SVG pointant vers le bas */
.parcours-intro__arrow {
  display: block;
  margin: 0 auto;
  animation: arrow-bounce .8s ease-in-out infinite alternate;
}
@keyframes arrow-bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(6px); }
}


/* ════════════════════════════════════════════════
   S4 — TIMELINE ACCORDÉON
   Fond crème ligné · fil SVG · 11 périodes
   ════════════════════════════════════════════════ */
.parcours-timeline {
  background-color: #F5F0E8;
  background-image: repeating-linear-gradient(
    transparent, transparent 27px,
    rgba(140,110,75,.05) 27px, rgba(140,110,75,.05) 28px
  );
  padding: 2.5rem 1.5rem 4rem;
  position: relative;
}

/* Section title */
.parcours-timeline__titre {
  font-family: 'Kalam', cursive;
  font-style: normal;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #253A6D;
  text-align: center;
  margin-bottom: 1.75rem;
  position: relative;
}

/* Wrapper : fil à gauche + contenu à droite */
.timeline-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

/* ── Fil SVG ── */
.timeline-fil {
  width: 80px;
  flex-shrink: 0;
  position: relative;
  align-self: stretch;
}

#fil-svg {
  display: block;
  width: 80px;
  overflow: visible;
}

.fil-dot {
  transition: r .3s ease, fill .3s ease, opacity .3s ease;
  filter: drop-shadow(0 2px 4px rgba(37,58,109,.25));
}

/* ── Contenu ── */
.timeline-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 8px;
}

/* ── Période ── */
.period {
  position: relative;
}

/* En-tête cliquable */
.period-header {
  cursor: pointer;
  padding: 18px 22px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 4px solid #009EE0;
  transition: border-color .3s ease, transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 2px 8px rgba(37,58,109,.08);
  width: 100%;
  text-align: left;
  border-top: none; border-right: none; border-bottom: none;
  outline: none;
}
.period.active .period-header { border-left-color: #FF6F00; }
.period--bonus .period-header  { border-left-color: #C9A84C; }

.period-header:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(37,58,109,.12); }
.period-header:focus-visible {
  outline: 2px solid #009EE0;
  outline-offset: 2px;
}

/* Numéro / icône */
.period-num {
  font-family: 'Kalam', cursive;
  font-style: normal;
  font-size: 1.6rem;
  color: #009EE0;
  min-width: 2rem;
  text-align: center;
  flex-shrink: 0;
  transition: color .3s;
}
.period.active .period-num { color: #FF6F00; }
.period--bonus .period-num  { color: #C9A84C; }

/* Titre + sous-titre */
.period-titles { flex: 1; }
.period-title {
  font-family: 'Kalam', cursive;
  font-style: normal;
  font-size: 1.3rem;
  color: #253A6D;
  display: block;
  line-height: 1.3;
}
.period-subtitle {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: #009EE0;
  display: block;
  margin-top: 2px;
}

/* Chevron */
.period-chevron {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 1.5rem;
}
.period-chevron svg {
  width: 100%;
  height: auto;
  transition: transform .3s ease;
}
.period.active .period-chevron svg { transform: rotate(180deg); }

/* Corps accordéon */
.period-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
}

.period-inner {
  padding: 20px 24px 24px;
  background: #F5F0E8;
  border-radius: 0 0 12px 12px;
  border: 1px solid rgba(37,58,109,.06);
  border-top: none;
  position: relative;
}

.period-inner p {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: #3a3a4a;
  line-height: 1.82;
  margin-bottom: 1rem;
}
.period-inner p:last-of-type { margin-bottom: 0; }

/* Annotation dans une période */
.period-annot {
  font-family: 'Kalam', cursive;
  font-style: normal;
  font-size: .92rem;
  position: absolute;
  opacity: .78;
  pointer-events: none;
  right: 1.2rem;
  bottom: 1rem;
  line-height: 1.3;
}
.period-annot--cerulean { color: #009EE0; }
.period-annot--orange   { color: #FF6F00; }
.period-annot--rot-n2   { transform: rotate(-2deg); }
.period-annot--rot-p2   { transform: rotate(2deg); }
.period-annot--rot-n3   { transform: rotate(-3deg); }

/* Asset décoratif dans une période */
.period-asset {
  position: absolute;
  pointer-events: none;
  user-select: none;
}


/* ════════════════════════════════════════════════
   S4b — BONUS GOODIES
   Fond kraft · 2 cartes anecdotes hors timeline
   ════════════════════════════════════════════════ */
.parcours-bonus {
  background-color: #E8E0D0;
  background-image: repeating-linear-gradient(
    transparent, transparent 27px,
    rgba(140,110,75,.05) 27px, rgba(140,110,75,.05) 28px
  );
  padding: 4rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.parcours-bonus__inner {
  max-width: 820px;
  margin: 0 auto;
}

/* En-tête zone bonus */
.parcours-bonus__header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.parcours-bonus__label {
  font-family: 'Kalam', cursive;
  font-style: normal;
  font-size: 1.1rem;
  color: #C9A84C;
  letter-spacing: .5em;
  opacity: .75;
  margin-bottom: .5rem;
}

.parcours-bonus__titre {
  font-family: 'Kalam', cursive;
  font-style: normal;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  color: #253A6D;
  margin-bottom: .6rem;
}

.parcours-bonus__sous-titre {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: .9rem;
  color: rgba(37,58,109,.75);
  line-height: 1.6;
}

/* Cartes côte à côte (desktop) */
.parcours-bonus__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

/* ── Carte goodie ── */
.goodie {
  position: relative;
}

.goodie__header {
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: rgba(255,255,255,.55);
  border-radius: 12px;
  border-left: 4px solid #C9A84C;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: background .25s ease, transform .25s ease;
  border-top: none; border-right: none; border-bottom: none;
  outline: none;
}
.goodie__header:hover { background: rgba(255,255,255,.80); transform: translateX(3px); }
.goodie__header:focus-visible { outline: 2px solid #C9A84C; outline-offset: 2px; }
.goodie.active .goodie__header { background: rgba(255,255,255,.80); }

.goodie__icon {
  font-family: 'Kalam', cursive;
  font-style: normal;
  font-size: 1.2rem;
  color: #C9A84C;
  flex-shrink: 0;
  line-height: 1.4;
}

.goodie__titles { flex: 1; }

.goodie__title {
  font-family: 'Kalam', cursive;
  font-style: normal;
  font-size: 1.05rem;
  color: #253A6D;
  display: block;
  line-height: 1.3;
  margin-bottom: 2px;
}

.goodie__subtitle {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: .90rem;
  color: rgba(37,58,109,.75);
  display: block;
  line-height: 1.5;
}

.goodie__chevron {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 1.4rem;
  padding-top: 2px;
}
.goodie__chevron svg { width: 100%; height: auto; transition: transform .3s ease; }
.goodie.active .goodie__chevron svg { transform: rotate(180deg); }

/* Corps goodie */
.goodie__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
}

.goodie__inner {
  padding: 16px 20px 20px;
  background: rgba(255,255,255,.38);
  border-radius: 0 0 12px 12px;
  border-left: 4px solid rgba(201,168,76,.40);
  position: relative;
}

.goodie__inner p {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: .92rem;
  color: #3a3a4a;
  line-height: 1.82;
  margin-bottom: .9rem;
}
.goodie__inner p:last-of-type { margin-bottom: 0; }

/* Responsive goodies */
@media (max-width: 640px) {
  .parcours-bonus__cards { grid-template-columns: 1fr; gap: 1rem; }
}


/* ════════════════════════════════════════════════
   S5 — BUREAU MANGA
   Fond navy · image full-width · question overlay
   ════════════════════════════════════════════════ */
.parcours-bureau {
  background: #253A6D;
  position: relative;
  overflow: hidden;
}

.parcours-bureau__img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  opacity: .88;
}

.parcours-bureau__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2.5rem;
  background: linear-gradient(
    to top,
    rgba(37,58,109,.80) 0%,
    rgba(37,58,109,.25) 50%,
    transparent 100%
  );
}

.parcours-bureau__question {
  font-family: 'Kalam', cursive;
  font-style: normal;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: #F5F0E8;
  text-align: center;
  text-shadow: 0 2px 12px rgba(37,58,109,.9);
  max-width: 700px;
  line-height: 1.5;
}


/* ════════════════════════════════════════════════
   S6 — CTA DISCRET
   Fond crème · centré · bouton navy
   ════════════════════════════════════════════════ */
.parcours-cta {
  background: #F5F0E8;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
}

.parcours-cta__inner {
  max-width: 500px;
  margin: 0 auto;
}

.parcours-cta__phrase {
  font-family: 'Kalam', cursive;
  font-style: italic;
  font-size: 1.2rem;
  color: #253A6D;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.parcours-cta__btn {
  display: inline-block;
  background: #253A6D;
  color: #F5F0E8;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Lexend', sans-serif;
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  margin: 16px 0;
  transition: background .3s ease, transform .2s ease;
}
.parcours-cta__btn:hover {
  background: #009EE0;
  transform: translateY(-2px);
}

.parcours-cta__detail {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: .92rem;
  color: #009EE0;
  letter-spacing: .02em;
}

/* Doodles SVG discrets dans CTA */
.cta-sk {
  position: absolute;
  pointer-events: none;
}


/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Hero : photo centrée, texte dessous */
  .parcours-hero__inner {
    flex-direction: column;
    text-align: center;
  }
  .parcours-hero__photo-wrap { flex: unset; width: 100%; }
  .parcours-hero__photo-circle {
    width: clamp(200px, 55vw, 280px);
    height: clamp(260px, 70vw, 350px);
    margin: 0 auto;
  }

  /* Timeline : fil plus étroit */
  .timeline-fil { width: 40px; }
  #fil-svg      { width: 40px; }
  .fil-dot      { cx: 20; }

  /* Annotations masquées */
  .parcours-annot, .period-annot { display: none; }

  /* Period header titre réduit */
  .period-title    { font-size: .98rem; }
  .period-subtitle { font-size: .92rem; }
  .period-inner p  { font-size: .90rem; }

  /* Intro guillemets */
  .parcours-intro__guillemet { font-size: 3.5rem; }

  /* Bureau question */
  .parcours-bureau__question { font-size: clamp(1.1rem, 5vw, 1.8rem); }

  /* Footer grid */
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .parcours-hero { padding: 6rem 1rem 3.5rem; }
  .parcours-timeline { padding: 2rem 1rem 3rem; }
  .timeline-wrapper { gap: 0; }
  .period-header { padding: 12px 14px; gap: 8px; }
  .period-inner { padding: 14px 16px 18px; }

  /* Assets déco masqués sur mobile */
  .period-asset { display: none; }
  .hero-photo-doodle { display: none; }
}


/* ════════════════════════════════════════════════
   SKETCHNOTE ENRICHISSEMENTS — cohérence visuelle
   ════════════════════════════════════════════════ */

/* Tache café hero */
.hero-cafe {
  position: absolute;
  pointer-events: none;
  user-select: none;
  bottom: 7%; right: 5%;
  width: clamp(110px, 12vw, 160px);
  opacity: .065;
  transform: rotate(8deg);
}

/* Doodles PNG iceberg — fond navy, filtrés blanc */
.iceberg-doodle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  filter: brightness(0) invert(1);
}
.iceberg-doodle--etoile {
  width: clamp(90px, 10vw, 135px);
  opacity: .14;
  top: 5%; left: 2%;
  transform: rotate(-18deg);
}
.iceberg-doodle--boussole {
  width: clamp(80px, 9vw, 118px);
  opacity: .12;
  bottom: 8%; right: 2%;
  transform: rotate(12deg);
}

/* Paper-lines + tache café pour intro et CTA */
.parcours-intro {
  background-color: #F5F0E8;
  background-image:
    repeating-linear-gradient(
      transparent, transparent 31px,
      rgba(140,110,75,.065) 31px, rgba(140,110,75,.065) 32px
    ),
    radial-gradient(ellipse 55% 45% at 85% 12%, rgba(0,158,224,.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(37,58,109,.05) 0%, transparent 50%);
}
.parcours-cta {
  background-color: #F5F0E8;
  background-image: repeating-linear-gradient(
    transparent, transparent 31px,
    rgba(140,110,75,.065) 31px, rgba(140,110,75,.065) 32px
  );
}

/* Tache café intro et CTA */
.intro-cafe,
.cta-cafe {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.intro-cafe {
  top: 4%; right: 4%;
  width: clamp(110px, 12vw, 158px);
  opacity: .065;
  transform: rotate(-12deg);
}
.cta-cafe {
  bottom: 8%; right: 5%;
  width: clamp(100px, 11vw, 145px);
  opacity: .065;
  transform: rotate(10deg);
}

/* PNG doodles section timeline */
.timeline-doodle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  filter: var(--filter-ink);
}
.timeline-doodle--etoile {
  width: clamp(110px, 12vw, 155px);
  opacity: .72;
  top: 1.5%; right: 1.5%;
  transform: rotate(15deg);
}
.timeline-doodle--boussole {
  width: clamp(100px, 11vw, 142px);
  opacity: .68;
  bottom: 2%; left: 1.5%;
  transform: rotate(-18deg);
}
.timeline-doodle--crayon {
  width: clamp(88px, 9.5vw, 125px);
  opacity: .58;
  top: 48%; right: 1.5%;
  transform: rotate(28deg);
}

/* PNG doodles section bonus (kraft) */
.bonus-doodle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  filter: var(--filter-ink);
}
.bonus-doodle--crayon {
  width: clamp(100px, 11vw, 142px);
  opacity: .70;
  top: 3%; right: 2%;
  transform: rotate(28deg);
}
.bonus-doodle--fleche {
  width: clamp(90px, 10vw, 128px);
  opacity: .62;
  bottom: 4%; left: 1.5%;
  transform: rotate(-15deg);
}

/* PNG doodle CTA fin parcours */
.cta-doodle-parcours {
  position: absolute;
  pointer-events: none;
  user-select: none;
  filter: var(--filter-ink);
}
.cta-doodle-parcours--etoile {
  width: clamp(88px, 9.5vw, 128px);
  opacity: .62;
  top: 8%; left: 3%;
  transform: rotate(-15deg);
}
