/* ============================================
   NOMADE CAMPER 2026 — Block Styles
   ============================================ */

/* --- Root padding fallback ---
   Les Global Styles utilisateur (BDD) peuvent écraser theme.json et
   définir --wp--style--root--padding-* en chaîne vide. On définit
   donc les variables WP directement à notre valeur, et on force le
   padding sur les blocs avec has-global-padding. */
:root {
    --nc-root-pad: clamp(16px, 4vw, 32px);
    --wp--style--root--padding-left: clamp(16px, 4vw, 32px);
    --wp--style--root--padding-right: clamp(16px, 4vw, 32px);
}
/* !important : les patterns Nomade Camper ont parfois des inline styles
   padding-left:0 / padding-right:0 sauvegardés en BDD via le Site Editor
   qui écrasent les valeurs. has-global-padding indique explicitement que
   le bloc DOIT avoir le padding root, donc on force. */
.has-global-padding {
    padding-left: var(--nc-root-pad) !important;
    padding-right: var(--nc-root-pad) !important;
}
/* Les blocs alignfull dans un parent has-global-padding doivent annuler ce padding */
.has-global-padding > .alignfull {
    margin-left: calc(var(--nc-root-pad) * -1);
    margin-right: calc(var(--nc-root-pad) * -1);
}

/* --- Buttons --- */
.wp-block-button.is-style-primary .wp-block-button__link {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    box-shadow: 0 6px 0 var(--wp--preset--color--primary-dark);
    border: none;
    transform: translateY(0);
    transition: transform .15s, box-shadow .15s;
}
.wp-block-button.is-style-primary .wp-block-button__link:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--wp--preset--color--primary-dark);
}
.wp-block-button.is-style-dark .wp-block-button__link {
    background: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white);
    border: none;
}
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--wp--preset--color--black);
    border: 2px solid var(--wp--preset--color--black);
}
.wp-block-button.is-style-outline-white .wp-block-button__link {
    background: transparent;
    color: var(--wp--preset--color--white);
    border: 2px solid var(--wp--preset--color--white);
    box-shadow: 0 5px 0 rgba(255, 255, 255, 0.35);
    transform: translateY(0);
    transition: transform .15s, box-shadow .15s;
}
.wp-block-button.is-style-outline-white .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(2px);
    box-shadow: 0 3px 0 rgba(255, 255, 255, 0.35);
}
.wp-block-button.is-style-white .wp-block-button__link {
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--black);
    border: none;
}

/* --- Eyebrow (avec tiret à gauche) --- */
.wp-block-paragraph.is-style-eyebrow {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.wp-block-paragraph.is-style-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--wp--preset--color--primary);
    flex-shrink: 0;
}

/* --- Meta (mono caps, sans tiret, alignement libre) ---
   Variante de eyebrow utilisable pour fil d'Ariane, sous-titres, etc.
   Pas de display:flex → l'alignement (gauche/centre/droite) du bloc fonctionne.
*/
p.is-style-meta,
.wp-block-paragraph.is-style-meta,
h1.is-style-meta, h2.is-style-meta, h3.is-style-meta,
h4.is-style-meta, h5.is-style-meta, h6.is-style-meta,
.wp-block-heading.is-style-meta {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary-dark);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* --- Image frame (équerres turquoise façon flyer) --- */
.wp-block-image.is-style-frame {
    position: relative;
    padding: 8px;
    /* La figure WP a parfois display: table; on force un block pour que les pseudo-éléments couvrent toute la zone */
    display: block;
}
.wp-block-image.is-style-frame img {
    border-radius: 0;
    display: block;
    width: 100%;
    height: auto;
}
/* Équerre haut-gauche */
.wp-block-image.is-style-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border-top: 3px solid var(--wp--preset--color--primary);
    border-left: 3px solid var(--wp--preset--color--primary);
    pointer-events: none;
}
/* Équerre bas-droite */
.wp-block-image.is-style-frame::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-bottom: 3px solid var(--wp--preset--color--primary);
    border-right: 3px solid var(--wp--preset--color--primary);
    pointer-events: none;
}

/* --- Script accent heading --- */
.wp-block-heading.is-style-script-accent {
    font-family: var(--wp--preset--font-family--script) !important;
    font-size: 150%;
    font-weight: 700;
    line-height: 0.9;
    color: var(--wp--preset--color--primary);
}

