/*Styles général (id et class) tablette et pc*/

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

    }
}

body{
    max-width: 100%;
    overflow-x: hidden;
    background-color: #EEE6D8;
    margin: 0;
    font-family: 'Work Sans', sans-serif;
}

#container {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    
}

#header {
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column-start: 1;
    grid-column-end: 11;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #E5E7E6;
}
#logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin-right: 30px;
}

#main-container {
    grid-row: 2/3;
    grid-column: 1/11;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    
}

#main-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 50%;

}


#services-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #E5E7E6;
}

#services-cards {
    display: grid; /* On passe en grille */
    grid-template-columns: 1fr; /* Par défaut une colonne pour PC car tes sections sont larges */
    gap: 30px;
    padding: 30px 60px; /* On harmonise le padding avec les post-its */
    opacity: 0;
    animation: apparitionDouce 1s ease-out forwards;
    animation-delay: 1s;
}

.service {
    display: flex;
    flex-direction: row; /* Côte à côte sur PC */
    align-items: center;
    justify-content: space-between;
    background-color: #DAAB3A80; /* Même couleur que tes post-its */
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    gap: 30px;
    text-align: center; /* Pour que le texte soit centré comme les post-its */
}

.services-text {
    display: flex;
    flex-direction: column;
}

.services-text h3 {
    color: #93441A;
    font-size: 30px;
    text-align: center;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 10px;
}

.services-text p {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.5;
}

#services-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

#services-btn {
    align-self: center;
    background-color: #93441A;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    font-weight: 400;
    border: none;
    cursor: pointer;
    margin-top: 40px;
    margin-bottom: 20px;
    transition: all 0.3 ease;
}

#services-btn:hover {
    background-color: #B67332;
    transform: scale(1.1);

}


.label {
    background-color: #E5E7E6;
    padding: 10px 10px 10px 10px;
    border-radius: 20px;
}

#services-list p {
    font-size: 15px;
    font-weight: 400;
}

#map-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre le titre et la carte */
    margin-top: 50px;
    margin-bottom: 50px;
}

#map-container h2 {
    color: #93441A;
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 20px;
    font-family: 'Work Sans', sans-serif;
}

#map-container iframe {
    max-width: 900px;
    height: 400px;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

#footer {
    grid-column: 1 / 11;
    background-color: #E5E7E6; 
    padding: 20px 20px 10px 20px;
    display: flex;
    flex-direction: column;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap; /* Pratique pour le mobile ! */
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    max-width: 300px;
}

.footer-col h3 {
    color: #F5C227;
    margin-bottom: 15px;
}

.footer-col a, .footer-col p {
    color: black;
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-col a:hover {
    color: #F5C227;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    font-size: 14px;
}



a {
    text-decoration: none;
    color: #93441A;
}

.bouton-devis {
    background-color: #93441A;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    transition: all 0.3 ease;
}

.bouton-devis:hover {
    background-color: #B67332;
    transform: scale(1.1);
}




.logo {
    width: 60px;
    margin-left: 20px;
    margin-top: 10px;
}

#title {
    margin-left: 10px;
    text-align: center;
    font-size: 25px;
    font-weight: 700;
}

#main-title {
    text-align: left;
    font-size: 80px;
    font-weight: 200;
    color: #93441A;
    margin: 0;
}
.subtitle {
    text-align: left;
    font-size: 25px;
    font-weight: 400;
    color: #93441A;
}

#button-contact {
    background-color: #93441A;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    font-weight: 400;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px;
    transition: all 0.3 ease;
}

#button-contact:hover {
    background-color: #B67332;
    transform: scale(1.1);

}

h2 {
    color: #93441A;
    font-size: 40px;
    font-weight: 400;
}

.main-logo {
    width: 400px;
    transform: scaleX(-1);
    margin-right: 10px;
}

.logo-service {
    width: 300px;
    flex-shrink: 0;
}


.yellow {
    color: #F5C227;
}

.black {
    color: black;
}


