/* =====================================================================
   Success Point — feuille de style du site
   Sommaire : variables, base, composants communs, header, footer,
   accueil, vidéo, page formation, sur mesure, pages légales, alerte.
===================================================================== */

:root {
    --navy: #0F2747;
    --navy-deep: #0A1C34;
    --blue: #1E4A7E;
    --blue-hover: #12305A;
    --orange: #EE7D2B;
    --orange-light: #F39A4C;           /* texte orange sur fond sombre */
    --orange-dark: #C25A12;            /* icônes et accents sur fond clair */
    --orange-text: #AD500F;            /* petit texte sur fond clair (contraste 4,5:1) */
    --orange-ink: #2A1606;             /* texte courant sur fond orange */
    --page: #F5F6F8;
    --white: #FFFFFF;
    --field: #F9FAFB;
    --text: #14213D;
    --text-muted: #4A5872;
    --on-dark-muted: #C9D4E5;
    --on-dark-soft: #9FB0C8;
    --border: #E4E8EE;
    --border-field: #CDD5E0;
    --tint-blue: #E8EEF7;
    --tint-peach: #FFF4EA;
    --tint-peach-strong: #FDEBDD;
    --qualiopi: #35347F;

    --font-title: "Sora", system-ui, sans-serif;
    --font-text: "Inter", system-ui, sans-serif;

    --radius-s: 16px;
    --radius-m: 20px;
    --radius-l: 28px;
    --radius-pill: 999px;

    --container: 1240px;
    --gutter: 32px;
    --section-space: 112px;
    --header-height: 81px;
}

/* ---------- Base ---------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.5;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
}

p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

[id] { scroll-margin-top: calc(var(--header-height) + 9px); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.banner :focus-visible, .cta :focus-visible, .founder :focus-visible { outline-color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section-space); }
.section--white { background: var(--white); border-block: 1px solid var(--border); }
.section--navy { background: var(--navy); color: var(--white); }

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    background: var(--orange);
    color: var(--navy);
    font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--navy); }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- Composants communs -------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary, .btn--primary:hover { background: var(--orange); color: var(--navy); }
.btn--secondary, .btn--secondary:hover { background: var(--navy); color: var(--white); }
.btn--outline, .btn--outline:hover { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.btn--white, .btn--white:hover { background: var(--white); color: var(--navy); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
    color: var(--orange-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.section--navy .eyebrow, .eyebrow--on-dark { color: var(--orange-light); }

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.section-head h2 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.section-head--large h2 { font-size: clamp(30px, 4.2vw, 44px); }
.section-head p:not(.eyebrow) { color: var(--text-muted); line-height: 1.6; }

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--tint-blue);
    color: var(--blue);
}

.feature-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.feature-card h2, .feature-card h3 { font-size: 18px; font-weight: 600; }
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

.icon { display: block; flex: 0 0 auto; }

/* ---------- Header -------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--navy);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-height);
    padding-block: 15px;
}
.site-header__brand { display: flex; align-items: center; gap: 14px; }

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: pre;
    color: var(--white);
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .06em;
    text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand span { color: var(--orange-light); }
.brand__logo { width: auto; height: 32px; margin-right: 8px; }

.site-header__qualiopi { display: block; border-radius: 6px; background: var(--white); padding: 3px 6px; }
.site-header__qualiopi img { width: auto; height: 44px; }

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--on-dark-muted);
    text-decoration: none;
}
.site-nav__link:hover { color: var(--white); }
.site-nav__link[aria-current] {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline 2px var(--orange-light);
    text-underline-offset: 10px;
}
.site-nav__cta { min-height: 44px; padding: 10px 20px; font-size: 15px; }

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 12px;
    background: transparent;
    color: var(--white);
}
.menu-toggle__close, .menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

/* Le menu hamburger ne s'active que si le JavaScript est disponible */
@media (max-width: 900px) {
    .js .menu-toggle { display: inline-flex; }
    .site-header__inner { flex-wrap: wrap; }
    .site-nav { flex-wrap: wrap; width: 100%; gap: 4px 24px; }
    .js .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding-bottom: 8px;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
    .js .site-nav.is-open { display: flex; }
    .js .site-nav__link { min-height: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .js .site-nav__link[aria-current] { text-underline-offset: 8px; }
    .js .site-nav__cta { margin-top: 12px; min-height: 48px; }
    html:not(.js) .site-header { position: static; }
}

@media (max-width: 420px) {
    .site-header__brand { gap: 10px; }
    .brand { font-size: 17px; }
    .brand__logo { height: 26px; margin-right: 6px; }
    .site-header__qualiopi img { height: 38px; }
}

/* Très petits écrans (320 px) : le bouton du menu doit rester sur la première ligne */
@media (max-width: 360px) {
    .site-header__inner { column-gap: 8px; }
    .site-header__brand { gap: 6px; }
    .brand { font-size: 14px; letter-spacing: .02em; }
    .brand__logo { height: 22px; margin-right: 4px; }
    .site-header__qualiopi { padding: 2px 4px; }
    .site-header__qualiopi img { height: 30px; }
}

/* ---------- Footer -------------------------------------------------- */

.site-footer { background: var(--navy-deep); color: var(--on-dark-soft); }
.site-footer__inner { display: flex; flex-direction: column; gap: 32px; padding-block: 56px 32px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 4px; max-width: 320px; font-size: 14px; line-height: 1.6; }
.site-footer__legal { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); column-gap: 40px; align-content: start; font-size: 14px; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--white); }
.site-footer .brand { color: var(--white); }
.site-footer__legal a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.social { display: flex; gap: 10px; align-self: flex-start; }
.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
}
.site-footer .social a { color: var(--white); }
.site-footer .social a:hover { background: var(--orange); color: var(--navy); }
.site-footer__identity { font-size: 13px; line-height: 1.7; }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
}

