:root {
    --primary-color: #1A1D21; 
    --accent-color: #00e3d2ff;  
    --secondary-gray: #666666ff;
    --bg-light: #F4F6F8;
    --white: #FFFFFF;
    --border-color: #E1E4E8;

    --text-dark: var(--primary-color);
    --text-light: var(--secondary-gray);


    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

        .hero-buttons .btn {
            font-weight: 500;
        }
        .hero-content > p {
            font-weight: 400;
        }

        .stats .stat-item h3 {
            color: #00F0C8; 
        }

        .cta-section h2, .cta-section p {
            margin-bottom: 1.5rem;
        }
.logo {
    display: flex;
    align-items: center;
    max-width: 150px;
}

.logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Header --- */
#main-header {
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}
.nav-links a:hover::after {
    width: 100%;
}

.cta-button-nav {
    display: none; 
    background: var(--primary-color);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.cta-button-nav:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- Boutons Généraux --- */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 14px 0 rgba(0, 240, 200, 0.39);
}
.btn-primary:hover {
    transform: 0 6px 20px 0 rgba(0, 240, 200, 0.45);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--accent-color);
}
.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-tertiary {
    background: var(--primary-color);
    color: var(--white);
    width: 100%;
    justify-content: center;
}
.btn-tertiary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* MODIFICATION 1 : Animation Machine à Écrire (Hero) - CORRIGÉE */
.typewriter {
    /* Utilise une variable pour le nombre de caractères pour synchroniser l'animation */
    --char-count: 85;
    position: relative;
    width: max-content; /* Permet au conteneur de prendre la largeur totale du texte */
    max-width: 100%; /* S'assure qu'il ne dépasse pas son parent sur petits écrans */
}

.typewriter::before,
.typewriter::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Le "rideau" qui se retire pour révéler le texte */
.typewriter::before {
    background: var(--primary-color);
    animation: typewriter 4s steps(var(--char-count)) 1s forwards;
}

/* Le curseur qui clignote */
/*
.typewriter::after {
    width: 0.125em;
    background: var(--secondary-color);
    animation: 
        typewriter 4s steps(var(--char-count)) 1s forwards,
        blink 750ms steps(var(--char-count)) infinite;
}
*/

@keyframes typewriter {
    to {
        left: 100%;
    }
}

@keyframes blink {
    to {
        background: transparent;
    }
}

/* Adaptation sur mobile */
@media (max-width: 768px) {
    .typewriter {
        width: auto; /* Fallback pour mobile */
        white-space: normal; /* Permet le retour à la ligne */
    }
    .typewriter::before, .typewriter::after {
        display: none; /* Désactive l'animation sur mobile */
    }
}


.hero::before { /* Effet de grille subtil */
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.hero-content { position: relative; z-index: 1; }
.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto; margin-right: auto;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Sections --- */
section { padding: 80px 0; }
.stats { background: var(--bg-light); padding: 60px 0; border-bottom: 1px solid var(--border-color); }
.services { background: var(--white); }
.packs { background: var(--bg-light); }
.cta-section { background: var(--primary-color); color: var(--white); text-align: center; }

/* --- Animation "Vague de mots" pour le titre de la section CTA --- */
#cta-title {
    /* Prépare le conteneur pour l'animation des mots */
    display: flex;
    flex-wrap: wrap; /* Permet le retour à la ligne des mots */
    justify-content: center;
    /* Cache le débordement des mots pendant l'animation */
    overflow: hidden; 
    /* Un peu d'espace en bas pour que le soulèvement soit visible */
    padding-bottom: 0.2em;
}

/* Style de chaque mot (span) */
#cta-title span {
    display: inline-block;
    opacity: 0;
    /* Les mots commencent légèrement plus bas */
    transform: translateY(100%); 
    transition: opacity 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000), 
                transform 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

