/* =========================================================
   STYLE GÉNÉRAL
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #333;
    line-height: 1.6;
}

/* =========================================================
   ICÔNES SVG LOCALES ET IMAGES
   ========================================================= */
.icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 5px;
}

.icon-inline {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

.icon-card {
    width: 48px;
    height: 48px;
    color: #0056b3;
    margin-bottom: 15px;
}

.icon-check {
    width: 18px;
    height: 18px;
    color: #28a745;
    margin-right: 8px;
    vertical-align: middle;
}

.logo-img {
    height: 70px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 15px auto 0;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, var(--header-opacity, 0.5));
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 15px;
    z-index: 1000;
    box-sizing: border-box;
}

.logo span {
    color: #ff6600;
}

nav ul {
    display: flex;
    list-style: none;
    font-size: 25px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #0056b3;
    text-shadow: 0 0 8px rgba(252, 0, 0, 0.87);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-socials, .social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-social-icon, .social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-socials a:hover .header-social-icon,
.social-links a:hover .social-icon {
    transform: scale(1.1);
    opacity: 0.85;
}

.btn-call {
    background-color: #ff6600;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.btn-call:hover {
    background-color: #e05500;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6)), 
                url('images/plomberie4.jpg') center/cover no-repeat;

    height: 110vh;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;

    padding: 120px 20px 0;

    margin-top: -120px;

    box-sizing: border-box;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}


/* =========================
   HORAIRES - HERO
   ========================= */

.hero-hours {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;

    margin: 20px auto 25px;
    padding: 12px 20px;

    border-radius: 10px;
    background-color: rgba(60, 190, 223, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);

    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.hero-hours > div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.hero-hours > div i {
    font-size: 15px;
}

.hero-hours span {
    display: block;
}

.hero-emergency {
    margin-top: 4px;
    font-weight: 600;
}

.hero-emergency i {
    margin-right: 5px;
}

.btn-urgent {
    background-color: #ff6600;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.btn-urgent:hover {
    background-color: #e05500;
}

.btn-secondary {
    background-color: white;
    color: #0056b3;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #c2c2c2;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
    padding: 4rem 5%;
    background-color: #ffffff;
    text-align: center;
}

.services h2, .contact h2 {
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Cartes des prestations */

.service-card {
    background: white;

    padding: 30px 20px;

    border-radius: 10px;

    /* Cadre */
    border: 1px solid #e0e0e0;

    /* Effet relief */
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* Effet au passage de la souris */

.service-card:hover {
    transform: translateY(-8px);

    border-color: #0056b3;

    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 18px 35px rgba(0, 0, 0, 0.10);
}
/* =========================================================
   À PROPOS
   ========================================================= */
.about {
    padding: 4rem 5%;
    max-width: 2800px;
    background-color: #d7f0ff;
    margin: 0 auto;
}

.about h2 {
    color: #0056b3;
    margin-bottom: 15px;
}

.about ul {
    list-style: none;
    margin-top: 15px;
}

.about ul li {
    margin-bottom: 10px;
}

/* =========================================================
   GALERIE - NOS RÉALISATIONS
   ========================================================= */
.gallery {
    padding: 4rem 5%;
    background-color: #ffffff;
    text-align: center;
}

.gallery h2 {
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 2rem;
}

.gallery-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background-color: #f8f9fa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 30px;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.gallery-close,
.gallery-prev,
.gallery-next {
    position: absolute;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(0, 0, 0, 0.75);
}

.gallery-close {
    top: 20px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
}

.gallery-prev,
.gallery-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
}

.gallery-prev {
    left: 25px;
}

.gallery-next {
    right: 25px;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
    background-color: #d7f0ff;

    padding: 80px 20px;
}

.contact > h2 {
    text-align: center;
    margin-bottom: 50px;
}


/* =========================================================
   CONTENEUR PRINCIPAL
   ========================================================= */

.contact-container {
    max-width: 1000px;
    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 35px 50px;

    align-items: start;
}


/* =========================================================
   INFORMATIONS CONTACT
   ========================================================= */

.contact-info {
    /* Prend toute la largeur */
    grid-column: 1 / -1;

    /* Organisation interne */
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    row-gap: 8px;

    width: 100%;
    box-sizing: border-box;

    /* Cadre */
    padding: 25px 30px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fafafa;

    /* Légère séparation visuelle */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

    align-items: start;
}

/* Titre à gauche */
.contact-info h3 {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 10px 0;
}

/* Texte à gauche */
.contact-info > p:first-of-type {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
}

/* Téléphone à droite */
.contact-info > p:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

/* Email à droite */
.contact-info > p:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
}

/* Zone d'intervention en bas à droite */
.contact-info > p:nth-of-type(4) {
    grid-column: 2;
    grid-row: 3;
    margin: 25px 0 0 0;
}

/* Icônes */
.contact-info i {
    margin-right: 8px;
}


/* =========================================================
   FORMULAIRE
   ========================================================= */

.contact-form {

    grid-column: 1 / -1;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px 20px;
}


/* Tous les champs */

.contact-form input,
.contact-form select,
.contact-form textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 13px 15px;

    border: 1px solid #ccc;

    border-radius: 8px;

    font-family: inherit;

    font-size: 1rem;

    background-color: white;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Focus */

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {

    outline: none;

    border-color: #999;

    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   NOM + PRÉNOM
   ========================================================= */

/*
   Les deux premiers input sont :
   Nom / Prénom
*/

.contact-form > input:nth-of-type(1),
.contact-form > input:nth-of-type(2) {

    grid-column: span 1;
}


/* =========================================================
   EMAIL + TÉLÉPHONE
   ========================================================= */

/*
   Attention :
   Le honeypot et le champ hidden sont ignorés
   par la mise en page grâce à leur position.
*/

.contact-form > input[name="telephone"],
.contact-form > input[name="email"] {

    grid-column: span 1;
}


/* =========================================================
   TYPE D'INTERVENTION
   ========================================================= */

.contact-form > select {

    grid-column: 1 / -1;
}


/* =========================================================
   ADRESSE
   ========================================================= */

.contact-form > input[name="adresse"] {

    grid-column: 1 / -1;
}


/* =========================================================
   CODE POSTAL + VILLE
   ========================================================= */

.contact-form > input[name="code_postal"],
.contact-form > input[name="ville"] {

    grid-column: span 1;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.contact-form > textarea {

    grid-column: 1 / -1;

    resize: vertical;

    min-height: 130px;
}


/* =========================================================
   CONFIDENTIALITÉ
   ========================================================= */

.contact-form .form-privacy {

    grid-column: 1 / -1;

    margin: 0;

    font-size: 0.85rem;

    line-height: 1.5;

    color: #666;
}

.contact-form .form-privacy a {

    text-decoration: underline;
}


/* =========================================================
   BOUTON ENVOI
   ========================================================= */

.contact-form .btn-submit {

    background-color: #ffffff;

    grid-column: 1 / -1;

    justify-self: center;

    padding: 13px 25px;

    border: 1px solid #ccc;

    border-radius: 8px;

    cursor: pointer;

    font-family: inherit;

    font-size: 1rem;

    font-weight: 600;
}

.contact-form .btn-submit:hover {
    background-color: #0086e0;
}

/* =========================================================
   STATUT DU FORMULAIRE
   ========================================================= */

.contact-form .form-status {

    grid-column: 1 / -1;

    text-align: center;
}


/* =========================================================
   ANTI-SPAM
   ========================================================= */

.form-honeypot {

    position: absolute;

    left: -9999px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


/* =========================================================
   FORMULAIRE - ORGANISATION
   ========================================================= */

.contact-form {
    width: 100%;
}


/* Chaque champ */

.form-field {
    width: 100%;
}


/* Groupes "l'un ou l'autre" */

.form-group-required {
    width: 100%;
    margin-bottom: 18px;
}


/* Deux champs sur la même ligne */

.form-group-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}


/* Labels */

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}


/* Étoile */

.required-star {
    color: #d00000;
    font-weight: bold;
}


/* Indication "Nom ou prénom..." */

.form-help {
    width: 100%;
    margin-top: 6px;

    font-size: 0.85rem;
    color: #666;
}


/* =========================================================
   ERREURS
   ========================================================= */

.field-error {
    display: none;

    width: 100%;
    box-sizing: border-box;

    margin-top: 8px;
    padding: 9px 12px;

    color: #b00020;
    background: #fff0f0;

    border: 1px solid #e0a0a0;
    border-radius: 6px;

    font-size: 0.9rem;
    line-height: 1.4;
}


/* Erreur visible */

.field-error.visible {
    display: block;
}


/* Champs en erreur */

.field-error-input {
    border-color: #b00020 !important;

    box-shadow:
        0 0 0 2px rgba(176, 0, 32, 0.12);
}


/* =========================================================
   ESPACEMENT DES CHAMPS
   ========================================================= */

.contact-form > input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 18px;
}


/* Groupe Nom / Prénom */

.form-group-required {
    margin-bottom: 20px;
}


/* Intervention */

.form-field {
    margin-bottom: 20px;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
}


/* =========================================================
   RAPPEL DES CHAMPS OBLIGATOIRES
   ========================================================= */

.form-required-info {
    margin: 5px 0 18px;

    font-size: 0.85rem;
    color: #666;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .form-group-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }

}




/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .contact {

        padding: 60px 15px;
    }


    .contact-container {

        display: block;
    }


    /* Informations */


    .contact-info {
        display: block;
        padding: 20px;
    }

    .contact-info h3 {
        margin-bottom: 10px;
    }

    .contact-info > p {
        margin-bottom: 12px;
    }

    .contact-info > p:nth-of-type(4) {
        margin-top: 20px;
    }

    /* Formulaire */

    .contact-form {

        display: grid;

        grid-template-columns: 1fr;

        gap: 15px;

        margin-top: 25px;
    }


    .contact-form > input,
    .contact-form > select,
    .contact-form > textarea,
    .contact-form .form-privacy,
    .contact-form .btn-submit,
    .contact-form .form-status {

        grid-column: 1;
    }


    /* Nom + prénom */

    .contact-form > input[name="nom"],
    .contact-form > input[name="prenom"] {

        grid-column: 1;
    }


    /* Email + téléphone */

    .contact-form > input[name="telephone"],
    .contact-form > input[name="email"] {

        grid-column: 1;
    }


    /* Code postal + ville */

    .contact-form > input[name="code_postal"],
    .contact-form > input[name="ville"] {

        grid-column: 1;
    }

}
/* =========================================================
   PAGES LÉGALES
   ========================================================= */
.legal-page {
    min-height: 100vh;
    padding: 120px 20px 60px;
    background: #f7f9fc;
}

.legal-container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.legal-container h1 {
    margin: 0 0 10px;
    font-size: 2.5rem;
    color: #1d3557;
}

.legal-update {
    margin-bottom: 45px;
    color: #777;
    font-size: 0.9rem;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    margin-bottom: 18px;
    color: #1d3557;
    font-size: 1.45rem;
}

.legal-section p, .legal-section li {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #444;
}

.legal-section ul {
    margin: 15px 0 20px 25px;
    padding: 0;
}

.legal-section a {
    color: #0077b6;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-section strong {
    color: #222;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background-color: #005ec9;
    color: white;
    text-align: center;
    padding: 1.5rem;
}

.footer-legal {
    margin-top: 10px;
}

.footer-legal a,
.footer-legal a:visited {
    color: #00a8a8;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #00dae9;
    text-decoration: underline;
}

.footer-legal span {
    color: white;
    margin: 0 8px;
}

/* =========================================================
   RESPONSIVE (MOBILE ET TABLETTE)
   ========================================================= */
@media (max-width: 768px) {
    header {
        width: calc(100% - 20px);
        margin: 10px auto 0;
        padding: 0.8rem 1rem;

        border-radius: 14px;

        top: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 0;
        margin-bottom: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .gallery {
        padding: 3rem 5%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        border-radius: 8px;
    }

    .gallery-lightbox {
        padding: 15px;
    }

    .gallery-lightbox img {
        max-width: 95vw;
        max-height: 85vh;
    }

    .gallery-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .legal-page {
        padding: 100px 15px 40px;
    }

    .legal-container {
        padding: 30px 22px;
        border-radius: 12px;
    }

    .legal-container h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }
}

/* =========================================================
   WHATSAPP - BOUTON FLOTTANT
   ========================================================= */

.whatsapp-container {
    position: fixed;
    right: 20px;
    bottom: 20px;

    /* Au-dessus du bouton Google */
    z-index: 3000;
}


/* =========================================================
   BOUTON WHATSAPP
   ========================================================= */

.whatsapp-button {
    width: 60px;
    height: 60px;

    border: none;
    border-radius: 30px;

    background-color: #25D366;
    color: white;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding: 0;

    cursor: pointer;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);

    overflow: hidden;

    transition:
        width 0.35s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   LOGO WHATSAPP
   ========================================================= */

.whatsapp-logo {
    width: 40px;
    height: 40px;

    object-fit: contain;

    flex: 0 0 60px;
}


/* =========================================================
   TEXTE QUI APPARAÎT AU SURVOL
   ========================================================= */

.whatsapp-button-text {
    opacity: 0;

    white-space: nowrap;

    font-size: 14px;
    font-weight: 600;

    padding-right: 18px;

    transform: translateX(10px);

    transition:
        opacity 0.2s ease,
        transform 0.25s ease;
}


/* =========================================================
   OUVERTURE DU BOUTON AU SURVOL
   ========================================================= */

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
    width: 235px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);

    transform: translateY(-2px);
}


