/* =========================================================
   O JOGO DO CORPO — Nouveau layout (2026)
   Direction : inspiré du site Gcore — fond sombre, lueur orange
   « horizon », menu en pilule, typo moderne, sections alternées.
   Seul le visuel change : mêmes classes, même HTML, même JS.
   ========================================================= */

/* Polices : chargées dans le <head> de chaque page, sans bloquer l'affichage */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs de marque (modifiables par le thème admin) */
    --primary-color: #FF6B1A;
    --secondary-color: #F7931E;
    --accent-color: #FFD23F;
    --on-primary: #FFFFFF;

    /* Surfaces & texte */
    --ink: #0D0C0B;
    --surface: #161412;
    --surface-2: #1F1C19;
    --surface-3: #2A2622;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #F3EEE8;
    --muted: #A8A097;

    /* Compatibilité avec les anciennes variables */
    --dark-color: #0D0C0B;
    --light-color: #FFFFFF;
    --text-color: var(--text);
    --gray-color: var(--muted);

    --font-display: 'Anton', 'Impact', 'Arial Narrow Bold', sans-serif;
    --font-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Barlow', 'Segoe UI', Tahoma, sans-serif;

    --radius: 14px;
    --radius-sm: 8px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Thèmes choisis par l'admin : adaptés au fond sombre */
[data-theme="green-black"] {
    --primary-color: #22A35A;
    --secondary-color: #2ECC71;
    --accent-color: #7DEBA6;
    --on-primary: #FFFFFF;
}

[data-theme="white-black"] {
    --primary-color: #F3EEE8;
    --secondary-color: #D6D0C8;
    --accent-color: #FFFFFF;
    --on-primary: #0D0C0B;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

::selection {
    background: var(--primary-color);
    color: var(--on-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Modales et panneaux de l'éditeur admin (fond blanc en ligne) */
div[style*="background:#fff"],
div[style*="background: rgb(255, 255, 255)"] {
    color: #1A1A1A;
}

/* ---------- Header ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 12, 11, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 84px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Le PNG du logo a beaucoup de marge : on le recadre */
.logo img {
    height: 120px;
    width: 120px;
    object-fit: cover;
    object-position: center;
    margin: -18px -14px;
    display: block;
}

.nav-title {
    flex: 1;
    text-align: left;
    padding: 0 8px;
}

.nav-title h1 {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.15;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color .2s, background .2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-membre,
.btn-logout {
    background: var(--primary-color);
    color: var(--on-primary) !important;
    padding: 10px 20px !important;
    border-radius: 999px;
    transition: transform .2s var(--ease), background .2s;
}

.btn-membre:hover,
.btn-logout:hover {
    background: var(--secondary-color);
    color: var(--on-primary) !important;
    transform: translateY(-1px);
}

.btn-logout {
    background: transparent;
    color: var(--text) !important;
    border: 1px solid var(--line-strong);
}

.btn-logout:hover {
    background: var(--surface-3);
    color: var(--text) !important;
}

/* ---------- Sélecteur de langue ---------- */
.language-selector {
    position: relative;
    margin-left: 4px;
}

.language-dropdown {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    color: var(--text);
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-label);
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color .2s, background .2s;
}

.language-btn:hover {
    border-color: var(--primary-color);
    background: var(--surface-3);
}

.flag-icon { font-size: 1.3rem; line-height: 1; }

.flag-img {
    width: 18px;
    height: auto;
    border-radius: 2px;
}

.flag-code {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.language-text { font-weight: 600; }

.dropdown-arrow {
    font-size: 0.6rem;
    opacity: .7;
    transition: transform .3s;
}

.language-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
    min-width: 180px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .2s var(--ease);
    z-index: 1000;
}

.language-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text);
    transition: background .15s;
}

.language-option:hover { background: var(--surface-3); }

.language-option.active {
    background: var(--primary-color);
    color: var(--on-primary);
}

.language-option .flag-img { width: 20px; }

.language-option .flag-code { color: var(--primary-color); }

.language-option.active .flag-code,
.language-option.active .language-name { color: var(--on-primary); }

.language-name { font-size: 0.95rem; }

/* ---------- Bandeau construction ---------- */
.construction-banner {
    background: var(--primary-color);
    padding: 7px 0;
    text-align: center;
}

.construction-banner p {
    color: var(--on-primary);
    font-family: var(--font-label);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}

/* ---------- Vidéo de présentation ---------- */
.video-hero {
    position: relative;
    padding: 72px 24px 56px;
    background:
        radial-gradient(60% 70% at 50% 40%, color-mix(in srgb, var(--primary-color) 28%, transparent), transparent 70%),
        var(--ink);
    overflow: hidden;
}

.video-preview {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 8px;
    background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.02));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    cursor: pointer;
    transition: transform .4s var(--ease);
}

.video-preview:hover { transform: translateY(-4px); }

.video-preview video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    outline: none;
    pointer-events: none;
    background: #000;
}

.video-expand-hint {
    text-align: center;
    color: var(--muted);
    font-family: var(--font-label);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 14px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas: "content image";
    align-items: center;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px 96px;
    color: var(--text);
}

.hero::before {
    content: '';
    position: absolute;
    right: -10%;
    top: 10%;
    width: 60%;
    aspect-ratio: 1;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 35%, transparent), transparent 65%);
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    grid-area: content;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.2vw, 4.3rem);
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    margin-bottom: 28px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 560px;
    padding-left: 18px;
    border-left: 3px solid var(--primary-color);
}

.hero-image {
    grid-area: image;
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6));
}

/* ---------- Transformation ---------- */
.transformation {
    position: relative;
    padding: 110px 24px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.transformation h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    line-height: 1.05;
    text-transform: uppercase;
    text-align: center;
    color: var(--text);
    max-width: 1000px;
    margin: 0 auto 32px;
}

.big-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--muted);
}

.big-text strong {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* ---------- Galerie ---------- */
.gallery {
    padding: 96px 24px;
    background: var(--ink);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    transition: transform .4s var(--ease), border-color .3s;
}

.gallery-item:nth-child(even) { transform: translateY(28px); }

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
}

.gallery-item:nth-child(even):hover { transform: translateY(22px); }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s var(--ease);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item.placeholder {
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-primary);
    font-size: 1.5rem;
}

.whoami-card {
    cursor: pointer;
    aspect-ratio: 4 / 5;
}

.whoami-card img {
    object-fit: cover;
    height: 100%;
}

/* Étiquette inclinée, comme sur les affiches */
.gallery-item-label {
    position: absolute;
    left: 12px;
    top: 14px;
    bottom: auto;
    right: auto;
    background: #0D0C0B;
    color: var(--primary-color);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    padding: 6px 16px 4px;
    transform: rotate(-3deg);
    box-shadow: 6px 6px 0 var(--primary-color);
    border-radius: 0;
}

.gallery-item-label::after {
    content: ' →';
    color: var(--text);
}

/* ---------- Features ---------- */
.features {
    padding: 120px 24px;
    background: var(--ink);
}

.features h2,
.videos-header h1,
.member-content h1,
.pricing-section h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    text-transform: uppercase;
    text-align: center;
    color: var(--text);
    margin-bottom: 56px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 32px 26px 30px;
    border-radius: var(--radius);
    text-align: left;
    cursor: pointer;
    transition: transform .35s var(--ease), border-color .3s, background .3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    background: var(--surface-2);
}

.feature-card.highlight {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--on-primary);
}

.feature-card.highlight:hover { background: var(--secondary-color); }

.feature-icon {
    font-size: 2rem;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--surface-3);
    margin-bottom: 22px;
    transition: transform .35s var(--ease);
}

.feature-card.highlight .feature-icon { background: rgba(0, 0, 0, .18); }

.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }

.feature-card h3 {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card.highlight h3 { color: var(--on-primary); }

.feature-card p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--muted);
}

.feature-card.highlight p { color: var(--on-primary); opacity: .9; }

/* ---------- CTA ---------- */
.cta {
    position: relative;
    padding: 120px 24px 110px;
    background: var(--primary-color);
    color: var(--on-primary);
    text-align: center;
    clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -2vw;
}

.cta-image {
    max-width: 220px;
    margin: 0 auto 32px;
}

.cta-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 12px 12px 0 #0D0C0B;
    transform: rotate(-3deg);
    display: block;
}

.cta h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    line-height: 1.05;
    text-transform: uppercase;
    max-width: 950px;
    margin: 0 auto 22px;
    color: var(--on-primary);
}

.cta p {
    font-size: 1.2rem;
    max-width: 680px;
    margin: 0 auto 36px;
    color: var(--on-primary);
    opacity: .92;
}

.cta .btn-primary {
    background: #0D0C0B;
    color: #FFFFFF;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}

.cta .btn-primary:hover { background: #24201C; }

.cta .axe {
    margin-top: 40px;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    text-transform: uppercase;
    color: #0D0C0B !important;
    opacity: 1 !important;
}

/* ---------- Boutons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--on-primary);
    padding: 16px 40px;
    border: none;
    border-radius: 999px;
    font-family: var(--font-label);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-course:focus-visible,
.nav-links a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text);
    padding: 12px 26px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-label);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .2s;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Les boutons dans les modales blanches de l'éditeur */
div[style*="background:#fff"] .btn-secondary { color: #1A1A1A; border-color: #ccc; }

.btn-danger {
    background: #D93025;
    color: #fff;
    padding: 12px 26px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-label);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background .2s;
}

.btn-danger:hover { background: #B3261E; }

/* ---------- Connexion / Espace membre ---------- */
.login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 20px;
    background:
        radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--primary-color) 22%, transparent), transparent 70%),
        var(--ink);
}

.login-container {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 44px 40px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    max-width: 520px;
    width: 100%;
}

.login-container h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2.4rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text);
}

.login-container > p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 30px;
}

.login-container .btn-primary { width: 100%; }

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    background: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.error-message {
    background: rgba(217, 48, 37, .12);
    border: 1px solid rgba(217, 48, 37, .35);
    color: #FF8A80;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    margin-top: 16px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--text);
    transition: border-color .2s, background .2s;
}

.btn-social:hover {
    border-color: var(--text);
    background: var(--surface-3);
}

.btn-social svg { flex-shrink: 0; }

/* Formules dans la page membre */
.subscription-info-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.subscription-info-section h3 {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text);
    margin-bottom: 4px;
}

.subscription-info-section > p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 22px;
}

.subscription-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sub-option {
    position: relative;
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 22px 10px 18px;
    border-radius: 14px;
    text-align: center;
    transition: transform .25s var(--ease), border-color .2s;
}

.sub-option:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.sub-option.popular {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--on-primary);
}

.sub-option.popular h4,
.sub-option.popular .price,
.sub-option.popular .savings { color: var(--on-primary); }

.sub-option .badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #0D0C0B;
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 999px;
    font-family: var(--font-label);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.sub-option h4 {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 4px;
}

.sub-option .price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-color);
    margin: 4px 0;
}

.sub-option .savings {
    font-size: 0.82rem;
    color: #7BD88F;
    font-weight: 600;
}

.sub-option a,
.sub-option .btn-primary,
.sub-option .btn-secondary {
    display: inline-flex;
    margin-top: 12px;
    padding: 8px 14px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.sub-option.popular .btn-primary {
    background: #0D0C0B;
    color: #fff;
}

/* Contenu membre */
.member-content {
    padding: 80px 24px;
    min-height: 80vh;
}

.member-content h1 { margin-bottom: 12px; }

.welcome-text {
    text-align: center;
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 48px;
}

.subscription-info-badge {
    background: var(--surface);
    border: 1px solid var(--primary-color);
    color: var(--text);
    padding: 22px 26px;
    border-radius: var(--radius);
    margin: 0 auto 48px;
    max-width: 640px;
    text-align: center;
}

.subscription-info-badge p {
    margin: 4px 0;
    font-size: 1.05rem;
}

.subscription-info-badge.admin-badge {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.btn-admin-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--on-primary);
    padding: 11px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--font-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 14px;
    transition: background .2s, transform .2s;
}

