﻿/* --- 1. CONFIGURATION & POLICES --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

:root {
    --allys-bleu: #0A1F40; /* Bleu Nuit */
    --allys-or: #D4AF37; /* Or Mat */
    --blanc: #FFFFFF;
    --gris-fond: #F5F7FA;
    --gris-texte: #555;
}









body {
    font-family: 'Montserrat', sans-serif;
    color: var(--allys-bleu);
    background-color: var(--gris-fond);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- 2. NAVBAR (MENU) --- */
.navbar-allys {
    background: var(--blanc);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--allys-bleu);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--allys-bleu);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .nav-link:hover {
        color: var(--allys-or);
    }

.btn-nav-contact {
    border: 1px solid var(--allys-bleu);
    padding: 8px 20px;
    border-radius: 2px;
    color: var(--allys-bleu);
    font-weight: 600;
}

    .btn-nav-contact:hover {
        background: var(--allys-bleu);
        color: var(--blanc);
    }

/* --- 3. HERO SECTION (ACCUEIL) --- */
/* --- 3. HERO SECTION (ACCUEIL) --- */
.hero-section {
    position: relative;
    /* Hauteur : 80% de la hauteur de l'écran */
    height: 80vh;
    /* Sécurité : jamais moins de 500px de haut */
    min-height: 500px;
    /* LE FOND : Un dégradé bleu foncé par-dessus l'image */
    background: linear-gradient(rgba(10, 31, 64, 0.7), rgba(10, 31, 64, 0.5)), url("/Images/couverture.jpg");
    /* Important : l'image couvre tout l'espace sans se répéter */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Centrage du contenu texte (Flexbox) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanc);
    padding: 0 20px; /* Marge de sécurité sur mobile pour que le texte ne touche pas les bords */
}

/* Ajustement Mobile : on réduit un peu la hauteur sur petit écran */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-hero-primary {
    background-color: var(--allys-or);
    color: var(--blanc);
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-right: 15px;
}

    .btn-hero-primary:hover {
        background-color: #bfa030;
    }

.btn-hero-secondary {
    background-color: transparent;
    border: 2px solid var(--blanc);
    color: var(--blanc);
    padding: 13px 35px;
    font-size: 1rem;
    font-weight: 600;
}

    .btn-hero-secondary:hover {
        background-color: var(--blanc);
        color: var(--allys-bleu);
    }

/* --- 4. COMPOSANT CARTE (Produit) --- */

/* Nouveau code (Accepte les écrans plus petits) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 280px passe partout */
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.allys-card {
    background: var(--blanc);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border-bottom: 3px solid var(--allys-or);
}

    .allys-card:hover {
        transform: translateY(-5px);
    }

