:root {
    /* Variables du thème clair (par défaut) */
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #00a8ff;
    --accent-color-dark: #0086cc;
    --text-color: #333333;
    --text-color-light: #666666;
    --background-color: #ffffff;
    --background-gradient: linear-gradient(135deg, rgba(0, 86, 179, 0.05), rgba(0, 168, 255, 0.05));
    --card-bg: #ffffff;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-color: #e5e5e5;
    --input-bg: #f9f9f9;
    --footer-bg: #002347;
    --footer-text: #ffffff;
    --section-divider: rgba(0, 0, 0, 0.1);
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark: #1d1d1d;
    --light: #f8f9fa;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --accent-color-rgb: 0, 168, 255;
    --primary-rgb: 0, 86, 179;
    --secondary-rgb: 0, 51, 102;

    /* Autres variables inchangées */
}

/* Thème sombre */
.dark-theme {
    --primary-color: #1e88e5;
    --secondary-color: #004d99;
    --accent-color-dark: #00b0ff;
    --text-color: #e0e0e0;
    --text-color-light: var(--text-color);
    --background-color: #121212;
    --background-gradient: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(64, 196, 255, 0.1));
    --card-bg: #1e1e1e;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --border-color: #333333;
    --input-bg: #2c2c2c;
    --section-divider: rgba(255, 255, 255, 0.1);
    --light-bg: #1e1e1e;
    --white: #f0f0f0;
    --dark: #f8f9fa;
    --light: #222222;
}

/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ajout d'une transition à tous les éléments pour les changements de thème */
*, *::before, *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Styles de base pour éviter les débordements */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Ajustements pour les conteneurs principaux */
.navbar,
.hero,
section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Améliorations pour la navbar */
.navbar {
    position: fixed;
    width: 100%;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet de navbar plus compact au scroll */
.navbar.scrolled {
    padding: 0.5rem 5%;
    background: rgba(var(--secondary-rgb), 0.95);
    backdrop-filter: blur(10px);
}

/* Style amélioré pour nav-links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: flex-end; /* aligne à droite */
}

/* Uniformiser les animations pour tous les liens de navigation, y compris devis et contact */
.navbar .nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 2.5rem;
    box-sizing: border-box;
}

/* Suppression complète de l'élément before qui crée la barre horizontale */
.navbar .nav-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Style spécial pour les boutons devis/contact */
.navbar .nav-links a.devis-btn,
.navbar .nav-links a.contact-btn {
    background: var(--accent-color);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 168, 255, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar .nav-links a.devis-btn:hover,
.navbar .nav-links a.contact-btn:hover {
    background: var(--accent-color-dark);
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

/* Suppression de la ligne de soulignement pour les boutons */
.navbar .nav-links a.devis-btn::before,
.navbar .nav-links a.contact-btn::before {
    display: none;
}

/* Adaptation pour mobile */
@media (max-width: 1300px) {
    .navbar .nav-links a {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
        height: 2.25rem;
        width: 100%;
        text-align: left;
        border-radius: 8px;
    }
    
    .navbar .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }
    
    .navbar .nav-links a::before {
        display: none;
    }
    
    .navbar .nav-links a.devis-btn,
    .navbar .nav-links a.contact-btn {
        margin-top: 1rem;
        text-align: center;
    }
}

/* S'assurer que TOUS les liens dans nav-links ont bien l'animation d'apparition */
.nav-links a:nth-child(1) { animation-delay: 0.1s; }
.nav-links a:nth-child(2) { animation-delay: 0.2s; }
.nav-links a:nth-child(3) { animation-delay: 0.3s; }
.nav-links a:nth-child(4) { animation-delay: 0.4s; }
.nav-links a:nth-child(5) { animation-delay: 0.5s; }
.nav-links a:nth-child(6) { animation-delay: 0.6s; } /* Pour devis ou contact */
.nav-links a:nth-child(7) { animation-delay: 0.7s; } /* Pour l'autre */

/* Style spécial pour les boutons devis et contact */
.navbar .nav-links a.devis-btn,
.navbar .nav-links a.contact-btn {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Effet hover pour devis et contact (comme les autres liens) */
.navbar .nav-links a.devis-btn:hover,
.navbar .nav-links a.contact-btn:hover {
    color: var(--white);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}

/* État actif pour devis et contact */
.navbar .nav-links a.devis-btn.active,
.navbar .nav-links a.contact-btn.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Indicateur actif pour tous les liens, y compris devis et contact */
.navbar .nav-links a.active::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulseWidth 2s infinite;
}



/* Ajustement pour le mode responsive */
@media (max-width: 1300px) {
    .navbar .nav-links a {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
        height: 2.25rem;
        width: 100%;
        text-align: left;
        border-radius: 8px;
    }
    
    .navbar .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }
    
    .navbar .nav-links a::before {
        display: none;
    }
    
    .navbar .nav-links a.devis-btn,
    .navbar .nav-links a.contact-btn {
        margin-top: 1rem;
        text-align: center;
    }
}

/* Style de la barre de défilement pour Chrome/Safari/Edge */
.nav-links::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.nav-links::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-links::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.nav-links::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

/* Animation pour la navbar au chargement de la page */
@keyframes navbarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Délai progressif pour l'apparition des liens */
.nav-links a {
    opacity: 0;
    animation: navItemFadeIn 0.35s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    position: relative;
    overflow: hidden;
}

.nav-links a:nth-child(1) { animation-delay: 0.05s; }
.nav-links a:nth-child(2) { animation-delay: 0.1s; }
.nav-links a:nth-child(3) { animation-delay: 0.15s; }
.nav-links a:nth-child(4) { animation-delay: 0.2s; }
.nav-links a:nth-child(5) { animation-delay: 0.25s; }
.nav-links a:nth-child(6) { animation-delay: 0.3s; }
.nav-links a:nth-child(7) { animation-delay: 0.35s; }
.nav-links a:nth-child(8) { animation-delay: 0.4s; }

@keyframes navItemFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-15px);
        filter: blur(5px);
    }
    50% {
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Effet de soulignement moderne pour les liens de navigation */
.navbar .nav-links a::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease, left 0.3s ease, opacity 0.2s ease;
    opacity: 0;
    box-shadow: 0 0 8px var(--accent-color);
    transform: translateX(-50%);
    border-radius: 4px;
    display: block;
}

.navbar .nav-links a:hover::before {
    width: 70%;
    opacity: 0.8;
}

/* Style spécial pour le lien actif */
.navbar .nav-links a.active {
    color: var(--accent-color);
    opacity: 1;
}

/* Indicateur actif pour tous les liens */
.navbar .nav-links a.active::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px rgba(0, 168, 255, 0.4);
    animation: pulseNavIndicator 2s infinite alternate;
}

@keyframes pulseNavIndicator {
    0% {
        box-shadow: 0 0 10px var(--accent-color), 0 0 5px rgba(0, 168, 255, 0.4);
        opacity: 0.8;
    }
    100% {
        box-shadow: 0 0 15px var(--accent-color), 0 0 20px rgba(0, 168, 255, 0.6);
        opacity: 1;
    }
}

/* Hero moderne */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.8) 0%, rgba(36, 59, 85, 0.8) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: calc(80px + 2rem); /* Ajout d'un padding-top basé sur la hauteur de la navbar */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(var(--dark-theme, 0.6)) contrast(1.1) saturate(1.2) blur(8px);
    z-index: -1;
    animation: subtle-zoom 30s infinite alternate ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 80px); /* Ajustement de la hauteur minimale */
    width: 100%;
}

.hero-content::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 6s infinite alternate;
}

@keyframes subtle-zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 1.5rem 1rem;
        padding-top: calc(70px + 1.5rem);
    }
    
    .hero-content {
        padding: 1rem;
        min-height: calc(100vh - 70px);
    }
    
    .hero-content::before {
        width: 100px;
        height: 100px;
        filter: blur(60px);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem 0.5rem;
        padding-top: calc(60px + 1rem);
    }
    
    .hero-content {
        padding: 0.5rem;
        min-height: calc(100vh - 60px);
    }
    
    .hero-content::before {
        width: 80px;
        height: 80px;
        filter: blur(40px);
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.3;
    /* Suppression de l'animation lente */
    /* animation: simpleFadeIn 1s ease; */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    margin-top: 80px;
}

.glitch {
    position: relative;
    color: var(--light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.glitch::before,
.glitch::after {
    display: none; /* Masquer les pseudo-éléments pour désactiver l'effet glitch */
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Suppression des animations */
    /* animation: glitch-effect 0.3s cubic-bezier(.25, .46, .45, .94) both; */
    /* animation-delay: 0.8s; */
}

.glitch::before {
    color: #0ff;
    z-index: -1;
    /* clip: rect(24px, 550px, 90px, 0); */
    transform: translate3d(-5px, 0, 0);
    /* animation: glitch-anim-1 0.7s infinite linear alternate-reverse; */
    opacity: 0.8;
}

.glitch::after {
    color: #f0f;
    z-index: -2;
    /* clip: rect(85px, 550px, 140px, 0); */
    transform: translate3d(5px, 0, 0);
    /* animation: glitch-anim-2 1s infinite linear alternate-reverse; */
    opacity: 0.8;
}

/* Nous gardons les keyframes au cas où ils seraient utilisés ailleurs, 
   mais ils ne sont plus utilisés pour l'animation glitch */
@keyframes glitch-anim-1 {
    0% {
        clip: rect(2px, 550px, 14px, 0);
        transform: translate3d(-2px, 0, 0);
    }
    20% {
        clip: rect(33px, 550px, 115px, 0);
        transform: translate3d(-4px, 0, 0);
    }
    40% {
        clip: rect(12px, 550px, 15px, 0);
        transform: translate3d(-3px, 0, 0);
    }
    60% {
        clip: rect(25px, 550px, 13px, 0);
        transform: translate3d(-5px, 0, 0);
    }
    80% {
        clip: rect(7px, 550px, 29px, 0);
        transform: translate3d(-1px, 0, 0);
    }
    100% {
        clip: rect(17px, 550px, 88px, 0);
        transform: translate3d(-2px, 0, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(25px, 550px, 99px, 0);
        transform: translate3d(2px, 0, 0);
    }
    20% {
        clip: rect(73px, 550px, 44px, 0);
        transform: translate3d(4px, 0, 0);
    }
    40% {
        clip: rect(51px, 550px, 22px, 0);
        transform: translate3d(3px, 0, 0);
    }
    60% {
        clip: rect(33px, 550px, 98px, 0);
        transform: translate3d(5px, 0, 0);
    }
    80% {
        clip: rect(88px, 550px, 67px, 0);
        transform: translate3d(1px, 0, 0);
    }
    100% {
        clip: rect(42px, 550px, 11px, 0);
        transform: translate3d(2px, 0, 0);
    }
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 1; /* Visible dès le début */
    animation: none; /* Pas d'animation */
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    color: var(--accent-color);
}

.subtitle-line {
    font-size: 0.8em;
    font-weight: 400;
    opacity: 0.9;
    display: block;
    margin-top: 0.5rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
    opacity: 1; /* Visible dès le début */
    animation: none; /* Pas d'animation */
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700; /* Augmentation du poids de la police */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none; /* Suppression du soulignement */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(var(--accent-color-rgb), 0.3); /* Ajout d'une lueur subtile */
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-dark));
    z-index: -1;
    transition: all 0.4s ease;
}

.cta-button.primary {
    color: #ffffff;
    border: 2px solid var(--accent-color);
    background: rgba(0, 0, 0, 0.35); /* Fond plus sombre pour un meilleur contraste */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Ombre de texte plus prononcée */
}

.cta-button.secondary {
    color: #ffffff;
    border: 2px solid var(--accent-color);
    background: rgba(0, 0, 0, 0.35); /* Fond plus sombre pour un meilleur contraste */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Ombre de texte plus prononcée */
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(var(--accent-color-rgb), 0.5); /* Ajout d'une lueur plus intense au survol */
}

.cta-button.primary:hover::before {
    background: none; /* Suppression du dégradé au survol */
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2); /* Fond légèrement plus clair au survol */
    border-color: #ffffff;
    border-width: 2.5px; /* Bordure légèrement plus épaisse au survol */
}

