/*
 * La Commune — Homepage Refonte
 * Fichier CSS companion de homepage_new.php
 * Scope : .commune-home-hero / .commune-home-wave / .commune-home-nav
 * ──────────────────────────────────────────────────────────────────
 * Usage : enqueued automatiquement par homepage_new.php
 * Copier tel quel dans uncode-child/ sur Saint-Étienne ET Lyon
 */


/* ════════════════════════════════════════════════════════════════════
   BLOC 1 — HERO [commune_home_hero]
   ════════════════════════════════════════════════════════════════════ */

.commune-home-hero {
    background: #FFFDE9;
    border: 1px solid #000;
    border-radius: 50px;
    overflow: visible;
    font-family: Poppins, sans-serif;
    position: relative;
    z-index: 1;
    padding-bottom: 60px;
    margin: 10px 25px;
}

.commune-home-nav-section {
    z-index: 2;
}

.commune-home-hero-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: 580px;       /* héro plus haut */
    overflow: hidden;
    border-radius: 50px;
}

/* ── Côté gauche (65%) ── */
.commune-home-hero-left {
    width: 65%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 480px;
}

.commune-home-hero-content {
    padding: 3rem 2.5rem 1.5rem 3rem;
    flex: 0 0 auto;
}

/* Titre principal — Le Murmure grande taille */
.commune-home-hero-title {
    margin: 0 0 0.75rem !important;
    color: #000 !important;
    font-family: Basteleur, serif !important;
    font-size: 48px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 64px !important;
}

/* Logo La Commune inline dans le titre */
.commune-home-hero-logo {
    width: auto !important;
    height: 40px !important;
    vertical-align: middle;
    margin-left: 6px;
    display: inline !important;
}

/* Sous-titre — Basteleur */
.commune-home-hero-subtitle {
    margin: 0 0 1rem !important;
    color: #000 !important;
    font-family: Poppins, sans-serif !important;
    font-size: 32px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: normal !important;
    max-width: none !important;
}

/* Corps de texte — Poppins */
.commune-home-hero-body {
    color: #000;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    max-width: 480px;
}

.commune-home-hero-body p {
    margin: 0 0 0.75em !important;
}

/* Zone cartes (bas du côté gauche) */
.commune-home-hero-cards-zone {
    flex: 1 1 auto;
    min-height: 200px;
    padding: 1.5rem 2.5rem 2.5rem 3rem;  /* inchangé — éléments fixes */
    display: flex;
    align-items: flex-end;               /* cartes collées en bas = ne bougent pas si hero grandit */
    justify-content: flex-start;
    box-sizing: border-box;
}

.commune-home-hero-cards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.commune-home-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: 20px 10px;
    width: 180px;
    height: 180px;
    border-radius: 20px;
    border: 1px solid #000;
    text-decoration: none;
    flex: 0 0 auto;
    box-sizing: border-box;
    text-align: center;
    color: #000;
    transition: transform 0.2s ease;
}

.commune-home-hero-card:hover {
    transform: scale(1.04);
    text-decoration: none;
    color: #000;
}

