/* ===== VARIABLES ===== */
:root {
    --bg:           #252525;
    --bg-dark:      #151515;
    --bg-card:      #353535;
    --bg-support:   #48396D;
    --green:        #3EAB3C;
    --green-light:  #7EE913;
    --green-dark:   #118F01;
    --pink:         #D864A9;
    --pink-light:   #FF88CF;
    --pink-dark:    #C25395;
    --white:        #FFFFFF;
    --muted:        rgba(255,255,255,0.65);
    --font:         'Noto Sans', sans-serif;
    --radius:       12px;

    /* Nav — mobile par défaut */
    --nav-h: 70px;
    --nav-m: 10px;
}

/* Nav desktop */
@media (min-width: 1024px) {
    :root {
        --nav-h: 80px;
        --nav-m: 20px;
    }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    background: #252525;
}
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    overflow-anchor: none; /* désactive le CSS Scroll Anchoring — empêche le scroll au chargement */
    -webkit-font-smoothing: antialiased;
    scrollbar-gutter: stable; /* réserve l'espace de la scrollbar — évite le décalage layout quand overflow:hidden */
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== UTILITIES ===== */
.grad-green {
    background: linear-gradient(180deg, var(--green-light) 25%, var(--green-dark) 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-inline: 0.05em; /* évite que les italiques soient rognés par le clip */
    background-clip: text;
    font-style: italic;
}
.grad-pink {
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.icon-screen   { mix-blend-mode: screen; }
.icon-white-sm { width: 18px; height: 18px; mix-blend-mode: screen; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    height: 60px;
    padding: 0 26px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s, border-color 0.18s, color 0.18s;
    white-space: nowrap;
}
.btn img { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { box-shadow: 0 8px 28px rgba(62,171,60,0.4); filter: brightness(1.08); }
.btn-pink  { background: var(--pink);  color: var(--white); }
.btn-pink:hover  { box-shadow: 0 8px 28px rgba(216,100,169,0.4); filter: brightness(1.08); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.22);
}
.btn-outline:hover { border-color: var(--green); color: var(--green-light); }

/* ===== NAVBAR ===== */
nav {
    position: fixed;
    top: var(--nav-m);
    left: var(--nav-m);
    right: var(--nav-m);
    height: var(--nav-h);
    z-index: 9002;
    background: #252525;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        left       0.35s ease,
        right      0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease,
        height     0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
nav.open { height: calc(var(--section-h, 100svh) - var(--nav-m) * 2); }

/* État scrollé : semi-transparent + blur + rétrécissement */
nav.scrolled {
    background: rgba(37, 37, 37, 0.25);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    left:  calc(var(--nav-m) + 10px);
    right: calc(var(--nav-m) + 10px);
    box-shadow:
        0 4px 20px rgba(0,0,0,0.25),
        0 1px 6px  rgba(0,0,0,0.15);
}
nav.scrolled.open { box-shadow: none; }

@media (min-width: 1024px) {
    nav.scrolled {
        left:  calc(var(--nav-m) + 20px);
        right: calc(var(--nav-m) + 20px);
    }
}

.nav-inner {
    height: var(--nav-h);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img  { width: 30px; height: 30px; }
.nav-logo span { font-size: 17px; font-weight: 800; letter-spacing: 0.01em; }

.nav-links {
    display: none;
    list-style: none;
    gap: 40px;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-icons { display: none; align-items: center; gap: 18px; flex-shrink: 0; }
.nav-icons a { display: flex; align-items: center; }
.nav-icons img {
    width: 20px; height: 20px;
    mix-blend-mode: screen;
    opacity: 0.75;
    transition: opacity 0.2s;
}
.nav-icons a:hover img { opacity: 1; }

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 20px 28px 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s 0.2s ease;
    position: relative;
    flex: 1;
}
nav.open .nav-mobile-menu { opacity: 1; pointer-events: all; }
.nav-mobile-menu a {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    transform: translateY(8px);
    transition: transform 0.25s ease, color 0.2s;
}
nav.open .nav-mobile-menu a              { transform: translateY(0); }
nav.open .nav-mobile-menu a:nth-child(1) { transition-delay: 0.14s; }
nav.open .nav-mobile-menu a:nth-child(2) { transition-delay: 0.19s; }
nav.open .nav-mobile-menu a:nth-child(3) { transition-delay: 0.24s; }
nav.open .nav-mobile-menu a:nth-child(4) { transition-delay: 0.29s; }
.nav-mobile-menu a:hover { color: var(--green-light); }

.nav-mobile-bottom {
    position: absolute;
    bottom: 28px; left: 28px; right: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.25s 0.3s ease;
}
nav.open .nav-mobile-bottom { opacity: 1; }
.nav-mobile-sep   { width: 100%; height: 1px; background: rgba(255,255,255,0.12); }
.nav-mobile-icons { display: flex; justify-content: flex-end; gap: 20px; }
.nav-mobile-icons a { display: flex; align-items: center; }
.nav-mobile-icons img { width: 22px; height: 22px; mix-blend-mode: screen; opacity: 0.75; }

@media (min-width: 1024px) {
    .nav-links { display: flex; }
    .nav-icons { display: flex; }
    .hamburger { display: none; }
    .nav-mobile-menu { display: none; }
    nav.open   { height: var(--nav-h); }
}

/* ===== HERO ===== */
#hero {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg) 100%);
    min-height: var(--section-h, 100svh);
    display: flex;
    flex-direction: column;
    padding: 90px 10px 10px;
}
@media (min-width: 1024px) {
    #hero { padding: 120px 20px 20px; }
}

.hero-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 0;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('assets/visuals/hero-bg.webp') center/cover no-repeat;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(15,15,15,0.55) 0%,
        rgba(15,15,15,0.75) 50%,
        rgba(15,15,15,0.95) 100%
    )
}
@media (min-width: 1024px) {
    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(15,15,15,0.85) 15%,
            rgba(15,15,15,0.00) 100%
        )
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
@media (min-width: 1024px) {
    .hero-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.hero-content { max-width: 560px; }
.hero-title {
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 20px;
    animation: fadeInUp 0.55s 0.08s ease both;
}

.hero-visual--mobile {
    display: block;
    margin: 0 auto 20px;
    animation: fadeInUp 0.55s 0.14s ease both;
}
.hero-visual--mobile img {
    width: 100%;
    max-width: 280px;
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.07);
    margin: 0 auto;
}

.hero-sub {
    font-size: clamp(15px, 1.6vw, 17px);
    color: var(--muted);
    line-height: 1.65;
    max-width: 366px;
    margin-bottom: 28px;
    animation: fadeInUp 0.55s 0.18s ease both;
}
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.55s 0.26s ease both;
}
@media (min-width: 1024px) { .hero-actions { align-items: flex-start; } }