.card-img-top {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.badge-status {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--allys-bleu);
    color: white;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.card-body {
    padding: 25px;
}

.card-title {
    margin: 0 0 5px 0;
    color: var(--allys-bleu);
    font-size: 1.4rem;
}

.card-sub {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.card-specs {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: var(--allys-or);
    font-weight: 700;
    font-size: 1.2rem;
}

.btn-details {
    border: 1px solid var(--allys-bleu);
    color: var(--allys-bleu);
    padding: 8px 15px;
    border-radius: 2px;
    font-weight: 600;
}

    .btn-details:hover {
        background: var(--allys-bleu);
        color: white;
    }

/* --- 5. FOOTER --- */
footer {
    background: var(--allys-bleu);
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-top: 80px;
}


/* --- 6. NOUVELLES SECTIONS HOME --- */




/* --- SECTION PILIERS (FEATURES) --- */

.features-section {
    padding: 80px 20px;
    background-color: var(--gris-fond); /* Fond gris clair pour faire ressortir les cartes blanches */
}

.container-features {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

    .section-header h2 {
        color: var(--allys-bleu);
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

.gold-separator {
    width: 80px;
    height: 4px;
    background-color: var(--allys-or);
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* La Grille */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* Les Cartes */
.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Ombre douce et moderne */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent; /* Bordure invisible par défaut */
}

    /* Effet au survol de la souris */
    .feature-card:hover {
        transform: translateY(-10px); /* La carte monte légèrement */
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border-bottom: 4px solid var(--allys-or); /* La ligne dorée apparaît */
    }

.icon-box {
    font-size: 50px;
    margin-bottom: 25px;
    background: #FFF9E6; /* Fond jaune très pâle derrière l'icône */
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.feature-card h3 {
    color: var(--allys-bleu);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}






.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.3s;
}

    .whatsapp-float:hover {
        transform: scale(1.05);
        background-color: #20BA56;
    }











.sidebar-area {
    min-width: 350px; /* Force le formulaire à faire au moins 350px de large */
}

/* --- 7. PAGE DÉTAILS --- */
.detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* 2/3 Contenu, 1/3 Sidebar */
    gap: 40px;
}

@media (max-width: 768px) {
    .detail-container {
      /*  grid-template-columns: 1fr;*/
        display: flex; /* On passe en Flex pour mieux contrôler l'ordre */
        flex-direction: column; /* On empile verticalement */
        padding: 15px; /* Un peu moins de marge sur les bords */
        gap: 30px;
    }
    /* Mobile : une seule colonne */

    .sidebar-area {
        min-width: 100%; /* Le formulaire prend toute la largeur */
        margin-top: 0;
    }
}

.detail-header {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.detail-title {
    font-size: 2.5rem;
    margin: 0;
    color: var(--allys-bleu);
}

.detail-price {
    color: var(--allys-or);
    font-size: 2rem;
    font-weight: 700;
    float: right;
    margin-top: -50px;
}

/* Galerie */
.main-gallery-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}







.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

/*.thumb-img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}*/

/*.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;*/ /* MAGIQUE : Les photos passent à la ligne si pas de place */
    /*gap: 10px;
    margin-top: 15px;
    justify-content: center;*/ /* Centre les vignettes */
/*}*/

.thumb-img {
    width: 80px; /* Taille fixe pour les vignettes */
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0; /* Empêche les vignettes de s'écraser */
}



    .thumb-img:hover {
        opacity: 1;
        border: 2px solid var(--allys-or);
    }

/* Contenu */
.features-grid-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.feature-item i {
    display: block;
    font-size: 24px;
    color: var(--allys-or);
    margin-bottom: 5px;
}

.description-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    line-height: 1.8;
    color: #444;
}

/* Sidebar Contact */
.contact-sidebar {
    background: var(--allys-bleu);
    padding: 30px;
    border-radius: 8px;
    color: white;
    position: sticky;
    top: 100px;
}

.contact-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 2px;
    box-sizing: border-box;
    font-family: 'Montserrat';
}

.btn-submit-contact {
    width: 100%;
    background: var(--allys-or);
    color: white;
    border: none;
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

    .btn-submit-contact:hover {
        background: #bfa030;
    }










/* --- 8. PAGE ARTICLE DE BLOG --- */
.blog-container {
    max-width: 800px; /* Largeur de lecture confortable (comme Medium) */
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-category {
    color: var(--allys-or);
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.blog-title {
    font-size: 2.5rem;
    color: var(--allys-bleu);
    margin: 10px 0 20px 0;
    line-height: 1.2;
}

.blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 40px;
}

.blog-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* Style du contenu riche (HTML) */
.blog-content {
    font-size: 1.15rem; /* Texte un peu plus gros pour la lecture */
    line-height: 1.8;
    color: #333;
    font-family: 'Georgia', serif; /* Police Serif pour le corps du texte (plus lisible) */
}

    .blog-content h3 {
        font-family: 'Montserrat', sans-serif;
        color: var(--allys-bleu);
        margin-top: 40px;
        font-size: 1.5rem;
    }

    .blog-content p.lead {
        font-size: 1.3rem;
        font-weight: 500;
        color: var(--allys-bleu);
        margin-bottom: 30px;
    }

    .blog-content ul {
        margin-bottom: 30px;
        padding-left: 20px;
        list-style-type: disc;
    }













/* --- 9. PAGE CONTACT --- */

/* Bannière simple en haut */
.contact-hero {
    background-color: var(--allys-bleu);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info (petit) | Formulaire (grand) */
    gap: 0; /* Collés l'un à l'autre */
    max-width: 1100px;
    margin: -40px auto 80px auto; /* Remonte sur la bannière bleue (-40px) */
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: white;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        margin: 20px;
    }
    /* Mobile */
}

/* Colonne Gauche : Infos (Bleu foncé) */
.contact-info-panel {
    background-color: #051429; /* Bleu encore plus foncé */
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-item {
    margin-bottom: 30px;
}

.info-label {
    color: var(--allys-or);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.info-value {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Colonne Droite : Formulaire (Blanc) */
.contact-form-panel {
    background-color: white;
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--allys-bleu);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat';
    box-sizing: border-box; /* Important */
    transition: 0.3s;
}

    .form-control:focus {
        border-color: var(--allys-bleu);
        outline: none;
    }

.btn-submit-form {
    background-color: var(--allys-or);
    color: white;
    border: none;
    padding: 15px 40px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

    .btn-submit-form:hover {
        background-color: #bfa030;
    }

/* Message de succès */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}






/* --- 10. PAGE FAIRE CONSTRUIRE --- */

/* Section Processus (Timeline) */
.process-section {
    padding: 80px 20px;
    background: white;
}

.process-step {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 60px auto;
}

    /* Inverse l'ordre une fois sur deux (Image à gauche, puis à droite) */
    .process-step:nth-child(even) {
        flex-direction: row-reverse;
    }

@media (max-width: 768px) {
    .process-step, .process-step:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
}

.step-number {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    color: var(--allys-or);
    opacity: 0.3;
    line-height: 1;
    font-weight: bold;
}

.step-content h3 {
    font-size: 1.8rem;
    color: var(--allys-bleu);
    margin: 10px 0;
}

.step-img {
    flex: 1;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.step-text {
    flex: 1;
}

/* Section Technique (Matériaux) */
.tech-section {
    background-color: var(--allys-bleu);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.tech-card {
    background: rgba(255,255,255,0.05); /* Transparence */
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px 20px;
    border-radius: 4px;
    transition: 0.3s;
}

    .tech-card:hover {
        background: rgba(255,255,255,0.1);
        transform: translateY(-5px);
    }

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.tech-title {
    color: var(--allys-or);
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Comparatif Offres */
.offer-section {
    padding: 80px 20px;
    background: var(--gris-fond);
    text-align: center;
}

.offer-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    margin: 20px;
    flex: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--allys-bleu);
}

    .offer-box.gold {
        border-top-color: var(--allys-or);
    }






/* --- 11. PAGE NOS MODÈLES --- */

/* Filtres (Onglets) */
.models-filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: -30px auto 50px auto; /* Remonte un peu sur le header */
    flex-wrap: wrap;
    padding: 0 20px;
}

.filter-btn {
    background: white;
    border: 1px solid #eee;
    padding: 12px 25px;
    border-radius: 50px; /* Boutons arrondis */
    font-weight: 600;
    color: var(--allys-bleu);
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .filter-btn:hover, .filter-btn.active {
        background: var(--allys-bleu);
        color: white;
        transform: translateY(-3px);
        border-color: var(--allys-bleu);
    }

/* Bannière "Sur Mesure" au milieu de la grille */
.custom-plan-banner {
    grid-column: 1 / -1; /* Prend toute la largeur de la grille */
    background-color: var(--allys-or);
    color: white;
    padding: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); /* Texture subtile optionnelle */
}

@media (max-width: 768px) {
    .custom-plan-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}





/* --- 12. PAGE ACHETER (LISTING) --- */

.listing-header {
    background-color: var(--allys-bleu);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.listing-container {
    display: grid;
    grid-template-columns: 280px 1fr; /* Colonne filtres fixe (280px) + Reste */
    gap: 40px;
    max-width: 1300px;
    margin: 50px auto;
    padding: 0 20px;
}

@media (max-width: 900px) {
    .listing-container {
        grid-template-columns: 1fr;
    }
    /* Mobile : une seule colonne */
}

/* Sidebar Filtres */
.filter-sidebar {
    background: white;
    padding: 25px;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: sticky; /* Reste visible quand on scrolle */
    top: 100px;
}

.filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

    .filter-group:last-child {
        border: none;
    }

.filter-label {
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
    color: var(--allys-bleu);
    font-size: 0.9rem;
}

.filter-select, .filter-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat';
    box-sizing: border-box;
}

/* Range Slider (Prix) */
.price-slider {
    width: 100%;
    cursor: pointer;
    accent-color: var(--allys-or);
}

.price-display {
    font-size: 0.9rem;
    color: var(--allys-or);
    font-weight: bold;
    text-align: right;
    margin-top: 5px;
}

/* Checkboxes (Chambres) */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Bouton Reset */
.btn-reset {
    width: 100%;
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

    .btn-reset:hover {
        background: #e0e0e0;
    }






/* ==============================================
   RESPONSIVE MOBILE (écrans < 768px)
   ============================================== */

/* 1. Bouton Hamburger & Menu */
.hamburger-btn {
    display: none; /* Caché sur PC */
    font-size: 24px;
    background: none;
    border: none;
    color: var(--allys-bleu);
    cursor: pointer;
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar-allys {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .navbar-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger-btn {
        display: block;
    }
    /* Affiché sur mobile */

    .nav-menu {
        display: none; /* Caché par défaut */
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        gap: 15px;
    }

        .nav-menu a {
            display: block;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
            width: 100%;
            text-align: center;
        }

    .btn-nav-contact {
        width: 100%;
        display: block;
        text-align: center;
        box-sizing: border-box;
    }

    /* 2. Hero Section */
    .hero-content h1 {
        font-size: 2rem;
    }
    /* Titre plus petit */
    .hero-content p {
        font-size: 1rem;
    }

    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        margin-bottom: 10px;
        display: block;
    }

    /* 3. Grilles (Listing, Modèles, Blog) */
    .card-grid, .tech-grid, .features-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
        padding: 0 15px;
    }

    /* Correction largeur cartes */
    .allys-card {
        width: 100% !important;
    }

    /* 4. Page Listing (Sidebar Filtres) */
    .listing-container {
        grid-template-columns: 1fr; /* Sidebar passe au dessus ou dessous */
        margin-top: 20px;
    }

    .filter-sidebar {
        position: static; /* Plus sticky sur mobile */
        margin-bottom: 30px;
    }

    /* 5. Page Détails */
    .detail-container {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        position: static;
        margin-top: 30px;
    }

    .detail-header {
        text-align: center;
    }

    .detail-price {
        float: none;
        display: block;
        margin-top: 10px;
    }

    /* 6. Page Contact */
    .contact-layout {
        grid-template-columns: 1fr;
        margin: 0 15px 50px 15px;
    }

    .contact-info-panel, .contact-form-panel {
        padding: 25px;
    }

    /* 7. Page Faire Construire (Timeline) */
    .process-step, .process-step:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .step-img {
        width: 100%;
        height: 200px;
        margin-bottom: 20px;
    }

    .step-number {
        font-size: 3rem;
        margin-bottom: 10px;
        display: block;
    }











    /* --- CORRECTION BOUTONS HERO --- */

    /* 1. Comportement par défaut (Ordinateur / Tablette large) */
    .hero-actions {
        display: flex; /* Active le mode Flexbox */
        justify-content: center; /* Centre les boutons */
        gap: 20px; /* Espace entre les deux boutons */
        margin-top: 30px;
    }

    .btn-hero-primary, .btn-hero-secondary {
        /* On retire les marges manuelles car "gap" gère l'espace */
        margin: 0;
        white-space: nowrap; /* Empêche le texte de se casser sur 2 lignes */
    }

    /* 2. Comportement Mobile (Écrans < 768px) */
    @media (max-width: 768px) {


        /* Sécurité pour que rien ne dépasse de l'écran */
        img {
            max-width: 100%;
            height: auto;
        }

        .main-content {
            width: 100%; /* Force le conteneur gauche à ne pas dépasser */
            overflow: hidden; /* Coupe ce qui dépasse au cas où */
        }





        .hero-actions {
            flex-direction: column; /* On empile les boutons verticalement */
            width: 100%;
            max-width: 300px; /* On limite la largeur pour que ça reste joli */
            margin: 30px auto 0 auto; /* Centrage */
            gap: 15px; /* Espace vertical entre les deux */
        }

        .btn-hero-primary, .btn-hero-secondary {
            width: 100%; /* Les boutons prennent toute la largeur dispo */
            display: block; /* Force l'affichage en bloc */
            text-align: center;
            padding: 15px 0; /* Un peu plus de hauteur pour le doigt */
        }
    }
}





/* --- 13. LIGHTBOX (ZOOM PHOTOS) --- */

/* Le fond noir (caché par défaut) */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999; /* Au-dessus de tout, même du menu */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9); /* Noir à 90% d'opacité */
}

/* L'image zoomée au centre */
.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px; /* Pas plus large que ça */
    max-height: 90vh; /* Pas plus haut que l'écran */
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    animation: zoom 0.3s; /* Petit effet d'ouverture */
}

/* Bouton de fermeture (La croix) */
.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

    .close-lightbox:hover,
    .close-lightbox:focus {
        color: var(--allys-or);
        text-decoration: none;
        cursor: pointer;
    }

/* Animation de zoom */
@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Sur mobile, on prend 100% de la largeur */
@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}