/* --- Checks list --- */
.wp-block-list.is-style-checks {
    list-style: none;
    padding-left: 0;
}
.wp-block-list.is-style-checks li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 8px;
}
.wp-block-list.is-style-checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--wp--preset--color--primary);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: cover;
}

/* --- Header bouton Réserver : padding réduit + nowrap --- */
.header-book-btn .wp-block-button__link {
    white-space: nowrap;
}
@media (max-width: 781px) {
    .header-book-btn .wp-block-button__link {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* --- Header réseaux sociaux : masqués sur mobile (manque de place) --- */
@media (max-width: 600px) {
    .header-socials {
        display: none !important;
    }
}

/* --- Menu mobile : overlay turquoise foncé avec liens blancs ---
   Force les couleurs même si le bloc Navigation a été customisé en BDD
   sans attributs overlayBackgroundColor/overlayTextColor. */
.wp-block-navigation__responsive-container.is-menu-open {
    background-color: var(--wp--preset--color--primary-dark) !important;
    color: var(--wp--preset--color--white) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-link__content,
.wp-block-navigation__responsive-container.is-menu-open a {
    color: var(--wp--preset--color--white) !important;
}
.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
    color: var(--wp--preset--color--white) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
    color: var(--wp--preset--color--white);
}

/* --- Header scroll state --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--wp--preset--color--primary-dark);
    transition: background .25s, box-shadow .25s;
}
.site-header.is-scrolled {
    background: rgba(30, 74, 82, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 32px;
    width: 100%;
}

/* --- Heading word-wrap --- */
.wp-block-heading {
    overflow-wrap: break-word;
    word-break: normal;
}

/* --- Why section cards — h3 trop grand en fluid, on plafonne à 20px --- */
#why .wp-block-column .wp-block-heading {
    font-size: 20px !important;
    line-height: 1.2;
}

/* ============================================
   BOOKING BAR — flottante, centrée sur la jonction
   ============================================ */

/* La carte sort du flux — top calculé par JS */
.nomade-booking-bar {
    position: absolute !important;
    left: 50vw !important;
    transform: translateX(-50%) !important;
    z-index: 2;
    width: min(var(--wp--style--global--wide-size, 1280px), calc(100vw - 32px)) !important;
    background: var(--wp--preset--color--white);
    border-radius: 20px;
    box-shadow: var(--wp--preset--shadow--float);
    padding: 28px 36px;
    /* Annuler le padding global de WP sur les constrained layouts */
    padding-left: 36px !important;
    padding-right: 36px !important;
}

/* Supprimer le gap entre sections dans le flux principal */
main.wp-block-group {
    --wp--style--block-gap: 0px;
}

.nomade-booking-bar__form {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.nomade-booking-bar__field {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nomade-booking-bar__field label {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary-dark);
    font-weight: 500;
}

.nomade-booking-bar__field input,
.nomade-booking-bar__field select {
    border: 1.5px solid var(--wp--preset--color--beige);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: var(--wp--preset--font-family--body);
    font-size: 15px;
    color: var(--wp--preset--color--black);
    background: var(--wp--preset--color--white);
    outline: none;
    transition: border-color .15s;
    width: 90%;
    cursor: pointer;
}

.nomade-booking-bar__field input:focus,
.nomade-booking-bar__field select:focus {
    border-color: var(--wp--preset--color--primary);
}

.nomade-booking-bar__form > button {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    font-family: var(--wp--preset--font-family--body);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 5px 0 var(--wp--preset--color--primary-dark);
    transform: translateY(0);
    transition: transform .15s, box-shadow .15s;
    flex-shrink: 0;
}

.nomade-booking-bar__form > button:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--wp--preset--color--primary-dark);
}

@media (max-width: 680px) {
    .nomade-booking-bar {
        border-radius: 16px;
        padding: 20px;
        margin-top: 0;
    }
    .nomade-booking-bar__form {
        flex-direction: column;
    }
    .nomade-booking-bar__field {
        width: 100%;
    }
    .nomade-booking-bar__form > button {
        width: 100%;
        text-align: center;
    }
}

/* --- Layout utilities --- */
.wp-site-blocks > * { margin-block: 0 !important; }

/* ============================================
   MOTOPRESS HOTEL BOOKING — habillage de la grille
   Cards des room types (caravanes) + bouton + détails
   ============================================ */

/* Grille responsive : flex centré, cards entre 280 et 400px */
.mphb_sc_rooms-wrapper.mphb-room-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none;
    max-width: 1100px;
}

