@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Outfit:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    /* Colors - Light "Afrique Digitale" Identity */
    --p-green: #007A5E;
    --p-green-light: #00A37A;
    --p-red: #CE1126;
    --p-yellow: #FCD116;
    --p-red-soft: rgba(206, 17, 38, 0.1);
    --p-yellow-soft: rgba(252, 209, 22, 0.1);
    --p-green-soft: rgba(0, 122, 94, 0.1);
    --bg-main: #FFFFFF;
    --bg-alt: #F8FAF9;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #0A0F0D;
    --text-muted: #5A6E64;
    --border-light: rgba(0, 122, 94, 0.1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.05);
    
    /* Spacing & Radius */
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --spacing-xl: 120px;
    --spacing-lg: 64px;
    --spacing-md: 32px;
    
    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    --transition-fast: all 0.3s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography Overhaul */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.mono {
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Glassmorphism (Light Mode) */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 122, 94, 0.1);
}

/* Laboratory / Test Section */
.test-lab {
    background: #000;
    color: #fff;
    padding: 80px 0;
    border-top: 5px solid var(--p-red);
}

.test-lab .glass {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.ticket-preview-container {
    max-width: 400px;
    margin: 40px auto;
    perspective: 1000px;
}

#ticket-canvas {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
/* Layout */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: var(--transition-smooth);
    gap: 12px;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background: var(--p-green-light);
    transform: scale(1.05) translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--p-green);
    color: var(--p-green);
}

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

/* Highlighting */
.highlight-red { color: var(--p-red); }
.highlight-yellow { color: var(--p-yellow); }
.highlight-green { color: var(--p-green); }

/* Form Branding Standard */
input, select, textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--p-green);
    background: #fff;
    box-shadow: 0 0 0 4px var(--p-green-soft);
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   CUSTOM CHECKBOXES — Consentements
   ========================================= */
.consent-section {
    margin: 32px 0 28px;
    border-top: 1px solid var(--border-light);
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.consent-header {
    margin-bottom: 20px;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 10px;
    transition: background 0.2s ease;
    border: 1px solid transparent;
}

.custom-checkbox:hover {
    background: rgba(0, 122, 94, 0.05);
    border-color: var(--border-light);
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid #BBBBBB;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    margin-top: 1px;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

.custom-checkbox input:checked + .checkbox-box {
    background: var(--p-green);
    border-color: var(--p-green);
    box-shadow: 0 2px 8px rgba(0, 122, 94, 0.25);
    transform: scale(1.05);
}

.checkbox-box i {
    color: white;
    font-size: 11px;
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.6);
}

.custom-checkbox input:checked + .checkbox-box i {
    opacity: 1;
    transform: scale(1);
}

.checkbox-text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-primary);
}

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

.req-star {
    color: var(--p-red);
    font-weight: 800;
    font-size: 0.95rem;
    margin-left: 2px;
}

.opt-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: 20px;
    background: var(--bg-alt);
    color: var(--text-muted);
    margin-left: 4px;
    font-weight: 500;
    vertical-align: middle;
}

/* Ticket Modal — Full screen overlay */
#ticket-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(5, 15, 10, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

#ticket-modal.hidden {
    display: none !important;
}

.ticket-card-premium {
    position: relative;
    background: #FFFFFF;
    border-radius: 28px;
    padding: 48px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.1);
    animation: modalReveal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1) forwards;
}

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

/* Ticket form grid */
.ticket-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .ticket-form-grid {
        grid-template-columns: 1fr;
    }
    .ticket-card-premium {
        padding: 28px 20px;
    }
}

/* Phase badge */
.phase-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 40px;
    background: rgba(0, 122, 94, 0.08);
    color: var(--p-green);
    font-size: 0.65rem;
    letter-spacing: 3px;
    border: 1px solid rgba(0, 122, 94, 0.2);
}