.commune-home-hero-card-label {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.commune-home-hero-card-icon {
    width: auto;
    height: 60%;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: auto;
}

.commune-home-prv-cards-zone .commune-home-hero-card:first-child .commune-home-hero-card-icon {
    height: 75%;
}

.commune-home-hero-skateboard {
    display: block;
    width: 100%;
    max-width: 480px;
    max-height: 180px;
    object-fit: contain;
}

/* ── Côté droit (35%) — photo ── */
.commune-home-hero-right {
    width: 35%;
    position: relative;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.commune-home-hero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    border: 1px solid #000;
    overflow: visible;      /* stickers débordent */
    aspect-ratio: 4 / 5;
}

.commune-home-hero-image-inner {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
}

.commune-home-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

/* Sticker MACARON (::before) — URL injectée via <style> scopé dans le PHP */
.commune-home-hero-image-wrap::before {
    content: "";
    position: absolute;
    top: 180px;
    left: -160px;
    width: 250px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 100;
    pointer-events: none;
    transform: rotate(-45deg);
}
/* Sticker personnage / skate (::after) — URL injectée via <style> scopé dans le PHP */
.commune-home-hero-image-wrap::after {
    content: "";
    position: absolute;
    bottom: -30px;
    right: 340px;
    width: 260px;
    height: 260px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 100;
    pointer-events: none;
    transform: rotate(-10deg);
}


/* ════════════════════════════════════════════════════════════════════
   BLOC 2 — VAGUE + TICKER [commune_home_wave]
   Technique : <textPath> SVG — texte qui suit physiquement la courbe.
   Animation via <animateTransform> SMIL (unités SVG, pas CSS px).
   Pas de div ticker — tout est dans le SVG.
   ════════════════════════════════════════════════════════════════════ */

.commune-home-wave {
    /* ── Full viewport width (breakout WPBakery) ── */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    /* ── Overlap : glisse sur le héro au-dessus ── */
    margin-top: -125px;
    /* ── Aucun espace sous la vague ── */
    margin-bottom: -2px;
    z-index: 5;
    /* ── Base ── */
    overflow: visible;   /* la dalle rose doit déborder vers le bas */
    line-height: 0;
    display: block;
}

/* viewBox 0 0 1512 146 → ratio natif 146/1512 = 9.656%
   La vague n'est pas déformée. */
.commune-home-wave-svg {
    display: block;
    width: 100%;
    height: clamp(80px, 9.66vw, 146px);
}

/* Dalle pleine sous le SVG — même couleur rose, couvre tout gap WPBakery */
.commune-home-wave-floor {
    display: block;
    width: 100%;
    height: 300px;        /* plus que n'importe quel gap WPBakery */
    margin-top: -1px;     /* joint pixel-perfect avec le bas du SVG */
}

/* Texte SVG — font-size en unités viewBox (pas en CSS px)
   26 unités SVG ≈ 43% du stroke (60 unités) → centré lisiblement dans le ruban */
.commune-wave-text {
    font-family: Basteleur, 'Le Murmure_Regular', serif;
    font-size: 26px;           /* px ici = unités SVG viewBox, pas CSS pixels */
    font-weight: 400;
    fill: #000;
    dominant-baseline: middle; /* centre le texte verticalement sur le path */
}


/* ════════════════════════════════════════════════════════════════════
   BLOC 3 — GRILLE NAV [commune_home_nav]
   Fond : bg-blc-2.svg (pattern squiggles roses)
   Grille : 3 colonnes × 2 lignes avec tuiles colorées + icônes
   ════════════════════════════════════════════════════════════════════ */

/* Wrapper plein écran (même breakout que la vague) */
/* ── Section nav : fond rose + breakout full-width ──────────────────────
   Le fond rose du SVG de la vague (#F7D8D8) et ce fond doivent se toucher.
   On remonte la section avec un margin-top négatif pour avaler le gap WPBakery.
   Le padding-top compense pour que le contenu reste au bon endroit.
   ──────────────────────────────────────────────────────────────────────── */

/* ── Rows WPBakery : padding forcé à 0 ───────────────────────────────────
   Toutes les variantes de noms de classes WPBakery/Uncode sont ciblées.
   La row du héro n'a pas de padding-bottom ; celle de la nav pas de padding-top.
   ──────────────────────────────────────────────────────────────────────── */

/* Row qui contient le héro / la vague */
.vc_row:has(.commune-home-hero),
.wpb_row:has(.commune-home-hero),
.row-container:has(.commune-home-hero),
.row-parent:has(.commune-home-hero) {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Row qui contient la grille nav */
.vc_row:has(.commune-home-nav-section),
.wpb_row:has(.commune-home-nav-section),
.row-container:has(.commune-home-nav-section),
.row-parent:has(.commune-home-nav-section) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    background: white !important;
    background-color: white !important;
}

/* ── Section nav ──────────────────────────────────────────────────────── */
.commune-home-nav-section {
    position: relative;
    isolation: isolate; /* stacking context → z-index:-1 du bgDiv reste confiné ici */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    margin-top: 0 !important;
    padding-top: 0;
    background: transparent;
    padding-right: 24px;
    padding-bottom: 100px;
    padding-left: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Vague intégrée dans la section nav */
.commune-home-nav-section .commune-home-wave {
    margin-top: 0;
    margin-bottom: 0;
    background-color: transparent !important;
}

.commune-home-nav-section .commune-home-wave-floor {
    display: none;
}

/* La carte blanche de la grille */
.commune-home-nav {
    background: transparent;
    border: none;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
    max-width: 720px;
    margin: 0 auto;
}

.commune-home-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 0;
    background: transparent;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    grid-template-areas:
        "icon-tl manger  icon-tr"
        "boire   icon-br danser";
}

.commune-home-nav-icon--tl   { grid-area: icon-tl; }
.commune-home-nav-tile--manger { grid-area: manger; }
.commune-home-nav-icon--tr   { grid-area: icon-tr; }
.commune-home-nav-tile--boire  { grid-area: boire; }
.commune-home-nav-icon--br   { grid-area: icon-br; }
.commune-home-nav-tile--danser { grid-area: danser; }

/* Tuiles nav (avec titre + CTA) */
.commune-home-nav-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
    border-radius: 0;
    border: none;
    text-decoration: none;
    color: #000;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.commune-home-nav-tile:hover {
    text-decoration: none;
    color: #000;
}