.btn-admin-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Anciennes cartes de cours */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.course-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s;
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.course-image {
    width: 100%;
    height: 200px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}

.course-image img { width: 100%; height: 100%; object-fit: cover; }

.course-card h3 { padding: 22px 22px 8px; color: var(--text); }

.course-card p { padding: 0 22px 22px; color: var(--muted); }

.btn-course {
    width: calc(100% - 44px);
    margin: 0 22px 22px;
    padding: 12px;
    background: var(--surface-3);
    color: var(--text);
    border: none;
    border-radius: 999px;
    font-family: var(--font-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
}

.btn-course:hover { background: var(--primary-color); color: var(--on-primary); }

/* Catégories de vidéos (espace membre) */
.video-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform .35s var(--ease), border-color .3s;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
}

.category-image {
    position: relative;
    aspect-ratio: 4 / 5;
    height: auto;
    overflow: hidden;
    background: var(--surface-2);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s var(--ease);
}

.category-card:hover .category-image img { transform: scale(1.04); }

.category-overlay { display: none; }

.category-icon { font-size: 4rem; }

.category-content { padding: 22px 22px 20px; }

.category-content h3 {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 8px;
}

.category-content p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.video-count {
    color: var(--primary-color);
    font-family: var(--font-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.category-stats::after {
    content: '→';
    color: var(--muted);
    transition: transform .3s var(--ease), color .3s;
}

.category-card:hover .category-stats::after {
    transform: translateX(4px);
    color: var(--primary-color);
}

/* ---------- Abonnement ---------- */
.pricing-section {
    padding: 90px 24px;
    background:
        radial-gradient(50% 40% at 50% 0%, color-mix(in srgb, var(--primary-color) 20%, transparent), transparent 70%),
        var(--ink);
}

.pricing-section h1 { margin-bottom: 12px; }

.pricing-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 56px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 40px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px 28px 28px;
    cursor: pointer;
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 14%, var(--surface)), var(--surface) 60%);
}

.pricing-card.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 30%, transparent);
    transform: translateY(-6px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    background: var(--primary-color);
    color: var(--on-primary);
    padding: 5px 16px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 4px 4px 0 #000;
}

.pricing-header h3 {
    text-align: center;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 10px;
}

.price {
    text-align: center;
    margin-bottom: 10px;
    color: var(--text);
}

.price .currency {
    font-family: var(--font-display);
    font-size: 1.6rem;
    vertical-align: top;
    color: var(--primary-color);
}

.price .amount {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1;
    color: var(--text);
}

.price .period {
    font-size: 1rem;
    color: var(--muted);
}

.savings {
    text-align: center;
    color: #7BD88F;
    font-weight: 600;
    margin-bottom: 12px;
}

.pricing-features ul {
    list-style: none;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.pricing-features li {
    padding: 6px 0;
    color: var(--text);
    font-size: 0.98rem;
}

.pricing-action {
    margin-top: 22px;
    min-height: 50px;
}

.currency-switcher {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 32px;
    flex-wrap: wrap;
}

.currency-switcher-label {
    font-family: var(--font-label);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.currency-option {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.currency-option:hover { border-color: var(--primary-color); color: var(--primary-color); }

.currency-option.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--on-primary);
}

.paypal-subscription-notice {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    font-weight: 500;
}

.paypal-subscription-notice.success {
    color: #7BD88F;
    background: rgba(46, 204, 113, .1);
    border: 1px solid rgba(46, 204, 113, .3);
}

.paypal-subscription-notice.error {
    color: #FF8A80;
    background: rgba(217, 48, 37, .12);
    border: 1px solid rgba(217, 48, 37, .35);
}

.pricing-info { text-align: center; margin-top: 24px; }

.pricing-info p {
    margin: 6px 0;
    color: var(--muted);
    font-size: 1.05rem;
}

/* ---------- Pages vidéos ---------- */
.videos-section {
    padding: 80px 24px;
    min-height: 80vh;
}

.videos-header {
    text-align: center;
    margin-bottom: 48px;
}

.videos-header h1 { margin-bottom: 10px; }

.videos-subtitle {
    font-size: 1.15rem;
    color: var(--muted);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform .3s var(--ease), border-color .3s;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    background: var(--surface-2);
}

.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }

.default-thumbnail {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--primary-color) 35%, transparent), transparent 70%),
        var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    font-size: 1.6rem;
    color: var(--on-primary);
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    transition: transform .3s var(--ease);
}

.video-card:hover .play-icon { transform: scale(1.1); }

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.video-info { padding: 18px 20px 22px; }

.video-info h4 {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 6px;
}

.video-info p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: 20px;
    background: var(--surface);
}

.empty-icon { font-size: 3.5rem; margin-bottom: 14px; opacity: .8; }

.empty-state h3 {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p { color: var(--muted); font-size: 1.05rem; }

/* Modale vidéo */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.video-modal-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
}

.video-modal-header {
    background: var(--surface);
    color: var(--text);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.video-modal-header h3 {
    margin: 0;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.video-modal-close {
    background: var(--surface-3);
    border: none;
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s;
}

.video-modal-close:hover { background: var(--primary-color); color: var(--on-primary); }

.video-modal-body { padding: 0; background: #000; }

.video-modal-body iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

/* ---------- Admin ---------- */
.admin-section {
    padding: 72px 24px;
    min-height: 80vh;
}

.admin-section h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 8px;
}

.admin-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--primary-color);
    color: var(--text);
    padding: 26px;
    border-radius: var(--radius);
    text-align: left;
}

.stat-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 3rem;
    line-height: 1;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-card p { font-size: 1rem; color: var(--muted); }