#services-postit {
    display: grid;
    /* On crée 3 colonnes de taille égale (1 fraction chacune) */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; /* L'espace entre les cartes */
    padding: 30px 60px; /* Décolle le contenu des bords de la page */
}

.postit {
    background-color: #DAAB3A80;; /* Fond beige clair pour la carte */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre tous les éléments horizontalement */
    padding: 30px 20px;
    border-radius: 15px; /* Arrondit les angles de la carte */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05); /* Petite ombre légère */
    text-align: center; /* Aligne le texte au centre */
    opacity: 0;
}

.postit.visible {
    animation: apparitionDouce 1s ease-out forwards;
    
}

.postit:nth-child(1), .postit:nth-child(4), .postit:nth-child(7) { animation-delay: 0.1s; }
.postit:nth-child(2), .postit:nth-child(5), .postit:nth-child(8) { animation-delay: 0.3s; }
.postit:nth-child(3), .postit:nth-child(6), .postit:nth-child(9) { animation-delay: 0.5s; }


/* Le cercle blanc pour l'icône */
.icon-circle {
    background-color: #E5E7E6;
    width: 80px; /* Taille du cercle */
    height: 80px;
    border-radius: 50%; /* Rend le cercle parfait */
    display: flex;
    justify-content: center; /* Centre horizontalement l'icône dans le cercle */
    align-items: center; /* Centre verticalement l'icône dans le cercle */
    margin-bottom: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05); /* Ombre légère pour le cercle */
}

.logo-postit {
    width: 50px; /* Taille de ton icône */
}

.postit-text {
    display: flex;
    flex-direction: column;
}

.postit-text h3 {
    color: #93441A;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px; /* Taille du titre du service */
}

.postit-text li {
    margin: 0;
    font-size: 14px;
    line-height: 1.5; /* Rend le texte plus lisible */
    text-align: left;
}

.postit-btn {
    background-color: #93441A;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    margin-top: auto;
    margin-bottom: 20px;
    transition: all 0.3 ease;
}

.postit-btn:hover {
    background-color: #B67332;
    transform: scale(1.1);

}

#gallery-container {
    padding: 60px 20px;
    text-align: center;
    background-color: white; /* Pour trancher avec le fond beige clair de tes post-its */
}

#gallery-container h2 {
    color: #93441A;
    margin-bottom: 40px;
}

/* LE CONTENEUR GLOBAL */
#gallery-container {
    padding: 60px 0; /* J'ai enlevé le padding sur les côtés pour laisser les images glisser jusqu'au bord */
    text-align: center;
    background-color: white;
    max-width: 100vw; /* Empêche la boîte de devenir plus grande que l'écran */
    overflow: hidden; /* Empêche l'apparition d'une barre de défilement en bas de la page entière */
}

#gallery-container h2 {
    color: #93441A;
    margin-bottom: 40px;
}

/* LE CARROUSEL (LA PISTE DE GLISSE) */
.carousel {
    display: flex; 
    gap: 20px; 
    padding: 0 20px 20px 20px; 
    
    /* LES 2 LIGNES QUI FORCENT LE DÉFILEMENT : */
    width: 100%; 
    overflow-x: auto; 
}

/* LES IMAGES */
.carousel-img {
    height: 350px; 
    width: auto; 
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    
    /* LA LIGNE QUI EMPÊCHE L'ÉCRASEMENT : */
    flex-shrink: 0; 
}

/* CACHER LA BARRE DE DÉFILEMENT MOCHE */
.carousel::-webkit-scrollbar {
    display: none; 
}
.carousel {
    scrollbar-width: none; 
}

#devis-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 60px 20px;
}
#devis-container p{
    text-align: center;
}

#devis-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-card {
    background-color: #DAAB3A80; /* Ton beige de post-it */
    border-radius: 20px;
    padding: 60px 40px 40px 40px; /* Gros padding en haut à cause du cercle */
    position: relative; /* Indispensable pour placer le cercle à cheval */
    max-width: 600px;
    width: 100%;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* LE CERCLE AVEC LA PHOTO */