/* Loading Spinner */
.spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(0, 122, 94, 0.1);
    border-top-color: var(--p-green);
    border-right-color: var(--p-yellow);
    animation: spinnerRotate 0.9s linear infinite;
}

@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

/* Progress bar for loading */
.ticket-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 122, 94, 0.1);
    border-radius: 4px;
    margin: 20px 0 8px;
    overflow: hidden;
}

.ticket-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--p-green), var(--p-yellow));
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Animations Overhaul */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-slide.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Partner Ad Slide Animation */
.ad-card {
    display: none;
    animation: slideIn 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.ad-card.active {
    display: block;
}

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

.stat-number {
    font-weight: 800;
    color: var(--p-green);
    margin-bottom: 8px;
}

/* Hero Mini Timeline */
.hero-timeline {
    position: relative;
    max-width: 400px;
}

.ht-items {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.ht-item {
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.ht-item.active {
    border-color: var(--p-green);
    color: var(--p-green);
}

.ht-item.highlight {
    background: var(--p-green);
    border-color: var(--p-green);
    color: white;
    box-shadow: 0 0 20px rgba(0, 122, 94, 0.3);
}

.ht-track {
    position: absolute;
    top: 16px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-light);
    z-index: 1;
}

/* Fix Hidden Elements Audit */
.spa-view.hidden { display: none !important; }
.form-step { display: none; }
.form-step.active { display: block; animation: slideUp 0.6s ease-out; }

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

/* Imposing Countdown (User Request: Large, Centered, Red/White) */
.countdown-imposing {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: var(--radius-lg);
    margin: 60px auto;
    max-width: 900px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.countdown-imposing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--p-green), var(--p-red), var(--p-yellow));
}

.countdown-label-imposing {
    color: var(--p-red);
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 40px;
    display: block;
}

.countdown-timer-imposing {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.countdown-timer-imposing .unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.countdown-timer-imposing .digit {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 5rem;
    color: var(--p-red);
    line-height: 1;
    text-shadow: 4px 4px 0px rgba(206, 17, 38, 0.05);
}

.countdown-timer-imposing .label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 12px;
    letter-spacing: 3px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .countdown-timer-imposing .digit { font-size: 3rem; }
    .countdown-timer-imposing .unit { min-width: 80px; }
    .countdown-timer-imposing { gap: 20px; }
    
    /* Tickets Page Mobile */
    .tickets-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .ticket-sticky-preview {
        position: relative !important;
        top: 0 !important;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Modal System */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start; /* Changé de center à flex-start pour éviter que le haut soit coupé */
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    padding: 40px 20px; /* Ajout de padding de sécurité */
    overflow-y: auto; /* Permet le scroll de l'overlay lui-même */
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    width: 95%;
    max-width: 800px;
    margin: auto; /* Centre la modale si elle est plus courte que l'écran */
    background: white;
    border-radius: 32px;
    padding: 48px;
    position: relative;
    transform: translateY(40px);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--bg-alt);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--p-red-soft);
    color: var(--p-red);
}

/* Strategic Ticketing Fix */
#billets {
    background: linear-gradient(135deg, var(--p-green) 0%, #004d3c 100%);
    position: relative;
    padding: 120px 0;
}

#billets .glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}

/* Vibrating and Tilt Effects */
.hero-main-img {
    transition: transform 0.1s ease-out;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

@keyframes vibrate {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.vibrate-hover:hover {
    animation: vibrate 0.3s linear infinite;
}

/* Trois Univers Redesign */
.programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.prog-card {
    background: #fff;
    border-radius: 48px !important;
    padding: 60px 48px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.03) !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
}

.prog-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 122, 94, 0.1) !important;
    border-color: var(--p-green-soft) !important;
}

.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.timeline-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-light);
    z-index: 1;
}

.timeline-item {
    position: relative;
    z-index: 2;
    background: var(--bg-light);
    padding: 20px;
    text-align: center;
    width: 22%;
}