/* Card individuelle */
.mphb_sc_rooms-wrapper .mphb-room-type {
    background: var(--wp--preset--color--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border: 2px solid #000;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    list-style: none;
    flex: 1 1 320px;
    max-width: 480px;
    min-width: 280px;
    /* Force le margin-top à 0 pour annuler la règle MotoPress
       `.mphb-room-type:not(:first-of-type) { margin-top: 4em }` */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.mphb_sc_rooms-wrapper .mphb-room-type:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #000;
}

/* Galerie en haut de card — neutralise flexslider et empile les slides
   en absolute, n'affiche que la première (non-clone). */
.mphb_sc_rooms-wrapper .mphb-room-type-images {
    margin: 0 !important;
    height: 240px !important;
    overflow: hidden !important;
    position: relative !important;
    background: var(--wp--preset--color--cream);
    /* Coins arrondis seulement en haut (la card a déjà overflow:hidden + radius 20px) */
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}
.mphb_sc_rooms-wrapper .mphb-room-type-images > *,
.mphb_sc_rooms-wrapper .mphb-room-type-images .flex-viewport,
.mphb_sc_rooms-wrapper .mphb-room-type-images .gallery-columns-1,
.mphb_sc_rooms-wrapper .mphb-gallery-main-slider,
.mphb_sc_rooms-wrapper .mphb-flexslider,
.mphb_sc_rooms-wrapper .mphb-room-type-gallery-wrapper {
    height: 240px !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}
.mphb_sc_rooms-wrapper .mphb-room-type-images ul {
    margin: 0 !important;
    padding: 0 !important;
    height: 240px !important;
    list-style: none;
    transform: none !important;
    width: 100% !important;
    position: relative !important;
}
/* Toutes les slides en absolute, empilées au top-left */
.mphb_sc_rooms-wrapper .mphb-room-type-images ul li {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    transform: none !important;
    width: 100% !important;
    height: 240px !important;
    opacity: 0;
    pointer-events: none;
    float: none !important;
}
/* On affiche le 1er gallery-item NON clone (donc l'image principale) */
.mphb_sc_rooms-wrapper .mphb-room-type-images ul li.gallery-item:not(.clone):first-of-type,
.mphb_sc_rooms-wrapper .mphb-room-type-images ul li:not(.clone):first-child {
    opacity: 1 !important;
    pointer-events: auto;
    z-index: 1;
}
/* Fallback : si tous les LI sont clones, on affiche le premier */
.mphb_sc_rooms-wrapper .mphb-room-type-images ul li:first-child {
    opacity: 1 !important;
    z-index: 0;
}
.mphb_sc_rooms-wrapper .mphb-room-type-images ul li:not(.clone) {
    z-index: 2 !important;
    opacity: 1 !important;
}
.mphb_sc_rooms-wrapper .mphb-room-type-images ul li:not(.clone) ~ li:not(.clone) {
    opacity: 0 !important;
}
.mphb_sc_rooms-wrapper .mphb-room-type-images ul li span,
.mphb_sc_rooms-wrapper .mphb-room-type-images ul li a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
.mphb_sc_rooms-wrapper .mphb-room-type-images img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    /* Coins arrondis sur l'image directement (en plus du clip parent) */
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}
/* Coins arrondis sur l'image elle-même (en plus du clip par le wrapper) */
/* Tue les <br> parasites injectés par wpautop dans la galerie */
.mphb_sc_rooms-wrapper .mphb-room-type-images br {
    display: none !important;
}
/* Cache les controls + thumbnails du flexslider */
.mphb_sc_rooms-wrapper .mphb-gallery-thumbnail-slider,
.mphb_sc_rooms-wrapper .mphb-gallery-thumbnails-slider,
.mphb_sc_rooms-wrapper .flex-control-nav,
.mphb_sc_rooms-wrapper .flex-direction-nav,
.mphb_sc_rooms-wrapper .flex-pauseplay {
    display: none !important;
}
/* Boutons de navigation flexslider — visibles seulement au hover */
.mphb_sc_rooms-wrapper .flex-direction-nav {
    opacity: 0;
    transition: opacity .25s ease;
}
.mphb_sc_rooms-wrapper .mphb-room-type:hover .flex-direction-nav {
    opacity: 1;
}
.mphb_sc_rooms-wrapper .flex-direction-nav a {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: var(--wp--preset--color--primary-dark);
    text-shadow: none;
    font-size: 0;
}

