/* ===== reset.css ===== */
/* RESET de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== variables.css ===== */
/* Variables globales */


/* ===== base.css ===== */
/* Base styles: polices, reset de base */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@700&family=Poppins:wght@400;600&display=swap');

/* Variables */
:root {
    --dark-color: #4e443a; /* Marron foncé */
    --light-color: #f5f5dc; /* Beige */
    --accent-color: #a1887f; /* Marron moyen */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-bg: linear-gradient(135deg, #fdf5e6, #f5f5dc); /* Dégradé beige */
    --font-body: 'Poppins', sans-serif;
    --font-title: 'Lora', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Titres globaux */
h1, .section-title {
    font-family: var(--font-title);
}

h1 {
    font-size: 2.5rem;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 0.5rem 1rem;
    text-align: center;
    margin: 2rem auto;
    border-radius: 8px;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin: 40px 0 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dark-color);
}

p {
    margin-bottom: 1rem;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

a {
    color: #6d5b4b; /* Marron pour les liens */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

/* Scroll haut */
.scroll-to-top-left {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-color);
    background: transparent;
    text-decoration: none;
    padding: 8px 12px;
    border: 2px solid var(--dark-color);
    border-radius: 30px;
    display: none;
    transition: all 0.3s ease;
}

.scroll-to-top-left:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
    transform: scale(1.1);
}

/* ===== header.css ===== */
/* Header complet */
.header {
    background: var(--gradient-bg);
    padding: 2rem 0 1rem;
    box-shadow: 0 4px 12px var(--shadow-color);
    text-align: center;
    position: relative;
}

.logo-title img {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.site-title {
    font-family: var(--font-title); /* Police des titres harmonisée */
    font-size: 4rem; /* Taille de police réduite */
    color: var(--light-color); /* Couleur de texte claire */
    background-color: var(--dark-color); /* Fond marron foncé */
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    text-transform: none; /* Suppression de la mise en majuscules */
    letter-spacing: 1px; /* Espacement des lettres réduit */
    text-shadow: none; /* Suppression de l'ombre portée */
    -webkit-text-stroke: 0; /* Suppression du contour */
    margin: 20px auto 0;
    animation: none; /* Suppression de l'animation de lueur */
    transition: transform 0.3s ease; /* Transition plus subtile */
}

.site-title:hover {
    transform: scale(1.05); /* Effet de survol allégé */
    text-shadow: none;
}

.damier-bar {
    display: none; /* Suppression de l'animation damier */
}

@keyframes damierMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

.slogan {
    font-size: 1.5rem;
    font-weight: 400;
    color: #555;
    margin-top: 15px;
    margin-bottom: 20px;
    font-style: italic;
    text-align: center;
}

/* Trait simple sous header */
.header-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-color: var(--dark-color); /* Bordure unie */
}

/* ===== footer.css ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 30px 0;
    position: relative;
    text-align: center;
}

.footer-border {
    height: 6px;
    background-color: var(--dark-color); /* Bordure unie */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-contact {
    font-size: 1rem;
}

.footer-link {
    margin-top: 10px;
}

.footer-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.footer-link a:hover {
    color: #fff;
}

.copyright {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== buttons.css ===== */
/* Bouton principal - Demandez votre devis */
.cta-button {
    display: inline-block;
    margin: 20px auto 0;
    padding: 12px 25px;
    background-color: var(--dark-color);
    color: var(--light-color);
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 12px var(--shadow-color);
    animation: pulse 2s infinite;
    text-align: center;
}

.cta-button:hover {
    background: linear-gradient(135deg, #000, #222);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px var(--shadow-color);
}

/* Téléphone cliquable */
.phone-link {
    font-weight: bold;
    color: var(--dark-color);
    display: inline-block;
    position: relative;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.phone-link i {
    left: 5px;
}

.phone-link:hover {
    color: #fff;
    background-color: var(--dark-color);
    transform: scale(1.1);
}

/* Animation de pulsation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== form.css ===== */
.contact-section {
    margin: 50px auto;
    text-align: center;
}

.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form button {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.contact-form button:hover {
    background-color: #3a332b; /* Un peu plus foncé au survol */
}

/* Styles pour les messages de statut du formulaire */
.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.form-status.success {
    background-color: #d4edda; /* Vert pastel */
    color: #155724; /* Vert foncé */
    opacity: 1;
}

.form-status.error {
    background-color: #f8d7da; /* Rouge pastel */
    color: #721c24; /* Rouge foncé */
    opacity: 1;
}

/* ===== carousel.css ===== */
/* Carousel */
.carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    background-color: #f5f5f5; /* Nouveau fond clair du container */
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel {
    display: flex;
}

.carousel-slide {
    flex: 0 0 100%;
    max-width: 100%;
    height: auto; /* Hauteur automatique */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color); /* Fond beige du site */
}

.carousel-slide img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain; /* Respecte le ratio et évite le zoom */
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



/* Boutons précédent/suivant */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    pointer-events: all;
    background-color: rgba(52, 152, 219, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: rgba(41, 128, 185, 0.9);
}

/* Points indicateurs */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: white;
}

/* Adaptation Mobile */
@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 100%;
    }
}

