/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.6;
}

/* ======================================= */
/* NAVBAR (NOUVELLE VERSION)               */
/* ======================================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: white;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    z-index: 1000;
}

/* Style du logo */
.logo-link {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 40px; /* Ajustez la hauteur de votre logo */
    width: auto;
}

/* Liens de navigation sur ordinateur */
.desktop-nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: #3e2372;
}

/* Conteneur des boutons sur ordinateur */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Style du bouton Connexion (existant) */
.btn-login {
    background: #3e2372;
    color: white;
    border: 2px solid transparent;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-login:hover {
    background: #6140b2;
}

/* NOUVEAU : Style du bouton Prestataire (outline) */
.btn-outline {
    background-color: transparent;
    color: #1d1d1f;
    border: 2px solid #1d1d1f;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background-color: #1d1d1f;
    color: white;
}


/* ======================================= */
/* NAVBAR MOBILE (VERSION DÉROULANTE)      */
/* ======================================= */

/* --- Style du bouton Burger --- */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001; /* Doit être au-dessus du menu */
}

.burger-menu span {
    width: 2rem;
    height: 3px;
    background: #1d1d1f;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    position: relative;
    transform-origin: center;
}

/* --- Animation du Burger en Croix --- */
.burger-menu.is-active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.burger-menu.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}
.burger-menu.is-active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}


/* --- Style du Menu Déroulant --- */
.mobile-nav {
    position: fixed;
    top: 60px; /* Hauteur de la navbar, à ajuster si besoin */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px); /* Prend toute la hauteur restante */
    background: white;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 2rem;

    /* Animation de déroulement */
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none; /* Inactif quand caché */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.mobile-nav.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Actif quand visible */
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* CORRIGÉ : Espacement réduit (avant 1.5rem) */
    flex-grow: 1; /* Pousse les boutons vers le bas */
}

.mobile-nav-links a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 1.2rem; /* CORRIGÉ : Taille réduite (avant 1.5rem) */
    font-weight: 400;
}
.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.mobile-nav-buttons .btn-primary {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
}

/* On s'assure que les couleurs des boutons sont correctes */
.mobile-nav .btn-dark {
    background-color: #1d1d1f;
    color: white;
}
.mobile-nav .btn-outline {
    background-color: transparent;
    border: 2px solid #1d1d1f;
    color: #1d1d1f;
}

/* --- Responsive : Activation du Burger --- */
@media (max-width: 960px) {
    .navbar {
        top: 0;
        left: 0;
        width: 100%;
        transform: none;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: none;
        padding: 0.8rem 1.5rem;
        height: 60px; /* On fixe la hauteur pour le positionnement du menu */
    }
    
    .desktop-nav, .nav-buttons {
        display: none;
    }
    .burger-menu {
        display: flex;
    }
}

