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


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

.commune-incubateur-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;
    /* Marge basse portée par la carte, pas par la row : la règle de row vise
       quatre niveaux imbriqués (vc_row / wpb_row / row-container / row-parent),
       le padding s'y empilait et la zone ajoutée échappait au fond blanc —
       d'où une bande grise. Ici l'espace est à l'intérieur du bloc blanc. */
    margin: 10px 25px 60px;
}

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

.commune-incubateur-hero-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: 580px;       /* héro plus haut */
    overflow: hidden;
    border-radius: 50px;
    /* Le CONTENU se borne a 1200px, pas le cadre : .commune-incubateur-hero
       garde sa largeur pleine, son fond creme, sa bordure et ses coins ronds.
       Sans ca le texte partait a l'extreme gauche et la photo a l'extreme
       droite, avec un vide au milieu sur les grands ecrans. */
    max-width: 1200px;
    margin-inline: auto;
}

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

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

/* Titre principal — Le Murmure grande taille */
.commune-incubateur-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-incubateur-hero-logo {
    width: auto !important;
    height: 40px !important;
    vertical-align: middle;
    margin-left: 6px;
    display: inline !important;
}

/* Sous-titre — Basteleur */
.commune-incubateur-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-incubateur-hero-body {
    color: #000;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    max-width: 480px;
}

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

/* Zone cartes (bas du côté gauche) */
.commune-incubateur-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-incubateur-hero-cards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.commune-incubateur-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-incubateur-hero-card:hover {
    transform: scale(1.04);
    text-decoration: none;
    color: #000;
}

.commune-incubateur-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-incubateur-hero-card-icon {
    width: auto;
    height: 60%;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: auto;
}

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

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

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

.commune-incubateur-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-incubateur-hero-image-inner {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
}

.commune-incubateur-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-incubateur-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-incubateur-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_incubateur_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-incubateur-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-incubateur-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-incubateur-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_incubateur_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.
   Fond blanc forcé : le héro est une carte crème à coins arrondis, le fond du
   thème se voit donc tout autour. Même traitement que la row de la grille nav. */
.vc_row:has(.commune-incubateur-hero),
.wpb_row:has(.commune-incubateur-hero),
.row-container:has(.commune-incubateur-hero),
.row-parent:has(.commune-incubateur-hero) {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    background: white !important;
    background-color: white !important;
}

/*
   Grande bande blanche sous le heros : elle ne venait pas d'une marge mais
   d'une HAUTEUR imposee a la row.

   La row porte data-height-ratio="78" ; le JS d'Uncode (UNCODE.initRow) en
   deduit une hauteur egale a 78 % de sa largeur et l'ecrit en style inline
   sur .row-inner — 1850px pour une row de 2370. Le contenu du heros en fait
   450 : le reste etait du vide. La colonne, elle, portait un min-height de
   600px, meme mecanisme.

   Ces deux valeurs sont en style inline : seul un !important les couvre. Et
   comme le JS les reecrit a chaque redimensionnement, la neutralisation doit
   passer par le CSS, pas par un reglage ponctuel — un changement de reglage
   dans le page builder serait plus propre, mais tant que le ratio y est
   renseigne, c'est cette regle qui tient.

   Le heros garde sa hauteur : elle vient de son propre min-height de 580px
   sur .commune-incubateur-hero-inner.
*/
.wpb_row.row-inner:has(.commune-incubateur-hero) {
    height: auto !important;
}

.uncoltable:has(.commune-incubateur-hero) {
    min-height: 0 !important;
}

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

/* ── Section nav ──────────────────────────────────────────────────────── */
.commune-incubateur-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-incubateur-nav-section .commune-incubateur-wave {
    margin-top: 0;
    margin-bottom: 0;
    background-color: transparent !important;
}

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

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

.commune-incubateur-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-incubateur-nav-icon--tl   { grid-area: icon-tl; }
.commune-incubateur-nav-tile--manger { grid-area: manger; }
.commune-incubateur-nav-icon--tr   { grid-area: icon-tr; }
.commune-incubateur-nav-tile--boire  { grid-area: boire; }
.commune-incubateur-nav-icon--br   { grid-area: icon-br; }
.commune-incubateur-nav-tile--danser { grid-area: danser; }

/* Tuiles nav (avec titre + CTA) */
.commune-incubateur-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-incubateur-nav-tile:hover {
    text-decoration: none;
    color: #000;
}

.commune-incubateur-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-incubateur-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-incubateur-nav-tile-cta-short {
    display: none;
}

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

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

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

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

/* Tuiles icône */
.commune-incubateur-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-incubateur-nav-icon img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

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


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

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

/* ── Tablette portrait (< 1024px) : passage en colonne ── */
@media (max-width: 1024px) {
    .commune-incubateur-hero-inner {
        flex-direction: column;
        min-height: 0;
    }
    .commune-incubateur-hero-left {
        width: 100%;
        min-height: 0;
    }
    .commune-incubateur-hero-content {
        padding: 2rem 2rem 1.25rem;
    }
    .commune-incubateur-hero-title {
        font-size: 44px !important;
        max-width: none;
    }
    .commune-incubateur-hero-logo {
        height: 44px !important;
    }
    .commune-incubateur-hero-subtitle {
        font-size: 22px !important;
    }
    .commune-incubateur-hero-cards-zone {
        padding: 1.5rem 2rem 2rem;
        min-height: 160px;
        justify-content: center;
    }
    .commune-incubateur-hero-cards {
        justify-content: center;
    }
    .commune-incubateur-hero-right {
        width: 100%;
        padding: 2rem;
        justify-content: center;
    }
    .commune-incubateur-hero-image-wrap {
        margin: 0 auto;
        max-width: 100%;
    }
    .commune-incubateur-hero-image-wrap::before {
        top: 60px; left: -70px; width: 160px; height: 160px;
    }
    .commune-incubateur-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-incubateur-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-incubateur-hero {
        border-radius: 28px;
    }
    .commune-incubateur-hero-inner {
        border-radius: 28px;
    }
    .commune-incubateur-hero-title {
        font-size: 36px !important;
        line-height: 1.2 !important;
    }
    .commune-incubateur-hero-logo {
        height: 36px !important;
    }
    .commune-incubateur-hero-subtitle {
        font-size: 20px !important;
    }
    .commune-incubateur-hero-card {
        width: 150px;
        height: 150px;
    }
    .commune-incubateur-hero-card-label {
        font-size: 14px;
    }
    .commune-incubateur-hero-image-wrap::before {
        top: 40px; left: -50px; width: 130px; height: 130px;
    }
    .commune-incubateur-hero-image-wrap::after {
        width: 170px; height: 170px;
    }
    .commune-incubateur-wave-svg {
        max-height: 120px;
        width: 200%;
    }
    /* Clip le débordement du SVG étiré (ne touche que la vague dans nav-section) */
    .commune-incubateur-nav-section .commune-incubateur-wave {
        overflow: hidden;
    }
    .commune-incubateur-wave-track {
        font-size: clamp(14px, 3.5vw, 20px);
    }
    /* Nav : gauche = 3 du haut desktop, droite = 3 du bas */
    .commune-incubateur-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-incubateur-nav-tile {
        min-height: 130px;
    }
    .commune-incubateur-nav-icon {
        min-height: 90px;
    }
    .commune-incubateur-nav-tile-cta-long {
        display: none;
    }
    .commune-incubateur-nav-tile-cta-short {
        display: flex;
    }
}


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


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