/* ---------- Héros (fond bleu nuit) ---------------------------------- */

.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hero__ring { position: absolute; border: 1px solid rgba(255, 255, 255, .07); border-radius: 50%; pointer-events: none; }
.hero__ring--1 { right: -180px; top: -120px; width: 620px; height: 620px; }
.hero__ring--2 { right: -60px; top: 0; width: 380px; height: 380px; border-color: rgba(238, 125, 43, .25); }
.hero__lead { max-width: 600px; color: var(--on-dark-muted); font-size: 19px; line-height: 1.6; }

/* ---------- Accueil ------------------------------------------------- */

.home-hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 72px 120px; }
.home-hero__text { display: flex; flex: 1 1 520px; flex-direction: column; gap: 28px; min-width: 0; }
.home-hero h1 { font-size: clamp(38px, 5.6vw, 60px); line-height: 1.05; letter-spacing: -.025em; }
.home-hero h1 span { color: var(--orange-light); }
.home-hero__media { position: relative; flex: 1 1 440px; min-width: 0; }

.badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .08);
    color: #E3E9F2;
    font-size: 13px;
    font-weight: 500;
}
.badge .icon { color: var(--orange-light); }
.badge--primary { border-color: var(--orange); background: var(--orange); color: var(--navy); font-weight: 600; }

.stats { display: flex; flex-wrap: wrap; gap: 20px 36px; padding-top: 12px; }
.stats li { display: flex; flex-direction: column; gap: 4px; }
.stats li + li { padding-left: 36px; border-left: 1px solid rgba(255, 255, 255, .15); }
.stats strong { font-family: var(--font-title); font-size: 30px; font-weight: 700; line-height: 1.3; }
.stats strong small { color: var(--on-dark-soft); font-size: 18px; }
.stats span { color: var(--on-dark-soft); font-size: 13px; }

.rating {
    position: absolute;
    right: -12px;
    bottom: -36px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 18px;
    background: var(--white);
    color: var(--text);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .45);
}
.rating img { width: 52px; height: 64px; object-fit: contain; }
.rating div { display: flex; flex-direction: column; gap: 4px; }
.rating__stars { display: flex; gap: 2px; color: var(--orange); }
.rating__stars .is-empty { color: #D5DBE4; }
.rating strong { font-size: 13px; font-weight: 600; }
.rating small { color: var(--text-muted); font-size: 12px; }

.funding { position: relative; z-index: 1; margin-top: -56px; }
.funding__box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    padding: 40px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 24px 60px -30px rgba(15, 39, 71, .35);
}
.funding__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--tint-peach-strong); color: var(--orange-dark); }
.funding__intro { display: flex; flex: 1 1 420px; flex-direction: column; gap: 8px; min-width: 0; }
.funding__intro h2 { font-size: 24px; letter-spacing: -.01em; }
.funding__intro p { color: var(--text-muted); line-height: 1.6; }
.qualiopi-word { color: var(--qualiopi); font-family: "Poppins", sans-serif; font-weight: 700; letter-spacing: -.01em; }
.funding__steps { display: flex; flex: 1 1 100%; flex-direction: column; gap: 16px; min-width: 0; }
.funding__steps-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.funding__steps-head h3 { font-size: 18px; font-weight: 600; }
.funding__steps-head a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.steps-grid li { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius-s); background: var(--page); }
.steps-grid b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--navy);
    font-family: var(--font-title);
    font-size: 14px;
}
.steps-grid strong { font-size: 15px; font-weight: 600; line-height: 1.35; }
.steps-grid span { color: var(--text-muted); font-size: 13px; line-height: 1.55; }

