/* ===== VARIABLES CSS ===== */
:root {
    /* Couleurs */
    --primary-color: #2c6eb5;
    --secondary-color: #f8b500;
    --dark-color: #222;
    --light-color: #f9f9f9;
    --gray-color: #777;
    --light-gray: #eaeaea;
    
    /* Polices */
    --heading-font: 'Roboto', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    
    /* Tailles */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Espacements */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Bordures */
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.05);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RÉINITIALISATION ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

/* ===== CLASSES UTILITAIRES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
}

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

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #e6a700;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}













/* ===== STRUCTURE PRINCIPALE ===== */
.main-with-aside {
    display: flex;
    gap: var(--spacing-xl);
    /* padding: var(--spacing-xl) 0; */
    padding-left: 20px;
    padding-right: 20px;
}

.main-content {
    flex: 1;
}

.event-sidebar {
    width: 350px;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    align-self: flex-start;
}

/* ===== BANNIÈRE HERO ===== */
.hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-2xl);
}

.hero-slider {
    position: relative;
    height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    color: white;
    z-index: 2;
}

.hero-content h1,
.hero-content h2 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-content p {
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.hero-image img {
    max-height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Fond coloré pour chaque slide */
.hero-slide:nth-child(1) {
    background: #67ee69;

    /* background: linear-gradient(135deg, #2c6eb5 0%, #4a90e2 100%); */
}
.hero-slide:nth-child(2) {
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
}
.hero-slide:nth-child(3) {
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
}
.hero-slide:nth-child(4) {
    background:   #67ee69;
}
.hero-slide:nth-child(5) {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.slider-controls {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    z-index: 10;
}

.slider-prev,
.slider-next {
    background-color: rgba(241, 10, 10, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    transition: var(--transition-normal);
}

.slider-prev:hover,
.slider-next:hover {
    background-color: rgba(241, 12, 12, 0.5);
}

.slider-dots {
    display: flex;
    gap: var(--spacing-sm);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-normal);
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.2);
}



.stats-section {
    padding: 4rem 2rem;
    background: #f8fafc;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1a202c;
}

.stats-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
    line-height: 1.2;
}

.stats-section > p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #718096;
    line-height: 1.6;
}

/* Conteneur grille */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.stat-item {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    color: #4a5568;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 1rem 0;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.stat-item p {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 500;
    margin: 0;
}

.info-section {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.info-section h2 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
}

.info-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    text-align: center;
}

.info-section p:last-child {
    margin-bottom: 0;
}

/* Couleurs subtiles pour chaque élément */
.stat-item:nth-child(1) {
    border-top: 4px solid #4299e1;
}

.stat-item:nth-child(2) {
    border-top: 4px solid #48bb78;
}

.stat-item:nth-child(3) {
    border-top: 4px solid #ed8936;
}

.stat-item:nth-child(4) {
    border-top: 4px solid #9f7aea;
}

/* Media Queries */
@media (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 600px;
    }
    
    .stats-section {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .stats-section h1 {
        font-size: 2rem;
    }
    
    .stats-section > p {
        font-size: 1rem;
    }
    
    .info-section {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .counter {
        font-size: 2.5rem;
    }
    
    .stat-item {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 2rem 1rem;
    }
    
    .stats-section h1 {
        font-size: 1.8rem;
    }
    
    .info-section h2 {
        font-size: 1.6rem;
    }
    
    .counter {
        font-size: 2.2rem;
    }
}
 




















/* ===== SECTION FORMATIONS ===== */
.formations-section {
    margin-bottom: var(--spacing-2xl);
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.formation-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.formation-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: bold;
}

.card-content {
    padding: var(--spacing-lg);
}

.card-content h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.card-content p {
    color: var(--gray-color);
    margin-bottom: var(--spacing-md);
}

.price-container {
    margin-bottom: var(--spacing-md);
}

.old-price {
    text-decoration: line-through;
    color: var(--gray-color);
    margin-right: var(--spacing-sm);
}

.new-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
}

.price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
}

.card-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

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


/* ===== TÉMOIGNAGES ===== */

/* Styles pour la section de témoignages */
.testimonials-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Conteneur des témoignages */
.testimonials-container {
    position: relative;
}

/* Grille des témoignages - Desktop (4 colonnes) */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Carte de témoignage */
.testimonial-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    margin-bottom: 25px;
}

.rating {
    color: #f1c40f;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.author-image {
    margin-right: 15px;
}

.author-image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Points de navigation */
.testimonial-dots {
    display: none;
    justify-content: center;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #3498db;
}