/* Bloc texte de la card — padding interne généreux */
.mphb_sc_rooms-wrapper .mphb-room-type > *:not(.mphb-room-type-images):not(.mphb-room-type-gallery) {
    padding-left: 28px;
    padding-right: 28px;
}
.mphb_sc_rooms-wrapper .mphb-room-type-title,
.mphb_sc_rooms-wrapper h2.mphb-room-type-title {
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(26px, 2.4vw, 32px);
    line-height: 1.05;
    margin: 28px 0 14px !important;
    color: var(--wp--preset--color--black);
}
.mphb_sc_rooms-wrapper .mphb-room-type-title a {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}
.mphb_sc_rooms-wrapper .mphb-room-type-title a:hover {
    color: var(--wp--preset--color--primary);
}

/* Description courte */
.mphb_sc_rooms-wrapper .mphb-room-type-excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.75);
    margin: 0 0 16px !important;
}

/* Titre "Détails" — masqué (l'eyebrow est implicite) */
.mphb_sc_rooms-wrapper .mphb-room-type-details-title {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary-dark);
    margin: 16px 0 8px !important;
    font-weight: 500;
}

/* Liste des attributs (capacité, taille, lit, etc.) */
.mphb_sc_rooms-wrapper .mphb-loop-room-type-attributes {
    list-style: none !important;
    padding: 0 28px !important;
    margin: 0 0 16px !important;
    font-size: 14px;
    line-height: 1.5;
}
.mphb_sc_rooms-wrapper .mphb-loop-room-type-attributes li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--wp--preset--color--cream);
    color: rgba(0, 0, 0, 0.8);
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}
.mphb_sc_rooms-wrapper .mphb-loop-room-type-attributes li:last-child {
    border-bottom: none;
}
.mphb_sc_rooms-wrapper .mphb-loop-room-type-attributes .mphb-attribute-title {
    font-weight: 600;
    color: var(--wp--preset--color--primary-dark);
    flex-shrink: 0;
}
.mphb_sc_rooms-wrapper .mphb-loop-room-type-attributes .mphb-attribute-value {
    color: rgba(0, 0, 0, 0.85);
    flex: 1;
    min-width: 0;
}
/* Tue les <br> parasites dans les attributs (qui forcent retour ligne) */
.mphb_sc_rooms-wrapper .mphb-loop-room-type-attributes br {
    display: none !important;
}
/* Trim les espaces autour des valeurs */
.mphb_sc_rooms-wrapper .mphb-loop-room-type-attributes .mphb-attribute-value {
    white-space: normal;
}

/* Prix */
.mphb_sc_rooms-wrapper .mphb-room-type-price,
.mphb_sc_rooms-wrapper .mphb-price {
    font-family: var(--wp--preset--font-family--display);
    font-size: 22px;
    color: var(--wp--preset--color--primary);
    margin: 8px 0;
    line-height: 1;
}

/* "Voir les détails" — lien discret */
.mphb_sc_rooms-wrapper .mphb-view-details-button-wrapper {
    margin: 0 24px 8px !important;
    font-size: 14px;
}
.mphb_sc_rooms-wrapper .mphb-view-details-button-wrapper a {
    color: var(--wp--preset--color--primary-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mphb_sc_rooms-wrapper .mphb-view-details-button-wrapper a:hover {
    color: var(--wp--preset--color--primary);
}

/* Bouton "Réserver" — wrapper + bouton stylé primary */
.mphb_sc_rooms-wrapper .mphb-to-book-btn-wrapper {
    margin: auto 24px 24px !important;
    padding-top: 8px;
}
.mphb_sc_rooms-wrapper .mphb-to-book-btn-wrapper button,
.mphb_sc_rooms-wrapper .mphb-to-book-btn-wrapper .mphb-book-button,
.mphb_sc_rooms-wrapper button.mphb-book-button,
.mphb_sc_rooms-wrapper a.mphb-button {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    font-family: var(--wp--preset--font-family--body);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 5px 0 var(--wp--preset--color--primary-dark);
    transform: translateY(0);
    transition: transform .15s, box-shadow .15s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    width: auto;
    line-height: 1;
}
.mphb_sc_rooms-wrapper .mphb-to-book-btn-wrapper button:hover,
.mphb_sc_rooms-wrapper button.mphb-book-button:hover,
.mphb_sc_rooms-wrapper a.mphb-button:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--wp--preset--color--primary-dark);
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

/* Cache les éléments parasites (anciens markup MotoPress) */
.mphb_sc_rooms-wrapper .screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================
   ROOM SINGLE — page détail d'une caravane
   Galerie en grille à gauche, infos à droite, description full,
   booking form en card crème en bas.
   ============================================ */

/* Galerie : 1 grande image + grille 2 colonnes pour les suivantes */
.nc-room-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
    gap: 12px;
    margin: 0;
}
.nc-room-gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--wp--preset--color--cream);
}
.nc-room-gallery__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform .3s ease;
}
.nc-room-gallery__item:hover .nc-room-gallery__img {
    transform: scale(1.04);
}
/* Première image en grand (span 2 colonnes + 2 rangées) */
.nc-room-gallery__item--0 {
    grid-column: 1 / -1;
    grid-row: span 2;
    border-radius: 18px;
}
/* Si pas d'item 0 mais on a moins de 4 photos, layout simplifié */
.nc-room-gallery[data-count="1"] {
    grid-template-columns: 1fr;
    grid-auto-rows: 360px;
}
.nc-room-gallery[data-count="2"] .nc-room-gallery__item--0,
.nc-room-gallery[data-count="3"] .nc-room-gallery__item--0 {
    grid-row: span 1;
}