.admin-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 28px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.admin-card h2 {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text);
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.table-container { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

table thead {
    background: var(--surface-2);
    color: var(--muted);
}

table th {
    font-family: var(--font-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

table th,
table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

table tbody tr:hover { background: var(--surface-2); }

.status-active,
.status-expired {
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active { background: #1E8449; }
.status-expired { background: #C0392B; }

.action-buttons { display: flex; gap: 8px; }

.btn-action {
    padding: 7px 14px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background .2s;
}

.btn-renew { background: var(--surface-3); color: var(--text); }
.btn-renew:hover { background: #3A342E; }

.btn-delete { background: rgba(217, 48, 37, .18); color: #FF8A80; }
.btn-delete:hover { background: #D93025; color: #fff; }

.admin-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
footer {
    background: var(--ink);
    color: var(--muted);
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    overflow: hidden;
}

footer img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Le CTA coloré colle au footer : pas d'espace noir entre les deux */
.cta + footer,
main:has(.cta:last-child) + footer { margin-top: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 7, 6, .96);
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    overflow-y: auto;
    padding: 70px 20px 40px;
    animation: fadeIn .3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    animation: zoomIn .3s var(--ease);
    flex-shrink: 0;
}

@keyframes zoomIn {
    from { transform: scale(.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-3);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
    z-index: 10000;
}

.lightbox-close:hover { background: var(--primary-color); }

.lightbox-caption {
    color: var(--text);
    text-align: left;
    padding: 28px 32px;
    font-size: 1.05rem;
    max-width: 760px;
    width: 92%;
    line-height: 1.8;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-top: 24px;
    white-space: pre-line;
}

.lightbox-emoji {
    font-size: 12rem;
    text-align: center;
    animation: zoomIn .3s var(--ease);
}

.lightbox-video {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
    animation: zoomIn .3s var(--ease);
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(even) { transform: none; }
    .gallery-item:nth-child(even):hover { transform: translateY(-6px); }

    .video-categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "content";
        gap: 28px;
        padding: 48px 20px 72px;
        text-align: left;
    }

    .hero-image { max-width: 440px; margin: 0 auto; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }

    .container { padding: 0 16px; }

    nav {
        height: 64px;
        padding: 0 12px;
        gap: 8px;
    }

    .logo img {
        height: 84px;
        width: 84px;
        margin: -12px -10px;
    }

    .nav-title { padding: 0 4px; }

    .nav-title h1 {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    .nav-links { gap: 4px; }

    .nav-links a {
        font-size: 0.8rem;
        padding: 7px 10px;
    }

    .btn-membre,
    .btn-logout { padding: 8px 12px !important; }

    .language-btn { padding: 6px 8px; }
    .language-btn .flag-code { display: none; }

    .construction-banner p { font-size: 0.75rem; padding: 0 10px; }

    .video-hero { padding: 40px 16px 32px; }
    .video-preview { max-width: 100%; }

    .transformation,
    .gallery,
    .features { padding: 72px 16px; }

    .features h2 { margin-bottom: 36px; }

    .cta { padding: 90px 16px 80px; }

    .cta-image { max-width: 170px; }

    .login-container { padding: 32px 20px; }

    .subscription-options { grid-template-columns: 1fr; gap: 16px; }

    .video-categories-grid { grid-template-columns: 1fr; }

    .member-content,
    .videos-section,
    .pricing-section,
    .admin-section { padding: 56px 16px; }

    .lightbox-close { top: 10px; right: 12px; }

    .lightbox-caption { padding: 20px; font-size: 1rem; }

    .lightbox-emoji { font-size: 8rem; }
}

@media (max-width: 520px) {
    .features-grid { grid-template-columns: 1fr; }

    .gallery-grid { gap: 12px; }

    .gallery-item-label { font-size: 1rem; padding: 4px 10px 3px; }

    .nav-title { display: none; }

    .nav-links { margin-left: auto; }
}

/* =========================================================
   STYLE RÉFÉRENCE (type Gcore)
   Ce bloc remplace l'ambiance « affiche » par un look tech :
   typo Manrope/Inter, menu pilule, lueurs orange « horizon »,
   section claire en alternance, cartes fines.
   ========================================================= */

:root {
    --ink: #08080B;
    --surface: #111116;
    --surface-2: #17171D;
    --surface-3: #22222A;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #F5F5F7;
    --muted: #9B9BA6;
    --dark-color: #08080B;

    --font-display: 'Manrope', 'Segoe UI', sans-serif;
    --font-label: 'Inter', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --glow: rgba(255, 107, 26, 0.55);
}

body { font-size: 16px; }

/* Plus de majuscules d'affiche : casse normale, typo serrée */
h1, h2, h3, h4,
.hero h1, .transformation h2, .features h2, .cta h2,
.videos-header h1, .member-content h1, .pricing-section h1,
.login-container h2, .admin-section h1 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.025em;
}

.nav-title h1, .nav-links a, .construction-banner p, .video-expand-hint,
.feature-card h3, .btn-primary, .btn-secondary, .btn-danger, .btn-course,
.btn-admin-link, .form-group label, .subscription-info-section h3,
.sub-option h4, .sub-option .badge, .category-content h3, .video-count,
.pricing-header h3, .popular-badge, .currency-switcher-label,
.video-info h4, .empty-state h3, .video-modal-header h3, .admin-card h2,
table th, .gallery-item-label {
    text-transform: none;
    letter-spacing: 0;
}

/* ---------- Header : pilule flottante ---------- */
header {
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 14px 16px 0;
}

nav {
    max-width: 1120px;
    height: 62px;
    padding: 0 10px 0 18px;
    background: rgba(17, 17, 22, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.logo img {
    height: 92px;
    width: 92px;
    margin: -15px -12px;
}

.nav-title h1 {
    font-family: var(--font-label);
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1.25;
    color: var(--muted);
}

.nav-links a {
    font-family: var(--font-label);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--muted);
}

.nav-links a:hover { color: var(--text); }

/* Bouton principal du menu : blanc, comme « Get started » */
.btn-membre {
    background: #FFFFFF;
    color: #08080B !important;
    font-weight: 600 !important;
}

.btn-membre:hover {
    background: #E8E8EC;
    color: #08080B !important;
}

.language-btn { font-family: var(--font-label); font-weight: 500; }

/* Bandeau construction : petite étiquette centrée */
.construction-banner {
    background: transparent;
    padding: 22px 0 0;
}

.construction-banner p {
    display: inline-block;
    font-family: var(--font-label);
    font-weight: 500;
    font-size: 0.82rem;
    color: #FFB089;
    background: rgba(255, 107, 26, 0.1);
    border: 1px solid rgba(255, 107, 26, 0.35);
    border-radius: 999px;
    padding: 6px 16px;
}

/* ---------- Vidéo : écran qui rayonne ---------- */
.video-hero {
    padding: 56px 24px 40px;
    background:
        linear-gradient(115deg, transparent 52%, rgba(255, 140, 60, .22) 60%, transparent 68%),
        radial-gradient(50% 55% at 50% 50%, rgba(255, 107, 26, .18), transparent 70%),
        var(--ink);
}

.video-preview {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-strong);
    padding: 6px;
    box-shadow:
        0 0 0 1px rgba(255, 107, 26, .15),
        0 0 70px rgba(255, 107, 26, .28),
        0 30px 80px rgba(0, 0, 0, .6);
}

.video-expand-hint {
    font-family: var(--font-label);
    font-size: 0.85rem;
}

/* ---------- Hero centré + horizon orange ---------- */
.hero {
    max-width: none;
    grid-template-columns: 1fr;
    grid-template-areas: "content" "image";
    justify-items: center;
    text-align: center;
    gap: 40px;
    padding: 64px 24px 40px;
    overflow: hidden;
}

.hero::before {
    right: auto;
    left: 50%;
    top: -10%;
    width: 70%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 107, 26, .16), transparent 60%);
}

/* Le « planète » : arc lumineux sous l'image */
.hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -400px;
    width: min(1300px, 150%);
    aspect-ratio: 2.2 / 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(255, 140, 60, .35), transparent 70%),
        #0B0A0D;
    box-shadow:
        0 -2px 0 rgba(255, 180, 120, .9),
        0 -20px 60px rgba(255, 107, 26, .55),
        0 -60px 160px rgba(255, 107, 26, .35);
    z-index: 0;
    pointer-events: none;
}

.hero-content { max-width: 860px; }

.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    line-height: 1.06;
    margin-bottom: 22px;
}

.hero-subtitle {
    margin: 0 auto;
    max-width: 640px;
    padding-left: 0;
    border-left: 0;
    font-size: 1.12rem;
}

.hero-image {
    max-width: 520px;
    width: 100%;
    margin-bottom: -20px;
}

/* ---------- Section claire (alternance) ---------- */
.transformation {
    background: #F4F2EF;
    color: #16161A;
    border: 0;
    padding: 110px 24px;
}

.transformation h2 {
    color: #0E0E12;
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    line-height: 1.12;
    max-width: 860px;
}

.big-text { color: #55555F; max-width: 740px; }

.big-text strong {
    color: #E85A10;
    letter-spacing: 0;
}

/* ---------- Galerie ---------- */
.gallery { padding: 100px 24px 110px; }

.gallery-item {
    border-color: var(--line-strong);
    border-radius: 18px;
}

.gallery-item:hover {
    border-color: rgba(255, 107, 26, .6);
    box-shadow: 0 0 50px rgba(255, 107, 26, .18);
}

.gallery-item-label {
    top: 12px;
    left: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(8, 8, 11, .7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 6px 14px;
    transform: none;
    box-shadow: none;
}

.gallery-item-label::after { color: #FF9A5C; }

/* ---------- Fonctionnalités ---------- */
.features {
    padding: 110px 24px;
    background:
        radial-gradient(50% 40% at 50% 0%, rgba(255, 107, 26, .1), transparent 70%),
        var(--ink);
}

.features h2,
.videos-header h1,
.member-content h1,
.pricing-section h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.12;
}

.feature-card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border-color: var(--line);
    border-radius: 18px;
}

.feature-card:hover {
    border-color: var(--line-strong);
    background: linear-gradient(180deg, var(--surface-3), var(--surface));
}

/* Carte mise en avant : lueur orange au lieu d'un aplat */
.feature-card.highlight {
    background: linear-gradient(180deg, rgba(255, 107, 26, .2), var(--surface) 75%);
    border-color: rgba(255, 107, 26, .55);
    color: var(--text);
    box-shadow: 0 0 60px rgba(255, 107, 26, .15);
}

.feature-card.highlight:hover {
    background: linear-gradient(180deg, rgba(255, 107, 26, .28), var(--surface) 75%);
}

.feature-card.highlight h3 { color: var(--text); }
.feature-card.highlight p { color: var(--muted); opacity: 1; }

.feature-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    border-radius: 12px;
    background: var(--surface-3);
    border: 1px solid var(--line);
}

.feature-card.highlight .feature-icon {
    background: rgba(255, 107, 26, .18);
    border-color: rgba(255, 107, 26, .4);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -0.01em;
}

/* ---------- CTA : « Contact us » avec horizon ---------- */
.cta {
    margin: 0 24px 24px;
    border-radius: 28px;
    clip-path: none;
    border: 1px solid var(--line);
    padding: 100px 24px 130px;
    color: var(--text);
    background:
        radial-gradient(90% 55% at 50% 105%, rgba(255, 120, 40, .95), rgba(255, 107, 26, .35) 45%, transparent 75%),
        linear-gradient(180deg, var(--surface), var(--ink));
    overflow: hidden;
}

.cta-image { max-width: 180px; }

.cta-image img {
    transform: none;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}

.cta h2 {
    color: var(--text);
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    line-height: 1.12;
    max-width: 820px;
}

.cta p { color: var(--muted); opacity: 1; }

.cta .btn-primary {
    background: #FFFFFF;
    color: #08080B;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.cta .btn-primary:hover { background: #ECECEF; }

.cta .axe {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    letter-spacing: -0.03em;
    text-transform: none;
    color: #FFFFFF !important;
    text-shadow: 0 0 40px rgba(255, 107, 26, .6);
}

/* ---------- Boutons ---------- */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-course,
.btn-admin-link {
    font-family: var(--font-label);
    font-weight: 600;
}

.btn-primary {
    font-size: 1rem;
    padding: 14px 30px;
    box-shadow: 0 0 0 1px rgba(255, 107, 26, .4), 0 8px 30px rgba(255, 107, 26, .3);
}

.btn-secondary { font-size: 0.95rem; }

/* ---------- Pages internes ---------- */
.login-container,
.pricing-card,
.category-card,
.video-card,
.admin-card,
.stat-card,
.empty-state {
    border-radius: 18px;
}

.login-container h2 { font-size: 2rem; }

.form-group label {
    font-family: var(--font-label);
    font-weight: 500;
    font-size: 0.88rem;
}

.sub-option h4,
.category-content h3,
.pricing-header h3,
.video-info h4,
.empty-state h3,
.video-modal-header h3,
.admin-card h2,
.subscription-info-section h3 {
    font-family: var(--font-display);
    font-weight: 700;
}

.category-content h3 { font-size: 1.12rem; }

.sub-option .price,
.price .amount,
.price .currency,
.stat-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.sub-option.popular {
    background: linear-gradient(180deg, rgba(255, 107, 26, .25), var(--surface-2));
    border-color: rgba(255, 107, 26, .6);
    color: var(--text);
}

.sub-option.popular h4,
.sub-option.popular .savings { color: var(--text); }

.sub-option.popular .price { color: var(--primary-color); }

.sub-option.popular .btn-primary {
    background: var(--primary-color);
    color: var(--on-primary);
}

.video-count {
    font-family: var(--font-label);
    font-weight: 600;
}

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(255, 107, 26, .16), var(--surface) 55%);
    box-shadow: 0 0 70px rgba(255, 107, 26, .15);
}

.popular-badge {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.8rem;
    transform: translateX(-50%);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(255, 107, 26, .4);
}

.login-section,
.pricing-section {
    background:
        radial-gradient(55% 45% at 50% 0%, rgba(255, 107, 26, .16), transparent 70%),
        var(--ink);
}

footer {
    border-top: 0;
    padding: 28px 24px 36px;
    font-size: 0.88rem;
}

/* ---------- Responsive du style référence ---------- */
@media (max-width: 768px) {
    header { padding: 10px 10px 0; }

    nav {
        height: 56px;
        padding: 0 6px 0 12px;
    }

    .logo img {
        height: 76px;
        width: 76px;
        margin: -10px -10px;
    }

    .nav-links a { font-size: 0.8rem; }

    .construction-banner p { font-size: 0.72rem; }

    .hero { padding: 44px 16px 0; gap: 28px; }

    .hero::after {
        width: 220%;
        bottom: -270px;
    }

    .hero-image { max-width: 380px; }

    .transformation { padding: 76px 16px; }

    .cta {
        margin: 0 12px 12px;
        border-radius: 22px;
        padding: 72px 18px 100px;
    }
}


/* =========================================================
   MOUVEMENT — une seule séquence d'entrée, minutée comme une vidéo
   0.00s  le menu descend
   0.25s  un faisceau de lumière traverse l'écran vidéo
   0.55s  le titre sort du flou, puis le sous-titre
   0.90s  l'horizon orange se lève et s'allume
   1.15s  les instruments montent se poser sur l'horizon
   + au défilement (si supporté) : l'horizon se lève et la lueur
     du bas de page s'allume quand on arrive dessus
   Les états finaux = la page normale : sans animation, rien ne manque.
   ========================================================= */

:root {
    --spring: cubic-bezier(.22, 1.2, .36, 1);
    --smooth: cubic-bezier(.2, .7, .2, 1);
}

@keyframes oj-drop {
    from { opacity: 0; transform: translateY(-18px) scale(.98); }
}

@keyframes oj-fade {
    from { opacity: 0; }
}

@keyframes oj-screen-on {
    0%   { opacity: 0; transform: translateY(16px) scale(.96); box-shadow: 0 0 0 1px rgba(255,107,26,0), 0 0 0 rgba(255,107,26,0), 0 30px 80px rgba(0,0,0,.6); }
    60%  { opacity: 1; }
}

@keyframes oj-beam {
    0%   { transform: translateX(-60%) skewX(-18deg); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateX(160%) skewX(-18deg); opacity: 0; }
}

@keyframes oj-unblur {
    from { opacity: 0; filter: blur(14px); transform: translateY(14px); letter-spacing: 0.01em; }
}

@keyframes oj-sunrise {
    0% {
        transform: translateX(-50%) translateY(180px);
        box-shadow: 0 -2px 0 rgba(255,180,120,0), 0 -20px 60px rgba(255,107,26,0), 0 -60px 160px rgba(255,107,26,0);
    }
    55% {
        box-shadow: 0 -2px 0 rgba(255,200,150,1), 0 -26px 80px rgba(255,107,26,.8), 0 -80px 200px rgba(255,107,26,.55);
    }
}

@keyframes oj-land {
    from { opacity: 0; transform: translateY(70px) scale(.94); }
}

/* Menu */
nav { animation: oj-drop .7s var(--spring) both; }
.construction-banner p { animation: oj-fade .6s .2s ease both; }

/* Écran vidéo + faisceau */
.video-preview { animation: oj-screen-on 1s .2s var(--smooth) both; }

.video-hero::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    width: 28%;
    height: 140%;
    background: linear-gradient(90deg, transparent, rgba(255, 170, 110, .22), transparent);
    pointer-events: none;
    opacity: 0;
    animation: oj-beam 1.6s .35s var(--smooth) both;
}

.video-hero > .container {
    position: relative;
    z-index: 1;
}

/* Titre */
.hero h1 { animation: oj-unblur 1s .55s var(--smooth) both; }
.hero-subtitle { animation: oj-fade .9s .85s ease both; }

/* Horizon + instruments */
.hero::after { animation: oj-sunrise 1.8s .9s var(--smooth) both; }
.hero-image { animation: oj-land 1.1s 1.15s var(--spring) both; }

/* Bas de page : la lueur s'allume en arrivant dessus */
.cta > * {
    position: relative;
    z-index: 1;
}

@supports (animation-timeline: view()) {
    .cta {
        background: linear-gradient(180deg, var(--surface), var(--ink));
    }

    /* L'horizon se lève pendant qu'on fait défiler jusqu'à lui */
    .hero::after {
        animation: oj-sunrise linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 45%;
    }

    .hero-image {
        animation: oj-land linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
    }

    .cta::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(90% 55% at 50% 105%, rgba(255, 120, 40, .95), rgba(255, 107, 26, .35) 45%, transparent 75%);
        transform-origin: 50% 100%;
        pointer-events: none;
        z-index: 0;
        animation: oj-cta-glow linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 55%;
    }

    @keyframes oj-cta-glow {
        from { opacity: 0; transform: scaleY(.6); }
        to   { opacity: 1; transform: scaleY(1); }
    }
}

