/* RESET & VARIABLES */
:root {
    /* Colors */
    --clr-bg: #ffffff;
    --clr-bg-alt: #f8fafc;
    --clr-dark: #0f172a;
    --clr-dark-alt: #1e293b;
    --clr-primary: #10b981; /* Emerald Green from CEFICI logo */
    --clr-primary-dark: #059669;
    --clr-primary-light: #d1fae5;
    --clr-text: #334155;
    --clr-text-light: #64748b;
    --clr-accent: #e11d48; /* Rouge du logo CEFICI */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --section-pad: 100px;
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px -5px rgba(0,0,0,0.1);
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #ea580c; /* Orange pro */
    color: white;
    border: 2px solid #ea580c;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
    background: #c2410c; /* Orange foncé */
    border-color: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* HEADER & NAV */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
    background: white;
    box-shadow: var(--shadow-sm);
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: var(--clr-dark);
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--clr-primary);
    border-radius: 50%;
    margin-left: 2px;
}

.header.scrolled .logo-text, .header.scrolled .nav-link {
    color: var(--clr-dark);
}

/* Base states for nav items when at top over dark hero */
.logo-text, .nav-link {
    color: var(--clr-dark);
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 0.9;
}

.nav-link:hover {
    opacity: 1;
    color: var(--clr-primary) !important;
}

.mobile-menu-btn {
    display: none;
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: url('./media/PHOTO-2026-05-04-10-29-43.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--clr-dark);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: white;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.text-gradient {
    background: linear-gradient(to right, #10b981, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-video-wrapper {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.2);
    background: #000;
}

.hero-video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

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

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

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
    margin-bottom: 8px;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

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

/* SECTION HEADER */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--clr-text-light);
    font-size: 1.125rem;
}

/* GRID */
.grid {
    display: grid;
    gap: 30px;
}

/* FEATURES */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card {
    background: var(--clr-primary);
    color: white;
    padding: 40px 30px;
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-md); /* Augmentation de l'ombre de base */
    transition: var(--transition);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: white;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.feature-card .card-price {
    background: white;
    color: var(--clr-dark);
    display: inline-block;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 20px 0 15px;
    border-top: none;
}

.feature-card .card-price span {
    color: var(--clr-accent); /* Rouge */
    font-weight: 800;
    font-size: 1.1rem;
}

.feature-card .btn-primary {
    background: white;
    color: #ea580c;
    border-color: white;
}

.feature-card .btn-primary:hover {
    background: #f8fafc;
    color: #c2410c;
}

.feature-card-highlight {
    background: var(--clr-dark);
    color: white;
}
.feature-card-highlight h3 { color: white; }
.feature-card-highlight p { color: rgba(255,255,255,0.7); }
.feature-card-highlight .feature-icon { background: rgba(255,255,255,0.1); color: var(--clr-primary); }

/* EXCELLENCE */
.bg-dark {
    background-color: var(--clr-dark);
}
.text-light h2, .text-light p {
    color: white;
}
.text-light .section-desc {
    color: rgba(255,255,255,0.7);
}

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

.check-list {
    margin-top: 30px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--clr-primary);
    font-weight: bold;
}

.excellence-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    flex: 1;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--clr-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
}

/* TESTIMONIALS */
.testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.testimonial-card {
    background: var(--clr-bg-alt);
    padding: 40px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}

.testimonial-stars {
    color: #fbbf24;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 30px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--clr-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info strong {
    display: block;
    color: var(--clr-dark);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--clr-text-light);
}

/* CTA */
.cta-section {
    padding: 0 24px 100px;
}

.cta-box {
    background: var(--clr-primary);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
}

.cta-box h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.125rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.cta-form input {
    flex: 1;
    padding: 16px 24px;
    border-radius: 50px;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
}

.cta-form button {
    background: var(--clr-dark);
    color: white;
    border: none;
}

.cta-form button:hover {
    background: #000;
    transform: none;
    box-shadow: none;
}

/* FOOTER */
.footer {
    background: #0a0a0a; /* Noir */
    padding: 80px 0 20px;
    border-top: none;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    max-width: 300px;
}

.footer h4 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-contact p, .footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 12px;
}

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

/* ANIMATIONS (Scroll Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .excellence-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand p { margin: 20px auto; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        padding: 40px;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
    }

    .nav-link {
        color: var(--clr-dark);
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: block;
        width: 30px;
        height: 16px; /* Réduit pour rapprocher les lignes */
        position: relative;
        z-index: 1001;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--clr-dark);
        transition: var(--transition);
    }
    
    .header.scrolled .mobile-menu-btn span {
        background: var(--clr-dark);
    }

    .mobile-menu-btn span:first-child { top: 0; }
    .mobile-menu-btn span:last-child { bottom: 0; }
    
    .mobile-menu-btn.active span { background: var(--clr-dark); }
    .mobile-menu-btn.active span:first-child {
        transform: rotate(45deg);
        top: 7px;
    }
    .mobile-menu-btn.active span:last-child {
        transform: rotate(-45deg);
        bottom: 7px;
    }

    .hero-actions {
        flex-direction: column;
    }
    
    .cta-form {
        flex-direction: column;
    }
    
    .cta-form button {
        border-radius: 50px;
    }
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--clr-bg);
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0,0,0,0.1);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.modal-info {
    background: var(--clr-bg-alt);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-info h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.modal-info p {
    color: var(--clr-text-light);
    margin-bottom: 30px;
}

.modal-map {
    flex-grow: 1;
    min-height: 200px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    padding: 20px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
}

.map-placeholder p {
    color: var(--clr-text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.modal-form-wrapper {
    padding: 40px;
}

.custom-form .form-group {
    margin-bottom: 20px;
}

.custom-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--clr-dark);
}

.custom-form input, .custom-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.custom-form input:focus, .custom-form select:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px var(--clr-primary-light);
}