.hero-meta { font-size: 12px; color: var(--muted); }
.hero-meta a { text-decoration: underline; text-underline-offset: 2px; opacity: 0.7; transition: opacity 0.2s; }
.hero-meta a:hover { opacity: 1; }

.dl-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(62,171,60,0.12);
    border: 1px solid rgba(62,171,60,0.28);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-light);
    margin-top: 2px;
}

.hero-visual--desktop { display: none; }
@media (min-width: 1024px) {
    .hero-visual--mobile  { display: none; }
    .hero-visual--desktop { display: block; flex-shrink: 0; }
    .hero-visual--desktop img {
        width: 400px;
        border-radius: var(--radius);
        box-shadow: 0 32px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.07);
        animation: fadeIn 0.6s 0.3s ease both;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== SECTIONS (base commune) ===== */
.section {
    min-height: var(--section-h, 100svh);
    display: flex;
    align-items: center;
    padding: 90px 24px 60px;
}
@media (min-width: 1024px) {
    .section { padding: 120px 24px 60px; }
}

.section-inner { max-width: 1280px; margin: 0 auto; width: 100%; }
.section-head  { text-align: center; margin-bottom: 60px; }
.section-head h2 {
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 14px;
}
.section-head p {
    font-size: 15px;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.65;
}
.underline-green,
.section-underline {
    width: 44px; height: 3px;
    background: linear-gradient(to right, var(--green-light), var(--green-dark));
    border-radius: 2px;
    margin: 14px auto 18px;
}

/* ===== FEATURES ===== */
#features {
    background: var(--bg);
    height: 100lvh;
    min-height: unset;
}
@media (max-width: 1023px) {
    /* Section s'étire autour du contenu — hauteur fixe du carrousel identique sur tous les navigateurs */
    #features      { height: auto; min-height: var(--section-h, 100svh); }
    .carousel-wrap { height: 440px; }
    .feat-card     { aspect-ratio: unset; }
}