@media (max-width: 768px) {
    .cta-group {
        gap: 1rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cta-group {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .cta-button {
        width: 80%;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
}

/* Services cards modernes */
.services {
    padding: 2rem 5% 8rem 5%;
    margin-top: 0;
    scroll-margin-top: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 2rem;
    width: 64%;
    margin-left: 18%;
    margin-right: 18%;
    gap: 0.96rem;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.service-card {
    grid-column: span 2;
    padding: 0.96rem;
    height: auto;
    min-height: 179px;
}

.service-card:nth-child(7) {
    grid-column: 2 / span 2;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
    }
    
    .service-card {
        grid-column: span 1;
        min-height: 260px;
    }
    
    .service-card:nth-child(7) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }
    
    .service-card {
        min-height: 240px;
    }
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.service-card p {
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-align: center;
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-points {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

.service-points li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    font-size: 0.85rem;
    color: var(--accent-color-dark);
    transition: all 0.3s ease;
    line-height: 1.5;
}

.service-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
}

.service-card {
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transform-origin: center bottom;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.15);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    font-size: 1.28rem;
    color: var(--primary-color);
    margin-bottom: 0.96rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38.4px;
    height: 38.4px;
    background: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    margin: 0 auto 0.96rem auto;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.service-card p {
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-align: center;
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-points {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

.service-points li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    font-size: 0.85rem;
    color: var(--accent-color-dark);
    transition: all 0.3s ease;
    line-height: 1.5;
}

.service-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
}

.service-card:hover .service-points li::before {
    background: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
}

.service-card:hover .service-points li {
    color: var(--text-color);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .service-card {
        padding: 2rem;
    }

    .service-points li {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
}

/* Stats section */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 2rem 5%;
    background: var(--gradient);
    color: white;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 2rem 5% 8rem 5%;
    margin-top: 0;
    scroll-margin-top: 80px;
}

.contact h2 {
    margin-bottom: 3rem;
    color: var(--dark);
    text-align: center;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    align-items: start;  /* Aligner les éléments en haut */
}

.contact-info {
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: 1.5rem;  /* Réduit de 2rem à 1.5rem */
    padding: 1.5rem;  /* Augmenté de 1rem à 1.5rem */
    border-radius: 10px;
    transition: var(--transition);
    background: rgba(0, 86, 179, 0.05);  /* Fond léger par défaut */
}

.info-item:hover {
    background: rgba(0, 86, 179, 0.1);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 0;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
}

.info-content h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.info-content p {
    color: #666;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
}

.contact-form .required-fields-note {
    margin-bottom: 50px;
}


.contact-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-form button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.contact-form button i {
    transition: transform 0.3s ease;
}

.contact-form button:hover i {
    transform: translateX(5px);
}

/* Styles existants pour .contact-form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
    padding-top: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background: var(--input-bg);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(0, 86, 179, 0.03);
    color: var(--text-color);
}

.form-group label {
    position: absolute;
    left: 0;
    top: -1.5rem;
    color: #666;
    font-size: 1rem;
    pointer-events: none;
    margin-bottom: 0.3rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .contact-info {
        padding-right: 0;
        padding-bottom: 2rem;
        border-bottom: 1px solid #ddd;
    }

    .form-group {
        margin-bottom: 2rem;
        margin-top: 0;
    }

    .form-group label {
        top: -1.5rem;
    }
}

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

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
}

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

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text {
    height: 24px;
    width: auto;
    padding-left: 0.5rem;
    padding-right: 1rem;
}

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

@media (max-width: 768px) {
    .logo-text {
        height: 20px;
    }
}

/* Assistance Section */
.assistance {
    padding: 2rem 5% 8rem 5%;
    position: relative;
    margin-top: 0;
    scroll-margin-top: 80px;
}

/* Supprimer l'ancien cadre */
.assistance::before {
    display: none;
}

/* Nouveau style pour le formulaire de devis */
.devis-form {
    max-width: 800px;
    width: 90%;
    margin: 2rem auto;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.devis-form .form-group {
    position: relative;
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;  /* Ajout d'un padding-top pour l'espace avec le label */
}

.devis-form label {
    position: absolute;
    left: 0;
    top: 0;  /* Repositionné au-dessus de l'input */
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.devis-form input,
.devis-form select,
.devis-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-top: 0.5rem;  /* Supprimé la marge du haut */
}

/* Ajuster l'espacement du premier groupe */
.devis-form .form-group:first-child {
    margin-top: 1rem;  /* Espace au début du formulaire */
}

/* Effet de design sur le formulaire */
.devis-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Style du titre */
.assistance h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.assistance h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.assistance-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.assistance-container p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.assistance-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
}

.assistance-link:hover {
    background: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.assistance-link i {
    font-size: 1.5rem;
}

/* Style pour la section Qui sommes-nous */
.about {
    padding: 2rem 5% 8rem 5%;
    margin-top: 0;
    scroll-margin-top: 80px;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

.about-text {
    text-align: left;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    position: relative;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 15px 15px 0 0;
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .about-content {
        padding: 2rem 1rem;
    }
    
    .about-text {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-content {
        padding: 1.5rem 1rem;
    }
    
    .about-text {
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }
    
    .about-text::before {
        border-radius: 10px 10px 0 0;
    }
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Style du titre */
.about h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .about-content {
        padding: 2rem;
    }

    .about-intro {
        font-size: 1.1rem;
    }

    .about-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-content {
        padding: 1.5rem;
    }

    .about-image {
        aspect-ratio: 1/1;
        border-radius: 10px;
    }
}

/* Footer styling */
.footer {
    background: #002347 !important;
    color: #ffffff !important;
    padding: 4rem 5% 0;
}

.footer-content {
    display: flex; /* Utilisez flex pour un alignement en ligne */
    justify-content: space-between; /* Espace entre les sections */
    flex-wrap: wrap; /* Permet de passer à la ligne si nécessaire */
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #ffffff !important;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-assistance-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
}

.footer-assistance-btn:hover {
    background: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Style pour le logo cliquable */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}


/* Style amélioré pour les titres de section */
section h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    max-width: 1200px;
    width: 90%;
    margin: 2rem auto 4rem;
    font-size: 2.4rem;
    position: relative;
    padding-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

section h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    opacity: 0.8;
}

/* Animation au scroll */
section h2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Version mobile */
@media (max-width: 768px) {
    section h2 {
        font-size: 1.8rem;
        margin: 1.5rem auto 3rem;
        padding-bottom: 1.2rem;
    }

    section h2::before {
        width: 80px;
        height: 3px;
    }

    section h2::after {
        width: 40px;
        height: 3px;
        bottom: -5px;
    }
}

/* Style spécifique pour les titres de services et équipe */
.services h2,
.team h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
    width: 100%;
}

/* Ajuster le padding des sections pour aligner avec le contenu */
.contact, .services, .assistance, .partners {
    scroll-margin-top: 80px !important;
}

.about {
    scroll-margin-top: 100px; /* Un peu plus d'espace pour la section about */
}

.team {
    padding: 2rem 5% 8rem 5%;
    margin-top: 0;
    scroll-margin-top: 80px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    padding-bottom: 2rem;
}

.team-member:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.2);
}

.member-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.member-overlay {
    /* Ces styles sont maintenant définis plus bas dans le fichier */
    display: none;
}

.team-member:hover .member-overlay {
    /* Ces styles sont maintenant définis plus bas dans le fichier */
    display: none;
}

.member-icons {
    display: flex;
    gap: 1.5rem;
}

.member-icons i {
    color: white;
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.team-member:hover .member-icons i {
    transform: translateY(0);
}

.team-member h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 1.5rem 0 0.5rem;
}

.member-role {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

.team-member p {
    color: var(--text-color);
    padding: 0 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.member-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.team-member:hover .member-image::after {
    opacity: 0.2;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .member-image {
        height: 300px;
    }
}

/* Style spécifique pour l'image de Célian */
.team-member:nth-child(3) .member-image img {
    object-position: center 30%;  /* Remonte la position de la tête */
}

/* Style moderne pour la section partners */
.partners {
    padding: 2rem 5% 8rem 5%;
    position: relative;
    margin-top: 0;
    scroll-margin-top: 80px;
}

.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.95), rgba(0, 168, 255, 0.95));
    z-index: 1;
}

.partners h2 {
    position: relative;
    z-index: 2;
    color: white;
    margin-bottom: 3rem;
    font-size: 2.4rem;
}

/* Style spécifique pour les barres du titre de la section partners */
.partners h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.partners h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

/* Style pour la scroll bar des partenaires */
.partners-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}

.partners-grid {
    position: relative;
    z-index: 2;
    display: flex;
    padding: 1rem;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    -webkit-backface-visibility: hidden; /* Optimisation pour les navigateurs WebKit */
    backface-visibility: hidden;
}