.commune-home-nav-tile-title {
    display: block;
    font-family: 'Le Murmure_Regular', 'Le Murmure', serif;
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 0.5em;
}

/* CTA pill — width: fit-content pour ne PAS s'étirer */
.commune-home-nav-tile-cta {
    display: inline-block;
    display: flex;
    height: 30px;
    padding: 10px 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 30px;
    border: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.commune-home-nav-tile-cta-short {
    display: none;
}

.commune-home-nav-tile-cta-long,
.commune-home-nav-tile-cta-short {
    align-items: center;
    justify-content: center;
    width: 100%;
}

.commune-home-nav-tile--manger .commune-home-nav-tile-cta {
    background: #F18BAD;
}

.commune-home-nav-tile--boire .commune-home-nav-tile-cta {
    background: #2F81C4;
}

.commune-home-nav-tile--danser .commune-home-nav-tile-cta {
    background: #90B698;
    border-radius: 26px;
}

/* Tuiles icône */
.commune-home-nav-icon {
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    box-sizing: border-box;
    padding: 16px;
}

.commune-home-nav-icon img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.commune-home-nav-icon:hover img {
    transform: none;
}


/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */

/* ── Tablette paysage (< 1200px) ── */
@media (max-width: 1200px) {
    .commune-home-hero-title {
        font-size: 52px !important;
    }
    .commune-home-hero-subtitle {
        font-size: 24px !important;
    }
    .commune-home-hero-right {
        padding: 1.5rem;
    }
    .commune-home-hero-image-wrap::after {
        right: 280px;
        width: 220px;
        height: 220px;
    }
}

/* ── Tablette portrait (< 1024px) : passage en colonne ── */
@media (max-width: 1024px) {
    .commune-home-hero-inner {
        flex-direction: column;
        min-height: 0;
    }
    .commune-home-hero-left {
        width: 100%;
        min-height: 0;
    }
    .commune-home-hero-content {
        padding: 2rem 2rem 1.25rem;
    }
    .commune-home-hero-title {
        font-size: 44px !important;
        max-width: none;
    }
    .commune-home-hero-logo {
        height: 44px !important;
    }
    .commune-home-hero-subtitle {
        font-size: 22px !important;
    }
    .commune-home-hero-cards-zone {
        padding: 1.5rem 2rem 2rem;
        min-height: 160px;
        justify-content: center;
    }
    .commune-home-hero-cards {
        justify-content: center;
    }
    .commune-home-hero-right {
        width: 100%;
        padding: 2rem;
        justify-content: center;
    }
    .commune-home-hero-image-wrap {
        margin: 0 auto;
        max-width: 100%;
    }
    .commune-home-hero-image-wrap::before {
        top: 60px; left: -70px; width: 160px; height: 160px;
    }
    .commune-home-hero-image-wrap::after {
        bottom: -20px; right: 50%;
        transform: translate(50%, 0) rotate(-10deg);
        width: 200px; height: 200px;
    }
    /* Nav : 2 colonnes — gauche = ligne du haut desktop, droite = ligne du bas */
    .commune-home-nav-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "icon-tl boire"
            "manger  icon-br"
            "icon-tr danser";
    }
}