@media (max-width: 781px) {
    .nc-room-gallery {
        grid-auto-rows: 160px;
        gap: 8px;
    }
    .nc-room-gallery__item--0 {
        grid-row: span 2;
    }
}

/* Bloc Détails (meta : voyageurs, surface, lit, vue) */
.nc-room-meta {
    margin: 0 0 16px;
    padding: 0;
    border-top: 1px dashed var(--wp--preset--color--cream);
}
.nc-room-meta__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--wp--preset--color--cream);
    align-items: baseline;
}
.nc-room-meta dt {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary-dark);
    flex-shrink: 0;
    margin: 0;
}
.nc-room-meta dd {
    margin: 0;
    color: rgba(0, 0, 0, 0.85);
    text-align: right;
    flex: 1;
}

/* Liste des équipements (facilities) en pills */
.nc-room-facilities {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.nc-room-facilities__item {
    display: inline-block;
    padding: 8px 18px;
    background: var(--wp--preset--color--cream);
    color: var(--wp--preset--color--primary-dark);
    border-radius: 999px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    list-style: none;
}

/* Page single — header titre, padding réduit pour pas surcharger */
.nc-room-single .wp-block-post-title {
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    margin: 0 0 12px;
    color: var(--wp--preset--color--primary-dark);
}

/* Description du room type (post_content) — texte généreux */
.nc-room-single__description {
    font-size: 28px;
    line-height: 1.5;
}
.nc-room-single__description ul,
.nc-room-single__description ol {
    padding-left: 1.4em;
}
.nc-room-single__description li {
    margin-bottom: 12px;
}

/* Largeur fiche élargie (override le wide-size par défaut pour cette page) */
.nc-room-single .alignwide {
    max-width: min(1500px, calc(100vw - 32px));
    margin-left: auto;
    margin-right: auto;
}
/* La description et le bloc booking en wide → leur contenu interne occupe toute la largeur */
.nc-room-single__description > *,
.nc-room-single__description .wp-block-post-content,
.nc-room-single__description .wp-block-post-content > * {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ============================================
   BOOKING FORM — formulaire MotoPress sur une ligne
   ============================================ */
.nc-room-single__booking .mphb_sc_booking_form-wrapper {
    max-width: 100%;
}
.nc-room-single__booking .mphb-booking-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin: 0;
    max-width: none;
}
/* Tous les enfants : pas de margin, et par défaut on ne prend pas de place */
.nc-room-single__booking .mphb-booking-form > * {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}
/* Wrappers de dates (input.mphb-datepick) : flex grow, base 160px */
.nc-room-single__booking .mphb-check-in-date-wrapper,
.nc-room-single__booking .mphb-check-out-date-wrapper {
    flex: 1 1 160px;
    max-width: 220px;
}
/* Wrappers de capacité (selects) : plus compacts */
.nc-room-single__booking .mphb-adults-wrapper,
.nc-room-single__booking .mphb-children-wrapper,
.nc-room-single__booking .mphb-capacity-wrapper {
    flex: 1 1 110px;
    max-width: 150px;
}
/* Bouton : ne grandit pas, alignement bottom */
.nc-room-single__booking .mphb-reserve-btn-wrapper {
    flex: 0 0 auto !important;
    margin-left: auto;
}
/* Cache tout ce qui n'est pas un wrapper utile (tip, p vides, errors,
   wrappers de capacité sans select — ex: Enfants quand max=0) */
.nc-room-single__booking .mphb-required-fields-tip,
.nc-room-single__booking .mphb-errors-wrapper,
.nc-room-single__booking .mphb-booking-form > p:empty,
.nc-room-single__booking .mphb-booking-form > p:not([class]),
.nc-room-single__booking .mphb-booking-form > p[class=""],
.nc-room-single__booking .mphb-booking-form > p:not(:has(input.mphb-datepick, input[type="date"], input[type="submit"], input.mphb-reserve-btn, select, button)) {
    display: none !important;
}
/* Tue TOUS les <br> du form (MotoPress en met partout entre label et input) */
.nc-room-single__booking .mphb-booking-form br,
.nc-room-single__booking .mphb-booking-form label br,
.mphb_sc_booking_form-wrapper br {
    display: none !important;
}
/* Labels en mono caps (style cohérent avec eyebrow) */
.nc-room-single__booking .mphb-booking-form label {
    display: block;
    font-family: var(--wp--preset--font-family--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary-dark);
    margin-bottom: 6px;
    font-weight: 500;
}
.nc-room-single__booking input[type="text"],
.nc-room-single__booking input[type="number"],
.nc-room-single__booking input[type="date"],
.nc-room-single__booking input.mphb-datepick,
.nc-room-single__booking select {
    background: var(--wp--preset--color--white);
    border: 1.5px solid var(--wp--preset--color--cream);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: var(--wp--preset--font-family--body);
    font-size: 16px;
    color: var(--wp--preset--color--black);
    width: 90%;
    max-width: 100%;
}
.nc-room-single__booking input.mphb-datepick:focus,
.nc-room-single__booking select:focus {
    border-color: var(--wp--preset--color--primary);
    outline: none;
}
.nc-room-single__booking button[type="submit"],
.nc-room-single__booking input[type="submit"],
.nc-room-single__booking .mphb-reserve-btn {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    font-family: var(--wp--preset--font-family--body);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 0 var(--wp--preset--color--primary-dark);
    width: auto;
}
.nc-room-single__booking input[type="submit"]:hover,
.nc-room-single__booking button[type="submit"]:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--wp--preset--color--primary-dark);
}