.partner-card-container {
    display: flex;
    gap: 2rem;
    animation: slidePartners 30s linear infinite;
    width: max-content; /* Assure que le conteneur prend la largeur nécessaire */
    transition: all 0.5s ease-out; /* Ajout d'une transition générale */
    will-change: transform; /* Optimisation des performances */
    -webkit-backface-visibility: hidden; /* Optimisation pour les navigateurs WebKit */
    backface-visibility: hidden;
    /* Répéter les cartes pour éviter les sauts */
    padding-right: 2rem; /* Assure un espacement uniforme */
}

/* Version allégée pour les appareils à faible performance */
@media (prefers-reduced-motion: reduce) {
    .partner-card-container {
        animation-duration: 60s; /* Animation deux fois plus lente */
        animation-timing-function: ease-in-out; /* Timing plus doux */
    }
}

/* Détection des performances - classe ajoutée par JavaScript si nécessaire */
.low-performance .partner-card-container {
    animation-duration: 60s; /* Animation deux fois plus lente */
    animation-timing-function: ease-in-out; /* Timing plus doux */
}

/* Très faibles performances - peut être appliqué automatiquement */
.very-low-performance .partner-card-container {
    animation: none; /* Désactive complètement l'animation */
    transform: translateX(0); /* Position fixe */
}

/* Alternative pour très faibles performances - affichage statique avec flexbox */
.very-low-performance .partners-grid {
    overflow: visible;
}

.very-low-performance .partner-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    width: 100%;
    animation: none;
    transform: none;
}

.very-low-performance .partner-card {
    flex: none;
    min-width: 0;
    width: 100%;
}

/* Pause l'animation au survol avec transition améliorée */
.partner-card-container:hover {
    animation-play-state: paused;
    transform: scale(0.98); /* Légère réduction d'échelle pour effet visuel */
    filter: brightness(1.05); /* Légère augmentation de luminosité */
}

/* Pause l'animation lorsque la page défile pour économiser des ressources */
.partners.paused .partner-card-container {
    animation-play-state: paused;
}

/* Amélioration de l'effet sur les cartes individuelles au survol */
.partner-card {
    flex: 0 0 280px;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Transition plus sophistiquée */
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative; /* Ajout pour l'effet de focus */
    margin: 0; /* Garantir une marge uniforme */
}

/* Effet hover amélioré */
.partner-card:hover {
    transform: translateY(-5px) scale(1.05); /* Légèrement plus grand */
    background: rgba(255, 255, 255, 0.25); /* Plus visible */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); /* Ombre plus prononcée */
    z-index: 10; /* Plus élevé pour être sûr qu'il passe au-dessus des autres */
    border-color: rgba(255, 255, 255, 0.4); /* Bordure plus visible */
}

/* Effet de focus sur la carte survolée */
.partner-card-container:hover .partner-card:not(:hover) {
    filter: brightness(0.8); /* Assombrir les cartes non survolées */
    transform: scale(0.95); /* Réduire légèrement les cartes non survolées */
}

/* Amélioration de l'effet sur le logo */
.partner-card:hover .partner-logo {
    transform: scale(1.1); /* Plus grand */
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)); /* Ajout d'un halo */
}

.partner-logo {
    width: auto;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

/* Style spécifique pour réduire la taille du logo IMMA-TM de 15% */
.partner-logo[alt="IMMA-TM"] {
    height: 51px; /* 60px - 15% = 51px */
}

.partner-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Animation de défilement automatique pour les partner cards */
@keyframes slidePartners {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(calc(-100% / 3), 0, 0); /* Animation sur 1/3 des cartes seulement pour un cycle continu */
    }
}

/* Ajustements responsifs */
@media (max-width: 768px) {
    .partner-card {
        flex: 0 0 220px;
        min-width: 220px;
        padding: 2rem;
    }
    
    .partner-logo {
        height: 45px;
    }
    
    /* IMMA-TM réduit de 15% sur tablette */
    .partner-logo[alt="IMMA-TM"] {
        height: 38px; /* 45px - 15% = 38px */
    }
    
    @keyframes slidePartners {
        0% {
            transform: translate3d(0, 0, 0);
        }
        100% {
            transform: translate3d(calc(-100% / 3), 0, 0); /* Version mobile également */
        }
    }
    
    .partner-card-container {
        animation-duration: 25s; /* Animation plus lente pour voir toutes les cartes */
    }
}

@media (max-width: 480px) {
    .partner-card {
        flex: 0 0 180px;
        min-width: 180px;
        padding: 1.5rem;
    }
    
    .partner-logo {
        height: 40px;
    }
    
    /* IMMA-TM réduit de 15% sur mobile */
    .partner-logo[alt="IMMA-TM"] {
        height: 34px; /* 40px - 15% = 34px */
    }
    
    @keyframes slidePartners {
        0% {
            transform: translate3d(0, 0, 0);
        }
        100% {
            transform: translate3d(calc(-100% / 3), 0, 0); /* Version mobile petit écran */
        }
    }
    
    .partner-card-container {
        animation-duration: 20s;
    }
}

@media (max-width: 1200px) {
    .partners-container {
        padding: 0 2rem;
    }
}

/* Animation de défilement fluide pour tous les liens d'ancrage */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Style pour le hover */
.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow {
    animation-duration: 1s;
}

/* Animation du texte et curseur */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
    transition: all 0.3s ease;
    text-decoration: none; /* Suppression du soulignement */
    color: inherit; /* Utilise la couleur héritée */
}

.scroll-text {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.scroll-arrow i {
    color: #ffffff;
    font-size: 0.9rem;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.scroll-indicator:hover .scroll-arrow {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 1.5rem;
    }
    
    .scroll-text {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }
    
    .scroll-arrow {
        width: 26px;
        height: 26px;
    }
    
    .scroll-arrow i {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .scroll-text {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .scroll-arrow {
        width: 24px;
        height: 24px;
    }
    
    .scroll-arrow i {
        font-size: 0.7rem;
    }
}

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

@keyframes fadeInUpDelayed {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

/* Style pour le bouton de soumission du devis */
.devis-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
    position: relative;
    overflow: hidden;
}

.devis-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.devis-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
}

.devis-submit:hover::before {
    opacity: 1;
}

.devis-submit span {
    position: relative;
    z-index: 1;
}

.devis-submit i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.devis-submit:hover i {
    transform: translateX(5px);
}

.devis-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
}

/* Style pour le lien actif dans la navigation */
.navbar .nav-links a.active {
    color: var(--accent-color);
    position: relative;
}

.navbar .nav-links a.active::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transform: translateX(-50%);
}

/* Style pour la section process */
.process {
    padding: 2rem 5% 8rem 5%;
    position: relative;
    scroll-margin-top: 80px;
}

.process-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 4rem;
}

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.2;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(0, 86, 179, 0.1);
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    position: relative;
    z-index: 2;
}

.timeline-content h3::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.timeline-content.active h3::after {
    transform: rotate(180deg);
}

.timeline-content p {
    color: var(--text-color);
    line-height: 1.6;
    height: 0;
    opacity: 0;
    margin: 0;
    padding: 0 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-20px);
}

.timeline-content.active {
    background: linear-gradient(to right bottom, white, rgba(0, 86, 179, 0.05));
    padding-bottom: 2rem;
}

.timeline-content.active p {
    height: auto;
    opacity: 1;
    margin-top: 1rem;
    transform: translateY(0);
}

/* Effet hover */
.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.timeline-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right bottom, rgba(0, 86, 179, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-content:hover:before {
    opacity: 1;
}

/* Animation du bouton */
.timeline-content:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .process-timeline::before {
        left: 15px;
    }

    .timeline-item {
        flex-direction: row !important;
        margin-left: 0;
        margin-right: 0;
        padding-left: 50px;
    }

    .timeline-number {
        width: 35px;
        height: 35px;
        left: 15px;
        transform: translateX(-50%);
        font-size: 1rem;
        z-index: 3;
    }

    .timeline-content {
        width: 100%;
        margin-left: 0;
        padding: 1.5rem;
    }

    .timeline-content h3 {
        padding-left: 10px;
    }
}

/* Ajustements pour très petits écrans */
@media (max-width: 480px) {
    .timeline-item {
        padding-left: 40px;
    }

    .timeline-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .timeline-content {
        padding: 1.2rem;
    }
}

/* Uniformisation des couleurs pour tous les titres de section SAUF partners */
.services h2,
.team h2,
.process h2,
.assistance h2,
.about h2,
.contact h2 {
    color: var(--primary-color);
}

/* Animation pour l'apparition des titres */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style pour les notifications */
.notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #004AAD, #002B64);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-width: 200px;
    max-width: 90%;
}

.notification i {
    font-size: 1.2em;
    flex-shrink: 0;
    margin-right: 5px;
}

.notification span {
    display: inline-block;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
}

.notification.show {
    opacity: 1;
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

@media (max-width: 992px) {
    .notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
        justify-content: center;
    }
    
    .notification span {
        text-align: center;
    }
    
    .notification i {
        margin-right: 8px;
    }
}

.notification.error i {
    color: white;
}

.notification.error i {
    color: white;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification i {
    font-size: 1.2rem;
}

/* Animation subtile pour attirer l'attention sur l'icône d'erreur */
.notification.error i {
    animation: errorPulse 2s infinite;
}

@keyframes errorPulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
    .notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
        justify-content: center;
    }
}

/* Ajustement du scroll indicator pour mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
    }

    .hero-content {
        margin-bottom: 100px;
    }

    .cta-group {
        margin-bottom: 60px;
    }

    .scroll-text {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .scroll-arrow {
        height: 30px;
    }

    .scroll-arrow i {
        font-size: 1rem;
    }
}

/* Ajustements pour très petits écrans */
@media (max-width: 480px) {
    .hero-content {
        margin-bottom: 80px;
    }

    .cta-group {
        margin-bottom: 50px;
    }

    .scroll-indicator {
        bottom: 15px;
    }
}

/* Ajustements pour la section hero sur mobile */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: 100vh;
        height: auto;
    }

    .hero-content {
        padding-top: 2rem;
        margin-bottom: 100px;
    }

    .glitch {
        font-size: 2.2rem;
        line-height: 1.4;
        margin-top: 1rem;
    }

    .subtitle {
        font-size: 1.2rem;
        margin: 1.5rem auto;
    }

    .subtitle-line {
        font-size: 0.9em;
    }
}

/* Ajustements pour très petits écrans */
@media (max-width: 480px) {
    .hero {
        padding-top: 80px;
    }

    .glitch {
        font-size: 1.8rem;
    }

    .hero-content {
        padding-top: 1.5rem;
        margin-bottom: 80px;
    }
}

