/* ============================================
   VERSANT AVALANCHE - Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-body: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

a:hover {
    color: var(--primary-dark);
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border-color: white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--secondary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    font-size: 28px;
}

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 50%, var(--primary) 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--secondary);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-white);
}

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

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CHALLENGE SECTION
   ============================================ */
.challenge {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.challenge-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.challenge-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.challenge-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.challenge-card h3 {
    color: var(--secondary);
    margin-bottom: 12px;
}

.challenge-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.challenge-levels {
    background: var(--secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: 40px;
}

.challenge-levels h3 {
    text-align: center;
    margin-bottom: 30px;
}

.levels-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.level-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
}

.level-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.level-1 { background: #4f8464; color: white; }
.level-2 { background: #47758f; color: white; }
.level-3 { background: #b47d31; color: white; }
.level-4 { background: #9c4943; color: white; }

.level-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.level-desc {
    font-size: 0.85rem;
    opacity: 0.8;
}

.challenge-cta {
    text-align: center;
}

/* ============================================
   DVA TRAINING SECTIONS
   ============================================ */
.training {
    background: var(--bg-white);
}
.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 36px 0 28px;
}
.training-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(20, 45, 58, .1);
    border-radius: var(--radius-lg);
    background: #f5f1e9;
    box-shadow: var(--shadow);
}
.training-card h3 { color: var(--secondary); margin: 16px 0 10px; }
.training-card p { color: var(--text-secondary); }
.training-number { color: var(--accent); font-weight: 800; letter-spacing: .1em; }
.training-note {
    max-width: 900px;
    margin: 28px auto 0;
    padding: 22px 26px;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    background: #f5f1e9;
    color: var(--text-secondary);
}
.training-note strong { display: block; margin-bottom: 7px; color: var(--secondary); }
.training-note p { margin: 0; }
.training-note-dark { background: rgba(255,255,255,.1); color: rgba(255,255,255,.86); border-left-color: var(--accent); }
.training-note-dark strong { color: white; }
.video-section { background: #edf0ec; }
.video-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 50px; }
.instagram-card { min-height: 280px; display: grid; place-items: center; padding: 12px; border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-lg); }
.instagram-media { width: min(100%, 540px) !important; min-width: 0 !important; margin: 0 auto !important; }
.checkpoint-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.checkpoint-grid > div { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.1); }
.checkpoint-grid h3 { margin-bottom: 8px; color: white; }
.checkpoint-grid p, .challenge-footnote { color: rgba(255,255,255,.8); }
.challenge-footnote { margin: 18px 0 30px; text-align: center; }
.challenge .challenge-grid { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   INFO SECTION
   ============================================ */
.info {
    background: var(--primary);
    color: white;
}

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

.info-card {
    text-align: center;
    padding: 20px;
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 600;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--secondary);
}

.contact-item a {
    color: var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ============================================
   RGPD SECTION
   ============================================ */
.rgpd {
    background: var(--bg-light);
    padding: 60px 0;
}

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

.rgpd-content h3 {
    margin-bottom: 20px;
    color: var(--secondary);
}

.rgpd-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.rgpd-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    color: white;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: white;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-content h2 {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.modal-body {
    padding: 24px;
}

.modal-body h3 {
    margin: 24px 0 12px;
    color: var(--secondary);
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 3000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .challenge-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .challenge-card {
        min-height: 0 !important;
        padding: 32px 24px !important;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-cta {
        flex-direction: column;
    }

    /* Challenge section — cartes en colonne unique, plus compactes */
    .challenge-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 40px !important;
    }

    .challenge-card {
        min-height: 0 !important;
        padding: 24px 20px !important;
        text-align: left !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 16px !important;
        border-radius: 18px !important;
    }

    .challenge-card .challenge-icon {
        flex-shrink: 0 !important;
        width: 56px !important;
        height: 56px !important;
        font-size: 26px !important;
        margin-bottom: 0 !important;
        border-radius: 16px !important;
    }

    .challenge-card h3 {
        margin-top: 0 !important;
        font-size: 1.15rem !important;
        margin-bottom: 6px !important;
    }

    .challenge-card p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin: 0 !important;
    }

    /* Card body wrapper for proper flex layout */
    .challenge-card > div:not(.challenge-icon),
    .challenge-card > h3,
    .challenge-card > p {
        /* keep as block inside the flex container */
    }

    /* Section title/desc plus petits */
    .challenge .section-title {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
    }

    .challenge .section-desc {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
    }

    .checkpoint-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .checkpoint-grid > div {
        padding: 18px !important;
    }

    .checkpoint-grid h3 {
        font-size: 1.05rem !important;
    }

    .challenge-footnote {
        font-size: 0.9rem !important;
        text-align: left !important;
    }

    .challenge-cta {
        margin-top: 28px !important;
    }

    .challenge-cta .btn {
        width: 100% !important;
    }

    .training-note {
        padding: 18px !important;
        font-size: 0.92rem !important;
    }

    .training-note p {
        font-size: 0.9rem !important;
    }

    .levels-list {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .rgpd-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================
   CHALLENGE INSCRIPTION PAGE
   ============================================ */
.inscription-page {
    min-height: 100vh;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
}

.inscription-container {
    max-width: 700px;
    margin: 0 auto;
}

.inscription-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.inscription-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.inscription-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.inscription-result {
    display: none;
    text-align: center;
    padding: 40px;
}

.inscription-result.show {
    display: block;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-zone {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.result-zone.zone-1 { background: #22c55e; }
.result-zone.zone-2 { background: #3b82f6; }
.result-zone.zone-3 { background: #f59e0b; }
.result-zone.zone-4 { background: #ef4444; }
.result-zone.waitlist { background: var(--text-secondary); }

.result-time {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 16px;
}

.result-details {
    color: var(--text-secondary);
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--primary);
}

/* ============================================
   INLINE EDITING STYLES
   ============================================ */
[data-editable] {
    cursor: text;
    transition: var(--transition);
}

[data-editable]:hover {
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
}

[data-editable].editing {
    outline: 2px solid var(--primary);
    background: rgba(37, 99, 235, 0.05);
    border-radius: 4px;
}

.edit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary);
    padding: 12px 20px;
    display: none;
    align-items: center;
    gap: 16px;
    z-index: 1500;
    box-shadow: var(--shadow-lg);
}

.edit-overlay.active {
    display: flex;
}

.edit-overlay input,
.edit-overlay textarea,
.edit-overlay select {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
}

.edit-overlay button {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit-save {
    background: var(--success);
    color: white;
}

.btn-edit-cancel {
    background: var(--danger);
    color: white;
}

/* ============================================
   ALPINE REDESIGN 2026 — PUBLIC WEBSITE
   Keeps the original editable DOM/API contracts intact.
   ============================================ */
:root {
    --primary: #c65f3a;
    --primary-dark: #984127;
    --secondary: #102a2e;
    --accent: #d8b56a;
    --bg-light: #f1f0e9;
    --bg-white: #fbfaf6;
    --text-primary: #183236;
    --text-secondary: #5d7072;
    --text-light: #879698;
    --border: rgba(24, 50, 54, .14);
    --shadow: 0 12px 35px rgba(16, 42, 46, .08);
    --shadow-md: 0 18px 45px rgba(16, 42, 46, .13);
    --shadow-lg: 0 28px 80px rgba(16, 42, 46, .18);
    --radius: 14px;
    --radius-lg: 28px;
    --font-body: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

body {
    background: var(--bg-light);
    overflow-x: hidden;
}

.container { max-width: 1240px; padding-inline: clamp(20px, 4vw, 56px); }

.header {
    top: 18px;
    left: 50%;
    right: auto;
    width: min(1180px, calc(100% - 36px));
    transform: translateX(-50%);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    background: rgba(7,24,32,.78);
    color: white;
    box-shadow: 0 12px 40px rgba(0,0,0,.16);
}
.header.scrolled { background: rgba(7,24,32,.96); }
.nav { min-height: 70px; padding: 10px 22px; }
.logo, .nav-link { color: white; }
.logo { font-size: 17px; letter-spacing: -.03em; }
.logo-icon {
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 13px; background: var(--primary); font-size: 21px;
    transform: rotate(-4deg);
}
.nav-menu { gap: 12px; }
.nav-link { padding: 10px 14px; opacity: .76; font-size: 14px; }
.nav-link:hover, .nav-link.active { opacity: 1; color: white; }
.nav-link::after { display: none; }
.nav-menu .btn { padding: 12px 20px; border-radius: 12px; }

.hero {
    min-height: 94vh;
    justify-content: flex-start;
    padding: 180px 0 110px;
    isolation: isolate;
}
.hero-bg {
    background:
      linear-gradient(90deg, rgba(8,29,33,.96) 0%, rgba(8,29,33,.78) 47%, rgba(8,29,33,.24) 100%),
      linear-gradient(145deg, #102e34 0%, #3c6266 54%, #a7bcb7 100%);
}
.hero-bg::before {
    inset: auto -8% -1px 38%; height: 75%; opacity: 1;
    background: linear-gradient(145deg, transparent 49%, rgba(235,247,245,.96) 50%) 0 100%/52% 100% no-repeat,
                linear-gradient(215deg, transparent 49%, #d4e9e9 50%) 100% 100%/64% 85% no-repeat;
    clip-path: polygon(0 100%, 16% 58%, 29% 75%, 50% 18%, 66% 62%, 78% 42%, 100% 100%);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0; opacity: .24;
    background-image: radial-gradient(circle at 72% 22%, white 0 1px, transparent 1.5px);
    background-size: 38px 38px;
}
.hero .container { width: 100%; }
.hero-content { max-width: 760px; text-align: left; position: relative; z-index: 2; }
.hero-content::before {
    content: 'ASSOCIATION • SNOWBOARD • BELLEDONNE';
    display: inline-flex; margin-bottom: 28px; padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
    color: var(--accent); font: 700 11px/1 var(--font-heading); letter-spacing: .16em;
}
.hero-title {
    max-width: 720px; margin-bottom: 26px;
    font-size: clamp(3.4rem, 8vw, 7rem); line-height: .88;
    letter-spacing: -.075em; text-shadow: none;
}
.hero-subtitle { max-width: 620px; color: rgba(255,255,255,.78); font-size: clamp(1rem, 2vw, 1.22rem); }
.hero-cta { justify-content: flex-start; margin-top: 38px; }
.btn { border-radius: 13px; letter-spacing: .04em; }
.btn-primary { box-shadow: 0 10px 30px rgba(198,95,58,.22); }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-outline { border-color: rgba(255,255,255,.5); }
.hero-scroll { left: auto; right: 4vw; color: white; opacity: .7; }

.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-header { max-width: 760px; margin: 0 auto 58px; }
.section-title { font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -.055em; color: var(--secondary); }
.section-desc { max-width: 620px; margin-inline: auto; color: var(--text-secondary); font-size: 18px; }

.about { background: var(--bg-white); position: relative; }
.about::before {
    content: 'VA'; position: absolute; right: 3vw; top: 45px;
    color: rgba(7,24,32,.035); font: 800 clamp(8rem, 22vw, 20rem)/1 var(--font-heading);
    letter-spacing: -.12em; pointer-events: none;
}
.about-grid { gap: clamp(48px, 8vw, 110px); align-items: end; }
.about-content { font-size: 19px; line-height: 1.85; }
.about-content p:first-child { color: var(--secondary); font-size: 24px; line-height: 1.55; font-weight: 600; }
.about-stats { gap: 12px; }
.stat-card {
    min-height: 170px; padding: 28px 18px; border: 1px solid var(--border);
    border-radius: 22px; background: transparent; box-shadow: none;
}
.stat-card:nth-child(2) { background: var(--secondary); color: white; transform: translateY(-18px); }
.stat-card:nth-child(2) .stat-number, .stat-card:nth-child(2) .stat-label { color: white; }
.stat-number { color: var(--primary); font-size: clamp(2.4rem, 4vw, 3.8rem); letter-spacing: -.07em; }

.challenge { background: var(--secondary); color: white; position: relative; overflow: hidden; }
.challenge::before {
    content: ''; position: absolute; inset: 0; opacity: .35;
    background: radial-gradient(circle at 15% 10%, rgba(216,181,106,.2), transparent 24%),
                linear-gradient(125deg, transparent 60%, rgba(255,255,255,.04) 60%);
}
.challenge .container { position: relative; }
.challenge .section-title, .challenge .section-desc { color: white; }
.challenge .section-desc { opacity: .65; }
.challenge-grid { gap: 18px; }
.challenge-card {
    min-height: 360px; padding: 38px 32px; border: 1px solid rgba(255,255,255,.12);
    border-radius: 26px; background: rgba(255,255,255,.055); box-shadow: none;
    backdrop-filter: blur(8px);
}
.challenge-card:hover { transform: translateY(-9px); background: rgba(255,255,255,.1); border-color: rgba(216,181,106,.48); }
.challenge-card h3 { color: white; font-size: 25px; margin-top: 42px; }
.challenge-card p { color: rgba(255,255,255,.62); }
.challenge-icon { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 20px; background: var(--accent); font-size: 32px; }
.challenge-levels { margin-top: 70px; padding: 38px; border: 1px solid rgba(255,255,255,.12); border-radius: 26px; background: rgba(255,255,255,.04); }
.challenge-levels h3 { color: white; }
.level-item { border-color: rgba(255,255,255,.1); }
.level-name { color: white; }
.level-desc { color: rgba(255,255,255,.55); }
.challenge-cta { margin-top: 38px; }

.info { padding: 42px 0; background: var(--primary); }
.info-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
.info-card { padding: 30px; background: transparent; box-shadow: none; border-right: 1px solid rgba(255,255,255,.25); border-radius: 0; }
.info-card:last-child { border-right: 0; }
.info-card h3 { color: rgba(255,255,255,.7); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.info-value { color: white; font: 700 18px/1.35 var(--font-heading); }

.contact { background: var(--bg-light); }
.contact-grid { gap: clamp(40px, 8vw, 100px); align-items: stretch; }
.contact-info { padding: 45px; border-radius: 28px; background: var(--secondary); color: white; }
.contact-item { padding: 24px 0; border-color: rgba(255,255,255,.12); }
.contact-item strong { color: var(--accent); }
.contact-item a, .contact-item span { color: rgba(255,255,255,.72); }
.contact-icon { display: grid; place-items: center; min-width: 50px; height: 50px; border-radius: 15px; background: rgba(255,255,255,.08); }
.contact-form { padding: 45px; border: 1px solid var(--border); border-radius: 28px; background: var(--bg-white); box-shadow: var(--shadow); }
.form-group input, .form-group textarea {
    padding: 15px 17px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-light);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(198,95,58,.1); }

.rgpd { padding: 58px 0; background: #e5e4dc; }
.rgpd-content { max-width: 900px; }
.footer { padding-top: 72px; background: #041218; }
.footer-content { padding-bottom: 52px; }
.footer .logo-text { color: white; }
.footer-bottom { border-color: rgba(255,255,255,.1); }

.modal { backdrop-filter: blur(10px); }
.modal-content { border-radius: 26px; box-shadow: var(--shadow-lg); }
.toast { border-radius: 14px; }

@media (max-width: 900px) {
    .header { top: 10px; width: calc(100% - 20px); }
    .nav-toggle { display: flex; }
    .nav-toggle span { background: white; }
    .nav-menu { top: calc(100% + 9px); left: 0; right: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #071820; box-shadow: var(--shadow-lg); }
    .nav-menu.active { display: flex; }
    .hero { min-height: 850px; padding-top: 150px; }
    .hero-bg::before { left: 15%; }
    .hero-scroll { display: none; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .info-card:nth-child(2) { border-right: 0; }
    .info-card:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.25); }
}

@media (max-width: 640px) {
    .logo-text { font-size: 15px; }
    .hero { min-height: 760px; align-items: flex-start; padding-top: 160px; }
    .hero-title { font-size: clamp(3.2rem, 17vw, 5rem); }
    .hero-content::before { font-size: 9px; letter-spacing: .1em; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .about-grid { gap: 45px; }
    .about-stats { grid-template-columns: 1fr; }
    .stat-card:nth-child(2) { transform: none; }
    .challenge-card { min-height: 290px; }
    .challenge-levels { padding: 25px 20px; }
    .level-item { grid-template-columns: 88px 1fr; }
    .level-desc { grid-column: 2; }
    .info-grid { grid-template-columns: 1fr; }
    .info-card { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); }
    .contact-info, .contact-form { padding: 28px 22px; }
    .footer-content { gap: 32px; }
}

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

/* ============================================
   MOBILE FINAL — source prioritaire
   ============================================ */
html { overflow-x: clip; }
body.menu-open { overflow: hidden; touch-action: none; }

@media (max-width: 900px) {
    .container {
        width: 100%;
        max-width: none;
        padding-inline: max(18px, env(safe-area-inset-left));
    }

    .header {
        top: max(8px, env(safe-area-inset-top));
        width: calc(100% - 20px);
        border-radius: 17px;
    }
    .nav { min-height: 58px; padding: 7px 10px; }
    .logo { min-width: 0; gap: 8px; font-size: 15px; }
    .logo-icon { width: 38px; height: 38px; flex: 0 0 38px; font-size: 19px; }
    .logo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .nav-toggle {
        position: relative;
        z-index: 2;
        display: flex;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        padding: 10px;
        border-radius: 11px;
        background: rgba(255,255,255,.09);
    }
    .nav-toggle span { position: absolute; width: 22px; height: 2px; background: white; }
    .nav-toggle span:nth-child(1) { transform: translateY(-7px); }
    .nav-toggle span:nth-child(3) { transform: translateY(7px); }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg); }

    .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        display: none;
        align-items: stretch;
        gap: 4px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        padding: 12px;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 17px;
        background: #102a35;
        box-shadow: 0 22px 60px rgba(0,0,0,.3);
    }
    .nav-menu.active { display: flex; }
    .nav-menu li, .nav-menu a { width: 100%; }
    .nav-link, .nav-menu .btn { min-height: 46px; justify-content: flex-start; padding: 12px 14px; }

    .hero {
        min-height: min(760px, 100svh);
        padding: 138px 0 76px;
    }
    .hero-bg::before { left: 0; right: -30%; height: 55%; opacity: .72; }
    .hero-content::before { margin-bottom: 20px; white-space: normal; line-height: 1.4; }
    .hero-title { max-width: 100%; font-size: clamp(2.7rem, 14vw, 4.7rem); line-height: .95; overflow-wrap: anywhere; }
    .hero-subtitle { font-size: 1rem; line-height: 1.65; }
    .hero-cta { width: 100%; margin-top: 28px; }

    .section { padding: 68px 0; }
    .section-header { margin-bottom: 34px; text-align: left; }
    .section-title { font-size: clamp(2rem, 10vw, 3rem); line-height: 1.05; overflow-wrap: anywhere; }
    .section-desc { margin-left: 0; font-size: 1rem; }

    .about-grid, .training-grid, .video-layout, .contact-grid { grid-template-columns: 1fr; gap: 26px; }
    .about-content, .about-content p:first-child { font-size: 1rem; line-height: 1.7; }
    .about-stats { grid-template-columns: 1fr; gap: 12px; }
    .stat-card { min-height: 0; padding: 22px 16px; }
    .stat-card:nth-child(2) { transform: none; }

    .training-grid { margin-top: 28px; }
    .training-card { padding: 24px 20px; }
    .training-note { padding: 20px; }
    .video-layout { align-items: stretch; }
    .instagram-card { width: 100%; min-height: 180px; padding: 8px; overflow: hidden; }
    .instagram-media { max-width: 100% !important; }

    .challenge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .challenge-card { min-width: 0; min-height: 0; padding: 24px 20px; }
    .challenge-card:hover, .challenge-card:nth-child(3) { transform: none; }
    .challenge-card h3 { margin-top: 0; overflow-wrap: anywhere; }
    .checkpoint-grid { grid-template-columns: 1fr; }

    .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .info-card { min-width: 0; padding: 22px 14px; }
    .info-value { font-size: 1rem; overflow-wrap: anywhere; }

    .contact-info, .contact-form { padding: 26px 20px; }
    .contact-item { gap: 14px; }
    .contact-item > div { min-width: 0; }
    .contact-item span, .contact-item a { overflow-wrap: anywhere; }
    input, select, textarea, .form-group input, .form-group select, .form-group textarea { font-size: 16px; }

    .footer-content { flex-direction: column; gap: 28px; }
    .footer-links { flex-direction: column; gap: 12px; }
    .rgpd-content { text-align: left; }
    .rgpd-links { align-items: flex-start; }

    .modal { padding: 12px; }
    .modal-content { max-height: calc(100svh - 24px); border-radius: 18px; }
    .modal-content h2, .modal-body { padding: 20px; }
    .toast { left: 14px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); text-align: center; }

    .inscription-page { padding: 108px 16px 48px; }
    .inscription-container { width: 100%; }
    .inscription-header { margin-bottom: 24px; }
    .inscription-header h1 { font-size: clamp(1.8rem, 9vw, 2.5rem); }
    .inscription-card { padding: 26px 20px; border-radius: 20px; }
    .inscription-result { padding: 24px 4px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .checkbox-label span { line-height: 1.5; }
}

@media (max-width: 560px) {
    .container { padding-inline: max(16px, env(safe-area-inset-left)); }
    .header { width: calc(100% - 16px); }
    .hero { min-height: 690px; padding-top: 126px; }
    .hero-content::before { content: 'ASSOCIATION • AVALANCHE • CONTAMINES-MONTJOIE'; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; min-height: 52px; }
    .challenge-grid, .info-grid { grid-template-columns: 1fr; }
    .challenge-card { opacity: 1 !important; }
    .challenge-card:nth-child(3)::before { display: none; }
    .btn-lg { padding: 14px 18px; font-size: 14px; }
    .contact-item { align-items: flex-start; }
    .rgpd-links { flex-direction: column; gap: 10px; }
    .footer { padding-top: 52px; }
}

@media (max-width: 390px) {
    .logo-text { max-width: 155px; font-size: 13px; }
    .hero-title { font-size: 2.6rem; }
    .section-title { font-size: 1.9rem; }
    .registration-page .header .logo-icon { display: none; }
    .registration-page .header .btn { padding: 9px 11px; font-size: 11px; }
}

/* ============================================
   VERSANT AVALANCHE — finition éditoriale
   ============================================ */
:root {
    --primary: #c96f4b;
    --primary-dark: #a85136;
    --accent: #d8a35d;
    --navy: #102a35;
    --ink: #19343d;
    --cream: #f6f3ed;
}

body {
    background: var(--cream);
    color: var(--ink);
}

.header {
    width: min(1180px, calc(100% - 40px));
    background: rgba(16, 42, 53, .94);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 16px 45px rgba(16,42,53,.18);
    backdrop-filter: blur(16px);
}

.logo-text { letter-spacing: .015em; }
.logo-icon { filter: saturate(.7); }
.nav-link { color: rgba(255,255,255,.78); }
.nav-link:hover, .nav-link.active { color: #fff; }

.hero {
    min-height: 740px;
    background: linear-gradient(135deg, #0e2935 0%, #1c4852 58%, #6e5942 100%);
}
.hero-bg { opacity: .62; }
.hero-content { max-width: 780px; }
.hero-title {
    max-width: 780px;
    font-size: clamp(3.5rem, 8vw, 7.2rem);
    line-height: .96;
    letter-spacing: -.07em;
    text-wrap: balance;
}
.hero-title::after { background: var(--primary); }
.hero-subtitle { max-width: 650px; color: rgba(255,255,255,.82); font-size: 1.12rem; }
.hero-cta { margin-top: 34px; }

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-header { max-width: 790px; margin-bottom: 52px; }
.eyebrow { color: var(--primary-dark); letter-spacing: .18em; }
.section-title { color: var(--navy); letter-spacing: -.045em; }
.section-desc { color: #5d6d70; }

.about { background: #fff; }
.about-content p { color: #52666a; font-size: 1.08rem; line-height: 1.85; }
.stat-card, .challenge-card, .info-card, .instagram-card, .training-note {
    border-color: rgba(16,42,53,.1);
    box-shadow: 0 18px 45px rgba(16,42,53,.07);
}
.stat-card { background: #f8f5ef; }
.stat-number { color: var(--primary); }

.training { background: #eef2ef; }
.training-card { background: #fff; border: 1px solid rgba(16,42,53,.08); border-radius: 22px; box-shadow: 0 16px 35px rgba(16,42,53,.07); }
.training-number { color: var(--primary); }
.training-note { background: #fffaf3; }

.video-section { background: #fff; }
.instagram-card { background: #f8f5ef; border-radius: 24px; padding: 18px; }
.challenge { background: #e8eeeb; }
.challenge-card { background: rgba(255,255,255,.8); border-radius: 24px; }
.challenge-card:hover { border-color: rgba(201,111,75,.5); box-shadow: 0 22px 42px rgba(16,42,53,.12); }
.checkpoint-grid > div { background: var(--navy); border-radius: 20px; }

.info { background: var(--navy); }
.info-card { background: transparent; }
.info-value { color: #fff; }
.contact { background: #fff; }
.contact-info { background: var(--navy); border-radius: 24px; }
.contact-form { border: 1px solid rgba(16,42,53,.1); border-radius: 24px; box-shadow: 0 18px 45px rgba(16,42,53,.07); }
input, select, textarea { border-color: #d6dfdc; background: #fbfcfa; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(201,111,75,.13); }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { border-color: rgba(255,255,255,.48); }
.rgpd { background: #f1eee7; }
.footer { background: #0b2029; }

@media (max-width: 640px) {
    .header { width: calc(100% - 24px); }
    .hero-title { letter-spacing: -.055em; }
    .section-header { margin-bottom: 34px; }
}

/* ============================================
   PARC DVA — VISUAL REFRESH
   ============================================ */
.challenge {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(255,255,255,.9), transparent 32%),
        linear-gradient(145deg, #f8faf9 0%, #edf3f4 52%, #e8eef2 100%);
}
.challenge::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -150px;
    top: -180px;
    border-radius: 50%;
    background: rgba(201,111,75,.09);
    filter: blur(2px);
}
.challenge .container { position: relative; z-index: 1; }
.challenge .section-header { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.challenge .section-title { color: #16333e; font-size: clamp(2.25rem, 5vw, 4.4rem); letter-spacing: -.06em; }
.challenge .section-desc { max-width: 640px; margin: 18px auto 0; color: #66777c; font-size: 1.08rem; }
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.challenge-card {
    position: relative;
    min-height: 268px;
    display: flex;
    flex-direction: column;
    padding: 26px 22px 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.85);
    background: rgba(255,255,255,.63);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(31,61,70,.1);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, opacity .25s ease;
}
.challenge-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: var(--level-color);
}
.challenge-card:hover,
.challenge-card:nth-child(3) {
    transform: translateY(-7px);
    border-color: var(--level-color);
    box-shadow: 0 24px 48px rgba(31,61,70,.16);
}
.challenge-card:nth-child(1) { --level-color: #4e9b72; }
.challenge-card:nth-child(2) { --level-color: #397eb0; }
.challenge-card:nth-child(3) { --level-color: #d8784d; }
.challenge-card:nth-child(4) { --level-color: #bd514c; }
.challenge-card:nth-child(-n+2),
.challenge-card:nth-child(4) { opacity: .88; }
.challenge-card:nth-child(3) { opacity: 1; }
.challenge-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border-radius: 16px;
    background: #d8784d;
    font-size: 31px;
    line-height: 1;
    box-shadow: 0 10px 18px rgba(201,111,75,.22);
}
.challenge-card h3 { color: #173540; font-size: 1.05rem; margin-bottom: 12px; }
.challenge-card p { color: #66777c; font-size: .94rem; line-height: 1.65; }
.challenge-card:nth-child(3) { background: rgba(255,255,255,.88); }
.challenge-card:nth-child(3)::before {
    content: 'À TESTER';
    position: absolute;
    right: 18px;
    top: 20px;
    color: #b55b3b;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.challenge .training-note-dark {
    margin-top: 28px;
    background: #173540;
    color: #fff;
    border: 0;
}
.challenge .training-note-dark strong { color: #f0c477; }
.challenge .training-note-dark p { color: rgba(255,255,255,.76); }
.checkpoint-grid { margin-top: 22px; }
.checkpoint-grid > div { box-shadow: 0 16px 32px rgba(16,42,53,.16); }

@media (max-width: 980px) {
    .challenge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .challenge .section-header { text-align: left; }
    .challenge .section-desc { margin-left: 0; }
    .challenge-grid { grid-template-columns: 1fr; }
    .challenge-card { min-height: 0; }
}

/* ============================================
   AMÉLIORATIONS MOBILE & RESPONSIVE
   ============================================ */

/* Empêcher le zoom auto sur iOS lors du focus sur les inputs */
input, textarea, select {
    font-size: 16px;
}

/* Améliorer le rendu tactile sur mobile */
* {
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
}

/* Boutons plus grands pour le tactile */
@media (max-width: 768px) {
    .btn, button, a.button {
        min-height: 48px;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    /* Boutons pleine largeur sur mobile */
    .hero-buttons,
    .cta-buttons,
    .form-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-buttons .btn,
    .cta-buttons .btn,
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Typographie mobile */
@media (max-width: 768px) {
    h1 { font-size: 2rem !important; line-height: 1.2; }
    h2 { font-size: 1.6rem !important; line-height: 1.3; }
    h3 { font-size: 1.3rem !important; }
    p { line-height: 1.6; }
}

/* Grilles en colonne unique sur mobile */
@media (max-width: 768px) {
    .features-grid,
    .pricing-grid,
    .testimonials-grid,
    .steps-grid,
    .info-grid,
    .grid-2,
    .grid-3,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    section {
        padding: 2.5rem 1rem;
    }

    .container {
        padding: 0 0.75rem;
    }
}

/* Cartes plus compactes sur mobile */
@media (max-width: 768px) {
    .card,
    .feature-card,
    .pricing-card,
    .testimonial-card,
    .step-card,
    .info-card {
        padding: 1.25rem;
    }
}

/* Formulaires mobile-friendly */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    textarea,
    select {
        width: 100%;
        padding: 0.85rem;
        font-size: 16px;
        border-radius: 8px;
    }

    textarea {
        min-height: 120px;
    }

    label {
        display: block;
        margin-bottom: 0.4rem;
        font-size: 0.95rem;
    }
}

/* Header & Navigation mobile */
@media (max-width: 768px) {
    .header,
    .navbar,
    nav {
        padding: 0.75rem 1rem;
    }

    .nav-brand,
    .logo {
        font-size: 1.2rem;
    }

    /* Menu burger */
    .nav-toggle,
    .menu-toggle,
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .nav-toggle span,
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: currentColor;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-links,
    .nav-menu,
    .menu-items {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--secondary, #1e293b);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        margin: 0;
    }

    .nav-links.active,
    .nav-menu.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        list-style: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        width: 100%;
        color: white;
    }
}

/* Menu burger caché sur desktop */
@media (min-width: 769px) {
    .nav-toggle,
    .menu-toggle,
    .hamburger {
        display: none;
    }
}

/* Footer mobile */
@media (max-width: 768px) {
    .site-footer,
    footer {
        padding: 2rem 1rem 1rem;
        text-align: center;
    }

    .footer-grid {
        text-align: center;
    }
}

/* Tableaux responsives */
@media (max-width: 768px) {
    .table-wrapper,
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    table {
        min-width: 600px;
    }
}

/* Très petits écrans (≤ 380px) */
@media (max-width: 380px) {
    body { font-size: 15px; }
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.4rem !important; }
    .btn { padding: 0.75rem 1.25rem; font-size: 0.95rem; }
}

/* Accessibilité - Focus visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary, #2563eb);
    outline-offset: 2px;
}

/* Réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