/* ============================================
   PAGE CONTENT — bordure turquoise en bas + caravane en débord
   (esprit flyer page 2 : la caravane est posée sur la séparation
   entre le contenu et le footer/CTA, alignée à gauche du wide width)
   ============================================ */
.nc-page-content {
    position: relative;
    /* La bordure-bottom turquoise est définie par les attributes du bloc Group
       (border.bottom dans le template) — pas besoin ici */
}

/* La caravane se positionne en absolu en bas-gauche du group contenu,
   alignée sur le bord gauche du wide-width. */
.wp-block-image.nc-page-vehicule {
    position: absolute;
    bottom: -18px;
    /* Cale sur le bord gauche du wide-width quand viewport > wide ; sinon collée à 0 */
    left: max(
        var(--wp--style--root--padding-left, 16px),
        calc((100% - var(--wp--style--global--wide-size, 1280px)) / 2)
    );
    width: 220px;
    max-width: 30vw;
    margin: 0 !important;
    z-index: 2;
    pointer-events: none;
}
.wp-block-image.nc-page-vehicule img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 781px) {
    .wp-block-image.nc-page-vehicule {
        width: 140px;
        max-width: 35vw;
        bottom: 30px;
    }
}

/* Évite les scrollbars horizontales si la caravane dépasse à gauche */
body { overflow-x: hidden; }

/* ============================================
   PAGE HEADER — habillage titre des pages normales
   ============================================ */
.nc-page-header {
    /* L'image bg-papier-2 est en fond + overlay gradient géré par le bloc Cover */
    position: relative;
}
.nc-page-header .wp-block-cover__image-background {
    object-fit: cover;
    /* Texture papier visible mais discrète */
    opacity: 0.7;
    mix-blend-mode: multiply;
}
.nc-page-header .wp-block-post-title {
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
    letter-spacing: 0.005em;
    color: var(--wp--preset--color--primary-dark);
    margin: 8px 0 16px;
}
.nc-page-header .is-style-eyebrow {
    color: var(--wp--preset--color--primary-dark);
    opacity: 0.7;
}
.nc-page-header__zigzag {
    display: block;
    margin: 12px auto 0;
}