.carousel-wrap {
    overflow: hidden;
    display: flex;
    justify-content: center;
    /* Padding vertical pour que les box-shadow ne soient pas clippées */
    padding: 12px 0;
    margin: -12px 0;   /* compense le padding pour ne pas décaler le layout */
}
.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.42s cubic-bezier(0.25,0.46,0.45,0.94);
    width: 300px;
}

.feat-card {
    flex: 0 0 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card);
    aspect-ratio: 3/5;
    box-shadow: 0 0px 10px rgba(0,0,0,0.35);
}

/* Marges intérieures = le "masque" */
.feat-card-img {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
    border-radius: 10px;
    z-index: 0;
}

/* Fond dégradé ancré en bas dans le masque */
.feat-card-body {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 180px;
    z-index: 1;
    background: linear-gradient(to top,
        rgba(21,21,21,0.95) 0%,
        rgba(21,21,21,0.75) 100%
    );
    border-radius: 0 0 10px 10px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.feat-card-body h3 {
    font-size: 16px;
    font-weight: 800;
}
.feat-card-body p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}
.feat-card-body p strong { font-weight: 700; color: rgba(255,255,255,0.88); }

/* Texte identique mobile/desktop — pas de clamp sur desktop */

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.cdot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    cursor: pointer; border: none;
    transition: all 0.3s;
    /* target-size mobile : zone de tap >= 48px sans changer l'apparence visuelle */
    position: relative;
}
.cdot::after {
    content: '';
    position: absolute;
    inset: -20px;
}
@media (min-width: 1024px) {
    .cdot::after { display: none; }
}
.cdot.active { background: var(--green); width: 22px; border-radius: 4px; }

.feat-grid {
    display: none;
    gap: 18px;
}
.feat-grid .feat-card {
    flex: none;
    max-height: none;
    transition: transform 0.22s, box-shadow 0.22s;
}
.feat-grid .feat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.feat-grid .feat-card:nth-child(2) { transition-delay: 0.1s; }
.feat-grid .feat-card:nth-child(3) { transition-delay: 0.2s; }
.feat-grid .feat-card:nth-child(4) { transition-delay: 0.3s; }

/* Section Features en colonne pour que la grille prenne la hauteur restante */
#features .section-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#features .section-head {
    margin-top: 40px;
    margin-bottom: 40px;
}

@media (min-width: 1200px) {
    .carousel-wrap, .carousel-dots { display: none; }
    .feat-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        flex: 1;           /* remplit la hauteur disponible */
        min-height: 0;     /* évite le dépassement flex */
    }
    /* Les cartes s'étirent dans la grille, aspect-ratio retiré */
    .feat-grid .feat-card { aspect-ratio: unset; max-height: none; }
}

/* ===== POINTS FORTS ===== */
#points-forts { background: var(--bg); }

.pf-layout { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.pf-visual { display: none; }
.pf-visual img {
    width: 100%;
    max-width: 320px;
    border-radius: var(--radius);
    box-shadow:
        0 0 40px rgba(62,171,60,0.35),
        0 0 80px rgba(62,171,60,0.18),
        0 24px 64px rgba(0,0,0,0.45);
}
.pf-content {
    background: var(--bg-dark);
    border-radius: 10px;
    padding: 36px 32px;
    width: 100%;
    max-width: 600px;
}
.pf-content h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.2; margin-bottom: 6px; }
.pf-content .underline-green { margin-left: 0; }
.pf-intro { font-size: 14.5px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.pf-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.pf-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.pf-list li::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .pf-layout {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 64px;
    }
    .pf-visual  { display: block; flex-shrink: 0; }
    .pf-content { flex: none; max-width: 600px; }
}