.whatsapp-button:hover .whatsapp-button-text,
.whatsapp-button:focus-visible .whatsapp-button-text {
    opacity: 1;

    transform: translateX(0);
}


/* =========================================================
   FENÊTRE DE CONVERSATION
   ========================================================= */

.whatsapp-chat {
    position: absolute;

    right: 0;
    bottom: 75px;

    width: 330px;

    background-color: white;

    border-radius: 14px;

    overflow: hidden;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px) scale(0.96);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 3001;
}


/* Fenêtre ouverte */

.whatsapp-chat.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0) scale(1);
}


/* =========================================================
   EN-TÊTE
   ========================================================= */

.whatsapp-chat-header {
    background-color: #075E54;
    color: white;

    padding: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.whatsapp-chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-chat-title strong {
    display: block;
    font-size: 1rem;
}

.whatsapp-chat-title span {
    display: block;
    margin-top: 2px;

    font-size: 0.75rem;
    opacity: 0.9;
}


/* =========================================================
   INDICATEUR EN LIGNE
   ========================================================= */

.whatsapp-status {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background-color: #25D366;

    flex-shrink: 0;
}


/* =========================================================
   BOUTON FERMER
   ========================================================= */

.whatsapp-close {
    width: 32px;
    height: 32px;

    border: none;
    background: transparent;

    color: white;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.whatsapp-chat-body {
    padding: 20px;

    background-color: #f5f5f5;

    min-height: 120px;

    display: flex;
    align-items: flex-start;
}

.whatsapp-message {
    background-color: white;

    padding: 12px 15px;

    border-radius: 4px 14px 14px 14px;

    color: #333;

    font-size: 0.95rem;

    line-height: 1.5;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   BOUTON OUVRIR WHATSAPP
   ========================================================= */

.whatsapp-chat-footer {
    padding: 15px;

    background-color: white;
}

.whatsapp-start {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 15px;

    background-color: #25D366;
    color: white;

    border-radius: 8px;

    text-decoration: none;

    font-weight: bold;

    transition: background-color 0.2s ease;
}

.whatsapp-start:hover {
    background-color: #1ebe5d;
}

.whatsapp-icon-small {
    display: flex;
    align-items: center;
}

.whatsapp-icon-small svg {
    width: 21px;
    height: 21px;
}


.whatsapp-logo-small {
    width: 21px;
    height: 21px;
    object-fit: contain;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .whatsapp-container {
        right: 15px;
        bottom: 15px;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
    }

    .whatsapp-logo {
        width: 31px;
        height: 31px;

        flex-basis: 55px;
    }

    /*
       Sur téléphone, pas de survol :
       on garde simplement le bouton rond.
    */

    .whatsapp-button-text {
        display: none;
    }

    .whatsapp-chat {
        width: calc(100vw - 30px);

        right: 0;
        bottom: 68px;

        max-width: 330px;
    }
}
/* =========================================================
   BOUTON FLOTTANT AVIS GOOGLE
   ========================================================= */

.google-reviews-floating {
    position: fixed;
    right: 20px;
    bottom: 95px;

    display: flex;
    align-items: center;

    width: 52px;
    height: 52px;

    background: #ffffff;
    border-radius: 28px;

    text-decoration: none;
    overflow: hidden;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.20);

    z-index: 2990;

    transition:
        width 0.35s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

/* Le G Google */

.google-reviews-icon {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
}

.google-reviews-icon img {
    width: 100px;
    height: 100px;

    display: block;

    object-fit: contain;
}

/* Partie qui apparaît au survol */

.google-reviews-info {
    width: 0;
    opacity: 0;

    overflow: hidden;
    white-space: nowrap;

    transition:
        width 0.35s ease,
        opacity 0.20s ease;
}

/* Ouverture du rectangle */

.google-reviews-floating:hover,
.google-reviews-floating:focus-visible {
    width: 255px;
    height : 102px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Texte visible */

.google-reviews-floating:hover .google-reviews-info,
.google-reviews-floating:focus-visible .google-reviews-info {
    width: 195px;
    opacity: 1;
}

/* Note */

.google-reviews-rating {
    display: flex;
    align-items: center;
    gap: 5px;

    color: #222;

    font-size: 15px;
    line-height: 1;
}

.google-reviews-rating strong {
    font-size: 17px;
}

.google-star {
    color: #fbbc04;
    font-size: 17px;
}

.google-reviews-count {
    color: #555;
    font-size: 14px;
}

/* "Avis Google" */

.google-reviews-label {
    margin-top: 4px;

    color: #444;

    font-size: 12px;
    font-weight: 600;
}

/* Petit texte d'action */

.google-reviews-action {
    margin-top: 3px;

    color: #666;

    font-size: 11px;
}

/* Effet au survol */

.google-reviews-floating:hover {
    transform: translateY(-2px);
}


/* =========================================================
   VERSION MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .google-reviews-floating {
        right: 15px;
        bottom: 90px;

        width: 52px;
        height: 52px;
    }

    /*
       Sur téléphone il n'y a pas de véritable "hover".
       On affiche donc directement les informations.
    */

    .google-reviews-floating:active {
        width: 255px;
    }
}


/* =========================================================
   CORRECTION MOBILE - HEADER + HERO
   ========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------------------
       HEADER MOBILE
       ----------------------------------------------------- */

    header {
        width: calc(100% - 20px);
        max-width: none;

        margin: 8px auto 0;
        padding: 10px 12px;

        border-radius: 14px;

        top: 8px;

        /* On empile proprement les éléments */
        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 8px;
    }


    /* -----------------------------------------------------
       LOGO
       ----------------------------------------------------- */

    .logo-img {
        height: 48px;
        width: auto;

        margin-right: 0;
    }


    /* -----------------------------------------------------
       MENU
       ----------------------------------------------------- */

    nav {
        width: 100%;
    }

    nav ul {
        width: 100%;

        display: flex;
        flex-wrap: nowrap;

        justify-content: center;
        align-items: center;

        gap: 0;

        margin: 0;
        padding: 0;

        list-style: none;
    }

    nav ul li {
        margin: 0;
        flex: 1;
        text-align: center;
    }

    nav ul li a {
        display: block;

        padding: 5px 2px;

        font-size: 0.82rem;
        font-weight: 600;

        white-space: nowrap;
    }


    /* -----------------------------------------------------
       CONTACT / TÉLÉPHONE / RÉSEAUX
       ----------------------------------------------------- */

    .header-contact {
        width: 100%;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 8px;

        white-space: nowrap;
    }

    .btn-call {
        padding: 6px 10px;

        font-size: 0.85rem;

        white-space: nowrap;
    }

    .header-socials {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .header-social-icon {
        width: 30px;
        height: 30px;
    }


    /* -----------------------------------------------------
       HERO MOBILE
       ----------------------------------------------------- */

    .hero {
        height: 100svh;
        min-height: 650px;

        /*
           Le header est maintenant beaucoup moins haut.
           On ne remonte donc pas autant le Hero.
        */
        margin-top: -165px;

        padding: 100px 18px 30px;

        align-items: center;

    }


    /* -----------------------------------------------------
       TITRE HERO
       ----------------------------------------------------- */

    .hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.2rem);

        line-height: 1.2;

        margin-bottom: 12px;
    }


    /* -----------------------------------------------------
       SOUS-TITRE HERO
       ----------------------------------------------------- */

    .hero p {
        font-size: 1.05rem;

        line-height: 1.45;

        margin-bottom: 18px;
    }


    /* -----------------------------------------------------
       HORAIRES
       ----------------------------------------------------- */

    .hero-hours {
        width: 100%;
        max-width: 500px;

        margin: 15px auto 20px;

        padding: 12px 15px;

        font-size: 0.9rem;

        line-height: 1.45;
    }


    /* -----------------------------------------------------
       BOUTONS HERO
       ----------------------------------------------------- */

    .hero-buttons {
        width: 100%;

        flex-direction: column;

        align-items: center;

        gap: 10px;
    }

    .btn-urgent,
    .btn-secondary {
        width: 100%;
        max-width: 300px;

        justify-content: center;

        padding: 10px 20px;

        font-size: 1rem;
    }


    /* -----------------------------------------------------
       GOOGLE
       ----------------------------------------------------- */

    .google-reviews-floating {
        right: 15px;
        bottom: 85px;

        width: 50px;
        height: 50px;
    }

    .google-reviews-icon {
        flex: 0 0 50px;

        width: 50px;
        height: 50px;
    }

    /*
       Sur mobile, on garde uniquement le bouton G.
       Le panneau au survol n'est pas pratique sur téléphone.
    */
    .google-reviews-floating:hover {
        width: 50px;
        height: 50px;

        transform: none;
    }

    .google-reviews-floating:hover .google-reviews-info {
        width: 0;
        opacity: 0;
    }


    /* -----------------------------------------------------
       WHATSAPP
       ----------------------------------------------------- */

    .whatsapp-container {
        right: 15px;
        bottom: 15px;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
    }

}