/* ==========================================================================
   Branche « Reshaping » — chargée après main.css
   Échelle resserrée, sections rapprochées, cartes plus compactes,
   fil doré qui relie les chapitres.
   ========================================================================== */

/* 1. Échelle générale : tous les rem baissent d’un cran */
html { font-size: 100%; }                 /* 1rem = 16px */

/* 2. Fil doré entre les chapitres
   Une ligne fine qui descend, une perle, puis le numéro du chapitre. */
body { counter-reset: chapitre; }

.section-titre,
.temoignages__titre,
.situations-accueil__titre,
.odyssee__titre {
  counter-increment: chapitre;
}
.section-titre::before,
.temoignages__titre::before,
.situations-accueil__titre::before,
.odyssee__titre::before {
  content: counter(chapitre, decimal-leading-zero);
  display: block;
  width: 60px;
  margin: 0 auto 14px;
  padding-top: 58px;
  background:
    linear-gradient(to bottom, rgba(130, 114, 72, 0), #827248) center top / 1px 44px no-repeat,
    radial-gradient(circle, #827248 2.5px, rgba(130, 114, 72, 0) 3px) center 44px / 8px 8px no-repeat;
  font-family: "Avenir-heavy", sans-serif;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.25em;
  color: #827248;
  text-align: center;
}

/* Titres de chapitre : moitié moins hauts */
.section-titre,
.temoignages__titre {
  font-size: 3.9rem;          /* ≈ 55px */
  line-height: 4rem;
  margin-block-end: 30px;
}
.situations-accueil__titre { font-size: 2.6rem; line-height: 3rem; margin-bottom: 26px; }
.odyssee__titre { margin-bottom: 18px; }

/* Pages thématiques : petit trait doré devant chaque intertitre */
.theme-h2 { display: flex; align-items: center; gap: 14px; font-size: 2rem; line-height: 2.4rem; margin-bottom: 14px; }
.theme-h2::before { content: ""; flex: 0 0 28px; height: 1px; background: #827248; }
.theme-section { margin-top: 48px; }
.faq.theme-faq { margin-top: 56px; }

/* 3. Espacement entre les sections : de 110–150px à 56–72px */
.intro { margin-top: 64px; }
.chiffres,
.situations-accueil { margin-top: 56px; }
.situations-accueil { margin-top: 36px; }
.methode2,
.formats,
.temoignages,
.faq,
.situations,
.deroule,
.cas-liste,
.parcours { margin-top: 64px; }
.faq { margin-top: 64px; }
.logos-clients { margin-top: 40px; padding-top: 40px; padding-bottom: 40px; }
.cta-final { margin-top: 72px; padding: 48px 30px; }
.odyssee { margin-top: 56px; }
.podcast-bloc { margin-top: 48px; }

/* 4. Titres et textes */
@media (min-width: 1101px) { .hero-home__title { font-size: 5.6rem; line-height: 5.4rem; } }
.cqf-h1 { font-size: 6.4rem; line-height: 6.4rem; margin-bottom: 18px; }
.cqf-lead { font-size: 1.9rem; line-height: 2.4rem; }
.head-section.cqf-intro { padding-bottom: 0; }
.intro__titre { font-size: 2.8rem; line-height: 3.2rem; margin-bottom: 22px; }
.intro__public { font-size: 1.35rem; margin: -10px 0 22px; }
.intro__texte { font-size: 1.15rem; line-height: 1.75rem; }
.intro__actions { margin-top: 26px; }
.cta-final h2 { font-size: 3.4rem; line-height: 3.6rem; margin-bottom: 12px; }
.cta-final p { font-size: 1.2rem; margin-bottom: 24px; }

/* Textes longs : un cran plus petits */
.odyssee p,
.cas2__texte,
.temoignage blockquote p,
.faq details p,
.methode2__lead,
.theme-section p,
.theme-section li { font-size: 1.12rem; line-height: 1.75rem; }
.methode2__lead { margin: 0 auto 30px; max-width: 760px; }

/* 5. Chiffres */
.chiffres li { padding: 22px 14px; }
.chiffres strong { font-size: 2.6rem; line-height: 2.8rem; }
.chiffres span { font-size: 1rem; }

/* 6. Situations (accueil) */
.situations-accueil__liste { gap: 14px 22px; }
.situations-accueil__liste li { font-size: 1.15rem; line-height: 1.65rem; padding: 4px 0 4px 16px; border-left-width: 2px; }

/* 7. Cartes plus compactes */
.piliers__grille { gap: 22px; }
.pilier { padding: 26px 24px; }
.pilier h3 { font-size: 1.7rem; margin-bottom: 10px; }
.pilier p { font-size: 1.05rem; line-height: 1.6rem; }
.methode2__sujets { margin-top: 32px; }
.methode2__sujets h3 { font-size: 1.45rem; }
.sujets li { font-size: 0.95rem; padding: 6px 12px; }

.formats__grille { gap: 18px; }
.format { padding: 24px 22px; min-height: 0; }
.format h3 { font-size: 1.3rem; line-height: 1.7rem; margin-bottom: 8px; }
.format p { font-size: 1rem; line-height: 1.5rem; }
.formats__note { margin-top: 24px; font-size: 1.05rem; }
.format__face { padding: 22px 22px 18px; }
.format__face--avant h3 { font-size: 1.3rem; line-height: 1.7rem; margin-bottom: 8px; }
.format__face--avant p { font-size: 1rem; line-height: 1.5rem; }
.format__indice { padding-top: 12px; font-size: 0.78rem; }
.format__dos-titre { font-size: 0.92rem; margin-bottom: 10px; }
.format__clients { gap: 5px; }
.format__clients li { font-size: 0.85rem; line-height: 1.1rem; padding: 3px 8px; }
.format__lien { padding-top: 10px; font-size: 0.85rem; }

.temoignage { padding: 26px 26px 22px; margin-bottom: 18px; }
.temoignage figcaption { font-size: 0.95rem; }

.faq summary { font-size: 1.2rem; padding: 18px 40px 18px 0; }

.situations__grille { gap: 16px; }
.situation { padding: 22px 20px; min-height: 150px; }
.situation__contexte { font-size: 1.1rem; line-height: 1.5rem; }
.situation__reponse { font-size: 1.2rem; line-height: 1.6rem; }

.deroule__grille { gap: 22px; }
.deroule__col { padding: 26px 26px 18px; }
.deroule__col h3 { font-size: 1.6rem; margin-bottom: 14px; }
.deroule__col li { font-size: 1.05rem; line-height: 1.6rem; margin-bottom: 12px; padding-left: 40px; }
.deroule__col li::before { width: 26px; height: 26px; line-height: 26px; font-size: 0.85rem; }
.deroule__note { margin-top: 22px; font-size: 1.05rem; }

.cas2 { margin-bottom: 36px; }
.cas2__image { min-height: 300px; }
.cas2__corps { padding: 32px 36px; }
.cas2__num { font-size: 2rem; line-height: 2rem; }
.cas2__titre { font-size: 1.8rem; line-height: 2.2rem; margin: 4px 0 12px; }
.cas2__infos dd { font-size: 1rem; line-height: 1.45rem; }

.parcours__grille { gap: 26px; }
.parcours__col h3 { font-size: 1.6rem; margin-bottom: 10px; }
.parcours__col li { font-size: 1.02rem; line-height: 1.5rem; padding: 7px 0; }

.logos-grid { gap: 12px; }

/* 8. Mobile */
@media (max-width: 700px) {
  html { font-size: 100%; }
  .section-titre, .temoignages__titre { font-size: 2.5rem; line-height: 2.7rem; margin-block-end: 22px; }
  .section-titre::before, .temoignages__titre::before,
  .situations-accueil__titre::before, .odyssee__titre::before { padding-top: 46px; background-size: 1px 32px, 8px 8px; background-position: center top, center 32px; }
  .situations-accueil__titre { font-size: 2rem; line-height: 2.4rem; }
  .intro, .chiffres { margin-top: 40px; }
  .situations-accueil, .methode2, .formats, .temoignages, .faq,
  .situations, .deroule, .cas-liste, .parcours, .odyssee { margin-top: 44px; }
  .cta-final { margin-top: 48px; padding: 36px 20px; }
  .cta-final h2 { font-size: 2.4rem; line-height: 2.6rem; }
  .intro__titre { font-size: 2rem; line-height: 2.4rem; }
  .cqf-h1 { font-size: 3.6rem; line-height: 3.8rem; }
  .cqf-lead { font-size: 1.4rem; line-height: 1.9rem; }
  .theme-h2 { font-size: 1.6rem; line-height: 2rem; }
  .chiffres strong { font-size: 2.1rem; line-height: 2.3rem; }
  .pilier, .format, .deroule__col, .temoignage { padding: 20px 18px; }
  .cas2__corps { padding: 24px 20px; }
  .cas2__image { min-height: 200px; }
}

/* 9. Références : même fil doré, grille plus serrée */
.logos-clients h3 { counter-increment: chapitre; font-size: 3.9rem; line-height: 4rem; margin-block-start: 0; margin-block-end: 30px; }
.logos-clients h3::before {
  content: counter(chapitre, decimal-leading-zero);
  display: block; width: 60px; margin: 0 auto 14px; padding-top: 58px;
  background:
    linear-gradient(to bottom, rgba(130, 114, 72, 0), #827248) center top / 1px 44px no-repeat,
    radial-gradient(circle, #827248 2.5px, rgba(130, 114, 72, 0) 3px) center 44px / 8px 8px no-repeat;
  font-family: "Avenir-heavy", sans-serif; font-size: 0.8rem; line-height: 1; letter-spacing: 0.25em; color: #827248; text-align: center;
}
@media (min-width: 1101px) { .logos-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 801px) and (max-width: 1100px) { .logos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Vidéo : bouton plus discret */
.video-accueil { margin-top: 56px; }
.video-accueil .openModalBtn { font-size: 1rem; padding: 8px 20px; }
.video-accueil .openModalBtn svg { width: 26px; height: 26px; }
.openModalBtn.video svg { width: 26px; height: 26px; }
@media (max-width: 700px) {
  .logos-clients h3 { font-size: 2.5rem; line-height: 2.7rem; }
  .logos-clients h3::before { padding-top: 46px; background-size: 1px 32px, 8px 8px; background-position: center top, center 32px; }
}

/* Qui je suis : trois cartes plus compactes */
.cards { margin-block-start: 56px; justify-content: center; gap: 22px; }
.cards__card { margin: 0; width: 280px; height: auto; min-height: 210px; padding: 26px 24px; }
.cards__card h3, .cards__card p { font-size: 1.25rem; line-height: 1.6rem; }
@media (max-width: 700px) {
  .cards { margin-block-start: 40px; gap: 14px; }
  .cards__card { width: 100%; max-width: 340px; min-height: 0; }
}

/* Qui je suis restructurée : espacements resserrés */
.qsj-video, .convictions, .frise-parcours, .plus-loin { margin-top: 64px; }
.conviction p { font-size: 1.05rem; line-height: 1.6rem; }
.frise__etape { padding-bottom: 22px; }
.frise__etape p:not(.frise__date) { font-size: 1.08rem; line-height: 1.7rem; }
@media (max-width: 700px) {
  .qsj-video, .convictions, .frise-parcours, .plus-loin { margin-top: 44px; }
}

/* Paroles (citations) */
.paroles { margin-top: 64px; }
.paroles__liste { gap: 28px; }
.theme-citation { margin-top: 36px; }
@media (max-width: 700px) { .paroles { margin-top: 44px; } }

/* À écouter (Qui je suis) + vidéo Ce que je fais */
.ecoute, .cqf-video { margin-top: 64px; }
@media (max-width: 700px) { .ecoute, .cqf-video { margin-top: 44px; } }

/* « Vous me dites » : le connecteur 01 au-dessus de tout le bloc, pas collé au titre */
.situations-accueil { counter-increment: chapitre; }
.situations-accueil .situations-accueil__titre { counter-increment: none; }
.situations-accueil .situations-accueil__titre::before { content: none; display: none; }
.situations-accueil::before {
  content: counter(chapitre, decimal-leading-zero);
  grid-column: 1 / -1;
  display: block; width: 60px; margin: 0 auto 14px; padding-top: 58px;
  background:
    linear-gradient(to bottom, rgba(130, 114, 72, 0), #827248) center top / 1px 44px no-repeat,
    radial-gradient(circle, #827248 2.5px, rgba(130, 114, 72, 0) 3px) center 44px / 8px 8px no-repeat;
  font-family: "Avenir-heavy", sans-serif; font-size: 0.8rem; line-height: 1; letter-spacing: 0.25em;
  color: #827248; text-align: center;
}
@media (min-width: 901px) {
  .situations-accueil { grid-template-areas: "c c c" "b1 . b3" "b4 t b5" ". b2 ."; }
  .situations-accueil::before { grid-area: c; margin-bottom: 0; }
}
@media (min-width: 901px) {
  .situations-accueil { grid-template-areas: "c c c" "b1 . b2" "b3 t b4" ". b5 ."; }
}
@media (min-width: 901px) {
  .situations-accueil { grid-template-areas: "c c c" "b1 b6 b2" "b3 t b4" ". b5 ."; }
}
@media (min-width: 901px) {
  .situations-accueil {
    grid-template-rows: auto repeat(6, 68px);
    grid-template-areas: "c c c" ".  n  ." "nw n  ne" "nw t  ne" "sw t  se" "sw s  se" ".  s  .";
  }
  .situations-accueil::before { margin-bottom: 16px; }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .situations-accueil { grid-template-rows: auto repeat(6, 72px); }
}
@media (min-width: 901px) { .situations-accueil { grid-template-rows: auto repeat(6, 80px); } }
@media (min-width: 901px) and (max-width: 1150px) { .situations-accueil { grid-template-rows: auto repeat(6, 84px); } }
@media (min-width: 901px) { .situations-accueil { grid-template-rows: auto repeat(6, 96px); } }
@media (min-width: 901px) and (max-width: 1150px) { .situations-accueil { grid-template-rows: auto repeat(6, 98px); } }