/* Bloc "Laissez-vous guider" en bas du pf-content */
.pf-guide {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.pf-guide h3 {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 900;
    margin-bottom: 18px;
}
.pf-guide-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pf-guide-btns .btn { width: 100%; justify-content: center; }

@media (min-width: 640px) {
    .pf-guide-btns { flex-direction: row; }
    .pf-guide-btns .btn { width: auto; flex: 1; }
}

/* ===== BOTTOM CARDS ===== */
.bc-grid {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
@media (max-width: 1023px) {
    .bc-card { max-width: 400px; width: 100%; margin: 0 auto; }
}
@media (min-width: 1024px) {
    .bc-grid {
        grid-template-columns: 1fr 1fr;
        align-items: stretch; /* même hauteur */
    }
}

.bc-card {
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
@media (min-width: 1024px) {
    .bc-card { padding: 56px 36px; height: 460px; }
    .bc-card .btn { margin-top: auto; }
}
.bc-card h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; line-height: 1.25; margin-bottom: 14px; }
.bc-card-aside { font-size: 0.55em; font-style: normal; font-weight: 600; opacity: 0.6; }
.bc-card p:not(.bc-note) { font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.7; margin-bottom: 28px; max-width: 340px; }

/* Ancrage en bas via margin-top: auto */
.bc-note {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.4);
    margin-top: auto;
    padding-top: 16px;
    margin-bottom: 0;
    line-height: 1.6;
}
.bc-meta {
    margin-top: auto;
    padding-top: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.9;
}
.bc-meta a { text-decoration: underline; opacity: 0.7; }
.bc-meta a:hover { opacity: 1; }

.bc-card .btn { width: 100%; max-width: 280px; justify-content: center; }
@media (max-width: 1023px) {
    .bc-card h2              { font-size: 16px; }
    .bc-card p:not(.bc-note) { font-size: 12px; margin-bottom: 16px; }
    .bc-card .btn            { font-size: 12px; padding: 0 14px; }
}
.card-support  { background: var(--bg-support); }
.card-download { background: var(--bg-card); }

/* Bouton téléchargement désactivé sur mobile */
.btn-desktop-only { pointer-events: none; opacity: 0.4; }

/* Texte bouton adaptatif desktop/mobile */
.btn-text-desktop { display: none; }
.btn-text-mobile  { display: inline; }
@media (min-width: 1024px) {
    .btn-text-desktop { display: inline; }
    .btn-text-mobile  { display: none; }
    .btn-desktop-only { pointer-events: auto; opacity: 1; }
}

/* ===== SECTION SPACER ===== */
.section-spacer {
    height: 60px;
    background: #252525;
    display: flex;
    align-items: flex-end;      /* groupe ancré en bas */
    justify-content: center;
    padding-bottom: 8px;
}
/* Wrapper pour aligner les ronds sur la même ligne de base */
.section-spacer .ss-dots {
    display: flex;
    align-items: center;        /* centrage vertical entre les ronds de tailles différentes */
    gap: 5px;
}
.ss-dot {
    display: block;
    border-radius: 50%;
    flex-shrink: 0;
}
.ss-dot--sm { width: 6px;  height: 6px;  background: rgba(255,255,255,0.05); }
.ss-dot--md { width: 8px;  height: 8px;  background: rgba(255,255,255,0.15); }
.ss-dot--lg { width: 10px; height: 10px; background: rgba(255,255,255,0.25); }

/* Spacer réduit à 10px entre FAQ et Contact — ronds centrés verticalement */
.section-spacer--sm {
    height: 10px;
    padding-bottom: 0;
    align-items: center;
}

/* ===== TUTORIAL ===== */
.tut-spacer {
    height: 40px;
    background: var(--bg-dark);
}

/* Fond de section, layout colonne, padding zéro (on gère tout manuellement) */
.tut-section {
    background: var(--bg-dark) !important;
    align-items: stretch;
    flex-direction: column;
    padding: 0 !important;
    box-sizing: border-box;
    /* height fixe = seule façon de contraindre la chaîne flex en dessous
       (min-height seul ne suffit pas : les enfants flex:1 n'ont aucune ref) */
    height: var(--section-h, 100svh);
}
/* Sur mobile : hauteur fixe pour uniformiser sur tous les navigateurs.
   Visuel fixé à 180px pour laisser le maximum de place au texte scrollable. */
@media (max-width: 1023px) {
    .tut-section { height: 740px; min-height: 0; }
    .tut-visual  { height: 220px; max-height: 220px; aspect-ratio: unset; }
}

/* section-inner remplit toute la section en colonne */
.tut-section .section-inner {
    max-width: none;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    gap: 10px;
    padding: 0 10px 10px;
    box-sizing: border-box;
}
@media (min-width: 1024px) {
    .tut-section .section-inner { padding: 0 20px 20px; gap: 20px; }
}

/* Zone titre = hauteur exacte du bas de la navbar
   mobile  : nav-m(10) + nav-h(70) = 80px
   desktop : nav-m(20) + nav-h(80) = 100px
   → titre centré dedans, la nav le recouvre exactement */
.tut-section .section-head {
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    padding: 0;
    flex-shrink: 0;
}
.tut-section .section-head h2 {
    margin-bottom: 0;
    margin-top: 20px;
}
@media (min-width: 1024px) {
    .tut-section .section-head { height: 100px; }
}

/* tut-box remplit tout l'espace restant */
.tut-box {
    position: relative;
    background: var(--bg);
    border-radius: 10px;
    padding: 24px 20px 28px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
@media (min-width: 1024px) {
    .tut-box { padding: 28px 28px 36px; min-height: 0; }
}

/* ---- Onglets capsules ---- */
.tut-tabs {
    display: flex;
    flex-wrap: nowrap;       /* pas de retour à la ligne */
    overflow-x: auto;        /* scroll horizontal natif */
    scrollbar-width: none;   /* Firefox */
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 4px;     /* évite que les bordures soient coupées */
    flex-shrink: 0;
}
.tut-tabs::-webkit-scrollbar { display: none; } /* Chrome/Safari */
@media (min-width: 1024px) {
    .tut-tabs { justify-content: center; } /* centré sur desktop */
}

.tut-tab {
    background: none;
    border: 1.5px solid #404040;
    border-radius: 9px;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    padding: 5px 14px;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
    transition: color 0.2s, border-color 0.2s;
}
.tut-tab:hover  { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.3); }
.tut-tab.active { color: var(--white); border-color: var(--green); }

/* ---- Panneaux ---- */
.tut-panels {
    flex: 1;
    position: relative;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tut-panel { display: none; }
.tut-panel.active {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;  /* mobile : image haut, texte bas */
    gap: 20px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .tut-panel.active {
        flex-direction: column;
        gap: 16px;
        padding-left: calc(66.67% + 40px);
    }
}

/* ---- Visuel (gauche desktop / haut mobile) ---- */
.tut-visual {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 380px;
    border-radius: 10px;
    overflow: hidden;
}
.tut-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}
@media (min-width: 1024px) {
    .tut-visual {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 66.67%;
        height: auto;
        aspect-ratio: unset;
        max-height: unset;
        border-radius: 10px;
        overflow: hidden;
    }
    .tut-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 8px;
    }
}