.catalog { display: flex; flex-direction: column; gap: 48px; padding-block: var(--section-space) 48px; }
.catalog__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }
.catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 24px; }

.catalog__grid li { display: flex; }
.training-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}
.training-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(18, 48, 90, .35); }
.training-card__media { position: relative; overflow: hidden; aspect-ratio: 5 / 4; }
.training-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.training-card:hover img { transform: scale(1.05); }
.training-card__tag {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .94);
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
}
.training-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 22px 24px; }
.training-card h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.training-card p { flex: 1; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.training-card__more { display: inline-flex; align-items: center; gap: 6px; padding-top: 6px; color: var(--orange-text); font-size: 14px; font-weight: 600; }

.banner-wrap { padding-block: 24px var(--section-space); }
.banner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius-l);
    background: var(--orange);
    color: var(--navy);
}
.banner::before {
    content: "";
    position: absolute;
    right: 120px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.banner > * { position: relative; }
.banner__text { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.banner h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.15; letter-spacing: -.015em; }
.banner p { color: var(--orange-ink); font-size: 17px; line-height: 1.55; }

.approach { display: flex; flex-direction: column; gap: 56px; padding-block: 104px; }
.approach__statement { max-width: 1000px; font-family: var(--font-title); font-size: clamp(26px, 3.2vw, 34px); font-weight: 500; line-height: 1.35; letter-spacing: -.015em; }
.approach__statement span { color: var(--orange-light); }
.approach__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.approach__list li { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.approach__list .icon { color: var(--orange-light); }
.approach__list h2 { font-size: 19px; font-weight: 600; }
.approach__list p { color: var(--on-dark-muted); font-size: 15px; line-height: 1.6; }

.values { display: flex; flex-wrap: wrap; gap: 56px; }
.values > .section-head { flex: 1 1 300px; min-width: 0; align-self: flex-start; }
.values__grid { display: grid; flex: 2 1 600px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; min-width: 0; }

.team { display: flex; flex-direction: column; gap: 64px; padding-block: 104px; }
.team__block { display: flex; flex-direction: column; gap: 36px; }
.team__layout { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px; }
.leader {
    display: flex;
    flex: 1 1 340px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
    padding: 36px;
    border-radius: 24px;
    background: var(--navy);
    color: var(--white);
}
.leader__rank { padding: 5px 12px; border-radius: var(--radius-pill); background: var(--orange); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.leader img { width: 168px; height: 168px; border: 5px solid var(--orange); border-radius: 50%; background: #234D8F; object-fit: cover; }
.leader h3 { font-size: 28px; letter-spacing: -.01em; }
.leader__role { color: var(--orange-light); font-weight: 600; }
.leader > p:last-child { color: var(--on-dark-muted); line-height: 1.6; }
/* Petits écrans : portrait réduit à gauche du nom, description sur toute la largeur */
@media (max-width: 900px) {
    .leader { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "portrait rang" "portrait nom" "texte texte"; align-content: start; gap: 8px 16px; padding: 24px; }
    .leader__rank { grid-area: rang; justify-self: start; align-self: end; }
    .leader img { grid-area: portrait; align-self: center; width: clamp(72px, 22vw, 88px); height: auto; aspect-ratio: 1; border-width: 3px; }
    .leader > div { grid-area: nom; align-self: start; }
    .leader h3 { font-size: 22px; }
    .leader__role { font-size: 14px; line-height: 1.4; }
    .leader > p:last-child { grid-area: texte; margin-top: 8px; font-size: 15px; }
}
.squad { display: flex; flex: 1.6 1 460px; flex-direction: column; gap: 14px; min-width: 0; padding-left: 24px; border-left: 2px dashed var(--orange); }
.squad h3 { font-size: 18px; font-weight: 600; }
.squad__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.hero-card { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 18px; background: var(--page); }
.hero-card img { width: 68px; height: 68px; flex: 0 0 auto; border: 3px solid var(--accent, var(--blue)); border-radius: 50%; background: #234D8F; object-fit: cover; }
.hero-card div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-card__alias { align-self: flex-start; padding: 2px 8px; border: 1px solid var(--accent, var(--blue)); border-radius: var(--radius-pill); background: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-card strong { font-family: var(--font-title); font-weight: 600; }
.hero-card__role { color: var(--text-muted); font-size: 14px; line-height: 1.4; }

.partners { display: flex; flex-direction: column; gap: 24px; }
.partners h3 { font-size: 22px; font-weight: 600; }
.partners__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.partners li { display: flex; }
.partner { display: flex; flex: 1; align-items: flex-start; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-m); color: var(--text); text-decoration: none; }
a.partner { transition: border-color .2s ease, box-shadow .2s ease; }
a.partner:hover { color: var(--text); border-color: var(--orange); box-shadow: 0 18px 40px -18px rgba(18, 48, 90, .35); }
.partners img { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.partner > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.partners strong { font-size: 15px; font-weight: 600; }
.partners span { color: var(--text-muted); font-size: 13px; line-height: 1.5; }

.contact__box { display: flex; flex-wrap: wrap; gap: 56px; padding: clamp(24px, 4vw, 56px); border-radius: var(--radius-l); background: var(--navy); color: var(--white); }
.contact__intro { display: flex; flex: 1 1 320px; flex-direction: column; gap: 20px; min-width: 0; }
.contact__intro .eyebrow { color: var(--orange-light); }
.contact__intro h2 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.contact__intro p { color: var(--on-dark-muted); line-height: 1.6; }
.contact__links { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.contact__links a { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--white); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact__links a > span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--orange-light); }

.form { display: flex; flex: 1.3 1 420px; flex-direction: column; gap: 18px; min-width: 0; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-m); background: var(--white); color: var(--text); }
.form__row { display: flex; flex-wrap: wrap; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form__row > .form__field { flex: 1 1 200px; }
.form__field label { font-size: 14px; font-weight: 600; }
.form__field input, .form__field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border-field);
    border-radius: 12px;
    background: var(--field);
    font-size: 16px;
}
.form__field textarea { resize: vertical; }
.form__field input:focus-visible, .form__field textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.form__field [aria-invalid="true"] { border-color: #B42318; }
.form__error { color: #B42318; font-size: 13px; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__privacy { max-width: 300px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.form__footer .btn { min-height: 48px; border: 0; font-size: 15px; }
/* Champ piège anti-robots : hors écran, ignoré par les lecteurs d'écran */
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Vidéo --------------------------------------------------- */

.video { position: relative; overflow: hidden; border-radius: 24px; background: var(--white); aspect-ratio: 918 / 865; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.video > img, .video > video { width: 100%; height: 100%; object-fit: cover; }
.video > video { object-fit: contain; background: var(--navy-deep); }
.video [hidden] { display: none; }
.video__pill {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 10px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--navy);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}
.video__pill span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--navy); }
.video__big {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: auto;
    border: 0;
    border-radius: 50%;
    background: var(--orange);
    color: var(--navy);
}
/* Contour orange des boutons de lecture, qui pulse doucement pour attirer l'œil */
.video__big {
    box-shadow: 0 0 0 10px rgba(238, 125, 43, .25), 0 20px 40px -12px rgba(0, 0, 0, .5);
    animation: halo-lecture 2s ease-in-out infinite;
}
@keyframes halo-lecture {
    0%, 100% { box-shadow: 0 0 0 6px rgba(238, 125, 43, .4), 0 20px 40px -12px rgba(0, 0, 0, .5); }
    50% { box-shadow: 0 0 0 14px rgba(238, 125, 43, .18), 0 20px 40px -12px rgba(0, 0, 0, .5); }
}
/* Sur la pastille, seul le rond « lecture » porte le contour */
.video__pill span { box-shadow: 0 0 0 6px rgba(238, 125, 43, .3); animation: halo-pastille 2s ease-in-out infinite; }
@keyframes halo-pastille {
    0%, 100% { box-shadow: 0 0 0 3px rgba(238, 125, 43, .5); }
    50% { box-shadow: 0 0 0 8px rgba(238, 125, 43, .2); }
}
.video__caption {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 20px 16px;
    background: linear-gradient(transparent, rgba(10, 28, 52, .85) 60%);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}
.video__caption span + span { color: var(--on-dark-muted); font-weight: 500; }

/* ---------- Page formation ------------------------------------------ */

.training-hero .hero__ring { right: -200px; top: -160px; width: 700px; height: 700px; }
.training-hero__inner { position: relative; display: flex; flex-direction: column; gap: 28px; padding-block: 18px 88px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; font-size: 13px; color: var(--on-dark-soft); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.breadcrumb li + li::before { content: "/"; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); }
.training-hero__columns { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.training-hero__text { display: flex; flex: 1 1 540px; flex-direction: column; gap: 24px; min-width: 0; }
.training-hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.06; letter-spacing: -.025em; overflow-wrap: break-word; }
.training-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.training-hero figure { display: flex; flex: 1 1 380px; flex-direction: column; gap: 12px; min-width: 0; }
.training-hero figure .video { border-radius: var(--radius-l); }
.training-hero figcaption { color: var(--on-dark-soft); font-size: 13px; }

.program { display: flex; flex-direction: column; gap: 40px; padding-block: 96px 40px; }
.practical { display: flex; flex-direction: column; gap: 22px; padding: clamp(20px, 3vw, 28px); }
.practical__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.practical__head h3 { font-size: 20px; font-weight: 600; }
.practical__head p { color: var(--text-muted); font-size: 14px; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.figures li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius-s); background: var(--page); }
.figures strong { color: var(--navy); font-family: var(--font-title); font-size: 32px; line-height: 1.1; }
.figures span { color: var(--text-muted); font-size: 14px; }
.practical dl div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-block: 14px; border-top: 1px solid var(--border); }
.practical dl div:last-child { padding-bottom: 0; }
.practical dt { flex: 0 0 140px; color: var(--text-muted); font-size: 14px; font-weight: 600; }
.practical dd { flex: 1 1 240px; font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 16px 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.chips a:hover { background: var(--navy); color: var(--white); }
.chips b { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--tint-peach-strong); color: var(--orange-text); font-family: var(--font-title); font-size: 12px; }

.modules { display: flex; flex-direction: column; gap: 32px; padding-bottom: 64px; }
.module { display: flex; flex-direction: column; gap: 36px; padding: clamp(22px, 3vw, 40px); border-radius: var(--radius-l); }
.module__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.module:nth-of-type(even) .module__head { flex-direction: row-reverse; }
.module__text { display: flex; flex: 1.3 1 460px; flex-direction: column; gap: 18px; min-width: 0; }
.module__number { color: var(--orange-text); font-family: var(--font-title); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.module h3 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -.02em; }
.module__text > p:not(.module__number) { color: var(--text-muted); font-size: 17px; line-height: 1.65; }
/* Largeur plafonnée : les illustrations sources sont petites, les agrandir les rend floues */
.module__media { flex: 0 1 360px; min-width: 0; }
.module__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: var(--radius-m); }
.specifics { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.specifics div { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 14px; background: var(--page); }
.specifics dt { color: var(--text-muted); font-size: 12px; }
.specifics dd { font-size: 14px; font-weight: 600; }
.objectives { display: flex; flex-direction: column; gap: 16px; }
.module h4 { font-size: 18px; font-weight: 600; }
.objectives ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.objectives li { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; }
.objectives .icon-box { width: 32px; height: 32px; border-radius: 10px; }
.objectives strong { font-weight: 600; }
.objectives span:last-child { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.timeline { display: flex; flex-direction: column; gap: 24px; padding: 24px; border-radius: var(--radius-m); background: var(--tint-peach); }
.timeline h4 { font-size: 17px; }
.timeline ol { display: flex; }
.timeline li { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 12px; min-width: 0; padding-inline: 4px; text-align: center; }
/* Trait orange reliant chaque rond au précédent */
.timeline li + li::before { content: ""; position: absolute; top: 21px; right: 50%; width: 100%; height: 3px; background: var(--orange); }
.timeline b {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--orange);
    color: var(--navy);
    font-family: var(--font-title);
    box-shadow: 0 0 0 6px var(--tint-peach);
}
.timeline span { font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: break-word; }

@media (max-width: 640px) {
    .timeline ol { flex-direction: column; gap: 14px; }
    .timeline li { flex: 0 0 auto; flex-direction: row; gap: 18px; padding-inline: 0; text-align: left; }
    .timeline li + li::before { top: auto; right: auto; bottom: 50%; left: 20.5px; width: 3px; height: calc(100% + 14px); }
    .timeline b { box-shadow: none; } /* sinon le halo masque le trait entre deux ronds */
}

.module__price { padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 15px; }
.module__price strong { color: var(--text); }

.terms { display: flex; flex-wrap: wrap; gap: 56px; padding-block: 96px; }
.terms > .section-head { flex: 1 1 320px; align-self: flex-start; min-width: 0; }
.terms > .section-head h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.12; }
.accordion { display: flex; flex: 2 1 560px; flex-direction: column; gap: 10px; min-width: 0; }
.accordion details { padding-inline: 22px; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--field); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 14px; font-weight: 600; list-style: none; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { color: var(--orange-dark); transition: transform .2s ease; }
.accordion details[open] summary .icon { transform: rotate(45deg); }
.accordion p { padding-bottom: 20px; color: var(--text-muted); font-size: 15px; line-height: 1.65; }

