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

:root {
    /* Orange Truffox — identité principale, calquée sur themev2.dart (AppColors.primary) */
    --primary: #F07020;
    --primary-dark: #c75a10;
    --primary-light: #f59d6a;
    --primary-rgb: 240, 112, 32;

    /* Vert vif — accent signature de l'app (AppColors.navBarIndicator), réservé aux
       CTA et éléments de mise en avant. À NE PAS confondre avec --success. */
    --accent: #39E991;
    --accent-dark: #1fc96e;
    --accent-light: #6df5b3;
    --accent-rgb: 57, 233, 145;

    /* Gris-noir sobre — AppColors.appBar, fond du header/footer/mockup */
    --dark-bg: #1c1d23;
    --light-bg: #F5F5F5;
    --text-dark: #1c1d23;
    --text-light: #757575;

    /* Vert doux — validation/succès uniquement (AppColors switch actif), distinct
       du vert vif ci-dessus */
    --success: #27AE60;
    --warning: #f39c12;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 90px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

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

/* ============ HEADER ============ */
header {
    background: linear-gradient(135deg, #fff 0%, #F5F5F5 100%);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.08);
    border-bottom: 2px solid var(--primary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2em;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95em;
}

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

/* Le bouton Télécharger garde son texte blanc au survol (sinon .nav-links
   a:hover le passe en orange sur fond orange). */
.nav-links a.btn-primary:hover {
    color: white;
}

/* ============ BURGER MENU ============ */
.hero-logo-mobile {
    display: none;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1010;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

/* ============ HERO SECTION ============ */
.hero {
    background: linear-gradient(135deg, #14151a 0%, var(--dark-bg) 55%, #0e0f13 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    color: white;
}

/* Sentier de balade pointillé, avec repères façon spots communautaires —
   remplace les blobs radiaux génériques par un motif propre à Truffox. */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='700' viewBox='0 0 1600 700'%3E%3Cpath d='M-50,560 C220,500 320,630 580,530 C840,430 900,260 1140,225 C1300,203 1420,150 1650,95' fill='none' stroke='white' stroke-width='2.5' stroke-dasharray='2 16' stroke-linecap='round' opacity='0.14'/%3E%3Ccircle cx='580' cy='530' r='5' fill='white' opacity='0.22'/%3E%3Ccircle cx='1140' cy='225' r='5' fill='white' opacity='0.22'/%3E%3Ccircle cx='1650' cy='95' r='7' fill='%2339E991' opacity='0.45'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: left;
    animation: slideInLeft 0.8s ease-out;
}

.hero h1 {
    font-size: 3.4em;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.15;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
    animation: fadeInDown 0.8s ease-out;
}

.hero p {
    font-size: 1.15em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.badge-icon {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F07020;
    font-weight: 700;
    font-size: 0.7em;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
    text-align: center;
    position: relative;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #39E991;
    color: #39E991;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    justify-content: center;
    animation: fadeIn 0.8s ease-out 0.6s both;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 1.8em;
    font-weight: 800;
    color: #39E991;
    font-family: 'Outfit', sans-serif;
    animation: count-up 1s ease-out 0.8s both;
}

.hero-stat-label {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.hero-accent {
    color: white;
    position: relative;
    display: inline-block;
}


.phone-mockup {
    width: 280px;
    border-radius: 35px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 6px solid #2e2f38;
    background-color: #1c1d23;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
    aspect-ratio: 9/19;
    margin: 0 auto;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 60px rgba(var(--accent-rgb), 0.2);
    }
    50% {
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 100px rgba(var(--accent-rgb), 0.4);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #1c1d23;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* ============ SECTION HEADERS ============ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8em;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
}

.section-header h2 .accent {
    color: var(--primary);
}

.section-header p {
    font-size: 1.2em;
    color: var(--text-light);
}

/* ============ ALL AGES SECTION ============ */
.all-ages {
    padding: 100px 0;
    background: linear-gradient(180deg, #F5F5F5 0%, #ffffff 100%);
}

.ages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 40px;
    margin-top: 60px;
}

.age-card {
    padding: 40px;
    background: white;
    border-radius: 12px;
    border: 2px solid rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.age-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.12);
}

.age-card h3 {
    font-size: 1.5em;
    color: var(--primary);
    margin-bottom: 5px;
}

.age-range {
    color: var(--text-light);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.age-features {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}

.age-features li {
    color: var(--text-dark);
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.95em;
}

.age-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.age-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
}

.age-example {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9em;
    margin-top: 15px;
}

/* ============ PERSONALIZATION SECTION ============ */
.personalization {
    padding: 100px 0;
    background: white;
}

.personalization-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.personalization-text h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.personalization-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.personalization-list {
    list-style: none;
    margin: 30px 0;
}

.personalization-list li {
    margin: 15px 0;
    padding-left: 35px;
    position: relative;
    color: var(--text-dark);
    font-weight: 500;
}

.personalization-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2em;
}

.personalization-visual {
    background: linear-gradient(135deg, #f0f4fa 0%, #f8f6ff 100%);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(var(--primary-rgb), 0.15);
}

.character-showcase {
    position: relative;
    z-index: 1;
    text-align: center;
}

.character-showcase h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.character-example {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid var(--accent);
}

.character-example-name {
    font-weight: 700;
    color: var(--text-dark);
}

.character-example-traits {
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 5px;
}

/* ============ FEATURES SECTION ============ */
.features {
    padding: 100px 0;
    background: linear-gradient(180deg, #F5F5F5 0%, #ffffff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.12);
    border-color: var(--primary);
}

.feature-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    font-size: 0.95em;
}

/* ============ HOW IT WORKS ============ */
.how-it-works {
    padding: 100px 0;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.step {
    background: linear-gradient(135deg, #F5F5F5 0%, #ffffff 100%);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5em;
    margin: 0 auto 20px;
    font-family: 'Outfit', sans-serif;
}

.step h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============ POWER SECTION ============ */
.power-section {
    padding: 100px 0;
    background: white;
}

.power-content {
    margin-top: 60px;
}

.power-intro {
    max-width: 800px;
    margin: 0 auto 80px;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-dark);
}

.power-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.power-card {
    padding: 40px;
    border-radius: 12px;
    border: 2px solid rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #F5F5F5 0%, #ffffff 100%);
}

.power-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.1);
}

.power-card.featured {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--accent-rgb), 0.08) 100%);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.15);
}