.btn-full {
    width: 100%;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-info {
        padding: 30px;
    }
    .modal-form-wrapper {
        padding: 30px;
    }
    .modal-map {
        min-height: 150px;
    }
    .modal-container {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* FIX: Empêche les statistiques de déborder de l'écran sur mobile */
    .excellence-stats {
        flex-direction: column;
        gap: 20px;
    }
    .stat-item {
        padding: 30px 20px;
    }

    /* FIX: Ajustement de la section Hero pour éviter que le texte soit coupé en haut */
    .hero {
        align-items: flex-start;
        min-height: auto;
        padding-bottom: 50px;
    }
    
    .hero-content {
        padding-top: 20px;
        padding-bottom: 0;
    }

    /* FIX: Masquer l'indicateur de scroll sur mobile pour libérer de l'espace */
    .scroll-indicator {
        display: none;
    }
}

/* TUNNEL DE CONVERSION - FACEBOOK ADS */

/* TEXT MARQUEE (Bande Passante) */
.text-marquee {
    width: 100%;
    background-color: var(--clr-accent); /* Rouge CEFICI au lieu de vert */
    color: white;
    overflow: hidden;
    padding: 15px 0;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 10;
}
.text-marquee-track {
    display: flex;
    white-space: nowrap;
    animation: scroll-text 20s linear infinite;
    width: max-content;
}
.text-marquee-track span {
    padding-right: 50px;
}
@keyframes scroll-text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Card Pricing */
.card-price {
    margin: 20px 0 15px;
    font-size: 0.9rem;
    color: var(--clr-text-light);
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}
.card-price span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-primary);
    display: block;
    margin-top: 5px;
}
.card-cta {
    width: 100%;
    margin-top: 10px;
}

/* Pulse Animation */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(234, 88, 12, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}
.pulse {
    animation: pulseGlow 2s infinite;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
}
@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        padding: 15px 20px;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
        z-index: 1999;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
    body {
        padding-bottom: 80px; /* Espace pour le bouton collant */
    }
}

/* AGENDA / PROCHAINES SESSIONS */
.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.agenda-card {
    display: flex;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.agenda-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-primary-light);
}

.agenda-date {
    background: var(--clr-primary-light);
    color: var(--clr-primary-dark);
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.agenda-date .day {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-heading);
}

.agenda-date .month {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

.agenda-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agenda-tag {
    display: inline-block;
    background: #e2e8f0;
    color: var(--clr-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
}

.agenda-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--clr-dark);
}

.agenda-details {
    display: flex;
    gap: 20px;
    color: var(--clr-text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.agenda-action {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-left: 1px solid #f1f5f9;
    min-width: 250px;
}

.spots-left {
    color: #ef4444;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .agenda-card {
        flex-direction: column;
    }
    .agenda-date {
        padding: 20px;
        flex-direction: row;
        gap: 15px;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .agenda-date .day {
        font-size: 2.5rem;
    }
    .agenda-action {
        border-left: none;
        border-top: 1px solid #f1f5f9;
        padding: 20px;
    }
}
@media (max-width: 768px) {
    .agenda-details {
        flex-direction: column;
        gap: 10px;
    }
}

/* GALERIE MARQUEE INFINI */
#galerie {
    padding: 60px 0 30px;
}

#galerie .section-header {
    margin-bottom: 20px;
}

#galerie .section-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

#galerie .section-desc {
    font-size: 0.95rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    #galerie {
        padding: 30px 0 10px;
    }
    #galerie .section-header {
        margin-bottom: 10px;
    }
    #galerie .section-title {
        font-size: 1.5rem;
    }
    #galerie .section-desc {
        font-size: 0.85rem;
    }
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    background: white;
}

/* Effet de fondu sur les bords */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    padding-right: 20px; /* C'est l'espacement entre les images */
}

.marquee-img {
    width: 240px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
    display: block;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .marquee-container::before,
    .marquee-container::after {
        width: 40px; /* Fondu plus petit sur mobile */
    }
    .marquee-img {
        width: 180px;
        height: 130px;
    }
    .marquee-item {
        padding-right: 15px;
    }
}

/* LIGHTBOX MODAL */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--clr-primary);
}

.zoomable {
    cursor: zoom-in;
    transition: transform 0.3s;
}

.zoomable:hover {
    transform: scale(1.03);
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #f8fafc;
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--clr-primary);
    background: white;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--clr-dark);
    font-size: 1.25rem;
}

.service-card p {
    color: var(--clr-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: -50px;
        right: 0;
    }
    
    .section {
        padding: 50px 0; /* Réduction du vide sur mobile */
    }

    .modal-map {
        height: 150px !important; /* Modal plus compact */
        margin-bottom: 15px !important;
    }

    .modal-container {
        padding: 20px !important;
    }

    .modal-info h3 {
        font-size: 1.5rem !important;
    }

    .modal-info p {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
    }

    /* 2 colonnes pour les formations sur mobile */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-card {
        padding: 10px !important;
    }

    .feature-card img {
        height: 110px !important;
    }

    .feature-card div[style*="padding: 25px"] {
        padding: 12px !important;
    }

    .feature-card h3 {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }

    .feature-card p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .feature-card .card-price {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
    }

    .feature-card .btn-sm {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        width: 100%;
    }

    .feature-card div[style*="background: var(--clr-primary-light)"] {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }

    /* 2 colonnes pour les services sur mobile */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-card {
        padding: 20px 10px !important;
    }

    .service-img {
        width: 60px !important;
        height: 60px !important;
    }

    .service-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }

    .service-card p {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