/* ---- Boutons navigation prev / next ---- */
.tut-nav {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    flex-shrink: 0;
}
.tut-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: var(--green);  /* vert par défaut */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.tut-nav-btn:hover:not(:disabled)  { opacity: 0.82; transform: scale(1.05); }
.tut-nav-btn:active:not(:disabled) { transform: scale(0.96); }
.tut-nav-btn:disabled {
    background: #3a3a3a;   /* gris quand désactivé */
    cursor: default;
    transform: none;
    opacity: 1;
}
.tut-nav-btn svg { pointer-events: none; }

@media (min-width: 1024px) {
    .tut-nav { padding-top: 20px; padding-left: 0; }
    .tut-nav-btn { width: 50px; height: 50px; }
}

/* ---- Texte (droite desktop / bas mobile) ---- */
.tut-steps {
    flex: 1;
    min-height: 0;
    padding-left: 3px;   /* évite que les italiques soient rognés par overflow */
    padding-right: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    /* Scrollbar personnalisée — Chrome/Safari */
    scrollbar-width: thin;                        /* Firefox */
    scrollbar-color: #353535 #202020;             /* Firefox : barre fond */
}
.tut-steps::-webkit-scrollbar              { width: 8px; }
.tut-steps::-webkit-scrollbar-track       { background: #202020; border-radius: 99px; }
.tut-steps::-webkit-scrollbar-thumb       { background: #353535; border-radius: 99px; }
.tut-steps::-webkit-scrollbar-thumb:hover { background: #444; }

@media (min-width: 1024px) {
    .tut-steps { flex: 1; min-height: 0; min-width: 0; }
}

.tut-title {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 18px;
}
.tut-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--green);
    margin-top: 10px;
}

.tut-intro {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    margin-bottom: 20px;
}

.tut-tips {
    font-size: 14px;
    font-style: italic;
    font-weight: 600;
    color: var(--white);
    line-height: 1.75;
    margin: 32px 0 20px 0;
}
.tut-tips-second {
    margin-top: 0;
}

.tut-tips-icon {
    font-size: 20px;
    font-style: normal;
    margin-right: 6px;
}

.tut-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: tut-step;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.tut-list li {
    counter-increment: tut-step;
    position: relative;
    padding-left: 34px; /* 20px puce + 14px gap */
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.65;
}
.tut-list li::before {
    content: counter(tut-step);
    position: absolute;
    left: 0;
    top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

/* Variante numérotée sans fond (listes "étapes" après 🚀) */
.tut-list--plain li::before {
    height: 20px;
    width: 20px;
    background: var(--bg-card);
    color: #909090;
    border-radius: 2px;
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--bg);  /* #252525 */
}
.faq-section .section-inner {
    max-width: 880px;
}

/* ---- Onglets catégories ---- */
.faq-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
    margin-bottom: 24px;
    flex-shrink: 0;
    border-bottom: 1.5px solid rgba(255,255,255,0.1);
}
.faq-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
    .faq-tabs { justify-content: center; }
}