/* ── Mobile large (< 768px) ── */
@media (max-width: 768px) {
    .commune-home-hero {
        border-radius: 28px;
    }
    .commune-home-hero-inner {
        border-radius: 28px;
    }
    .commune-home-hero-title {
        font-size: 36px !important;
        line-height: 1.2 !important;
    }
    .commune-home-hero-logo {
        height: 36px !important;
    }
    .commune-home-hero-subtitle {
        font-size: 20px !important;
    }
    .commune-home-hero-card {
        width: 150px;
        height: 150px;
    }
    .commune-home-hero-card-label {
        font-size: 14px;
    }
    .commune-home-hero-image-wrap::before {
        top: 40px; left: -50px; width: 130px; height: 130px;
    }
    .commune-home-hero-image-wrap::after {
        width: 170px; height: 170px;
    }
    .commune-home-wave-svg {
        max-height: 120px;
        width: 200%;
    }
    /* Clip le débordement du SVG étiré (ne touche que la vague dans nav-section) */
    .commune-home-nav-section .commune-home-wave {
        overflow: hidden;
    }
    .commune-home-wave-track {
        font-size: clamp(14px, 3.5vw, 20px);
    }
    /* Nav : gauche = 3 du haut desktop, droite = 3 du bas */
    .commune-home-nav-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 0;
        background: transparent;
        grid-template-areas:
            "icon-tl boire"
            "manger  icon-br"
            "icon-tr danser";
    }
    .commune-home-nav-tile {
        min-height: 130px;
    }
    .commune-home-nav-icon {
        min-height: 90px;
    }
    .commune-home-nav-tile-cta-long {
        display: none;
    }
    .commune-home-nav-tile-cta-short {
        display: flex;
    }
}


/* ── Mobile serré (< 600px) ── */
@media (max-width: 600px) {
    .commune-home-hero {
        border-radius: 20px;
    }
    .commune-home-hero-inner {
        border-radius: 20px;
    }
    .commune-home-hero-title {
        font-size: 30px !important;
        line-height: 1.25 !important;
    }
    .commune-home-hero-logo {
        height: 30px !important;
    }
    .commune-home-hero-subtitle {
        font-size: 18px !important;
    }
    .commune-home-hero-content {
        padding: 1.5rem 1.25rem 1rem;
    }
    .commune-home-hero-cards-zone {
        display: none;
    }
    /* Exception : les cartes du bloc privatisation restent visibles */
    .commune-home-prv-cards-zone {
        display: flex;
    }
    .commune-home-hero-card {
        width: 140px;
        height: 140px;
        padding: 12px 8px;
    }
    .commune-home-hero-card-label {
        font-size: 13px;
        line-height: 1.2;
    }
    .commune-home-hero-card-icon {
        height: 55%;
    }
    .commune-home-hero-image-wrap::before {
        top: -40px; left: 120px; width: 140px; height: 140px;
    }
    .commune-home-hero-image-wrap::after {
        bottom: -15px; right: 50%;
        transform: translate(50%, 0) rotate(-10deg);
        width: 130px; height: 130px;
    }
    .commune-home-nav {
        padding: 10px;
        border-radius: 18px;
    }
    .commune-home-nav-grid {
        gap: 0;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "icon-tl boire"
            "manger  icon-br"
            "icon-tr danser";
    }
    .commune-home-nav-tile {
        min-height: 110px;
        padding: 1rem;
    }
    .commune-home-nav-tile-title {
        font-size: 28px !important;
    }
    .commune-home-nav-tile-cta {
        font-size: 10px;
        padding: 4px 10px;
    }
    .commune-home-nav-icon {
        min-height: 80px;
    }
}


/* ════════════════════════════════════════════════════════════════════
   BLOC 4 — SAISISSEZ L'INSTANT [commune_home_saisir]
   Fond orange, sticker label, texte gauche, photo droite
   Identique au pattern utilisé sur les héros marketing du site
   ════════════════════════════════════════════════════════════════════ */

.commune-home-saisir {
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    margin-top: 0;
    z-index: 3;                      /* au-dessus de nav-section (z-index:2) */
    border-top: 1px solid #000;
    font-family: Poppins, sans-serif;
    overflow: visible;
    box-sizing: border-box;
}

/* Sticker label : dépasse au-dessus dans la zone nav-section */
.commune-home-saisir-label {
    position: relative;
    top: -30px;
    left: -1px;
    display: inline-block;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    line-height: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 16px;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-bottom: none;
    border-top-right-radius: 12px;
    background: inherit;
    margin-bottom: -30px;            /* annule le vide laissé dans le flux */
}

