/* --- Variables --- */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e67e22;
    --main-pink: #fc037b;
    --main-blue: #00b9f7;
    --main-green: #c3c329;
    --main-orange: #ff4502;
    --text-color: #333;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Variables Menu */
    --couleur-fond-barre: #250d41;
    --couleur-fond-deroulant: #de2777;
    --couleur-texte: #ffffff;
    --hauteur-barre: 40px;
}

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

body { font-family: var(--font-main); color: var(--text-color); line-height: 1.6; }

/* --- Header --- */
header { border-bottom: 2px solid #eee; }

.top-bar { background: var(--main-pink); color: white; padding: 5px 0; }
.top-bar-content { 
    max-width: 1200px; margin: 0 auto; display: flex; 
    justify-content: flex-end; gap: 20px; font-size: 0.8rem; padding: 0 20px;
}

.header-main-grid {
    display: grid;
    grid-template-columns: auto 1fr 1fr auto;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo img { 
    height: 130px; 
    width: auto; 
    display: block; 
    transition: transform 0.3s ease;
}
.logo img:hover { transform: scale(1.05); }

.contact-block { 
    border-left: 1px solid #ccc; 
    padding-left: 20px; 
    display: flex; 
    align-items: center; 
    gap: 10px;
    font-size: 0.9rem;
}

.icon { width: 25px; height: auto; }

/* Boutons */
.btn-main, .btn-blue { 
    padding: 12px 20px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: background 0.3s;
    color: white;
}
.btn-main { background: var(--main-pink); }
.btn-blue { background: var(--main-blue); }
.btn-main:hover, .btn-blue:hover { background: var(--primary-color); }

/* --- Navigation --- */
.navigation-principale {
    background-color: var(--couleur-fond-barre);
    height: var(--hauteur-barre);
    position: relative;
    z-index: 1000;
}

.menu-parent {
    list-style: none;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1200px;
    display: flex;
    height: 100%;
}

.menu-parent > li { position: relative; height: 100%; font-size: 0.8rem; }

.menu-parent > li > a {
    color: var(--couleur-texte);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: border-color 0.2s ease;
    border-top: 4px solid transparent;
}

.menu-parent > li:hover > a { border-top-color: var(--couleur-fond-deroulant); }

.menu-deroulant > .menu-declencheur::after {
    content: ' ▾';
    font-size: 0.8em;
    margin-left: 5px;
}

.sous-menu {
    list-style: none;
    margin: 0;
    padding: 20px 0;
    position: absolute;
    top: var(--hauteur-barre);
    left: 0;
    min-width: 320px;
    background-color: var(--couleur-fond-deroulant);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 100;
}

.sous-menu li a {
    color: var(--couleur-texte);
    text-decoration: none;
    padding: 12px 25px;
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

.sous-menu li a:hover { background-color: rgba(0, 0, 0, 0.1); }

.menu-parent .menu-deroulant:hover .sous-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Hero --- */
.hero-carousel {
    width: 100%;
    max-width: 1271px;
    height: 290px;
    margin: 20px auto;
    overflow: hidden;
}

.hero-carousel .swiper-slide img, 
.hero-carousel .swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center center; 
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* --- Grille Magazine --- */
.actus-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
    max-width: 1200px; 
    margin: 40px auto; 
}

/* Base pour toutes les cartes */
.actu-card { 
    position: relative; /* CRUCIAL : Empêche le lien de déborder sur toute la page */
    border: 1px solid #ddd; 
    border-radius: 8px; 
    overflow: hidden; 
    transition: transform 0.3s; 
    display: flex; 
    flex-direction: column;
    background: #fff;
}
.actu-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Conteneur d'image standard */
.card-image { 
    width: 100%; 
    height: 220px; 
    overflow: hidden; 
    background-color: #f5f5f5; 
}
.card-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center; 
    display: block; 
}

/* Textes des cartes standards */
.card-content { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.3; }
.date { font-size: 0.8rem; color: #888; text-transform: uppercase; font-weight: bold; margin-bottom: 10px; display: block; }
.card-content p { color: #555; font-size: 0.95rem; }
.btn-lire { display: inline-block; margin-top: auto; padding-top: 15px; color: var(--main-pink); font-weight: bold; text-decoration: none; }


/* =========================================
   Styles "Featured" (Les 2 premières cartes)
   ========================================= */

/* Forcer la 1ère carte à prendre 2 colonnes en largeur */
.actus-grid .actu-card:nth-child(1) { 
    grid-column: span 2; 
}

/* Points communs de la 1ère et 2ème carte */
.actus-grid .actu-card:nth-child(1), 
.actus-grid .actu-card:nth-child(2) { 
    height: 420px; /* Hauteur fixe identique pour la 1ère ligne */
    border: none;
}

/* L'image prend toute la hauteur de la carte */
.actus-grid .actu-card:nth-child(1) .card-image, 
.actus-grid .actu-card:nth-child(2) .card-image {
    height: 100%;
}

/* Le texte vient se superposer en bas avec un dégradé sombre */
.actus-grid .actu-card:nth-child(1) .card-content, 
.actus-grid .actu-card:nth-child(2) .card-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 30px; 
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); 
    z-index: 2; 
}

/* Titres des Featured */
.actus-grid .actu-card:nth-child(1) .card-content h3, 
.actus-grid .actu-card:nth-child(2) .card-content h3 { 
    font-size: 1.8rem; 
    color: white; 
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    margin-bottom: 5px;
}

/* Date des Featured */
.actus-grid .actu-card:nth-child(1) .date, 
.actus-grid .actu-card:nth-child(2) .date { 
    color: #ddd; 
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .header-main-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .contact-block { border: none; }
    
    .actus-grid { grid-template-columns: 1fr; }
    
    /* Sur mobile, toutes les cartes reprennent un comportement normal */
    .actus-grid .actu-card:nth-child(1) { grid-column: span 1; }
    .actus-grid .actu-card:nth-child(1), .actus-grid .actu-card:nth-child(2) { height: 350px; }
}
/* =========================================
   MISE EN PAGE ARTICLE DETAIL (Magazine)
   ========================================= */

.article-layout {
    display: grid;
    grid-template-columns: 1fr; /* 1 colonne sur mobile */
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

@media (min-width: 900px) {
    .article-layout {
        grid-template-columns: 2.5fr 1fr; /* 2 colonnes sur desktop */
    }
}

/* En-tête de l'article */
.breadcrumb { font-size: 0.85rem; color: #666; margin-bottom: 15px; text-transform: uppercase; }
.breadcrumb a { color: #666; text-decoration: none; }
.breadcrumb a:hover { color: var(--main-pink); }
.category-badge { background: var(--main-blue); color: white; padding: 2px 8px; border-radius: 4px; font-weight: bold; margin-left: 5px; }

.article-title { font-size: 2.5rem; color: #222; line-height: 1.2; margin-bottom: 15px; }
.article-meta { font-size: 0.9rem; color: #555; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.article-meta .author { font-weight: 600; }

/* Boutons de partage */
.share-buttons { display: flex; gap: 10px; margin-bottom: 30px; }
.share-btn { 
    display: flex; align-items: center; justify-content: center; 
    width: 35px; height: 35px; border-radius: 4px; color: white; 
    text-decoration: none; transition: opacity 0.3s; 
}
.share-btn:hover { opacity: 0.8; }
.share-btn.fb { background-color: #3b5998; }
.share-btn.tw { background-color: #1da1f2; }
.share-btn.in { background-color: #0077b5; }
.share-btn.wa { background-color: #25d366; }

/* Image principale */
.article-featured-image { margin-bottom: 30px; }
.article-featured-image img { width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: 4px; }

/* Contenu texte */
.article-content { line-height: 1.8; font-size: 1.1rem; color: #333; }
.article-content h2 { margin: 30px 0 15px; color: var(--main-pink); }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 20px; }
.article-content a { color: var(--main-blue); text-decoration: underline; }

/* Styles spécifiques pour les citations WordPress (blockquote) */
.article-content blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--main-blue);
    text-align: center;
    margin: 40px 0;
    padding: 0 20px;
    border-left: none; /* Supprime le trait de gauche par défaut si existant */
}

/* =========================================
   BARRE LATÉRALE (SIDEBAR)
   ========================================= */
.sidebar-widget { border-top: 4px solid var(--main-pink); background: #fafafa; padding: 20px; border-radius: 0 0 4px 4px; }
.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.widget-header h3 { font-size: 1.1rem; text-transform: uppercase; margin: 0; background: var(--main-pink); color: white; padding: 4px 10px; display: inline-block; font-weight: bold; }

.widget-article-list { list-style: none; padding: 0; margin: 0; }
.widget-article-list li { border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.widget-article-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.widget-article-list a { text-decoration: none; color: #333; display: block; transition: color 0.3s; }
.widget-article-list a:hover h4 { color: var(--main-pink); }
.widget-article-list h4 { font-size: 1rem; margin-bottom: 5px; line-height: 1.3; }
.side-date { font-size: 0.8rem; color: #888; text-transform: uppercase; }

/* =========================================
   ELEMENTS RICHES (Résumé, Audio, Vidéo, Docs)
   ========================================= */

/* Résumé en exergue */
.article-summary {
    background: #fff5f9;
    border-left: 4px solid var(--main-pink);
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 30px;
    border-radius: 0 4px 4px 0;
}

/* Conteneur de médias */
.article-media-container { margin-bottom: 30px; }

/* Bloc Audio */
.audio-block {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.audio-block h4 { margin-bottom: 10px; font-size: 1rem; color: #333; }
.audio-block audio { width: 100%; outline: none; }

/* Vidéo Responsive */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Documents téléchargeables */
.article-documents {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
}
.article-documents h3 { margin-bottom: 20px; color: var(--main-blue); font-size: 1.3rem; }
.documents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
@media (min-width: 600px) {
    .documents-grid { grid-template-columns: 1fr 1fr; }
}
.doc-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}
.doc-item i { font-size: 1.5rem; color: #e74c3c; margin-right: 15px; }
.doc-item:hover { border-color: var(--main-blue); box-shadow: 0 4px 10px rgba(0,0,0,0.05); transform: translateY(-2px); color: var(--main-blue); }

/* Ajustement de la ligne META sous le titre */
.article-meta { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.article-meta span { display: flex; align-items: center; gap: 5px; }
.share-buttons { align-items: center; }

/* Limiter la taille des images dans le corps de l'article */
.article-content img {
    max-width: 100%;    /* L'image ne dépasse jamais la largeur de son conteneur */
    max-height: 500px;  /* Limite la hauteur pour éviter les images géantes */
    height: auto;       /* Préserve le ratio d'aspect */
    display: block;     /* Évite les marges inutiles en bas */
    margin: 20px auto;  /* Centre l'image horizontalement */
    border-radius: 8px; /* Ajoute un peu de style */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Ajoute une légère ombre pour la profondeur */
}
/* =========================================
   GRILLE VENTES (Programmes Immobiliers)
   ========================================= */
.ventes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.vente-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.vente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.vente-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.vente-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.vente-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.vente-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vente-content h2 {
    font-size: 1.4rem;
    color: var(--main-blue);
    margin-bottom: 15px;
    line-height: 1.3;
}

.vente-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.vente-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.vente-price {
    font-weight: 800;
    color: var(--main-pink);
    font-size: 1.15rem;
}

.btn-fiche {
    color: var(--main-blue);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.btn-fiche:hover {
    color: var(--primary-color);
}
/* =========================================
   PAGE DETAIL PROGRAMME IMMOBILIER
   ========================================= */

.details-page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.back-link {
    display: inline-block;
    color: var(--main-blue);
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-link:hover { color: var(--primary-color); }

.programme-container, .lots-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.programme-hero {
    width: 100%;
    height: 350px;
}

.programme-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.programme-header {
    text-align: center;
    padding: 30px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.programme-header h1 {
    color: var(--main-blue);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.ville-badge {
    display: inline-block;
    background: var(--main-pink);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.programme-description {
    padding: 35px;
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
}

.programme-description h2, .programme-description h3 {
    color: var(--main-pink);
    margin: 25px 0 15px 0;
}

.programme-description ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.programme-section {
    padding: 35px;
    border-top: 1px solid #eee;
}

.programme-section.bg-light {
    background: #fafafa;
}

.programme-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.programme-section h2 i {
    color: var(--main-blue);
    margin-right: 10px;
}

/* Galerie */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.galerie-item {
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.galerie-item:hover img { transform: scale(1.1); }

/* Google Maps */
.map-container {
    width: 100%;
    height: 350px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* =========================================
   TABLEAU DES LOTS
   ========================================= */

.lots-header {
    background: var(--primary-color);
    color: white;
    padding: 20px 30px;
}

.lots-header h2 { margin: 0; font-size: 1.3rem; }

.table-responsive { overflow-x: auto; }

.lots-table {
    width: 100%;
    border-collapse: collapse;
}

.lots-table th, .lots-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.lots-table th {
    background: #f9f9f9;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.lots-table tr:hover { background: #fdfdfd; }

.lots-table td.price {
    font-weight: bold;
    color: var(--main-pink);
    font-size: 1.1rem;
}

.text-right { text-align: right !important; }
.text-center { text-align: center !important; }

/* Boutons du tableau */
.btn-plan {
    display: inline-block;
    background: #e0e0e0;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-plan:hover { background: #ccc; }
.no-plan { color: #aaa; font-style: italic; font-size: 0.85rem; }

.btn-contact-lot {
    display: inline-block;
    background: var(--main-blue);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-contact-lot:hover { background: var(--primary-color); }

.empty-lots {
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}
/* =========================================
   PAGE DE CONTACT ET FORMULAIRES
   ========================================= */

.contact-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-header {
    background: var(--main-blue); /* Ou var(--main-pink) selon tes préférences */
    padding: 30px;
    text-align: center;
}

.contact-header h1 {
    color: white;
    margin: 0;
    font-size: 2rem;
}

.contact-body {
    padding: 40px;
}

.contact-intro {
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Boîte de contexte (si lot spécifique demandé) */
.context-box {
    background: #f0f8ff;
    border-left: 4px solid var(--main-blue);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 4px 4px 0;
}

.context-title {
    font-weight: bold;
    color: var(--main-blue);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.context-details {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.context-details strong {
    background: #e1f0ff;
    color: var(--main-blue);
    padding: 2px 8px;
    border-radius: 4px;
}

.context-subtext {
    font-size: 0.9rem;
    color: #666;
}

/* Grille et champs de formulaire */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #f9f9f9;
    transition: border-color 0.3s, background 0.3s;
}

.form-control:focus {
    border-color: var(--main-blue);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 185, 247, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox RGPD */
.rgpd-box {
    display: flex;
    align-items: flex-start;
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-top: 10px;
}

.rgpd-box input[type="checkbox"] {
    margin-top: 5px;
    margin-right: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.rgpd-box label {
    font-weight: normal;
    color: #555;
    font-size: 0.9rem;
    margin: 0;
    cursor: pointer;
    line-height: 1.5;
}

/* Bouton Envoyer */
.form-actions {
    text-align: center;
    margin-top: 35px;
}

.btn-submit {
    background: var(--main-pink);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
}

@media (min-width: 600px) {
    .btn-submit { width: auto; }
}

.btn-submit:hover {
    background: #de2777;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .ventes-une-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .ventes-une-grid {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================
SECTION CHIFFRES CLÉS
========================================= */
.key-figures {
    background: linear-gradient(135deg, var(--couleur-fond-barre) 0%, #1a092e 100%);
    padding: 60px 20px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

/* Effet de texture subtile en arrière-plan */
.key-figures::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(252, 3, 123, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 185, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.key-figures .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.key-figures .figure {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.key-figures .figure:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Ligne décorative en haut de chaque carte */
.key-figures .figure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--main-pink);
    border-radius: 0 0 3px 3px;
}

.key-figures .number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, var(--main-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.key-figures .label {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .key-figures {
        padding: 40px 20px;
    }
    
    .key-figures .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .key-figures .figure {
        padding: 25px 15px;
    }
    
    .key-figures .number {
        font-size: 2.5rem;
    }
    
    .key-figures .label {
        font-size: 0.9rem;
    }
}

/* Animation d'apparition au scroll (optionnel) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.key-figures .figure {
    animation: fadeInUp 0.6s ease-out;
}

.key-figures .figure:nth-child(2) {
    animation-delay: 0.2s;
}

.key-figures .figure:nth-child(3) {
    animation-delay: 0.4s;
}
/* =========================================
SECTION CTA (Call-to-Action)
========================================= */
.cta-section {
    background: linear-gradient(135deg, var(--main-pink) 0%, #de2777 100%);
    padding: 80px 20px;
    text-align: center;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

/* Effet de texture en arrière-plan */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-section p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

/* Bouton large personnalisé */
.btn-large {
    padding: 18px 50px;
    font-size: 1.2rem;
    background: white;
    color: var(--main-pink);
    border-radius: 50px;
    display: inline-block;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: var(--primary-color);
    color: white;
}

.btn-large:active {
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .cta-section {
        padding: 50px 20px;
        margin: 40px 0;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .btn-large {
        padding: 15px 35px;
        font-size: 1rem;
    }
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-section h2,
.cta-section p,
.cta-section .btn-large {
    animation: fadeInUp 0.6s ease-out;
}

.cta-section p {
    animation-delay: 0.2s;
}

.cta-section .btn-large {
    animation-delay: 0.4s;
}
/* =========================================
SECTION VENTES UNE (Homepage)
========================================= */
.ventes-une-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.ventes-une-header {
    text-align: center;
    margin-bottom: 50px;
}

.ventes-une-title-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.ventes-une-subtitle {
    color: #666;
    font-size: 1.15rem;
    margin: 0;
    font-style: italic;
}

/* Grille de cartes */
.ventes-une-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* Carte individuelle */
.vente-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.vente-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Badge (Neuf / Patrimoine) */
.vente-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    color: white;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.badge-neuf {
    background: linear-gradient(135deg, var(--main-pink) 0%, #de2777 100%);
}

.badge-hlm {
    background: linear-gradient(135deg, var(--main-blue) 0%, #009fd9 100%);
}

/* Image container */
.vente-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.vente-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vente-card:hover .vente-image-container img {
    transform: scale(1.08);
}

/* Overlay au hover */
.vente-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 13, 65, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vente-card:hover .vente-image-overlay {
    opacity: 1;
}

.vente-image-cta {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Contenu texte */
.vente-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vente-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.vente-ville {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vente-ville i {
    color: var(--main-pink);
    font-size: 0.85rem;
}

/* Détails (pièces, surface) */
.vente-details {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
    flex-wrap: wrap;
}

.vente-detail {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vente-detail i {
    color: var(--main-blue);
    font-size: 0.9rem;
}

/* Footer (prix + bouton) */
.vente-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vente-prix {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--main-pink);
    line-height: 1;
}

.vente-btn-detail {
    display: block;
    text-align: center;
    background: #f8f9fa;
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.vente-btn-detail:hover {
    background: var(--main-pink);
    color: white;
    border-color: var(--main-pink);
    transform: translateX(3px);
}

.vente-btn-detail i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.vente-btn-detail:hover i {
    transform: translateX(3px);
}

/* Bouton CTA "Voir tous nos programmes" */
.ventes-une-cta {
    text-align: center;
    margin-top: 40px;
}

.ventes-une-cta .btn-large {
    padding: 15px 40px;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
RESPONSIVE
========================================= */
@media (max-width: 1100px) {
    .ventes-une-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .ventes-une-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .vente-image-container {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .ventes-une-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .ventes-une-section {
        margin: 40px auto;
    }
    
    .vente-image-container {
        height: 220px;
    }
    
    .vente-title {
        font-size: 1.2rem;
    }
    
    .vente-prix {
        font-size: 1.3rem;
    }
}
/* =========================================
SECTION ACTUS UNE (Homepage)
========================================= */
.actus-une-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.actus-une-header {
    text-align: center;
    margin-bottom: 50px;
}

.actus-une-title-img {
    max-width: 100%;
    height: auto;
}

/* Grille */
.actus-une-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* =========================================
CARTE FEATURED (Les 2 premières)
========================================= */
.actu-card-featured {
    grid-column: span 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* La première carte prend 2 colonnes */
.actus-une-grid .actu-card-featured:first-child {
    grid-column: span 2;
}

.actu-card-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-image-featured {
    position: relative;
    height: 400px;
    overflow: hidden;
}

/* Image de fond */
.card-image-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.actu-card-featured:hover .card-image-featured img {
    transform: scale(1.05);
}

/* Overlay sombre amélioré */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

/* Contenu texte */
.card-content-featured {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    color: white;
}

.card-content-featured h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

/* Responsive pour le titre featured */
@media (max-width: 900px) {
    .card-content-featured h3 {
        font-size: 1.5rem;
    }
}

.date-featured {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-featured i {
    color: var(--main-pink);
}

.card-content-featured .excerpt {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-lire-featured {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--main-pink);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-lire-featured:hover {
    color: white;
    gap: 12px;
}

.btn-lire-featured i {
    transition: transform 0.3s ease;
}

.btn-lire-featured:hover i {
    transform: translateX(5px);
}

/* =========================================
CARTE STANDARD (Les 3 dernières)
========================================= */
.actu-card:not(.actu-card-featured) {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.actu-card:not(.actu-card-featured):hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card-image {
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.actu-card:not(.actu-card-featured):hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date i {
    color: var(--main-pink);
    font-size: 0.8rem;
}

.card-content .excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.btn-lire {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--main-pink);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-lire:hover {
    color: var(--primary-color);
    gap: 10px;
}

.btn-lire i {
    transition: transform 0.3s ease;
}

.btn-lire:hover i {
    transform: translateX(3px);
}

/* Bouton CTA */
.actus-une-cta {
    text-align: center;
    margin-top: 40px;
}

.actus-une-cta .btn-large {
    padding: 15px 40px;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
RESPONSIVE
========================================= */
@media (max-width: 900px) {
    .actus-une-grid {
        grid-template-columns: 1fr;
    }
    
    .actus-une-grid .actu-card-featured:first-child {
        grid-column: span 1;
    }
    
    .card-image-featured {
        height: 350px;
    }
    
    .card-content-featured h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .actus-une-section {
        margin: 40px auto;
    }
    
    .card-image-featured {
        height: 300px;
    }
    
    .card-content-featured {
        padding: 20px;
    }
    
    .card-content-featured h3 {
        font-size: 1.3rem;
    }
    
    .card-content-featured .excerpt {
        font-size: 0.95rem;
    }
}
/* --- Header Responsive --- */

/* Tablettes et petits écrans */
@media (max-width: 900px) {
    .header-main-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .logo img {
        height: 80px;
        margin: 0 auto;
    }
    
    .contact-block {
        border: none;
        padding: 0;
        justify-content: center;
    }
    
    .cta-block {
        order: -1; /* Met les boutons en premier sur mobile */
    }
    
    .user-spaces {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-main, .btn-blue {
        width: 100%;
        text-align: center;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        font-size: 0.75rem;
    }
    
    .logo img {
        height: 60px;
    }
    
    .contact-block {
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-block .icon {
        width: 20px;
    }
    
    .contact-block div {
        font-size: 0.85rem;
    }
    
    .btn-main, .btn-blue {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}
/* =========================================
MENU RESPONSIVE
========================================= */

/* Bouton hamburger (caché sur desktop) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--couleur-texte);
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Animation du hamburger en croix */
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Tablettes et mobiles */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .menu-parent {
        position: absolute;
        top: var(--hauteur-barre);
        left: 0;
        right: 0;
        background-color: var(--couleur-fond-barre);
        flex-direction: column;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .menu-parent.mobile-open {
        max-height: 1000px; /* Valeur suffisamment grande */
    }
    
    .menu-parent > li {
        height: auto;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .menu-parent > li > a {
        padding: 15px 20px;
        border-top: none;
        border-left: 4px solid transparent;
    }
    
    .menu-parent > li:hover > a {
        border-top-color: transparent;
        border-left-color: var(--couleur-fond-deroulant);
    }
    
    /* Sous-menu mobile */
    .sous-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background-color: rgba(0,0,0,0.2);
    }
    
    .menu-deroulant:hover .sous-menu,
    .menu-deroulant:focus-within .sous-menu {
        max-height: 500px;
    }
    
    .sous-menu li a {
        padding: 12px 40px;
        font-size: 0.9rem;
    }
}

/* Mobiles */
@media (max-width: 600px) {
    .navigation-principale {
        position: relative;
    }
    
    .sous-menu li a {
        padding: 12px 30px;
    }
}