/* Style pour les réseaux sociaux dans le footer */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-links a {
    color: #fff; /* Couleur des icônes */
    font-size: 1.5em; /* Taille des icônes */
    margin: 0px; /* Espacement entre les icônes */
    transition: color 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Largeur du cercle */
    height: 40px; /* Hauteur du cercle */
    border-radius: 50%; /* Forme circulaire */
    background: rgba(255, 255, 255, 0.1); /* Fond du cercle */
    text-decoration: none;
}

.social-links a:hover {
    color: var(--accent-color); /* Couleur au survol */
    background: rgba(255, 255, 255, 0.2); /* Fond du cercle au survol */
}

/* Animation au hover */
.social-links a i {
    transition: transform 0.3s ease;
}

.social-links a:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .social-links {
        margin-top: 0.5rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}
/* Ajustement du scroll-margin-top pour toutes les sections */
section {
    scroll-margin-top: 80px; /* Hauteur de la navbar + un peu d'espace */
}

/* Ajustements spécifiques pour certaines sections si nécessaire */
.hero {
    scroll-margin-top: 0; /* La section hero doit commencer tout en haut */
}

.about {
    scroll-margin-top: 100px; /* Un peu plus d'espace pour la section about */
}

/* Suppression des anciennes valeurs */
.contact, .services, .assistance, .partners, .team {
    scroll-margin-top: 80px !important;
}

/* Ajustement global pour le scroll-padding */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 0px; /* Même valeur que scroll-margin-top */
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: #fff;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
}

.button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.return-button {
    text-align: center;
    margin-top: 2rem;
}

.section-divider {
    border: none;
    height: 1px;
    width: 80%;
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--section-divider);
}

@keyframes waveEffect {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: 0 0;
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
        z-index: 1002;
    }
}

.service-card {
    padding: 2.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform-origin: center bottom;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.15);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-align: center;
    position: relative;
    z-index: 1;
}

.service-points {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.service-points li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    line-height: 1.4;
}

.service-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.1);
}

.service-card:hover .service-points li::before {
    background: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
}