/* Layout flex : gauche (texte) + droite (photo) */
.commune-home-saisir-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 3rem 5rem;
    max-width: 1300px;
    margin: 0 auto;
    box-sizing: border-box;
}

.commune-home-saisir-left {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.commune-home-saisir-title {
    margin: 0 !important;
    color: #fff !important;
    font-family: Basteleur, serif !important;
    font-size: 40px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: normal !important;
}

.commune-home-saisir-body {
    color: #fff !important;
    font-family: Poppins, sans-serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: normal !important;
    max-width: 480px;
}

.commune-home-saisir-body p {
    margin: 0 0 0.75em !important;
}

.commune-home-saisir-cta,
.commune-home-saisir-cta:link,
.commune-home-saisir-cta:visited {
    display: inline-block;
    color: #fff !important;
    font-family: Poppins, sans-serif;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
    width: fit-content;
}

.commune-home-saisir-cta.cursor-init {
    cursor: default;
}

.commune-home-saisir-cta:hover,
.commune-home-saisir-cta:focus {
    opacity: 0.75;
    color: #fff !important;
    text-decoration: none !important;
}

/* Droite : photo */
.commune-home-saisir-right {
    flex: 1 1 340px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.commune-home-saisir-img-wrap {
    border-radius: 20px;
    border: 1px solid #000;
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4 / 3;
}

.commune-home-saisir-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .commune-home-saisir-inner {
        padding: 2rem 1.5rem 100px;
        flex-direction: column;
    }
    .commune-home-saisir-right {
        width: 100%;
    }
    .commune-home-saisir-img-wrap {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .commune-home-saisir-inner {
        padding: 1.5rem 1.25rem 2rem;
    }
}

/* ════════════════════════════════════════════════════════════════════
   BLOC COMBINÉ [commune_home_hero_nav]
   ════════════════════════════════════════════════════════════════════ */

/* Neutralise les marges/padding WPBakery sur la row contenant le bloc combiné */
.vc_row:has(.commune-home-block),
.wpb_row:has(.commune-home-block),
.row-container:has(.commune-home-block),
.row-parent:has(.commune-home-block) {
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
}

.vc_row:has(.commune-home-block) .vc_column_container,
.vc_row:has(.commune-home-block) .vc_col-sm-12,
.vc_row:has(.commune-home-block) .wpb_column {
    padding: 0 !important;
    background: #fff !important;
}

.vc_row:has(.commune-home-block) .vc_column-inner {
    padding: 0 !important;
}

.commune-home-block {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    z-index: 0;
}


/* ════════════════════════════════════════════════════════════════════
   BLOC 4 — 3 CARTES INCLINÉES [commune_home_blc4]
   ════════════════════════════════════════════════════════════════════ */

.commune-home-blc4 {
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    margin-top: 0;
    z-index: 4;
    background-color: #AED4DE;
    background-image: url('https://lacommune.co/saint-etienne/wp-content/uploads/2026/05/bg-blc-4.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-top: 1px solid #000;
    overflow: visible;
    box-sizing: border-box;
    padding-bottom: 80px;
    margin-top: -55px;
}

.commune-home-blc4-label {
    position: relative;
    top: -31px;
    left: 200px;
    display: inline-block;
    color: #000;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    line-height: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 16px;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-bottom: none;
    border-top-right-radius: 12px;
    background: #AED4DE;
    margin-bottom: -30px;
}

.commune-home-blc4-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 0;
    box-sizing: border-box;
}

.commune-home-blc4-title {
    font-family: Basteleur, serif;
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin: 0 0 2rem !important;
    transform: translateX(-30px);
    line-height: 1.1;
}

.commune-home-blc4-cards {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: relative;
    padding-bottom: 20px;
}

/* Carte : texte gauche + photo droite */
.commune-home-blc4-card {
    background: #fff;
    border: 1px solid #000;
    border-radius: 20px;
    padding: 2.5rem 2rem 2.5rem 3rem;
    width: 100%;
    min-height: 180px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.commune-home-blc4-card-body {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.commune-home-blc4-card-title {
    color: #000 !important;
    font-family: Basteleur !important;
    font-size: 32px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 34.8px !important;
    margin: 0 !important;
}

.commune-home-blc4-card-text {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: #000;
    margin: 0 !important;
    max-width: none;
}

.commune-home-blc4-card-cta {
    display: inline-block;
    width: fit-content;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #000;
    background: #fff;
    border: 1px solid #000;
    border-radius: 30px;
    padding: 6px 16px;
    text-decoration: none;
    white-space: nowrap;
}

.commune-home-blc4-card-cta:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

.commune-home-blc4-card-img-wrap {
    flex: 0 0 180px;
    width: 180px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}

.commune-home-blc4-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.commune-home-blc4-card--1 .commune-home-blc4-card-img { transform: rotate(5deg); }
.commune-home-blc4-card--2 .commune-home-blc4-card-img { transform: rotate(5deg); }
.commune-home-blc4-card--3 .commune-home-blc4-card-img { transform: rotate(5deg); }

/* Stickers positionnés sur les cartes */
.commune-home-blc4-sticker {
    position: absolute;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 10;
}

.commune-home-blc4-sticker--tr {
    top: -50px;
    right: -20px;
    width: 250px;
}

.commune-home-blc4-sticker--bl {
    bottom: -100px;
    left: 200px;
    width: 180px;
}

/* Décalages et rotations — pile légèrement désordonnée */
.commune-home-blc4-card--1 {
    transform: rotate(-5deg) translateX(-20px);
    z-index: 1;
    margin-bottom: 16px;
}

.commune-home-blc4-card--2 {
    transform: rotate(1.5deg) translateX(18px);
    z-index: 2;
    margin-bottom: 16px;
}

.commune-home-blc4-card--3 {
    transform: rotate(-1deg) translate(-10px, -20px);
    z-index: 3;
}

/* ── Mobile blc4 : cartes en colonne, image sous le CTA ── */
@media (max-width: 768px) {
    .commune-home-blc4 {
        overflow: visible;
    }
    .commune-home-blc4-label {
        left: -1px;
    }
    .commune-home-blc4-title {
        transform: none;
    }
    .commune-home-blc4-card--1,
    .commune-home-blc4-card--2,
    .commune-home-blc4-card--3 {
        transform: none;
        margin-bottom: 12px;
    }
    .commune-home-blc4-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
    }
    .commune-home-blc4-card-img-wrap {
        flex: none;
        width: 100%;
        height: 180px;
    }
    .commune-home-blc4-card-img {
        transform: none;
    }
    .commune-home-blc4-sticker {
        display: none;
    }
}


/* ════════════════════════════════════════════════════════════════════
   BLOC 5 — ÉVÉNEMENTS [commune_home_events]
   ════════════════════════════════════════════════════════════════════ */

.commune-home-events {
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    margin-top: -90px;
    z-index: 4;
    border-top: 1px solid #000;
    font-family: Poppins, sans-serif;
    box-sizing: border-box;
    overflow: visible;
    background: #fff;
}

.commune-home-events-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 2rem;
    box-sizing: border-box;
}

.commune-home-events-label {
    position: relative;
    top: -49px;
    left: 400px;
    display: inline-block;
    color: #000;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    line-height: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 16px;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-bottom: none;
    border-top-right-radius: 12px;
    background: #fff;
    margin-bottom: -30px;
}

.commune-home-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 334px);
    gap: 24px;
    justify-content: center;
}