/* Classe ajoutée par JS lorsque la section est visible */
#cta-title.animate span {
    opacity: 1;
    /* Les mots retournent à leur position d'origine */
    transform: translateY(0);
}

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.stat-item h3 { 
    font-size: 4.5rem; 
    font-weight: 800; 
    color: var(--secondary-color); 
}
.stat-item p { color: var(--text-light); font-weight: 500; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}
.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: var(--accent-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.service-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.service-card p { color: var(--text-light); }

/* MODIFICATION 2 & 3 : Section Partenaires et CTA */
.partners {
    background-color: var(--white);
    padding: 80px 0;
}

.partners-scroller {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 4rem; /* Espace entre les logos */
    width: calc(250px * 12); /* Largeur d'un logo + gap * nombre total de logos */
    animation: scroll 40s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused; /* Met en pause le défilement au survol */
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* Défile jusqu'au début de la liste dupliquée */
}

.partners-track img {
    height: 60px; /* Hauteur uniforme pour tous les logos */
    width: auto;
    max-width: 200px;
    /* filter: grayscale(100%);  Logos en noir et blanc par défaut */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partners-track img:hover {
    filter: grayscale(0%); /* Couleur originale au survol */
    opacity: 1;
    transform: scale(1.1);
}

.partners-cta {
    text-align: center;
    margin-top: 4rem; /* Espace au-dessus du bouton */
}

/* Ajout d'une barre décorative sous les titres de section */
.section-title .title-underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 1.5rem; /* Espace au-dessus et en dessous */
    border-radius: 2px;
}

/* Packs */
.packs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: stretch; 
}

.pack-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    flex-basis: 300px; 
    flex-grow: 1;
    max-width: 350px; 
}

.pack-card .pack-title {
    white-space: nowrap;
}

.pack-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.pack-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.pack-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pack-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}
.pack-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.pack-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    flex-grow: 1;
}

.pack-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.pack-features i {
    color: var(--accent-color);
}


.pack-pricing-options {
    margin-top: auto; 
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.pack-pricing-options p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: left;
}
.pack-pricing-options strong {
    font-weight: 700;
    color: var(--primary-color);
}

/* Offre "FULL IMPACT" */
.full-impact-offer {
    margin-top: 5rem;
    padding: 3rem;
    border-radius: 20px;
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}
.full-impact-offer:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.impact-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.full-impact-offer p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.impact-price {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.old-price {
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: line-through;
    opacity: 0.7;
    margin-left: 0.5rem;
}

.savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* CTA Section */
.cta-section h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }

/* --- Footer --- */
footer { background: var(--primary-color); color: rgba(255, 255, 255, 0.8); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding-bottom: 4rem; }
.footer-about h3 { color: var(--white); margin-bottom: 1.5rem; }
.footer-about p { margin-bottom: 2rem; line-height: 1.8; }
.social-links { display: flex; gap: 1rem; }
.social-links a {
    color: var(--primary-color);
    background: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-links a:hover { background: var(--accent-color); transform: scale(1.1); }
.footer-form-container h3 { color: var(--white); font-size: 1.8rem; margin-bottom: 0.5rem; }
.footer-form-container p { margin-bottom: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.footer-about .logo {
    white-space: nowrap;
}

.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.6); }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 240, 200, 0.3);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Responsive & Mobile Menu --- */
.mobile-menu-button { display: none; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}
#main-header.nav-open .mobile-menu-button span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#main-header.nav-open .mobile-menu-button span:nth-child(2) { opacity: 0; }
#main-header.nav-open .mobile-menu-button span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

@media (min-width: 992px) {
    .cta-button-nav { display: inline-block; }
}

@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }
    #main-header.nav-open .nav-links { transform: translateX(0); }
    .nav-links a { font-size: 1.5rem; }
    .mobile-menu-button { display: block; }
    .cta-button-nav { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
    .pack-card {
        flex-basis: 100%; /* Les cartes prennent toute la largeur */
        max-width: 400px; /* Limite la largeur sur les tablettes */
    }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title h2 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .btn { padding: 0.8rem 1.8rem; font-size: 0.9rem; }
    .stats-grid { gap: 1rem; }
    .stat-item h3 { font-size: 3.5rem; }
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
