* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e63946;
    --primary-dark: #d62828;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --bg-light: #f8f9fa;
    --border-color: #e5e5e5;
    --white: #ffffff;
}

/* Padding betwing navbar and section when redirecting */
html {
    scroll-padding-top: 100px;
}

body {
    /* Utilisation des polices système : Rapide et conforme RGPD */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: var(--bg-light);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
}

.top-bar-links {
    display: flex;
    gap: 25px;
}

.top-bar-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-links a:hover {
    color: var(--primary);
}

/* Navigation */
.navbar {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container .logo {
    height: 90px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-phone {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-phone:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 35px;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

.hero-avatars {
    display: flex;
    justify-content: center;
    gap: -10px;
    margin-top: 40px;
}

.hero-avatars img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -10px;
}

.hero-avatars img:first-child {
    margin-left: 0;
}

/* Trust Section */
.trust-section {
    padding: 60px 0;
    background: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.trust-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.trust-item p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Services Detailed Section - NOUVEAU STYLE */
.services-detailed {
    padding: 80px 0;
    background: var(--bg-light);
}

.services-intro-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px; /* Ajout d'une marge pour séparer la grille */
}

.services-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.services-text-header h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.services-text-header .service-intro-text {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Grille des blocs de service (Horizontal) */
.services-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes de taille égale */
    gap: 30px; /* Espace entre les blocs */
}

.service-block-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent; /* Pour éviter le saut de mise en page au survol */
    padding-bottom: 60px;
}

/* Effet au survol (Hover Effect) */
.service-block-card:hover {
    transform: translateY(-8px); /* Léger soulèvement */
    box-shadow: 0 15px 35px rgba(230, 57, 70, 0.15); /* Ombre plus visible avec teinte primaire */
    border-color: var(--primary); /* Bordure colorée au survol */
    cursor: pointer;
}

.service-badge {
    position: absolute;
    top: -10px;
    left: 30px;
    background: #3b82f6;
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.service-block-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-block-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Ajustement pour le responsive */
@media (max-width: 968px) {
    .services-intro-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-grid-horizontal {
        grid-template-columns: 1fr; /* Les blocs redeviennent verticaux sur les petits écrans */
    }
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s;

    /* NOUVEAU: Positionner le bouton au milieu en bas */
    position: absolute;        /* Fixe sa position par rapport à l'ancêtre relatif */
    bottom: 20px;              /* Décalage de 20px depuis le bas de la carte */
    left: 50%;                 /* Déplace le bord gauche à 50% de la largeur de la carte */
    transform: translateX(-50%); /* Ramène le bouton de 50% de sa propre largeur pour le centrer */
}

.btn-arrow:hover {
    background: var(--primary-dark);
    transform: translateX(-50%) scale(1.1); /* Conserver la translation pour le centrage */
}

/* Brands Section */
.brands-section {
    padding: 60px 0;
    background: var(--white);
    text-align: center;
}

.brands-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.brand-logo img {
    max-width: 120px;
    height: auto;
    opacity: 0.6;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.brand-logo:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* Ecological Section */
.eco-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    text-align: center;
}

.eco-content {
    max-width: 800px;
    margin: 0 auto;
}

.eco-icon-large {
    font-size: 64px;
    margin-bottom: 20px;
}

.eco-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.eco-intro {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

.eco-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.eco-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-dark);
}

.eco-check {
    color: #10b981;
    font-weight: bold;
    font-size: 20px;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.testimonials h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 35px;
    border-radius: 12px;
    text-align: left;
}

.stars {
    color: #fbbf24;
    font-size: 20px;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    font-size: 16px;
    color: var(--text-dark);
}

.testimonial-author span {
    font-size: 14px;
    color: var(--text-gray);
}

/* Style du bouton Avis Google adapté à votre design */
.btn-google-reviews {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--text-dark);
    padding: 14px 28px;
    border-radius: 50px; /* Arrondi comme vos boutons primary */
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-family: "Inter", sans-serif;
}

.btn-google-reviews svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.btn-google-reviews:hover {
    background-color: var(--white);
    border-color: var(--primary); /* Utilise votre rouge Sani-Top au survol */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

.google-source {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.google-source span {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 400;
}

.google-source svg {
    display: block;
}

/* Ajustement pour mobile */
@media (max-width: 640px) {
    .btn-google-reviews {
        width: 100%; /* Prend toute la largeur sur petit écran */
        padding: 12px 20px;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-intro {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.contact-icon {
    font-size: 32px;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.contact-link:hover {
    text-decoration: underline;
}

.address-link {
    text-decoration: none; /* Enlève le soulignement */
    color: inherit; /* Garde la couleur du texte original */
    display: block; /* Rend toute la zone de l'adresse cliquable */
    transition: opacity 0.3s;
}

.address-link:hover {
    opacity: 0.8;
    color: var(--primary); /* Change la couleur au survol pour montrer que c'est cliquable */
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary); /* Rouge Sani-Top */
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: "Inter", sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.form-note {
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-gray);
    text-align: center;
}

/* Bouton WhatsApp Sticky */
.whatsapp-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Vert officiel WhatsApp */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-sticky svg {
    width: 35px;
    height: 35px;
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
    background-color: #128C7E; /* Vert plus foncé au survol */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Animation optionnelle pour attirer l'oeil */
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-sticky {
    animation: pulse-whatsapp 2s infinite;
}

/* On le cache sur de très petits écrans si besoin ou on réduit sa taille */
@media (max-width: 480px) {
    .whatsapp-sticky {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-sticky svg {
        width: 28px;
        height: 28px;
    }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-col p {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: #999;       /* Harmonise le texte simple (TVA, adresse) */
    font-size: 14px;    /* Aligné sur la taille des liens */
}

.footer-col ul li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 14px;
    color: #999;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 968px) {
    .navbar-container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    .logo-container {
        order: 1;
    }

    .btn-phone {
        order: 3;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        order: 4;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .services-intro {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }

    .services-text h2,
    .testimonials h2,
    .contact-info h2,
    .eco-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .top-bar {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