.commune-home-events-title {
    grid-column: 1 / -1;
    margin: 0 0 1.5rem !important;
    font-family: Basteleur, sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
    text-transform: uppercase;
}

.commune-home-events-card {
    width: 334px;
    height: 440px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.commune-home-events-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.commune-home-events-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.commune-home-events-card-image {
    position: relative;
    width: 100%;
    height: 190px;
    flex-shrink: 0;
    overflow: hidden;
}

.commune-home-events-card-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.commune-home-events-card-body {
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.commune-home-events-card-title {
    height: 48px;
    margin: 0 !important;
    padding: 0 8px;
    font-family: Poppins, sans-serif;
    font-size: 16px !important;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.312px;
    color: #1A1A1A;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.commune-home-events-card-metas {
    height: 133px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 16px;
}

.commune-home-events-card-meta {
    margin: 0 !important;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.commune-home-events-meta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.commune-home-events-card-tags {
    height: 65px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.commune-home-events-card-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.commune-home-events-cta {
    margin-top: 2rem;
    text-align: right;
}

.commune-home-events-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    border: none;
    transition: opacity 0.2s;
}

.commune-home-events-btn:hover {
    opacity: 0.7;
    color: #000;
    text-decoration: none;
}

.commune-home-events-btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (max-width: 750px) {
    .commune-home-events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 334px));
    }
    .commune-home-events-card {
        width: 100%;
    }
    .commune-home-events-label {
        left: -1px;
    }
}