/* Logo : jamais écrasé ni recadré (le PNG est carré, le dessin occupe
   seulement la bande du milieu : on retire les marges vides haut/bas) */
.logo,
.logo img {
    flex-shrink: 0;
}

.logo img {
    width: 104px;
    height: 104px;
    object-fit: contain;
    margin: -29px 0 -35px 0;
}

@media (max-width: 768px) {
    .logo img {
        width: 84px;
        height: 84px;
        margin: -23px 0 -28px 0;
    }
}

/* =========================================================
   MOUVEMENT AU DÉFILEMENT — chaque section enchaîne sur la suivante
   (navigateurs récents ; ailleurs la page reste simplement statique)
   ========================================================= */
@supports (animation-timeline: view()) {

    /* Fil conducteur : la progression de lecture dans le menu */
    nav { position: relative; }

    nav::after {
        content: '';
        position: absolute;
        left: 28px;
        right: 28px;
        bottom: -1px;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-color) 20%, var(--accent-color) 80%, transparent);
        transform-origin: 0 50%;
        animation: oj-progress linear both;
        animation-timeline: scroll(root);
        pointer-events: none;
    }

    @keyframes oj-progress {
        from { transform: scaleX(0); }
        to   { transform: scaleX(1); }
    }

    /* Vidéo : bascule en arrière quand on la quitte */
    .video-hero { perspective: 1400px; }

    .video-hero > .container {
        transform-origin: 50% 100%;
        animation: oj-recede linear both;
        animation-timeline: view();
        animation-range: exit 0% exit 100%;
    }

    @keyframes oj-recede {
        to { transform: rotateX(24deg) scale(.86); opacity: .25; }
    }

    /* Hero : le texte s'éloigne pendant que l'horizon se lève */
    .hero-content {
        animation: oj-drift linear both;
        animation-timeline: view();
        animation-range: exit 10% exit 90%;
    }

    @keyframes oj-drift {
        to { transform: translateY(-70px); opacity: .15; }
    }

    /* Titres : sortent d'un masque, de bas en haut */
    .transformation h2,
    .features h2,
    .cta h2 {
        animation: oj-wipe linear both;
        animation-timeline: view();
        animation-range: entry 15% cover 35%;
    }

    @keyframes oj-wipe {
        from { clip-path: inset(100% 0 0 0); transform: translateY(40px); }
        to   { clip-path: inset(0 0 -10% 0); transform: none; }
    }

    /* Section claire : une feuille qui monte par-dessus le noir */
    .transformation {
        transform-origin: 50% 0;
        animation: oj-sheet linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 100%;
    }

    @keyframes oj-sheet {
        from { transform: scale(.92); border-radius: 56px 56px 0 0; }
        to   { transform: none; border-radius: 0; }
    }

    .big-text {
        animation: oj-soft linear both;
        animation-timeline: view();
        animation-range: entry 30% cover 40%;
    }

    @keyframes oj-soft {
        from { opacity: 0; transform: translateY(24px); }
    }

    /* Les niveaux se soulignent l'un après l'autre */
    .big-text strong {
        background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 2px;
        padding-bottom: 2px;
        animation: oj-underline linear both;
        animation-timeline: view();
        animation-range: cover 30% cover 45%;
    }

    .big-text strong:nth-of-type(2) { animation-range: cover 36% cover 51%; }
    .big-text strong:nth-of-type(3) { animation-range: cover 42% cover 57%; }

    @keyframes oj-underline {
        to { background-size: 100% 2px; }
    }

    /* Galerie : les affiches se distribuent comme des cartes */
    .gallery-item {
        animation: oj-deal linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 35%;
    }

    .gallery-item:nth-child(1) { --dx: 160%; --rot: -14deg; }
    .gallery-item:nth-child(2) { --dx: 55%;  --rot: -5deg;  animation-range: entry 5% cover 38%; }
    .gallery-item:nth-child(3) { --dx: -55%; --rot: 5deg;   animation-range: entry 10% cover 41%; }
    .gallery-item:nth-child(4) { --dx: -160%; --rot: 14deg; animation-range: entry 15% cover 44%; }

    @keyframes oj-deal {
        from {
            opacity: 0;
            transform: translate(var(--dx, 0), 140px) rotate(var(--rot, 0deg)) scale(.86);
        }
    }

    /* Fonctionnalités : les cartes se lèvent en cascade */
    .features-grid { perspective: 1200px; }

    .feature-card {
        transform-origin: 50% 0;
        animation: oj-rise linear both;
        animation-timeline: view();
        animation-range: entry 5% cover 30%;
    }

    .feature-card:nth-child(2) { animation-range: entry 12% cover 34%; }
    .feature-card:nth-child(3) { animation-range: entry 19% cover 38%; }
    .feature-card:nth-child(4) { animation-range: entry 26% cover 42%; }

    @keyframes oj-rise {
        from { opacity: 0; transform: translateY(90px) rotateX(28deg); }
    }

    .feature-icon {
        animation: oj-spin-in linear both;
        animation-timeline: view();
        animation-range: entry 40% cover 40%;
    }

    @keyframes oj-spin-in {
        from { opacity: 0; transform: scale(.3) rotate(-45deg); }
    }

    .feature-card.highlight {
        animation-name: oj-rise-glow;
    }

    @keyframes oj-rise-glow {
        from {
            opacity: 0;
            transform: translateY(90px) rotateX(28deg);
            box-shadow: 0 0 0 rgba(255, 107, 26, 0);
        }
    }

    /* Appel final : le bloc s'ouvre, l'image se pose, « Axé ! » se forme */
    .cta {
        animation: oj-open linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }

    @keyframes oj-open {
        from { transform: scale(.9); border-radius: 64px; }
    }

    .cta-image {
        animation: oj-place linear both;
        animation-timeline: view();
        animation-range: entry 20% cover 35%;
    }

    @keyframes oj-place {
        from { opacity: 0; transform: translateY(80px) rotate(-12deg) scale(.85); }
    }

    .cta p:not(.axe),
    .cta .btn-primary {
        animation: oj-soft linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 100%;
    }

    .cta .axe {
        animation: oj-axe linear both;
        animation-timeline: view();
        animation-range: entry 10% entry 100%;
    }

    @keyframes oj-axe {
        from { opacity: 0; letter-spacing: .35em; filter: blur(10px); }
    }

    /* Pages internes : cours, vidéos, formules */
    .category-card,
    .video-card,
    .pricing-card {
        animation: oj-soft-rise linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 25%;
    }

    .category-card:nth-child(3n+2),
    .pricing-card:nth-child(2) { animation-range: entry 8% cover 29%; }

    .category-card:nth-child(3n+3),
    .pricing-card:nth-child(3) { animation-range: entry 16% cover 33%; }

    @keyframes oj-soft-rise {
        from { opacity: 0; transform: translateY(60px) scale(.96); }
    }

    /* Mobile : distances plus courtes */
    @media (max-width: 1024px) {
        .gallery-item:nth-child(odd)  { --dx: 50%;  --rot: -8deg; }
        .gallery-item:nth-child(even) { --dx: -50%; --rot: 8deg; }
    }

    @media (max-width: 768px) {
        .feature-card,
        .feature-card:nth-child(n) { animation-range: entry 5% cover 30%; }

        .category-card:nth-child(n) { animation-range: entry 0% cover 25%; }
    }
}

/* =========================================================
   HORIZON v2 — la « planète » sous les instruments
   ::after = le globe : surface en points qui tourne, bord lumineux
             qui s'efface sur les côtés
   ::before = la lueur au-dessus de l'horizon, qui respire
   ========================================================= */

