/* unique2.css */
:root {
    /* Colors */
    --primary-color: #4311cb;          /* Deep Purple - Main brand color */
    --secondary-color: #dd6c213b;        /* Vibrant Orange - Accent color for CTAs, highlights */
    --accent-color: #a788d9;           /* Light Purple - Secondary accent, for subtle elements */
    --text-color: #333                   /* White - For backgrounds and text on dark backgrounds */
    --dark-bg: #222;                   /* Dark Gray Background - For footer or dark sections */

    /* Typography */
    --font-family: 'Poppins', sans-serif; /* Preferred font, with sans-serif fallback */
    --heading-font-size: 2.8em;        /* Base size for main headings (h1, h2) */
    --subheading-font-size: 1.8em;     /* Base size for sub-headings (h3) */
    --body-font-size: 1.1em;           /* Base size for paragraph text */

    /* Spacing */
    --spacing-sm: 15px;                /* Small spacing */
    --spacing-md: 30px;                /* Medium spacing */
    --spacing-lg: 60px;                /* Large spacing */
    --section-padding: 80px 20px;      /* Default padding for main sections (top/bottom, left/right) */

    /* Borders & Shadows */
    --border-radius: 8px;              /* Standard border radius for rounded corners */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);    /* Light shadow for subtle depth */
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.1);   /* Medium shadow for cards, sections */
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.2);    /* Dark shadow for prominent elements like modals */

    /* Transitions */
    --transition-speed: 0.3s ease;     /* Standard transition duration and timing function */
}

/* --- Variables CSS pour une palette moderne --- */
:root {
    --primary-color: #6a00e6; /* Un violet profond et vibrant */
    --secondary-color: #ff4081; /* Un rose vif et moderne */
    --accent-color: #00bcd4; /* Un cyan lumineux pour le contraste */
    --text-dark: #212121;
    --text-light: #f5f5f5;
    --bg-light: #fafafa;
    --bg-dark: #303030;
    --gray-light: #e0e0e0;
    --gray-medium: #9e9e9e;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius-soft: 8px;
    --transition-speed: 0.3s ease-in-out;
}

/* --- Styles Généraux du Corps --- */


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

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

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

.section-container {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--bg-light);
}

.section-container:nth-of-type(even) {
    background-color: #f0f0f0; /* Alternating background for sections */
}

.section-title {
    font-size: 2.8em;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* --- Préchargeur (Preloader) --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark); /* Fond sombre */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader {
    display: flex;
    gap: 10px;
}

.dot {
    width: 15px;
    height: 15px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }
.dot:nth-child(4) { animation-delay: 0.16s; }
.dot:nth-child(5) { animation-delay: 0.32s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        background-color: var(--secondary-color);
    }
    40% {
        transform: scale(1.0);
        background-color: var(--primary-color);
    }
}

.countdown-timer {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-ring {
    transform: rotate(-90deg); /* Start from top */
}

.progress-ring-track,
.progress-ring-bar {
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s linear;
}

.progress-ring-track {
    stroke: var(--gray-medium);
}

.progress-ring-bar {
    stroke: var(--secondary-color);
}

#countdown-text {
    position: absolute;
    color: var(--text-light);
    font-size: 2.5em;
    font-weight: 600;
}

/* --- En-tête (Header) --- */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-speed);
}

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

.logo img {
    max-height: 60px;
    transition: transform var(--transition-speed);
}

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

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-nav ul li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transform: translateX(-100%);
    transition: transform var(--transition-speed);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    transform: translateX(0%);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--primary-color);
    cursor: pointer;
    display: none;
    transition: color var(--transition-speed);
}

.menu-toggle:hover {
    color: var(--secondary-color);
}

/* --- Section Héro (Product Showcase) --- */
.hero-product-showcase {
    background: linear-gradient(135deg, var(--bg-light), #e6e6e6);
    padding: 120px 20px 60px; /* Adjusted padding for fixed header */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Ensure it takes a good portion of the viewport */
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards ease-out;
}

.hero-content h1 {
    font-size: 3.8em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-content p {
    font-size: 1.5em;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-soft);
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 64, 129, 0.3);
    transition: transform var(--transition-speed), background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.button:hover {
    background-color: #d43c17; /* Slightly darker secondary */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 64, 129, 0.4);
}

/* --- Slideshow d'Images Héro (Carrousel) --- */
.hero-image-slideshow {
    width: 100%;
    max-width: 900px;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-medium);
    margin-top: 40px;
    /* --- Amélioration de la hauteur du carrousel --- */
    max-height: 400px; /* Limite la hauteur maximale du conteneur du carrousel */
}