/* ===== background-drawings.css ===== */
.background-drawings {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.bg-drawing {
    position: absolute;
    width: 80px;
    opacity: 0.1;
    filter: blur(1px);
    animation: floatSlow 12s ease-in-out infinite;
    transform: translate(-50%, -50%);
}

@keyframes floatSlow {
    0% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(10px); }
    100% { transform: translate(-50%, -50%) translateY(0); }
}

/* Masquer les icônes de fond sur mobile */
@media (max-width: 768px) {
    .background-drawings {
        display: none;
    }
}

/* ===== components.css ===== */
/* Contact Infos */
.contact-info {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 8px var(--shadow-color);
    margin: 20px auto 30px;
    max-width: 600px;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info a {
    color: #3498db;
    font-weight: bold;
}
.contact-info a:hover {
    text-decoration: underline;
}

/* Formulaire */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    max-width: 600px;
    margin: 40px auto;
}

/* Bannière */
.banner {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 15px 0;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 30px;
}

/* Double Colonne */
.double-column {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    box-shadow: 0 5px 15px var(--shadow-color);
    border-radius: 8px;
    overflow: hidden;
    margin: 40px 0;
}
.double-column .column {
    flex: 1 1 50%;
    padding: 40px;
    text-align: center;
    border-right: 1px solid #eee;
}
.double-column .column:last-child {
    border-right: none;
}

/* Responsive */
@media (max-width: 768px) {
    .double-column {
        flex-direction: column;
    }
    .double-column .column {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 20px;
    }
    .double-column .column:last-child {
        border-bottom: none;
    }
}

/* ===== mobile.css ===== */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.8rem;
        letter-spacing: 4px;
        margin-top: 20px;
    }

    h1 {
        font-size: 1.6rem;
        line-height: 1.3;
        max-width: 90%;
        margin: 20px auto;
        text-align: center;
    }

    .about-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .carousel-slide {
        height: 300px;
    }

    .cta-button {
        font-size: 1.2rem;
        padding: 12px 24px;
        margin-top: 20px;
    }

    .contact-info {
        width: 90%;
        max-width: 90%;
        padding: 15px;
        margin: 20px auto;
        font-size: 1rem;
    }

    .contact-info div {
        flex-direction: column;
        gap: 8px;
    }

    .contact-info i {
        font-size: 1.2rem;
    }

    .double-column {
        flex-direction: column;
    }

    .double-column .column {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 20px;
    }

    .double-column .column:last-child {
        border-bottom: none;
    }

    .background-drawings {
        display: none;
    }

    .carousel-container {
        min-height: 320px;
    }
}

/* ===== villes.css ===== */
/* Styles pour la page des villes */
.commune-list {
    list-style: none;
    padding: 0;
    column-count: 4;
    column-gap: 20px;
    margin-bottom: 30px;
}

.commune-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.search-container {
    text-align: center;
    margin: 30px 0;
}

#citySearch {
    width: 50%;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid var(--dark-color);
    border-radius: 25px;
    background-color: var(--light-color);
    color: var(--dark-color);
    transition: all 0.3s ease;
}

#citySearch:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

@media (max-width: 768px) {
    .commune-list {
        column-count: 2;
    }
    #citySearch {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .commune-list {
        column-count: 1;
    }
}