.hero::after {
    bottom: -400px;
    width: min(1300px, 150%);
    aspect-ratio: 2.2 / 1;
    border-top: 2px solid rgba(255, 196, 150, .95);
    background:
        radial-gradient(circle, rgba(255, 150, 80, .55) 1.1px, transparent 1.7px) 0 0 / 15px 15px,
        radial-gradient(70% 45% at 50% 0%, rgba(255, 120, 40, .45), transparent 75%),
        #0B0A0D;
    box-shadow:
        inset 0 26px 50px -18px rgba(255, 107, 26, .55),
        inset 0 90px 120px -60px rgba(255, 140, 60, .25);
    -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 24%, #000 76%, transparent 98%);
    mask-image: linear-gradient(90deg, transparent 2%, #000 24%, #000 76%, transparent 98%);
    animation:
        oj-sunrise2 1.8s .9s var(--smooth) both,
        oj-globe 60s linear infinite;
}

.hero::before {
    top: auto;
    right: auto;
    left: 50%;
    bottom: 150px;
    width: min(980px, 110%);
    height: 300px;
    aspect-ratio: auto;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(50% 60% at 50% 100%, rgba(255, 120, 40, .6), rgba(255, 107, 26, .18) 55%, transparent 75%);
    filter: blur(14px);
    animation:
        oj-glow-in 1.6s 1.1s ease both,
        oj-breathe 5s 2.8s ease-in-out infinite alternate;
}

@keyframes oj-sunrise2 {
    from { transform: translateX(-50%) translateY(200px); filter: brightness(.35); }
    to   { transform: translateX(-50%); filter: none; }
}

/* La surface tourne lentement */
@keyframes oj-globe {
    from { background-position: 0 0, 0 0, 0 0, 0 0; }
    to   { background-position: 600px 0, 0 0, 0 0, 0 0; }
}

@keyframes oj-glow-in {
    from { opacity: 0; }
}

@keyframes oj-breathe {
    from { scale: 1; }
    to   { scale: 1.08 1.18; }
}

/* Le bas du hero se fond dans la section claire au lieu de couper net */
.hero .hero-image { z-index: 2; }

@supports (animation-timeline: view()) {
    .hero::after {
        animation:
            oj-sunrise2 linear both,
            oj-globe 60s linear infinite;
        animation-timeline: view(), auto;
        animation-range: entry 0% cover 45%, normal;
    }

    .hero::before {
        animation:
            oj-glow-in linear both,
            oj-breathe 5s ease-in-out infinite alternate;
        animation-timeline: view(), auto;
        animation-range: entry 10% cover 45%, normal;
    }
}

@media (max-width: 768px) {
    .hero::after {
        width: 230%;
        bottom: -275px;
        background-size: 12px 12px, auto, auto;
        -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 32%, #000 68%, transparent 90%);
        mask-image: linear-gradient(90deg, transparent 10%, #000 32%, #000 68%, transparent 90%);
    }

    .hero::before {
        bottom: 80px;
        width: 140%;
        height: 220px;
    }
}


/* Place pour que la planète soit vue avant que la section claire monte */
.hero { padding-bottom: 150px; }

@supports (animation-timeline: view()) {
    .hero::after { animation-range: entry 0% entry 38%, normal; }
    .hero::before { animation-range: entry 0% entry 80%, normal; }
}

@media (max-width: 768px) {
    .hero { padding-bottom: 100px; }
}


/* Globe plus profond : surface sombre, points et lumière concentrés près du bord */
.hero::after {
    background:
        radial-gradient(circle, rgba(255, 160, 95, .42) 1.1px, transparent 1.7px) 0 0 / 15px 15px,
        radial-gradient(55% 22% at 50% 0%, rgba(255, 130, 50, .55), transparent 100%),
        linear-gradient(180deg, rgba(8, 8, 11, 0) 0%, #08080B 45%),
        #120D0B;
    background-blend-mode: normal;
    box-shadow:
        inset 0 3px 0 -1px rgba(255, 215, 175, .95),
        inset 0 22px 40px -16px rgba(255, 107, 26, .6);
}

@media (max-width: 768px) {
    .hero::after { background-size: 12px 12px, auto, auto, auto; }
}

/* =========================================================
   BOUTONS, EN-TÊTES DE SECTION ET TARIFS (accueil 2026)
   ========================================================= */

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn-row.center { justify-content: center; }

.hero .btn-row { justify-content: center; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .2s var(--ease);
}

.btn-ghost:hover {
    border-color: var(--text);
    background: rgba(255, 255, 255, .08);
    transform: translateY(-2px);
}

.btn-ghost:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

a.btn-primary { text-decoration: none; }

.hero-note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* En-tête de section (galerie, tarifs) */
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-head h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.12;
    color: var(--text);
    margin-bottom: 14px;
}

.section-head p {
    color: var(--muted);
    font-size: 1.08rem;
}

.gallery .btn-row { margin-top: 64px; }

.features .btn-row { margin-top: 44px; }

/* ---------- Tarifs ---------- */
.plans {
    padding: 110px 24px 120px;
    background:
        radial-gradient(45% 35% at 50% 30%, rgba(255, 107, 26, .12), transparent 70%),
        var(--ink);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1020px;
    margin: 0 auto;
    align-items: stretch;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 30px 26px 26px;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
}

.plan h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
}

.plan-price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
}

.plan-hint {
    color: var(--muted);
    font-size: 0.95rem;
    min-height: 2.9em;
}

.plan-incl {
    margin: 14px 0 22px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--text);
}

.plan-incl::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 8px;
}

.plan .btn-primary,
.plan .btn-ghost {
    margin-top: auto;
    width: 100%;
}

.plan-featured {
    background: linear-gradient(180deg, rgba(255, 107, 26, .18), var(--surface) 70%);
    border-color: rgba(255, 107, 26, .6);
    box-shadow: 0 0 70px rgba(255, 107, 26, .16);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 26px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--on-primary);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ---------- Appel final ---------- */
.cta .btn-row { margin-top: 8px; }

.cta .btn-ghost {
    background: rgba(255, 255, 255, .06);
}

.cta p.cta-question {
    margin: 28px auto 0;
    font-size: 0.98rem;
    color: var(--muted);
}

.cta-question a {
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.cta-question a:hover { color: #FFB089; }

/* Liens du menu en plus : visibles sur grand écran seulement */
.nav-links a.nav-extra { color: var(--muted); }
.nav-links a.nav-extra:hover { color: var(--text); }

@media (max-width: 900px) {
    .nav-links a.nav-extra { display: none; }
}

/* Ancres : le menu flottant ne cache pas les titres */
#cours, #tarifs { scroll-margin-top: 90px; }

/* ---------- Mouvement des nouveaux éléments ---------- */
.hero .btn-row { animation: oj-fade .8s 1.05s ease both; }
.hero-note { animation: oj-fade .8s 1.2s ease both; }

@supports (animation-timeline: view()) {
    .section-head h2 {
        animation: oj-wipe linear both;
        animation-timeline: view();
        animation-range: entry 15% cover 35%;
    }

    .plan {
        animation: oj-soft-rise linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }

    .plan:nth-child(2) { animation-range: entry 8% cover 34%; }
    .plan:nth-child(3) { animation-range: entry 16% cover 38%; }

    .cta .btn-row,
    .cta p.cta-question {
        animation: oj-soft linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 100%;
    }
}

/* ---------- Tous les écrans ---------- */
@media (max-width: 860px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .plan-hint { min-height: 0; }

    /* Badge « Le plus choisi » : de la place au-dessus quand les cartes s'empilent */
    .plans-grid { gap: 26px; }
}

@media (max-width: 520px) {
    .btn-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-row .btn-primary,
    .btn-row .btn-ghost { width: 100%; }

    .plans { padding: 76px 16px 84px; }

    .section-head { margin-bottom: 32px; }

    .plan-price { font-size: 2.6rem; }
}

/* Très petits téléphones */
@media (max-width: 360px) {
    .nav-links a { padding: 6px 8px; font-size: 0.75rem; }
    .btn-membre, .btn-logout { padding: 7px 10px !important; }
}

/* =========================================================
   MON PARCOURS (espace membre + pages vidéos)
   ========================================================= */
.parcours { margin: 0 auto 44px; max-width: 1100px; }

.parcours:empty { display: none; }

.parcours-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
}

.parcours-card {
    min-width: 0;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    padding: 24px;
}

.parcours-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 6px;
}

.parcours-card p { color: var(--muted); font-size: 0.95rem; }

/* Reprendre */
.parcours-resume {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: var(--text);
    border-color: rgba(255, 107, 26, .5);
    background:
        radial-gradient(80% 120% at 0% 50%, rgba(255, 107, 26, .22), transparent 60%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    transition: border-color .2s, transform .2s var(--ease);
}

.parcours-resume:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.parcours-play {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding-left: 4px;
    background: var(--primary-color);
    color: var(--on-primary);
    font-size: 1.3rem;
    box-shadow: 0 0 0 6px rgba(255, 107, 26, .15), 0 10px 30px rgba(255, 107, 26, .35);
}

.parcours-resume-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.parcours-label { font-size: 0.85rem; color: var(--muted); }

.parcours-resume-text strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parcours-resume-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    color: #08080B;
    font-weight: 600;
    font-size: 0.92rem;
}

/* Par où commencer */
.parcours-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.parcours-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color .2s, background .2s;
}

.parcours-choice:hover,
.parcours-choice:focus-visible {
    border-color: var(--primary-color);
    background: rgba(255, 107, 26, .1);
}

.parcours-choice-icon { font-size: 1.2rem; }

/* Semaine */
.parcours-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin: 12px 0 14px;
}

.parcours-day {
    aspect-ratio: 1;
    max-width: 40px;
    width: 100%;
    justify-self: center;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.parcours-day.today { border-color: var(--text); color: var(--text); }

.parcours-day.on {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--on-primary);
    box-shadow: 0 0 16px rgba(255, 107, 26, .45);
}

.parcours-total { margin-top: 6px; color: var(--text) !important; font-weight: 600; }

/* Barres de progression */
.cat-progress {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: var(--surface-3);
    margin: 0 0 30px;
}

.cat-progress.is-empty { display: none; }

.cat-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width .6s var(--ease);
}

.cat-progress-text {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap;
}

.cat-progress-page {
    max-width: 360px;
    margin: 22px auto 30px;
}

.cat-progress-page .cat-progress-text {
    left: 50%;
    transform: translateX(-50%);
}

/* Cartes vidéo vues */
.video-mark {
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text);
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all .2s;
}

.video-mark:hover { border-color: var(--primary-color); color: var(--primary-color); }

.video-mark.is-on {
    background: rgba(46, 204, 113, .14);
    border-color: rgba(46, 204, 113, .5);
    color: #7BD88F;
}

.video-card.is-watched .video-thumbnail::after {
    content: '✓';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #22A35A;
    color: #fff;
    font-weight: 700;
}

.video-card.is-watched .video-thumbnail img,
.video-card.is-watched .default-thumbnail { opacity: .7; }

/* Bouton « J'ai terminé » dans la vidéo */
.video-modal-header { gap: 12px; }

.video-modal-header h3 { flex: 1; min-width: 0; }

.video-done {
    flex-shrink: 0;
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    background: var(--primary-color);
    color: var(--on-primary);
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.video-done.is-on { background: #22A35A; color: #fff; }

.video-done:focus-visible,
.video-mark:focus-visible,
.parcours-resume:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }

@media (max-width: 860px) {
    .parcours-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .parcours-card { padding: 20px 16px; }

    .parcours-resume { flex-wrap: wrap; }

    .parcours-resume-btn { width: 100%; text-align: center; }

    .parcours-choices { grid-template-columns: 1fr; }

    .video-modal { padding: 10px; }

    .video-modal-header { flex-wrap: wrap; padding: 12px 14px; }

    .video-modal-header h3 { flex-basis: calc(100% - 52px); font-size: 1.05rem; }

    .video-done { order: 3; width: 100%; }
}


/* Menus des pages internes sur téléphone : une seule ligne */
.nav-links a { white-space: nowrap; }

@media (max-width: 520px) {
    .nav-links a[data-translate="nav_back_member"] {
        font-size: 0;
        padding: 8px 10px;
    }

    .nav-links a[data-translate="nav_back_member"]::before {
        content: '←';
        font-size: 1.1rem;
        color: var(--text);
    }
}


/* Les instruments et le capoeiriste restent toujours opaques et devant la planète */
.hero .hero-image {
    position: relative;
    z-index: 3;
    isolation: isolate;
    animation: oj-land-solid 1.1s 1.15s var(--spring) both;
}

@keyframes oj-land-solid {
    from { transform: translateY(70px) scale(.94); }
}

@supports (animation-timeline: view()) {
    .hero .hero-image {
        animation: oj-land-solid linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 70%;
    }
}

/* =========================================================
   CONFIANCE : à propos, étapes, questions, pied de page,
   barre fixe téléphone, WhatsApp
   ========================================================= */

/* ---------- Qui vous accompagne ---------- */
.about {
    padding: 110px 24px;
    background: var(--ink);
}

.about-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
    max-width: 1080px;
}

.about-photo {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 80px rgba(255, 107, 26, .12);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.12;
    color: var(--text);
    margin-bottom: 18px;
}

.about-text > p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 60ch;
}

.about-facts {
    display: flex;
    gap: 40px;
    margin: 30px 0 32px;
}

.about-facts dt {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--primary-color);
}

.about-facts dd {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.about-text .btn-ghost { cursor: pointer; }

/* ---------- Comment ça marche ---------- */
.how {
    padding: 100px 24px 40px;
    background: var(--ink);
}

.how-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}

/* Le fil qui relie les étapes */
.how-steps::before {
    content: '';
    position: absolute;
    top: 23px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 26, .6), transparent);
}

.how-steps li {
    counter-increment: step;
    position: relative;
    text-align: center;
    padding: 0 12px;
}

.how-steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--primary-color);
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    position: relative;
    box-shadow: 0 0 24px rgba(255, 107, 26, .35);
}

.how-steps h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 8px;
}

.how-steps p {
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 34ch;
    margin: 0 auto;
}

/* ---------- Questions ---------- */
.faq {
    padding: 40px 24px 110px;
    background: var(--ink);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    transition: border-color .2s, background .2s;
}