.cta-wrap { padding-block: 96px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-l); background: var(--orange); color: var(--navy); }
.cta__text { display: flex; flex: 1 1 480px; flex-direction: column; gap: 12px; min-width: 0; }
.cta h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -.02em; }
.cta p { color: var(--orange-ink); font-size: 17px; line-height: 1.6; }

.related { display: flex; flex-direction: column; gap: 24px; padding-bottom: 96px; }
.related h2 { font-size: 26px; }
.related ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.related li { display: flex; }
.related a { display: flex; flex: 1; align-items: stretch; overflow: hidden; color: var(--text); text-decoration: none; transition: box-shadow .2s ease; }
.related a:hover { color: var(--text); box-shadow: 0 18px 40px -18px rgba(18, 48, 90, .35); }
.related img { width: 110px; height: 100%; min-height: 88px; flex: 0 0 auto; object-fit: cover; }
.related span { align-self: center; padding: 18px; font-size: 15px; font-weight: 600; line-height: 1.4; }

/* ---------- Formations sur mesure ------------------------------------ */

.custom-hero .hero__ring { left: 50%; top: 40px; width: 900px; height: 900px; margin-left: -450px; border-color: rgba(255, 255, 255, .06); }
.custom-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: calc(900px + 2 * var(--gutter)); padding-block: 88px 104px; text-align: center; }
.custom-hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -.025em; }
.custom-hero .hero__lead { max-width: 700px; }
.intro-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; padding-block: 96px 24px; }
.intro-cards .feature-card { padding: 32px; }
.intro-cards h2 { font-size: 20px; }
.intro-cards p { line-height: 1.65; }