.timeline-year {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 2px solid var(--p-green);
    border-radius: 50px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--p-green);
    box-shadow: 0 4px 15px rgba(0, 122, 94, 0.1);
}

.timeline-item.active .timeline-year {
    background: var(--p-green);
    color: white;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
        gap: 40px;
    }
    .timeline-container::before {
        width: 2px;
        height: 100%;
        left: 30px;
        top: 0;
    }
    .timeline-item {
        width: 100%;
        text-align: left;
        padding-left: 60px;
    }
}
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

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

/* Hero Revamp - Side by Side */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-label {
    background: rgba(0, 122, 94, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--p-green);
    display: inline-block;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.9;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-title span {
    display: inline-block;
    position: relative;
    padding: 0 10px;
}

.hero-title .highlight-red {
    background: var(--p-red);
    color: white;
    transform: rotate(-2deg);
    margin: 0 5px;
}

.hero-title .highlight-yellow {
    background: var(--p-yellow);
    color: black;
    transform: rotate(1deg);
    margin: 0 5px;
}

.hero-title .highlight-green {
    background: var(--p-green);
    color: white;
    transform: rotate(-1deg);
    padding: 10px 20px;
    margin-top: 10px;
}

.hero-visual {
    position: relative;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--p-green-soft) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.2); opacity: 0.4; }
}

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

.hero-main-img {
    animation: float 6s ease-in-out infinite;
    z-index: 5;
}

.hero-floating-element {
    animation: float 8s ease-in-out infinite alternate;
}

.highlight-red { color: var(--p-red); }
.highlight-yellow { color: var(--p-yellow); }

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 40px;
}

.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    animation: float 6s ease-in-out infinite;
}

.hero-motif {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 40px solid var(--p-yellow);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    z-index: -1;
    opacity: 0.2;
}

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

/* Social Wall - Memories */
.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.social-post {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.post-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 32px;
    height: 32px;
    background: var(--p-green);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.post-user {
    font-weight: 700;
    font-size: 0.85rem;
}

.post-img-container {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.social-post:hover .post-img {
    transform: scale(1.05);
}

.post-actions {
    padding: 16px;
    display: flex;
    gap: 16px;
}

.btn-like {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.btn-like.active {
    color: var(--p-red);
}

.post-caption {
    padding: 0 16px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .memories-grid {
        grid-template-columns: 1fr;
    }
}
.section-num {
    color: var(--p-red);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
}

/* Business Game Showcase */
.bg-showcase {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.bg-photo-item {
    width: 380px;
    padding: 12px;
    border-radius: var(--radius-md);
    transform: rotate(-2deg);
    transition: var(--transition-smooth);
}

.bg-photo-item:nth-child(even) {
    transform: rotate(2deg);
    margin-top: 20px;
}

.bg-photo-item:hover {
    transform: rotate(0) scale(1.05) translateY(-10px);
    z-index: 10;
}

.bg-photo-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.photo-info {
    font-size: 0.65rem;
    color: var(--p-green);
    text-align: center;
}

@media (max-width: 850px) {
    .bg-showcase {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .bg-photo-item {
        width: 100%;
        max-width: 400px;
        transform: rotate(0) !important;
        margin-top: 0 !important;
    }
}
.programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.prog-card {
    padding: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-alt);
    border-bottom: 8px solid transparent;
    transition: var(--transition-smooth);
}

.prog-item-0::after { border-color: var(--p-yellow); }
.prog-item-1::after { border-color: var(--p-green); }
.prog-item-2::after { border-color: var(--p-red); }

.prog-card:hover { border-bottom-color: var(--p-green); background: white; transform: scale(1.02); }

/* Ticketing - Segmented Control */
.ticket-tabs {
    background: var(--bg-alt);
    padding: 8px;
    border-radius: 50px;
    display: inline-flex;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 24px;
    border-radius: 40px;
    border: none;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn.active {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: var(--p-green);
}

/* Partner Ad Space & Cards */
.ad-space {
    padding: 0;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
}

/* Spotlight Progress Bar */
.ad-space::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--p-green);
    width: 0;
    animation: adProgress 6s linear infinite;
    z-index: 10;
    opacity: 0.3;
}

@keyframes adProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* Utilities */
.hidden { display: none !important; }

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.05);
}

/* Admin Dashboard Elements */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--p-green);
    margin-bottom: 10px;
}

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