.faq-item[open] {
    border-color: rgba(255, 107, 26, .45);
    background: var(--surface-2);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 500;
    transition: transform .25s var(--ease), background .2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    background: var(--primary-color);
    color: var(--on-primary);
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
    border-radius: 16px;
}

.faq-item p {
    padding: 0 22px 20px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 62ch;
}

.faq-more {
    text-align: center;
    margin-top: 28px;
    color: var(--muted);
}

.faq-more a,
.footer-contact a,
.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.faq-more a {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* ---------- Pied de page ---------- */
.site-footer {
    text-align: left;
    padding: 56px 24px 40px;
    border-top: 1px solid var(--line);
    margin-top: 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-brand img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: -34px 0 -34px -6px;
    display: block;
}

.footer-brand p { margin-top: 10px; font-size: 0.88rem; }

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-title {
    font-weight: 600;
    color: var(--text);
}

.footer-links a:hover,
.footer-contact a:hover { color: #FFB089; }

.footer-contact a { font-weight: 500; color: var(--muted); }

/* ---------- Barre fixe (téléphone) ---------- */
.sticky-cta {
    display: none;
}

.wa-float {
    position: fixed;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    border-radius: 999px;
    background: #1FAF54;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease), background .2s;
}

.wa-float.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.wa-float:hover { background: #179447; }

.wa-float:focus-visible,
.sticky-wa:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .wa-float { display: none; }

    .sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
        background: rgba(17, 17, 22, .92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--line-strong);
        transform: translateY(110%);
        transition: transform .35s var(--ease);
    }

    .sticky-cta.is-visible { transform: none; }

    .sticky-cta p {
        flex: 1;
        min-width: 0;
        font-size: 0.85rem;
        line-height: 1.3;
        color: var(--text);
    }

    .sticky-cta .btn-primary {
        flex-shrink: 0;
        width: auto;
        padding: 11px 18px;
        font-size: 0.92rem;
    }

    .sticky-wa {
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: #1FAF54;
        color: #fff;
    }

    /* Le pied de page reste lisible au-dessus de la barre */
    body.has-sticky-cta .site-footer { padding-bottom: 110px; }

    .about { padding: 76px 16px; }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-photo {
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }

    .about-facts { gap: 28px; }

    .how { padding: 72px 16px 24px; }

    .how-steps {
        grid-template-columns: 1fr;
        gap: 26px;
        max-width: 420px;
    }

    .how-steps::before {
        top: 24px;
        bottom: 24px;
        left: 23px;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, rgba(255, 107, 26, .6), rgba(255, 107, 26, .1));
    }

    .how-steps li {
        text-align: left;
        padding: 0 0 0 68px;
    }

    .how-steps li::before {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }

    .how-steps p { margin: 0; }

    .faq { padding: 24px 16px 80px; }

    .faq-item summary { padding: 16px 16px; font-size: 1rem; }

    .faq-item p { padding: 0 16px 18px; }

    .footer-inner { grid-template-columns: 1fr 1fr; }

    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 400px) {
    .sticky-cta p { font-size: 0.78rem; }
    .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Mouvement des nouvelles sections ---------- */
@supports (animation-timeline: view()) {
    .about-photo {
        animation: oj-soft-rise linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }

    .about-text h2,
    .how .section-head h2,
    .faq .section-head h2 {
        animation: oj-wipe linear both;
        animation-timeline: view();
        animation-range: entry 15% cover 35%;
    }

    .about-facts dt {
        animation: oj-soft linear both;
        animation-timeline: view();
        animation-range: entry 40% cover 40%;
    }

    .how-steps::before {
        transform-origin: 0 50%;
        animation: oj-progress linear both;
        animation-timeline: view();
        animation-range: entry 20% cover 45%;
    }

    .how-steps li {
        animation: oj-soft-rise linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 35%;
    }

    .how-steps li:nth-child(2) { animation-range: entry 16% cover 39%; }
    .how-steps li:nth-child(3) { animation-range: entry 22% cover 43%; }

    @media (max-width: 768px) {
        .how-steps::before { transform-origin: 50% 0; animation-name: oj-thread; }

        @keyframes oj-thread {
            from { transform: scaleY(0); }
            to   { transform: scaleY(1); }
        }
    }
}

/* =========================================================
   GINGA + MOUVEMENT POUR TOUS LES NAVIGATEURS
   ========================================================= */

/* La ginga : le capoeiriste et les instruments balancent doucement,
   au rythme d'une ginga lente (propriétés translate/rotate séparées,
   pour ne pas gêner l'animation d'arrivée) */
.hero-image img {
    transform-origin: 50% 90%;
    animation: oj-ginga 3.2s 2.4s ease-in-out infinite;
}

@keyframes oj-ginga {
    0%, 100% { translate: 0 0; rotate: 0deg; }
    25%      { translate: -7px 2px; rotate: -.8deg; }
    50%      { translate: 0 0; rotate: 0deg; }
    75%      { translate: 7px 2px; rotate: .8deg; }
}

/* Réseaux sociaux (pied de page) */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--text);
    transition: border-color .2s, background .2s, transform .2s var(--ease);
}

.footer-social a:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 26, .12);
    transform: translateY(-2px);
}

.footer-social a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* ---------- Navigateurs sans animations au défilement (Safari, Firefox) :
   même mise en scène, déclenchée par home.js quand la section arrive ---------- */
.oj-fallback .oj-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .9s var(--ease);
    transition-delay: var(--d, 0s);
}

.oj-fallback .gallery-item.oj-reveal {
    transform: translate(var(--dx, 0), 120px) rotate(var(--rot, 0deg)) scale(.88);
    transition-duration: 1s, 1.1s;
}

.oj-fallback .transformation.oj-reveal {
    opacity: 1;
    transform: scale(.94);
    border-radius: 56px 56px 0 0;
    transition: transform 1s var(--ease), border-radius 1s var(--ease);
}

.oj-fallback .oj-reveal.is-in {
    opacity: 1;
    transform: none;
}

.oj-fallback .transformation.oj-reveal.is-in { border-radius: 0; }

.oj-fallback .gallery-item:nth-child(even).oj-reveal.is-in { transform: translateY(28px); }

@media (max-width: 1024px) {
    .oj-fallback .gallery-item:nth-child(even).oj-reveal.is-in { transform: none; }
}

.oj-fallback .big-text strong {
    background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 2px;
    padding-bottom: 2px;
    transition: background-size .8s var(--ease) .5s;
}

.oj-fallback .big-text.is-in strong { background-size: 100% 2px; }

.oj-fallback .big-text.is-in strong:nth-of-type(2) { transition-delay: .8s; }
.oj-fallback .big-text.is-in strong:nth-of-type(3) { transition-delay: 1.1s; }

/* Fil de progression dans le menu */
.oj-fallback nav::after {
    content: '';
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color) 20%, var(--accent-color) 80%, transparent);
    transform-origin: 0 50%;
    transform: scaleX(var(--oj-progress, 0));
    pointer-events: none;
}

.oj-fallback nav { position: relative; }


/* Pied de page : ses liens ne prennent pas le style du menu du haut */
nav.footer-links,
.oj-fallback nav.footer-links {
    position: static;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
    gap: 12px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
    align-items: flex-start;
}

nav.footer-links::after { content: none; display: none; }

.footer-contact a[href^="https://wa.me"] { white-space: nowrap; }

@media (max-width: 768px) {
    .site-footer { padding: 44px 20px 36px; }

    .footer-inner { gap: 28px 24px; }

    .footer-brand img {
        width: 96px;
        height: 96px;
        margin: -26px 0 -30px -4px;
    }

    .footer-brand p { margin-top: 8px; }
}


/* Boutons WhatsApp verts */
.btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #1FAF54;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(31, 175, 84, .3);
    transition: background .2s, transform .2s var(--ease);
}

.btn-wa:hover { background: #179447; transform: translateY(-2px); }

.btn-wa span { text-align: center; }

.btn-wa:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }

.faq-more,
.cta p.cta-question {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-social a.social-wa {
    background: #1FAF54;
    border-color: #1FAF54;
    color: #fff;
}

.footer-social a.social-wa:hover { background: #179447; border-color: #179447; }

/* =========================================================
   PANNEAU ADMIN : menu latéral, onglets, tableaux, messages
   ========================================================= */
.admin-page .construction-banner { display: none; }

.admin-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 24px 80px;
    min-height: 80vh;
}

.admin-side {
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 12px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.admin-side-title {
    padding: 0 10px;
    font-size: 0.82rem;
    color: var(--muted);
}

.admin-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* réinitialise le style du menu du haut */
    position: static;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
    align-items: stretch;
}

.admin-tabs::after { content: none; display: none; }

.admin-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.admin-tab:hover { background: var(--surface-2); color: var(--text); }

.admin-tab.is-active {
    background: rgba(255, 107, 26, .14);
    color: var(--text);
    box-shadow: inset 2px 0 0 var(--primary-color);
}

.admin-tab.is-active svg { color: var(--primary-color); }

.admin-tab:focus-visible,
.chip:focus-visible,
.quick:focus-visible,
.level-count:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.admin-side-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 10px 0;
    border-top: 1px solid var(--line);
}

.admin-side-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-side-links a:hover { color: var(--text); }

.admin-main { min-width: 0; }

.admin-panel { display: flex; flex-direction: column; gap: 20px; }

.admin-panel[hidden] { display: none; }

.admin-head h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    letter-spacing: -0.025em;
    text-transform: none;
    text-align: left;
    margin: 0 0 4px;
    color: var(--text);
}

.admin-head .admin-subtitle {
    text-align: left;
    margin: 0;
    color: var(--muted);
}

/* Chiffres */
.admin-page .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.admin-page .stat-card {
    border-top: 1px solid var(--line);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-page .stat-card p { font-size: 0.9rem; color: var(--muted); }

.admin-page .stat-card h3 {
    font-size: 2.4rem;
    margin: 0;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.stat-card.stat-good h3 { color: #7BD88F; }
.stat-card.stat-warn h3 { color: #FFB089; }
.stat-card.stat-money h3 { color: var(--primary-color); }

.admin-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 20px;
}

.admin-page .admin-card {
    margin: 0;
    padding: 22px;
    border-radius: 18px;
}

.admin-page .admin-card h2 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.admin-empty {
    color: var(--muted);
    text-align: center;
    padding: 18px 10px !important;
    list-style: none;
}

/* Expirent bientôt */
.expiring-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.expiring-list li:not(.admin-empty) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.expiring-list li > div { min-width: 0; display: flex; flex-direction: column; }

.expiring-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font-size: 0.95rem;
}

.expiring-list span { color: #FFB089; font-size: 0.85rem; }

/* Raccourcis */
.quick-actions { display: flex; flex-direction: column; gap: 8px; }

.quick {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.quick:hover { border-color: rgba(255, 107, 26, .5); background: var(--surface-3); }

.quick > span:last-child { display: flex; flex-direction: column; }

.quick strong { font-family: var(--font-display); font-size: 0.98rem; }

.quick > span:last-child span { color: var(--muted); font-size: 0.85rem; }

.quick-ic {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 107, 26, .16);
    color: var(--primary-color);
    font-weight: 700;
}

/* Barre de recherche et filtres */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.toolbar h2 { margin: 0 !important; }

.search {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--ink);
    border: 1px solid var(--line-strong);
    color: var(--muted);
}

.search:focus-within { border-color: var(--primary-color); }

.search input {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    outline: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all .2s;
}

.chip:hover { color: var(--text); }

.chip.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--on-primary);
}

.toolbar-select { margin: 0; display: flex; align-items: center; gap: 10px; }

.toolbar-select label { margin: 0; white-space: nowrap; }

