/* ═══════════════════════════════════════════
   STAND-UP ACADEMY — SOCLE « ÉPURÉ » DES PAGES INTÉRIEURES (revue du 17/11/2026)
   ───────────────────────────────────────────
   Reprend les règles de design de l'accueil (home-epure.css) pour les autres pages :
   - fond marron foncé en dégradé continu, plus de grandes photos plein écran ;
   - bulles orange par section (ajoutées par sua-epure.js), coupées au trait de section ;
   - cartes en verre (recette de la maquette Figma) ;
   - petites pastilles pleines (dégradé orange, texte foncé) ;
   - photos aux couleurs d'origine, sans filtre ni voile.
   Chargé APRÈS la feuille de la page. Les animations (GSAP, Lenis, parallaxe) sont
   dans sua-epure.js. L'accueil garde home-epure.css + home-gsap.js.
   ═══════════════════════════════════════════ */

/* ─── Recette « verre » (identique à l'accueil) ─── */
:root {
    --he-glass-bg: linear-gradient(157deg, rgba(74, 31, 4, 0.72) 0%, rgba(38, 15, 2, 0.8) 100%);   /* plus opaque (revue du 17/11) : texte lisible même quand une bulle passe derrière ; la maquette était à 20 % */
    --he-glass-border: rgba(240, 122, 26, 0.3);
    --he-glass-blur: blur(11.5px);
    --he-glass-shadow: 5px 9px 19px 3px rgba(0, 0, 0, 0.16);
    --sua-page-bg: linear-gradient(180deg, #2b1200 0%, #351705 18%, #2a1102 40%, #361806 62%, #2a1102 82%, #1f0c02 100%);
}

/* ─── Fond de page continu ───
   « body:not(#sua-x) » : sélecteur volontairement plus prioritaire que ceux des pages
   (certaines forcent leur fond noir avec !important et des sélecteurs très longs). */
html body:not(#sua-x) {
    background: var(--sua-page-bg) #2b1200;
}

/* ─── Dégradé propre à chaque section (relevé dans la maquette Accueil.svg) ───
   #2B1200 (marron) -> #1A0A00 (presque noir), direction différente d'une section à
   l'autre ; sua-epure.js pose ces classes en alternance sur les sections de la page.
   Double :not() : plus prioritaire que le « fond transparent » des sections. */
html body:not(#sua-x):not(#sua-y) .sua-g-0 { background: linear-gradient(317deg, #1a0a00 40%, #2b1200 100%) !important; }
html body:not(#sua-x):not(#sua-y) .sua-g-1 { background: linear-gradient(134deg, #2b1200 0%, #1a0a00 60%) !important; }
html body:not(#sua-x):not(#sua-y) .sua-g-2 { background: linear-gradient(192deg, #2b1200 0%, #1a0a00 60%) !important; }
html body:not(#sua-x):not(#sua-y) .sua-g-3 { background: linear-gradient(180deg, #1a0a00 0%, #2b1200 100%) !important; }
html body:not(#sua-x):not(#sua-y) .sua-g-4 { background: linear-gradient(120deg, #2b1200 0%, #1a0a00 60%) !important; }
html body:not(#sua-x):not(#sua-y) .sua-g-foot { background: linear-gradient(140deg, #2b1200 0%, #1a0a00 60%) !important; }
/* Trait entre sections, comme la maquette (orange à 30 %) */
html body:not(#sua-x) .sua-g-1, html body:not(#sua-x) .sua-g-2, html body:not(#sua-x) .sua-g-3,
html body:not(#sua-x) .sua-g-4, html body:not(#sua-x) .sua-g-foot { border-top: 1px solid rgba(240, 122, 26, 0.3) !important; }

/* ─── Lenis (défilement doux) ─── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ─── Bulles par section (insérées par sua-epure.js) ─── */
.he-orbs {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    clip-path: inset(0);                  /* les bulles s'arrêtent net au trait de section */
}
.he-orb {
    position: absolute;
    aspect-ratio: 1;
    width: var(--s);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    translate: 0 var(--par, 0px);         /* parallaxe (sua-epure.js) */
    animation: he-float var(--d, 16s) ease-in-out infinite alternate;
    will-change: transform;
}
.he-sphere { filter: saturate(1.15) brightness(1.12); }
.sua-orb-r {
    --s: clamp(520px, 54vw, 1040px);
    background-image: url('assets/figma/sec-ellipse-31-droite.svg');
    left: calc(50% + 360px - var(--s) * .048);
    top: 4%;
    --d: 16s;
}
.sua-orb-l {
    --s: clamp(520px, 52vw, 1000px);
    background-image: url('assets/figma/sec-ellipse-33.svg');
    left: calc(50% - 400px - var(--s) * .952);
    top: 32%;
    --d: 18s;
    animation-direction: alternate-reverse;
}
@keyframes he-float {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(0, -26px, 0); }
}
@media (max-width: 900px) {
    .he-orbs .he-sphere { --s: 480px; opacity: .6; }
    .sua-orb-r { left: auto; right: -280px; top: 10%; }
    .sua-orb-l { left: -280px; top: 45%; }
}
@media (prefers-reduced-motion: reduce) {
    .he-orb { animation: none !important; }
}

/* ─── Petites pastilles PLEINES (dégradé orange, texte foncé) ─── */
.fm-pill,
.fm-finale-pill,
.dec-apres-card-pill,
.dec-chapters-eyebrow,
.dec-promise-photo-tag,
.dec-chap-image-tag,
.dec-tarif-formula-tag,
.dec-tarif-qualiopi-tag,
.dec-tarif-formula-badge,
.dec-admission-stamp,
.dec-admission-eyebrow {
    background: linear-gradient(90deg, #f1951b 0%, #f14000 100%) !important;
    border: 0 !important;
    color: #1a0a00 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.fm-finale-pill-dot,
.dec-admission-stamp-dot { background: #1a0a00 !important; box-shadow: none !important; animation: none !important; }
.dec-admission-eyebrow svg, .dec-admission-stamp svg { color: #1a0a00 !important; stroke: currentColor; }

/* ═══ Pages de formation (Découverte, Set Pro, Spectacle Pro) ═══ */

/* Sections transparentes : le fond continu passe dessous ; un trait fin les sépare */
html body:not(#sua-x) .fm-section,
html body:not(#sua-x) .fm-section.is-bg-1,
html body:not(#sua-x) .fm-section.is-bg-2,
html body:not(#sua-x) .fm-section.is-bg-3,
html body:not(#sua-x) .fm-hero-cine,
html body:not(#sua-x) .fm-finale {
    background: transparent !important;
    position: relative;
}
.fm-section,
.fm-finale { border-top: 1px solid rgba(240, 122, 26, 0.12); }
.fm-section::before,
.fm-section::after { display: none !important; }

/* Plus de grandes photos assombries en fond de section */
.dec-chapters-head-bg,
.dec-tarif-bg,
.dec-tmoin-bg,
.fm-finale-bg,
.fm-promise-slide-bg,
.fm-hero-cine-bg-grade,
.fm-hero-cine-bg-grain { display: none !important; }

/* ─── Haut de page des formations, d'après la maquette « Formation pro » (17/11) ───
   Centré, sur les grands arcs orange de l'accueil (ajoutés par sua-epure.js), sans photo :
   pastille au-dessus du titre, titre espacé, texte d'intro dans un encadré en verre bordé
   d'orange, bouton, puis les chiffres clés dans une barre en verre. */
.fm-hero-cine-bg { display: none !important; }
html body:not(#sua-x):not(#sua-y) .fm-hero-cine {
    min-height: 100vh;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(120% 75% at 50% 100%, #3d1a06 0%, #241002 45%, #140700 100%) !important;
}
.fm-hero-cine .hero-orb { translate: 0 var(--hm-rise, 0px); }   /* montée des arcs à l'arrivée */
.fm-hero-cine-inner {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1040px;
}
.sua-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    margin: 0 0 30px;
    padding: 0 20px;
    border-radius: 22px;
    border: 1px solid var(--orange, #f07a1a);
    background: var(--he-glass-bg);
    backdrop-filter: var(--he-glass-blur);
    -webkit-backdrop-filter: var(--he-glass-blur);
    font: 400 19px/1 'Bebas Neue', sans-serif;
    letter-spacing: 0.02em;
    color: #fff;
}
.sua-hero-badge svg { width: 24px; height: 24px; color: var(--orange, #f07a1a); flex: 0 0 auto; }
html body:not(#sua-x) .fm-hero-cine-title {
    font-size: clamp(56px, 7.2vw, 124px);
    line-height: 0.94;
    letter-spacing: 0.05em;
    text-align: center;
    text-shadow: 0 6px 34px rgba(0, 0, 0, 0.45);
    margin-bottom: 30px;
}
html body:not(#sua-x) .fm-hero-cine-deck {
    max-width: 640px;
    margin: 0 auto 30px;
    padding: 18px 26px;
    border-radius: 14px;
    border: 1px solid var(--orange, #f07a1a);
    background: var(--he-glass-bg);
    backdrop-filter: var(--he-glass-blur);
    -webkit-backdrop-filter: var(--he-glass-blur);
    box-shadow: var(--he-glass-shadow);
    text-align: center;
    font-size: 15px;
    line-height: 1.55;
}
.fm-hero-cine-cta-row { justify-content: center; }
/* Chiffres clés : barre en verre avec séparateurs (comme « 1 session / ~80 candidatures… ») */
html body:not(#sua-x) .fm-hero-cine-marks {
    margin: 46px auto 0;
    padding: 20px 10px;
    border: 1px solid var(--he-glass-border);
    border-radius: 16px;
    background: var(--he-glass-bg);
    backdrop-filter: var(--he-glass-blur);
    -webkit-backdrop-filter: var(--he-glass-blur);
    box-shadow: var(--he-glass-shadow);
    gap: 0;
    width: 100%;
}
html body:not(#sua-x) .fm-hero-cine-marks li {
    align-items: center;
    text-align: center;
    padding: 0 14px;
}
html body:not(#sua-x) .fm-hero-cine-marks li + li { border-left: 1px solid rgba(240, 122, 26, 0.25); }
html body:not(#sua-x) .fm-hero-cine-marks strong { color: #f07a1a; }

@media (max-width: 900px) {
    html body:not(#sua-x):not(#sua-y) .fm-hero-cine { min-height: 100svh; padding: 110px 20px 150px; }
    .sua-hero-badge { height: 40px; font-size: 15px; padding: 0 14px; margin-bottom: 22px; }
    html body:not(#sua-x) .fm-hero-cine-title { font-size: clamp(46px, 13vw, 80px); letter-spacing: 0.03em; }
    html body:not(#sua-x) .fm-hero-cine-marks { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 18px; }
    html body:not(#sua-x) .fm-hero-cine-marks li + li { border-left: 0; }
    .fm-hero-cine-scroll { display: none !important; }
    /* Arcs plus grands et plus hauts sur téléphone (comme l'accueil) */
    .fm-hero-cine .hero-orb-29 { width: 270%; top: 96%; }
    .fm-hero-cine .hero-orb-27 { width: 205%; top: 97%; }
    .fm-hero-cine .hero-orb-26 { width: 150%; top: 98%; }
    .fm-hero-cine .hero-orb-28 { width: 88%;  top: 99%; }
}

/* ─── Bloc du prix : carte en dégradé orange + bouton blanc (maquette « Récapitulatif des tarifs ») ─── */
html body:not(#sua-x):not(#sua-y) .dec-tarif-content {
    background: linear-gradient(180deg, rgba(43, 18, 0, 0.95) 0%, rgba(110, 44, 4, 0.92) 55%, #c4621a 100%) !important;
    border: 1px solid rgba(240, 122, 26, 0.65) !important;
    box-shadow: 0 0 70px -12px rgba(240, 122, 26, 0.5), var(--he-glass-shadow) !important;
}
html body:not(#sua-x) .dec-tarif-cta {
    background: #fff !important;
    color: #1a0a00 !important;
    border-color: #fff !important;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45) !important;
}
html body:not(#sua-x) .dec-tarif-formula,
html body:not(#sua-x) .dec-tarif-qualiopi {
    background: rgba(26, 10, 0, 0.35) !important;
    border-color: rgba(255, 190, 130, 0.28) !important;
}

/* ─── Pastilles posées à cheval sur le bord haut des cartes (maquette) ─── */
.fm-finale-content { position: relative; }
html body:not(#sua-x) .fm-finale-pill {
    position: absolute;
    top: 0;
    left: 50%;
    translate: -50% -50%;                 /* « translate » : ne gêne pas les animations GSAP */
    margin: 0 !important;
    white-space: nowrap;
}

/* ─── Chiffres de la carte « Le concours d'entrée » : petites cartes en verre ─── */
html body:not(#sua-x) .dec-admission-stats li {
    background: var(--he-glass-bg) !important;
    border: 1px solid var(--he-glass-border) !important;
    backdrop-filter: var(--he-glass-blur);
    -webkit-backdrop-filter: var(--he-glass-blur);
}
html body:not(#sua-x) .dec-admission-stats strong { color: #f07a1a !important; }

/* Cartes en verre (recette de la maquette) */
.fm-profile,
.dec-promise,
.dec-apres-card,
.fm-finale-content,
.dec-tarif-content,
.dec-ticket,
.fm-pricing-card,
.fm-intro-card,
.fm-tab-card,
.fm-offer-card {
    background: var(--he-glass-bg) !important;
    border: 1px solid var(--he-glass-border) !important;
    backdrop-filter: var(--he-glass-blur) !important;
    -webkit-backdrop-filter: var(--he-glass-blur) !important;
    box-shadow: var(--he-glass-shadow) !important;
}
.fm-profile::before, .fm-profile::after,
.dec-promise::before, .dec-promise::after,
.dec-apres-card::before { opacity: 0.5; }

/* Bloc du prix et appel final : une carte en verre au lieu d'une photo plein écran */
.dec-tarif-content,
.fm-finale-content {
    border-radius: 22px;
    padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px) !important;
}
.fm-finale { min-height: 0; padding-top: clamp(90px, 11vw, 150px); padding-bottom: clamp(90px, 11vw, 150px); }
html body:not(#sua-x) .fm-section.is-fullscreen { min-height: 0 !important; }
/* Anciennes bandes plein écran devenues de simples en-têtes / cartes : plus de grande hauteur vide */
html body:not(#sua-x) .dec-chapters-head { min-height: 0 !important; height: auto !important; padding: 20px 0 10px !important; }
html body:not(#sua-x) .dec-tarif { min-height: 0 !important; height: auto !important; padding: clamp(80px, 10vw, 130px) 24px !important; }

/* Photos aux couleurs d'origine (plus de filtre ni de voile sur les vignettes) */
.dec-chap-image img,
.dec-promise-photo img,
.fm-section img { filter: none !important; }
.dec-chap-image::after,
.dec-promise-photo::after { display: none !important; }

/* ─── « 499 € TTC TTC » : le prix est rempli d'un dégradé découpé dans le texte
   (background-clip: text) ; le « TTC » décalé par transform était dessiné une 2e fois
   à sa place d'origine. Décalage par position relative à la place. ─── */
html body:not(#sua-x) .dec-tarif-vat,
html body:not(#sua-x) .dec-tarif-formula .dec-tarif-vat {
    transform: none !important;
    position: relative;
    top: -1.2em;
}

/* Étiquettes de formules (Set Pro) : vraie forme de pastille + « Choisis ta formule » pleine */
html body:not(#sua-x) .dec-tarif-formula-tag {
    display: inline-block;
    padding: 4px 11px !important;
    border-radius: 999px !important;
    line-height: 1.3;
}
html body:not(#sua-x) .dec-tarif-eyebrow {
    background: linear-gradient(90deg, #f1951b 0%, #f14000 100%) !important;
    border: 0 !important;
    color: #1a0a00 !important;
    font-weight: 700 !important;
}

/* ─── Retouches du 17/11 (après la maquette « Formation pro ») ─── */
/* 1. Arcs du haut de page plus bas (ordinateur) : le premier arc démarre vers le texte d'intro */
@media (min-width: 901px) {
    .fm-hero-cine .hero-orb-29 { top: 130%; }
    .fm-hero-cine .hero-orb-27 { top: 142%; }
    .fm-hero-cine .hero-orb-26 { top: 138.5%; }
    .fm-hero-cine .hero-orb-28 { top: 134.5%; }
}

/* 2. Cadre des chiffres clés comme dans nos pubs : bloc marron foncé arrondi,
   chiffres pêche, libellés blancs en gras, dernier chiffre mis en avant */
html body:not(#sua-x) .fm-hero-cine-marks {
    padding: 22px 18px;
    border-radius: 28px;
    border: 1px solid rgba(255, 205, 165, 0.18);
    background: linear-gradient(180deg, rgba(62, 28, 10, 0.94) 0%, rgba(32, 13, 4, 0.94) 100%);
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 220, 190, 0.08);
}
html body:not(#sua-x) .fm-hero-cine-marks li {
    padding: 10px 14px;
    border-radius: 18px;
}
html body:not(#sua-x) .fm-hero-cine-marks li + li { border-left: 0; }
html body:not(#sua-x) .fm-hero-cine-marks strong {
    color: #f2c3a0 !important;
    -webkit-text-fill-color: #f2c3a0 !important;
    background: none !important;
    font-size: clamp(38px, 3.8vw, 56px);
    line-height: 1;
}
html body:not(#sua-x) .fm-hero-cine-marks span {
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.3;
}
@media (max-width: 900px) {
    html body:not(#sua-x) .fm-hero-cine-marks { padding: 14px; gap: 6px; }
    html body:not(#sua-x) .fm-hero-cine-marks span { font-size: 13px; }
}

/* ─── Carte « C'est fait pour toi si… » allumée, comme la carte A active de l'accueil ─── */
html body:not(#sua-x):not(#sua-y) .fm-profile.fm-profile-yes {
    background: linear-gradient(180deg, rgba(120, 48, 0, 0.78) 0%, #d8650c 100%) !important;
    border-color: rgba(255, 170, 90, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(255, 150, 60, 0.25), 0 24px 60px -16px rgba(240, 122, 26, 0.55) !important;
}
html body:not(#sua-x) .fm-profile-yes,
html body:not(#sua-x) .fm-profile-yes li,
html body:not(#sua-x) .fm-profile-yes p { color: #fff3e6 !important; }
html body:not(#sua-x) .fm-profile-yes strong { color: #fff !important; }
html body:not(#sua-x) .fm-profile-yes .fm-profile-eyebrow { color: #fff3e6 !important; }
/* Mot mis en avant du titre : blanc (l'orange disparaîtrait sur le fond orange) */
html body:not(#sua-x) .fm-profile-yes h3 em {
    background: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
/* Coches blanches, séparateur plus clair */
html body:not(#sua-x) .fm-profile-yes li svg,
html body:not(#sua-x) .fm-profile-yes li::before { color: #fff !important; stroke: #fff !important; border-color: #fff !important; }
html body:not(#sua-x) .fm-profile-yes .fm-profile-head { border-color: rgba(255, 243, 230, 0.3) !important; }

/* ─── Pied de page (18/11) : une seule couleur (le dégradé de la section), plus de boîte
   plus foncée ni de trait à l'intérieur, et moins de vide au-dessus ─── */
html body:not(#sua-x):not(#sua-y) .sua-g-foot { padding-top: 36px !important; }
html body:not(#sua-x) .sua-g-foot .site-footer,
html body:not(#sua-x) .sua-g-foot .footer {
    background: transparent !important;
    border-top: 0 !important;
    padding-top: 12px !important;
}