/* HERO */
.hero {
    height: 100vh;
    background: url('img/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: flex-start; /* CORRIGÉ : On aligne le contenu en haut */
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    
    /* AJOUT : On contrôle l'espace depuis le haut avec un padding */
    padding-top: 160px;
}
.hero-content {
    max-width: 900px;
    width: 100%;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
    user-select: none;
}

.gradient-text {
    background: linear-gradient(90deg, #3e2372, #6140b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    user-select: none;
}

.hero-content .hero-subtext {
    margin-top: -1.5rem !important; 
    font-size: 0.9rem;
    font-weight: 400;
    color: #6e6e73;
    user-select: none;
}

/* Bouton classique, arrondi, texte en gras, sans ombre */
.btn-primary.btn-large {
    padding: 1rem 3.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    background-color: #3e2372;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;
    user-select: none;
    box-shadow: none;
    text-decoration: none; /* CORRECTION : On retire la ligne sous le bouton */
}

.btn-primary.btn-large:hover,
.btn-primary.btn-large:focus {
    background-color: #6140b2;
    transform: translateY(-3px);
    outline: none;
}

.btn-primary.btn-large:active {
    background-color: #3e2372;
    transform: translateY(0);
}

/* ======================================= */
/* FOOTER (VERSION COMPLÈTE)               */
/* ======================================= */
.site-footer {
    background-color: #1d1d1f; /* Fond sombre pour un look pro */
    color: #a0aec0; /* Couleur de texte gris clair */
    padding: 4rem 5% 0;
    font-size: 1rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    /* Grille responsive : 4 colonnes sur grand écran, 2 sur tablette, 1 sur mobile */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-column .logo {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li a {
    color: #a0aec0;
    text-decoration: none;
    display: block;
    padding: 0.4rem 0;
    transition: color 0.2s ease-in-out, padding-left 0.2s ease-in-out;
}

.footer-column ul li a:hover {
    color: #6140b2;
    padding-left: 5px; /* Petit décalage au survol */
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-block;
    color: #a0aec0;
}

.social-icons a:hover {
    color: #ffffff;
}

.social-icons svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: color 0.2s ease-in-out;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #374151; /* Ligne de séparation subtile */
    font-size: 0.9rem;
    color: #718096;
}

/* On s'assure que la première colonne a plus d'espace */
.footer-column:first-child {
    grid-column: span 1;
}

@media (min-width: 640px) {
    .footer-column:first-child {
        grid-column: span 2; /* Sur tablette, la première colonne prend 2 places */
    }
}
@media (min-width: 1024px) {
    .footer-column:first-child {
        grid-column: span 1; /* Sur grand écran, chaque colonne prend 1 place */
    }
}


/* ================================================= */
/* WHY US SECTION (VERSION SIMPLE ET UNIFORME)     */
/* ================================================= */

.why-us {
    padding: 1rem 5%;
    max-width: 2000px;
    margin: 0 auto 3rem;
    user-select: none;
}

.why-title {
    font-weight: 800;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #1d1d1f;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.why-title .subtext {
    font-weight: 400;
    font-size: 1.2rem;
    color: #6e6e73;
    margin-left: 0;
    margin-top: 0.5rem;
}

.why-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;  /* On réduit un peu l'écart entre les cartes */
    max-width: 1400px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3e2372 0%, #6140b2 100%);
    border-radius: 3px;
    z-index: 1;
    transform-origin: top;
    transform: translateX(-50%) scaleY(0);
    transition: transform 1.2s cubic-bezier(0.86, 0, 0.07, 1);
}

.why-timeline.active .timeline-line {
    transform: translateX(-50%) scaleY(1);
}

/* Style unique et simple pour TOUTES les cartes */
.why-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: calc(50% - 35px);
    z-index: 2;
    padding: 1.5rem;
    
    /* On aligne l'image et le texte côte à côte */
    display: flex;
    align-items: center;
    gap: 1.5rem;

    /* Animation */
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

/* Style unique pour TOUTES les images */
.why-card-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 18px;
}

/* Styles communs (pas de changement) */
.why-card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.why-card.left {
    align-self: flex-start;
}

.why-card.right {
    align-self: flex-end;
}

.why-content h4 {
    color: #1d1d1f;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.why-content p {
    color: #6e6e73;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.btn-card-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3e2372;
    background-color: #e3ddf1;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-card-cta:hover {
    background-color: #3e2372;
    color: #ffffff;
}

.card-point {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    background-color: #3e2372;
    border: 5px solid #f5f5f7;
    border-radius: 50%;
    z-index: 3;
    transform: translateY(-50%) scale(0);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transition-delay: 0.3s;
}

.why-card.right .card-point { left: -47px; }
.why-card.left .card-point { right: -47px; }

.why-card.active .card-point {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}


/* VERSION MOBILE (simplifiée aussi) */
@media (max-width: 768px) {
    .why-card {
        display: block;
        margin-top: 20px; 
    }

    .why-card-image {
        display: block;
        height: 120px;
        width: auto;
        margin: 0 auto 1rem;
    }

    .why-content {
        text-align: center;
    }
}


/* ===================================================== */
/* SECTION NOS PRESTATIONS (MISE EN PAGE CARROUSEL)      */
/* ===================================================== */
.new-services {
    padding: 1rem 0;
    background-color: #f5f5f7;
    /* --- CORRECTIONS --- */
    position: relative;   /* On s'assure que l'empilement est correct */
    z-index: 2;         /* On la place au-dessus de la section hero */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 5%;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.section-header .subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #6e6e73;
    max-width: 500px;
    margin: 0 auto;
}

.new-service-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 5%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.new-service-grid::-webkit-scrollbar {
    display: none;
}

.new-service-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 0 0 340px;
    scroll-snap-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}

.new-service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.new-service-card.active {
    opacity: 1;
    transform: translateY(0);
}

.new-service-card:nth-child(2) { transition-delay: 0.1s; }
.new-service-card:nth-child(3) { transition-delay: 0.2s; }
.new-service-card:nth-child(4) { transition-delay: 0.3s; }

.new-service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
}

.card-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