/* Breadcrumbs SEOPress dans le page-header */
.nc-page-header #seopress-bc,
.nc-page-header .seopress-breadcrumbs,
.nc-page-header .breadcrumb {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--primary-dark);
    opacity: 0.65;
    text-align: center;
    margin-top: 18px;
    line-height: 1.6;
}
.nc-page-header #seopress-bc a,
.nc-page-header .seopress-breadcrumbs a,
.nc-page-header .breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: opacity .15s, color .15s;
}
.nc-page-header #seopress-bc a:hover,
.nc-page-header .seopress-breadcrumbs a:hover,
.nc-page-header .breadcrumb a:hover {
    color: var(--wp--preset--color--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* Séparateur — SEOPress encadre le séparateur dans un <span> entre items */
.nc-page-header #seopress-bc > span + span:not(:has(a)):not(.current),
.nc-page-header .seopress-breadcrumbs > span + span:not(:has(a)):not(.current) {
    margin: 0 6px;
    opacity: 0.5;
}

/* ============================================
   HERO VISUAL — disque flottant + badges
   ============================================ */

.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin-left: auto;
}
.hero-visual .disc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--wp--preset--color--primary-light);
    border: 3px solid #000;
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.2);
}
.hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    top: -55px;
}
.hero-visual .sparkle {
    position: absolute;
    font-family: var(--wp--preset--font-family--script);
    font-size: 44px;
    font-weight: 700;
    color: var(--wp--preset--color--accent);
    transform: rotate(-8deg);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
    pointer-events: none;
    line-height: 1;
}
.hero-visual .sparkle.one { top: -4%;  right: -2%; }
.hero-visual .sparkle.two { bottom: 6%; left: -6%; transform: rotate(6deg); }

.hero-badge {
    position: absolute;
    background: #fff;
    color: #000;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 6px 6px 0 #000;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.hero-badge .ico {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--wp--preset--color--primary);
    color: #fff;
    flex-shrink: 0;
}
.hero-badge.b1 { top: 8%;    left: -24px;  transform: rotate(-4deg); }
.hero-badge.b2 { bottom: 14%; right: -28px; transform: rotate(3deg);
                 background: var(--wp--preset--color--accent); }
.hero-badge.b2 .ico { background: #000; }

@keyframes nc-floaty {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.floaty       { animation: nc-floaty 4s ease-in-out infinite; }
.floaty.delay { animation-delay: 1.2s; }

@media (max-width: 781px) {
    .hero-visual { max-width: 340px; margin-left: auto; margin-right: auto; }
    .hero-visual .sparkle { font-size: 30px; }
    .hero-badge { font-size: 11px; padding: 7px 12px; }
    .hero-badge.b1 { left: 0; }
    .hero-badge.b2 { right: 0; }
}

/* ============================================
   GLASSMORPHISME — is-style-glassmorphism
   Appliqué sur un bloc Groupe via l'éditeur
   ============================================ */
.wp-block-group.is-style-glassmorphism {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background .2s ease, border-color .2s ease;
}
.wp-block-group.is-style-glassmorphism:hover {
    background: rgba(255, 255, 255, 0.13) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
}

/* ============================================
   WHY SECTION — numéro + icône
   ============================================ */
.nc-why-num {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 13px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 20px;
}

.nc-why-ico {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wp--preset--color--accent);
    border: 2px solid #000;
    box-shadow: 4px 4px 0 #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #000;
    flex-shrink: 0;
}

/* ============================================
   TILT — is-style-tilt
   Appliqué sur un Paragraphe ou Heading via l'éditeur
   Note : WP ne met pas .wp-block-paragraph sur le <p> en front,
   on cible donc le tag directement + la classe éditeur.
   ============================================ */
p.is-style-tilt,
.wp-block-paragraph.is-style-tilt,
h1.is-style-tilt, h2.is-style-tilt, h3.is-style-tilt,
h4.is-style-tilt, h5.is-style-tilt, h6.is-style-tilt,
.wp-block-heading.is-style-tilt {
    transform: rotate(-2deg);
    transform-origin: center center;
    display: block;
}
