/* Objectif 15 en Maths — feuille de styles unique, posée au-dessus de Bootstrap 5.
   Sections : commun (charte, header, footer, boutons), puis une section par page. */

/* ============================================================================
   Commun — charte, conteneur, header, footer, boutons
   ============================================================================ */

/* Design tokens + mapping vers les variables Bootstrap */
:root {
    --ink: #0f0804;
    --ink-2: #1a0d06;
    --cream: #f2ede4;
    --cream-2: #c8beb2;
    --orange: #f97316;
    --muted: #c8beb2;
    --line: rgba(249, 115, 22, .22);
    --line-strong: rgba(249, 115, 22, .42);
    --surface-dark: #0f0804;
    --surface-brown: #1a0d06;
    --surface-raised: #2a1a0c;
    --font-body: "Barlow", Arial, Helvetica, sans-serif;
    --font-display: "Barlow Condensed", "Barlow", Arial, Helvetica, sans-serif;
    --radius-card: 16px;
    --radius-panel: 28px;
    --radius-pill: 999px;
    --motion-fast: .15s ease;
    --motion-standard: .2s ease;
    --shadow-cta: 0 8px 24px rgba(249, 115, 22, .35);

    --bs-body-bg: var(--ink);
    --bs-body-color: var(--cream);
    --bs-body-font-family: var(--font-body);
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.65;
    --bs-emphasis-color: var(--cream);
    --bs-secondary-color: var(--muted);
    --bs-heading-color: var(--cream);
    --bs-border-color: var(--line);
    --bs-primary: var(--orange);
    --bs-primary-rgb: 249, 115, 22;
    --bs-link-color: inherit;
    --bs-link-hover-color: inherit;
    --bs-link-color-rgb: 242, 237, 228;
    --bs-link-hover-color-rgb: 242, 237, 228;
    --bs-focus-ring-color: rgba(249, 115, 22, .25);
    font-synthesis: none;
    text-rendering: geometricPrecision;
}

body {
    background:
        linear-gradient(rgba(249, 115, 22, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, .045) 1px, transparent 1px),
        var(--ink);
    background-size: 48px 48px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    overflow-wrap: anywhere;
}

/* Conteneur du site : 1120px de contenu, gouttières de 24px (20px sur mobile) */
.container {
    --bs-gutter-x: 3rem;
    max-width: calc(1120px + var(--bs-gutter-x));
}

.toast {
    position: absolute;
    z-index: 20;
    right: 10px;
    margin-top: 10px;
}

@media (max-width: 760px) {
    body {
        background-size: 36px 36px;
    }

    .container {
        --bs-gutter-x: 2.5rem;
    }
}

/* Sur-titre orange précédé d'un trait */
.eyebrow {
    align-items: center;
    color: var(--orange);
    display: flex;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    gap: 12px;
    letter-spacing: 4px;
    line-height: 1.65;
    text-transform: uppercase;
}

.eyebrow::before {
    background: var(--orange);
    content: "";
    flex: 0 0 auto;
    height: 2px;
    width: 32px;
}

/* Variante sans trait */
.eyebrow--plain {
    letter-spacing: 3px;
}

.eyebrow--plain::before {
    display: none;
}

.form-website {
    height: 1px !important;
    left: -10000px !important;
    overflow: hidden !important;
    position: absolute !important;
    width: 1px !important;
}

/* Header */
.site-header {
    border-bottom: 1px solid rgba(249, 115, 22, .1);
    color: var(--cream);
    column-gap: 32px;
    padding: 22px 56px;
    position: relative;
    z-index: 100;
}

.site-logo {
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.15;
    text-transform: uppercase;
}

.site-logo span {
    color: var(--orange);
}

.site-nav {
    column-gap: 32px;
}

.site-nav__link {
    color: var(--cream-2);
    font-size: 13px;
    font-weight: 500;
    transition: color var(--motion-fast);
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link--active {
    color: var(--cream);
}

.site-nav__link--active {
    position: relative;
}

.site-nav__link--active::after {
    background: var(--orange);
    border-radius: var(--radius-pill);
    bottom: -7px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
}

.site-nav__cta.ui-cta {
    min-height: 42px;
    padding: 11px 24px;
    white-space: nowrap;
}

/* Boutons Inscription / Connexion, à côté du CTA */
.site-account__link.ui-cta {
    white-space: nowrap;
}

.site-account__link[aria-current="page"] {
    border-color: var(--orange);
}

/* Bouton d'ouverture du menu (sous le breakpoint lg de Bootstrap) */
.site-header__toggler {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f2ede4' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    border: 1.5px solid #f2ede447;
    border-radius: 12px;
    padding: 8px 10px;
    transition: border-color var(--motion-standard), background-color var(--motion-standard);
}

.site-header__toggler:hover {
    background: #f2ede40f;
    border-color: #f2ede494;
}

.site-header__toggler:focus {
    box-shadow: none;
}

.site-header__toggler:focus-visible {
    outline: 3px solid rgba(249, 115, 22, .34);
    outline-offset: 3px;
}

/* Desktop : menu en ligne */
@media (min-width: 992px) {
    .site-header__menu {
        align-items: center;
        column-gap: 32px;
        justify-content: flex-end;
    }
}

/* Mobile / tablette : menu déroulant (collapse) */
@media (max-width: 991.98px) {
    .site-header__menu .site-nav {
        padding-top: 16px;
    }

    .site-nav__link {
        border-bottom: 1px solid var(--line);
        font-size: 15px;
        padding-block: 12px;
    }

    .site-nav__link--active {
        color: var(--orange);
    }

    .site-nav__link--active::after {
        display: none;
    }

    .site-nav__cta.ui-cta {
        margin-top: 20px;
        min-height: 44px;
        width: 100%;
    }

    .site-account {
        margin-top: 10px;
    }

    .site-account__link.ui-cta {
        min-height: 44px;
    }
}

@media (max-width: 767.98px) {
    .site-header {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding-inline: 16px;
    }

    .site-logo {
        font-size: 15px;
    }
}

/* Pages compte (inscription, connexion) */
.account-page {
    background: var(--surface-dark);
}

.cr-form .form-text {
    color: #7a6050;
    font-size: .75em;
}

.account-page__link {
    color: var(--surface-raised);
    font-weight: 700;
    text-decoration-color: var(--orange);
    text-underline-offset: 3px;
}

.account-page__link:hover,
.account-page__link:focus-visible {
    color: var(--orange);
}

.cr-form .alert-danger {
    background: #fbe4d6;
    border: 0;
    border-left: 3px solid #c2410c;
    border-radius: 0;
    color: #7c2d12;
    font-size: .875em;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 12px 16px;
}

/* Boutons d'appel à l'action */
.ui-cta {
    align-items: center;
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    letter-spacing: .01em;
    line-height: 1.15;
    min-height: 48px;
    padding: 13px 26px;
    text-align: center;
    transition:
        transform var(--motion-fast),
        border-color var(--motion-standard),
        background-color var(--motion-standard),
        color var(--motion-standard),
        box-shadow var(--motion-fast);
}

.ui-cta.ui-cta--primary {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--ink);
}