/* ════════════════════════════════════════════════════════════════════
   BLOC PRV — PRIVATISATION [commune_home_prv]
   Fond violet #997FB9, titre Le Murmure, 2 CTAs, photo droite
   ════════════════════════════════════════════════════════════════════ */

.commune-home-prv {
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    margin-top: -5px;
    z-index: 5;
    background: #997FB9;
    border-top: 1px solid #000;
    overflow: visible;
    box-sizing: border-box;
    padding-bottom: 80px;
}

.commune-home-prv-label {
    position: relative;
    top: -31px;
    left: -1px;
    display: inline-block;
    color: #fff;
    background: #997FB9;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    line-height: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 16px;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-bottom: none;
    border-top-right-radius: 12px;
    margin-bottom: -30px;
}

.commune-home-prv-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4rem;
    padding: 2.5rem 4rem 0;
    max-width: 1300px;
    margin: 0 auto;
    box-sizing: border-box;
}

.commune-home-prv-left {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.commune-home-prv-content {
    padding: 2rem 0 1.5rem 0;
    flex: 0 0 auto;
}

.commune-home-prv-title {
    margin: 0 0 1rem !important;
    color: #fff !important;
    font-family: Basteleur, serif !important;
    font-size: 48px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 64px !important;
}

.commune-home-prv-title .commune-home-hero-logo {
    height: 42px !important;
}

.commune-home-prv-subtitle {
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 !important;
}

.commune-home-prv-cards-zone {
    flex: 1 1 auto;
    padding: 0 !important;
    min-height: 200px;
    align-items: flex-end;
}

.commune-home-prv-right {
    flex: 0 0 360px;
    display: flex;
    justify-content: flex-end;
}

.commune-home-prv-img-wrap {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 1px solid #000;
    overflow: hidden;
}

.commune-home-prv-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .commune-home-prv-inner {
        flex-wrap: wrap;
        flex-direction: column;
        padding: 2rem 1.5rem 0;
    }
    .commune-home-prv-left {
        width: 100%;
    }
    .commune-home-prv-right {
        justify-content: center;
        width: 100%;
    }
    .commune-home-prv-img-wrap {
        width: 100%;
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .commune-home-prv {
        overflow: visible;
        padding-bottom: 40px;
    }
    .commune-home-prv-inner {
        padding: 1.25rem 1.25rem 0;
        gap: 1.5rem;
    }
    /* Titre : réduction font-size + line-height */
    .commune-home-prv-title {
        font-size: 28px !important;
        line-height: 1.25 !important;
        margin-bottom: 0.75rem !important;
    }
    .commune-home-prv-title .commune-home-hero-logo {
        height: 24px !important;
    }
    /* Supprimer la min-height rigide qui pousse le contenu hors écran */
    .commune-home-prv-left {
        min-height: 0;
    }
    .commune-home-prv-content {
        padding: 0.75rem 0 1rem;
    }
    /* Cartes : supprimer l'étirement + l'alignement en bas → collées sous le titre */
    .commune-home-prv-cards-zone {
        flex: 0 0 auto;
        min-height: 0;
        align-items: flex-start;
    }
    .commune-home-prv-cards-zone .commune-home-hero-cards {
        gap: 4rem;
        margin-bottom: 30px;
    }
    /* Image : hauteur fixe lisible */
    .commune-home-prv-img-wrap {
        height: 220px;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .commune-home-prv-title {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
    .commune-home-prv-title .commune-home-hero-logo {
        height: 20px !important;
    }
    .commune-home-prv-inner {
        padding: 1rem 1rem 0;
        gap: 1rem;
    }
    .commune-home-prv-img-wrap {
        height: 180px;
    }
}
