/* ============================================
   MATHSQUEST - Landing Page
   Style Dashboard Violet/Or
============================================ */

/* VARIABLES */
:root {
    --primary-gold: #f4a935;
    --primary-purple: #6b4fa2;
    --dark-bg: #0d0a1a;
    --darker-bg: #070510;
    --card-bg: rgba(30, 20, 50, 0.85);
    --accent-cyan: #4fd1c5;
    --accent-pink: #ed64a6;
    --accent-green: #48bb78;
    --text-light: #e8e6f0;
    --text-muted: #9f9cb5;
    --gradient-gold: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-adventure: linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 30%, #1e3a5f 70%, #0d2137 100%);
    --glow-gold: 0 0 30px rgba(244, 169, 53, 0.4);
    --glow-purple: 0 0 30px rgba(107, 79, 162, 0.5);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --border-radius-2xl: 24px;
    --transition-fast: 0.3s ease;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================
   ANIMATIONS
============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

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

/* ============================================
   NAVIGATION
============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: linear-gradient(180deg, rgba(13, 10, 26, 0.95) 0%, rgba(13, 10, 26, 0) 100%);
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(13, 10, 26, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(244, 169, 53, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 50px; height: 50px;
    background: var(--gradient-gold);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--glow-gold);
    transition: transform var(--transition-fast);
}

.logo:hover .logo-icon { transform: rotate(10deg) scale(1.1); }

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--primary-gold);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-links a:hover::after { width: 80%; }
.nav-links a:hover { color: var(--primary-gold); }

.nav-cta { display: flex; gap: 1rem; }

.mobile-menu {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-gold);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu:hover {
    color: #ffd700;
    transform: scale(1.1);
}

/* ============================================
   BOUTONS
============================================ */
.btn {
    padding: 0.85rem 1.75rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-family: 'Quicksand', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.btn-primary {
    background: var(--gradient-gold);
    color: var(--dark-bg);
    box-shadow: var(--glow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(244, 169, 53, 0.5);
}

.btn-secondary {
    background: var(--gradient-purple);
    color: white;
    box-shadow: var(--glow-purple);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(107, 79, 162, 0.5);
}

.btn-large { padding: 1.1rem 2.5rem; font-size: 1.15rem; }

/* ============================================
   HERO
============================================ */
.hero {
    min-height: auto;
    background: var(--gradient-adventure);
    position: relative;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 3rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.hero-bg-elements {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.orb-1 { width: 600px; height: 600px; background: rgba(107, 79, 162, 0.3); top: -200px; right: -200px; }
.orb-2 { width: 400px; height: 400px; background: rgba(244, 169, 53, 0.2); bottom: -100px; left: -100px; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: rgba(79, 209, 197, 0.15); top: 50%; left: 50%; animation-delay: -2s; }

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content { animation: slideInLeft 1s ease-out; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(244, 169, 53, 0.15);
    border: 1px solid rgba(244, 169, 53, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero h1 .highlight,
.section-header h2 .highlight,
.parchemin-content h2 .highlight,
.parents-content h2 .highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-description h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-description li {
    padding: 0.4rem 0;
    font-size: 1.1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-description li::before {
    content: none;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }

.hero-stat-value {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.dashboard-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.dashboard-screenshot {
    width: 100%;
    max-width: 1230px;
    height: auto;
    border-radius: var(--border-radius-2xl);
    border: 4px solid rgba(244, 169, 53, 0.5);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(244, 169, 53, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-screenshot:hover {
    transform: scale(1.03);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(244, 169, 53, 0.35);
}

/* ============================================
   CHEVALIER COMPANION SECTION
============================================ */
.chevalier-section {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #1a0a2e 50%, var(--dark-bg) 100%);
}

.chevalier-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.chevalier-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.chevalier-video {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid rgba(244, 169, 53, 0.6);
    box-shadow:
        0 0 0 4px rgba(244, 169, 53, 0.3),
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(244, 169, 53, 0.4);
    transition: all 0.4s ease;
    animation: float 6s ease-in-out infinite;
}

.chevalier-video:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 0 4px rgba(244, 169, 53, 0.5),
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(244, 169, 53, 0.6);
    border-color: rgba(244, 169, 53, 0.8);
}

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

.chevalier-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chevalier-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(244, 169, 53, 0.1) 0%, rgba(244, 169, 53, 0.05) 100%);
    border: 1px solid rgba(244, 169, 53, 0.2);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.chevalier-features li:hover {
    transform: translateX(10px);
    border-color: rgba(244, 169, 53, 0.4);
    box-shadow: 0 10px 30px rgba(244, 169, 53, 0.2);
}

.chevalier-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 169, 53, 0.15);
    border-radius: 50%;
}

.chevalier-text {
    flex: 1;
}

.chevalier-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.chevalier-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .chevalier-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .chevalier-features li {
        text-align: left;
    }

    .chevalier-features li:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .chevalier-video {
        width: 300px;
        height: 300px;
    }

    .chevalier-features li {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

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

@media (max-width: 480px) {
    .chevalier-video {
        width: 250px;
        height: 250px;
    }
}

/* ============================================
   SECTIONS
============================================ */
.section { padding: 4rem 2rem; position: relative; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 2.5rem; }

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-header p { color: var(--text-muted); font-size: 1rem; line-height: 1.5; }

/* ============================================
   CRÉDIBILITÉ
============================================ */
.credibility { background: linear-gradient(180deg, var(--dark-bg) 0%, #1a0a2e 100%); }

.credibility-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.credibility-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.credibility-item:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 169, 53, 0.3);
}

.credibility-icon { font-size: 3rem; margin-bottom: 1rem; }

.credibility-item h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
}

.credibility-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================
   FONCTIONNALITÉS
============================================ */
.features { 
    background: linear-gradient(180deg, #1a0a2e 0%, var(--dark-bg) 100%); 
    position: relative;
}

.features .section-header {
    position: relative;
}

.modes-icons {
    position: absolute;
    top: 0;
    right: -100px;
    display: flex;
    gap: 0.5rem;
}

.mode-icon-small {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 2px solid rgba(244, 169, 53, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    cursor: default;
}

.mode-icon-small:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 25px rgba(244, 169, 53, 0.3);
}

@media (max-width: 1200px) {
    .modes-icons {
        position: static;
        justify-content: center;
        margin-top: 1.5rem;
    }
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.9) 0%, rgba(30, 20, 50, 0.95) 100%);
    border-radius: var(--border-radius-xl);
    padding: 1.75rem;
    border: 1px solid rgba(107, 79, 162, 0.3);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(244, 169, 53, 0.5), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(107, 79, 162, 0.3);
    border-color: rgba(244, 169, 53, 0.3);
}

.feature-icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 55px; 
    height: 55px;
    background: linear-gradient(135deg, rgba(107, 79, 162, 0.4) 0%, rgba(75, 55, 120, 0.6) 100%);
    border: 2px solid rgba(244, 169, 53, 0.4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 0 20px rgba(244, 169, 53, 0.2);
}

.feature-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-right: 70px;
}

.feature-card p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    line-height: 1.6;
    padding-right: 20px;
}

/* ============================================
   PARCHEMINS - ACCORDÉON
============================================ */
.parchemin-section { background: linear-gradient(180deg, var(--dark-bg) 0%, #1a0a2e 50%, var(--dark-bg) 100%); }

.parchemin-accordion {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.parchemin-toggle {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--card-bg);
    border: 2px solid rgba(244, 169, 53, 0.3);
    border-radius: var(--border-radius-lg);
    color: var(--text-light);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
}

.parchemin-toggle:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--glow-gold);
}

.parchemin-toggle.active {
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    border-bottom: none;
}

.toggle-icon { font-size: 1.5rem; }
.toggle-text { flex: 1; text-align: left; }
.toggle-arrow { 
    font-size: 1rem; 
    transition: transform 0.3s ease;
    color: var(--primary-gold);
}

.parchemin-content-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.parchemin-content-wrapper.open {
    max-height: 3000px;
}

/* Le parchemin complet */
.parchemin-full {
    background: 
        linear-gradient(to right, rgba(139, 109, 76, 0.3) 0%, transparent 3%, transparent 97%, rgba(139, 109, 76, 0.3) 100%),
        linear-gradient(to bottom, #f4e4bc 0%, #e8d4a8 20%, #f0e0b6 50%, #e5d0a0 80%, #dcc8a0 100%);
    padding: 2.5rem;
    border: 2px solid #8b6d4c;
    border-top: none;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: 
        inset 0 0 80px rgba(139, 109, 76, 0.15),
        0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    font-family: 'Crimson Text', Georgia, serif;
    color: #2c1810;
}

.parchemin-full::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
}

.titre-principal {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    text-align: center;
    color: #3d2914;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.sous-titre {
    text-align: center;
    font-style: italic;
    color: #6b5344;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.separateur {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    gap: 1rem;
}

.separateur::before,
.separateur::after {
    content: '';
    height: 2px;
    flex: 1;
    background: linear-gradient(90deg, transparent, #8b6d4c, transparent);
}

.separateur-icon { font-size: 1.5rem; }

.parchemin-full section { margin-bottom: 2rem; }

.parchemin-full section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #4a3728;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c9a86c;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.definition {
    background: linear-gradient(135deg, #fff9ed 0%, #f5ead5 100%);
    border-left: 4px solid #b8860b;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 1.6;
}

.definition strong { color: #8b4513; }

.propriete {
    background: linear-gradient(135deg, #fef9f3 0%, #f8efe0 100%);
    border: 1px solid #d4b896;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.06);
}

.propriete h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #5c4a32;
    margin-bottom: 0.75rem;
}

.propriete p { line-height: 1.6; color: #4a3728; }

.formule {
    background: #fffef8;
    border: 2px dashed #c9a86c;
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
    border-radius: 6px;
    margin: 0.75rem 0;
}

.formule-star {
    background: linear-gradient(135deg, #fffef8 0%, #fff8e7 100%);
    border: 3px solid #ffd700;
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.figure-triangle {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.figure-triangle svg { max-width: 250px; }

/* Exemples par niveau */
.exemple {
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.exemple h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.niveau-ecuyer {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
}
.niveau-ecuyer h3 { color: #2e7d32; }

.niveau-chevalier {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
}
.niveau-chevalier h3 { color: #e65100; }

.niveau-maitre {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border-left: 4px solid #e91e63;
}
.niveau-maitre h3 { color: #c2185b; }

.enonce {
    font-style: italic;
    color: #5c4a32;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
}

.solution {
    background: rgba(255,255,255,0.7);
    padding: 1rem;
    border-radius: 6px;
    line-height: 1.8;
}

/* Astuces */
.astuce-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(201, 168, 108, 0.15);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.astuce-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.footer-parchemin {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #c9a86c;
    font-family: 'Cinzel', serif;
    color: #6b5344;
    font-size: 1rem;
}

/* Features list sous le parchemin */
.parchemin-features-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.parchemin-features-list .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.parchemin-features-list .feature-item span:first-child {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .parchemin-full { padding: 1.5rem; }
    .titre-principal { font-size: 1.5rem; }
    .parchemin-toggle { font-size: 1rem; padding: 1rem; }
    .parchemin-features-list { grid-template-columns: 1fr; }
}

.parchemin-content h2,
.parents-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.parchemin-content p,
.parents-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.parchemin-features { margin-top: 1.5rem; }

.parchemin-features li,
.parents-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
}

.parchemin-features li span:first-child,
.parents-features li span:first-child { font-size: 1.3rem; flex-shrink: 0; }

/* ============================================
   PARENTS
============================================ */
.parents-section { background: linear-gradient(180deg, var(--dark-bg) 0%, #0d2137 100%); }

.parents-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.parents-content p { margin-bottom: 2rem; }
.parents-features li { align-items: flex-start; border-bottom: none; }
.parents-visual { display: flex; justify-content: center; }

.parents-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    border: 3px solid rgba(244, 169, 53, 0.3);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(244, 169, 53, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.parents-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(244, 169, 53, 0.25);
}

/* ============================================
   BREVET - Cadre doré premium
============================================ */
.brevet-section { background: linear-gradient(180deg, #0d2137 0%, var(--dark-bg) 100%); }

.brevet-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--border-radius-2xl);
    overflow: hidden;
    position: relative;
    /* Cadre doré ultra brillant */
    border: 5px solid #ffd700;
    box-shadow: 
        0 0 0 3px #b8860b,
        0 0 0 8px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.4),
        0 0 100px rgba(244, 169, 53, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.4);
}

.brevet-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(244, 169, 53, 0.15));
    padding: 2.5rem;
    text-align: center;
    border-bottom: 3px solid rgba(255, 215, 0, 0.4);
    position: relative;
}

.brevet-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    border-radius: 2px;
}

.brevet-header h2 { 
    font-family: 'Cinzel', serif; 
    font-size: 2rem; 
    margin-bottom: 0.5rem;
    color: #ffd700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.brevet-header p { color: var(--text-muted); }

.brevet-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.brevet-part { padding: 2.5rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.brevet-part:first-child { border-right: 1px solid rgba(255, 255, 255, 0.05); }

.part-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.part-1 .part-badge { background: rgba(244, 169, 53, 0.2); color: var(--primary-gold); }
.part-2 .part-badge { background: rgba(107, 79, 162, 0.2); color: #a78bfa; }

.brevet-part h3 { font-family: 'Cinzel', serif; font-size: 1.4rem; margin-bottom: 1rem; }

.part-stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }

.part-stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.brevet-part p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ============================================
   CTA
============================================ */
.cta-section {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #1a0a2e 50%, var(--dark-bg) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(244, 169, 53, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-content h2 { font-family: 'Cinzel', serif; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.cta-content h2 .highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-content > p { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 2.5rem; }
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.cta-note { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }

/* ============================================
   FOOTER
============================================ */
footer {
    background: var(--darker-bg);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content { max-width: 1200px; margin: 0 auto; text-align: center; }

.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.footer-links a { color: var(--text-muted); transition: var(--transition-fast); }
.footer-links a:hover { color: var(--primary-gold); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* ============================================
   RESPONSIVE - CORRECTIONS COMPLÈTES
============================================ */

/* Tablettes et desktops (< 1024px) */
@media (max-width: 1023px) {
    .hero-container, .parchemin-container, .parents-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content { order: 1; }
    .hero-visual { order: 2; }
    .hero-description { margin: 0 auto 2rem; }
    .hero-stats, .hero-buttons { justify-content: center; }
    .parchemin-visual { order: -1; }
    .parchemin-features li, .parents-features li { justify-content: center; }
    .brevet-parts { grid-template-columns: 1fr; }
    .brevet-part:first-child { border-right: none; }

    /* CORRECTION #2 & #3: Orbes réduites */
    .orb-1 {
        width: 400px !important;
        height: 400px !important;
    }
    .orb-2 {
        width: 300px !important;
        height: 300px !important;
    }
    .orb-3 {
        width: 250px !important;
        height: 250px !important;
    }

    /* CTA Orb réduite */
    .cta-orb {
        width: 500px !important;
        height: 500px !important;
    }

    /* Chevalier video adapté */
    .chevalier-video {
        width: 350px;
        height: 350px;
    }
}

/* Tablettes portrait et grands mobiles (< 768px) */
@media (max-width: 767px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu { display: block; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 10, 26, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(244, 169, 53, 0.3);
    }
    .hero { padding: 6rem 1rem 3rem; }
    .section { padding: 4rem 1rem; }
    .credibility-grid { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; gap: 1rem; }

    /* CORRECTION #2: Orbes mobile */
    .orb-1 {
        width: 250px !important;
        height: 250px !important;
        filter: blur(80px) !important; /* Performance */
    }
    .orb-2 {
        width: 200px !important;
        height: 200px !important;
        filter: blur(80px) !important;
    }
    .orb-3 {
        width: 150px !important;
        height: 150px !important;
        filter: blur(60px) !important;
    }

    /* CORRECTION #3: CTA Orb mobile */
    .cta-orb {
        width: 300px !important;
        height: 300px !important;
        filter: blur(80px) !important;
    }

    /* CORRECTION #1: Hero visual responsive */
    .hero-visual {
        min-height: 280px;
        height: auto;
    }

    .chevalier-video {
        width: 280px;
        height: 280px;
    }

    /* CORRECTION #6: Container padding */
    .container {
        padding: 0 1rem;
    }

    /* CORRECTION #7: Hero content responsive */
    .hero-content {
        max-width: 100%;
        padding: 0 1.5rem;
    }

    /* Feature cards stack */
    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* CORRECTION #8: Boutons empilés verticalement sur mobile */
    .hero-buttons,
    .cta-buttons {
        flex-direction: column !important;
        width: 100%;
        align-items: stretch;
    }

    .hero-buttons > *,
    .cta-buttons > * {
        width: 100% !important;
    }

    /* Triangle SVG réduit */
    .figure-triangle svg {
        max-width: 180px;
    }
}

/* Grands mobiles (< 600px) */
@media (max-width: 599px) {
    /* Hero plus compact */
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Orbes encore plus réduites */
    .orb-1 {
        width: 200px !important;
        height: 200px !important;
    }
    .orb-2 {
        width: 150px !important;
        height: 150px !important;
    }
    .orb-3 {
        width: 120px !important;
        height: 120px !important;
    }

    .cta-orb {
        width: 250px !important;
        height: 250px !important;
    }

    /* Chevalier video encore plus petit */
    .chevalier-video {
        width: 240px;
        height: 240px;
    }

    /* Stats hero stack vertical */
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    /* Parchemin features 1 colonne */
    .parchemin-features-list {
        grid-template-columns: 1fr;
    }

    /* Container padding réduit */
    .container {
        padding: 0 0.75rem;
    }
}

/* Petits mobiles (< 480px) */
@media (max-width: 479px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-large {
        width: 100%;
    }

    /* CORRECTION #5: Hero visual très petit mobile */
    .hero-visual {
        min-height: 250px;
    }

    .chevalier-video {
        width: 200px;
        height: 200px;
    }

    /* Orbes minimales */
    .orb-1 {
        width: 150px !important;
        height: 150px !important;
        filter: blur(60px) !important;
    }
    .orb-2 {
        width: 120px !important;
        height: 120px !important;
        filter: blur(50px) !important;
    }
    .orb-3 {
        width: 100px !important;
        height: 100px !important;
        filter: blur(40px) !important;
    }

    .cta-orb {
        width: 200px !important;
        height: 200px !important;
        filter: blur(60px) !important;
    }

    /* Section padding minimal */
    .section {
        padding: 3rem 0.75rem;
    }

    /* Feature cards padding */
    .feature-card {
        padding: 1.5rem 1rem;
    }
}

/* Très petits mobiles (< 375px - iPhone SE) */
@media (max-width: 374px) {
    .hero h1 {
        font-size: 1.35rem;
    }

    .chevalier-video {
        width: 180px;
        height: 180px;
    }

    /* Orbes très réduites pour performance */
    .orb-1, .orb-2, .orb-3, .cta-orb {
        display: none; /* Masquer sur très petits écrans pour performance */
    }

    /* Boutons plus compacts */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}
    @media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a2e;
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-links.open,
    .nav-cta.open {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
}


/* ============================================
   AJOUTS 2026 - NOUVELLES SECTIONS
============================================ */

/* ========== MÉDAILLON DASHBOARD ========== */
.dashboard-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
}

.medaillon-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.dashboard-medaillon {
    width: 340px;
    height: 450px;
    border-radius: 50% / 40%;
    overflow: hidden;
    border: 5px solid #d4af37;
    box-shadow: 
        0 0 0 10px rgba(212, 175, 55, 0.2),
        0 25px 70px rgba(0, 0, 0, 0.6),
        inset 0 0 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-medaillon:hover {
    transform: scale(1.03);
    box-shadow: 
        0 0 0 10px rgba(212, 175, 55, 0.3),
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(212, 175, 55, 0.3),
        inset 0 0 40px rgba(0, 0, 0, 0.3);
}

.dashboard-medaillon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50% / 40%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4) 0%, transparent 40%, transparent 60%, rgba(255, 215, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

.dashboard-medaillon .dashboard-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@media (max-width: 768px) {
    .dashboard-medaillon {
        width: 280px;
        height: 370px;
    }
}

/* Section Pourquoi MathsQuest */
.why-mathsquest {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(42, 42, 74, 0.95) 100%);
}

.why-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-block h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.why-block p {
    color: #b8b8d1;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: #e8e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.why-list li:last-child {
    border-bottom: none;
}

.why-list li span:first-child {
    color: #d4af37;
    font-weight: 600;
}

.why-conclusion {
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid #d4af37;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1.5rem;
}

.why-conclusion strong {
    color: #f0e6d2;
}

@media (max-width: 1024px) {
    .why-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .why-container {
        grid-template-columns: 1fr;
    }
    
    .why-block {
        padding: 1.5rem;
    }
    
    .why-block h3 {
        font-size: 1.2rem;
    }
}

/* ========== PARCHEMIN EXEMPLE ACCORDÉON ========== */
.parchemin-exemple-container {
    max-width: 800px;
    margin: 2.5rem auto 0;
}

.parchemin-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, rgba(201, 168, 108, 0.2) 0%, rgba(201, 168, 108, 0.1) 100%);
    border: 2px solid #c9a86c;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.parchemin-toggle:hover {
    background: linear-gradient(135deg, rgba(201, 168, 108, 0.3) 0%, rgba(201, 168, 108, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 108, 0.25);
}

.parchemin-toggle.active {
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.toggle-icon {
    font-size: 1.8rem;
}

.toggle-text {
    font-size: 1.15rem;
    color: #d4af37;
    font-weight: 600;
}

.toggle-arrow {
    font-size: 1rem;
    color: #d4af37;
    transition: transform 0.3s ease;
}

.parchemin-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.parchemin-exemple-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    border: 2px solid #c9a86c;
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(135deg, #f4e4bc 0%, #e8d4a8 50%, #f0e0b6 100%);
}

.parchemin-exemple-content.open {
    max-height: 5000px;
    overflow: visible;
}

.parchemin-apercu {
    padding: 2rem;
    color: #2c1810;
    font-family: 'Crimson Text', Georgia, serif;
}

.parchemin-titre {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    text-align: center;
    color: #3d2914;
    margin-bottom: 0.5rem;
}

.parchemin-sous-titre {
    text-align: center;
    font-style: italic;
    color: #6b5344;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.parchemin-section-bloc {
    margin-bottom: 1.5rem;
}

.parchemin-section-bloc h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: #4a3728;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #c9a86c;
}

.parchemin-definition {
    background: linear-gradient(135deg, #fff9ed 0%, #f5ead5 100%);
    border-left: 4px solid #b8860b;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.parchemin-definition strong {
    color: #8b4513;
}

.parchemin-formule {
    background: #fffef8;
    border: 2px dashed #c9a86c;
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
    border-radius: 6px;
}

.parchemin-exemples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.exemple-mini {
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.exemple-mini.niveau-ecuyer {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #66bb6a;
}

.exemple-mini.niveau-chevalier {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ffa726;
}

.exemple-mini.niveau-maitre {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border: 2px solid #ec407a;
}

.niveau-badge {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.niveau-ecuyer .niveau-badge { color: #2e7d32; }
.niveau-chevalier .niveau-badge { color: #e65100; }
.niveau-maitre .niveau-badge { color: #ad1457; }

.exemple-enonce {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
}

.exemple-solution {
    font-size: 0.95rem;
    color: #3d2914;
    line-height: 1.7;
    text-align: left;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
}

.exemple-solution strong {
    color: #1a5f1a;
    font-size: 1.05rem;
}

/* Exemples complets style parchemin */
.exemple-complet {
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.exemple-complet.niveau-ecuyer {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #66bb6a;
}

.exemple-complet.niveau-chevalier {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ffa726;
}

.exemple-complet.niveau-maitre {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border: 2px solid #ec407a;
}

.exemple-header {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.niveau-ecuyer .exemple-header { color: #2e7d32; }
.niveau-chevalier .exemple-header { color: #e65100; }
.niveau-maitre .exemple-header { color: #ad1457; }

.exemple-complet .exemple-enonce {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.exemple-complet .exemple-enonce::before {
    content: '📝 ';
}

.exemple-complet .exemple-solution {
    background: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    line-height: 2;
}

/* Formule star */
.parchemin-formule-star {
    background: linear-gradient(135deg, #fffef8 0%, #fff8e7 100%);
    border: 3px solid #ffd700;
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Astuces style parchemin */
.parchemin-apercu .astuce-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}

.parchemin-apercu .astuce-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.parchemin-apercu .astuce-texte {
    line-height: 1.5;
    color: #3d2914;
}

.parchemin-apercu .astuce-texte strong {
    color: #5c4a32;
}

/* Erreurs style parchemin */
.erreurs-bloc {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 2px solid #ef5350;
    border-radius: 10px;
    padding: 1rem;
}

.erreurs-bloc h4 {
    color: #c62828;
    border-bottom-color: #ef9a9a;
}

.erreurs-bloc .erreur-item {
    background: rgba(255, 255, 255, 0.6);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.erreurs-bloc .erreur-item:last-child {
    margin-bottom: 0;
}

.erreurs-bloc .erreur-item p {
    margin: 0.25rem 0;
}

.erreur-faux {
    color: #c62828;
    font-weight: 600;
}

.erreur-vrai {
    color: #2e7d32;
    font-weight: 600;
}

.parchemin-footer-apercu {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    border-radius: 10px;
    font-family: 'Cinzel', serif;
    color: #2c1810;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    border: 2px solid #b8860b;
}

.footer-highlight {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .parchemin-exemples-grid {
        grid-template-columns: 1fr;
    }
    
    .parchemin-apercu {
        padding: 1.25rem;
    }
    
    .parchemin-titre {
        font-size: 1.4rem;
    }
    
    .parchemin-formule {
        font-size: 0.95rem;
    }
}

/* ========== SECTION ROYAUME / DASHBOARD ========== */
.royaume-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(42, 42, 74, 0.98) 100%);
}

.royaume-container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.royaume-content {
    display: flex;
    flex-direction: column;
}

.royaume-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.royaume-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    color: #e8e8f0;
    font-size: 1.05rem;
    line-height: 1.5;
}

.royaume-features li:last-child {
    border-bottom: none;
}

.royaume-features li > span:first-child {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}

.royaume-features li strong {
    color: #d4af37;
    font-family: 'Cinzel', serif;
}

.royaume-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.royaume-screenshot {
    width: 100%;
    border-radius: 16px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(212, 175, 55, 0.4),
        0 0 50px rgba(212, 175, 55, 0.15);
}

.royaume-conclusion {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: #d4af37;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-left: 3px solid #d4af37;
    border-radius: 0 8px 8px 0;
}

@media (max-width: 1024px) {
    .royaume-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .royaume-visual {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .royaume-features li {
        font-size: 0.95rem;
        padding: 0.75rem 0;
    }
    
    .royaume-features li > span:first-child {
        font-size: 1.2rem;
        width: 30px;
    }
    
    .royaume-conclusion {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
}

/* ========== SECTION PARENTS - OVERRIDE ========== */
.parents-container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.parents-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.parents-screenshot {
    width: 100%;
    border-radius: 16px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(212, 175, 55, 0.4);
}

@media (max-width: 1024px) {
    .parents-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .parents-visual {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Hamburger menu mobile - style identique navbar.css */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #f4a935;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu:hover {
    color: #ffd700;
    transform: scale(1.1);
}

/* Boutons CTA dans le menu mobile - cachés sur desktop */
.nav-cta-mobile {
    display: none;
}

/* Bouton Parent - même forme que primary */
.btn-parent {
    background: linear-gradient(135deg, #8b7355 0%, #a08060 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.btn-parent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
}

/* Bouton Ghost - même forme que primary */
.nav-cta .btn-ghost {
    background: linear-gradient(135deg, #4a5568 0%, #5a6578 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.3);
}

.nav-cta .btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.4);
}

/* Nav CTA - une seule ligne */
.nav-cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    /* Cacher nav-cta desktop sur mobile */
    .nav-cta {
        display: none !important;
    }

    /* Afficher les boutons CTA dans le menu mobile */
    .nav-cta-mobile {
        display: block;
        margin-bottom: 0.5rem;
        padding: 0 !important;
        border-bottom: none !important;
    }

    .nav-cta-mobile .btn {
        width: 100%;
        display: block;
        text-align: center;
        padding: 1rem;
        border-radius: 10px;
    }

    .nav-cta-mobile .btn-primary {
        color: #000;
    }

    /* Séparateur après les boutons CTA */
    .nav-link-item:first-of-type {
        margin-top: 0.5rem;
        padding-top: 1rem !important;
        border-top: 1px solid rgba(212, 175, 55, 0.3);
    }

    /* Cacher les liens nav sur desktop, afficher sur mobile */
    .nav-link-item {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        border-bottom: 2px solid #d4af37;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-container {
        position: relative;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-links li:last-child:not(.nav-cta-mobile) {
        border-bottom: none;
    }

    /* Menu ouvert - container */
    .nav-mobile-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        padding-bottom: 1rem;
        z-index: 1000;
    }
}

/* ============================================
   TÉMOIGNAGES
============================================ */
.temoignages-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(42, 42, 74, 0.98) 100%);
}

.temoignages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.temoignage-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.temoignage-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.temoignage-stars {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.temoignage-text {
    color: #e8e8f0;
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.25rem;
}

.temoignage-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    color: #d4af37;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

.author-info {
    color: #888;
    font-size: 0.9rem;
}

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

/* ============================================
   TARIFS
============================================ */
.tarifs-section {
    background: linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.tarif-card {
    background: rgba(30, 30, 60, 0.8);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.tarif-card.tarif-gratuit {
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.tarif-card.tarif-premium {
    border: 2px solid #d4af37;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
}

.tarif-card.tarif-brevet {
    border: 3px solid #22c55e;
    box-shadow: 0 0 50px rgba(34, 197, 94, 0.4), inset 0 0 30px rgba(34, 197, 94, 0.1);
    transform: scale(1.03);
    position: relative;
    background: linear-gradient(165deg, rgba(34, 197, 94, 0.15) 0%, rgba(30, 30, 60, 0.9) 30%, rgba(30, 30, 60, 0.95) 100%);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 50px rgba(34, 197, 94, 0.4), inset 0 0 30px rgba(34, 197, 94, 0.1); }
    50% { box-shadow: 0 0 70px rgba(34, 197, 94, 0.6), inset 0 0 40px rgba(34, 197, 94, 0.15); }
}

.tarif-card.tarif-brevet:hover {
    transform: scale(1.06) translateY(-5px);
    box-shadow: 0 0 80px rgba(34, 197, 94, 0.5), inset 0 0 40px rgba(34, 197, 94, 0.15);
    animation: none;
}

.tarif-brevet .tarif-badge {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.9rem;
}

.tarif-brevet .price-amount {
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

.tarif-savings {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
    color: #1a1a2e;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
    animation: bounce-badge 1s ease-in-out infinite;
}

@keyframes bounce-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tarif-card:hover {
    transform: translateY(-5px);
}

.tarif-card.tarif-premium:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
}

.tarif-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tarif-gratuit .tarif-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.tarif-premium .tarif-badge {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a2e;
}

.tarif-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.tarif-price {
    margin-bottom: 1.5rem;
}

.price-amount {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #d4af37;
}

.tarif-gratuit .price-amount {
    color: #fff;
}

.price-period {
    display: block;
    color: #888;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.tarif-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.tarif-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: #e8e8f0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tarif-features li:last-child {
    border-bottom: none;
}

.tarif-features li span:first-child {
    color: #4ade80;
    font-weight: 600;
}

.tarif-features li .muted {
    color: #666;
}

.tarif-features li strong {
    color: #d4af37;
}

.btn-tarif {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.tarif-note {
    margin-top: 1rem;
    color: #888;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .tarifs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tarif-card.tarif-brevet {
        transform: scale(1);
        order: -1;
    }

    .tarif-card.tarif-premium {
        transform: none;
        order: -1;
    }
    
    .tarif-card.tarif-premium:hover {
        transform: translateY(-5px);
    }
}

/* ============================================
   FOOTER LEGAL LINKS
============================================ */
.footer-links-legal {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    list-style: none;
    padding: 0;
}

.footer-links-legal a {
    color: #888;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links-legal a:hover {
    color: #d4af37;
}

/* ============================================
   FAQ
============================================ */
.faq-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(42, 42, 74, 0.98) 100%);
}

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

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #e8e8f0;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.1);
}

.faq-question.active {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
}

.faq-icon {
    font-size: 1.5rem;
    color: #d4af37;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
    max-height: 300px;
}

.faq-answer p {
    padding: 1.25rem 1.5rem;
    color: #b8b8d1;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}