.ui-cta.ui-cta--secondary {
    background: transparent;
    border-color: #f2ede447;
    color: var(--cream);
}

.ui-cta.ui-cta--dark {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
}

.ui-cta.ui-cta--compact {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    min-height: 38px;
    padding: 8px 16px;
    text-transform: uppercase;
}

.ui-cta.ui-cta--wide {
    font-size: 16px;
    min-height: 56px;
    width: 100%;
}

.ui-cta:hover:not(:disabled),
.ui-cta:focus-visible:not(:disabled) {
    transform: translateY(-2px);
}

.ui-cta--primary:hover:not(:disabled),
.ui-cta--primary:focus-visible:not(:disabled) {
    box-shadow: var(--shadow-cta);
}

.ui-cta--secondary:hover:not(:disabled),
.ui-cta--secondary:focus-visible:not(:disabled) {
    background: #f2ede40f;
    border-color: #f2ede494;
}

.ui-cta--dark:hover:not(:disabled),
.ui-cta--dark:focus-visible:not(:disabled) {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--ink);
}

.ui-cta:focus-visible {
    outline: 3px solid rgba(249, 115, 22, .34);
    outline-offset: 3px;
}

.ui-cta:disabled,
.ui-cta[aria-disabled="true"] {
    box-shadow: none;
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

@media (hover: none) {
    .ui-cta:hover:not(:disabled) {
        transform: none;
    }
}

/* Footer */
.reference-site-footer {
    background: var(--ink);
    border-top: 1px solid var(--line);
    color: var(--cream);
    margin-top: 72px;
    padding: 44px 0 32px;
    position: relative;
    z-index: 1;
}

.reference-site-footer .container {
    max-width: calc(1180px + var(--bs-gutter-x));
}

.reference-site-footer__logo {
    color: #fff;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.15;
    text-transform: uppercase;
}

.reference-site-footer__logo span {
    color: var(--orange);
}

.reference-site-footer__nav a {
    color: var(--cream-2);
    font-size: 14px;
    transition: color .2s ease;
}

.reference-site-footer__social a {
    border: 1px solid var(--line);
    color: var(--cream-2);
    height: 40px;
    transition: color .2s ease, border-color .2s ease, transform .15s ease;
    width: 40px;
}

.reference-site-footer__social svg {
    height: 18px;
    width: 18px;
}

.reference-site-footer__nav a:hover,
.reference-site-footer__nav a:focus-visible,
.reference-site-footer__social a:hover,
.reference-site-footer__social a:focus-visible {
    color: var(--orange);
}

.reference-site-footer__social a:hover,
.reference-site-footer__social a:focus-visible {
    border-color: var(--orange);
    transform: translateY(-2px);
}

.reference-site-footer__bottom {
    border-top: 1px solid rgba(249, 115, 22, .1);
    color: #c8beb28c;
    font-size: 12.5px;
    line-height: 1.5;
    padding-top: 20px;
}

@media (max-width: 700px) {
    .reference-site-footer {
        margin-top: 54px;
        padding: 36px 0 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ui-cta,
    .site-header__toggler,
    .site-nav__link,
    .reference-site-footer__nav a,
    .reference-site-footer__social a {
        transition: none;
    }
}

/* ============================================================================
   Page Accueil (.chapters-page)
   ============================================================================ */

.chapters-page {
    min-height: 100vh;
    overflow-x: hidden;
}

/* Intro */
.home-intro {
    margin-top: clamp(20px, 3.5vh, 36px);
}

.home-intro__eyebrow {
    color: var(--orange);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    gap: 12px;
    letter-spacing: 4px;
    line-height: 1;
    text-transform: uppercase;
}

.home-intro__eyebrow::before,
.home-intro__eyebrow::after {
    background: #f9731638;
    content: "";
    height: 1px;
    width: 40px;
}

.home-intro__title {
    column-gap: .22em;
    font-size: clamp(30px, 8.8vw, 90px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: .94;
    white-space: nowrap;
}

.home-intro__title-word--light {
    color: #fff;
}

.home-intro__title-word--accent {
    color: var(--orange);
}

.home-intro__subtitle {
    color: var(--cream-2);
    font-size: clamp(25px, 2.8vw, 34px);
    font-weight: 600;
    line-height: 1.45;
    max-width: 800px;
}

.home-intro__stats {
    gap: 14px 28px;
}

.home-intro__stat {
    color: var(--cream-2);
    font-size: 18px;
    gap: 8px;
}

.home-intro__stat::before {
    background: var(--orange);
    border-radius: 50%;
    content: "";
    flex: 0 0 auto;
    height: 6px;
    width: 6px;
}

.home-intro__stat-value {
    color: #fff;
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
}

/* Carrousel des chapitres (Glide) */
.chapters-list {
    margin-top: clamp(40px, 6vh, 64px);
}

.chapters-list .glide__slides {
    padding: 110px 0 130px;
}
.chapters-list .glide__slide {
    opacity: 0.4;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;

    transform: scale(0.85) rotateY(10deg);
}

/* Slide active */
.chapters-list .glide__slide--active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    z-index: 2;
    box-shadow: 0 4px 8px #0003, 2px 0 100px #f77316;
    border-radius: 30px;
}
.glide__slide:has(+ .glide__slide--active) {
    /*transform: scale(0.85) rotateY(12deg);*/
    transform: scale(0.85) translate(210px, 20px);
    z-index: 0;
}
.glide__slide--active + .glide__slide{
    transform: scale(0.85) translate(-130px, 20px);
    z-index: 0;
}
.chapter-card {
    --card-surface: var(--cream);
    --card-ink: var(--ink);
    --card-copy: #5a4838;
    --card-rim: #fffdfa;
    background: var(--card-surface);
    border: 2px solid var(--orange);
    border-radius: 30px;
    box-shadow: 0 4px 0 var(--orange), 0 20px 28px -12px #240f038c, inset 0 0 0 2px var(--card-rim);
    color: var(--card-ink);
    min-height: 400px;
    padding: 64px 28px 26px;
    position: relative;
    transition: transform .48s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease;
}

.chapter-card--dark,
.chapter-card--faq {
    --card-ink: var(--cream);
    --card-copy: var(--cream-2);
    --card-rim: var(--surface-raised);
}

.chapter-card--dark {
    --card-surface: var(--ink);
}

.chapter-card--faq {
    --card-surface: var(--surface-brown);
    border-color: rgba(249, 115, 22, .56);
}

.chapter-card--active {
    box-shadow: 0 4px 0 var(--orange), 0 0 48px #f9731680, inset 0 0 0 2px var(--card-rim);
}

/*.chapter-card:focus-within {
    outline: 3px solid rgba(255, 244, 223, .85);
    outline-offset: 4px;
}*/

.chapter-card__motif {
    color: var(--orange);
    height: 80px;
    opacity: .9;
    pointer-events: none;
    position: absolute;
    right: 20px;
    top: 64px;
    width: 80px;
}

.chapter-card__label {
    align-items: center;
    background: var(--card-surface);
    border: 7px solid var(--card-rim);
    border-radius: 20px;
    box-shadow: 0 3px 0 2px var(--orange), 0 14px 15px -9px #1b120a73;
    color: var(--card-ink);
    display: flex;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    gap: 7px;
    left: -14px;
    letter-spacing: .025em;
    line-height: 1.1;
    max-width: calc(100% - 12px);
    min-height: 56px;
    padding: 8px 16px;
    position: absolute;
    text-transform: uppercase;
    top: -27px;
    white-space: nowrap;
}

.chapter-card__label::before {
    background: var(--orange);
    content: "";
    flex: 0 0 auto;
    height: 4px;
    width: 26px;
}

.chapter-card__kicker {
    color: var(--orange);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.2;
    max-width: 72%;
    text-transform: uppercase;
}

.chapter-card__kicker--score {
    font-size: 30px;
    letter-spacing: -.04em;
    text-transform: none;
}

.chapter-card__title {
    color: var(--card-ink);
    font-size: clamp(28px, 2.4vw, 36px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.02;
    max-width: 85%;
}

.chapter-card__text {
    color: var(--card-copy);
    font-size: 16px;
    line-height: 1.45;
    max-width: 85%;
}

.chapter-more.ui-cta {
    font-size: 14px;
    min-height: 44px;
    padding: 10px 22px;
}

/* Détails des chapitres */
.chapter-details {
    margin-top: clamp(30px, 6vh, 80px);
}

.chapter-detail {
    --detail-bg: var(--surface-brown);
    --detail-panel: var(--surface-raised);
    --detail-text: var(--cream);
    --detail-muted: var(--cream-2);
    --detail-line: var(--line);
    background: var(--detail-bg);
    border: 1px solid var(--detail-line);
    border-radius: var(--radius-panel);
    box-shadow: 0 34px 96px #0f080461;
    color: var(--detail-text);
    gap: clamp(30px, 5vw, 56px);
    overflow: hidden;
    padding: clamp(38px, 5vw, 64px);
    position: relative;
    isolation: isolate;
    scroll-margin-top: 28px;
}

.chapter-detail--02,
.chapter-detail--05,
.chapter-detail--07 {
    --detail-bg: var(--ink);
}

.chapter-detail--03 {
    --detail-bg: var(--cream);
    --detail-text: var(--ink);
    --detail-muted: #4a3828;
    --detail-line: rgba(26, 13, 6, .16);
}

/* Barre orange à gauche du chapitre 01 */
.chapter-detail--01::after {
    background: linear-gradient(180deg, transparent, var(--orange), transparent);
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    width: 4px;
}

/* Grand caractère décoratif en fond */
.chapter-detail__number {
    color: #f973160a;
    font-family: var(--font-display);
    font-size: clamp(150px, 25vw, 320px);
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.chapter-detail__number--top-end {
    right: -20px;
    top: -30px;
}

.chapter-detail__number--bottom-start {
    bottom: -40px;
    left: -20px;
}

.chapter-detail__number--bottom-end {
    bottom: -40px;
    right: -20px;
}

.chapter-detail--03 .chapter-detail__number {
    color: #1a0d060b;
}

.chapter-detail--05 .chapter-detail__number {
    color: #f973160f;
    font-family: Georgia, serif;
    font-size: clamp(220px, 30vw, 430px);
    left: 30px;
    top: -60px;
}

.chapter-detail--07 .chapter-detail__number {
    color: #f973160d;
    font-size: clamp(220px, 34vw, 480px);
    right: 40px;
    top: -100px;
}

/* En-tête de chapitre */
.chapter-detail .eyebrow {
    margin-bottom: 20px;
}

.chapter-detail__title {
    color: var(--detail-text);
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: .94;
}

.chapter-detail--01 .chapter-detail__title {
    font-size: clamp(52px, 7vw, 84px);
    letter-spacing: 0;
    line-height: 1;
}

.chapter-detail--03 .chapter-detail__title {
    font-size: clamp(2.75em, 4.3vw, 4em);
    line-height: 1.03;
    max-width: 8.5em;
    overflow-wrap: normal;
}

.chapter-detail--05 .chapter-detail__title {
    font-size: clamp(48px, 6vw, 64px);
    line-height: .98;
}

.chapter-detail__title-line--accent {
    color: var(--orange);
    font-style: italic;
    font-weight: 300;
    letter-spacing: -.02em;
}

.chapter-detail--06 .chapter-detail__title {
    font-size: clamp(36px, 4.5vw, 60px);
    letter-spacing: 0;
    line-height: 1;
}

.chapter-detail__text {
    color: var(--detail-muted);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    max-width: 60ch;
}

.chapter-detail__text + .chapter-detail__text {
    margin-top: 14px;
}

.chapter-detail__cta.ui-cta {
    box-shadow: 0 10px 28px #f9731640;
}

.chapter-detail__cta--thomas.ui-cta {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Visuels */
.chapter-detail__media {
    background: var(--detail-panel);
    border: 1px solid var(--detail-line);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.chapter-detail__image {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.chapter-detail--03 .chapter-detail__media {
    aspect-ratio: .805;
    background: var(--surface-brown);
    min-height: 0;
}

.chapter-detail--06 .chapter-detail__media {
    aspect-ratio: 1;
    border-radius: 32px;
    max-width: 400px;
    min-height: 0;
}

.chapter-detail__image--cover {
    object-fit: cover;
}

/* Courbe de progression (chapitre 01) */
.problem-trajectory {
    background: var(--surface-raised);
    border: 1px solid #f9731638;
    border-radius: 20px;
    padding: 40px 36px 32px;
}

.problem-trajectory__label {
    color: var(--orange);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.trajectory-grid { stroke: #f9731614; stroke-width: 1; }
.trajectory-axis { stroke: #f9731673; stroke-width: 1.5; }
.trajectory-axis-fill,
.trajectory-point { fill: var(--orange); }
.trajectory-point--middle { opacity: .58; }
.trajectory-axis-label { fill: var(--cream-2); font-family: var(--font-display); font-size: 11px; font-weight: 800; }
.trajectory-formula { fill: #c8beb261; font-family: var(--font-display); font-size: 11px; font-style: italic; font-weight: 700; }
.trajectory-score { fill: var(--orange); font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.trajectory-score--end { font-size: 13px; }
.trajectory-line { fill: none; stroke: var(--orange); stroke-linecap: round; stroke-width: 2.5; }
.trajectory-guide { opacity: .6; stroke: var(--orange); stroke-dasharray: 2 2; stroke-width: 1; }

/* Cartes d'information */
.chapter-info-card {
    background: #ffffff08;
    border: 1px solid #f973161f;
    border-radius: 14px;
    overflow: hidden;
    padding: 20px;
    transition: transform .2s ease, border-color .2s ease;
}

.chapter-info-card:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
}

.chapter-info-card__title {
    color: var(--orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.3;
    text-transform: uppercase;
}

.chapter-info-card__text {
    color: var(--cream-2);
    font-size: 13px;
    line-height: 1.65;
    margin: 8px 0 0;
}

.chapter-info-card__icon {
    font-size: 28px;
    line-height: 1;
}

.chapter-info-card--parent {
    background: #f973160f;
    border-color: #f9731659;
}

/* Chapitre 02 : étapes de la méthode */
.chapter-detail--02 .chapter-info-card {
    background: var(--surface-raised);
    border-color: #f9731638;
    overflow: visible;
    padding: 24px 20px;
}

.chapter-detail--02 .chapter-info-card--highlight {
    border-color: var(--orange);
}

.chapter-info-card__step {
    color: #f9731633;
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
}

.chapter-detail--02 .chapter-info-card__title,
.chapter-detail--04 .chapter-info-card__title {
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: none;
}

.chapter-info-card--has-next::after {
    color: var(--orange);
    content: "↓";
    font-size: 22px;
    left: 50%;
    line-height: 1;
    opacity: .6;
    position: absolute;
    top: calc(100% + 6px);
    transform: translateX(-50%);
}

@media (min-width: 992px) {
    .chapter-info-card--has-next::after {
        content: "→";
        left: auto;
        right: -26px;
        top: 48px;
        transform: none;
    }
}

/* Chapitre 03 : cartes sombres sur fond clair */
.chapter-detail--03 .chapter-info-card {
    background: var(--surface-brown);
    border-color: rgba(249, 115, 22, .18);
}

.chapter-detail--03 .chapter-info-card__title {
    font-family: var(--font-display);
    font-size: 1.14rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.08;
    text-transform: none;
}

.chapter-detail--03 .chapter-info-card__text {
    font-size: .84rem;
    line-height: 1.62;
    margin-top: 12px;
}

/* Chapitre 04 : piliers */
.chapter-detail--04 .chapter-info-card {
    position: relative;
}

.chapter-detail--04 .chapter-info-card__title {
    font-size: 18px;
}

.chapter-detail--04 .chapter-info-card__text {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
}

.chapter-detail--04 .chapter-info-card::after {
    bottom: 4px;
    color: #f9731614;
    content: attr(data-item-number);
    font-family: var(--font-display);
    font-size: 68px;
    font-weight: 600;
    line-height: 1;
    position: absolute;
    right: 12px;
}

.chapter-info-card__icon--pillar {
    font-size: 31px;
}

.chapter-info-card__badge {
    background: var(--orange);
    border-radius: var(--radius-pill);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    padding: 5px 14px;
    text-transform: uppercase;
}

/* Chapitre 05 */
.chapter-detail--05 .chapter-info-card {
    min-height: 174px;
}

.chapter-detail--05 .chapter-info-card__text {
    margin-top: 12px;
}

/* Chapitre 06 */
.chapter-detail--06 .chapter-info-card {
    background: var(--surface-raised);
    border-color: #f973161a;
    padding: 18px;
}

.chapter-detail--06 .chapter-info-card__text {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 6px;
}

.chapter-credential {
    background: #f973161a;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--orange);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    min-height: 36px;
    padding: 7px 16px;
}

/* Chiffres clés */
.chapter-metric {
    background: var(--cream);
    border-radius: 14px;
    color: var(--surface-brown);
    padding: 20px;
}

.chapter-metric__value {
    color: var(--surface-raised);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

.chapter-metric__label {
    color: #6a5040;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 4px;
}

.chapter-detail--03 .chapter-metric {
    background: var(--surface-brown);
    border: 1px solid rgba(249, 115, 22, .18);
}

.chapter-detail--03 .chapter-metric__value {
    color: var(--orange);
    font-size: clamp(25px, 3vw, 42px);
    font-weight: 700;
    line-height: .95;
}

.chapter-detail--03 .chapter-metric__label {
    color: var(--cream-2);
    font-size: .78rem;
    font-weight: 600;
    margin-top: 8px;
}

.chapter-detail--06 .chapter-metric {
    border-radius: 10px;
    padding: 14px;
}

.chapter-detail--06 .chapter-metric__value {
    color: var(--surface-brown);
    font-size: 16px;
}

.chapter-detail--06 .chapter-metric__label {
    color: #5a4030;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 2px;
}

/* Citations */
.chapter-quote {
    background: var(--orange);
    border-radius: 12px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 600;
    letter-spacing: .3px;
    line-height: 1.2;
    padding: 18px 28px;
}

.chapter-quote--aside {
    background: #f973161a;
    border-left: 4px solid var(--orange);
    border-radius: 0 14px 14px 0;
    color: var(--cream);
    font-size: 20px;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.4;
    padding: 22px 26px;
}

/* Triptyque (chapitre 01) */
.problem-triptych {
    background: #f973161a;
    border-left: 4px solid var(--orange);
    border-radius: 0 14px 14px 0;
    padding: 22px 26px;
}

.problem-triptych__intro {
    color: var(--cream);
    font-size: 20px;
    font-style: italic;
    line-height: 1.4;
    max-width: 680px;
}

.problem-triptych__card {
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    min-height: 199px;
    overflow: hidden;
    padding: 28px 24px;
    transition: border-color .25s ease, transform .2s ease;
}

.problem-triptych__title {
    color: var(--orange);
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.problem-triptych__label {
    color: var(--cream-2);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    max-width: 24ch;
    text-transform: uppercase;
}

.problem-triptych__text {
    color: var(--cream-2);
    font-size: 14px;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

.problem-triptych__number {
    bottom: 8px;
    color: #f9731612;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    right: 12px;
}

.problem-triptych__conclusion {
    background: var(--orange);
    border-radius: 12px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.2;
    padding: 20px 28px;
}

/* Témoignages (chapitre 05) */
.testimonial-card {
    background: var(--surface-raised);
    border: 1px solid #f9731638;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.testimonial-card__media {
    border-bottom: 1px solid rgba(249, 115, 22, .14);
    padding: 20px;
}

.testimonial-card__image {
    border-radius: 8px;
    display: block;
    height: auto;
    max-width: min(100%, 320px);
}

.testimonial-card__copy {
    padding: 22px;
}

.testimonial-card__meta {
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.testimonial-card__score {
    color: var(--orange);
    font-family: var(--font-display);
    font-size: clamp(34px, 12vw, 44px);
    font-weight: 600;
    line-height: 1;
}

.testimonial-card__text {
    color: var(--cream-2);
    font-size: 14px;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .testimonial-card__media {
        border-bottom: 0;
        border-right: 1px solid rgba(249, 115, 22, .14);
    }

    .testimonial-card__copy {
        padding: 28px 32px;
    }
}

@media (min-width: 1025px) {
    .testimonial-card__image {
        max-width: 360px;
    }
}

/* FAQ (chapitre 07) — Bootstrap collapse */
.faq-list {
    border-top: 1px solid var(--line);
    max-width: 840px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item__toggle {
    background: transparent;
    border: 0;
    color: var(--cream);
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    gap: 22px;
    padding: 22px 0;
}

.faq-item__icon {
    color: var(--orange);
    font-size: 1.6em;
    line-height: .7;
}

.faq-item__icon::before {
    content: "−";
}

.faq-item__toggle.collapsed .faq-item__icon::before {
    content: "+";
}

.faq-answer {
    color: var(--cream-2);
    font-size: 15px;
    line-height: 1.72;
    padding-bottom: 22px;
}

.faq-cta {
    background: #2a1709;
    border: 1px solid rgba(249, 115, 22, .35);
    border-radius: var(--radius-panel);
    padding: 44px 32px;
}

.faq-cta__title {
    color: #fff;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.08;
}

.faq-cta__button {
    min-height: 56px;
    padding: 14px 36px;
}

@media (hover: hover) {
    .problem-triptych__card:hover {
        border-color: var(--orange);
        transform: translateY(-3px);
    }
}

@media (hover: none) {
    .chapter-info-card:hover,
    .chapter-card:hover {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .home-intro__title {
        font-size: clamp(34px, 10.5vw, 48px);
        line-height: .96;
    }

    .home-intro__eyebrow {
        gap: 8px;
        letter-spacing: 2.8px;
    }

    .home-intro__eyebrow::before,
    .home-intro__eyebrow::after {
        width: 24px;
    }

    .home-intro__subtitle {
        font-size: 20px;
        max-width: 340px;
    }

    .chapter-card {
        border-radius: 25px;
        min-height: 440px;
        padding: 62px 20px 22px;
    }

    .chapter-card__label {
        border-width: 6px;
        font-size: clamp(16px, 4.5vw, 20px);
        left: -7px;
        padding: 8px 12px;
        top: -23px;
    }

    .chapter-card__motif {
        height: 58px;
        right: 16px;
        top: 44px;
        width: 58px;
    }

    .chapter-detail {
        border-radius: 20px;
        padding: 36px 21px 24px;
    }

    /* Préfixé pour primer sur les tailles propres à chaque chapitre (.chapter-detail--0X .chapter-detail__title) */
    .chapter-detail .chapter-detail__title {
        font-size: clamp(38px, 12vw, 54px);
        line-height: .98;
    }

    .chapter-detail--03 .chapter-detail__title {
        font-size: clamp(30px, 8.5vw, 38px);
    }

    .problem-trajectory {
        padding: 26px 18px 20px;
    }

    .problem-triptych {
        padding: 22px 16px 16px;
    }

    .problem-triptych__card {
        min-height: auto;
        padding: 22px 20px 54px;
    }

    .faq-cta {
        padding: 34px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chapter-card,
    .chapter-info-card,
    .problem-triptych__card {
        transition: none;
    }
}

.chapter-detail__intro {
    max-width: 720px;
}

.chapter-detail--03 .chapter-detail__media {
    max-width: 440px;
}

/* ============================================================================
   Page Ressources (.resources-ref)
   ============================================================================ */

.resources-ref {
    background: var(--surface-dark);
    min-height: 100vh;
    overflow: hidden;
}

.resources-ref h1,
.resources-ref h2,
.resources-ref h3 {
    color: #fff;
    font-weight: 700;
    line-height: 1.05;
}

.rr-lead,
.rr-card-text,
.rr-final-cta p:not(.eyebrow) {
    color: var(--muted);
}

/* Sections pleine largeur */
.rr-hero,
.rr-ebook,
.rr-resources,
.rr-final-cta {
    overflow: hidden;
    padding-block: 80px;
    position: relative;
}

.rr-hero,
.rr-final-cta {
    background: var(--surface-brown);
}

.rr-resources {
    background: var(--surface-dark);
}

.rr-ebook {
    background: var(--orange);
    padding-block: 64px;
}

/* Grands caractères décoratifs en fond de section */
.rr-hero::before,
.rr-ebook::before,
.rr-final-cta::before {
    font: 600 25em/1 var(--font-display);
    pointer-events: none;
    position: absolute;
}

.rr-hero::before {
    color: #f973160a;
    content: "R";
    right: -20px;
    top: -40px;
}

.rr-ebook::before {
    color: #00000014;
    content: '"';
    font-family: Georgia, serif;
    font-weight: 400;
    right: 40px;
    top: -40px;
}

.rr-final-cta::before {
    bottom: -40px;
    color: #f973160a;
    content: "15";
    right: -20px;
}

.rr-hero > .container,
.rr-ebook > .container,
.rr-final-cta > .container {
    position: relative;
    z-index: 1;
}

.rr-hero-bar {
    background: linear-gradient(to bottom, transparent, var(--orange), transparent);
    inset: 0 auto 0 0;
    position: absolute;
    width: 4px;
}

.rr-separator {
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, .25), transparent);
    height: 1px;
}

/* Hero */
.rr-hero h1 {
    font-size: clamp(2.5em, 5.5vw, 4em);
}

.rr-lead {
    line-height: 1.8;
    max-width: 680px;
}

.rr-hero-stat {
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 20px 24px;
}

.rr-hero-stat strong {
    color: var(--orange);
    font: 900 1.75em/1 var(--font-display);
}

.rr-hero-stat span {
    color: var(--muted);
    font-size: .8125em;
    line-height: 1.4;
}

/* Ebook */
.rr-ebook-label {
    font-family: var(--font-display);
    font-size: .6875em;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.resources-ref .rr-ebook-label {
    color: #0f080499;
}

.resources-ref .rr-ebook h2 {
    color: var(--ink);
    font: 900 clamp(1.875em, 4.5vw, 3.375em)/1 var(--font-display);
}

.resources-ref .rr-ebook p:not(.rr-ebook-label) {
    color: #0f0804bf;
    line-height: 1.7;
    max-width: 580px;
}

.rr-ebook-cover {
    width: 200px;
}

.rr-ebook-cover img {
    border-radius: var(--radius-card);
    box-shadow: 0 20px 48px #00000080;
}

.rr-ebook-cover figcaption {
    background: var(--orange);
    border-radius: var(--radius-pill);
    bottom: -12px;
    box-shadow: 0 4px 12px #0000004d;
    color: var(--ink);
    font: 600 .8125em var(--font-display);
    padding: 7px 16px;
    right: -12px;
}

/* Grille des ressources */
.rr-resources h2,
.rr-final-cta h2 {
    font-size: clamp(1.75em, 4vw, 3em);
}

.rr-card {
    background: #ffffff08;
    border: 1px solid rgba(249, 115, 22, .12);
    border-radius: var(--radius-card);
    overflow: hidden;
    padding: 28px 24px;
    transition: border-color .25s, transform .2s;
}

.rr-card:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
}

.rr-card--large {
    background: #f973161a;
    border-color: #f9731638;
}

.rr-card--ebook {
    background: #f973160f;
    border-color: #f9731659;
}

.rr-card-icon {
    font-size: 2.5em;
}

.rr-card-label {
    font-family: var(--font-display);
    font-size: .6875em;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.resources-ref .rr-card-label {
    color: var(--orange);
}

.resources-ref .rr-card h3 {
    font: 800 clamp(1.25em, 2.5vw, 1.75em)/1.1 var(--font-display);
}

.rr-card-text {
    font-size: .8125em;
    line-height: 1.7;
}

.rr-card-keyword,
.rr-card-link {
    background: #f973161f;
    border-radius: var(--radius-pill);
    color: var(--orange);
    font-family: var(--font-display);
    font-size: .6875em;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    position: relative;
    z-index: 1;
}

.rr-card-link {
    background: var(--orange);
    color: var(--ink);
    font-size: .8125em;
    font-weight: 800;
    padding: 10px 20px;
}

.rr-card-number {
    bottom: 12px;
    color: #f973160f;
    font: 600 4.5em/1 var(--font-display);
    pointer-events: none;
    right: 16px;
}

.rr-highlight {
    background: var(--cream);
    border-radius: var(--radius-card);
    padding: 22px 20px;
}

.rr-highlight strong {
    color: var(--surface-brown);
    font: 900 1.375em/1 var(--font-display);
}

.rr-highlight span {
    color: #6a5040;
    font-size: .75em;
}

/* Appel final */
.rr-final-cta p:not(.eyebrow) {
    font-size: .9375em;
    line-height: 1.7;
    max-width: 560px;
}

@media (max-width: 991.98px) {
    .rr-hero::before,
    .rr-ebook::before,
    .rr-final-cta::before {
        display: none;
    }
}

@media (max-width: 760px) {
    .rr-hero,
    .rr-resources,
    .rr-final-cta {
        padding-block: 52px;
    }

    .rr-ebook {
        padding-block: 52px;
    }

    .rr-hero h1 {
        font-size: clamp(34px, 10.5vw, 48px);
    }

    .rr-card {
        padding: 22px 19px;
    }

    .rr-ebook-cover {
        width: 160px;
    }
}

@media (hover: none) {
    .rr-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rr-card {
        transition: none;
    }
}

/* ============================================================================
   Page Recrutement (.recruitment-page)
   ============================================================================ */

.recruitment-page {
    min-height: 100vh;
}

.recruitment-page .container {
    max-width: calc(1100px + var(--bs-gutter-x));
}

.recruitment-page h1,
.recruitment-page h2 {
    font-weight: 700;
    letter-spacing: -.025em;
}

.recruitment-page p,
.recruitment-page li {
    color: var(--muted);
    line-height: 1.7;
}

.recruitment-page .eyebrow {
    color: var(--orange);
}

.recruitment-hero {
    margin-top: clamp(62px, 10vh, 104px);
}

.recruitment-hero h1 {
    font-size: clamp(45px, 7.5vw, 94px);
    line-height: .84;
    max-width: 880px;
}

.recruitment-hero__lead {
    font-size: clamp(15px, 1.3vw, 18px);
    max-width: 740px;
}

.recruitment-stat {
    background: #fff4df12;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    color: var(--muted);
    font-size: .84rem;
    padding: 18px;
}

.recruitment-stat strong {
    color: var(--cream);
    display: block;
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    line-height: .9;
    margin-bottom: 5px;
}

.recruitment-profile {
    background: #fff4df12;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: clamp(24px, 4vw, 38px);
}

.recruitment-profile h2 {
    font-size: clamp(31px, 4vw, 48px);
    line-height: .92;
}

.recruitment-profile__badge {
    background: var(--orange);
    border-radius: var(--radius-pill);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 700;
    padding: 6px 12px;
    text-transform: uppercase;
}

.recruitment-profile li {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.recruitment-profile li strong {
    color: var(--cream);
}

.recruitment-profile--primary {
    background: var(--cream);
    color: var(--ink);
}

.recruitment-profile--primary h2,
.recruitment-profile--primary li strong {
    color: var(--ink);
}

.recruitment-profile--primary p,
.recruitment-profile--primary li {
    color: #5d5147;
}

.recruitment-profile--primary li {
    border-color: #0d0b0924;
}

.recruitment-benefit {
    background: #fff4df12;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 20px;
}

.recruitment-benefit h2 {
    font-size: 1.1rem;
}

.recruitment-benefit p {
    font-size: .86rem;
}

.recruitment-form-section {
    background: linear-gradient(155deg, #17120ff0, #0d0b09f5);
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    margin-top: 72px;
    padding: clamp(26px, 5vw, 52px);
}

.recruitment-form-section h2 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: .9;
}

/* Formulaire : surcharge du thème Bootstrap */
.recruitment-form .form-label {
    color: var(--cream);
    font-size: .84rem;
    font-weight: 600;
}

.recruitment-form .form-label small,
.recruitment-form .form-text {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
}

.recruitment-form .form-control,
.recruitment-form .form-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c8beb2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-color: #fff4df14;
    border: 1px solid rgba(255, 244, 223, .18);
    border-radius: 8px;
    color: var(--cream);
    font-weight: 700;
    min-height: 46px;
    padding: 11px 13px;
}

.recruitment-form .form-select {
    padding-right: 2.25rem;
}

.recruitment-form .form-control::placeholder {
    color: #c8beb28c;
}

.recruitment-form .form-control:focus,
.recruitment-form .form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px #ff6a002e;
}

.recruitment-form .form-select option {
    background: var(--ink);
}

@media (max-width: 760px) {
    .recruitment-hero {
        margin-top: 48px;
    }

    .recruitment-hero h1 {
        font-size: clamp(38px, 12vw, 56px);
        line-height: .9;
    }

    .recruitment-form-section {
        margin-top: 48px;
        padding: 24px 20px;
    }

    .recruitment-form-section h2 {
        font-size: clamp(34px, 11vw, 48px);
    }
}

/* ============================================================================
   Page Contact (.contact-ref)
   ============================================================================ */

.contact-ref {
    background: var(--surface-dark);
    min-height: 100vh;
}

/* Deux colonnes : présentation (sombre) / formulaire (clair) */
.cr-split {
    min-height: calc(100vh - 73px);
}

.cr-left,
.cr-right {
    padding: 56px;
    position: relative;
}

.cr-left {
    background: var(--surface-brown);
    isolation: isolate;
    overflow: hidden;
}

/* Quadrillage de fond + barre orange à gauche */
.cr-left::before {
    background-image:
        linear-gradient(rgba(249, 115, 22, .045) 1px, transparent 0),
        linear-gradient(90deg, rgba(249, 115, 22, .045) 1px, transparent 0);
    background-size: 48px 48px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.cr-left::after {
    background: linear-gradient(to bottom, transparent, var(--orange), transparent);
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    width: 4px;
}

.cr-watermark {
    bottom: -40px;
    color: #f973160d;
    font-family: var(--font-display);
    font-size: 20em;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    right: -20px;
    z-index: -1;
}

.cr-title {
    color: #fff;
    font-size: clamp(2.5em, 4.5vw, 3.75em);
    font-weight: 700;
    line-height: 1;
}

.cr-title__accent {
    color: var(--orange);
    font-style: normal;
}

.cr-intro {
    color: var(--muted);
    font-size: .9375em;
    line-height: 1.75;
    max-width: 480px;
}

/* Étapes du premier échange */
.cr-process__step {
    position: relative;
}

.cr-process__number {
    border: 2px solid var(--line);
    color: var(--muted);
    font: 600 1em var(--font-display);
    height: 36px;
    position: relative;
    width: 36px;
    z-index: 1;
}

.cr-process__number--done {
    background: var(--surface-raised);
    border-color: var(--orange);
    color: var(--orange);
}

.cr-process__number--active {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 20px #f9731666;
    color: var(--ink);
}

.cr-process__label {
    color: #fff;
    font: 700 .8125em/1.2 var(--font-display);
}

.cr-process__detail {
    color: var(--muted);
    font-size: .6875em;
    line-height: 1.4;
}

/* Grand écran : étapes côte à côte reliées par un trait */
@media (min-width: 992px) {
    .cr-process__step {
        flex: 1;
        text-align: center;
    }

    .cr-process__number {
        margin: 0 auto 12px;
    }

    .cr-process__label {
        margin-bottom: 4px;
    }

    .cr-process__step + .cr-process__step::before {
        background: #f9731638;
        content: "";
        height: 2px;
        left: calc(-50% + 18px);
        position: absolute;
        right: calc(50% + 18px);
        top: 18px;
    }

    .cr-process__step--current::before {
        background: var(--orange);
    }
}

/* Encadrés « Près de 800 » et Thomas Milano */
.cr-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    gap: 20px;
    padding: 20px 24px;
}

.cr-stat {
    background: #f973161a;
}

.cr-stat__value {
    color: var(--orange);
    font: 900 3.25em/1 var(--font-display);
}

.cr-stat__text {
    color: var(--cream);
    font-size: .875em;
    line-height: 1.5;
}

.cr-stat__title {
    font-size: 1.142857em;
}

.cr-thomas {
    background: var(--surface-raised);
    border-color: rgba(249, 115, 22, .1);
}

.cr-thomas__avatar {
    border: 2px solid var(--line);
    height: 56px;
    object-fit: cover;
    object-position: top center;
    width: 56px;
}

.cr-thomas__name {
    color: #fff;
    font: 600 1.125em var(--font-display);
}

.cr-thomas__role {
    color: var(--orange);
    font-size: .75em;
    font-weight: 600;
}

.cr-thomas__quote {
    border-top: 1px solid rgba(249, 115, 22, .1);
    color: var(--muted);
    font-size: .8125em;
    font-style: italic;
    line-height: 1.5;
    padding-top: 8px;
}

/* Formulaire sur fond clair : champs soulignés */
.cr-right {
    background: var(--cream);
    padding-inline: 52px;
}

.cr-right::before {
    background: var(--orange);
    content: "";
    height: 4px;
    inset: 0 0 auto;
    position: absolute;
}

.cr-form {
    --bs-gutter-y: 1.25rem;
    scroll-margin-top: 20px;
}

.cr-form__title {
    color: var(--surface-raised);
    font: 900 clamp(1.5em, 3vw, 2.25em)/1.1 var(--font-display);
}

.cr-form__sub,
.cr-form .form-label,
.cr-reassurance {
    color: #7a6050;
}

.cr-form__sub {
    font-size: .875em;
    line-height: 1.5;
}

.cr-form .form-label {
    font-size: .6875em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cr-form .form-control,
.cr-form .form-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%238a7060' d='M2 2h12v12z'/%3e%3c/svg%3e");
    background-color: transparent;
    border: 0;
    border-bottom: 2px solid var(--cream-2);
    border-radius: 0;
    color: var(--surface-raised);
    font-size: .9375em;
    padding: 10px 0;
    transition: border-color .2s;
}

.cr-form .form-select {
    background-position: right 8px center;
    background-size: 7px 7px;
    padding-right: 24px;
    text-overflow: ellipsis;
}

.cr-form textarea.form-control {
    line-height: 1.6;
    min-height: 80px;
}

.cr-form .form-control::placeholder {
    color: #b0a090;
}

.cr-form .form-control:focus,
.cr-form .form-select:focus {
    border-bottom-color: var(--orange);
    box-shadow: none;
}

.cr-form .form-select option {
    background: var(--cream);
    color: var(--surface-raised);
}

.cr-reassurance {
    border-top: 1px solid #d9d0c4;
    font-size: .75em;
}

.cr-reassurance__icon {
    background: #f973161f;
    color: var(--orange);
    font-size: .833333em;
    font-style: normal;
    font-weight: 600;
    height: 18px;
    width: 18px;
}

/* Témoignages */
.cr-testimonials {
    background: var(--surface-dark);
    border-top: 1px solid rgba(249, 115, 22, .1);
    padding-block: 48px;
}

.cr-testimonial {
    background: var(--surface-raised);
    border: 1px solid rgba(249, 115, 22, .12);
    border-radius: var(--radius-card);
    padding: 20px;
}

.cr-testimonial__avatar {
    color: #fff;
    font: 600 1.125em var(--font-display);
    height: 40px;
    width: 40px;
}

.cr-testimonial__name {
    color: #fff;
    font: 800 1em var(--font-display);
}

.cr-testimonial__level {
    color: var(--muted);
    font-size: .6875em;
}

.cr-testimonial__score {
    color: var(--orange);
    font: 800 1.25em var(--font-display);
}

.cr-testimonial__image {
    border: 1px solid rgba(249, 115, 22, .12);
    border-radius: 8px;
}

.cr-testimonial__quote {
    border-left: 2px solid var(--line);
    color: var(--muted);
    font-size: .75em;
    font-style: italic;
    line-height: 1.55;
    padding-left: 10px;
}

@media (min-width: 992px) and (max-width: 1180px) {
    .cr-left,
    .cr-right {
        padding: 44px 36px;
    }

    .cr-stat__value {
        font-size: 2.75em;
    }

    .cr-process__label {
        font-size: .75em;
    }
}

@media (max-width: 991.98px) {
    .cr-split {
        min-height: auto;
    }

    .cr-left,
    .cr-right {
        padding: 48px 28px;
    }

    .cr-watermark {
        display: none;
    }
}

@media (max-width: 760px) {
    .cr-left,
    .cr-right {
        padding-inline: 20px;
    }

    .cr-title {
        font-size: clamp(34px, 10.5vw, 48px);
    }

    .cr-testimonial {
        padding: 22px 19px;
    }
}

@media (max-width: 400px) {
    .cr-left,
    .cr-right {
        padding: 36px 18px;
    }

    .cr-title {
        font-size: 2em;
    }
}

/* ============================================================================
   Page CGU (.legal-page)
   ============================================================================ */

.legal-page {
    color: var(--cream);
    min-height: 100vh;
}

.legal-document {
    margin: clamp(56px, 8vw, 96px) auto 0;
    width: min(100% - 48px, 920px);
}

.legal-document__header {
    border-bottom: 1px solid var(--line-strong);
    margin-bottom: 56px;
    padding-bottom: 40px;
}

.legal-document__eyebrow {
    color: var(--orange);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.legal-document h1 {
    font-size: clamp(44px, 7vw, 76px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: .98;
    margin: 0;
    max-width: 820px;
}

.legal-document__site {
    color: var(--cream);
    font-weight: 600;
    margin: 24px 0 0;
}

.legal-document__updated {
    color: var(--cream-2);
    font-style: italic;
    margin: 4px 0 0;
}

.legal-document section {
    margin-top: 42px;
}

.legal-document h2 {
    color: var(--cream);
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.15;
    margin: 0 0 16px;
}

.legal-document h3 {
    color: var(--orange);
    font-size: 19px;
    line-height: 1.3;
    margin: 28px 0 10px;
}

.legal-document p,
.legal-document li {
    color: var(--cream-2);
    font-size: 16px;
    line-height: 1.75;
}

.legal-document p {
    margin: 0 0 14px;
}

.legal-document ul {
    margin: 10px 0 18px;
    padding-left: 24px;
}

.legal-document li + li {
    margin-top: 7px;
}

.legal-document strong {
    color: var(--cream);
}

.legal-document a {
    color: var(--orange);
    text-decoration: underline;
    text-decoration-color: #f9731673;
    text-underline-offset: 3px;
}

.legal-document a:hover,
.legal-document a:focus-visible {
    text-decoration-color: currentColor;
}

@media (max-width: 700px) {
    .legal-document {
        margin-top: 44px;
        width: min(100% - 36px, 920px);
    }

    .legal-document__header {
        margin-bottom: 42px;
        padding-bottom: 30px;
    }

    .legal-document section {
        margin-top: 34px;
    }

    .legal-document p,
    .legal-document li {
        font-size: 15.5px;
    }
}