.service-card:hover .service-points li {
    color: var(--text-color);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .service-card {
        padding: 2rem;
    }

    .service-points li {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
}

/* Styles pour la navbar responsive avec menu burger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* JavaScript pour ajouter la classe active */
@media (max-width: 1300px) {
    .menu-toggle {
        display: flex;
        z-index: 1002;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(5, 32, 83, 0.98), rgba(5, 16, 58, 0.98));
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 85px 1.5rem 2rem;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        gap: 0.75rem;
        z-index: 1001;
        overflow-y: scroll;
        opacity: 0;
        scrollbar-width: thin;
        scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        right: 0;
        visibility: visible;
        opacity: 1;
    }
    
    .navbar .nav-links a {
        width: 100%;
        padding: 0.85rem 1.2rem;
        opacity: 1;
        text-align: left;
        background: rgba(255, 255, 255, 0.05);
        margin-bottom: 0.4rem;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
        display: flex;
        align-items: center;
        color: rgba(255, 255, 255, 0.9);
        overflow: hidden;
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar .nav-links a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background: linear-gradient(to bottom, var(--accent-color), rgba(0, 168, 255, 0.5));
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-links.active a {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links.active a:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.075s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.125s; }
    .nav-links.active a:nth-child(5) { transition-delay: 0.15s; }
    .nav-links.active a:nth-child(6) { transition-delay: 0.175s; }
    .nav-links.active a:nth-child(7) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(8) { transition-delay: 0.225s; }
    
    .navbar .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
        color: white;
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .navbar .nav-links a:hover::before {
        opacity: 0.5;
    }
    
    .navbar .nav-links a.active {
        background: rgba(0, 168, 255, 0.15);
        font-weight: 600;
        color: white;
        border-color: rgba(0, 168, 255, 0.3);
        box-shadow: 0 4px 20px rgba(0, 168, 255, 0.15);
    }
    
    .navbar .nav-links a.active::before {
        opacity: 1;
    }
    
    .navbar .nav-links a.active::after {
        display: none;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open .navbar ~ * {
        filter: blur(5px);
        transition: filter 0.4s ease;
    }
    
    .navbar .nav-links a i {
        margin-right: 12px;
        font-size: 1.1rem;
        width: 24px;
        text-align: center;
        color: var(--accent-color);
        transition: transform 0.3s ease;
        position: relative;
        z-index: 2;
    }
    
    .navbar .nav-links a:hover i {
        transform: translateX(3px) scale(1.1);
    }
    
    .navbar .nav-links a.active i {
        color: var(--accent-color);
        filter: brightness(1.2);
    }
    
    .navbar .nav-links a.devis-btn,
    .navbar .nav-links a.contact-btn {
        background: linear-gradient(135deg, rgba(0, 168, 255, 0.15), rgba(0, 86, 179, 0.2));
        border-color: rgba(0, 168, 255, 0.25);
    }
    
    .navbar .nav-links a.devis-btn:hover,
    .navbar .nav-links a.contact-btn:hover {
        background: linear-gradient(135deg, rgba(0, 168, 255, 0.25), rgba(0, 86, 179, 0.3));
        border-color: rgba(0, 168, 255, 0.4);
    }
}

/* Style de la barre de défilement pour Chrome/Safari/Edge */
.nav-links::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.nav-links::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-links::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.nav-links::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

/* Style pour les émojis des membres de l'équipe */
.member-emojis {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.emoji {
    font-size: 2.5rem;
    color: white;
    filter: brightness(0) invert(1); /* Rend les émojis blancs */
    opacity: 0;
    transform: translateY(30px) scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-member:hover .emoji {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animation séquentielle pour les émojis */
.team-member:hover .emoji:nth-child(1) {
    transition-delay: 0.1s;
}

.team-member:hover .emoji:nth-child(2) {
    transition-delay: 0.2s;
}

.team-member:hover .emoji:nth-child(3) {
    transition-delay: 0.3s;
}

/* Responsive pour les émojis */
@media (max-width: 768px) {
    .emoji {
        font-size: 2rem;
    }
    
    .member-emojis {
        gap: 1rem;
    }
}

/* Style pour les symboles des membres de l'équipe */
.member-symbols {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
}

.member-symbols i {
    font-size: 1.8rem;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.2);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.team-member:hover .member-symbols i {
    opacity: 1;
    transform: translateY(0);
}

/* Animation séquentielle pour les symboles */
.team-member:hover .member-symbols i:nth-child(1) {
    transition-delay: 0.1s;
}

.team-member:hover .member-symbols i:nth-child(2) {
    transition-delay: 0.2s;
}

.team-member:hover .member-symbols i:nth-child(3) {
    transition-delay: 0.3s;
}

/* Ajustement de l'overlay pour les symboles en bas */
.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 86, 179, 0.9), rgba(0, 86, 179, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

/* Responsive pour les symboles */
@media (max-width: 768px) {
    .member-symbols i {
        font-size: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
    
    .member-symbols {
        gap: 1rem;
        bottom: 1.5rem;
    }
}

/* Suppression des anciens styles pour les émojis */
.member-emojis {
    display: none;
}

.emoji {
    display: none;
}

/* Styles pour les placeholders des formulaires */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    font-style: italic;
    transition: all 0.3s ease;
    opacity: 1; /* Assurer que les placeholders sont visibles */
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder,
.devis-form .form-group input::placeholder,
.devis-form .form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.3);
    opacity: 1; /* Assurer que les placeholders sont visibles */
    font-size: 0.85rem;
    font-style: italic;
}

/* Animation des placeholders au focus */
.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.75;
    transform: translateX(5px);
}

/* Style pour l'option placeholder du select */
.form-group select option:first-child {
    font-style: italic;
    color: rgba(0, 0, 0, 0.6);
}

.contact-form .form-group select option:first-child {
    color: rgba(0, 0, 0, 0.65);
}

/* Style pour le champ date */
.form-group input[type="date"] {
    color: rgba(0, 0, 0, 0.7);
}

.contact-form .form-group input[type="date"] {
    color: rgba(0, 0, 0, 0.7);
}

/* Indicateur visuel pour les champs requis */
.form-group label::after {
    content: " *";
    color: var(--accent-color);
    opacity: 0.7;
}

/* Ajustement pour le champ date */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 5px;
}

/* Style pour les champs avec valeur */
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown),
.form-group select:valid {
    border-color: rgba(0, 86, 179, 0.3);
}

.required-fields-note {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: rgba(0, 168, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    animation: fadeIn 0.5s ease-in-out;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.required-fields-note i {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 16px;
}

.asterisk {
    color: var(--accent-color);
    font-weight: bold;
    margin-left: 3px;
    font-size: 16px;
}

.devis-form .required-fields-note,
.form-contact .required-fields-note {
    margin-bottom: 50px;
    background-color: rgba(0, 168, 255, 0.08);
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 8px 8px 0 0;
}

@media (max-width: 768px) {
    .required-fields-note {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Style amélioré pour l'overlay et les symboles au survol des photos */
.member-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

/* Effet de zoom léger sur l'image au survol */
.team-member:hover .member-image img {
    transform: scale(1.05);
}

/* Style pour l'overlay qui apparaît au survol */
.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 86, 179, 0.95), rgba(0, 86, 179, 0.7), rgba(0, 86, 179, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
}

.team-member:hover .member-overlay {
    opacity: 1;
    display: flex;
}

/* Style pour les symboles qui apparaissent au survol */
.member-symbols {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    z-index: 2;
}

.member-symbols i {
    font-size: 1.8rem;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.2);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.team-member:hover .member-symbols i {
    opacity: 1;
    transform: translateY(0);
}

/* Animation séquentielle pour les symboles */
.team-member:hover .member-symbols i:nth-child(1) {
    transition-delay: 0.1s;
}

.team-member:hover .member-symbols i:nth-child(2) {
    transition-delay: 0.2s;
}

.team-member:hover .member-symbols i:nth-child(3) {
    transition-delay: 0.3s;
}

/* Supprimer les anciennes sections inutilisées */
.member-emojis {
    display: none;
}

.emoji {
    display: none;
}

/* Ajustements pour la version mobile */
@media (max-width: 768px) {
    .member-symbols i {
        font-size: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
    
    .member-symbols {
        gap: 1rem;
    }
    
    .member-overlay {
        padding-bottom: 1.5rem;
    }
}

/* Styles pour la section Témoignages */
.testimonials {
    padding: 5rem 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.05) 0%, rgba(0, 168, 255, 0.05) 100%);
    z-index: 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles pour le carrousel */
.testimonials-carousel {
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    position: relative;
    margin: 0 1rem;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 0rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

/* Boutons de navigation */
.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: none; /* Supprime l'ombre grise */
    aspect-ratio: 1/1;
}

.testimonial-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    filter: brightness(1.2);
}

.testimonial-nav:hover::before {
    opacity: 1;
}

.testimonial-nav i {
    position: relative;
    z-index: 2;
    color: white;
}

.testimonial-nav:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-nav:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .testimonial-nav {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        aspect-ratio: 1/1;
    }
    
    .testimonial-nav i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .testimonial-nav {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
    }
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.testimonial-info {
    flex: 1;
}

.testimonial-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--secondary-color);
}

.testimonial-company {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 0.9rem;
    display: flex;
    gap: 0.2rem;
}

.testimonial-rating i {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-rating i {
    animation: starPulse 1s ease infinite;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.testimonial-rating i:nth-child(1) { --i: 1; }
.testimonial-rating i:nth-child(2) { --i: 2; }
.testimonial-rating i:nth-child(3) { --i: 3; }
.testimonial-rating i:nth-child(4) { --i: 4; }
.testimonial-rating i:nth-child(5) { --i: 5; }

@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
}

.testimonial-text::before {
    content: '\201C';
    font-size: 3rem;
    color: rgba(0, 86, 179, 0.1);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: serif;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-info h3 {
        font-size: 1.1rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
}

/* Animation des cartes de témoignages */
.testimonial-card {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-card.animate-testimonial {
    opacity: 1;
    transform: translateY(0);
}

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

/* Styles pour les placeholders des formulaires */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    font-style: italic;
    transition: all 0.3s ease;
    opacity: 1; /* Assurer que les placeholders sont visibles */
}

/* Bouton de témoignage */
.testimonial-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.testimonial-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.testimonial-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.testimonial-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
}

.testimonial-button:hover::before {
    opacity: 1;
}

.testimonial-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.testimonial-button:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .testimonial-button {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
}

/* Styles pour les placeholders des formulaires */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    font-style: italic;
    transition: all 0.3s ease;
    opacity: 1; /* Assurer que les placeholders sont visibles */
}

/* Animation du carrousel */
.testimonials-track {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.5s ease;
    padding-top: 10px;
}

.testimonials-track.animate-testimonials {
    opacity: 1;
}

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

/* Responsive pour le carrousel */
@media (max-width: 768px) {
    .testimonial-nav {
        width: 35px;
        height: 35px; /* Assurez-vous que height=width pour maintenir un cercle parfait */
        min-width: 35px; /* Empêche le rétrécissement */
        min-height: 35px; /* Empêche le rétrécissement */
        aspect-ratio: 1/1; /* Maintient le ratio 1:1 */
    }
    
    .testimonial-nav i {
        font-size: 0.9rem; /* Ajuster la taille de l'icône proportionnellement */
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-info h3 {
        font-size: 1.1rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .testimonials-container {
        padding: 0 0.5rem;
    }
    
    .testimonial-nav {
        width: 30px;
        height: 30px; /* Assurez-vous que height=width pour maintenir un cercle parfait */
        min-width: 30px; /* Empêche le rétrécissement */
        min-height: 30px; /* Empêche le rétrécissement */
    }
    
    .testimonial-nav i {
        font-size: 0.8rem; /* Réduit encore la taille de l'icône */
    }
    
    .testimonial-card {
        padding: 1.2rem;
    }
}

/* Styles pour l'animation typewriter */
.typewrite {
    position: relative;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
    display: block;
    width: 100%;
    min-height: 4rem;
    text-align: center;
    will-change: contents;
    transform: translateZ(0); /* Optimisation pour les animations */
}

.typewrite .wrap-container {
    display: inline-block;
    text-align: center;
    min-width: 1ch;
    min-height: 1.3em;
    position: relative;
}

.typewrite .wrap {
    border-right: 0.08em solid #fff;
    padding-right: 0.1em;
    display: inline-block;
    min-width: 1ch;
    min-height: 1.3em;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    vertical-align: middle;
}

.typewrite .wrap.cursor-blink {
    animation: blink-caret 0.75s step-end infinite;
}

.typewrite .wrap.cursor-solid {
    animation: none;
    border-right: 0.08em solid #fff;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #fff }
}

.typewrite .subtitle-line {
    font-size: 0.8em;
    font-weight: 400;
    opacity: 0.9;
    display: block;
    margin-top: 0.5rem;
    white-space: normal;
    animation: none;
    border: none;
}

@media (max-width: 768px) {
    .typewrite {
        font-size: 2.2rem;
        min-height: 3rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .typewrite .subtitle-line {
        font-size: 0.75em;
        margin-top: 0.3rem;
    }
    
    .typewrite .wrap-container {
        min-height: 1.2em;
    }
    
    .typewrite .wrap {
        padding-right: 0.08em;
        min-height: 1.2em;
    }
    
    .typewrite .wrap.cursor-blink {
        animation: blink-caret 0.6s step-end infinite;
    }
    
    .typewrite .wrap.cursor-solid {
        border-right-width: 0.06em;
    }
}

@media (max-width: 480px) {
    .typewrite {
        font-size: 1.8rem;
        min-height: 2.8rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .typewrite .subtitle-line {
        font-size: 0.7em;
        margin-top: 0.3rem;
    }
    
    .typewrite .wrap-container {
        min-height: 1.2em;
    }
    
    .typewrite .wrap {
        padding-right: 0.08em;
        min-height: 1.2em;
    }
    
    .typewrite .wrap.cursor-blink {
        animation: blink-caret 0.6s step-end infinite;
    }
    
    .typewrite .wrap.cursor-solid {
        border-right-width: 0.06em;
    }
}

@media (max-width: 480px) {
    .typewrite {
        font-size: 1.5rem;
        min-height: 2.2rem;
        letter-spacing: -0.3px;
    }
    
    .typewrite .wrap-container {
        min-height: 1.1em;
    }
    
    .typewrite .wrap {
        padding-right: 2px;
        min-height: 1.1em;
        border-right-width: 0.05em;
    }
    
    .typewrite .subtitle-line {
        font-size: 0.65em;
    }
    
    .typewrite .wrap.cursor-blink {
        animation: blink-caret 0.5s step-end infinite;
    }
}

@media (max-width: 768px) {
    .typewrite {
        font-size: 1.7rem;
        min-height: 2.6rem;
        line-height: 1.2;
        margin-bottom: 0.4rem;
    }
    
    .typewrite .subtitle-line {
        font-size: 0.7em;
        margin-top: 0.3rem;
    }
    
    .typewrite .wrap-container {
        min-height: 1.2em;
    }
    
    .typewrite .wrap {
        padding-right: 0.08em;
        min-height: 1.2em;
    }
    
    .typewrite .wrap.cursor-blink {
        animation: blink-caret 0.6s step-end infinite;
    }
    
    .typewrite .wrap.cursor-solid {
        border-right-width: 0.06em;
    }
}

@media (max-width: 480px) {
    .typewrite {
        font-size: 1.4rem;
        min-height: 2rem;
        letter-spacing: -0.3px;
        line-height: 1.3;
    }
    
    .typewrite .wrap-container {
        min-height: 1em;
        width: 100%;
        max-width: 100%;
    }
    
    .typewrite .wrap {
        padding-right: 2px;
        min-height: 1em;
        border-right-width: 0.05em;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
    
    .typewrite .subtitle-line {
        font-size: 0.65em;
        margin-top: 0.2rem;
    }
}

@media (max-width: 360px) {
    .typewrite {
        font-size: 1.2rem;
        min-height: 1.8rem;
        letter-spacing: -0.2px;
        line-height: 1.2;
    }
    
    .typewrite .wrap-container {
        min-height: 0.9em;
        width: 100%;
        max-width: 100%;
    }
    
    .typewrite .wrap {
        padding-right: 1px;
        min-height: 0.9em;
        border-right-width: 0.04em;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
    
    .typewrite .subtitle-line {
        font-size: 0.6em;
        margin-top: 0.15rem;
    }
}

.static-title {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 3.2rem;
    margin-bottom: 1.2rem; /* Augmenté pour inclure l'espace de la barre */
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
    display: block;
    position: relative;
    opacity: 1; /* Visible dès le début */
    animation: none; /* Pas d'animation */
    margin-top: 0;
    padding-top: 0;
}

.static-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem; /* Ajusté pour être plus bas */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    /* Supprimer l'animation pour éviter le saut */
    opacity: 1;
    animation: none;
}

.typewrite {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 400;
    margin-top: 0.5rem; /* Ajout d'une marge supérieure */
    margin-bottom: 1.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    font-style: italic;
    opacity: 0.9;
    letter-spacing: 0.2px;
    min-height: 2.7rem; /* Hauteur fixe pour éviter les sauts */
    animation: none; /* Pas d'animation */
}

.typewrite .wrap {
    display: inline-block;
    position: relative;
    font-weight: 400;
    padding-bottom: 2px;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 1; /* Visible dès le début */
    animation: none; /* Pas d'animation */
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .static-title {
        font-size: 2.6rem;
        margin-bottom: 0.5rem;
    }
    
    .static-title::after {
        width: 60px;
        height: 2px;
    }
    
    .typewrite {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
    }
}

@media (max-width: 480px) {
    .static-title {
        font-size: 2.2rem;
        margin-bottom: 0.4rem;
    }
    
    .static-title::after {
        width: 50px;
        height: 2px;
    }
    
    .typewrite {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@keyframes ctaPulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(var(--accent-color-rgb), 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(var(--accent-color-rgb), 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(var(--accent-color-rgb), 0.3);
    }
}

@media (max-width: 768px) {
    .testimonials-container {
        padding-top: 10px; /* Ajoute de l'espace en haut pour l'effet de survol */
        overflow: visible; /* Assure que les éléments ne sont pas coupés */
    }
    
    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 5; /* Valeur plus élevée pour s'assurer qu'il passe au-dessus des autres éléments */
    }
    
    .testimonials-track {
        padding-top: 5px; /* Espace supplémentaire pour l'animation */
        overflow: visible; /* Permet aux cartes de dépasser lors du survol */
    }
}

@media (max-width: 480px) {
    .testimonials-container {
        padding-top: 8px; /* Légèrement moins d'espace pour les très petits écrans */
    }
    
    .testimonial-card {
        margin-bottom: 15px; /* Plus d'espace entre les cartes sur mobile */
    }
    
    .testimonial-card:hover {
        transform: translateY(-3px); /* Animation plus subtile sur petit écran */
        z-index: 5;
    }
}

/* Style du bouton de changement de thème */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500; /* Gardé à 1500 pour être en dessous des notifications */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    outline: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Réduire le z-index du bouton de thème lorsque le menu mobile est ouvert */
body.menu-open .theme-toggle {
    z-index: 999; /* Z-index inférieur à celui du menu mobile (1001) */
}

/* Exception pour la page calculateur, garder le z-index élevé même avec menu mobile ouvert */
.calculator ~ .theme-toggle,
body.menu-open .calculator ~ .theme-toggle {
    z-index: 2000;
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.theme-toggle i {
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        z-index: 1500; /* Gardé à 1500 pour être en dessous des notifications */
    }
    
    /* Z-index plus élevé sur mobile pour la page calculateur */
    .calculator ~ .theme-toggle {
        bottom: 80px;
        z-index: 2000;
    }
    
    /* Styles pour la page calculateur */
    .calculator-page .theme-toggle {
        bottom: 80px !important;
        right: 20px !important;
        z-index: 2500 !important; /* z-index très élevé pour être au-dessus de tout */
        width: 55px !important;
        height: 55px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important; /* Ombre plus visible */
    }
    
    .calculator-page.dark-theme .theme-toggle {
        background: var(--accent-color) !important; /* Couleur plus visible en mode sombre */
    }
    
    .theme-toggle i {
        font-size: 1.5rem;
    }
}

/* Ajustements spécifiques pour le thème sombre */
.dark-theme .hero::before {
    filter: brightness(0.4) contrast(1.1) saturate(1.2) blur(8px);
}

.dark-theme .partner-card {
    background: var(--card-bg);
}

.dark-theme .service-card::before {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-color-rgb), 0.1));
}

.dark-theme .timeline-number {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.dark-theme .timeline-content {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.dark-theme .cta-button {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(var(--accent-color-rgb), 0.2);
}

.dark-theme .scroll-arrow {
    background: var(--primary-color);
}

.dark-theme .nav-links::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.dark-theme .nav-links::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
}

.dark-theme .nav-links::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

.dark-theme .menu-toggle span {
    background-color: var(--white);
}

.dark-theme .glitch {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.dark-theme .static-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.dark-theme .form-group label {
    color: var(--text-color);
}

.dark-theme .contact-form input,
.dark-theme .contact-form textarea,
.dark-theme .contact-form select,
.dark-theme .devis-form input,
.dark-theme .devis-form textarea,
.dark-theme .devis-form select {
    border-color: var(--border-color);
    color: var(--text-color);
    background: var(--input-bg);
}

.dark-theme .form-group input:focus,
.dark-theme .form-group textarea:focus,
.dark-theme .form-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.2);
    background: var(--input-bg);
}

/* Animation de transition pour le thème */
@keyframes themeTransition {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body.theme-transitioning {
    animation: themeTransition 0.3s ease-in-out;
}

/* Ajustements spécifiques pour le thème sombre */
.dark-theme section {
    background-color: var(--background-color);
}

.dark-theme .content {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.dark-theme .service-card,
.dark-theme .testimonial-card,
.dark-theme .about-text,
.dark-theme .timeline-content {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.dark-theme .footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

.dark-theme .contact-container {
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.dark-theme .section-divider {
    background: var(--section-divider);
}

.dark-theme .contact,
.dark-theme .services,
.dark-theme .assistance,
.dark-theme .partners,
.dark-theme .testimonials,
.dark-theme .about,
.dark-theme .team {
    background-color: var(--background-color);
}

.dark-theme .info-item {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.dark-theme .info-item i {
    color: var(--accent-color);
}

.dark-theme .info-content h4 {
    color: var(--text-color);
}

.dark-theme .info-content p {
    color: var(--text-color);
}

/* Styles pour les cartes des membres de l'équipe en mode sombre */
.dark-theme .team-member {
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.dark-theme .team-member h3 {
    color: var(--text-color);
}

.dark-theme .member-role {
    color: var(--accent-color);
}

.dark-theme .team-member p {
    color: var(--text-color);
}

.dark-theme .member-image::after {
    background: linear-gradient(to bottom, transparent 0%, var(--background-color) 100%);
}

.dark-theme .member-overlay {
    background: linear-gradient(to top, var(--card-bg) 0%, transparent 100%);
}

.dark-theme .member-icons i {
    color: var(--text-color);
    background-color: var(--card-bg);
}

.dark-theme .member-icons i:hover {
    color: var(--accent-color);
    background-color: var(--background-color);
}

/* Styles pour les placeholders dans le thème sombre */
.dark-theme .form-group input::placeholder,
.dark-theme .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Placeholders plus clairs pour le thème sombre */
    opacity: 1;
}

.dark-theme .contact-form .form-group input::placeholder,
.dark-theme .contact-form .form-group textarea::placeholder,
.dark-theme .devis-form .form-group input::placeholder,
.dark-theme .devis-form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6); /* Placeholders encore plus clairs pour les formulaires spécifiques */
    opacity: 1;
}

.dark-theme .form-group input:focus::placeholder,
.dark-theme .form-group textarea:focus::placeholder {
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.6); /* Garder la même couleur claire au focus */
    transform: none; /* Supprimer l'animation de déplacement */
}

/* QR Code styles */
.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(var(--primary-rgb), 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--accent-color-rgb), 0.3);
    transition: all 0.3s ease;
    max-width: 200px;
    margin: 0 auto;
}

.qrcode-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
}

.qrcode-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.qrcode-image {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.qrcode-container:hover .qrcode-image {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.qrcode-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    opacity: 0.8;
}

/* Mode sombre pour le QR code */
.dark-theme .qrcode-container {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--accent-color-rgb), 0.3);
}

@media (max-width: 768px) {
    .testimonial-cta {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .qrcode-image {
        width: 120px;
        height: 120px;
    }
}

.dark-theme .qrcode-title {
    color: var(--accent-color);
}

.dark-theme .qrcode-text {
    color: rgba(255, 255, 255, 0.8);
}

.partner-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.partner-card a:hover {
    text-decoration: none;
}

.partner-card a .partner-name {
    margin-top: calc(1rem + 5px); /* Ajout de 5px pour descendre le texte */
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Style pour le sélecteur de langue */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 20px;
    z-index: 9999;
}

.language-toggle {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 9999;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-flag {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.language-code {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #fff;
}

/* Nouvelle approche simplifiée pour le dropdown */
.language-dropdown {
    display: none; /* Caché par défaut, plus simple que opacity/visibility */
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 140px;
    z-index: 10000;
}

.language-selector.active .language-dropdown {
    display: block; /* Simple affichage en block quand actif */
    position: fixed; /* Changement pour utiliser position fixed */
    top: auto; /* On ne dépend plus du parent */
    left: auto;
    z-index: 99999; /* Valeur très élevée pour être sûr */
}

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-option.active {
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.language-name {
    margin-left: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

/* Animation discrète pour le sélecteur */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.language-selector:hover .language-flag {
    animation: pulse 1s ease infinite;
}

/* Adaptation pour mobile */
@media (max-width: 768px) {
    .language-selector {
        position: absolute;
        right: 70px;
        top: 18px;
        z-index: 9999;
    }
    
    .language-toggle {
        padding: 5px 10px;
    }
    
    .language-code {
        font-size: 12px;
    }
    
    .language-flag {
        width: 18px;
        height: 18px;
    }
    
    .language-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 10px;
    }
}

/* Styles pour le calculateur de prix */
.calculator {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    min-height: 100vh;
    background-color: var(--background-color);
}

.calculator .section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.calculator .section-subtitle {
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.calculator-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.dark-theme .calculator-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-intro {
    margin-bottom: 2rem;
    text-align: left;
    line-height: 1.6;
}

.calculator-intro p:first-child {
    margin: 0 auto;
    max-width: 80%;
    padding: 1rem 0;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.how-it-works {
    margin: 2rem auto !important;
    max-width: 80%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--accent-color-rgb), 0.08));
    padding: 2rem 2.5rem !important;
    border-radius: 15px !important;
    border: 1px solid rgba(var(--accent-color-rgb), 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.8;
}

.how-it-works h3 {
    color: var(--primary-color) !important;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.how-it-works h3 i {
    color: var(--accent-color);
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: rotate(5deg);
}

.how-it-works ol {
    margin-top: 1.2rem !important;
    padding-left: 2rem !important;
    counter-reset: steps;
    list-style: none;
}

.how-it-works li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem;
    line-height: 1.6;
}

.how-it-works li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.3);
}

.how-it-works li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.how-it-works p {
    margin-top: 1.5rem !important;
    line-height: 1.6;
}

.how-it-works .promo-text {
    margin-top: 1.8rem !important;
    padding: 1rem;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color);
    border-left: 4px solid rgba(255, 107, 107, 0.5);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: pulseSoft 3s infinite;
}

@keyframes pulseSoft {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.how-it-works .promo-text i {
    font-size: 1.3rem;
    color: #ff6b6b;
}

.how-it-works .highlight {
    color: #ff6b6b;
    font-weight: 700;
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 0.3rem;
}

.how-it-works .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(255, 107, 107, 0.3);
    z-index: -1;
    border-radius: 3px;
}

.dark-theme .how-it-works {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-color-rgb), 0.15));
    border-color: rgba(var(--accent-color-rgb), 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dark-theme .how-it-works h3 {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .how-it-works li::before {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.dark-theme .how-it-works .promo-text {
    background-color: rgba(255, 107, 107, 0.15);
    border-left-color: rgba(255, 107, 107, 0.6);
}

.dark-theme .how-it-works .highlight {
    color: #ff8787;
}

.dark-theme .how-it-works .highlight::after {
    background-color: rgba(255, 135, 135, 0.25);
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 1.5rem !important;
    }
    
    .how-it-works h3 {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    
    .how-it-works li {
        padding-left: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .how-it-works li::before {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .how-it-works .promo-text {
        padding: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.calculator-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    position: relative;
}

.calculator-steps::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    opacity: 0.5;
}

.calculator-step {
    padding: 0.7rem 1.2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    font-weight: 500;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
}

.calculator-step:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.calculator-step.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    opacity: 1;
    font-weight: 600;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
    border: none;
}

.calculator-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.calculator-section.active {
    display: block;
}

.option-group {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.option-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.option {
    position: relative;
    padding: 1.2rem 1.2rem 1.2rem 3.2rem;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    user-select: none;
    z-index: 1;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--accent-color-rgb), 0.5);
}

.option.selected {
    border-color: var(--accent-color);
    background: linear-gradient(to right, rgba(var(--accent-color-rgb), 0.05), rgba(var(--primary-rgb), 0.02));
    box-shadow: 0 8px 20px rgba(var(--accent-color-rgb), 0.15);
    transform: translateY(-3px);
}

.option input[type="checkbox"],
.option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    pointer-events: none;
}

.option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    font-weight: 500;
    pointer-events: none;
    padding-left: 30px;
}

.option-label::before {
    content: '';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.option:hover .option-label::before {
    transform: scale(1.2);
    opacity: 1;
}

.option.selected .option-label::before {
    opacity: 1;
    color: var(--accent-color);
}

/* Icônes pour les sections spécifiques */
/* Design */
[for="design1"].option-label::before { content: '\f108'; }  /* ordinateur */
[for="design2"].option-label::before { content: '\f53f'; }  /* palette */
[for="design3"].option-label::before { content: '\f5ad'; }  /* template */
[for="design4"].option-label::before { content: '\f303'; }  /* crayon */

/* Personnalisation */
[for="perso1"].option-label::before { content: '\f044'; }  /* édition */
[for="perso2"].option-label::before { content: '\f5a5'; }  /* idées */
[for="perso3"].option-label::before { content: '\f0eb'; }  /* ampoule */

/* Logo */
[for="logo1"].option-label::before { content: '\f574'; }  /* fichier image */
[for="logo2"].option-label::before { content: '\f044'; }  /* édition */
[for="logo3"].option-label::before { content: '\f303'; }  /* crayon */
[for="logo4"].option-label::before { content: '\f53f'; }  /* palette */

/* Textes */
[for="textes1"].option-label::before { content: '\f15c'; }  /* document */
[for="textes2"].option-label::before { content: '\f044'; }  /* édition */
[for="textes3"].option-label::before { content: '\f303'; }  /* crayon */

/* Multilingue */
[for="multilingue1"].option-label::before { content: '\f57d'; }  /* globe */
[for="multilingue2"].option-label::before { content: '\f57e'; }  /* globe barré */

/* Produits */
[for="produits1"].option-label::before { content: '\f05e'; }  /* interdit */
[for="produits2"].option-label::before { content: '\f15c'; }  /* document */
[for="produits3"].option-label::before { content: '\f0ce'; }  /* table */
[for="produits4"].option-label::before { content: '\f07a'; }  /* panier */

/* Services */
[for="services1"].option-label::before { content: '\f05e'; }  /* interdit */
[for="services2"].option-label::before { content: '\f15c'; }  /* document */
[for="services3"].option-label::before { content: '\f0ce'; }  /* table */
[for="services4"].option-label::before { content: '\f0d6'; }  /* argent */

/* Communication */
[for="comm1"].option-label::before { content: '\f0e0'; }  /* enveloppe */
[for="comm2"].option-label::before { content: '\f15c'; }  /* document */
[for="comm3"].option-label::before { content: '\f0a1'; }  /* mégaphone */
[for="comm4"].option-label::before { content: '\f086'; }  /* chat */

/* Marketing digital */
[for="marketing1"].option-label::before { content: '\f080'; }  /* graphique */
[for="marketing2"].option-label::before { content: '\f002'; }  /* loupe */
[for="marketing3"].option-label::before { content: '\f1de'; }  /* charger */

/* Comptes utilisateurs */
[for="comptes1"].option-label::before { content: '\f05e'; }  /* interdit */
[for="comptes2"].option-label::before { content: '\f07a'; }  /* panier */
[for="comptes3"].option-label::before { content: '\f023'; }  /* cadenas */
[for="comptes4"].option-label::before { content: '\f4fc'; }  /* utilisateurs */

/* Pages */
[for="page1"].option-label::before { content: '\f015'; }  /* maison */
[for="page2"].option-label::before { content: '\f129'; }  /* info */
[for="page3"].option-label::before { content: '\f0e0'; }  /* enveloppe */
[for="page4"].option-label::before { content: '\f4fc'; }  /* utilisateurs */
[for="page5"].option-label::before { content: '\f542'; }  /* projets */
[for="page6"].option-label::before { content: '\f017'; }  /* horloge */
[for="page7"].option-label::before { content: '\f03e'; }  /* image */
[for="page8"].option-label::before { content: '\f059'; }  /* question */
[for="page9"].option-label::before { content: '\f10d'; }  /* citation */
[for="page10"].option-label::before { content: '\f0e3'; }  /* balance */

/* Illustrations */
[for="illustrations1"].option-label::before { content: '\f574'; }  /* image */
[for="illustrations2"].option-label::before { content: '\f03e'; }  /* image */
[for="illustrations3"].option-label::before { content: '\f302'; }  /* dessin */

@media (max-width: 768px) {
    .option-label::before {
        font-size: 1rem;
    }
}

/* Nouveau style pour les checkbox */
.option.checkbox-option::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 1.2rem;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-theme .option.checkbox-option::before {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.option.checkbox-option.selected::before {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.3);
}

.option.checkbox-option.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 1.2rem;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    font-size: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Nouveau style pour les boutons radio */
.option:not(.checkbox-option)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 1.2rem;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-theme .option:not(.checkbox-option)::before {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.option:not(.checkbox-option).selected::before {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.3);
}

.option:not(.checkbox-option).selected::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 1.2rem;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    z-index: 3;
    margin: 0 0 0 5px;
    animation: checkboxPulse 0.3s ease forwards;
}

/* Animation lors de la sélection */
@keyframes checkboxPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Amélioration responsive */
@media (max-width: 768px) {
    .option {
        padding: 1rem 1rem 1rem 3.2rem;
    }
    
    .option.checkbox-option::before,
    .option.checkbox-option.selected::after,
    .option:not(.checkbox-option)::before {
        left: 1rem;
    }
    
    .option:not(.checkbox-option).selected::after {
        left: 1rem;
    }
    
    .option-label {
        font-size: 0.95rem;
    }
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
}

.nav-button {
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif !important;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button.prev {
    background: var(--light-bg);
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.nav-button.prev:hover {
    background: var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-button.calculate {
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
}

.section-content {
    margin-bottom: 2rem;
}

.slider-container {
    margin: 20px 0;
    padding: 10px;
}

.slider {
    width: 100%;
    -webkit-appearance: none;
    height: 12px;
    border-radius: 10px;
    background: #e0e0e0;
    outline: none;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.slider-value {
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.calculator-result {
    display: none;
    text-align: center;
    padding: 2.5rem;
    margin-top: 2.5rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--accent-color-rgb), 0.05));
    border-radius: 15px;
    animation: fadeIn 0.5s ease;
    border: 1px solid rgba(var(--accent-color-rgb), 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.price-range {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-quote {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.cta-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-quote:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--accent-color-rgb), 0.4);
}

.cta-quote:hover::before {
    left: 100%;
}

.cta-quote i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cta-quote:hover i {
    transform: translateX(5px);
}

.promo-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.promo-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.promo-badge:hover::before {
    left: 100%;
}

/* Adaptations pour le mode sombre */
.dark-theme .calculator-result {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-color-rgb), 0.15));
    border: 1px solid rgba(var(--accent-color-rgb), 0.2);
}

.dark-theme .option {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .option:hover {
    border-color: rgba(var(--accent-color-rgb), 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.dark-theme .option-group {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .slider {
    background: #333;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Media queries */
@media (max-width: 768px) {
    .calculator-steps {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .calculator-step {
        width: 100%;
        text-align: center;
    }
    
    .options {
        grid-template-columns: 1fr;
    }
    
    .calculator-container {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .calculator .section-title {
        font-size: 2rem;
    }
    
    .calculator .section-subtitle {
        font-size: 1rem;
    }
    
    .price-range {
        font-size: 2rem;
    }

    /* Éviter un conflit avec le bouton de thème */
    .calculator-page .calculator-result {
        padding-bottom: 80px;
    }
    
    .calculator-page .nav-button.calculate {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .calculator-step {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .option-title {
        font-size: 1.1rem;
    }
    
    .nav-button {
        padding: 0.8rem 1.5rem;
    }
    
    .calculator-container {
        padding: 1rem;
    }
    
    .option-group {
        padding: 1rem;
    }
    
    .cta-quote {
        padding: 0.8rem 1.5rem;
    }
}

/* Styles supplémentaires pour le calculateur de prix */
.how-it-works .promo-text {
    margin-top: 1.5rem !important;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color);
}

.how-it-works .highlight {
    color: #ff6b6b;
    font-weight: 700;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.how-it-works .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 107, 107, 0.2);
    z-index: -1;
    border-radius: 2px;
}

.dark-theme .how-it-works .highlight {
    color: #ff8787;
}

.dark-theme .how-it-works .highlight::after {
    background-color: rgba(255, 135, 135, 0.25);
}

/* Styles pour les prix dans le calculateur */
.price-range .original-price {
    position: relative;
    font-size: 1.6rem;
    color: var(--text-color);
    opacity: 0.7;
    display: inline-block;
    font-weight: 500;
}

.price-range .original-price::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 107, 107, 0.6);
    transform: rotate(-5deg);
}

.discount-badge {
    display: inline-block;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
    font-weight: 600;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.dark-theme .price-range .original-price {
    color: rgba(255, 255, 255, 0.6);
}

.dark-theme .price-range .original-price::after {
    background-color: rgba(255, 107, 107, 0.8);
}

@media (max-width: 768px) {
    .calculator-intro p:first-child {
        max-width: 95%;
        padding: 0 1rem;
        margin-left: 5%;
        margin-right: 5%;
    }
    
    .how-it-works {
        max-width: 90%;
        padding: 2rem !important;
        margin-left: 5%;
        margin-right: 5%;
    }
    
    .how-it-works h3 {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    
    .how-it-works li {
        padding-left: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .how-it-works li::before {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .how-it-works .promo-text {
        padding: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.checkbox-option {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    z-index: 5; /* Z-index plus élevé pour s'assurer que l'input est au-dessus */
}

.checkbox-option.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.5), 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.checkbox-option::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 1;
}

.checkbox-option.selected::after {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-option.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    font-size: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

/* Amélioration de la zone cliquable pour toutes les options */
.option {
    position: relative;
    padding: 1.2rem;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    user-select: none;
    z-index: 1;
}

.option input[type="checkbox"],
.option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    z-index: 5; /* Z-index plus élevé */
}

.option {
    position: relative;
    padding: 1.2rem;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    user-select: none;
    z-index: 1;
    margin-bottom: 1rem;
}

.option input[type="checkbox"],
.option input[type="radio"] {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    pointer-events: none; /* Désactiver les événements sur l'input lui-même */
}

.option-label {
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 2;
    padding-left: 30px;
    pointer-events: none; /* Désactiver les événements sur le label aussi */
}

/* Styles spécifiques pour les options checkbox */
.checkbox-option {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.checkbox-option:after {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none; /* Désactiver les événements sur le pseudo-élément */
}

.checkbox-option.selected:after {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-option.selected:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    font-size: 14px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none; /* Désactiver les événements sur le pseudo-élément */
}

/* --- Nettoyage des anciens indicateurs --- */
.option:not(.checkbox-option)::before,
.option:not(.checkbox-option).selected::after,
.checkbox-option::before,
.checkbox-option.selected::after,
.checkbox-option.selected::before,
.checkbox-option:after,
.checkbox-option:before {
    display: none !important;
    content: none !important;
}

/* --- Indicateur visuel unique pour chaque type --- */
.checkbox-indicator {
    position: absolute;
    top: 50%;
    left: 1.2rem;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.option.selected .checkbox-indicator {
    background: var(--accent-color);
    border-color: var(--accent-color);
}
.option.selected .checkbox-indicator::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #fff;
    font-size: 1rem;
    display: block;
    line-height: 1;
}

.radio-indicator {
    position: absolute;
    top: 50%;
    left: 1.2rem;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.option.selected .radio-indicator {
    border-color: var(--accent-color);
}
.option.selected .radio-indicator::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .checkbox-indicator, .radio-indicator {
        left: 1rem;
        width: 20px;
        height: 20px;
    }
    .option {
        padding: 1rem 1rem 1rem 3rem;
    }
}

/* Ajustements pour éviter la superposition des indicateurs et pictogrammes */
.option.checkbox-option .option-label {
    padding-left: 65px;  /* Augmenté davantage pour assurer une séparation totale */
}

.option.checkbox-option .option-label::before {
    left: 35px;  /* Éloigner davantage l'icône de l'indicateur */
}

/* Ajout de styles spécifiques pour les boutons radio */
.option:not(.checkbox-option) .option-label {
    padding-left: 47px;  /* Valeur mise à jour selon la demande */
}

.option:not(.checkbox-option) .option-label::before {
    left: 15px;  /* Valeur mise à jour selon la demande */
}

/* Nettoyer et réorganiser les indicateurs visuels */
.checkbox-indicator {
    position: absolute;
    top: 50%;
    left: 1.2rem;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option.selected .checkbox-indicator {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.option.selected .checkbox-indicator::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #fff;
    font-size: 1rem;
    display: block;
    line-height: 1;
}

/* Assurer qu'aucun autre élément n'interfère */
.checkbox-option::before,
.checkbox-option::after,
.checkbox-option.selected::before,
.checkbox-option.selected::after,
.checkbox-option:before,
.checkbox-option:after,
.checkbox-option.selected:before,
.checkbox-option.selected:after {
    display: none !important;
}

@media (max-width: 768px) {
    .option.checkbox-option .option-label {
        padding-left: 55px; /* Ajusté pour mobile */
    }
    
    .option.checkbox-option .option-label::before {
        left: 30px;
        font-size: 0.9rem;
    }
    
    .checkbox-indicator {
        left: 1rem;
        width: 20px;
        height: 20px;
    }
}

/* Adaptation pour les écrans de largeur inférieure à 1300px */
@media (max-width: 1300px) {
    .navbar .nav-links a {
        padding: 1rem;
        width: 100%;
        text-align: left;
        border-radius: 8px;
    }

    .navbar .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }

    .navbar .nav-links a::before {
        display: none;
    }

    .navbar .nav-links a.devis-btn,
    .navbar .nav-links a.contact-btn {
        margin-top: 1rem;
        text-align: center;
    }
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    padding: 0 10px;
    color: var(--text-color);
    font-size: 0.85rem;
    opacity: 0.8;
}

.slider-labels span {
    width: 25px;
    text-align: center;
    position: relative;
}

.slider-labels span::before {
    content: '';
    position: absolute;
    height: 10px;
    width: 1px;
    background-color: rgba(var(--accent-color-rgb), 0.5);
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.dark-theme .slider-labels {
    color: rgba(255, 255, 255, 0.7);
}

.dark-theme .slider-labels span::before {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Suppression de styles spécifiques pour les anciens boutons radio multilingue */
[for="multilingue1"].option-label::before,
[for="multilingue2"].option-label::before {
    display: none;
}

/* Styles pour transition entre pages */
body.theme-reset {
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.theme-reset.theme-applied {
    opacity: 1;
}

/* Styles spécifiques pour la transition entre la page calculateur et index */
html.dark-theme.home-page .hero,
html.dark-theme.home-page .navbar,
html.dark-theme.home-page .footer,
html.dark-theme.home-page .background-gradient {
    background-color: var(--dark-bg, #121212) !important;
}

/* Forcer les éléments à suivre le thème sombre pour éviter les bugs visuels */
html.dark-theme .service-card,
html.dark-theme .testimonial-card,
html.dark-theme .timeline-content,
html.dark-theme .contact-form,
html.dark-theme .devis-form {
    background-color: var(--card-bg-dark, #1e1e1e) !important;
}

/* Éviter les problèmes de cache avec le thème sombre */
html.dark-theme.from-calculator-page {
    background-color: #121212 !important;
}

@media (max-width: 768px) {
    html.dark-theme .theme-toggle {
        background-color: var(--primary-color-dark, #ff6b6b) !important;
    }
}

/* ======================================
   NOUVEAU FOOTER - Styles modernes 2023
   ====================================== */

/* Structure principale du footer */
.site-footer {
    position: relative;
    background: linear-gradient(135deg, #052053, #05103a);
    color: white;
    padding: 0;
    margin-top: 4rem;
    overflow: hidden;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Vague décorative en haut du footer */
.footer-wave {
    display: none; /* Masquer la vague */
}

/* Container principal */
.footer-container {
    display: flex;
    flex-direction: column;
    padding: 40px 5% 30px; /* Réduire le padding supérieur puisqu'il n'y a plus de vague */
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Section principale du footer */
.footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

/* Logo et slogan */
.footer-brand {
    flex: 1;
    min-width: 250px;
    padding-right: 30px;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.footer-logo-link:hover {
    transform: translateY(-3px);
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-symbol {
    height: 50px;
    width: auto;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-logo-text {
    height: 30px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
    max-width: 280px;
}

/* Titres des sections */
.footer-heading {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #0088cc, transparent);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 136, 204, 0.5);
}

/* Container des colonnes de liens */
.footer-links-container {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Colonnes de liens */
.footer-links {
    flex: 1;
    min-width: 200px;
}

/* Menu de liens */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-item {
    margin-bottom: 12px;
}

.footer-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-link i {
    margin-right: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
    width: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-link:hover i {
    opacity: 1;
    transform: translateY(-1px);
    color: var(--accent-color);
}

/* Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    margin-bottom: 10px;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    padding: 3px 0;
    flex-wrap: nowrap;
}

.footer-contact-link:hover {
    color: white;
    transform: translateX(5px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 0.9rem;
    color: var(--accent-color);
    line-height: 1;
}

.footer-contact-link:hover .contact-icon {
    background: rgba(0, 136, 204, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 136, 204, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    opacity: 0.7;
}

.contact-value {
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Réseaux sociaux */
.footer-social {
    margin-top: 25px;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.social-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-button:hover::before {
    opacity: 1;
}

.social-button:hover i {
    transform: scale(1.2);
}

/* Styles spécifiques par réseau social */
.social-button.linkedin {
    background: linear-gradient(135deg, #0077b5, #00669c);
}

.social-button.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 10px 0 20px;
}

/* Barre de copyright */
.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 15px 0;
}

.copyright-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.copyright-symbol {
    margin-right: 2px;
}

.copyright-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* Adaptation mobile pour le footer */
@media (max-width: 1024px) {
    .footer-links-container {
        gap: 25px;
    }
    
    .footer-heading {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-heading::after {
        width: 35px;
    }
    
    .footer-container {
        padding-top: 35px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 35px;
        align-items: center;
    }
    
    .footer-brand {
        padding-right: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 300px;
    }
    
    .footer-tagline {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-links-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
        width: 100%;
        justify-content: center;
    }
    
    .footer-links {
        min-width: auto;
    }
    
    .footer-links:nth-child(3) {
        grid-column: 1 / -1;
        margin-top: 10px;
    }
    
    .footer-menu {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-menu-item {
        margin-bottom: 0;
        width: 100%;
    }
    
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-item {
        margin-bottom: 10px;
    }
    
    .footer-contact-link {
        max-width: none;
        padding: 3px 0;
    }
    
    .contact-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        margin-right: 10px;
    }
    
    .contact-icon i {
        font-size: 0.85rem;
    }
    
    .footer-social {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
    
    .social-buttons {
        justify-content: center;
    }
    
    .social-button {
        width: 45px;
        height: 45px;
    }
    
    .social-button i {
        font-size: 1.2rem;
    }
    
    .footer-heading {
        text-align: left;
        margin-bottom: 15px;
    }
    
    .footer-links:nth-child(3) .footer-heading {
        text-align: center;
    }
    
    .footer-heading::after {
        left: 0;
        transform: none;
    }
    
    .footer-links:nth-child(3) .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links:nth-child(3) .footer-menu {
        flex-direction: column;
        justify-content: left;
    }
    
    .footer-links:nth-child(3) .footer-menu-item {
        width: auto;
    }
}

@media (max-width: 600px) {
    .contact-icon {
        width: 33px;
        height: 33px;
        min-width: 33px;
        min-height: 33px;
        margin-right: 9px;
    }
    
    .contact-icon i {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 50px 5% 20px;
    }
    
    .footer-links-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-links:nth-child(3) {
        grid-column: auto;
    }
    
    .footer-menu-item {
        width: 100%;
        text-align: left;
    }
    
    .footer-links:nth-child(3) .footer-menu-item {
        width: 100%;
        text-align: center;
    }
    
    .footer-heading {
        text-align: left;
    }
    
    .footer-heading::after {
        left: 0;
        transform: none;
    }
    
    .footer-link {
        justify-content: flex-start;
    }
    
    .footer-links:nth-child(3) .footer-link {
        justify-content: left;
    }
    
    .footer-link:hover {
        transform: translateY(-3px);
    }
    
    .footer-logo-symbol {
        height: 40px;
    }
    
    .footer-logo-text {
        height: 25px;
    }
    
    .footer-tagline {
        font-size: 0.85rem;
    }
    
    .contact-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        margin-right: 8px;
    }
    
    .contact-icon i {
        font-size: 0.8rem;
    }
    
    .contact-value {
        font-size: 0.85rem;
    }
    
    .copyright-text {
        flex-direction: column;
        gap: 2px;
    }
}