.method { display: flex; flex-direction: column; gap: 40px; padding-block: 96px; }
.stepper { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.stepper__list { display: flex; flex: 1 1 380px; flex-direction: column; gap: 10px; min-width: 0; }
.stepper__button { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 11px 20px; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--white); text-align: left; transition: background-color .2s ease, border-color .2s ease; }
.stepper__button:hover { border-color: var(--orange); }
.stepper__button b { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: var(--tint-blue); color: var(--blue); font-family: var(--font-title); font-size: 14px; }
.stepper__button span { font-family: var(--font-title); font-size: 18px; font-weight: 600; }
.stepper__button[aria-pressed="true"] { border-color: var(--orange); background: var(--tint-peach); }
.stepper__button[aria-pressed="true"] b { background: var(--orange); color: var(--navy); }
.stepper__panels { flex: 1.3 1 440px; min-width: 0; }
.stepper__panel { position: relative; display: flex; flex-direction: column; gap: 20px; min-height: 360px; overflow: hidden; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-l); background: var(--navy); color: var(--white); }
.stepper__panel[hidden] { display: none; }
.stepper__panel + .stepper__panel { margin-top: 16px; }
.stepper__watermark { position: absolute; right: 24px; top: -30px; color: rgba(255, 255, 255, .05); font-family: var(--font-title); font-size: clamp(120px, 16vw, 220px); font-weight: 800; line-height: 1; pointer-events: none; }
.stepper__panel h3 { font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -.02em; }
.stepper__panel p:not([class]) { position: relative; max-width: 520px; color: var(--on-dark-muted); font-size: 18px; line-height: 1.65; }
.stepper__progress { display: flex; gap: 6px; margin-top: auto; padding-top: 24px; }
.stepper__progress span { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); }
.stepper__progress .is-done { background: var(--orange); }
html:not(.js) .stepper__list { display: none; }
html:not(.js) .stepper__panel[hidden] { display: flex; }