.faq-tab {
    background: none;
    border: none;
    box-shadow: inset 0 0 0 transparent;  /* état de base pour la transition */
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    padding: 10px 18px;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
    transition: color 0.2s, box-shadow 0.2s;
}
.faq-tab:hover  { color: rgba(255,255,255,0.75); }
.faq-tab.active { color: var(--white); box-shadow: inset 0 -3px 0 var(--green); }

/* ---- Conteneur blanc ---- */
.faq-body {
    background: #fff;
    border-radius: 10px;
    max-height: 460px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8c8c8 #ebebeb;
}
.faq-body::-webkit-scrollbar              { width: 8px; }
.faq-body::-webkit-scrollbar-track       { background: #ebebeb; border-radius: 99px; }
.faq-body::-webkit-scrollbar-thumb       { background: #c8c8c8; border-radius: 99px; }
.faq-body::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ---- Panels ---- */
.faq-panel { display: none; }
.faq-panel.active { display: block; }

/* ---- Accordion items ---- */
.faq-item {
    border-bottom: 1px solid #efefef;
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    padding: 20px 24px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.45;
    transition: color 0.15s;
}
.faq-q:hover { color: var(--green-dark); }
.faq-item.open .faq-q { color: var(--green-dark); }

.faq-arrow {
    flex-shrink: 0;
    color: #aaa;
    transition: transform 0.25s ease, color 0.15s;
}
.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--green-dark);
}

/* Réponse — height 0 → auto via max-height animé */
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}
.faq-item.open .faq-a {
    max-height: 400px;
    padding: 0 24px 20px;
}

.faq-a p {
    font-size: 14px;
    color: #555;
    line-height: 1.75;
}
.faq-a ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-a ul li {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    padding-left: 16px;
    position: relative;
}
.faq-a ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--green-dark);
    font-weight: 700;
}
.faq-a code {
    font-size: 12px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1px 6px;
    color: #333;
    font-family: 'Courier New', monospace;
}

/* ===== CONTACT ===== */
.contact-footer-wrap {
    display: flex;
    flex-direction: column;
    min-height: var(--section-h, 100svh);
}
.contact-section {
    background: var(--bg);
    flex: 1; /* remplit tout l'espace restant — le footer prend sa hauteur naturelle */
    min-height: 0; /* écrase le min-height: var(--section-h) hérité de .section */
}