.commune-incubateur-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-incubateur-saisir-label {
    position: relative;
    top: -31px;
    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-incubateur-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;
}

/*
   Neutralise le padding vertical de la row Uncode QUI CONTIENT le bloc
   (.main-container .row-container .row-parent { padding: 36px }).
   :has() cible le parent depuis l'enfant : on annule le padding à la source
   plutôt que de le compenser par marge négative, et la règle du thème reste
   intacte sur toutes les autres rows.
   Volontairement SANS classe conditionnelle : le bloc est en pleine largeur
   (100vw), donc ce padding ne produit jamais qu'une bande blanche parasite
   au-dessus et en dessous. Aucune raison de le vouloir, où que soit le bloc.
   Le padding horizontal, lui, est déjà contourné par le 100vw.
*/
.main-container .row-container .row-parent:has(.commune-incubateur-saisir) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/*
   Variante inversée : photo à gauche, texte à droite.
   row-reverse + flex-wrap:wrap conserve l'ordre vertical une fois empilé
   (le texte reste le premier enfant du DOM, donc au-dessus sur mobile).
*/
.commune-incubateur-saisir--reverse .commune-incubateur-saisir-inner {
    flex-direction: row-reverse;
}

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

/*
   Texte noir sur le bloc orange UNIQUEMENT.
   Le sélecteur s'accroche à la couleur de fond posée en style inline par le
   shortcode : il fonctionne donc sur le markup déjà en ligne, sans attendre
   que le PHP soit redéployé. Les autres blocs saisir (violet, etc.) gardent
   leur texte blanc.
   Route propre à terme : l'attribut text_color="#000" du shortcode, qui pilote
   la variable --saisir-text et évite d'écrire une couleur dans un sélecteur.
*/
.commune-incubateur-saisir[style*="#F3723C"] .commune-incubateur-saisir-title,
.commune-incubateur-saisir[style*="#F3723C"] .commune-incubateur-saisir-body,
.commune-incubateur-saisir[style*="#F3723C"] .commune-incubateur-saisir-body p,
.commune-incubateur-saisir[style*="#F3723C"] .commune-incubateur-saisir-cta,
.commune-incubateur-saisir[style*="#F3723C"] .commune-incubateur-saisir-cta:link,
.commune-incubateur-saisir[style*="#F3723C"] .commune-incubateur-saisir-cta:visited,
.commune-incubateur-saisir[style*="#F3723C"] .commune-incubateur-saisir-cta:hover {
    color: #000 !important;
}

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

.commune-incubateur-saisir-body {
    color: var(--saisir-text, #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-incubateur-saisir-body p {
    margin: 0 0 0.75em !important;
}

.commune-incubateur-saisir-cta,
.commune-incubateur-saisir-cta:link,
.commune-incubateur-saisir-cta:visited {
    display: inline-block;
    color: var(--saisir-text, #fff) !important;
    font-family: Poppins, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
    width: fit-content;
}

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

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

/*
   Mascotte sur le bloc VIOLET, en CSS seul.
   Posée en ::after de la colonne de gauche et accrochée à la couleur de fond
   inline : fonctionne sur le markup déjà en ligne, sans attendre que le PHP
   connaisse l'attribut mascot. Ratio 354/196 = celui du SVG, pour qu'il ne se
   déforme jamais.
   À supprimer une fois le PHP déployé : l'attribut mascot="…" fait la même
   chose proprement, sans coder une URL ni une couleur dans un sélecteur.
*/
.commune-incubateur-saisir[style*="#8F7BBB"] .commune-incubateur-saisir-left::after {
    content: "";
    display: block;
    width: clamp(140px, 40%, 240px);
    aspect-ratio: 354 / 196;
    margin: 0.75rem 0 0 34%;
    background: url('https://lacommune.co/saint-etienne/wp-content/uploads/2026/05/bladinghome.svg') no-repeat center / contain;
    pointer-events: none;
}

@media (max-width: 768px) {
    .commune-incubateur-saisir[style*="#8F7BBB"] .commune-incubateur-saisir-left::after {
        margin-left: 16%;
        width: clamp(120px, 34%, 170px);
    }
}

/* Mascotte décorative sous le CTA, décalée vers la droite (cf. maquette).
   Ne s'affiche que si l'attribut mascot est renseigné : les blocs existants
   ne bougent pas. */
.commune-incubateur-saisir-mascot {
    display: block;
    width: clamp(120px, 40%, 210px);
    height: auto;
    margin: 0.5rem 0 0 38%;
    pointer-events: none;
}

@media (max-width: 768px) {
    .commune-incubateur-saisir-mascot {
        margin-left: 20%;
        width: clamp(100px, 34%, 160px);
    }
}

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

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

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

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

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

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

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

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

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

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


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

.commune-incubateur-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-incubateur-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-incubateur-blc4-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 0;
    box-sizing: border-box;
}

.commune-incubateur-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-incubateur-blc4-cards {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: relative;
    padding-bottom: 20px;
}

/* Carte : texte gauche + photo droite */
.commune-incubateur-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-incubateur-blc4-card-body {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.commune-incubateur-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-incubateur-blc4-card-text {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: #000;
    margin: 0 !important;
    max-width: none;
}

.commune-incubateur-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-incubateur-blc4-card-cta:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

.commune-incubateur-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-incubateur-blc4-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

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

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

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

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

.commune-incubateur-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-incubateur-blc4 {
        overflow: visible;
    }
    .commune-incubateur-blc4-label {
        left: -1px;
    }
    .commune-incubateur-blc4-title {
        transform: none;
    }
    .commune-incubateur-blc4-card--1,
    .commune-incubateur-blc4-card--2,
    .commune-incubateur-blc4-card--3 {
        transform: none;
        margin-bottom: 12px;
    }
    .commune-incubateur-blc4-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
    }
    .commune-incubateur-blc4-card-img-wrap {
        flex: none;
        width: 100%;
        height: 180px;
    }
    .commune-incubateur-blc4-card-img {
        transform: none;
    }
    .commune-incubateur-blc4-sticker {
        display: none;
    }
}


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