.toolbar-select select { width: auto; min-width: 180px; }

/* Tableaux */
.admin-page table { margin-top: 0; font-size: 0.93rem; }

.admin-page table th,
.admin-page table td { padding: 12px 14px; vertical-align: middle; }

.admin-page table td:first-child {
    font-weight: 600;
    color: var(--text);
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-page table td { color: var(--muted); }

.admin-page .action-buttons { flex-wrap: wrap; }

.admin-page .table-container {
    border: 1px solid var(--line);
    border-radius: 14px;
}

.admin-page thead th:first-child { border-top-left-radius: 14px; }
.admin-page thead th:last-child { border-top-right-radius: 14px; }

.admin-page tbody tr:last-child td { border-bottom: 0; }

/* Formulaires repliables */
.admin-fold summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.admin-fold summary::-webkit-details-marker { display: none; }

.admin-fold summary h2 { margin: 0 !important; }

.admin-fold summary::after {
    content: '+';
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--text);
    transition: transform .25s var(--ease);
}

.admin-fold[open] summary::after { transform: rotate(45deg); }

.admin-fold[open] summary { margin-bottom: 18px; }

.admin-page .admin-form .form-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    cursor: pointer;
}

.check input { width: 18px; height: 18px; accent-color: var(--primary-color); }

.admin-page .admin-actions { justify-content: flex-start; margin-top: 0; }

/* Vidéos par niveau */
.level-counts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.level-count {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    text-align: left;
    transition: border-color .2s, background .2s;
}

.level-count strong {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.level-count span { font-size: 0.85rem; }

.level-count:hover { border-color: var(--line-strong); }

.level-count.is-active {
    border-color: var(--primary-color);
    background: rgba(255, 107, 26, .12);
}

/* Messages discrets */
.toasts {
    position: fixed;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 40px));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-left: 3px solid #22A35A;
    color: var(--text);
    font-size: 0.92rem;
    white-space: pre-line;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
    animation: oj-toast-in .3s var(--ease) both;
    transition: opacity .35s, transform .35s;
}

.toast-error { border-left-color: #D93025; }

.toast.is-leaving { opacity: 0; transform: translateY(8px); }

.toast-close {
    margin-left: auto;
    flex-shrink: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

@keyframes oj-toast-in {
    from { opacity: 0; transform: translateY(12px); }
}

/* ---------- Écrans plus petits ---------- */
@media (max-width: 1000px) {
    .admin-shell { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }

    .admin-side {
        position: sticky;
        top: 78px;
        z-index: 50;
        flex-direction: row;
        align-items: center;
        padding: 6px;
        border-radius: 999px;
        background: rgba(17, 17, 22, .9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        overflow-x: auto;
    }

    .admin-side-title,
    .admin-side-links { display: none; }

    .admin-tabs { flex-direction: row; width: 100%; }

    .admin-tab {
        justify-content: center;
        border-radius: 999px;
        white-space: nowrap;
        padding: 10px 14px;
    }

    .admin-tab.is-active { box-shadow: none; background: var(--primary-color); color: var(--on-primary); }

    .admin-tab.is-active svg { color: inherit; }

    .admin-page .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .admin-grid-2 { grid-template-columns: 1fr; }

    .level-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .admin-shell { padding: 18px 12px 60px; }

    .admin-tab svg { display: none; }

    .admin-tab { padding: 10px 12px; font-size: 0.88rem; }

    .admin-page .stat-card { padding: 16px; }

    .admin-page .stat-card h3 { font-size: 1.9rem; }

    .admin-page .admin-card { padding: 16px; }

    .toolbar-select { flex-direction: column; align-items: stretch; width: 100%; }

    .toolbar-select select { width: 100%; }

    .level-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Tableau en fiches sur téléphone */
    .admin-page table thead { display: none; }

    .admin-page table,
    .admin-page tbody,
    .admin-page tr,
    .admin-page td { display: block; width: 100%; }

    .admin-page .table-container { border: 0; }

    .admin-page tbody tr {
        padding: 14px;
        margin-bottom: 10px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--surface-2);
    }

    .admin-page table td {
        padding: 4px 0;
        border: 0;
        max-width: none;
        white-space: normal;
    }

    .admin-page table td:first-child { font-size: 1rem; margin-bottom: 4px; }

    .admin-page .action-buttons { margin-top: 10px; }

    .admin-page .admin-actions { flex-direction: column; }

    .admin-page .admin-actions button { width: 100%; }
}

/* =========================================================
   ESPACE MEMBRE : connexion en deux colonnes sur grand écran
   ========================================================= */
@media (min-width: 900px) {
    #loginSection .login-container {
        max-width: 980px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        column-gap: 48px;
        align-items: start;
    }

    #loginSection .login-container > h2,
    #loginSection .login-container > p:not(.error-message),
    #loginSection .login-container > form,
    #loginSection .login-container > .error-message,
    #loginSection .login-container > .social-login { grid-column: 1; }

    #loginSection .login-container > h2,
    #loginSection .login-container > p:not(.error-message) { text-align: left; }

    #loginSection .subscription-info-section {
        grid-column: 2;
        grid-row: 1 / span 6;
        margin: 0;
        padding: 0 0 0 48px;
        border-top: 0;
        border-left: 1px solid var(--line);
        align-self: stretch;
    }
}

/* Pages de connexion administrateur */
.admin-login .login-container { text-align: center; }

.admin-login .login-container h2 { font-size: 1.8rem; }

.admin-login .login-container > p { text-align: center; }

.admin-login form { text-align: left; }

.admin-login-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: -34px auto -30px;
    display: block;
}