.form-profile-circle {
    width: 100px;
    height: 100px;
    background-color: #E5E7E6;
    border-radius: 50%;
    position: absolute;
    top: -50px; /* Fait dépasser le cercle à moitié à l'extérieur (100px / 2) */
    left: 50%;
    transform: translateX(-50%); /* Centre le cercle horizontalement */
    border: 5px solid white; /* Petite bordure blanche pour bien le détacher */
    overflow: hidden; /* Force l'image carrée à devenir ronde */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

.form-profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Centre et recadre la photo parfaitement */
}

.form-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}

#devis-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-section {
    border: 2px solid white; /* Cadre blanc élégant */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.form-section legend {
    background-color: white;
    color: #93441A;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
}

.form-divider {
    border: none;
    border-top: 1px dashed #93441A; /* Ligne de séparation en pointillés */
    width: 80%;
    margin: 30px 0;
    opacity: 0.5;
}

.call-action {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-call {
    background-color: #93441A; /* Un beau vert rassurant pour le téléphone */
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
}

.btn-call:hover {
    background-color: #B67332;
    transform: scale(1.05);
}

/* ========================================= */
/* 📱 OPTIMISATION TABLETTES ET MOBILES      */
/* ========================================= */

/* --- TABLETTES (Écrans inférieurs à 900px) --- */
@media (max-width: 900px) {
    
    /* On réduit un peu la taille du titre principal et de l'abeille */
    #main-title {
        font-size: 50px;
    }
    .main-logo {
        width: 300px;
    }

    /* Les post-its passent sur 2 colonnes au lieu de 3 */
    #services-postit {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 20px;
    }

    /* Les grandes cartes de services (texte + image) s'empilent à la verticale */
    .service {
        flex-direction: column;
        text-align: center;
    }
    .logo-service {
        width: 100%;
        max-width: 300px;
    }
}

/* --- SMARTPHONES (Écrans inférieurs à 600px) --- */
@media (max-width: 600px) {
    
    /* L'en-tête : on centre le logo et on passe le menu en dessous */
    #header {
        flex-direction: column;
        padding: 15px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .main-logo {
        max-width: 80%; /* Elle ne pourra jamais dépasser 80% de la largeur du téléphone */
        height: auto;
    }

    #menu {
        margin-right: 0;
        margin-top: 15px;
        flex-wrap: wrap; /* Permet aux boutons de passer à la ligne si besoin */
        justify-content: center;
        gap: 15px;
    }

    /* La zone d'accueil principale s'empile et se centre */
    #main {
        flex-direction: column;
        gap: 30px;
        padding: 20px 0;
    }
    #main-text {
        max-width: 90%; /* Prend toute la largeur au lieu de 50% */
        text-align: center;
    }
    #main-title {
        font-size: 40px !important;
        text-align: center;
    }
    .subtitle {
        font-size: 16px !important;
        text-align: center;
    }

    /* Les post-its passent sur 1 seule colonne */
    #services-postit {
        grid-template-columns: 1fr;
        padding: 20px 10px;
    }

    /* Ajustement de la carte de devis pour qu'elle ne touche pas les bords de l'écran */
    #devis-container {
        padding: 60px 10px;
    }
    .form-card {
        padding: 60px 20px 30px 20px; /* Moins d'espace perdu sur les côtés */
    }

    /* Le plan d'accès s'adapte à la largeur de l'écran */
    #map-container iframe {
        max-width: 90%;
    }
}

/* ========================================= */
/* 🔧 CORRECTIONS SPÉCIFIQUES MOBILE         */
/* ========================================= */