.power-card-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.power-card-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.95em;
}

.power-list {
    list-style: none;
    margin: 0;
}

.power-list li {
    color: var(--text-dark);
    margin: 12px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.95em;
}

.power-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.power-example {
    background: linear-gradient(135deg, #F5F5F5 0%, #ffffff 100%);
    padding: 50px;
    border-radius: 12px;
    border: 2px solid rgba(var(--primary-rgb), 0.1);
}

.power-example h3 {
    font-size: 1.6em;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.example-grid {
    display: grid;
    /* min(320px, 100%) évite que la colonne force un débordement horizontal
       sur les écrans plus étroits que 320px + padding. */
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
    margin-top: 30px;
}

.example-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.example-card:hover {
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.12);
    transform: translateY(-4px);
}

.example-header {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1em;
    font-family: 'Outfit', sans-serif;
}

.example-body {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 0.95em;
}

/* ============ FAQ SECTION ============ */
.faq {
    padding: 100px 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 60px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-question {
    background: linear-gradient(135deg, #F5F5F5 0%, #ffffff 100%);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.faq-toggle {
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    background: white;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px;
}

/* ============ FINAL CTA ============ */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #fdf1e9 0%, #ffffff 100%);
    color: var(--text-dark);
    text-align: center;
    border-top: 3px solid var(--primary);
}

.final-cta h2 {
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
}

.final-cta p {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: var(--text-light);
}

.app-stores {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}


/* ============ FOOTER ============ */
footer {
    background: #1c1d23;
    color: white;
    padding: 60px 0 30px;
    border-top: 2px solid #F07020;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9em;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}

/* .legal-page p (texte du CGU, couleur sombre pour la lisibilité) a la même
   spécificité que .footer-bottom et le contredit sur les <p> du footer une
   fois dans le corps de la page (texte sombre invisible sur fond sombre).
   Un sélecteur plus spécifique règle ça sans toucher au reste du footer. */
.legal-page footer p {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* footer { padding: 60px 0 30px } est pensé pour le footer riche
   d'index.html (grille de colonnes puis .footer-bottom, qui ajoute déjà son
   propre padding-top). Avec la ligne unique du footer CGU, ça laissait un
   espace visiblement plus grand au-dessus du texte qu'en dessous. */
.legal-page footer {
    padding: 30px 0;
}

/* ============ ANIMATIONS ============ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* ============ NAV ============ */
.btn-nav {
    margin: 0;
    padding: 10px 20px;
    font-size: 0.9em;
}

/* ============ PERSONALIZATION ============ */
.personalization-footnote {
    margin-top: 30px;
    font-style: italic;
    color: var(--text-light);
}

/* ============ POWER SECTION ============ */
.power-example-intro {
    margin-bottom: 30px;
    color: var(--text-light);
}

.power-example-caption {
    margin-top: 40px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* ============ FOOTER EXTRAS ============ */
.footer-tagline {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-brand {
    margin-top: 10px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    color: white;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-text a:hover {
    opacity: 0.8;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

.cookie-btn-accept {
    background: var(--primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--primary-dark);
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero-text {
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 20px;
    }

    .power-example {
        padding: 24px;
    }
}

@media (max-width: 968px) {
    .cookie-banner {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    body.nav-open .nav-links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(4px);
        z-index: 1005;
        justify-content: center;
        align-items: center;
        gap: 36px;
    }

    body.nav-open .nav-links a {
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--primary);
    }

    /* Le bouton Télécharger garde son fond orange + texte blanc dans le menu */
    body.nav-open .nav-links a.btn-primary {
        color: white;
    }

    body.nav-open .nav-burger {
        position: relative;
        z-index: 1010;
    }

    body.nav-open .nav-burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.nav-open .nav-burger span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    body.nav-open .nav-burger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .trust-badges,
    .cta-group {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-stat {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero {
        padding: 44px 0 36px;
    }

    .hero-visual {
        display: none;
    }

    .hero-logo-mobile {
        display: block;
        width: 80px;
        height: auto;
        margin: 0 auto 20px;
        border-radius: 18px;
    }

    .personalization-content {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2em;
    }
}

/* ============ PAGES EDITORIALES (SEO) ============ */
.prose {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.13em;
    line-height: 1.85;
    color: var(--text-dark);
}

.prose p {
    margin-bottom: 1.5em;
}

.prose .lead {
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.6;
    color: var(--primary-dark);
    margin-bottom: 1.6em;
}

.prose .kicker {
    display: block;
    font-size: 1.18em;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2.2em;
    margin-bottom: 0.4em;
}

.prose .pull {
    margin: 2.4em 0;
    padding: 24px 28px;
    border-left: 4px solid var(--accent);
    background: #F5F5F5;
    border-radius: 0 12px 12px 0;
    font-size: 1.18em;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.6;
}

.prose .signature {
    margin-top: 2.4em;
    font-style: italic;
    color: var(--text-light);
}

/* ============ FIL D'ARIANE (breadcrumb) ============ */
.breadcrumb {
    background: #F5F5F5;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 14px 0;
    margin: 0;
    font-size: 0.9em;
    color: var(--text-light);
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    color: var(--text-light);
    opacity: 0.6;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: var(--text-light);
}

/* ============ ILLUSTRATION DE PAGE ============ */
.page-illustration {
    display: block;
    max-width: 880px;
    width: 100%;
    height: auto;
    margin: 48px auto;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.15);
}

/* Boutons stores personnalisés (cohérents avec le style du site) */
.store-badges {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
    margin-bottom: 8px;
}

.hero .store-badges {
    margin-top: -20px;
    margin-bottom: 35px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    background: #1c1d23;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    padding: 10px 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.store-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.store-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    flex-shrink: 0;
}

.store-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.store-btn span small {
    font-size: 0.62rem;
    letter-spacing: 0.3px;
    opacity: 0.85;
    font-weight: 500;
}

.store-btn span strong {
    font-size: 1.05rem;
    font-weight: 700;
}
/* ============ LEGAL PAGES SPECIFIC STYLES ============ */

.document-meta {
    background: rgba(240, 112, 32, 0.08);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--primary);
}

.legal-page .document-meta p {
    margin: 8px 0;
    font-size: 0.95em;
    color: var(--text-dark);
}

.document-meta strong {
    color: var(--primary);
}

.toc-container {
    background: rgba(240, 112, 32, 0.05);
    border-left: 5px solid var(--primary);
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.legal-page .toc-container h2 {
    color: var(--primary);
    margin-top: 0;
    border: none;
    padding: 0;
    font-size: 1.5em;
    font-family: 'Outfit', sans-serif;
}

.legal-page .toc-container ul {
    list-style: none;
    margin: 20px 0 0 0;
    padding: 0;
}

.legal-page .toc-container li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.toc-container li::before {
    content: "→ ";
    color: var(--primary);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.toc-container a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.toc-container a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    padding-left: 5px;
}

/* ============ LEGAL SECTION HEADERS ============ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.legal-page h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.legal-page h2 {
    font-size: 2em;
    margin: 40px 0 20px 0;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary);
    padding: 10px 0;
}

.legal-page h3 {
    font-size: 1.4em;
    margin: 25px 0 15px 0;
    font-weight: 600;
    color: var(--text-dark);
}

.legal-page h4 {
    font-size: 1.2em;
    margin: 20px 0 12px 0;
    font-weight: 600;
    color: var(--text-dark);
}

.legal-page p {
    margin: 15px 0;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
}

/* ============ LEGAL SECTIONS ============ */
.legal-page section {
    padding: 20px;
    background: white;
}

.legal-page section:nth-child(even) {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
}

/* ============ LEGAL LISTS ============ */
.legal-page ul, .legal-page ol {
    margin: 20px 0 20px 30px;
    color: var(--text-dark);
}

.legal-page li {
    margin: 10px 0;
    line-height: 1.8;
}

/* ============ BLOCKQUOTES & NOTES ============ */
.note {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    color: var(--text-dark);
}

.note strong {
    color: var(--primary);
}

.warning-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid var(--warning);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    color: var(--text-dark);
}

.warning-box h4 {
    color: var(--warning);
    margin-top: 0;
}

/* ============ TABLES ============ */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-dark);
}

table tr:nth-child(even) {
    background: var(--light-bg);
}

table tr:hover {
    background: #f0fdf4;
}

/* ============ CODE & ARTICLES ============ */
code {
    background: #f0fdf4;
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.article {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    font-size: 0.95em;
    color: var(--text-dark);
}

/* ============ DEFINITIONS ============ */
.definition {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
}

.definition strong {
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.definition em {
    color: var(--text-light);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(240, 112, 32, 0.3);
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    font-weight: bold;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(240, 112, 32, 0.4);
}

/* ============ PRINT ============ */
@media print {
    body {
        background: white;
        color: #333;
    }

    a {
        color: #333;
    }

    .back-to-top {
        display: none !important;
    }

    header {
        position: static;
        margin-bottom: 20px;
    }

    .legal-page section {
        page-break-inside: avoid;
    }

    .toc-container {
        page-break-inside: avoid;
    }
}

/* ============ RESPONSIVE FOR LEGAL ============ */
@media (max-width: 768px) {
    .legal-page .container {
        padding: 0 15px;
    }

    .legal-page h1 {
        font-size: 1.7em;
    }

    .legal-page h2 {
        font-size: 1.4em;
    }

    .legal-page h3 {
        font-size: 1.1em;
    }

    .legal-page p {
        font-size: 0.85em;
    }

    table {
        font-size: 0.9em;
    }

    table th, table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .legal-page .container {
        padding: 0 12px;
    }

    .legal-page .document-meta p, .legal-page li {
        font-size: 0.8em;
    }

    .legal-page h1 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .legal-page h2 {
        font-size: 1.1em;
        margin: 25px 0 15px 0;
    }

    .legal-page .toc-container h2 {
        font-size: 1.1em;
    }

    .legal-page h3 {
        font-size: 0.9em;
        margin: 20px 0 10px 0;
    }

    .legal-page p {
        font-size: 0.8em;
        text-align: left;
    }

    .legal-page section {
        padding: 25px 0;
    }

    table {
        font-size: 0.85em;
    }

    table th, table td {
        padding: 8px 5px;
    }

    .toc-container {
        padding: 20px 15px;
    }

    .note, .warning-box, .article, .definition {
        padding: 12px;
    }
}

/* Tableau des plans */
table td:nth-child(2),
table td:nth-child(3) {
    text-align: center;
    font-weight: 600;
}

table td:nth-child(2) {
    color: var(--text-light);
}

table td:nth-child(3) {
    color: var(--primary);
}

table tbody tr:hover {
    background: rgba(240, 112, 32, 0.08);
}

.retraction-warning-container {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08), rgba(255, 152, 0, 0.04));
    border: 2px solid var(--warning);
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    max-width: 600px;
}

/* En-tête avertissement */
.warning-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 152, 0, 0.3);
}

.warning-icon {
    font-size: 28px;
    line-height: 1;
}

.warning-header h3 {
    margin: 0;
    color: var(--warning);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Points d'avertissement */
.warning-points {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.warning-points li {
    margin: 12px 0;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
    font-size: 14px;
}

.warning-points li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--warning);
    font-weight: bold;
    font-size: 18px;
}

.warning-points li strong {
    color: var(--primary);
    font-weight: 700;
}

/* Texte avertissement */
.warning-text {
    background: rgba(255, 152, 0, 0.06);
    padding: 12px 16px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.7;
}

.warning-text strong {
    color: var(--primary);
    font-weight: 700;
}

/* Checkbox rétractation */
.retraction-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    cursor: pointer;
    user-select: none;
}

.retraction-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.retraction-checkbox input[type="checkbox"]:checked+.checkbox-text {
    color: var(--primary);
    font-weight: 500;
}

/* Boutons d'action */
.warning-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 152, 0, 0.2);
}