.admin-login .social-login {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-result {
    margin-top: 18px;
    color: var(--muted);
    min-height: 1.4em;
}

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


/* =========================================================
   ESPACE SUR TOUT LE SITE + TERRE SOUS LES PIEDS (assets/js/globe.js)
   Le ciel étoilé est fixe derrière la page ; les sections deviennent
   transparentes pour que l'espace continue d'une section à l'autre.
   ========================================================= */
html.has-space { background: #07070B; }
html.has-space body { background: transparent; }

.site-space {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

html.has-space .video-hero,
html.has-space .hero,
html.has-space .gallery,
html.has-space .features,
html.has-space .about,
html.has-space .how,
html.has-space .plans,
html.has-space .faq,
html.has-space .site-footer {
    background-color: transparent;
}

html.has-space .hero { background-image: none; }

/* La section claire devient une vitre sombre : l'espace passe à travers */
html.has-space .transformation {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .035) 30%, rgba(255, 255, 255, .02));
    color: var(--text, #F5F5F7);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
html.has-space .transformation h2 { color: #F5F5F7; }
html.has-space .transformation .big-text { color: #B4B4C0; }
html.has-space .transformation .big-text strong { color: #FF8A3D; }

html.has-space .site-footer { border-top: 1px solid rgba(255, 255, 255, .08); }

/* La Terre remplace l'ancien arc sous les instruments */
.hero-earth {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 340px;
    z-index: 0;
    pointer-events: none;
}
.hero.has-earth::after { display: none; }
.hero.has-earth { padding-bottom: 250px; }
.hero-earth { height: 460px; }

@media (max-width: 768px) {
    .hero.has-earth { padding-bottom: 170px; }
    .hero-earth { height: 320px; }
}

/* ---------- Confiance sous les tarifs ---------- */
.trust-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin: 28px auto 0;
    padding: 0;
    color: var(--muted, #A3A3AE);
    font-size: .92rem;
}
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { color: #FF8A3D; flex: none; }

/* ---------- Bandeau mesure d'audience (consentement) ---------- */
.oj-consent {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2000;
    max-width: 560px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-radius: 16px;
    background: rgba(18, 16, 24, .96);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    color: #F5F5F7;
    font-size: .88rem;
    line-height: 1.45;
}
.oj-consent p { flex: 1 1 240px; margin: 0; color: #C9C7D2; }
.oj-consent button {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.oj-consent .oj-yes { background: #FF6B1A; color: #fff; }
.oj-consent .oj-no { background: rgba(255, 255, 255, .08); color: #F5F5F7; }

/* ---------- Pix (abonnement, en portugais) ---------- */
.pix-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 13px 16px;
    border: 0;
    border-radius: 999px;
    background: #32BCAD;
    color: #fff;
    font: 700 1rem var(--font-body, inherit);
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(50, 188, 173, .3);
}
.pix-btn:hover { filter: brightness(1.08); }
.pix-btn[hidden] { display: none; }

.pix-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(5, 5, 8, .78);
    backdrop-filter: blur(6px);
}
.pix-modal[hidden] { display: none; }
.pix-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 24px 20px 20px;
    border-radius: 22px;
    background: #15131B;
    border: 1px solid rgba(255, 255, 255, .1);
    color: #F5F5F7;
    text-align: center;
}
.pix-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}
.pix-kicker { color: #32BCAD; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.pix-plan { margin: 4px 0 14px; font-size: 1.25rem; }
.pix-qr { width: 220px; height: 220px; margin: 0 auto; padding: 8px; background: #fff; border-radius: 14px; }
.pix-qr svg { width: 100%; height: 100%; display: block; }
.pix-hint { margin: 14px 0 10px; color: #B9B6C4; font-size: .88rem; line-height: 1.45; }
.pix-copyrow { display: flex; gap: 8px; }
.pix-code {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: #F5F5F7;
    font-size: .8rem;
}
.pix-copy {
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: #32BCAD;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.pix-steps { text-align: left; margin: 16px 0 14px 20px; color: #C9C7D2; font-size: .88rem; line-height: 1.6; }
.pix-done {
    display: block;
    padding: 13px 16px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

/* ---------- Planning vidéos (admin) ---------- */
.plan-table td.plan-todo { color: #FF8A3D; font-weight: 700; }
.plan-table td.plan-ok { color: #4ADE80; font-weight: 700; }
.plan-table tfoot td { font-weight: 800; border-top: 1px solid rgba(255, 255, 255, .15); }

/* ===== Plano de aulas (admin) ===== */
.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 18px; }
.lp-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.lp-stat strong { font-size: 1.5rem; line-height: 1.1; }
.lp-stat span { font-size: .8rem; opacity: .75; }
.lp-stat.st-ligne strong { color: #4ADE80; } .lp-stat.st-idee strong { color: #FF8A3D; }
.lp-views { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.lp-view { border: 0; background: none; color: var(--text); padding: 8px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.lp-view.is-active { background: var(--primary-color); color: #fff; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.lp-chip, .lp-chip-btn { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); padding: 7px 14px; border-radius: 999px; font-size: .88rem; cursor: pointer; }
.lp-chip.is-active { border-color: var(--primary-color); color: var(--primary-color); font-weight: 700; }
.lp-chip-btn:hover { border-color: var(--primary-color); }
.lp-group { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 1.15rem !important; margin: 22px 0 10px !important; }
.lp-group span { font-size: .85rem; font-weight: 500; opacity: .7; }
.lp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.lp-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 6px; font: inherit; transition: border-color .2s, transform .2s; }
.lp-card:hover { border-color: var(--primary-color); transform: translateY(-2px); }
.lp-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lp-num { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.lp-card-title { font-size: 1.02rem; }
.lp-meta { font-size: .85rem; color: var(--primary-color); font-weight: 600; }
.lp-preview, .lp-dates { font-size: .82rem; opacity: .75; }
.lp-pill { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--surface-3); }
.lp-pill.st-idee { color: #FF8A3D; } .lp-pill.st-pret { color: #FACC15; } .lp-pill.st-filme { color: #60A5FA; }
.lp-pill.st-monte { color: #C084FC; } .lp-pill.st-ligne { color: #4ADE80; }
.lp-editor { border-color: var(--primary-color); }
.lp-editor-head { display: flex; justify-content: space-between; align-items: center; }
.lp-x { background: none; border: 0; color: var(--text); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; }
.lp-grid .lp-wide { grid-column: 1 / -1; }
.lp-seq-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0 8px; }
.lp-seq-head h3 { margin: 0; }
.lp-total { color: var(--primary-color); margin-left: 6px; }
.lp-tpl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; }
.lp-seq-labels, .lp-step { display: grid; grid-template-columns: 28px minmax(0, 2fr) 70px minmax(0, 2fr) auto; gap: 8px; align-items: center; }
.lp-seq-labels { font-size: .75rem; opacity: .6; padding: 0 2px 4px; }
.lp-seq { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-step input { margin: 0 !important; width: 100%; }
.lp-step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.lp-step-tools { display: flex; gap: 4px; }
.lp-mini { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.lp-mini:hover { border-color: var(--primary-color); }
.lp-add { margin-bottom: 16px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-month h2 { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.lp-month-count { font-size: .85rem; font-weight: 500; opacity: .7; }
.lp-events { list-style: none; margin: 0; padding: 0; }
.lp-ev { display: grid; grid-template-columns: 110px 100px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.lp-ev:first-child { border-top: 0; }
.lp-ev.is-past { opacity: .55; }
.lp-ev.is-today .lp-ev-date { color: var(--primary-color); font-weight: 700; }
.lp-ev-date { font-size: .88rem; text-transform: capitalize; }
.lp-ev-kind { font-size: .85rem; font-weight: 600; }
.lp-ev-pub .lp-ev-kind { color: #4ADE80; } .lp-ev-rec .lp-ev-kind { color: #FF8A3D; }
.lp-ev-title { background: none; border: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; padding: 0; }
.lp-ev-title:hover { color: var(--primary-color); text-decoration: underline; }
@media (max-width: 700px) {
    .lp-seq-labels { display: none; }
    .lp-step { grid-template-columns: 28px minmax(0, 1fr) 64px; background: var(--surface-2); padding: 10px; border-radius: 12px; }
    .lp-step .lp-s-det { grid-column: 2 / 4; }
    .lp-step .lp-step-tools { grid-column: 2 / 4; justify-content: flex-end; }
    .lp-ev { grid-template-columns: 1fr auto; }
    .lp-ev-title { grid-column: 1 / -1; }
    .lp-ev-date, .lp-ev-kind { grid-column: auto; }
}
.lp-step input { padding: 10px 11px; background: var(--ink); border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); font-family: var(--font-body); font-size: 16px; }
.lp-step input:focus { outline: none; border-color: var(--primary-color); }
.lp-auto .admin-subtitle { text-align: left; }
@media (max-width: 700px) {
    .lp-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .lp-stat { padding: 10px; }
    .lp-stat strong { font-size: 1.2rem; }
    .lp-stat span { font-size: .72rem; }
}


/* =========================================================
   17/10 : menu sans le nom, logo léger
   ========================================================= */
.nav-links { margin-left: auto; }

.logo img,
header .logo img {
    width: auto;
    height: 46px;
    margin: 0;
    object-fit: contain;
}

.footer-brand img {
    width: auto;
    height: 52px;
    margin: 0;
}

@media (max-width: 768px) {
    .logo img,
    header .logo img { height: 36px; }
}

/* Formules : liste de ce que chacune contient */
.plan-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 14px 0 22px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--text);
}

.plan-list li {
    display: flex;
    gap: 9px;
    line-height: 1.4;
}

.plan-list li::before {
    content: '✓';
    flex-shrink: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Menu : noms plus clairs, typo plus nette (17/10) */
.nav-links { gap: 4px; }

.nav-links a,
.nav-links a.nav-extra {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.93rem;
    letter-spacing: -0.01em;
    color: rgba(245, 245, 247, .78);
    padding: 9px 14px;
    border-radius: 999px;
    transition: color .2s, background .2s;
}

.nav-links a.nav-extra:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .07);
}

.nav-links a.btn-membre {
    margin-left: 6px;
    color: #08080B !important;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .nav-links a[href="#particulier"].nav-extra { display: none; }
}

/* Cours particuliers */
.private {
    padding: 0 24px 100px;
    background: var(--ink);
}

.private-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    max-width: 1020px;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(255, 107, 26, .18), transparent 70%),
        var(--surface);
}

.private-text h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-transform: none;
    color: var(--text);
    margin-bottom: 14px;
}

.private-text p { color: var(--muted); max-width: 58ch; }

.private-offer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-left: 32px;
    border-left: 1px solid var(--line);
}

.private-price { color: var(--muted); }

.private-price strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
}

.private-offer .btn-primary { width: 100%; }

.private-note { font-size: 0.88rem; color: var(--muted); }

#particulier { scroll-margin-top: 90px; }

@media (max-width: 820px) {
    .private { padding: 0 16px 72px; }
    .private-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 20px;
    }
    .private-offer {
        padding-left: 0;
        padding-top: 22px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

/* Quiz « Trouvez votre formule » : un lien discret, une fenêtre au clic */
.quiz-open {
    margin-top: 14px;
    padding: 4px 2px;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    cursor: pointer;
}

.quiz-open:hover { color: #FFB089; }

.quiz-open:focus-visible,
.quiz-option:focus-visible,
.quiz-close:focus-visible,
.quiz-again:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }

.quiz {
    width: min(460px, calc(100vw - 32px));
    margin: auto;
    padding: 30px 26px 26px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(255, 107, 26, .12);
}

.quiz[open] { animation: oj-quiz-in .25s var(--ease) both; }

@keyframes oj-quiz-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.quiz::backdrop { background: rgba(8, 8, 11, .72); backdrop-filter: blur(4px); }

.quiz-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.quiz-bar {
    height: 4px;
    border-radius: 4px;
    background: var(--surface-3);
    margin: 4px 44px 18px 0;
    overflow: hidden;
}

.quiz-bar span {
    display: block;
    height: 100%;
    background: var(--primary-color);
    transition: width .3s var(--ease);
}

.quiz-step { color: var(--muted); font-size: 0.88rem; margin-bottom: 6px; }

.quiz-q {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    padding-right: 30px;
}

.quiz-options { display: flex; flex-direction: column; gap: 8px; }

.quiz-option {
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.quiz-option:hover { border-color: var(--primary-color); background: rgba(255, 107, 26, .1); }

.quiz-start { color: var(--muted); margin: -6px 0 20px; }

.quiz-go { width: 100%; }

.quiz-again {
    display: block;
    margin: 14px auto 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* =========================================================
   MODE JOUR (17/10) : fond crème, texte encre, même orange.
   Activé par le bouton soleil du menu (html[data-theme="jour"]).
   ========================================================= */
.theme-toggle {
    width: 40px; height: 40px; flex: 0 0 40px;
    display: inline-grid; place-items: center;
    border-radius: 999px; border: 1px solid var(--line-strong);
    background: transparent; color: var(--text); cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .ico-moon { display: none; }
html[data-theme="jour"] .theme-toggle .ico-sun { display: none; }
html[data-theme="jour"] .theme-toggle .ico-moon { display: block; fill: currentColor; stroke: none; }

html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
    transition: background-color .4s ease, color .4s ease, border-color .4s ease !important;
}

html[data-theme="jour"] {
    color-scheme: light;
    --ink: #FAF7F2;
    --surface: #FFFFFF;
    --surface-2: #F3EEE6;
    --surface-3: #E9E2D7;
    --line: rgba(26, 22, 18, 0.10);
    --line-strong: rgba(26, 22, 18, 0.20);
    --text: #1A1612;
    --muted: #5F574E;
    --dark-color: #FAF7F2;
    --light-color: #1A1612;
    --primary-color: #E85D0C;
    --glow: rgba(255, 107, 26, 0.35);
}
html[data-theme="jour"] body { background: var(--ink); color: var(--text); }
html[data-theme="jour"] .logo img { content: url("../images/logo-jour.webp"); }
html[data-theme="jour"].has-space { background: var(--ink); }
html[data-theme="jour"].has-space body { background: transparent; }
html[data-theme="jour"] .site-space { display: none; }

/* Menu : vitre claire, bouton principal encre */
html[data-theme="jour"] header nav {
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 34px rgba(60, 40, 20, .10);
}
html[data-theme="jour"] .btn-membre { background: #1A1612; color: #FFFFFF !important; }
html[data-theme="jour"] .btn-membre:hover { background: #000; color: #FFFFFF !important; }

/* Section « niveaux » : texte encre */
html[data-theme="jour"].has-space .transformation,
html[data-theme="jour"] .transformation {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7) 30%, rgba(255, 255, 255, .4));
    color: var(--text);
}
html[data-theme="jour"] .transformation h2 { color: var(--text); }
html[data-theme="jour"] .transformation .big-text { color: var(--muted); }
html[data-theme="jour"] .transformation .big-text strong { color: var(--primary-color); }

/* Ombres plus douces sur fond clair */
html[data-theme="jour"] .video-preview {
    background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(255, 107, 26, .12), 0 0 60px rgba(255, 107, 26, .18), 0 24px 60px rgba(60, 40, 20, .18);
}
html[data-theme="jour"] .cta-image img,
html[data-theme="jour"] .about-image img { box-shadow: 0 20px 50px rgba(60, 40, 20, .18); }

/* Appel final : bouton encre sur fond clair */
html[data-theme="jour"] .cta .btn-primary { background: #1A1612; color: #FFFFFF; box-shadow: 0 10px 30px rgba(60, 40, 20, .2); }
html[data-theme="jour"] .cta .btn-primary:hover { background: #000; }

/* Ancien arc du hero (si la Terre ne se dessine pas) */
html[data-theme="jour"] .hero::after {
    background:
        radial-gradient(circle, rgba(220, 90, 20, .35) 1.1px, transparent 1.7px) 0 0 / 15px 15px,
        radial-gradient(55% 22% at 50% 0%, rgba(255, 130, 50, .35), transparent 100%),
        linear-gradient(180deg, #FFE3CC 0%, var(--ink) 55%);
    box-shadow: inset 0 3px 0 -1px rgba(232, 93, 12, .8), inset 0 22px 40px -16px rgba(255, 107, 26, .35);
}

/* Barre fixe mobile, bandeau d'audience, fenêtre du quiz */
@media (max-width: 768px) {
    html[data-theme="jour"] .sticky-cta { background: rgba(255, 255, 255, .94); }
}
html[data-theme="jour"] .oj-consent {
    background: rgba(255, 255, 255, .97);
    border-color: var(--line-strong);
    color: var(--text);
    box-shadow: 0 20px 50px rgba(60, 40, 20, .18);
}
html[data-theme="jour"] .oj-consent .oj-no { background: var(--surface-2); color: var(--text); }
html[data-theme="jour"] .quiz::backdrop { background: rgba(250, 247, 242, .7); }
html[data-theme="jour"] .quiz { box-shadow: 0 30px 80px rgba(60, 40, 20, .22); }

html[data-theme="jour"] .nav-links a,
html[data-theme="jour"] .nav-links a.nav-extra { color: rgba(26, 22, 18, .78); }
html[data-theme="jour"] .nav-links a.nav-extra:hover { color: var(--text); background: rgba(26, 22, 18, .06); }
html[data-theme="jour"] .nav-links a.btn-membre { color: #FFFFFF !important; }
html[data-theme="jour"] .oj-consent p { color: var(--muted); }
html[data-theme="jour"] .cta .axe,
html[data-theme="jour"] .cta-axe { color: #1A1612 !important; text-shadow: 0 0 30px rgba(255, 255, 255, .6); }

/* Cours particuliers : les trois formats sous le prix */
.private-list { margin: 4px 0 18px; }