.founder-wrap { padding-bottom: var(--section-space); }
.founder { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: clamp(24px, 4vw, 56px); border-radius: var(--radius-l); background: var(--orange); color: var(--navy); }
.founder__quote { display: flex; flex: 1.4 1 420px; flex-direction: column; gap: 24px; min-width: 0; }
.founder blockquote { margin: 0; font-family: var(--font-title); font-size: clamp(26px, 3.2vw, 34px); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.founder figcaption { display: flex; align-items: center; gap: 16px; }
.founder figcaption img { width: 64px; height: 64px; border: 3px solid var(--white); border-radius: 50%; object-fit: cover; }
.founder figcaption div { display: flex; flex-direction: column; gap: 2px; }
.founder figcaption strong { font-weight: 600; }
.founder figcaption span { color: var(--orange-ink); font-size: 14px; }
.founder__contact { display: flex; flex: 1 1 300px; flex-direction: column; gap: 16px; min-width: 0; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-m); background: var(--white); color: var(--text); }
.founder__contact h2 { font-size: 22px; }
.founder__contact p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.founder__contact .btn { font-size: 15px; overflow-wrap: anywhere; }
.founder__contact .social { align-self: center; }
.founder__contact .social a { background: var(--page); color: var(--navy); }
.founder__contact .social a:hover { background: var(--navy); color: var(--white); }