/* Responsive Overrides */
@media (max-width: 768px) {
    .hero-title { font-size: 3.5rem; }
    .nav-links { display: none; } /* Use a mobile menu if needed later */
}

/* Background depth elements */
.ad-space::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0,122,94,0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(0,86,179,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.ad-card {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 80px;
    background: transparent;
    transition: opacity 0.8s ease;
}

.ad-card.active {
    opacity: 1;
    pointer-events: all;
}

/* Singular Animations per Partner */
@keyframes slideInUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes driftLeft { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes bounceIn { 
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
@keyframes revealClip { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.ad-improved.active .ad-content { animation: revealClip 1s cubic-bezier(0.77, 0, 0.175, 1) forwards; }
.ad-cofilo.active .ad-content { animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.ad-10k.active .ad-content { animation: scaleIn 0.8s ease-out forwards; }
.ad-frenchcamp.active .ad-content { animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.ad-geloka.active .ad-content { animation: driftLeft 0.8s ease-out forwards; }
.ad-civicwatch.active .ad-content { animation: revealClip 1.2s ease-in-out forwards; }
.ad-defy.active .ad-content { animation: slideInUp 0.6s ease-out forwards; }

.ad-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
    opacity: 0;
}

.active .ad-header { animation: scaleIn 0.5s ease-out 0.2s forwards; }

.ad-content {
    opacity: 1;
}

.ad-content h2, 
.ad-content p, 
.ad-content .ad-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.active .ad-content h2 { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.active .ad-content p { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.active .ad-content .ad-link { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

.ad-logo-wrapper {
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.ad-logo {
    height: 48px;
    max-width: 140px;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    mix-blend-mode: multiply; /* Removes white background from logos */
}

.active .ad-logo {
    transform: scale(1.05);
}

.ad-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--bg-alt);
    border-radius: 20px;
    color: var(--text-muted);
}

.ad-content h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.ad-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 32px;
}

.ad-link {
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    transition: var(--transition-fast);
}

.ad-link:hover {
    gap: 12px;
}

/* Custom Partner Identity Styles - Enhanced */
.ad-improved { border-left: 8px solid var(--p-green); }
.ad-improved .highlight { color: var(--p-green); }
.ad-improved .ad-link { color: var(--p-green); background: rgba(0, 122, 94, 0.05); padding: 10px 20px; border-radius: 8px; }

.ad-cofilo { border-left: 8px solid #0056b3; }
.ad-cofilo .highlight { color: #0056b3; }
.ad-cofilo .ad-link { color: #0056b3; background: rgba(0, 86, 179, 0.05); padding: 10px 20px; border-radius: 8px; }

.ad-10k { border-left: 8px solid #0056b3; }
.ad-10k .highlight { 
    background: linear-gradient(135deg, #0056b3, #007A5E, #FCD116, #CE1126);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
}
.ad-10k .ad-link { color: #0056b3; background: rgba(0, 86, 179, 0.05); padding: 10px 20px; border-radius: 8px; }

.ad-frenchcamp { border-left: 8px solid #82C91E; }
.ad-frenchcamp .highlight { color: #82C91E; text-shadow: 2px 2px 0px rgba(130, 201, 30, 0.1); }
.ad-frenchcamp .ad-link { color: #7048E8; background: rgba(112, 72, 232, 0.05); padding: 10px 20px; border-radius: 8px; }

.ad-geloka { border-left: 8px solid #2196F3; }
.ad-geloka .highlight { color: #2196F3; }
.ad-geloka .ad-link { color: #2196F3; background: rgba(33, 150, 243, 0.05); padding: 10px 20px; border-radius: 8px; }

.ad-civicwatch { border-left: 8px solid #00A936; }
.ad-civicwatch .highlight { color: #00A936; border-bottom: 2px dashed #00A936; }
.ad-civicwatch .ad-link { color: #00A936; background: rgba(0, 169, 54, 0.05); padding: 10px 20px; border-radius: 8px; }

.ad-defy { border-left: 8px solid #FCD116; }
.ad-defy .highlight { 
    background-color: #FCD116;
    color: var(--dark);
    padding: 2px 10px;
    border-radius: 4px;
    transform: rotate(-2deg);
    display: inline-block;
}
.ad-defy .ad-link { color: var(--dark); background: #FCD116; padding: 10px 20px; border-radius: 8px; }

/* Hero Visual Refinement */
.hero-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
}

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

.hero-floating-element {
    position: absolute;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 5;
    white-space: nowrap;
}

.hfe-1 { top: 20%; right: -20px; transform: rotate(5deg); }
.hfe-2 { bottom: 15%; left: -10px; transform: rotate(-3deg); }

/* Business Game Multi-step Form */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.registration-stepper .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.registration-stepper .step.active {
    filter: grayscale(0);
    opacity: 1;
}

.registration-stepper .step span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    font-weight: 900;
}

.registration-stepper .step.active span {
    background: var(--p-green);
    color: white;
    border-color: var(--p-green);
}

.registration-stepper .step label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group.full-width {
    grid-column: span 2;
}

.input-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.radio-box {
    display: flex;
    gap: 20px;
    padding: 12px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
}

.radio-box label {
    cursor: pointer;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.hidden { display: none !important; }

textarea {
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-family: inherit;
    resize: vertical;
}

.member-card {
    background: rgba(0, 122, 94, 0.05);
    padding: 20px;
    border-radius: 16px;
    margin-top: 16px;
    position: relative;
}

.remove-member {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--p-red);
    cursor: pointer;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .input-group.full-width {
        grid-column: span 1;
    }
}
/* Bespoke Background Decorations per Partner */
.ad-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: -1;
    transition: opacity 1s ease;
    pointer-events: none;
}

.active.ad-card::after { opacity: 0.1; }

.ad-improved::after {
    background-image: radial-gradient(var(--p-green) 1px, transparent 1px);
    background-size: 20px 20px;
}

.ad-cofilo::after {
    background: linear-gradient(45deg, transparent 45%, #0056b3 45%, #0056b3 55%, transparent 55%);
    background-size: 40px 40px;
}

.ad-10k::after {
    background-image: linear-gradient(rgba(0,86,179,0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,86,179,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.ad-frenchcamp::after {
    background: radial-gradient(circle, #82C91E 10%, transparent 10.5%);
    background-size: 30px 30px;
}

.ad-geloka::after {
    background-image: repeating-linear-gradient(45deg, #2196F3 0, #2196F3 1px, transparent 0, transparent 50%);
    background-size: 15px 15px;
}

.ad-civicwatch::after {
    background-image: radial-gradient(circle at center, #007A5E 2px, transparent 2px);
    background-size: 25px 25px;
}

.ad-defy::after {
    background: repeating-linear-gradient(-45deg, #FCD116 0, #FCD116 2px, transparent 0, transparent 10%);
    background-size: 20px 20px;
}

@media (max-width: 768px) {
    .ad-space { min-height: 600px; }
    .ad-card { padding: 40px 20px; }
    .ad-content h2 { font-size: 2.2rem; }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 968px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-tagline { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-visual { height: 400px; }
}

/* ==========================================================================
   SENIOR TICKETING SYSTEM (v5.1)
   ========================================================================== */

.ticketing-section {
    padding: 100px 0;
    position: relative;
    background: #fff;
}

.ticket-card-premium {
    background: #ffffff;
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.06);
    border: 1px solid var(--border-light);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.ticket-card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--p-green), var(--p-yellow), var(--p-red));
}

/* Senior Checkboxes */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 16px;
    transition: background 0.3s ease;
}

.custom-checkbox:hover {
    background: rgba(0, 122, 94, 0.03);
}

.custom-checkbox input {
    display: none;
}

.checkbox-box {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 1.5px solid rgba(0,0,0,0.1); /* Plus fin */
    border-radius: 8px; /* Plus arrondi */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.checkbox-box i, 
.checkbox-box svg {
    width: 14px;
    height: 14px;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease-out;
}

.custom-checkbox input:checked + .checkbox-box {
    background: var(--p-green);
    border-color: var(--p-green);
}

.custom-checkbox input:checked + .checkbox-box i,
.custom-checkbox input:checked + .checkbox-box svg {
    opacity: 1;
    transform: scale(1);
}

.checkbox-text {
    font-size: 0.8rem; /* Très fin comme demandé */
    line-height: 1.3;
    color: var(--text-muted);
}

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

/* Premium Form Inputs */
.input-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.glass-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.glass-input:focus {
    border-color: var(--p-green);
    box-shadow: 0 0 0 4px var(--p-green-soft);
    background: #fff;
}

/* Success State & Loading */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-radius: 40px;
}

/* ==========================================================================
   MODAL & UTILITIES (V6) — Fix complet
   ========================================================================== */

/* Utilitaire générique : cacher un élément */
.hidden {
    display: none !important;
}

/* ---- MODALE DE BILLETTERIE ---- */
#ticket-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    overflow-y: auto;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changé de flex-start à flex-start pour scroll */
    animation: fadeInModal 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

#ticket-modal.hidden {
    display: none !important;
}

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

/* Carte intérieure de la modale */
#ticket-modal > .ticket-card-premium {
    max-width: 900px;
    width: 100%;
    background: #fff;
    border-radius: 40px;
    padding: 56px;
    position: relative;
    box-shadow: 0 50px 120px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
    animation: slideUpScale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpScale {
    from { opacity: 0; transform: translateY(60px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

#ticket-modal > .ticket-card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--p-green), var(--p-yellow), var(--p-red));
}

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

/* ---- Spinner de chargement ---- */
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 122, 94, 0.1);
    border-left-color: var(--p-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spin {
    animation: spin 1s linear infinite;
    transform-origin: center;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Phase badge ---- */
.phase-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 122, 94, 0.08);
    color: var(--p-green);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    #ticket-modal {
        padding: 16px 8px;
    }
    #ticket-modal > .ticket-card-premium {
        padding: 28px 18px;
        border-radius: 20px;
    }
    .form-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Premium Button Loading & Spinner */
.spinner-sm {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: premium-spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes premium-spin {
    to { transform: rotate(360deg); }
}

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8 !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    z-index: 1;
}

.btn-loading > * {
    visibility: hidden;
}

.btn-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: premium-spin 0.8s linear infinite;
    z-index: 2;
}

/* Business Game Team & Global Enhancements */
.registration-mode-team #bg-form {
    border-top: 5px solid var(--p-green);
}

.member-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-light);
    border-left: 5px solid var(--p-green);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 122, 94, 0.1);
    background: #fff;
}

.remove-member {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(206, 17, 38, 0.05);
    color: var(--p-red);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-member:hover {
    background: var(--p-red);
    color: white;
}

.member-card h4 {
    margin-bottom: 15px;
    color: var(--p-green);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mode-solo-msg {
    padding: 30px;
    background: rgba(0, 122, 94, 0.03);
    border-radius: 20px;
    border: 1px dashed var(--p-green);
    text-align: center;
    margin-top: 20px;
}

.mode-team-fields {
    margin-top: 20px;
}