/* Media Queries pour la responsivité */



/* Tablettes plus petites (max-width: 890px) */
@media (max-width: 890px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonials-section {
        padding: 50px 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Mobiles (max-width: 768px) */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonials-section {
        padding: 40px 15px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
}

/* Petits mobiles (max-width: 480px) */
@media (max-width: 480px) {
    .testimonials-section {
        padding: 30px 10px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .testimonial-card {
        padding: 15px;
    }
    
    .author-image img {
        width: 50px;
        height: 50px;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .author-info p {
        font-size: 0.85rem;
    }
}






















/* ===== SECTION CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5a9c 100%);
    color: white;
    text-align: center;
    padding: var(--spacing-2xl) 0;
    margin-bottom: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
}

.cta-section h2 {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-3xl);
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    font-size: var(--font-size-lg);
}

/* ===== SIDEBAR ÉVÉNEMENTS ===== */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-header h3 {
    color: var(--primary-color);
}

.event-item {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--light-gray);
}

.event-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.event-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.event-item p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-color);
}

.event-item img {
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
}

.countdown,
.event-timer {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.countdown-item,
.timer-unit {
    text-align: center;
    /* background-color: var(--light-gray); */
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    min-width: 60px;
}

.countdown-item span:first-child,
.timer-unit span:first-child {
    display: block;
    font-weight: bold;
    font-size: var(--font-size-xl);
    color: var(--primary-color);
}

.countdown-item span:last-child,
.timer-unit span:last-child {
    font-size: var(--font-size-xs);
    color: var(--gray-color);
}



/* ===== FOOTER ===== */
.footer-container {
    background-color: var(--dark-color);
    color: white;
    padding: var(--spacing-2xl) 0 0;
    
}

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

.footer-column h4 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.presentation-column{
    padding-left: 20px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
    padding-left: var(--spacing-sm);
}

.presentation-column p {
    margin: var(--spacing-md) 0;
    color: #ccc;
}

.newsletter-form {
    display: flex;
    margin-top: var(--spacing-md);
}

.newsletter-input {
    flex: 1;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.subscribe-btn {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: bold;
}

.info-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.info-icon {
    color: var(--secondary-color);
    font-size: var(--font-size-lg);
}

.info-text {
    color: #ccc;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: #ccc;
}

.contact-links a:hover {
    color: var(--secondary-color);
}

.social-media {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-media a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-media a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #111;
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: var(--spacing-md);
    color: #ccc;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
}

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



.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2c3e50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    justify-content: center;
    align-items: center;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background-color: #3498db;
    transform: scale(1.1);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}







/* ===== MEDIA QUERIES ===== */





/* gallery  */

.gallery-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .play-icon {
    opacity: 1;
}

.item-info {
    padding: 1rem;
    background: white;
}

.item-info h3 {
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    font-size: 1.1rem;
}

.item-info p {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
}

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

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #4a6fa5;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #3a5a8a;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 40px 20px 20px 20px;
}

.media-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.media-container video {
    max-width: 100%;
    max-height: 80vh;
    background: #000;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(-50%);
    z-index: 10001;
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 22px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
}










/* ===== RESET BASIQUE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* ===== TOP MENU ===== */
.top-menu {
    background: #2c3e50;
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

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

.top-menu-center {
    display: flex;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-menu-right {
    display: flex;
    gap: 10px;
}

.top-menu-right a {
    color: white;
    text-decoration: none;
}

/* ===== MAIN NAVIGATION ===== */
.main-nav {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-menu {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
}

.nav-links a.active {
    color: #e74c3c;
    font-weight: bold;
}

/* Dropdown Desktop */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.nav-icons {
    display: flex;
    gap: 10px;
}

.nav-icons button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

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

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    padding: 50px 20px 20px;
}

.mobile-nav-links li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-links a {
    display: block;
    padding: 15px 10px;
    text-decoration: none;
    color: #333;
}

.mobile-dropdown-menu {
    display: none;
    background: #f9f9f9;
    list-style: none;
}

.mobile-dropdown-menu.active {
    display: block;
}

.mobile-dropdown-menu a {
    padding-left: 30px;
    font-size: 14px;
}

.mobile-nav-icons {
    padding: 20px;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #eee;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

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

.search-container {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.search-container form {
    display: flex;
}

.search-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
}

.search-container button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .top-menu-center {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-menu {
        display: none;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .mobile-menu {
        width: 100%;
        left: -100%;
    }
}

@media (max-width: 480px) {
    .nav-brand span {
        font-size: 14px;
    }
    
    .nav-icons button {
        padding: 3px;
    }
}









/* Styles de base pour le layout principal */
.main-with-aside {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.event-sidebar {
    width: 350px;
    flex-shrink: 0;
}

/* SIDEBAR TOUJOURS VISIBLE - SUPPRIMER LE DISPLAY NONE */
.sidebar-content {
    /* TOUJOURS VISIBLE - NE PAS CACHER */
    display: block !important;
}

.sidebar-toggle {
    display: none; /* Cacher le toggle sur desktop */
}

/* ===== HERO BANNER RESPONSIVE ===== */
.hero-banner {
    position: relative;
    margin-bottom: 3rem;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.hero-slide {
    display: none;
}

.hero-slide.active {
    display: block;
}

.hero-slide .container {
    display: flex;
    align-items: center;
    min-height: 500px;
    padding: 2rem;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1,
.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

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

.hero-image {
    flex: 0 0 45%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    /* background: rgba(39, 38, 38, 0.9); */
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

/* ===== STATS SECTION RESPONSIVE ===== */
.stats-section {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    padding: 1.5rem;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c5aa0;
}

/* ===== FORMATIONS SECTION RESPONSIVE ===== */
.formations-section {
    margin-bottom: 3rem;
    padding-left: 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, max(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.formation-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.card-image {
    position: relative;
    height: 300px;
    width: 300px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff6b6b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.card-content {
    padding: 1rem;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.price-container {
    margin: 1rem 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 0.5rem;
}

.new-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c5aa0;
}

.card-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background: #1e3d72;
}

.btn-outline {
    background: transparent;
    border-color: #2c5aa0;
    color: #2c5aa0;
}

.btn-outline:hover {
    background: #2c5aa0;
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===== GALLERY SECTION RESPONSIVE ===== */
.gallery-section {
    margin-bottom: 3rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .item-info {
    transform: translateY(0);
}

/* ===== TESTIMONIALS SECTION RESPONSIVE ===== */
.testimonials-section {
    margin-bottom: 3rem;
}

.testimonials-container {
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== CTA SECTION RESPONSIVE ===== */
.cta-section {
    background: linear-gradient(135deg, #2c5aa0, #1e3d72);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== SIDEBAR STYLES ===== */
.event-sidebar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.event-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-item h4 {
    margin-bottom: 0.5rem;
    color: #2c5aa0;
}

.event-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.countdown {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.countdown-item {
    text-align: center;
    background: #f2f7f7;
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    min-width: 60px;
}

.countdown-item span:first-child {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.countdown-item span:last-child {
    font-size: 0.8rem;
}

.event-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-timer {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.timer-unit {
    text-align: center;
    background: #e1eaf8;
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    min-width: 60px;
}

.timer-unit span:first-child {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ===== MEDIA QUERIES ===== */

/* Tablettes (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .main-with-aside {
        flex-direction: column;
        gap: 2rem;
    }
    
    .event-sidebar {
        width: 100%;
        position: static;
    }
    
    .hero-slide .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        flex: none;
        width: 100%;
        max-width: 500px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .formations-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tablettes petites (768px et moins) */
@media screen and (max-width: 768px) {
    .main-with-aside {
        padding: 0 0.5rem;
    }
    
    .hero-content h1,
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* SIDEBAR TOUJOURS VISIBLE SUR MOBILE */
    .sidebar-content {
        display: block !important;
    }
    
    .sidebar-toggle {
        display: none; /* Cacher le toggle car le contenu est toujours visible */
    }
}

/* Mobiles (480px et moins) */
@media screen and (max-width: 480px) {
    .hero-slide .container {
        padding: 1rem;
        min-height: 400px;
    }
    
    .hero-content h1,
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .formations-grid {
        grid-template-columns: 1fr;
    }
    
    .card-buttons {
        flex-direction: column;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 150px;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .countdown,
    .event-timer {
        flex-wrap: wrap;
    }
    
    .countdown-item,
    .timer-unit {
        min-width: 45px;
        padding: 0.3rem;
    }
    
    .countdown-item span:first-child,
    .timer-unit span:first-child {
        font-size: 1.2rem;
    }
    
    /* SIDEBAR MOBILE OPTIMISÉ */
    .event-sidebar {
        padding: 1rem;
    }
    
    .event-item,
    .event-card {
        padding: 1rem;
    }
}

/* Très petits mobiles (360px et moins) */
@media screen and (max-width: 360px) {
    .main-with-aside {
        padding: 0 0.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .slider-controls {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.5rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .event-sidebar {
        padding: 0.75rem;
    }
    
    .event-item,
    .event-card {
        padding: 0.75rem;
    }
    
    .countdown-item,
    .timer-unit {
        min-width: 40px;
        padding: 0.25rem;
    }
}

/* Orientation paysage sur mobiles */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-slide .container {
        min-height: 300px;
        padding: 1rem;
    }
    
    .hero-content h1,
    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Sidebar plus compact en paysage */
    .event-sidebar {
        padding: 1rem;
    }
}

/* Haut DPI/Écrans Retina */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .card-image img,
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Mode contraste élevé */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .btn-outline {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* Mode réduit de mouvement */
@media (prefers-reduced-motion: reduce) {
    .formation-card,
    .gallery-item img,
    .item-info {
        transition: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}





.stats-section-gallerie {
    padding: 1rem 1rem;
    background: #f8fafc;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1a202c;
}

.stats-section-gallerie h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
    line-height: 1.2;
}

.stats-section-gallerie > p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 890px;
    margin: 0 auto 3rem;
    color: #718096;
    line-height: 1.6;
}



/* ===== STYLES DU LOGO ===== */
.nav-brand {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 50px; /* Ajustez selon la taille de votre logo */
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Logo dans le menu mobile */
.mobile-logo {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.mobile-logo .logo {
    height: 40px; /* Plus petit sur mobile */
}

/* ===== RESPONSIVE DU LOGO ===== */
@media (max-width: 1024px) {
    .logo {
        height: 45px;
    }
}

@media (max-width: 768px) {
    .logo {
        height: 40px;
    }
    
    .mobile-logo .logo {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 35px;
    }
    
    .mobile-logo .logo {
        height: 30px;
    }
}

@media (max-width: 360px) {
    .logo {
        height: 30px;
    }
    
    .nav-brand {
        flex: 1;
    }
}






/* ===== STYLES GLOBAUX DU POPUP COMPACT ===== */

/* Overlay du popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: pop-fadeIn 0.3s ease-out;
    padding: 20px;
    box-sizing: border-box;
}

/* Container principal COMPACT */
.popup-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: pop-slideUp 0.4s ease-out;
}

/* Bouton fermeture */
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Contenu du popup */
.popup-content {
    display: flex;
    flex-direction: column;
}

.popup-image {
    flex-shrink: 0;
    height: 150px;
    overflow: hidden;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.popup-text {
    padding: 20px;
    background: white;
    color: #333;
}

/* Titre */
.popup-text h3 {
    color: #e74c3c;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

/* Countdown COMPACT */
.pop-countdown-container {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
}

.pop-countdown-title {
    font-size: 0.9em;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ecf0f1;
}

.pop-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-family: 'Courier New', monospace;
}

.pop-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 10px;
    border-radius: 8px;
    min-width: 50px;
    backdrop-filter: blur(10px);
}

.pop-countdown-number {
    font-size: 1.4em;
    font-weight: 700;
    color: #f39c12;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pop-countdown-label {
    font-size: 0.7em;
    margin-top: 3px;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pop-countdown-separator {
    font-size: 1.2em;
    font-weight: 700;
    color: #f39c12;
    margin: 0 2px;
}

.pop-countdown-expired {
    font-size: 1em;
    font-weight: 700;
    color: #e74c3c;
    text-align: center;
    padding: 10px;
}

/* Description */
.popup-description {
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #555;
    text-align: center;
}

/* Formulaire COMPACT */
.form-group {
    margin-bottom: 15px;
}

.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3498db;
}

.checkbox-group label {
    font-size: 0.8em;
    color: #666;
    cursor: pointer;
}

/* Bouton COMPACT */
.btn-primary {
   
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Animations */
@keyframes pop-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pop-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive pour très petits écrans */
@media (max-width: 480px) {
    .popup-overlay {
        padding: 10px;
    }
    
    .popup-container {
        max-width: 100%;
        max-height: 90vh;
    }
    
    .popup-text {
        padding: 15px;
    }
    
    .pop-countdown-container {
        padding: 12px;
    }
    
    .pop-countdown-item {
        min-width: 45px;
        padding: 6px 8px;
    }
    
    .pop-countdown-number {
        font-size: 1.2em;
    }
    
    .pop-countdown-label {
        font-size: 0.6em;
    }
    
    .form-group input[type="email"],
    .form-group input[type="tel"] {
        padding: 10px;
        font-size: 13px;
    }
    
    .btn-primary {
        padding: 12px;
        font-size: 0.9em;
    }
}

/* Masquer la scrollbar sur le popup */
.popup-container::-webkit-scrollbar {
    width: 5px;
}

.popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}