.slides-container {
    display: flex;
    transition: transform 0.8s ease-in-out;
    height: 100%; /* Important pour que les slides remplissent le conteneur */
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    height: 100%; /* Chaque slide prend 100% de la hauteur de son parent */
}

.slide img {
    width: 100%;
    height: 100%; /* L'image remplit la hauteur du slide */
    display: block;
    border-radius: var(--border-radius-soft);
    /* Assure que l'image couvre la zone sans être déformée, coupant si nécessaire */
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    font-size: 1.1em;
    text-align: center;
    border-bottom-left-radius: var(--border-radius-soft);
    border-bottom-right-radius: var(--border-radius-soft);
    transform: translateY(100%); /* Start hidden */
    transition: transform 0.4s ease-out;
}

.slide:hover .slide-caption {
    transform: translateY(0); /* Reveal on hover */
}

.tiktok-link {
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-speed);
}

.tiktok-link:hover {
    color: var(--accent-color);
}

.tiktok-link i {
    font-size: 1.2em;
}


/* --- Modal d'Image --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px); /* Effet de flou moderne */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.active {
    display: flex; /* Use flex to center content */
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--border-radius-soft);
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.modal-close:hover,
.modal-close:focus {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

/* --- Section Héro (Challenge Intro) --- */
.hero-challenge-intro {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a749f7 100%); /* Gradient plus dynamique */
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%); /* Forme géométrique */
}

.hero-challenge-intro h1 {
    font-size: 4em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    animation: slideInUp 1s forwards ease-out;
    opacity: 0;
}

.hero-challenge-intro .subtitle {
    font-size: 1.8em;
    margin-bottom: 40px;
    animation: fadeIn 1.5s forwards ease-out 0.5s;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1.5s forwards ease-out 0.8s;
    opacity: 0;
}

.cta-buttons .btn {
    display: inline-block;
    padding: 16px 35px;
    border-radius: 50px; /* Boutons plus arrondis */
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
}

.cta-buttons .primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 64, 129, 0.4);
}

.cta-buttons .primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 64, 129, 0.6);
    background-color: #d43c17;
}

.cta-buttons .secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.cta-buttons .secondary:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.4);
}

/* Animation des ondes sonores */
.hero-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.sound-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform-origin: bottom center;
    animation: waveAnimation 5s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wave-1 { animation-delay: 0s; height: 70px; }
.wave-2 { animation-delay: 0.5s; height: 80px; background: rgba(255, 255, 255, 0.08); }
.wave-3 { animation-delay: 1s; height: 90px; background: rgba(255, 255, 255, 0.06); }
.wave-4 { animation-delay: 1.5s; height: 100px; background: rgba(255, 255, 255, 0.04); }
.wave-5 { animation-delay: 2s; height: 90px; background: rgba(255, 255, 255, 0.08); }
.wave-6 { animation-delay: 2.5s; height: 70px; background: rgba(255, 255, 255, 0.1); }

@keyframes waveAnimation {
    0%, 100% { transform: scaleY(0.7); opacity: 0.7; }
    50% { transform: scaleY(1.3); opacity: 1; }
}

/* --- Section À Propos (About Us) --- */
.about-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
    text-align: left;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-content .brand-name {
    color: var(--primary-color);
    font-weight: 700;
}

.about-content .highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

.about-content .challenge-name {
    font-weight: 600;
    color: var(--accent-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
    list-style: none;
    padding: 0;
}

.feature-item {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-light);
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.cta-button {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 6px 15px rgba(106, 0, 230, 0.3);
    transition: transform var(--transition-speed), background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #5a00c7; /* Darker primary */
    box-shadow: 0 8px 20px rgba(106, 0, 230, 0.4);
}

/* --- Section Types de Challenges --- */
.challenge-types-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f0f0f0, var(--bg-light));
}

.challenge-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.challenge-division {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.challenge-division:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-medium);
}

.challenge-division h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.challenge-division p {
    color: var(--text-dark);
    margin-bottom: 25px;
}

.challenge-button {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    width: fit-content; /* Allow button to shrink */
    max-width: 90%; /* Max width for button text */
    margin-top: auto; /* Push button to bottom */
}

.challenge-button:hover {
    background-color: #008fa0; /* Darker accent */
    transform: scale(1.02);
}

.youtube-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    margin-top: 25px;
    border-radius: var(--border-radius-soft);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.youtube-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--border-radius-soft);
}