/* Label accessible mais invisible */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.contact-card {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

.contact-intro p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
}

/* ---- Formulaire ---- */
.contact-form { display: flex; flex-direction: column; gap: 10px; }

.form-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (min-width: 640px) {
    .form-row { flex-direction: row; }
    .form-row .form-group { flex: 1; }
}

.form-group { display: flex; flex-direction: column; }

.form-group input,
.form-group textarea {
    background: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 14px;
    color: #1a1a1a;
    outline: 3px solid transparent;
    outline-offset: 0;
    transition: outline-color 0.2s;
    resize: none;
    width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }
.form-group input:focus,
.form-group textarea:focus { outline-color: var(--green); }
.form-group input.error,
.form-group textarea.error { outline-color: #e05555; }

/* Select custom — fond blanc */
.form-select-wrap { position: relative; }
.form-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 40px 13px 16px;
    font-family: inherit;
    font-size: 14px;
    color: #1a1a1a;
    outline: 3px solid transparent;
    outline-offset: 0;
    cursor: pointer;
    transition: outline-color 0.2s;
    width: 100%;
}
.form-select-wrap select:focus  { outline-color: var(--green); }
.form-select-wrap select option { background: #fff; color: #1a1a1a; }
/* .error sur le wrap (mis par le JS) → on cible le select enfant */
.form-select-wrap.error select  { outline-color: #e05555; }
/* Placeholder option grisé */
.form-select-wrap select:invalid,
.form-select-wrap select option[value=""] { color: #aaa; }
.select-arrow {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

/* ---- Checkbox ---- */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-top: 4px;
}
.form-check input[type="checkbox"] { display: none; }
.form-check-box {
    flex-shrink: 0;
    width: 18px; height: 18px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    background: #fff;
    margin-top: 1px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}
.form-check input:checked ~ .form-check-box {
    background: var(--green);
    border-color: var(--green);
}
/* Coche SVG via pseudo-élément */
.form-check input:checked ~ .form-check-box::after {
    content: '';
    display: block;
    width: 10px; height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}
.form-check-label {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    user-select: none;
}
.form-check-note { color: rgba(255,255,255,0.35); }

/* ---- Bouton centré 50px ---- */
.form-submit-wrap {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}
.contact-submit {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    font-size: 14px;
}
.contact-submit:hover svg { transform: translateX(3px); }
.contact-submit svg { transition: transform 0.2s; }

/* ---- Message succès ---- */
.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(62,171,60,0.1);
    border: 1.5px solid rgba(62,171,60,0.35);
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 16px;
}
.form-success[hidden] { display: none; } /* empêche display:flex d'écraser l'attribut hidden */
.form-success p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 16px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    pointer-events: none;
}
/* Curseur zoom-in uniquement sur mobile */
@media (max-width: 1023px) {
    .tut-visual img { cursor: zoom-in; }
}

/* ===== FOOTER ===== */
/* ===== PANNEAU LÉGAL ===== */
.legal-panel {
    position: fixed;
    top: calc(var(--nav-m) + var(--nav-h) + 10px); /* 10px sous le bas du header en mobile */
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
@media (min-width: 1024px) {
    .legal-panel { top: calc(var(--nav-m) + var(--nav-h) + 20px); }
}
.legal-panel.open {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25),
                0 1px 6px  rgba(0,0,0,0.15);
}
.legal-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.legal-panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.legal-panel-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}
.legal-panel-close:hover { color: #fff; }
.legal-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.7;
}
.legal-panel-body h2 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin: 28px 0 8px;
}
.legal-panel-body h2:first-child { margin-top: 0; }
.legal-panel-body p { margin: 0 0 8px; }
.legal-panel-body a { color: var(--green); text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
    background: var(--bg);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 22px 24px;
    text-align: center;
    position: relative;
    z-index: 9001;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
footer p { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-disclaimer { font-size: 10px; margin-top: 4px; color: rgba(255,255,255,0.2); }
footer a { text-decoration: underline; opacity: 0.6; }
footer a:hover { opacity: 1; }
.legal-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.legal-btn:hover { opacity: 1; }