.card-options {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.card-options h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.card-options ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.card-options li {
    font-size: 0.9rem;
    color: #6e6e73;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.card-options li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #3e2372;
    font-weight: bold;
}

.btn-card {
    display: block;
    text-align: center;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    margin-top: auto;
    transition: all 0.2s ease-in-out;
}

.btn-card:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-card.color-1 {
    background-color: #3e2372;
}
.btn-card.color-2 {
    background-color: #6140b2;
}
.btn-card.color-3 {
    background-color: #1d1d1f;
}

/* ======================================= */
/* SECTION DEVENIR PRESTATAIRE             */
/* ======================================= */
.join-us {
    padding: 1rem 5%;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e7;
}

.join-us-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.join-us-content {
    flex: 1;
    max-width: 500px;
}

.join-us-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.join-us-content p {
    font-size: 1.1rem;
    color: #6e6e73;
    margin-bottom: 2.5rem;
}

.join-us-image {
    flex: 1;
    text-align: center;
}

/* CORRECTION : Style de l'image */
.join-us-image img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    mask-image: radial-gradient(circle, white 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, white 70%, transparent 100%);
}

/* On cache la div des types de prestataire qui n'est plus dans le HTML */
.prestataire-types {
    display: none;
}


/* ================================================= */
/* RESPONSIVE                                        */
/* ================================================= */