/* --- Section Avantages du Challenge (Benefits) --- */
#challenge-benefits {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

#challenge-benefits h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

#challenge-benefits .intro-text,
#challenge-benefits .conclusion-text {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.2em;
    color: var(--text-dark);
    line-height: 1.8;
}

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

.benefit-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-light);
    text-align: left;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.benefit-card h3 {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-card h3 i {
    font-size: 1.2em;
    color: var(--primary-color);
}

.benefit-card p {
    color: var(--text-dark);
    font-size: 1.05em;
}

/* --- Section Info Challenge --- */
#challenge-info {
    padding: 80px 20px;
    background-color: #f0f0f0;
}

#challenge-info p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-dark);
}

.links-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(45deg, var(--primary-color), #8e2de2);
    color: white;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-speed), background var(--transition-speed);
    min-width: 280px;
    max-width: 400px;
    text-align: center;
}

.grid-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(45deg, #a749f7, var(--primary-color));
}

.grid-item i {
    font-size: 3em;
    margin-bottom: 15px;
}

.grid-item span {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 5px;
}

.grid-item small {
    font-size: 0.9em;
    opacity: 0.8;
}

/* --- Section Comment ça Marche ? (How It Works) --- */
#how-it-works {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

#how-it-works .instruction {
    font-size: 1.2em;
    max-width: 800px;
    margin: 40px auto 0;
    color: var(--text-dark);
    line-height: 1.8;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-item {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.step-icon {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    animation: bounceIn 1s ease-out; /* Simple bounce animation */
}

.step-item h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step-item p {
    color: var(--text-dark);
}

/* --- Témoignages (Testimonials) - Si activé --- */
#testimonials {
    padding: 80px 20px;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
    display: none; /* Keep hidden as per HTML, but styled if enabled */
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-top: 40px;
    position: relative;
    width: 100%;
}

.testimonial-item {
    flex: 0 0 100%; /* Each item takes full width of slider */
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-light);
    text-align: center;
    margin: 0 15px; /* Spacing between items */
    transition: transform 0.5s ease;
}

.testimonial-item p {
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.testimonial-item span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1em;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }


/* --- Pied de page (Footer) --- */
#footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 50px 20px;
    text-align: center;
    border-top: 5px solid var(--primary-color); /* Ligne de séparation stylée */
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-contact-text {
    font-size: 1.2em;
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--accent-color);
}

.social-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    color: white;
    font-size: 2em;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px) scale(1.1);
}

.copyright-text {
    font-size: 0.9em;
    color: var(--gray-medium);
}

/* --- Animations Cléframe --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes bounceIn {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
        opacity: 1;
    }
    80% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* --- Media Queries pour la Réactivité --- */
@media (max-width: 992px) {
    .hero-product-showcase {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-challenge-intro h1 {
        font-size: 3.2em;
    }

    .hero-challenge-intro .subtitle {
        font-size: 1.4em;
    }

    .benefits-grid,
    .challenge-container,
    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-medium);
        padding-bottom: 10px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li a {
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--gray-light);
    }
    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-product-showcase {
        padding: 100px 15px 40px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .hero-image-slideshow {
        max-height: 300px; /* Ajustement de la hauteur du carrousel pour les écrans moyens */
    }

    .hero-challenge-intro {
        padding: 80px 15px;
        margin-top: 15px;
    }

    .hero-challenge-intro h1 {
        font-size: 2.5em;
    }

    .hero-challenge-intro .subtitle {
        font-size: 1.2em;
    }

    .cta-buttons .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .section-title {
        font-size: 2.2em;
    }

    .about-content p,
    #challenge-benefits .intro-text,
    #challenge-benefits .conclusion-text,
    #challenge-info p,
    #how-it-works .instruction {
        font-size: 1em;
    }

    .feature-item,
    .benefit-card,
    .step-item,
    .challenge-division {
        padding: 20px;
    }

    .grid-item {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }

    .hero-challenge-intro h1 {
        font-size: 2em;
    }

    .hero-challenge-intro .subtitle {
        font-size: 1em;
    }

    .hero-image-slideshow {
        max-height: 250px; /* Ajustement de la hauteur du carrousel pour les petits écrans */
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-buttons .btn {
        width: 80%;
        margin: 0 auto;
    }

    .section-title {
        font-size: 1.8em;
    }

    .feature-item,
    .benefit-card,
    .step-item,
    .challenge-division {
        font-size: 0.9em;
    }

    .step-icon {
        font-size: 2.8em;
    }

    .social-links a {
        font-size: 1.8em;
    }
}