/* ========================================
   ENGIM - PAGE ZONE DÉTAIL
   Styles pour les pages individuelles de zones
   ======================================== */

/* ========================================
   HERO ZONE (style identique au hero accueil)
   ======================================== */
.zone-hero {
    position: relative;
    color: var(--white);
    padding: 40px 0 60px;
    overflow: hidden;
}

/* Fond dégradé avec grille subtile */
.zone-hero__bg {
    position: absolute;
    inset: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'),
        linear-gradient(135deg, #0f2744 0%, #1a4d7c 50%, #1e5f99 100%);
    background-size: 100px 100px, cover;
}

/* Illustration zone d'activités en fond */
.zone-hero__illustration {
    position: absolute;
    inset: 0;
    background-image: url('../images/zone-activite-bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.20;
    mix-blend-mode: lighten;
    pointer-events: none;
}

/* Overlay - désactivé */
.zone-hero__overlay {
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

.zone-hero__container {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px 50px;
}

/* Vague en bas du hero */
.zone-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
    height: 50px;
    overflow: hidden;
}

.zone-hero__wave svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: #f8fafc;
}

.zone-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.zone-hero__breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.zone-hero__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.zone-hero__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin: 0;
}

.zone-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gold-400);
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.zone-hero__back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-400);
}

/* ========================================
   CONTENU ZONE
   ======================================== */
.zone-content {
    padding: 60px 0;
    background: var(--gray-50);
}

.zone-content__container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* ========================================
   ARTICLE ZONE
   ======================================== */
.zone-article {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ========================================
   BLOC INTRO : Texte + Photo côte à côte
   ======================================== */
.zone-intro {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: stretch;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-200);
}

.zone-intro__text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.zone-intro__text h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--blue-900);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.zone-intro__text p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--gray-700);
    margin: 0;
    text-align: justify;
}

.zone-intro__figure {
    margin: 0;
    display: flex;
    align-items: flex-end;
}

.zone-intro__image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   BLOCS TEXTE (après intro)
   ======================================== */
.zone-article h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--blue-900);
    margin: 32px 0 16px 0;
    line-height: 1.3;
}

.zone-article > h2:first-of-type {
    margin-top: 0;
}

.zone-article p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--gray-700);
    margin: 0 0 20px 0;
    text-align: justify;
}

.zone-article p:last-child {
    margin-bottom: 0;
}

/* Mise en valeur des données chiffrées */
.zone-article strong {
    color: var(--blue-800);
    font-weight: 600;
}

/* Liens contextuels dans le texte (villes, etc.) */
.zone-link,
.zone-article p a.zone-link {
    color: #5b9bd5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.zone-link:hover,
.zone-article p a.zone-link:hover {
    color: var(--gold-500);
}

/* Le strong à l'intérieur du lien hérite de la couleur */
.zone-link strong,
.zone-article p a.zone-link strong {
    color: inherit;
}

/* ========================================
   SIDEBAR ANNONCES
   ======================================== */
.zone-sidebar {
    position: sticky;
    top: 100px;
}

.zone-sidebar__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-900);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue-600);
}

.zone-listings {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
    min-height: 200px;
}

/* Skeleton loader */
.zone-listings__loader {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.skeleton-card::before {
    content: '';
    display: block;
    height: 140px;
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-card::after {
    content: '';
    display: block;
    height: 100px;
    padding: 16px;
    background: var(--white);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* État vide */
.zone-listings--empty {
    background: var(--white);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.zone-listings--empty p {
    color: var(--gray-500);
    font-size: 14px;
    margin: 0;
}

/* Badge distance dans les cards */
.property-card__distance {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 11px;
    border-radius: 10px;
    font-weight: 500;
}

/* Cards annonces version compacte */
.property-card--small {
    border-radius: 12px;
}

.property-card--small .property-card__media {
    height: 160px;
}

.property-card--small .property-card__content {
    padding: 14px;
}

.property-card--small .property-card__title {
    font-size: 14px;
    margin-bottom: 6px;
}

.property-card--small .property-card__location {
    font-size: 12px;
    margin-bottom: 6px;
}

.property-card--small .property-card__specs {
    font-size: 12px;
    gap: 10px;
    margin-bottom: 10px;
}

.property-card--small .property-card__footer {
    padding-top: 10px;
}

.property-card--small .property-card__price {
    font-size: 15px;
}

.property-card--small .property-card__ref {
    font-size: 11px;
}

/* ========================================
   BOUTON JAUNE ENGIM
   ======================================== */
.zone-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--gold-500);
    color: var(--blue-900);
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.zone-sidebar__link:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 199, 0, 0.4);
}

.zone-sidebar__link svg {
    transition: transform 0.2s ease;
}

.zone-sidebar__link:hover svg {
    transform: translateX(4px);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .zone-content__container {
        grid-template-columns: 1fr 340px;
        gap: 32px;
    }
    
    .zone-intro {
        grid-template-columns: 1fr 360px;
        gap: 32px;
    }
    
    .zone-intro__image {
        height: 280px;
    }
}

@media (max-width: 1024px) {
    .zone-content__container {
        grid-template-columns: 1fr;
    }
    
    .zone-sidebar {
        position: static;
    }
    
    .zone-listings {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .zone-listings__loader {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .zone-intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .zone-intro__figure {
        order: -1;
    }
    
    .zone-intro__image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .zone-hero {
        padding: 30px 0 50px;
    }
    
    .zone-hero__header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .zone-hero__back {
        order: -1;
        margin-bottom: 16px;
    }
    
    .zone-content {
        padding: 40px 0;
    }
    
    .zone-article {
        padding: 24px;
    }
    
    .zone-article h2,
    .zone-intro__text h2 {
        font-size: 20px;
    }
    
    .zone-listings {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zone-listings__loader {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .zone-listings {
        grid-template-columns: 1fr;
    }
    
    .zone-listings__loader {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .zone-hero__title {
        font-size: 26px;
    }
    
    .zone-article {
        padding: 20px;
        border-radius: 12px;
    }
    
    .zone-intro__image {
        height: 180px;
    }
}

/* ========================================
   LIENS ZONES STRATÉGIQUES
   ======================================== */
.zone-strategic-links {
    margin-top: 32px;
    padding: 24px;
    background: var(--gray-100);
    border-radius: 12px;
    border-left: 4px solid var(--gold-500);
}

.zone-strategic-links__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-900);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zone-strategic-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zone-strategic-links__tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--white);
    color: var(--blue-800);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.zone-strategic-links__tag:hover {
    background: var(--blue-900);
    color: var(--white);
    border-color: var(--blue-900);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 39, 68, 0.2);
}
