/* =========================================
   1. RESET & VARIABLES GLOBALES
   ========================================= */
:root {
    --bg-color: #ffffff;
    --bg-alt: #f8f8f8;
    --pp-red: #EA1D54;
    --pp-grey-dark: #2c2c2c;
    --pp-grey-light: #f1f1f1;
    --font-body: 'Inter', sans-serif;
    --font-title: 'Playfair Display', serif;
}

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

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

/* =========================================
   2. HERO SPLIT
   ========================================= */
.hero-split {
    height: 90vh;
    width: 100%;
    position: relative;
    background-color: #000;
}

.video-zone {
    width: 100%; height: 100%;
    position: relative; overflow: hidden;
}

.video-zone video {
    width: 100%; height: 100%;
    object-fit: cover; 
    opacity: 1
   ;
}

.brand-header-horizontal {
    position: absolute; top: 30px; left: 40px; z-index: 10;
    display: flex; align-items: center; gap: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}
.brand-icon { height: 50px; width: auto; }
.brand-text-horizontal { font-weight: 800; font-size: 1.5rem; line-height: 1; }
.txt-white { color: #ffffff; }
.txt-red { color: var(--pp-red); }

.hero-overlay-content {
    position: absolute;
    bottom: 80px; left: 40px; z-index: 5;
    color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-title {
    font-family: var(--font-title);
    /* Réduit pour plus de finesse (était 3.5rem) */
    font-size: 3rem; 
    margin-bottom: 10px; font-weight: 400;
}
.hero-subtitle {
    font-size: 1.2rem; font-weight: 300; letter-spacing: 1px; text-transform: uppercase;
}

.info-band-slim {
    background-color: var(--pp-red);
    color: white; text-align: center;
    padding: 8px 0; font-size: 0.8rem;
    font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}

/* =========================================
   3. DÉTAILS IMMO
   ========================================= */
.property-details { padding: 80px 20px; background-color: #fff; }
.container-immo { max-width: 1000px; margin: 0 auto; }

.listing-header { text-align: center; margin-bottom: 60px; }
.location-tag { 
    color: #888; text-transform: uppercase; letter-spacing: 2px; 
    font-size: 0.85rem; margin-bottom: 15px; font-weight: 600;
}
.prestige-title {
    font-family: var(--font-title);
    /* Réduit pour plus de finesse (était 3rem) */
    font-size: 2.5rem; 
    margin-bottom: 20px; color: #111;
}
.price-tag { 
    font-size: 1.8rem; font-weight: 700; color: var(--pp-red); margin-right: 10px;
}
.hai { font-style: italic; color: #666; font-family: var(--font-title); }

.key-metrics-grid {
    display: flex; justify-content: space-between; gap: 20px;
    padding: 30px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee;
    margin-bottom: 50px;
}
.metric-box { text-align: center; flex: 1; }
.metric-box .value { 
    display: block; font-size: 2rem; font-weight: 700; color: #111; line-height: 1;
}
.metric-box .label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-top: 5px;
}

.divider-elegant { border: 0; height: 1px; background: #eee; width: 100px; margin: 50px auto; }

/* LAYOUT GRID */
.listing-body-grid { display: flex; gap: 60px; align-items: flex-start; }
.main-content-col { flex: 2; }
.sidebar-col { flex: 1; position: sticky; top: 30px; }

.description-text h3, .features-list-container h3, .diagnostics-container h3 {
    font-family: var(--font-title); font-size: 1.6rem; color: #111;
    margin-bottom: 25px; border-bottom: 2px solid var(--pp-red);
    display: inline-block; padding-bottom: 5px;
}
/* Réduction légère du texte courant */
.lead-paragraph { font-size: 1.05rem; color: #333; font-weight: 500; }
.description-text p { margin-bottom: 20px; text-align: justify; color: #555; font-size: 0.95rem; }

.features-grid-simple { 
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 50px;
}
.feature-item { 
    display: flex; align-items: center; gap: 10px; font-weight: 500; 
}
.immo-icon { width: 20px; height: 20px; stroke: var(--pp-red); fill: none; stroke-width: 2; }

/* DPE CORRIGÉ */
.dpe-container {
    display: flex; justify-content: center; gap: 60px; 
    margin-top: 30px; margin-bottom: 30px;
}
.dpe-column { flex: 1; max-width: 400px; }
.dpe-column h4 {
    text-align: center; text-transform: uppercase; font-size: 0.9rem;
    margin-bottom: 15px; color: #333; font-weight: 700;
}
.dpe-ladder { display: flex; flex-direction: column; gap: 4px; }
.dpe-row { display: flex; align-items: center; height: 28px; }
.dpe-bar {
    height: 100%; color: white; font-weight: 700; font-size: 0.8rem;
    display: flex; align-items: center; padding-left: 10px;
    border-radius: 0 4px 4px 0;
}
.w-1 { width: 30%; } .w-2 { width: 40%; } .w-3 { width: 50%; } .w-4 { width: 60%; }
.w-5 { width: 70%; } .w-6 { width: 80%; } .w-7 { width: 90%; }
.active-row .dpe-value {
    margin-left: 15px; font-size: 1.4rem; font-weight: 800;
    color: #111; line-height: 1; white-space: nowrap;
}
.active-row .dpe-value span { font-size: 0.7rem; color: #666; font-weight: 500; }
.active-row .dpe-bar {
    transform: scale(1.05); box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    position: relative; z-index: 2; border: 2px solid #333;
}
.class-a { background-color: #009c6d; }
.class-b { background-color: #52b153; }
.class-c { background-color: #78bd76; }
.class-d { background-color: #f4e70f; color: #111; }
.class-e { background-color: #f4b400; }
.class-f { background-color: #eb8235; }
.class-g { background-color: #d7221f; }

.ges-a { background-color: #f0f7fb; color: #333; }
.ges-b { background-color: #bdcde3; color: #333; }
.ges-c { background-color: #9cb3d3; color: #333; }
.ges-d { background-color: #778496; }
.ges-e { background-color: #585d75; }
.ges-f { background-color: #45475a; }
.ges-g { background-color: #2d263b; }

.legal-mention-energy { font-size: 0.75rem; text-align: center; color: #888; font-style: italic; }

/* AGENT */
.agent-card {
    background: #fff; padding: 30px;
    border: 1px solid #eee; 
    border-top: 4px solid var(--pp-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.agent-header-clean { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; text-align: left; }
.agent-photo { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.agent-info { display: flex; flex-direction: column; }
.agent-role { font-size: 0.7rem; text-transform: uppercase; color: #999; letter-spacing: 1px; }
.agent-name { font-size: 1rem; margin: 0; color: #111; font-weight: 800; }
.agent-location { font-size: 0.75rem; color: var(--pp-red); font-weight: 600; }

.btn-call-agent, .btn-submit-form {
    display: block; width: 100%; text-align: center;
    background-color: var(--pp-red); color: white;
    padding: 14px; text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px;
    border: none; cursor: pointer; transition: background 0.3s;
}
.btn-call-agent:hover, .btn-submit-form:hover { background-color: #be1542; }

.or-divider { text-align: center; margin: 15px 0; font-size: 0.7rem; color: #ccc; }
.agent-form input, .agent-form textarea {
    width: 100%; padding: 12px; margin-bottom: 10px;
    border: 1px solid #ddd; background: #fafafa;
    font-family: var(--font-body); font-size: 0.9rem;
}
.agent-form input:focus { border-color: var(--pp-red); outline: none; background: #fff; }

/* =========================================
   7. VIDÉO PLAYER FIX (CORRIGÉ 100%)
   ========================================= */
.video-experience { background-color: #111; color: white; padding: 80px 20px; }
.section-title h2 { color: white; font-family: var(--font-title); font-size: 2.5rem; margin-bottom: 10px; }
.section-title p { color: #888; margin-bottom: 40px; }

.container-player { max-width: 1000px; margin: 0 auto; }

/* LE HACK 16:9 RESPONSIVE */
.main-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 (9/16 = 0.5625) */
    height: 0;
    background: #000;
    margin-bottom: 30px;
}
.main-player-wrapper iframe { 
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none; 
}

.chapter-scroller { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chapter-card {
    background: #222; width: 220px; padding: 15px; cursor: pointer;
    border-left: 3px solid #444; transition: all 0.3s;
}
.chapter-card:hover { background: #333; }
.chapter-card.active { background: #2a2a2a; border-left: 3px solid var(--pp-red); }
.chapter-num { font-size: 2rem; font-weight: 700; color: #444; display: block; margin-bottom: 5px; line-height: 1; }
.chapter-card.active .chapter-num { color: var(--pp-red); opacity: 0.4; }
.chapter-card h3 { font-size: 0.9rem; color: #ccc; margin: 0; font-weight: 600; }
.duration { font-size: 0.7rem; color: #666; text-transform: uppercase; }

/* =========================================
   FOOTER & BLOCS (CORRECTIF FINESSE FINALE)
   ========================================= */

/* 1. LE BLOC VERDICT (Rose) */
.expert-analysis-box {
    background-color: #fff4f7;
    border: 1px solid #ffe0e9;
    border-top: 3px solid var(--pp-red);
    padding: 25px;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-radius: 4px;
}

.expert-icon {
    flex-shrink: 0;
    background-color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 1px solid #ffe0e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expert-content h4 {
    font-family: var(--font-body);
    color: #111;
    font-size: 0.95rem; /* Plus petit, plus chic */
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.expert-content p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

/* 2. LE BLOC LÉGAL (Version Miniaturisée) */
.legal-compliance-block {
    margin-top: 20px;
    padding-top: 10px;
}

/* Le Titre "Mentions Légales" */
.legal-compliance-block h4 {
    font-family: var(--font-body); 
    font-size: 0.9rem; /* TRES PETIT (Style H5) */
    text-transform: uppercase;
    color: #444; 
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}

/* Le texte Prix / Honoraires */
.legal-text {
    font-size: 0.85rem; /* Petites lignes */
    color: #333;       
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Le bloc gris "Mandat" */
.legal-text-dense {
    font-size: 0.8rem;   /* Encore plus petit */
    color: #555;       
    text-align: justify; 
    line-height: 1.4;
    margin-bottom: 15px;
    background-color: #f9f9f9; 
    padding: 15px;     
    border-left: 3px solid #ddd; 
    border-radius: 4px;
}

/* Le lien Géorisques */
.legal-text-small {
    font-size: 0.7rem; /* Minuscule */
    color: #999;
    font-style: italic;
    margin-top: 10px;
}
.legal-text-small a { color: #777; text-decoration: underline; }

/* 3. FOOTER */
.legal-footer { 
    background-color: #fff; 
    padding: 30px 20px; 
    font-size: 0.7rem; 
    color: #aaa; 
    text-align: center; 
    border-top: 1px solid #f0f0f0; 
}
.footer-logo img { height: 20px; opacity: 0.3; margin-bottom: 10px; }

/* =========================================
   RESPONSIVE (Mobile)
   ========================================= */
@media (max-width: 900px) {
    .listing-body-grid { flex-direction: column; }
    .sidebar-col { position: static; width: 100%; margin-top: 40px; }
    .key-metrics-grid { flex-wrap: wrap; }
    .metric-box { flex: 1 1 45%; margin-bottom: 20px; }
    
    /* Ajustement des gros titres sur mobile */
    .hero-title { font-size: 2.2rem; }
    .prestige-title { font-size: 2rem; }
    
    .dpe-container { flex-direction: column; align-items: center; gap: 40px; }
    .dpe-column { width: 100%; }
    .expert-analysis-box { flex-direction: column; }
    
    /* Textes légaux minuscules sur mobile */
    .legal-text, .legal-text-dense { font-size: 0.75rem; }
}
/* =========================================
   MOBILE UNIQUEMENT : CENTRAGE "STYLE APP"
   ========================================= */
@media (max-width: 900px) {
    
    /* 1. On centre les paragraphes de texte */
    .description-text, 
    .description-text p,
    .lead-paragraph {
        text-align: center;
    }

    /* 2. On centre le bloc Verdict/Expert */
    .expert-analysis-box {
        text-align: center;
        align-items: center; /* Centre les éléments verticalement */
    }
    
    /* 3. On centre les mentions légales */
    .legal-compliance-block,
    .legal-text, 
    .legal-text-dense,
    .legal-text-small {
        text-align: center;
    }

    /* 4. On centre aussi la carte Agent sur mobile */
    .agent-header-clean {
        flex-direction: column; /* Photo au dessus du nom */
        text-align: center;
        justify-content: center;
    }
    
    /* Petit ajustement pour que les listes à puces (caractéristiques) restent jolies */
    .feature-item {
        justify-content: center;
    }
}