/* --- TABLETTE ET MOBILE (Moins de 900px) --- */
@media (max-width: 900px) {

    #services-container {
        padding: 60px 20px;
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
    }
    
    /* On force l'ordre des cartes (Image en haut, texte en dessous) */
    .service {
        flex-direction: column !important; /* Image au-dessus du texte */
        margin: 0 auto 30px auto !important;
        padding: 25px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    #services-cards {
        grid-template-columns: 1fr; 
        padding: 20px 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    
     /* Réduction des marges pour mobile */
    }

    .logo-service {
        width: 180px; /* Réduction de l'image pour mobile */
        margin-bottom: 10px;
    }
    .services-text h3 {
        font-size: 22px; /* Titre plus adapté */
    }

    /* L'image passe TOUJOURS en premier */
    .service .logo-service {
        order: 1; 
        margin-bottom: 20px;
    }

    /* Le texte passe TOUJOURS en deuxième */
    .service .services-text {
        order: 2;
    }

    /* Si ton bouton est en dehors du texte, il passera en troisième */
    .service .btn, 
    .service .bouton-devis, 
    .service #services-btn {
        order: 3;
        margin-top: 15px;
    }

    #service-list {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .services-text {
        width: 100%;
    }
}

/* --- SMARTPHONES UNIQUEMENT (Moins de 600px) --- */
@media (max-width: 600px) {

    /* On dompte les grands titres pour qu'ils restent dans l'écran */
    h2, #map-container h2, #devis-container h2 {
        font-size: 20px !important; /* On réduit la taille de 40 à 28 */
        overflow-wrap: break-word; /* Autorise à couper un mot trop long */
        word-wrap: break-word;
        hyphens: auto; /* Rajoute un petit tiret si le mot est coupé */
        text-align: center;
    }
}
#container {
        display: flex;
        flex-direction: column; /* Tout s'empile naturellement */
        width: 100%;
        overflow-x: hidden;
    }

#map-container p {
    text-align: center;
}

/* ========================================= */
/* DESIGN DE LA CASE RGPD                    */
/* ========================================= */

.checkbox-group {
    flex-direction: row; /* On force la case et le texte à se mettre sur la même ligne */
    align-items: flex-start; /* Aligne la case avec la première ligne du texte */
    gap: 15px; /* Petit espace entre la case et le texte */
    margin-bottom: 25px;
    padding: 0 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px; /* Force une taille fixe pour la case */
    height: 20px;
    margin-top: 2px; /* Descend légèrement la case pour l'aligner avec le texte */
    cursor: pointer;
    flex-shrink: 0; /* Empêche la case de s'écraser sur petit écran */
}

.checkbox-group label {
    font-size: 13px;
    font-weight: 400;
    color: #555; /* Un gris un peu plus clair pour montrer que ce sont des "petites lignes" */
    line-height: 1.5;
    cursor: pointer;
}


/* ========================================= */
/* DESIGN DE LA PAGE MENTIONS LÉGALES        */
/* ========================================= */

#legal-container {
    background-color: white;
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 800px; /* On empêche le texte de s'étaler sur toute la largeur de l'écran */
    margin: 40px auto; 
    width: 100%;
    box-sizing: border-box;
}

#legal-container h1 {
    color: #93441A;
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: #93441A;
    font-size: 22px;
    border-bottom: 2px solid #E5E7E6; /* Petite ligne discrète sous les titres */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.legal-section h3 {
    color: #B67332; /* Marron clair pour les sous-titres */
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-section p, .legal-section li {
    font-size: 16px;
    line-height: 1.6; /* Espace bien les lignes pour la lisibilité */
    color: #444; /* Gris très foncé pour reposer les yeux */
    margin-bottom: 15px;
}

.legal-section ul {
    padding-left: 20px;
}

/* Optimisation Mobile pour le texte légal */
@media (max-width: 600px) {
    #legal-container {
        padding: 30px 20px;
    }
    #legal-container h1 {
        font-size: 26px;
    }
}

/* ========================================= */
/* DESIGN DU CHAMP PHOTO                     */
/* ========================================= */

/* 1. On enlève l'aspect "champ de texte" global */
.form-group input[type="file"] {
    background-color: transparent;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
}

/* 2. On stylise le bouton "Choisir un fichier" à l'intérieur */
.form-group input[type="file"]::file-selector-button {
    background-color: #E5E7E6;
    color: #93441A;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
}

/* 3. Petit effet au survol */
.form-group input[type="file"]::file-selector-button:hover {
    background-color: #DAAB3A80;
}