/* ---------- Pages légales ------------------------------------------- */

.legal { max-width: 900px; padding-block: 64px var(--section-space); }
.legal h1 { margin-bottom: 32px; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; }
.legal h2, .legal h3, .legal h4, .legal h5 { margin: 32px 0 12px; font-family: var(--font-title); line-height: 1.3; }
.legal h2 { font-size: 24px; }
.legal h3 { font-size: 20px; }
.legal ul { padding-left: 24px; list-style: disc; }
.legal ol { padding-left: 24px; list-style: decimal; }
.legal p, .legal ul, .legal ol { margin-bottom: 16px; line-height: 1.7; overflow-wrap: break-word; }
.legal li { margin-bottom: 6px; }
.legal .text-gold { color: var(--orange-text); font-weight: 600; }

/* ---------- Message de confirmation / d'erreur ----------------------- */

.toast { position: fixed; right: 16px; top: calc(var(--header-height) + 8px); z-index: 30; display: flex; align-items: flex-start; gap: 8px; max-width: min(500px, calc(100% - 32px)); padding: 10px 10px 10px 18px; border: 1px solid; border-radius: var(--radius-s); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35); font-weight: 600; font-size: 15px; }
.toast--success { border-color: #A6D9B4; background: #E7F6EC; color: #14532D; }
.toast--error { border-color: #F3B8B2; background: #FDECEA; color: #8A1C13; }
.toast__body { padding-block: 10px; }
.toast__body ul { padding: 0; list-style: none; }
.toast__close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 50%; background: transparent; }

/* ---------- Petits écrans ------------------------------------------- */

@media (max-width: 700px) {
    :root { --gutter: 20px; --section-space: 72px; }
    .home-hero__inner { padding-block: 48px 112px; }
    .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .stats li + li { padding-left: 12px; }
    .stats strong { font-size: 26px; }
    .rating { right: 8px; bottom: -44px; padding: 10px 14px; }
    .rating img { width: 40px; height: 50px; }
    .video__pill { left: 12px; bottom: 44px; }
    .funding__box { gap: 24px; padding: 24px; }
    .approach, .team { padding-block: 72px; }
    .squad { padding-left: 16px; }
    .partner { padding: 20px; }
    .form__footer .btn { width: 100%; }
    .program, .terms, .method, .intro-cards { padding-block: 64px; }
    .program { padding-bottom: 32px; }
    .cta-wrap { padding-block: 64px; }
    .custom-hero__inner { padding-block: 56px 72px; }
    .cta .btn-group, .cta .btn { width: 100%; }
    .site-footer__legal { grid-template-columns: 1fr; }
}