.commune-incubateur-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-incubateur-events-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 2rem;
    box-sizing: border-box;
}

.commune-incubateur-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-incubateur-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 334px);
    gap: 24px;
    justify-content: center;
}

.commune-incubateur-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-incubateur-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-incubateur-events-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

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

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

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

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

.commune-incubateur-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-incubateur-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-incubateur-events-card-meta {
    margin: 0 !important;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.commune-incubateur-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-incubateur-events-cta {
    margin-top: 2rem;
    text-align: right;
}

.commune-incubateur-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-incubateur-events-btn:hover {
    opacity: 0.7;
    color: #000;
    text-decoration: none;
}

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

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


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

.commune-incubateur-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-incubateur-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-incubateur-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-incubateur-prv-left {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

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

.commune-incubateur-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-incubateur-prv-title .commune-incubateur-hero-logo {
    height: 42px !important;
}

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

.commune-incubateur-prv-body {
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
}

.commune-incubateur-prv-body p {
    margin: 0 0 1em !important;
}

.commune-incubateur-prv-body p:last-child {
    margin-bottom: 0 !important;
}

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

.commune-incubateur-prv-right {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.commune-incubateur-prv-right .commune-incubateur-hero-image-wrap {
    width: 100%;
    max-width: 100%;
    aspect-ratio: unset;
    height: 100%;
    align-self: stretch;
}

.commune-incubateur-prv .commune-incubateur-hero-image-wrap::before,
.commune-incubateur-prv .commune-incubateur-hero-image-wrap::after {
    display: none;
}

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

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

@media (max-width: 900px) {
    .commune-incubateur-prv-inner {
        flex-wrap: wrap;
        flex-direction: column;
        padding: 2rem 1.5rem 0;
    }
    .commune-incubateur-prv-left,
    .commune-incubateur-prv-right {
        flex: 1 1 100%;
        width: 100%;
    }
    .commune-incubateur-prv-right .commune-incubateur-hero-image-wrap {
        height: auto;
        min-height: 280px;
        aspect-ratio: 4 / 3;
    }
    .commune-incubateur-prv-img-wrap {
        width: 100%;
        max-width: 480px;
    }
}

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

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


/* ════════════════════════════════════════════════════════════════════
   BLOC EDITO [commune_incubateur_edito]
   Deux cartes éditoriales — même style que .commune-incubateur-hero
   ════════════════════════════════════════════════════════════════════ */

/*
   Largeur alignée sur .commune-incubateur-parcours-inner.
   Celui-ci vaut min(1300px, 100vw - 8rem) centré sur le VIEWPORT ; l'edito,
   lui, était prisonnier du .limit-width du thème (1200px). On le sort en
   pleine largeur, puis un padding latéral calculé reproduit exactement la même
   zone de contenu — sans wrapper supplémentaire dans le markup.
     · écran large  → (100vw - 1300px) / 2  ⇒ contenu = 1300px
     · écran étroit → 4rem                  ⇒ même gouttière que le parcours
*/
.commune-incubateur-edito {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100vw;
    max-width: 100vw;
    margin: 10px calc(50% - 50vw);
    padding-left: max(4rem, calc((100vw - 1300px) / 2));
    padding-right: max(4rem, calc((100vw - 1300px) / 2));
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

/* ── Style commun à chaque carte ── */
.commune-incubateur-edito-card {
    background: #FFFDE9;
    border: 1px solid #000;
    border-radius: 50px;
    padding: 2.5rem 3rem;
    box-sizing: border-box;
    overflow: hidden;
}

/* ── Card 1 : image gauche + contenu droite ── */
.commune-incubateur-edito-card--1 {
    display: flex;
    align-items: stretch;
    gap: 2.5rem;
}

.commune-incubateur-edito-img-wrap--left {
    flex: 0 0 260px;
    width: 260px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #000;
}

.commune-incubateur-edito-content {
    flex: 1 1 0;
    border: 1px solid #000;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* ── Card 2 content : pleine largeur ── */
.commune-incubateur-edito-card--2 .commune-incubateur-edito-content {
    width: 100%;
}

/* ── Titre ── */
.commune-incubateur-edito-title {
    font-family: Basteleur, 'Le Murmure_Regular', serif !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #000 !important;
    text-transform: uppercase;
    margin: 0 0 1.5rem !important;
    /* Ligne pleine largeur : compense le padding du content (1.5rem 2rem) */
    margin-left: -2rem !important;
    margin-right: -2rem !important;
    padding: 0 2rem 1rem !important;
    border-bottom: 1px solid #000;
}

.commune-incubateur-edito-title--large {
    font-size: 32px !important;
    margin-bottom: 2rem !important;
}

/* ── 2 colonnes de texte ── */
.commune-incubateur-edito-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Typo verrouillée sur la colonne ET ses <p> : sans !important, la taille et
   l'interlignage d'Uncode reprennent la main (même cause que les <li> du
   parcours — une règle directe du thème bat la valeur héritée). */
.commune-incubateur-edito-col,
.commune-incubateur-edito-col p {
    color: #000 !important;
    font-family: Poppins, sans-serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: normal !important;
}

.commune-incubateur-edito-col p {
    margin: 0 0 0.75em !important;
}

/* ── Card 2 : content gauche + image droite (même structure que card 1 inversée) ── */
.commune-incubateur-edito-card--2 {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 2.5rem;
}

.commune-incubateur-edito-img-wrap--right {
    flex: 0 0 200px;
    width: 200px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #000;
}

.commune-incubateur-edito-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

/*
   ── Responsive : carte « image à droite » ──
   L'image est figée à 200px. En dessous de ~1100px il ne reste plus assez de
   largeur pour les deux colonnes de texte à côté : mesuré à 938px, elles
   tombaient à 187px chacune, soit une vingtaine de caractères par ligne, et la
   photo s'étirait en bandeau de 198×860.
   On empile donc : image en pleine largeur, texte en dessous. Les deux colonnes
   sont conservées (~380px chacune à 938px, largement lisibles) — elles ne
   fusionnent qu'en dessous de 768px, plus bas.

   Ce bloc doit rester AVANT celui de 768px, qui affine ces mêmes propriétés.
*/
@media (max-width: 1100px) {
    .commune-incubateur-edito-card--2 {
        flex-direction: column;
    }

    .commune-incubateur-edito-img-wrap--right {
        flex: none;
        width: 100%;
        height: clamp(200px, 26vw, 280px);
        align-self: auto;
    }

    /*
       Le cadre passe de portrait à bandeau : un `cover` centré ne garde que la
       bande médiane de la photo, c'est-à-dire le menton. On remonte le point
       d'ancrage pour conserver le visage.
    */
    .commune-incubateur-edito-card--2 .commune-incubateur-edito-img {
        object-position: center 22%;
    }
}

/* ── Responsive : tablette / mobile ── */
@media (max-width: 768px) {
    /*
       `margin: 10px` écrasait le breakout `calc(50% - 50vw)` alors que la
       largeur reste 100vw : le bloc débordait de 10px à droite (778 pour un
       écran de 768). Et le padding restait à 4rem pendant que
       .commune-incubateur-parcours descendait à 15px, d'où des cartes plus
       étroites que les étapes en dessous (640 contre 738 mesurés).
       On garde donc le breakout et on aligne le retrait sur celui du parcours.
    */
    .commune-incubateur-edito {
        margin: 10px calc(50% - 50vw);
        padding-left: 15px;
        padding-right: 15px;
    }
    .commune-incubateur-edito-card {
        border-radius: 28px;
        padding: 1.5rem;
    }
    .commune-incubateur-edito-card--1 {
        flex-direction: column;
    }
    .commune-incubateur-edito-content {
        border-radius: 16px;
        padding: 1.25rem;
    }
    .commune-incubateur-edito-title {
        margin-left: -1.25rem !important;
        margin-right: -1.25rem !important;
        padding: 0 1.25rem 1rem !important;
    }
    .commune-incubateur-edito-img-wrap--left {
        flex: none;
        width: 100%;
        height: 200px;
    }
    .commune-incubateur-edito-cols {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .commune-incubateur-edito-card--2 {
        flex-direction: column;
    }
    .commune-incubateur-edito-img-wrap--right {
        flex: none;
        width: 100%;
        height: 180px;
        align-self: auto;
    }
    .commune-incubateur-edito-title {
        font-size: 22px !important;
    }
    .commune-incubateur-edito-title--large {
        font-size: 24px !important;
    }
}

@media (max-width: 600px) {
    .commune-incubateur-edito-card {
        border-radius: 20px;
        padding: 1.25rem;
    }
    .commune-incubateur-edito-title {
        font-size: 20px !important;
    }
    .commune-incubateur-edito-title--large {
        font-size: 22px !important;
    }
}


/* ════════════════════════════════════════════════════════════════════
   BLOC CONCEPT + GRILLE ÉCHOPPES [commune_incubateur_concept]
   ════════════════════════════════════════════════════════════════════ */

/* ── Wrapper pleine largeur (fond) — breakout fiable depuis limit-width Uncode ── */
.commune-incubateur-concept {
    position: relative;
    /* Échelle d'empilement des sections, dans l'ordre de la page :
       saisir 3 → concept 4 → foodhall 5 → rejoindre 6.
       .commune-incubateur-saisir porte un z-index:3 explicite ; sans valeur
       chiffrée ici, il passerait devant malgré l'ordre du DOM et masquerait
       l'onglet « Le concept » qui doit le chevaucher. */
    z-index: 4;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #FAF0F0;
    border-top: 1px solid #000;
    overflow: visible;
    box-sizing: border-box;
    padding-bottom: 80px;
    font-family: Poppins, sans-serif;
}

/* Sticker label — même pattern que .commune-incubateur-prv-label */
.commune-incubateur-concept-label {
    position: relative;
    top: -31px;
    left: -1px;
    display: inline-block;
    color: #000;
    background: #FAF0F0;
    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: -65px;
}

/* Contenu centré — mêmes proportions que .commune-incubateur-prv-inner */
.commune-incubateur-concept-inner {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 2.5rem 4rem 0;
    box-sizing: border-box;
}

/* Neutralise WPBakery + Uncode — pas de fond ni bordure ici, uniquement sur .commune-incubateur-concept */
.vc_row.row-container:has(.commune-incubateur-concept),
.row-container:has(.commune-incubateur-concept),
.limit-width.row-parent:has(.commune-incubateur-concept),
.row.limit-width:has(.commune-incubateur-concept),
.row-parent:has(.commune-incubateur-concept),
.wpb_row.row-inner:has(.commune-incubateur-concept),
.row-inner:has(.commune-incubateur-concept),
.wpb_column:has(.commune-incubateur-concept),
.column_parent:has(.commune-incubateur-concept),
.vc_row:has(.commune-incubateur-concept) .vc_column_container,
.vc_row:has(.commune-incubateur-concept) .vc_col-sm-12,
.vc_row:has(.commune-incubateur-concept) .wpb_column,
.vc_row:has(.commune-incubateur-concept) .vc_column-inner,
.uncol:has(.commune-incubateur-concept),
.uncoltable:has(.commune-incubateur-concept),
.uncell:has(.commune-incubateur-concept),
.uncont:has(.commune-incubateur-concept),
.uncode_text_column:has(.commune-incubateur-concept) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    overflow: visible !important;
}

/*
   Row Uncode contenant le bloc concept : on supprime son padding vertical
   (36px du thème) des deux côtés, plus celui du bas de la row PRÉCÉDENTE via
   :has(+ …). Sans ces trois-là, un liseré blanc subsiste entre les sections et
   l'onglet « Le concept » flotte au lieu de chevaucher le bloc du dessus.
*/
.main-container .row-container .row-parent:has(.commune-incubateur-concept) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.main-container .row-container:has(+ .row-container .commune-incubateur-concept) .row-parent {
    padding-bottom: 0 !important;
}

/* ── Section concept (héro) — layout prv : gauche fluide + droite fixe 360px ── */
.commune-incubateur-concept-hero {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4rem;
    margin: 0;
}

.commune-incubateur-concept-left {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2rem 0 1.5rem;
}

/* Titre Basteleur 48px — aligné sur .commune-incubateur-prv-title */
.commune-incubateur-concept-title {
    color: #000 !important;
    font-family: Basteleur, serif !important;
    font-size: 48px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 64px !important;
    margin: 0 0 1rem !important;
}

/* Logo inline dans le titre — même taille que prv */
.commune-incubateur-concept-logo {
    height: 42px !important;
    width: auto !important;
    vertical-align: middle;
    display: inline !important;
    margin-left: 8px;
}

/* Corps de texte */
.commune-incubateur-concept-body {
    color: #000;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    max-width: none;
}

.commune-incubateur-concept-body p {
    margin: 0 0 0.75em !important;
}

/*
   Icônes couverts.
   Hauteur PILOTÉE PAR LE VIEWPORT, pas par la colonne de texte. Avant, un
   align-self:stretch + height:100% calait les couverts sur la hauteur du
   paragraphe : rallonger le texte les faisait grossir. Un clamp() les rend
   indépendants de la longueur de la copie et fluides entre les paliers.
   Les 4 SVG font 332 de haut pour 290 de large cumulés (ratio ~0.87),
   donc le jeu entier tient même sur un écran de 320px : la largeur n'est
   jamais la contrainte, seule la hauteur se règle.
*/
.commune-incubateur-concept-icons {
    /* 0 0 auto + pas de min-width:0 : le bloc réserve sa largeur et ne se
       fait jamais écraser par un texte long — sinon le texte lui passe dessous.
       C'est .commune-incubateur-concept-left (flex:1 1 auto; min-width:0) qui cède. */
    flex: 0 0 auto;
    align-self: flex-start;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    gap: clamp(6px, 0.9vw, 12px);
    height: clamp(200px, 21vw, 320px);
    max-width: 100%;
    padding: 0;
}

.commune-incubateur-concept-icon {
    display: block;
    height: 100%;
    width: auto;
    /* 0 0 auto : jamais compressé, le ratio du dessin reste juste */
    flex: 0 0 auto;
    min-height: 0;
    object-fit: contain;
    object-position: top center;
}

/* ── Titre grille — même typo que prv, aligné à gauche dans le conteneur centré ── */
.commune-incubateur-concept-grid-title {
    color: #000 !important;
    font-family: Basteleur, serif !important;
    font-size: 48px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 64px !important;
    margin: 0 0 2.5rem !important;
}

/* ══════════════════════════════════════════════════════════════════
   Carte échoppe — bloc-notes : fiche crème réglée, photo inclinée
   maintenue par un trombone, pastille ronde optionnelle, nom en bas.
   Réf. SVG fournie : 294 × 358, rx 12.5, fond #FCF8F7, bord #ADADAD
   ══════════════════════════════════════════════════════════════════ */

.commune-incubateur-echoppes-grid {
    /* --echoppes-columns : posé inline par [commune_echoppes columns="…"] */
    display: grid;
    grid-template-columns: repeat(var(--echoppes-columns, 4), 1fr);
    gap: 3rem 2rem;
}

/* Carte cliquable */
.commune-incubateur-echoppe--link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.2s ease;
}

.commune-incubateur-echoppe--link:hover,
.commune-incubateur-echoppe--link:focus {
    transform: translateY(-4px);
    text-decoration: none !important;
    color: inherit !important;
}

.commune-incubateur-echoppe-card {
    position: relative;
    width: 100%;
    aspect-ratio: 294 / 358;
    background: #FCF8F7;
    border: 1px solid #ADADAD;
    border-radius: 12.5px;
    /* La photo inclinée doit pouvoir déborder */
    overflow: visible;
}

/* Lignes de cahier — tramé CSS, inset pour ne pas toucher le bord */
.commune-incubateur-echoppe-card::before {
    content: "";
    position: absolute;
    inset: 22px 16px 16px;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 27px,
        #B4D7C4 27px,
        #B4D7C4 28px
    );
    pointer-events: none;
    z-index: 0;
}

/* Perforations grises en haut à gauche */
.commune-incubateur-echoppe-hole {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #D9D9D9;
    z-index: 1;
}

.commune-incubateur-echoppe-hole--2 {
    left: 38px;
}

/* ── Zone photo ── */
.commune-incubateur-echoppe-photo-zone {
    position: absolute;
    top: 2%;
    left: 10%;
    right: -2%;
    height: 60%;
    z-index: 2;
}

.commune-incubateur-echoppe-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    /* rotate() est injecté en style inline (angle par carte) */
}

/* Placeholder "Ça arrive bientôt" — même gabarit que la photo */
.commune-incubateur-echoppe-soon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f0f0f0;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.commune-incubateur-echoppe-soon p {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    line-height: 1.5;
    margin: 0 !important;
}

/* Trombone : à cheval sur le bord haut de la photo */
.commune-incubateur-echoppe-clip {
    position: absolute;
    top: -16%;
    /* left + transform (translate + rotate = angle de la photo) injectés inline */
    transform: translateX(-50%);
    width: 15%;
    max-width: 34px;
    z-index: 4;
    pointer-events: none;
}

.commune-incubateur-echoppe-clip svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Pastille ronde (drapeau + anneau de texte) — déborde en bas à gauche */
.commune-incubateur-echoppe-badge {
    position: absolute;
    left: -6%;
    bottom: -14%;
    width: 26%;
    max-width: 68px;
    aspect-ratio: 1;
    z-index: 5;
    line-height: 0;
}

.commune-incubateur-echoppe-badge svg,
.commune-incubateur-echoppe-badge img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* ── Nom, posé sur les lignes ── */
.commune-incubateur-echoppe-name {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 26px;
    margin: 0 !important;
    z-index: 3;
    color: #000;
    font-family: Poppins, sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 28px;   /* = pas des lignes de cahier */
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

/* Paliers de la grille échoppes (les autres réglages concept suivent plus bas) */
@media (max-width: 1150px) {
    .commune-incubateur-echoppes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .commune-incubateur-echoppes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .commune-incubateur-echoppe-name {
        left: 14px;
        right: 14px;
        bottom: 20px;
        font-size: 15px;
        line-height: 22px;
    }
    .commune-incubateur-echoppe-card::before {
        inset: 18px 12px 12px;
        background-image: repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 21px,
            #B4D7C4 21px,
            #B4D7C4 22px
        );
    }
    .commune-incubateur-echoppe-hole {
        top: 10px;
        left: 10px;
        width: 8px;
        height: 8px;
    }
    .commune-incubateur-echoppe-hole--2 {
        left: 28px;
    }
}

/* ── Responsive — mêmes breakpoints que .commune-incubateur-prv ── */
@media (max-width: 900px) {
    .commune-incubateur-concept-inner {
        gap: 3.5rem;
        padding: 2rem 1.5rem 0;
    }
    .commune-incubateur-concept-hero {
        flex-wrap: wrap;
        flex-direction: column;
    }
    .commune-incubateur-concept-left {
        width: 100%;
        min-height: 0;
    }
    /* Empilé : les couverts passent sous le texte, centrés */
    .commune-incubateur-concept-icons {
        flex: none;
        align-self: center;
        justify-content: center;
        width: 100%;
        max-width: 480px;
        padding: 0 0 1rem;
        height: clamp(150px, 26vw, 240px);
    }
}

@media (max-width: 768px) {
    .commune-incubateur-concept {
        padding-bottom: 40px;
    }
    .commune-incubateur-concept-inner {
        gap: 3rem;
        padding: 1.25rem 1.25rem 0;
    }
    .commune-incubateur-concept-left {
        min-height: 0;
        padding: 0.75rem 0 1rem;
    }
    .commune-incubateur-concept-title,
    .commune-incubateur-concept-grid-title {
        font-size: 28px !important;
        line-height: 1.25 !important;
        margin-bottom: 0.75rem !important;
    }
    .commune-incubateur-concept-logo {
        height: 24px !important;
    }
    .commune-incubateur-echoppes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem 1rem;
    }
}

@media (max-width: 600px) {
    .commune-incubateur-concept-title,
    .commune-incubateur-concept-grid-title {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
    .commune-incubateur-concept-logo {
        height: 20px !important;
    }
    .commune-incubateur-concept-inner {
        gap: 2.5rem;
        padding: 1rem 1rem 0;
    }
    .commune-incubateur-echoppes-grid {
        gap: 1.25rem 0.75rem;
    }
}


/* ════════════════════════════════════════════════════════════════════
   BLOC — PARCOURS INCUBATEUR [commune_incubateur_parcours]
   4 étapes (grille 2×2) + encart éditorial droit
   ════════════════════════════════════════════════════════════════════ */

.commune-incubateur-parcours {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* Fond blanc : la couleur est portée par les cartes, comme dans .commune-incubateur-edito */
    background: transparent;
    box-sizing: border-box;
    padding: 3rem 4rem 90px;
    font-family: Poppins, sans-serif;
}

.commune-incubateur-parcours-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.commune-incubateur-parcours-title {
    margin: 0 0 2.5rem !important;
    color: #000 !important;
    font-family: Basteleur, serif !important;
    font-size: clamp(28px, 3.2vw, 42px) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

/* Titre de section quand il est remonté au-dessus de la carte edito
   (cas de [commune_incubateur_foodhall]) : même retrait que .commune-incubateur-edito */
/* Étiquette d'onglet de la section — même gabarit que
   .commune-incubateur-rejoindre-label, aligné sur la zone de contenu commune. */
/*
   Pour que l'onglet chevauche vraiment le bloc du dessus, il faut supprimer les
   DEUX paddings qui les séparent :
     · celui du haut de notre propre row
     · celui du bas de la row PRÉCÉDENTE — atteint via :has(+ …), qui sélectionne
       un élément d'après son voisin suivant. Sans ça, 36px de blanc subsistent
       et l'onglet flotte sous la section précédente au lieu de mordre dedans.
*/
.main-container .row-container .row-parent:has(.commune-incubateur-foodhall-label) {
    padding-top: 0 !important;
}

.main-container .row-container:has(+ .row-container .commune-incubateur-foodhall-label) .row-parent {
    padding-bottom: 0 !important;
}

/* Conteneur de la section : pleine largeur, filet noir en haut. */
.commune-incubateur-foodhall {
    position: relative;
    z-index: 5;   /* cf. échelle d'empilement, plus haut */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    border-top: 1px solid #000;
}

/* Bandeau porteur : pleine largeur avec le MÊME retrait calculé que le titre,
   sinon l'onglet reste prisonnier du retrait de la row et ne s'aligne pas
   sur le bord gauche du contenu. */
.commune-incubateur-foodhall-label-row {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(4rem, calc((100vw - 1300px) / 2));
    box-sizing: border-box;
    /* Remonté de la hauteur de l'onglet pour chevaucher le bloc du dessus ;
       margin-bottom négatif pour ne pas laisser de vide dans le flux. */
    position: relative;
    top: -30px;
    margin-bottom: -30px;
}

.commune-incubateur-foodhall-label {
    display: inline-block;
    color: #000;
    background: #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;
}

.commune-incubateur-foodhall-title {
    /* 44px sous le filet : à 10px il touchait presque la bordure du haut */
    padding-left: max(4rem, calc((100vw - 1300px) / 2)) !important;
    padding-right: max(4rem, calc((100vw - 1300px) / 2)) !important;
    width: 100vw;
    max-width: 100vw;
    margin: 44px calc(50% - 50vw) 20px !important;
    box-sizing: border-box;
}


.commune-incubateur-parcours-layout {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 24px;
}

.commune-incubateur-parcours-steps {
    /* 55 / 45 : les 4 étapes à gauche, l'encart pleine hauteur à droite */
    flex: 1 1 55%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.commune-incubateur-parcours-row {
    display: flex;
    gap: 24px;
    flex: 1 1 auto;
}

.commune-incubateur-parcours-step,
.commune-incubateur-parcours-aside {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #000;
    background: #fff;
    padding: 24px;
    box-sizing: border-box;
}

.commune-incubateur-parcours-step::before,
.commune-incubateur-parcours-aside::before {
    content: "";
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

.commune-incubateur-parcours-step > *,
.commune-incubateur-parcours-aside > * {
    position: relative;
    z-index: 1;
}

.commune-incubateur-parcours-step-title {
    margin: 0 0 0.75em !important;
    color: #000 !important;
    font-family: Basteleur, serif !important;
    font-weight: 400 !important;
    /* était font-size: inherit → le titre héritait de 16px et disparaissait */
    font-size: clamp(20px, 1.6vw, 28px) !important;
    line-height: 1.15 !important;
}

/*
   Typo posée SUR LES <li>, pas seulement sur le <ul> : Uncode stylise les li
   directement, et une règle directe sur l'enfant bat toujours l'héritage du
   parent — la taille et l'interlignage du thème reprenaient la main.
   !important pour la même raison, comme pour les titres plus haut.
*/
.commune-incubateur-parcours-step-list,
.commune-incubateur-parcours-step-list li {
    color: #080A0A !important;
    font-family: Poppins, sans-serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 24px !important;
}

.commune-incubateur-parcours-step-list {
    margin: 0 !important;
    padding: 0 0 0 1.1em !important;
}

.commune-incubateur-parcours-step-list li {
    margin-bottom: 0.35em;
}

.commune-incubateur-parcours-step-list li:last-child {
    margin-bottom: 0;
}

.commune-incubateur-parcours-aside {
    flex: 1 1 45%;
    padding: 32px;
}

/* Même précaution que pour les <li> : le thème stylise les <p> directement,
   donc la typo est posée sur eux, pas seulement sur le conteneur. */
.commune-incubateur-parcours-aside-body,
.commune-incubateur-parcours-aside-body p {
    color: #080A0A !important;
    font-family: Poppins, sans-serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 24px !important;
}

.commune-incubateur-parcours-aside-body p {
    margin: 0 0 1em !important;
}

.commune-incubateur-parcours-aside-body p:last-child {
    margin-bottom: 0 !important;
}

.commune-incubateur-parcours-aside-body strong {
    font-weight: 700;
}

/* Bordures + décors — stickers page programme */
/* Bordure noire pour toutes les étapes : la couleur est portée par le fond
   (style inline posé par le shortcode), plus par la bordure. */
.commune-incubateur-parcours-step--musicales  { border-color: #ED6D33; }
.commune-incubateur-parcours-step--musicales::before {
    bottom: 7px; right: 0; width: 175px; height: 175px;
}

.commune-incubateur-parcours-step--sport      { border-color: #AED4DE; }
.commune-incubateur-parcours-step--sport::before {
    bottom: 15px; right: -15px; width: 175px; height: 175px;
}

.commune-incubateur-parcours-step--spectacles { border-color: #00A66A; }
.commune-incubateur-parcours-step--spectacles::before {
    bottom: -5px; right: 0; width: 210px; height: 210px;
}

.commune-incubateur-parcours-step--danse        { border-color: #E36426; }
.commune-incubateur-parcours-step--danse::before {
    bottom: 0; right: -10px; width: 190px; height: 190px;
}

/* Bordure noire : depuis la refonte, la couleur est portée par le fond,
   plus par la bordure. */
.commune-incubateur-parcours-aside--mission     { border-color: #000; }
.commune-incubateur-parcours-aside--mission::before {
    bottom: -10px; right: -5px; width: 220px; height: 220px;
}

@media (max-width: 991px) {
    .commune-incubateur-parcours-layout {
        flex-direction: column;
    }
    .commune-incubateur-parcours-steps,
    .commune-incubateur-parcours-aside {
        flex: none;
        width: 100%;
    }
    /*
       En colonne, `flex: 1 1 0` ne répartit plus la largeur mais la HAUTEUR :
       les 4 étapes se partageaient une hauteur quasi nulle (50px mesurés au
       lieu des ~228px réclamés par leur contenu) et `overflow: hidden` coupait
       la liste — d'où des pavés de couleur où seul le titre restait visible.
       On repasse donc en dimensionnement par le contenu.
    */
    .commune-incubateur-parcours-row {
        flex-direction: column;
        flex: 0 0 auto;
    }

    .commune-incubateur-parcours-step {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .commune-incubateur-parcours {
        padding: 2rem 15px 50px;
    }
}


/* ════════════════════════════════════════════════════════════════════
   BLOC — REJOINDRE [commune_incubateur_rejoindre]
   Collage de bulles BD. Tout est proportionnel : positions et tailles en %
   du cadre, corps du texte en cqw (% de la largeur DE SA BULLE). Texte et
   forme restent donc solidaires à n'importe quelle largeur d'écran — c'est
   ce qui manquait avant, où les px du texte débordaient des formes en %.
   ════════════════════════════════════════════════════════════════════ */

.commune-incubateur-rejoindre {
    /* Pleine largeur : le fond crème doit border à border, comme les autres
       blocs de section. Le contenu reste borné par -inner. */
    position: relative;
    z-index: 6;   /* cf. échelle d'empilement, plus haut */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    background: #FFFDE9;
    border-top: 1px solid #000;
    /* Bas uniquement : un padding-top décollerait l'onglet du filet */
    padding-bottom: 4rem;
    font-family: Poppins, sans-serif;
}

.commune-incubateur-rejoindre-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem;
    box-sizing: border-box;
}

/* Étiquette d'onglet — même gabarit que .commune-incubateur-concept-label,
   avec le fond crème du bloc pour que le trait se raccorde proprement. */
.commune-incubateur-rejoindre-label {
    position: relative;
    top: -31px;
    left: -1px;
    display: inline-block;
    color: #000;
    background: #FFFDE9;
    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: -31px;
}

.commune-incubateur-rejoindre-title {
    margin: 0 0 1.5rem !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;
}

.commune-incubateur-rejoindre-intro,
.commune-incubateur-rejoindre-intro p {
    color: #000 !important;
    font-family: Poppins, sans-serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: normal !important;
    margin: 0 0 2rem !important;
}

/* ── Le cadre du collage ── */
.commune-incubateur-rejoindre-collage {
    position: relative;
    width: 100%;
    /* Ratio du collage Figma : fige la hauteur, donc les % verticaux tiennent */
    aspect-ratio: 1900 / 1560;
}

/* ── Une bulle ── */
.commune-incubateur-bulle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--w);
    /* Unité de conteneur : le texte se mesure sur la largeur de la bulle */
    container-type: inline-size;
}

.commune-incubateur-bulle-shape {
    display: block;
    width: 100%;
    height: auto;
}

.commune-incubateur-bulle-text {
    position: absolute;
    left: var(--tx);
    top: var(--ty);
    width: var(--tw);
    margin: 0 !important;
    color: #000 !important;
    font-family: Basteleur, serif !important;
    font-style: normal !important;
    /*
       22px sur desktop (24px du Figma, réduits d'un cran à la demande).
       Le min() avec --fs (exprimé en cqw, donc en % de la largeur DE LA BULLE)
       prend le relais dès que la bulle rétrécit : sans lui, un corps figé à
       24px déborderait des formes sur écran étroit — exactement le défaut de
       l'ancienne version.
    */
    font-size: min(22px, var(--fs)) !important;
    font-weight: 400 !important;
    line-height: normal !important;
    text-align: center;
}

.commune-incubateur-rejoindre-mascot {
    position: absolute;
    left: 58%;
    top: 72%;
    width: 24%;
    height: auto;
}

/* ── CTA ── */
.commune-incubateur-rejoindre-cta-zone {
    text-align: center;
    margin-top: 1rem;
}

.commune-incubateur-rejoindre-cta-intro {
    margin: 0 0 1rem !important;
    color: #000 !important;
    font-family: Poppins, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
}

.commune-incubateur-rejoindre-cta,
.commune-incubateur-rejoindre-cta:link,
.commune-incubateur-rejoindre-cta:visited {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    background: #000;
    color: #fff !important;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.commune-incubateur-rejoindre-cta:hover {
    opacity: 0.8;
}

@media (max-width: 900px) {
    .commune-incubateur-rejoindre-inner {
        padding: 0 1.5rem;
    }
    /* 48px/64px déborderait sur mobile : on redescend d'un cran */
    .commune-incubateur-rejoindre-title {
        font-size: 32px !important;
        line-height: 42px !important;
    }
}

/*
   Sous 700px le collage devient illisible : les bulles s'empilent en colonne,
   chacune à sa taille naturelle. Les % de position sont neutralisés.
*/
@media (max-width: 700px) {
    .commune-incubateur-rejoindre-collage {
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .commune-incubateur-bulle {
        position: static;
        width: min(100%, 380px);
    }
    .commune-incubateur-bulle-text {
        position: absolute;
    }
    .commune-incubateur-rejoindre-mascot {
        position: static;
        width: 40%;
        margin: 0 auto;
    }
}



/*
   Décalage en cascade des onglets de section (desktop uniquement).
   Chaque onglet descend ET se décale vers la droite, jusqu'à celui des
   témoignages qui est aligné à droite. Le 2e bloc saisir est ciblé par sa
   couleur de fond inline — il n'a pas de classe propre, et c'est le repère
   déjà utilisé ailleurs dans ce fichier.
*/
@media (min-width: 900px) {
    .commune-incubateur-saisir[style*="#F3723C"] .commune-incubateur-saisir-label {
        left: 150px;
    }
    .commune-incubateur-concept-label {
        left: 330px;
    }
    /* Le bandeau porteur ajoute un retrait calculé qui varierait avec la
       largeur d'écran : on l'annule pour que le 510px soit exact. */
    .commune-incubateur-foodhall-label-row {
        padding-left: 0;
    }
    .commune-incubateur-foodhall-label {
        position: relative;
        left: 510px;
    }
    .commune-incubateur-rejoindre-label {
        left: 690px;
    }
}

/* ════════════════════════════════════════════════════════════════════
   BLOC — TÉMOIGNAGES [commune_temoignages] / [commune_temoignage]
   Fond à motif pleine largeur, onglet en haut à DROITE, cartes blanches
   avec une photo inclinée qui déborde du coin haut-droit.
   ════════════════════════════════════════════════════════════════════ */

/*
   Raccord avec la section précédente : on annule le padding-haut de notre row
   ET le padding-bas de celle d'avant (atteinte par :has(+ …), qui sélectionne
   un élément d'après son voisin suivant). Sans les deux, 72px de blanc
   subsistent et l'onglet flotte au lieu de chevaucher le bloc du dessus.
*/
.main-container .row-container .row-parent:has(.commune-temoignages) {
    padding-top: 0 !important;
}

.main-container .row-container:has(+ .row-container .commune-temoignages) .row-parent {
    padding-bottom: 0 !important;
}

.commune-temoignages {
    position: relative;
    z-index: 7;                       /* cf. échelle d'empilement des sections */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    border-top: 1px solid #000;
    background-color: #fff;
    /* Le motif fait toute la largeur de la section (elle-même en 100vw) : plus
       de raccord horizontal visible. Répétition verticale seulement, sinon le
       bas de la section reste blanc dès que les cartes s'allongent. */
    background-repeat: repeat-y;
    background-position: top center;
    background-size: 100% auto;
    padding-bottom: 120px;
    font-family: Poppins, sans-serif;
}

/* ── Onglet, aligné à DROITE (contrairement aux autres blocs) ── */
.commune-temoignages-label-row {
    display: flex;
    justify-content: flex-end;
    padding-right: max(4rem, calc((100vw - 1300px) / 2));
    /* Remonté de sa hauteur pour chevaucher la section précédente */
    position: relative;
    top: -31px;
    margin-bottom: -31px;
}

.commune-temoignages-label {
    display: inline-block;
    color: #000;
    /* Blanc : l'onglet se pose sur le fond à motif de sa propre section,
       pas sur le crème du bloc précédent. */
    background: #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;
}

/* ── Grille ── */
.commune-temoignages-grid {
    display: grid;
    grid-template-columns: repeat(var(--temoignages-columns, 4), 1fr);
    gap: 2rem;
    /* Rognage ICI et pas sur la section : les photos qui débordent à droite
       sont contenues (pas de scroll horizontal), mais l'onglet — qui remonte
       de 30px au-dessus de la section — reste visible, lui étant à l'extérieur
       de la grille. */
    overflow: hidden;
    /* Pas de max-width : la maquette occupe presque toute la largeur d'écran
       (cartes ~425px, marges ~30px). Un plafond à 1300px rétrécissait les
       colonnes et creusait les gouttières. */
    margin: 0 auto;
    padding: 140px 2rem 0;
    box-sizing: border-box;
}

/* ── Une carte ── */
.commune-temoignage {
    position: relative;
    /* La photo déborde en haut : rien ne doit la rogner */
    overflow: visible;
}

/*
   Empilement croissant vers la droite : chaque carte passe DEVANT la photo de
   sa voisine de gauche. Un z-index sur .commune-temoignage crée un contexte
   d'empilement, ce qui confine le z-index de la photo à sa propre carte —
   sans ça, la photo (positionnée) recouvrait la carte suivante, qui ne l'est
   pas et se peint donc plus bas.
*/
.commune-temoignage:nth-child(1) { z-index: 1; }
.commune-temoignage:nth-child(2) { z-index: 2; }
.commune-temoignage:nth-child(3) { z-index: 3; }
.commune-temoignage:nth-child(4) { z-index: 4; }
.commune-temoignage:nth-child(5) { z-index: 5; }
.commune-temoignage:nth-child(6) { z-index: 6; }
.commune-temoignage:nth-child(7) { z-index: 7; }
.commune-temoignage:nth-child(8) { z-index: 8; }

.commune-temoignage-card {
    background: #fff;
    border: 1px solid #000;
    border-radius: 24px;
    padding: 2.25rem 1.75rem;
    box-sizing: border-box;
    height: 100%;
}

/*
   Photo posée à cheval sur le coin haut-droit, en dehors du flux : sa hauteur
   ne pousse donc pas le texte vers le bas et les cartes d'une même rangée
   gardent leur alignement.
*/
.commune-temoignage-photo {
    position: absolute;
    /*
       Décalage en % de SA PROPRE hauteur, via translateY — pas en pixels.
       La hauteur de la photo suit la largeur de la carte ; un top fixe en px
       la faisait décoller du coin dès que la fenêtre rétrécissait. Avec -60%,
       son bas reste toujours à 40 % de sa hauteur sous le haut de la carte,
       donc entre le nom et le corps de texte, à toutes les tailles.

       L'angle arrive du PHP par --tilt : transform ne pouvant être déclarée
       qu'une fois, rotation et translation doivent être composées ici.
    */
    top: 0;
    transform: translateY(-60%) rotate(var(--tilt, 0deg));
    right: -9%;
    width: 30%;
    max-width: 150px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
    z-index: 2;
}

.commune-temoignage-name {
    margin: 0 0 1.75rem !important;
    color: #000 !important;
    font-family: Poppins, sans-serif !important;
    font-size: 26px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    /* Laisse la place à la photo : sans ça, un nom long passe dessous */
    max-width: 64%;
}

.commune-temoignage-text,
.commune-temoignage-text p {
    color: #000 !important;
    font-family: Poppins, sans-serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    margin: 0 !important;
}

/* Les 4 cartes restent côte à côte tant que la place le permet : le palier
   était à 1150px, au-dessus des fenêtres courantes, d'où le passage en 2×2. */
@media (max-width: 900px) {
    .commune-temoignages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5rem 2.5rem;
    }
}

@media (max-width: 600px) {
    .commune-temoignages-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .commune-temoignages-label-row {
        padding-right: 1.25rem;
    }
    .commune-temoignage-photo {
        right: -6%;
        width: 34%;
    }
    .commune-temoignage-name {
        font-size: 22px !important;
    }
}