@media (max-width: 1000px) {
    .why-timeline {
        gap: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .timeline-line,
    .card-point {
        display: none;
    }

    .why-card {
        width: 100%;
        max-width: 500px;
        align-self: center !important;
        margin: 0 auto;
    }
}

@media (max-width: 980px) and (min-width: 660px) {
    .new-service-card:nth-child(n) {
        transition-delay: 0s;
    }
    .new-service-card:nth-child(2n + 2) {
        transition-delay: 0.1s;
    }
}

@media (max-width: 960px) {
    .join-us-container {
        flex-direction: column;
        text-align: center;
    }

    .join-us-image {
        margin-top: 3rem;
    }
}


@media (max-width: 768px) {
    .navbar nav {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        padding: 0 1rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .btn-primary.btn-large {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .why-card {
        flex-direction: row;
        box-shadow: 0 4px 15px rgba(0,0,0,0.07);
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .new-service-card {
        flex-basis: 280px; 
    }
}



/* ======================================= */
/* SECTION APPEL À L'ACTION FINAL (CTA)    */
/* ======================================= */
.final-cta {
    padding: 1rem 5%;
    background-color: #f5f5f7; /* Couleur de fond du site */
}

.cta-card {
    background-color: #ffffff;
    border-radius: 24px; /* Cohérent avec le reste du site */
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.1rem;
    color: #6e6e73;
    margin-bottom: 2.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Nouvelle variante sombre pour les boutons */
.btn-dark {
    background-color: #1d1d1f;
    color: white;
    box-shadow: none;
}

.btn-dark:hover {
    background-color: #333333;
}

/* Ajustements responsives */
@media (max-width: 768px) {
    .cta-card {
        padding: 2.5rem 1.5rem;
    }
    .cta-card h2 {
        font-size: 2rem;
    }
}







/* ======================================= */
/* SECTION COMMENT ÇA MARCHE               */
/* ======================================= */

.how-it-works {
    margin-top: -400px; /* Superposition par défaut pour les grands écrans */
    padding: 10rem 5%;
    position: relative;
    z-index: 3;
    margin-bottom: 4rem;
}

.how-it-works-card {
    max-width: 1100px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 1.5rem 3rem; 
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.how-it-works-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-basis: 25%;
}

.step-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e3ddf1;
    border-radius: 50%;
    color: #3e2372;
    margin-bottom: 1rem;
}

.step-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.25rem;
}

.step-text p {
    font-size: 0.95rem;
    color: #6e6e73;
    line-height: 1.5;
}

.step-arrow {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- AJUSTEMENTS RESPONSIVES --- */

/* Pour les écrans de hauteur moyenne (laptops) */
@media (max-height: 850px) {
    .how-it-works {
        margin-top: -180px;
    }
}

/* Pour les écrans de faible hauteur */
@media (max-height: 720px) {
    .how-it-works {
        margin-top: -70px;
    }
}

/* Pour les tablettes et mobiles (basé sur la largeur) */
@media (max-width: 960px) {
    .how-it-works {
        margin-top: -15rem; 
        padding-top: 0;
    }
    .how-it-works-card {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    .step-arrow {
        display: none;
    }
    .how-it-works-step {
        position: relative;
        padding-bottom: 2rem;
        width: 100%;
    }
    .how-it-works-step:not(:last-child)::after {
        content: '↓';
        font-size: 2rem;
        color: #d1d5db;
        position: absolute;
        bottom: -0.5rem;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ======================================= */
/* SECTION AVIS CLIENTS (MARQUEE)          */
/* ======================================= */
.reviews {
    padding: 1rem 0;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e7;
}

/* Conteneur principal du marquee */
.reviews-marquee {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden; /* Très important : cache ce qui dépasse */

    /* Effet de fondu sur les côtés pour une meilleure intégration */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* L'animation s'arrête au survol de la souris */
.reviews-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* La piste qui contient les cartes */
.marquee-track {
    display: flex;
    gap: 1.5rem;
    /* Propriété pour optimiser la performance de l'animation */
    will-change: transform; 
}

/* Application des animations */
.track-left {
    animation: scrollLeft 40s linear infinite;
}
.track-right {
    animation: scrollRight 40s linear infinite reverse; /* On inverse pour aller à droite */
}

/* Définition des animations de défilement */
@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes scrollRight {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}


/* ======================================= */
/* SECTION AVIS CLIENTS (MARQUEE)          */
/* ======================================= */
.reviews {
    padding: 6rem 0;
    background-color: #f5f5f7;
    border-top: 1px solid #e5e5e7;
}

.reviews-marquee {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* La piste qui contient les cartes */
.marquee-track {
    display: inline-flex; /* CORRECTION CLÉ : Assure le bon calcul de la largeur totale */
    gap: 1.5rem;
    will-change: transform; 
}

.track-left {
    animation: scrollLeft 35s linear infinite;
}
.track-right {
    animation: scrollRight 35s linear infinite reverse;
}

@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes scrollRight {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}


/* Style de base pour ordinateur */
.review-card {
    flex-shrink: 0;
    width: 450px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
}

.review-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-card .author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
}

.author-info span {
    font-size: 0.9rem;
    color: #6e6e73;
}

.review-card .stars {
    margin-left: auto;
    font-size: 1.2rem;
    color: #3e2372;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}


/* --- Responsive : On corrige la vitesse sur mobile --- */
@media (max-width: 768px) {
    .reviews {
        padding: 4rem 0;
    }

    .track-left {
        animation-duration: 10s;
    }
    .track-right {
        animation-duration: 10s;
    }
    
    .review-card {
        width: 85vw; 
        max-width: 340px;
        padding: 1.2rem 1.5rem;
    }

    .review-text {
        font-size: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;  
        overflow: hidden;
    }

    .review-card.is-duplicate {
        display: flex;
    }
}

/* ======================================= */
/* CORRECTIF : Forcer l'animation continue */
/* ======================================= */

.reviews-marquee:hover .marquee-track {
    animation-play-state: running !important;
}



/* ======================================= */
/* RÉDUCTION DES TITRES SUR MOBILE         */
/* ======================================= */

@media (max-width: 768px) {

    /* --- Titre et description du HERO --- */
    .hero-content h1 {
        font-size: 2.4rem; /* Avant : 2.8rem */
    }
    .hero-content p {
        font-size: 1.1rem; /* Avant : 1.2rem */
    }

    /* --- Titres des sections principales --- */
    /* (Nos Prestations, Incontournables, Avis, Devenir prestataire) */
    .section-header h2,
    .why-title,
    .join-us-content h2 {
        font-size: 2rem; /* Avant : 2.8rem */
        line-height: 1.3;
    }

    /* --- Sous-titres des sections principales --- */
    .section-header .subtitle,
    .why-title .subtext,
    .join-us-content p {
        font-size: 1rem; /* Avant : 1.1rem ou 1.2rem */
    }

    /* --- Titre de la carte d'action finale --- */
    .cta-card h2 {
        font-size: 1.8rem; /* Avant : 2rem */
    }

}





/* ======================================= */
/* MENU UTILISATEUR DÉROULANT (HEADER)     */
/* ======================================= */

.user-menu {
    position: relative; /* Référence pour le menu déroulant */
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f5f5f7;
    border: 1px solid #e0e0e0;
    padding: 6px;
    padding-right: 1rem;
    border-radius: 50px; /* Effet "pilule" bien arrondi */
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-menu-trigger:hover {
    background-color: #e9e9e9;
}

/* Règle finale et prioritaire pour la taille de l'avatar */
.user-menu-trigger .avatar-sm {
    width: 32px !important;  /* Taille fixe et forcée */
    height: 32px !important; /* Taille fixe et forcée */
    min-width: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-menu-trigger svg {
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px); /* Se place juste en dessous du bouton avec un petit écart */
    right: 0;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    width: 220px;
    z-index: 1001;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-menu-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-dropdown .dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
}

.user-menu-dropdown .dropdown-item:hover {
    background-color: #f5f5f7;
}

.user-menu-dropdown .logout {
    color: #e53e3e;
}
.user-menu-dropdown .logout:hover {
    background-color: #fef2f2;
}

.user-menu-dropdown hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0.5rem 0;
}