/* -----------------------------------------------------------------------------
 * Typographie & base
 * -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* Police de marque « Span » (locale, déposée dans public/fonts/).
 * Chemins relatifs au CSS : /eshop-themes/rental2026/css/ → ../fonts/. woff2 prioritaire, woff en repli. */
@font-face {
    font-family: 'Span';
    src: url('../fonts/SpanLight/font.woff2') format('woff2'),
         url('../fonts/SpanLight/font.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Span';
    src: url('../fonts/SpanLightItalic/font.woff2') format('woff2'),
         url('../fonts/SpanLightItalic/font.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Span';
    src: url('../fonts/SpanRegular/font.woff2') format('woff2'),
         url('../fonts/SpanRegular/font.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Span';
    src: url('../fonts/SpanItalic/font.woff2') format('woff2'),
         url('../fonts/SpanItalic/font.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Span';
    src: url('../fonts/SpanBold/font.woff2') format('woff2'),
         url('../fonts/SpanBold/font.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Span';
    src: url('../fonts/SpanBoldItalic/font.woff2') format('woff2'),
         url('../fonts/SpanBoldItalic/font.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

body,
body *,
body *::before,
body *::after {
    font-family: "Work Sans", sans-serif !important;
}

body {
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 2%;
    font-size: 15px;
    color: var(--bs-dark);
}

/* -----------------------------------------------------------------------------
 * Background
 * -------------------------------------------------------------------------- */
.bg-gray-50, .product-item-section{
    background-color: #fdfbfa !important;
}

/* -----------------------------------------------------------------------------
 * Coins carrés partout (design Bocage)
 * Le thème force des radius en !important , parfois à forte spécificité
 * (ex. `.auth-card .registration-form button.btn[type="submit"]` = 0,4,1) qu'une
 * règle de classe simple ne peut pas battre. On scope donc sous les wrappers de
 * page (#…-wrapper) : la spécificité niveau ID (1,x,y) l'emporte sur tout
 * sélecteur de classes du thème. Cercles (.rounded-circle) et radios préservés.
 * -------------------------------------------------------------------------- */
/*
:is(.theme-rental2026)
  :is(.btn, .card, .card-img, .card-img-top, .card-img-bottom,
      .form-control, .form-select, .input-group, .input-group-text,
      .form-check-input:not([type="radio"]),
      .dropdown-menu, .dropdown-item, .modal-content, .alert, .toast,
      .popover, .tooltip-inner, .list-group, .list-group-item,
      .badge, .page-link, .nav-pills .nav-link, .progress, .form-range,
      [class*="rounded"]:not(.rounded-circle)) {
    border-radius: 0 !important;
}
*/
/* -----------------------------------------------------------------------------
 * Buttons
 * -------------------------------------------------------------------------- */
:is(.theme-rental2026, [data-gjs-type])
    .btn:not(.rental2026-icon-btn){
        border-radius: 0 !important;
        text-transform: uppercase;
        letter-spacing: 10%;
        font-weight: 500;
    }
:is(.btn, .btn-md):not(.rental2026-icon-btn){
    padding: .25rem 1rem !important;
}
:is(.btn.btn-sm){
    padding: .15rem .85rem !important;
}
:is(.btn.btn-lg){
    padding: .35rem 1.25rem !important;
}

body#account.theme-rental2026 .account-page .btn{
    text-transform: none;
    letter-spacing: normal;
}


/* -----------------------------------------------------------------------------
 * Titres
 * -------------------------------------------------------------------------- */
[class*="section"] :is(h1, h2, h3, h4, .placeholder-title),
[class*="section"] :is(h1, h2, h3, h4, .placeholder-title) *,
.category-title-block .page-heading,
[id="cms"] :is(h1, h2, h3, h4),
[id="cms"] :is(h1, h2, h3, h4) *,
.contact-hero-title,
.contact-form-title{
    text-transform: uppercase;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 1%;
    font-family: 'Span', Georgia, sans-serif !important;
}
.last-word-gradient{
    -webkit-text-fill-color: inherit !important;
}

/* -----------------------------------------------------------------------------
 * Méga sous-menu Bocage — bloc custom-header UNIQUEMENT. Classes DÉDIÉES cheader-*
 * (aucune réutilisation de .mega-menu / .dropdown-menu du thème → zéro conflit avec
 * le bloc mega-menu-header). Pleine largeur, ouvert au survol, flush sous le header.
 * -------------------------------------------------------------------------- */
.custom-header .cheader-has-mega { position: static; }   /* offset parent = .navbar → pleine largeur */

.custom-header .cheader-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;                 /* flush sous la barre header : aucun espace */
    margin: 0;
    z-index: 1031;             /* au-dessus du header sticky (1030) */
    display: none;
    background: #fff;          /* fond blanc (demande client) */
    border-top: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 14px 22px rgba(0, 0, 0, .05);
    padding: 1.25rem 0 2.25rem;
}
/* Pont invisible : couvre le padding du header pour ne pas perdre le survol entre lien et panneau */
.custom-header .cheader-mega::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -2rem;
    height: 2rem;
}
.custom-header .cheader-has-mega:hover > .cheader-mega { display: block; }
/* Builder (RENTAL-6878) : la barre d'outils GrapesJS (.gjs-toolbar, roue de config) est hors de l'iframe du
 * canvas, la survoler fait perdre :hover. Le panneau reste ouvert tant qu'il contient l'élément sélectionné
 * (gjs-selected, classe du builder seulement). Règle à part : sans :has(), seule elle est ignorée. */
.custom-header .cheader-mega:has(.gjs-selected) { display: block; }

/* Liens du menu plat + typo spéciale (1er = titre, dernier = « voir tout ») */
.custom-header .cheader-mega-link {
    padding: .35rem 0;
    font-weight: 300;
}
.custom-header .navbar-nav .nav-item .nav-link:hover,
.custom-header .cheader-mega-link:hover{ opacity: .8; }
.custom-header .cheader-mega-link--title {
    font-size: 1.25rem;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 400;
    margin-bottom: -.1rem;
}

/* 2 visuels (placeholders builder placeholder-img-square) — cadrés via le wrapper */
.custom-header .cheader-mega-img { width: 260px; height: 320px; overflow: hidden; }
.custom-header .cheader-mega-img img { width: 100% !important; height: 100% !important; object-fit: cover; }
/* RENTAL-6878 : titre superposé en bas à droite (+ flèche si lien), dégradé sombre pour la lisibilité */
.custom-header .cheader-mega-img-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 3rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0));
    color: #fff;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.4;
    pointer-events: none;
}
.custom-header .cheader-mega-img-title .bi {
    display: inline-block;
    margin-left: .6em;
    font-size: 1.15em;
    vertical-align: -.1em;
    transition: transform .2s ease;
}
.custom-header .cheader-mega-img-link:hover .cheader-mega-img-title .bi { transform: translateX(.25rem); }

/* -----------------------------------------------------------------------------
 * Menu MOBILE (offcanvas) — classes dédiées cheader-mobile-*
 * Parents en uppercase, sous-menus verticaux (accordéon Bootstrap collapse),
 * bouton CTA pleine largeur (même bloc `button` que desktop, élargi ici seulement).
 * -------------------------------------------------------------------------- */
/* Offcanvas plein écran (menu en haut, CTA en bas via mt-auto). Sur le FRONT,
 * mobile-menu.js fixe top/height en inline !important (prioritaire → calé sous le
 * header). Ce fallback couvre le canvas builder, où ce JS ne tourne pas : sans lui
 * l'offcanvas retombe en feuille à hauteur de contenu collée en bas (menu près du CTA). */
.custom-header .offcanvasNavbar.offcanvas-bottom { height: 100dvh; }
.custom-header .offcanvasNavbar .offcanvas-body { min-height: 0; }

.custom-header .cheader-mobile-menu { padding: 1rem 1.25rem 0; }
.custom-header .cheader-mobile-parent {
    padding: .85rem 0;
    font-weight: 500;
    letter-spacing: .03em;
}
.custom-header .cheader-mobile-sub { padding: 0 0 .5rem 1rem; }
.custom-header .cheader-mobile-sub .cheader-mega-link { padding: .45rem 0; }
.custom-header .cheader-mobile-footlink { padding: .5rem 0; font-weight: 500; letter-spacing: .03em; }
.custom-header .cheader-mobile-cta .btn { display: flex; width: 100%; justify-content: center; }

/* Compte CONNECTÉ : pastille de validation sur l'icône + prénom. La pastille est ancrée sur
 * `.mmh-ico` (et non sur le bouton) pour rester collée à l'icône quand le prénom élargit
 * celui-ci. Dimensions en px : `.rental2026-icon-btn` passe à 48px en mobile mais l'icône
 * reste à 1rem (la règle du thème vise `i`, pas ce `span`), donc un em serait trompeur. */
.custom-header .cheader-account-check {
    position: absolute;
    right: -3px;
    bottom: -2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    /* Détoure la pastille là où elle mord sur l'épaule du personnage. Suit le fond par
     * défaut du header (light) ; à revoir si le bloc reçoit un fond sombre en BO. */
    box-shadow: 0 0 0 1.5px var(--bs-light);
}
.custom-header .cheader-account-check::after {
    content: '';
    position: absolute;
    /* Centre l'encre du signe, pas sa boîte : après rotation le trait se décale vers le
     * bas-droite de sa propre boîte, d'où le demi-pixel à gauche et le 2px en haut. */
    left: 3.5px;
    top: 2px;
    width: 2px;
    height: 4px;
    border: solid #fff;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}

/* Le bouton est carré et figé à 40px : il ne peut s'élargir que là où le prénom s'affiche,
 * d'où la même borne (xl) que la classe `d-xl-inline` du markup. Ailleurs il reste carré et
 * les trois icônes gardent leur alignement. L'élargissement vient du seul `width: auto` ;
 * le padding reste celui de `.rental2026-icon-btn` (.5rem), identique à l'état carré. */
@media (min-width: 1200px) {
    .custom-header .cheader-account--logged {
        width: auto !important;
        gap: .4rem;
    }
}
.custom-header .cheader-account-name {
    font-size: .75rem;
    /* Pas `line-height: 1` : la boîte ferait 12px pour une zone de contenu Work Sans de
     * ~14px, et `overflow: hidden` raboterait les accents des capitales (É) et les
     * jambages. 16,8px reste sous les 24px utiles du bouton, sa hauteur ne bouge pas. */
    line-height: 1.4;
    /* Un prénom long ne doit pas pousser le logo, centré en absolu. */
    max-width: 9ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* -----------------------------------------------------------------------------
 * Newsletter Bocage — bloc custom-newsletter (classes dédiées cnl-*).
 * Pleine largeur : visuel à gauche, contenu (titre + champ + RGPD) à droite.
 * -------------------------------------------------------------------------- */
.custom-newsletter-section.newsletter-section { padding: 0; }      /* flush, pleine largeur */

/* Visuel gauche : l'image couvre toute la colonne (object-fit). NE PAS toucher la
 * largeur de .cnl-media (colonne col-lg-6) sinon la grille casse — cibler picture/img. */
.custom-newsletter-section .cnl-media { min-height: 520px; }
.custom-newsletter-section .cnl-media picture,
.custom-newsletter-section .cnl-media img { display: block; width: 100%; height: 100%; }
.custom-newsletter-section .cnl-media img { object-fit: cover; }

/* Champ e-mail souligné minimaliste + bouton OK inline */
.custom-newsletter-section .cnl-field {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--bs-secondary);
}
.custom-newsletter-section .cnl-input {
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    padding: .5rem 0 !important;
    box-shadow: none !important;
}
.custom-newsletter-section .cnl-input::placeholder {
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--bs-secondary);
    opacity: 1;
}
.custom-newsletter-section .cnl-field .cnl-submit {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: .5rem 0 !important;
    color: var(--bs-secondary);
    font-weight: 600;
}

/* Messages d'erreur de validation : le champ minimaliste imbrique l'input dans
 * .cnl-field, donc le sélecteur Bootstrap `.is-invalid ~ .invalid-feedback` ne
 * matche pas. displayFormErrors() (utils/forms.js) remplit le .invalid-feedback
 * via .html() → on l'affiche dès qu'il a du contenu, et on passe le trait en rouge. */
.custom-newsletter-section .cnl-form .invalid-feedback:not(:empty) { display: block; }
.custom-newsletter-section .cnl-field:has(.is-invalid) { border-bottom-color: var(--bs-danger); }

/* Texte RGPD */
.custom-newsletter-section .cnl-consent {
    line-height: 1.5;
    opacity: .7;
    color: var(--bs-secondary);
}
.custom-newsletter-section .cnl-consent p{ margin: 0; }
.custom-newsletter-section .cnl-consent a { color: inherit; text-decoration: underline; }

/* Mobile : visuel au-dessus, hauteur réduite */
@media (max-width: 991.98px) {
    .custom-newsletter-section .cnl-media { min-height: 300px; }
}


/* -----------------------------------------------------------------------------
 * Bandeau double Bocage — bloc custom-big-banner (classes dédiées cbb-*).
 * 2 visuels (gauche/droite desktop, empilés mobile) + contenu centré + watermark.
 * Positionnement 100% Bootstrap (position-absolute/top-50/start-50/translate-middle) :
 * ce CSS se limite au cadrage des visuels, au retrait des lignes impaires et au watermark.
 * -------------------------------------------------------------------------- */
/* Hauteur plafonnée (pas de min) : l'image garde sa hauteur naturelle, limitée à
 * --cbb-h en desktop → les visuels trop grands sont rognés (cover), les petits non forcés. */
.custom-big-banner-section .cbb-media picture { display: block; }
.custom-big-banner-section .cbb-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: var(--cbb-h, 800px);   /* plafond réglable (desktop) ; le @media mobile l'écrase */
    object-fit: cover;
}

/* Titre : taille responsive (1 règle clamp plutôt que des classes fs par breakpoint) ;
 * chaque ligne reste intacte (l'admin maîtrise les sauts via « | »). */
.custom-big-banner-section .cbb-title { font-size: clamp(2rem, 4.2vw, 3.6rem); text-wrap: nowrap; }
/* Titre en escalier : retrait positif des lignes paires (2, 4, 6) du placeholder-title.
 * Chaque ligne doit être un bloc (paragraphe) dans l'éditeur pour être ciblée. */
.custom-big-banner-section .cbb-title :is(p, div):nth-child(even) { margin-inline-start: 5rem; }

@media (max-width: 991.98px) {
    .custom-big-banner-section .cbb-media img { max-height: 50vh; }   /* mobile : plafond fixe, indépendant du réglage desktop */
    .custom-big-banner-section .btn p:first-child > span:first-child{ display: none; } /* mobile : masquer le "collection" contenu dans un <span> */
    /*.custom-big-banner-section .btn{ padding-left: 3rem !important; padding-right: 3rem !important; }*/
    .custom-big-banner-section .cbb-button{ flex-grow: 1; }
    .custom-big-banner-section .btn{
        display: block !important;
        width: 100%;
    }
}


/* -----------------------------------------------------------------------------
 * Concept Bocage — bloc custom-concept (classes ccpt-*). */
.custom-concept-section .ccpt-img img { height: 150px; width: auto; max-width: 100%; object-fit: contain; }
.custom-concept-section.ccpt-colored *:not(.btn):not(.btn *) { color: inherit !important; }
.custom-concept-section .ccpt-text .text-xs{ opacity: .7; }


/* -----------------------------------------------------------------------------
 * Liste de produits Bocage — bloc custom-product-list (classes cpl-*).
 * Piste = flex + scroll natif sur le MÊME élément (.cpl-track, comme .rv-track de reviews)
 * → défile sans JS (swipe tactile mobile + fallback builder BO). Le <script nonce> du bloc
 * ajoute flèches, barre et drag souris (desktop), sur le front ET dans l'aperçu builder. */
.custom-product-list-section { --cpl-gap: 1.5rem; }
.custom-product-list-section .cpl-track {
    display: flex;
    gap: var(--cpl-gap);
    overflow-x: auto;
    scroll-snap-type: x proximity;  /* proximity (pas mandatory) : snap doux, n'entrave pas le scrollBy programmatique des flèches */
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* Edge legacy */
    cursor: grab;                   /* indique que le drag souris est possible (desktop) */
    /* pas de scroll-behavior: smooth → l'animation des flèches est gérée par le script du bloc
     * (scrollBy behavior:'smooth') ; le double-smooth CSS+JS bloquait le scroll programmatique. */
}
.custom-product-list-section .cpl-track::-webkit-scrollbar { display: none; }   /* Chrome/Safari */
/* Pendant le drag souris : curseur fermé, pas de snap (évite les saccades), pas de sélection de texte. */
.custom-product-list-section .cpl-track.cpl-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }

/* Builder BO (.cpl-bo, ajouté en phpb_in_editmode) : on remplace le slider JS par une simple
 * scrollbar native visible (scroll fiable, sans dépendre du JS et sans gêner l'édition GrapesJS).
 * Flèches/barre masquées (le script ne s'initialise pas en BO). */
.custom-product-list-section.cpl-bo .cpl-track {
    scrollbar-width: auto;          /* Firefox : réaffiche la scrollbar */
    -ms-overflow-style: auto;
    cursor: default;
    scroll-snap-type: none;
}
.custom-product-list-section.cpl-bo .cpl-track::-webkit-scrollbar { display: block; height: 8px; }
.custom-product-list-section.cpl-bo .cpl-track::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .25); border-radius: 4px; }
.custom-product-list-section.cpl-bo .cpl-controls { display: none !important; }   /* bat le .d-flex (!important) du markup */
/* Largeur fixe robuste : fallback var(--cpl-cols, 4) si le style inline est perdu dans le
 * builder → les items gardent une largeur → débordent → scroll natif garanti (sinon les N
 * produits s'étalaient sur une ligne sans slider). Mobile : peek du produit suivant. */
.custom-product-list-section .cpl-item {
    flex: 0 0 80%;
    scroll-snap-align: start;
}
@media (min-width: 768px) {
    .custom-product-list-section .cpl-item {
        flex: 0 0 calc((100% - (var(--cpl-cols, 4) - 1) * var(--cpl-gap)) / var(--cpl-cols, 4));
    }
}
/* Contrôles du slider */
.custom-product-list-section .cpl-arrow {
    flex: 0 0 auto; background: transparent; border: 0; padding: 0;
    font-size: 1.25rem; line-height: 1; color: var(--bs-secondary); cursor: pointer;
}
.custom-product-list-section .cpl-progress { height: 1px; background: rgba(0, 0, 0, .15); }
.custom-product-list-section .cpl-progress-bar { display: block; height: 100%; background: var(--bs-secondary); }

/* -----------------------------------------------------------------------------
 * Catégories Bocage — bloc custom-category-list (classes ccl-*).
 * Même mécanique slider que custom-product-list (piste flex + scroll natif, swipe tactile +
 * fallback builder BO ; <script nonce> du bloc = flèches/barre/drag souris). Carte = image de
 * la catégorie en portrait + nom serif blanc superposé en haut à gauche. */
.custom-category-list-section { --ccl-gap: 1.5rem; }
.custom-category-list-section .ccl-track {
    display: flex;
    gap: var(--ccl-gap);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* Edge legacy */
    cursor: grab;
}
.custom-category-list-section .ccl-track::-webkit-scrollbar { display: none; }   /* Chrome/Safari */
.custom-category-list-section .ccl-track.ccl-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }

/* Builder BO (.ccl-bo) : scrollbar native visible, slider JS désactivé, contrôles masqués. */
.custom-category-list-section.ccl-bo .ccl-track {
    scrollbar-width: auto;
    -ms-overflow-style: auto;
    cursor: default;
    scroll-snap-type: none;
}
.custom-category-list-section.ccl-bo .ccl-track::-webkit-scrollbar { display: block; height: 8px; }
.custom-category-list-section.ccl-bo .ccl-track::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .25); border-radius: 4px; }
.custom-category-list-section.ccl-bo .ccl-controls { display: none !important; }

/* Largeur fixe robuste (fallback var(--ccl-cols, 3) si le style inline est perdu en builder).
 * Mobile : peek de la catégorie suivante. */
.custom-category-list-section .ccl-item {
    flex: 0 0 80%;
    scroll-snap-align: start;
}
@media (min-width: 768px) {
    .custom-category-list-section .ccl-item {
        flex: 0 0 calc((100% - (var(--ccl-cols, 3) - 1) * var(--ccl-gap)) / var(--ccl-cols, 3));
    }
}

/* Contrôles du slider */
.custom-category-list-section .ccl-arrow {
    flex: 0 0 auto; background: transparent; border: 0; padding: 0;
    font-size: 1.25rem; line-height: 1; color: var(--bs-secondary); cursor: pointer;
}
.custom-category-list-section .ccl-progress { height: 1px; background: rgba(0, 0, 0, .15); }
.custom-category-list-section .ccl-progress-bar { display: block; height: 100%; background: var(--bs-secondary); }

/* Carte catégorie : image portrait + dégradé (lisibilité) + nom serif blanc superposé. */
.custom-category-list-section .ccl-card-media { aspect-ratio: 3 / 4; }
.custom-category-list-section .ccl-card-img { object-fit: cover; }
.custom-category-list-section .ccl-card::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 45%);
}
.custom-category-list-section .ccl-card-name {
    z-index: 2;
    text-transform: none;
}

/* -----------------------------------------------------------------------------
 * Fenêtre d'abonnement Bocage — bloc custom-subscribe-modal.
 * Modale large : diaporama autoplay à gauche (réutilise .diapo-* + diapo-slider.js),
 * contenu titre/sous-titre/texte/CTA à droite. Le CSS du diaporama d'origine étant scopé
 * sous .diapo-section, on réplique ici le crossfade sous .custom-subscribe-modal-section. */
.custom-subscribe-modal-section .modal-dialog { max-width: 980px; }        /* large */
.custom-subscribe-modal-section .csm-close { z-index: 5; }
.custom-subscribe-modal-section .csm-media { position: relative; min-height: 340px; background: var(--bs-light); }
.custom-subscribe-modal-section .csm-panel { min-height: 340px; }

/* Diaporama dans la modale (crossfade répliqué). diapo-slider.js ajoute .diapo-initialized au front. */
.custom-subscribe-modal-section .diapo-slides { width: 100%; height: 100%; }
.custom-subscribe-modal-section .diapo-slides.diapo-initialized { position: relative; overflow: hidden; height: 100%; display: block; }
.custom-subscribe-modal-section .diapo-slides.diapo-initialized .diapo-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.custom-subscribe-modal-section .diapo-slides.diapo-initialized .diapo-slide.diapo-slide--active { opacity: 1; }
.custom-subscribe-modal-section .diapo-slides.diapo-initialized .diapo-slide img,
.custom-subscribe-modal-section .diapo-slides.diapo-initialized .diapo-slide picture,
.custom-subscribe-modal-section .diapo-slides.diapo-initialized .diapo-slide picture img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pagination (barres) posée en bas de l'image, en blanc pour la lisibilité sur le visuel. */
.custom-subscribe-modal-section .csm-pagination { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; gap: .4rem; z-index: 2; }
.custom-subscribe-modal-section .diapo-dot { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); overflow: hidden; cursor: pointer; }
.custom-subscribe-modal-section .diapo-dot-progress { height: 100%; width: 0%; background: #fff; }

/* Builder BO : le bloc est rendu à plat (classe .csm-edit, pas .modal). diapo-slider.js ne tourne
 * pas (window.activeTheme absent) → pas de .diapo-initialized. On présente le diaporama en filmstrip
 * horizontal éditable (comme le bloc diaporama) et on neutralise les hauteurs prévues pour la modale. */

/* Aspect POPIN en builder : on simule la modale ouverte (backdrop + carte centrée + ombre) pour
 * refléter le rendu front, tout en gardant le contenu dans le flux → éditable dans GrapesJS. */
.custom-subscribe-modal-section.csm-edit { display: block; background: rgba(0, 0, 0, .5); padding: 2.5rem 1rem; }
.custom-subscribe-modal-section.csm-edit .csm-edit-dialog { max-width: 980px; margin: 0 auto; }
.custom-subscribe-modal-section.csm-edit .csm-content { box-shadow: 0 1rem 3rem rgba(0, 0, 0, .35); }

.custom-subscribe-modal-section.csm-edit .csm-media,
.custom-subscribe-modal-section.csm-edit .csm-panel { min-height: 0; }
.custom-subscribe-modal-section.csm-edit .diapo-wrap { height: auto; }
.custom-subscribe-modal-section.csm-edit .diapo-slides { display: flex; gap: .5rem; overflow-x: auto; height: auto; }
.custom-subscribe-modal-section.csm-edit .diapo-slide { flex: 0 0 60%; aspect-ratio: 4 / 3; opacity: 1; }
.custom-subscribe-modal-section.csm-edit .diapo-slide img,
.custom-subscribe-modal-section.csm-edit .diapo-slide picture,
.custom-subscribe-modal-section.csm-edit .diapo-slide picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.custom-subscribe-modal-section.csm-edit .csm-pagination { position: static; margin-top: .5rem; }

/* Le bloc vit dans la page « Entete principal », donc dans le cadre header de TOUTES les
 * pages : son rendu à plat encombrait l'éditeur partout. Ici le cadre header n'est que du
 * décor non éditable (CustomPageRenderer le rend dans un renderer à part, contentOnly, et
 * master-layout le pose dans #header-wrapper) → on le replie. Quand on édite la page header
 * elle-même, is_layout_block coupe ce chemin : $header est vide, le bloc sort dans le corps
 * de page et reste donc éditable. Sans effet sur le front, où la classe est `.modal fade`
 * et jamais `.csm-edit`. */
#header-wrapper .custom-subscribe-modal-section.csm-edit,
#subheader-wrapper .custom-subscribe-modal-section.csm-edit,
#prefooter-wrapper .custom-subscribe-modal-section.csm-edit,
#footer-wrapper .custom-subscribe-modal-section.csm-edit { display: none; }

/* -----------------------------------------------------------------------------
 * Réassurance Bocage — bloc custom-reinsurance (classes crein-*). Copie de reinsurance :
 * icône AU-DESSUS du texte (layout flex-column dans le view), 4 colonnes, sans séparateur,
 * titre en uppercase. Le carré d'icône reprend le style du bloc reinsurance (.rein-icon). */
.custom-reinsurance-section .crein-icon {
    display: flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; border-radius: .75rem; font-size: 1.25rem; color: #fff !important;
}
.custom-reinsurance-section .crein-icon i,
.custom-reinsurance-section .crein-icon svg { color: inherit !important; }
.custom-reinsurance-section .crein-title { font-size: .9375rem; }
.custom-reinsurance-section .crein-text { font-size: .8125rem; line-height: 1.5; }
/* Variante image (réglage use_image) : image éditée cadrée en hauteur, ratio conservé. */
.custom-reinsurance-section .crein-img img { height: 100px; width: auto; max-width: 100%; object-fit: contain; }

/* -----------------------------------------------------------------------------
 * Avis client·e·s Bocage — bloc custom-reviews (classes crv-*).
 * Même mécanique slider que custom-product-list : piste flex + scroll natif (swipe tactile
 * mobile + fallback builder BO). Le <script nonce> du bloc ajoute flèches, barre et drag souris
 * (desktop), sur le front ET dans l'aperçu builder. */
.custom-reviews-section { --crv-gap: 1.5rem; }
.custom-reviews-section .crv-track {
    display: flex;
    gap: var(--crv-gap);
    overflow-x: auto;
    scroll-snap-type: x proximity;  /* proximity (pas mandatory) : n'entrave pas le scrollBy des flèches */
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* Edge legacy */
    cursor: grab;                   /* drag souris possible (desktop) */
}
.custom-reviews-section .crv-track::-webkit-scrollbar { display: none; }   /* Chrome/Safari */
.custom-reviews-section .crv-track.crv-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }

/* Builder BO (.crv-bo, ajouté en phpb_in_editmode) : scrollbar native, contrôles masqués
 * (le script ne s'initialise pas en BO). */
.custom-reviews-section.crv-bo .crv-track {
    scrollbar-width: auto;
    -ms-overflow-style: auto;
    cursor: default;
    scroll-snap-type: none;
}
.custom-reviews-section.crv-bo .crv-track::-webkit-scrollbar { display: block; height: 8px; }
.custom-reviews-section.crv-bo .crv-track::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .25); border-radius: 4px; }
.custom-reviews-section.crv-bo .crv-controls { display: none !important; }   /* bat le .d-flex du markup */

/* Largeur item : fallback var(--crv-cols, 4) si le style inline est perdu dans le builder.
 * Mobile : peek de l'avis suivant. */
.custom-reviews-section .crv-item {
    flex: 0 0 85%;
    scroll-snap-align: start;
}
@media (min-width: 768px) {
    .custom-reviews-section .crv-item {
        flex: 0 0 calc((100% - (var(--crv-cols, 4) - 1) * var(--crv-gap)) / var(--crv-cols, 4));
    }
}
/* Contrôles du slider */
.custom-reviews-section .crv-arrow {
    flex: 0 0 auto; background: transparent; border: 0; padding: 0;
    font-size: 1.25rem; line-height: 1; color: var(--bs-secondary); cursor: pointer;
}
.custom-reviews-section .crv-progress { height: 1px; background: rgba(0, 0, 0, .15); }
.custom-reviews-section .crv-progress-bar { display: block; height: 100%; background: var(--bs-secondary); }

.custom-reviews-section .crv-item .crv-quote{
    font-size: 3rem;
    font-family: 'Work Sans', sans-serif;
    font-style: normal;
}

    /* Couleur du texte des cartes (config text_color portée sur .crv-track) : on force l'héritage
     * pour surcharger les couleurs utilitaires (.text-secondary du guillemet, etc.) qui ont !important.
     * Le titre de section reste hors .crv-track → non impacté. */
.custom-reviews-section .crv-track.crv-colored *:not(.btn):not(.btn *) { color: inherit !important; }

/* -----------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */
.footer-section .footer-social-links .fw-bold{
    font-size: inherit;
    font-weight: normal !important;
    margin: 0;
}
.footer-section .footer-social-links .footer-links ul{ gap: 0; }
.footer-section .footer-social-links .footer-links .footer-link-item i{ opacity: 1; }
.footer-section .footer-link-item a:hover{ opacity: .8; }


/* -----------------------------------------------------------------------------
 * Image + texte
 * -------------------------------------------------------------------------- */
:is(.theme-rental2026, [data-gjs-type]) .image-text-section .ti-img-wrap{
    border-radius: 0 !important;
}
:is(.theme-rental2026, [data-gjs-type]) .image-text-section .ti-img-wrap img{
    width: 100%;
}
/* Texte justifié en mobile — page Concept */
@media (max-width: 991.98px) {
    :is(.cms-15.theme-rental2026) .image-text-section .ti-text-wrap{
        text-align: justify;
    }
}

/* -----------------------------------------------------------------------------
 * Carte produit PLP Bocage (.bpcard-*). UNIQUEMENT la mécanique du slider d'images :
 * tout le style (fond, badge, titre, valeur, espacements, coins carrés) est en classes
 * Bootstrap inline dans la vue components/products/list-item.
 * -------------------------------------------------------------------------- */
/* Visuels produit en 7/8 : format propre à Bocage, absent des choix du réglage
 * BO — celui-ci ne pilote donc plus rien ici (la variable --plp-img-ratio reste
 * posée par les blades mais n’est plus lue). Cartes PLP et slider d’accueil
 * ci-dessous ; la fiche produit a son ratio en style INLINE, d’où !important, et
 * ses vignettes sont en `.ratio ratio-1x1` : on pose `aspect-ratio` sur la BOÎTE
 * plutôt que de redéfinir --bs-aspect-ratio, dont le padding-top ne couvre que la
 * zone de contenu — padding et bordure décalaient le rendu à 0,896. */
.bocage-pcard .bpcard-media { aspect-ratio: 7 / 8; }
:is(.theme-rental2026, [data-gjs-type]) .product-main-image-wrapper { aspect-ratio: 7 / 8 !important; }
.product-thumbnail-btn.ratio-1x1 { aspect-ratio: 7 / 8; }
.product-thumbnail-btn.ratio-1x1::before { display: none; }
.bocage-pcard .bpcard-link,
.bocage-pcard .bpcard-track { height: 100%; }
.bocage-pcard .bpcard-track { transition: transform .35s ease; will-change: transform; }
.bocage-pcard .bpcard-slide { flex: 0 0 100%; height: 100%; }
.bocage-pcard .bpcard-img { height: 100%; object-fit: cover; }  /* pleine largeur, sans marges */
.bocage-pcard .bpcard-offer { font-weight: 500; }               /* fw-medium absent de ce build Bootstrap */

/* Flèches révélées au survol (fond transparent ; état hover non exprimable en utilitaires Bootstrap). */
.bocage-pcard .bpcard-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
    background: transparent; cursor: pointer;
    opacity: 0; transition: opacity .2s ease;
}
.bocage-pcard .bpcard-arrow i { color: var(--bs-dark); }  /* sombre et sans ombre (retour client) */
.bocage-pcard .bpcard-prev { left: .5rem; }
.bocage-pcard .bpcard-next { right: .5rem; }
.bocage-pcard .bpcard-media:hover .bpcard-arrow { opacity: 1; }

@media (hover: none) {                                          /* tactile : flèches visibles */
    .bocage-pcard .bpcard-arrow { opacity: 1; }
}


/* -----------------------------------------------------------------------------
 * PDP
 * -------------------------------------------------------------------------- */
/*.pack-eligible-offer-group,*/
/*#productOffersBlock .product-offers,*/
#offerSummaryContainer{
    display: none !important;
}
#rentButton{
    padding: .75rem !important;
}

/* -----------------------------------------------------------------------------
 * PDP Reassurance composant réutilisable
 * -------------------------------------------------------------------------- */
.product-item-section .reusable .custom-reinsurance-section,
.product-item-section .reusable .custom-reinsurance-section > .container-xxl{
    padding: 0 !important;
}
.product-item-section .reusable .custom-reinsurance-section .crein-item{
    transform: scale(0.9);
    min-width: 0 !important;
    padding: 0 .5rem !important;
}
.product-item-section .reusable .custom-reinsurance-section .crein-title{
    font-size: .875rem !important;
}

/* -----------------------------------------------------------------------------
 * PDP — Galerie : visionneuse d'image maison (.bocage-lightbox, cf. merchant.js).
 * Remplace bs5-lightbox : les images Bocage sont servies sans extension
 * (Content-Type application/octet-stream) → bs5-lightbox les télécharge / mouline.
 * Un simple <img> les affiche (MIME sniffing). Image bornée au viewport, ratio
 * conservé, entièrement visible sans scroll.
 * -------------------------------------------------------------------------- */
.bocage-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .85);
    padding: 2rem;
}
.bocage-lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.bocage-lightbox-btn {
    position: absolute;
    background: transparent;
    border: 0;
    color: #fff;
    line-height: 1;
    cursor: pointer;
    padding: .5rem;
    opacity: .85;
}
.bocage-lightbox-btn:hover { opacity: 1; }
.bocage-lightbox-close { top: 1rem; right: 1.25rem; font-size: 2.5rem; }
.bocage-lightbox-prev,
.bocage-lightbox-next { top: 50%; transform: translateY(-50%); font-size: 3rem; }
.bocage-lightbox-prev { left: .75rem; }
.bocage-lightbox-next { right: .75rem; }
@media (max-width: 575.98px) {
    .bocage-lightbox { padding: 1rem; }
    .bocage-lightbox-prev,
    .bocage-lightbox-next { font-size: 2rem; }
}

/* -----------------------------------------------------------------------------
 * Mobile (< sm) — corrections d'affichage Bocage
 * -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    /* HERO (custom-big-banner) : le titre en escalier est en text-wrap:nowrap avec un plancher
     * de police de 2rem (32px) et un décalage de 5rem sur les lignes paires → il déborde à droite
     * sur les petits écrans. On abaisse le plancher (police fluide) et on réduit le décalage. */
    .custom-big-banner-section .cbb-title { font-size: clamp(1.35rem, 7vw, 2rem); }
    .custom-big-banner-section .cbb-title :is(p, div):nth-child(even) { margin-inline-start: 1.5rem; }

    /* HEADER (custom-header) : le logo est centré en position absolue ; sur mobile étroit il
     * chevauche les icônes compte/panier. On le borne pour qu'il laisse la place aux deux
     * groupes d'icônes (~100px chacun + marge). La contrainte n'agit que quand l'espace manque. */
    .custom-header .d-lg-none .navbar-brand { max-width: calc(100% - 250px); }
    .custom-header .d-lg-none .navbar-brand img { max-width: 100%; height: auto; }
}

/* =============================================================================
 * RETOURS DESIGN CLIENT — boutons / blocs / champs / pastille panier
 *
 * Le préfixe `:is(.theme-rental2026, [data-gjs-type])` (front + canvas builder)
 * vaut (0,1,0) et porte les sélecteurs à (0,3,0) : de quoi égaler les règles
 * `!important` du thème, que merchant.css emporte ensuite par l'ordre de
 * chargement (master-layout l.58 > l.38).
 * ========================================================================== */

/* -----------------------------------------------------------------------------
 * 1. BOUTONS — aucun dégradé, pas de translate ni d'ombre au survol,
 *    hover = simple variation de couleur.
 * -------------------------------------------------------------------------- */

/* 1.a Fonds plats, en remplacement du dégradé du thème.
 * ATTENTION : `.bg-gradient-primary-secondary` habille aussi des non-boutons
 * (pastilles d'étapes du tunnel, bannière du dashboard) → ne la neutraliser que
 * portée par un `.btn`. */
:is(.theme-rental2026, [data-gjs-type]) .rent-button-gradient,
:is(.theme-rental2026, [data-gjs-type]) .btn-gradient-primary-secondary,
:is(.theme-rental2026, [data-gjs-type]) .btn.bg-gradient-primary-secondary,
:is(.theme-rental2026, [data-gjs-type]) .cart-validate-rental-btn,
:is(.theme-rental2026, [data-gjs-type]) .auth-card .registration-form button[type="submit"],
:is(.theme-rental2026, [data-gjs-type]) .auth-card .connexion-form button[type="submit"] {
    background: var(--bs-secondary) !important;
    background-image: none !important;
}

/* 1.b Plus de saut ni d'ombre au survol.
 * ATTENTION : l'ombre de `:focus` n'est pas touchée, c'est le seul repère
 * clavier du thème (cf. 1.e). */
:is(.theme-rental2026, [data-gjs-type]) .btn:hover,
:is(.theme-rental2026, [data-gjs-type]) .btn:active,
:is(.theme-rental2026, [data-gjs-type]) .rent-button-gradient:hover:not(:disabled),
:is(.theme-rental2026, [data-gjs-type]) .rent-button-gradient:active:not(:disabled),
:is(.theme-rental2026, [data-gjs-type]) .cart-validate-rental-btn:hover,
:is(.theme-rental2026, [data-gjs-type]) .btn-gradient-primary-secondary:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 1.c La transition du thème n'anime que transform et box-shadow, tous deux
 * supprimés : sans ça le nouveau hover serait un changement sec. */
:is(.theme-rental2026, [data-gjs-type]) .btn {
    transition: background-color .15s ease-in-out,
                border-color .15s ease-in-out,
                color .15s ease-in-out !important;
}

/* 1.d Hover des boutons devenus plats : variation de COULEUR et non d'opacité,
 * le thème signalant déjà le chargement par `opacity: .8`. */
:is(.theme-rental2026, [data-gjs-type]) .rent-button-gradient:hover:not(:disabled),
:is(.theme-rental2026, [data-gjs-type]) .btn-gradient-primary-secondary:hover,
:is(.theme-rental2026, [data-gjs-type]) .btn.bg-gradient-primary-secondary:hover,
:is(.theme-rental2026, [data-gjs-type]) .cart-validate-rental-btn:hover,
:is(.theme-rental2026, [data-gjs-type]) .auth-card .registration-form button[type="submit"]:hover,
:is(.theme-rental2026, [data-gjs-type]) .auth-card .connexion-form button[type="submit"]:hover {
    background: var(--bs-secondary) !important;
    background-image: none !important;
}

/* 1.e Repère clavier, que le thème avait supprimé (`outline: none` sur le CTA
 * « Louer », `box-shadow: none` sur les boutons d'icône du header). En dehors du
 * bouton (offset) pour rester visible sur un fond marron plein. */
:is(.theme-rental2026, [data-gjs-type]) .btn:focus-visible,
:is(.theme-rental2026, [data-gjs-type]) .rent-button-gradient:focus-visible,
:is(.theme-rental2026, [data-gjs-type]) .signin-transition-notice button:focus-visible {
    outline: 2px solid var(--bs-secondary) !important;
    outline-offset: 2px !important;
}

/* -----------------------------------------------------------------------------
 * 2. BLOCS — aucune ombre, aucun border-radius.
 * -------------------------------------------------------------------------- */

/* 2.a Utilitaires Bootstrap posés dans les blades.
 * ATTENTION : `.rounded-circle` et `.rounded-pill` sont volontairement ABSENTS
 * — ce sont les classes par lesquelles une rondeur est demandée explicitement
 * (médaillons, avatars, pastille du panier). */
:is(.theme-rental2026, [data-gjs-type]) :is(
    .rounded, .rounded-0, .rounded-1, .rounded-2, .rounded-3, .rounded-4, .rounded-5,
    .rounded-sm, .rounded-lg, .rounded-xl, .rounded-2xl,
    .rounded-top, .rounded-end, .rounded-bottom, .rounded-start
) {
    border-radius: 0 !important;
}
:is(.theme-rental2026, [data-gjs-type]) :is(.shadow, .shadow-sm, .shadow-lg) {
    box-shadow: none !important;
}

/* 2.b Cartes et conteneurs du thème (rayons écrits en dur dans le SCSS). */
:is(.theme-rental2026, [data-gjs-type]) :is(
    .card, .card-img, .card-img-top, .card-img-bottom, .card-header, .card-footer,
    .alert, .list-group, .list-group-item, .progress, .img-thumbnail, .toast,
    .product-list-item, .product-main-image-wrapper, .product-thumbnail-btn,
    .pack-product-configurator, .offer-card, .offer-summary,
    .cart-product-card, .cart-selected-pickup-point-card, .cart-stepbar-pill,
    .account-menu, .account-info-card, .address-card, .address-edit,
    .payment-card-compact, .rental-item-wrapper, .rental-card,
    .ib-card, .rv-card, .contact-channel-card, .faq-item,
    .category-card-img-wrap, .ti-img-wrap
) {
    border-radius: 0 !important;
}

/* 2.c Ombres portées, au repos comme au survol.
 * ATTENTION : ciblage par CLASSE et jamais par état. Doivent survivre — les ~90
 * anneaux de `:focus`, le zébrage des tableaux (peint en `box-shadow: inset`) et
 * le trait de `.accordion-button:not(.collapsed)` (un inset, pas une ombre). Les
 * couches flottantes (modale, dropdown, popover, méga sous-menu) gardent la
 * leur : elle les détache du fond. */
:is(.theme-rental2026, [data-gjs-type]) :is(
    .card, .alert, .toast, .product-list-item, .offer-card, .offer-summary,
    .cart-product-card, .cart-selected-pickup-point-card, .cart-stepbar-pill,
    .account-menu, .account-info-card, .address-card, .payment-card-compact,
    .rental-item-wrapper, .rental-card, .ib-card, .rv-card,
    .contact-channel-card, .faq-item, .category-card-img-wrap
),
:is(.theme-rental2026, [data-gjs-type]) :is(
    .product-list-item, .account-info-card, .rental-card, .payment-card-compact,
    .faq-item, .ib-card, .rv-card, .contact-channel-card
):hover,
:is(.theme-rental2026, [data-gjs-type]) .category-card:hover .category-card-img-wrap,
:is(.theme-rental2026, [data-gjs-type]) #header-wrapper {
    box-shadow: none !important;
}

/* -----------------------------------------------------------------------------
 * 3. CHAMPS — aucun border-radius.
 * ATTENTION, exclusions par TYPE : le radio doit rester rond (sinon
 * indistinguable d'une case à cocher), `.form-switch` tire sa forme de pilule de
 * son rayon, et les curseurs de plage stylent leur poignée en pseudo-éléments.
 * -------------------------------------------------------------------------- */
:is(.theme-rental2026, [data-gjs-type]) :is(
    .form-control, .form-select, .form-floating > .form-control,
    .input-group, .input-group-text, .input-group > .form-control,
    .input-group > .form-select, .input-group > .btn,
    textarea, select
),
:is(.theme-rental2026, [data-gjs-type]) input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="color"]) {
    border-radius: 0 !important;
}

/* -----------------------------------------------------------------------------
 * 4. PASTILLE PANIER — fond sombre.
 * ⚠ Le JS du cœur (plugin/rental2026/mega-menu.js, reliquat de debug) repose
 * `background: red !important` EN INLINE sur `[data-cart-count]` à chaque
 * `cart:refreshed` : une feuille externe ne peut pas le battre. La couleur est
 * donc reposée en JS dans merchant.js ; la règle ci-dessous sert de ceinture
 * (l'ombre interne recouvre le fond quelle que soit la valeur inline).
 * Reste ronde : `.rounded-pill` est exclu du point 2.a.
 * -------------------------------------------------------------------------- */
:is(.custom-header, #header-wrapper) [data-cart-count] {
    background-color: var(--bs-secondary) !important;
    box-shadow: inset 0 0 0 100px var(--bs-secondary);
    color: #fff !important;
    left: auto !important;
    right: -.75rem !important;
}

/* -----------------------------------------------------------------------------
 * 3.b CONTENEURS DE CHAMP — suite du point 3 (rayon restant sur
 * `.global-search-btn`). Ce sont des wrappers, ni `.form-control` ni `.btn` : le
 * point 3 ne les atteignait pas. Le préfixe porte le dernier sélecteur à
 * (0,3,1), au-dessus du (0,2,1) de `.product-sorter button.form-control`.
 * -------------------------------------------------------------------------- */
:is(.theme-rental2026, [data-gjs-type]) :is(
    .global-search-btn, .gsm-search-wrap,
    .dropdown-selector-button, .variant-selector-button
),
:is(.theme-rental2026, [data-gjs-type]) .product-sorter button.form-control {
    border-radius: 0 !important;
}

/* =============================================================================
 * PAGE CATÉGORIE
 * ========================================================================== */

body#category [data-category-id] > .bg-white.border-bottom{
    border-bottom: none !important;
}
/* Masquer « 13 produits disponibles à la location » */
#category-product-count:has(#category-product-count-number) {
    display: none !important;
}

/* 2. Masquer le champ de recherche de la page catégorie (déjà invisible sous
 * 768px via `d-none d-md-block`). */
.category-search-wrapper {
    display: none !important;
}

/* 3. Masquer le tri par prix. Les options sont générées en boucle sans classe
 * distinctive : le seul discriminant est le `sortBy` de l'URL. `sortBy=-price`
 * n'est pas exposé aujourd'hui mais existe côté repository. */
#frmProductSorter li:has(a[href*="sortBy=price"]),
#frmProductSorter li:has(a[href*="sortBy=-price"]) {
    display: none !important;
}

/* -----------------------------------------------------------------------------
 * CTA « grands boutons » — coins carrés (rayon restant sur signin / signup).
 * Le thème regroupe tous les grands boutons dans une déclaration à (0,4,1)
 * (`.auth-card .connexion-form button.btn[type="submit"]`), hors de portée du
 * bloc BOUTONS qui plafonne à (0,3,0). On reprend ses sélecteurs dans un `:is()`,
 * qui adopte la spécificité de son argument le plus fort. Couvre du même coup
 * les CTA du tunnel, bâtis sur la même règle.
 * -------------------------------------------------------------------------- */
:is(.theme-rental2026, [data-gjs-type]) :is(
    .btn-lg,
    .btn.btn-lg,
    .btn-group-lg > .btn,
    .auth-card .registration-form button[type="submit"],
    .auth-card .connexion-form button[type="submit"],
    .auth-card .registration-form button.btn[type="submit"],
    .auth-card .connexion-form button.btn[type="submit"],
    .cart-register-card .registration-form .cart-action-footer .btn,
    .cart-register-card .connexion-form .cart-action-footer .btn,
    .cart-delivery-card .cart-action-footer .btn
) {
    border-radius: 0 !important;
}

/* -----------------------------------------------------------------------------
 * PDP — flèches de navigation sur l'image principale. Calquées sur celles de la
 * carte produit (`.bpcard-arrow`), un peu plus grandes. Markup dans la vue SFTP
 * eshop-page/product.blade.php, comportement dans merchant.js.
 * -------------------------------------------------------------------------- */
.product-main-image-wrapper .bpdp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease;
}
.product-main-image-wrapper .bpdp-arrow i {
    color: var(--bs-dark);
    font-size: 1.5rem;
}
.product-main-image-wrapper .bpdp-prev { left: .25rem; }
.product-main-image-wrapper .bpdp-next { right: .25rem; }
.product-main-image-wrapper:hover .bpdp-arrow { opacity: 1; }

/* Tactile : pas de survol possible, les flèches restent visibles. */
@media (hover: none) {
    .product-main-image-wrapper .bpdp-arrow { opacity: 1; }
}

/* -----------------------------------------------------------------------------
 * PDP mobile et tablette (< 992px, colonne unique) — RENTAL-6836 : le prix doit
 * se voir sans scroller. Ordre : image | offre (prix) | nom + prix boutique |
 * produits similaires | pointure | CTA | vignettes | le reste (réassurance,
 * accordéon). Le CTA vit DANS le bloc d'offres (pack éligible ou natif), d'où la
 * mise à plat : les deux colonnes et ce bloc passent en `display: contents`, leurs
 * enfants deviennent des items de la rangée flex et reçoivent un `order`. Le DOM
 * ne bouge pas (ids et JS du panier intacts) et le desktop n'est pas touché.
 * `:where()` garde les ids du bloc d'offres sans spécificité, pour que les règles
 * nominatives (CTA…) l'emportent. Prises `bpdp-*` posées dans la vue SFTP
 * eshop-page/product.blade.php.
 * -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .product-item-section .bpdp-layout {
        flex-direction: column;
        flex-wrap: nowrap;
        margin-top: 0;      /* contrepartie de la gouttière gy-4, portée par les colonnes mises à plat */
    }
    .product-item-section .bpdp-layout > *,
    .product-item-section .bpdp-layout :where(#packEligibleOffersBlock, #productOffersBlock) {
        display: contents;
    }

    /* flex-shrink : sans lui, l'image (aspect-ratio + overflow) et la ligne de vignettes
     * (overflow-x) s'écrasent, leur hauteur minimale automatique valant 0. */
    .product-item-section .bpdp-layout > * > *,
    .product-item-section .bpdp-layout :where(#packEligibleOffersBlock, #productOffersBlock) > * { flex-shrink: 0; }

    .product-item-section .bpdp-layout > * > * { order: 10; }
    .product-item-section .bpdp-layout :where(#packEligibleOffersBlock, #productOffersBlock) > *,
    .product-item-section .bpdp-layout > * > .alert,
    .product-item-section .bpdp-layout #productNoOffersMessage { order: 2; }
    .product-item-section .bpdp-layout .product-main-image-wrapper { order: 1; }
    .product-item-section .bpdp-layout .bpdp-heading { order: 3; }
    .product-item-section .bpdp-layout .similar-products-section { order: 4; }
    .product-item-section .bpdp-layout .bpdp-variant { order: 5; }
    .product-item-section .bpdp-layout .add-to-cart,
    .product-item-section .bpdp-layout :has(> #confirmOfferChangeBtn),
    .product-item-section .bpdp-layout #emailAlertContainer { order: 6; }
    .product-item-section .bpdp-layout .product-thumbnails-grid { order: 7; }

    .product-item-section .product-badges { display: none !important; }

    /* Écart image → offre pack : seule la marge de l'image (mb-4) demeure. La section
     * (my-4) et la première carte (mt-4, vue pack-eligible-offer-item) y ajoutaient
     * chacune la leur. Utilitaires Bootstrap en !important. */
    .product-item-section .bpdp-layout .pack-eligible-offer-group .product-offers-section,
    .product-item-section .bpdp-layout .pack-eligible-offer-group .offer-list-item-wrapper:first-child .offer-list-item {
        margin-top: 0 !important;
    }

    /* Vignettes : 5 visibles sur une seule ligne, défilement horizontal au-delà.
     * `flex-wrap` du markup est en !important (utilitaire Bootstrap). */
    .product-item-section .product-thumbnails-grid {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 1rem 0;     /* entre le CTA et la réassurance */
    }
    .product-item-section .product-thumbnails-grid .product-thumbnail-item {
        flex: 0 0 calc(20% - .2rem);   /* (100 % − 4 gaps de .25rem) / 5 */
        max-width: calc(20% - .2rem);
        scroll-snap-align: start;
    }
}

/* -----------------------------------------------------------------------------
 * TITRES DE PAGE — nom du produit (PDP), nom de la catégorie (PLP) et titre de
 * chaque onglet du compte client. Côté compte on cible `.account-content h1`
 * (un seul h1 par onglet) plutôt que d’ajouter `.page-heading` dans chaque vue :
 * ça évite un override SFTP figé par onglet juste pour un titre.
 * La police est posée ici : ailleurs elle vient du bloc
 * « Titres » plus haut, qui ne couvre ni le compte ni la fiche produit.
 * Tout en `!important` : le markup empile des utilitaires Bootstrap qui le sont
 * tous (taille, graisse, interlettrage, couleur).
 * `h1.page-heading` et non `.page-heading` seul : la classe sert aussi au nom du
 * produit dans le récapitulatif compact du panier, qui ne doit pas bouger. La
 * ligne de panier, elle, est visée explicitement (`.cart-product-title`, un
 * <span> ou un <a> — jamais un h1).
 * -------------------------------------------------------------------------- */
:is(.theme-rental2026, [data-gjs-type]) h1.page-heading,
:is(.theme-rental2026, [data-gjs-type]) .category-title-block .page-heading,
:is(.theme-rental2026, [data-gjs-type]) .cart-product-title.page-heading,
:is(.theme-rental2026, [data-gjs-type]) .account-content h1 {
    font-family: 'Span', Georgia, sans-serif !important;
    font-size: 2rem !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    letter-spacing: 1% !important;
    text-transform: none !important;
    color: var(--bs-secondary) !important;
}

/* =============================================================================
 * OFFRES (PDP) — chemin PACK CUSTOM uniquement : une seule offre, sans carte.
 * Tout est scopé sous `.pack-eligible-offer-group` pour laisser intact
 * l'affichage natif des offres (offres propres à un produit, tunnel de
 * changement d'abonnement). L'essentiel est fait dans les vues surchargées
 * (SFTP) pack-eligible-offers (une seule offre rendue, la moins chère, et c'est
 * elle qui est sélectionnée) et offer-list-item (habillage de carte et
 * pastilles retirés du markup). Ne reste ici que ce qu'une vue ne peut défaire.
 * ========================================================================== */

/* 1. Bordure posée par le thème en `border-width: 2px !important` : retirer la
 * classe `border` du markup ne suffit pas. À 0, `border-color` — que le thème
 * réaffirme au survol — n'a plus d'effet. Curseur : vient de `[role="button"]`,
 * que le markup garde, mais avec une offre unique il n'y a rien à choisir. */
.pack-eligible-offer-group .offer-list-item .offer-card {
    border-width: 0 !important;
    cursor: default !important;
}

/* 2. Survol : le thème soulève la carte d'un pixel et pose une ombre. */
.pack-eligible-offer-group .offer-list-item .offer-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* 3. Nom et prix : typographie de `.page-heading`, en capitales, secondary. Le
 * prix est un flex dont le montant et le « /mois » sont deux `<span>` que le
 * thème dimensionne — d'où le ciblage des enfants. */
.pack-eligible-offer-group .offer-card .offer-card-name,
.pack-eligible-offer-group .offer-card .offer-card-price,
.pack-eligible-offer-group .offer-card .offer-card-price > * {
    font-family: 'Span', Georgia, sans-serif !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    letter-spacing: 1% !important;
    text-transform: uppercase !important;
    color: var(--bs-secondary) !important;
}
.pack-eligible-offer-group .offer-card .offer-card-name {
    font-size: 1rem !important;
}
.pack-eligible-offer-group .offer-card .offer-card-price,
.pack-eligible-offer-group .offer-card .offer-card-price > * {
    font-size: 2.5rem !important;
}

/* 4. Offre unique : pleine largeur. Le thème borne le wrapper à la moitié de la
 * grille dès 768px, `max-width` compris — ce qui interdit à `w-100` de suffire. */
.pack-eligible-offer-group .offer-list-grid .offer-list-item-wrapper {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: none;
}

/* =============================================================================
 * COMPTE CLIENT
 * ========================================================================== */

/* Onglet actif du menu latéral : le thème le peint en dégradé rouille → marron
 * (`.account-menu .account-menu-item.active`, en !important). Aplat marron. */
:is(.theme-rental2026, [data-gjs-type]) .account-menu .account-menu-item.active {
    background: var(--bs-secondary) !important;
    background-image: none !important;
}

/* =============================================================================
 * MOYENS DE PAIEMENT (compte client) — tout en CSS, aucun override de vue.
 * ========================================================================== */

/* 1. Carte principale : le thème la peint en dégradé gris anthracite
 * (`background: linear-gradient(135deg,#1F2937,#111827) !important`). Aplat
 * marron. Les DEUX sous-propriétés sont nécessaires : le raccourci `background`
 * du thème remet aussi `background-color` à transparent, donc le `bg-dark` du
 * markup ne reprendrait pas la main tout seul. */
:is(.theme-rental2026, [data-gjs-type]) .main-payment-card{
    background-color: var(--bs-secondary) !important;
    background-image: none !important;
}

/* Boutons « Mettre à jour » */
:is(.theme-rental2026, [data-gjs-type]) .account-payment-methods-tab .btn-dark,
:is(.theme-rental2026, [data-gjs-type]) .main-payment-card .btn-dark{
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

/* =============================================================================
 * MES ABONNEMENTS (compte client) — override views/components/account/
 * subscriptions-tab et ses partiels bocage-subscription-* (classes bsub-*).
 * Retours client : mise en page d'après la maquette Bocage, « Suspendre »
 * prioritaire sur « Résilier ». Chaque abonnement dans un cadre crème
 * (--bs-light) à liseré marron, ses blocs en cartes blanches à filet fin et
 * coins carrés (cf. 2.).
 * Teintes du filet : repli en dur pour les navigateurs sans color-mix().
 * ========================================================================== */
.bocage-subscriptions {
    --bsub-line: #e6ddd6;
    --bsub-line: color-mix(in srgb, var(--bs-secondary) 14%, #fff);
}
.bocage-subscriptions .bsub-list { gap: 2rem; }
/* `min-w-0` (posé dans les vues) n'existe pas dans le thème : sans lui, un nom
 * long ne serait pas tronqué dans une ligne flex. */
.bocage-subscriptions .min-w-0 { min-width: 0; }

/* Cadre d'un abonnement (retour client : avec de nombreuses locations, les blocs
 * d'abonnements voisins se confondaient). Le fond crème regroupe en-tête, paire,
 * tuiles, étapes et historique ; le liseré marron marque le début de chaque
 * abonnement, en filet neutre une fois l'abonnement clos (`.is-closed`). */
.bocage-subscriptions .bsub-subscription {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bs-light);
    border: 1px solid var(--bsub-line);
    border-top: 4px solid var(--bs-secondary);
}
.bocage-subscriptions .bsub-subscription.is-closed { border-top-color: var(--bsub-line); }
@media (min-width: 768px) {
    .bocage-subscriptions .bsub-subscription { padding: 1.5rem; }
}
/* En-tête : le titre garde au moins 22rem avant que les boutons ne passent
 * dessous (ils écrasaient sinon titre et dates sur plusieurs lignes). */
.bocage-subscriptions .bsub-head-main {
    flex: 1 1 22rem;
    min-width: 0;
}
.bocage-subscriptions .bsub-card {
    background-color: #fff;
    border: 1px solid var(--bsub-line);
}

/* Sur-titres, tous au même style rouille (retour client) : « Location en
 * cours », « Prochain prélèvement », « Nouvelle paire possible », « Les étapes
 * de cette paire » et « Échéances » de l'historique. */
.bocage-subscriptions .bsub-eyebrow {
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bs-primary);
}
/* « Les étapes de cette paire » est un h3 : la règle « Titres » (plus haut)
 * lui imposerait la police Span en !important sous un conteneur « *section* ». */
.bocage-subscriptions h3.bsub-eyebrow {
    font-family: "Work Sans", sans-serif !important;
}

.bocage-subscriptions .bsub-pair-name {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--bs-dark);
}
.bocage-subscriptions .bsub-pair-name-sm { font-size: 1rem; }
/* Colonne d'actions sans bouton (aucun retour, rachat ni rétractation) : retirée
 * pour ne pas laisser l'écart du flex sous la paire. */
.bocage-subscriptions .bsub-pair-actions:not(:has(*)) { display: none !important; }
/* Boutons de la paire de même largeur, contenu centré (retour client) : pleine
 * largeur sous la paire en mobile, largeur du plus long dans la colonne de droite
 * dès md. « Retourner ma paire » (addon SSR OneStock) n'est pas centré d'origine. */
.bocage-subscriptions .bsub-pair-actions { align-items: stretch; }
.bocage-subscriptions .bsub-pair-actions > .btn,
.bocage-subscriptions .bsub-pair-actions > .badge { justify-content: center; }

/* Titre « Historique de mes paires » : typo des titres de page (cf. TITRES DE PAGE). */
.bocage-subscriptions .bsub-section-title {
    font-family: 'Span', Georgia, sans-serif !important;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.1;
    color: var(--bs-secondary);
}

/* Vignettes : visuels détourés sur fond blanc, fondus dans le crème. */
.bocage-subscriptions .bsub-thumb {
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bs-light);
}
.bocage-subscriptions .bsub-thumb-sm { width: 64px; height: 64px; }
.bocage-subscriptions .bsub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.bocage-subscriptions .bsub-chip {
    background-color: var(--bs-light);
    border-radius: 50rem;
}
.bocage-subscriptions .bsub-chip-img {
    width: 28px;
    height: 28px;
    background-color: #fff;
}
.bocage-subscriptions .bsub-chip-img img { width: 100%; height: 100%; object-fit: cover; }

/* Tuiles « Prochain prélèvement » / « Nouvelle paire » et encadré d'information. */
/* Côte à côte dès md : grille propre, car `col-12 col-md` ne marche pas dans ce
 * thème (le CSS compilé déclare .col-12 APRÈS .col-md, qui perd donc toujours). */
.bocage-subscriptions .bsub-tiles {
    display: grid;
    gap: 1rem;
}
@media (min-width: 768px) {
    .bocage-subscriptions .bsub-tiles {
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
    }
}
/* Blanches sur le cadre crème, comme les cartes : la typo (étiquette + date
 * en grand) les distingue. */
.bocage-subscriptions .bsub-tile {
    background-color: #fff;
    border: 1px solid var(--bsub-line);
}
.bocage-subscriptions .bsub-tile-value {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--bs-secondary);
}
.bocage-subscriptions .bsub-note {
    background-color: var(--bs-light);
    color: var(--bs-secondary);
}

/* Boutons d'en-tête : « Suspendre » en contour marron (btn-outline-secondary),
 * « Résilier » en simple lien marron souligné — ni rouge ni orange. */
.bocage-subscriptions .bsub-btn-terminate {
    color: var(--bs-secondary);
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.bocage-subscriptions .bsub-btn-terminate:hover,
.bocage-subscriptions .bsub-btn-terminate:focus {
    color: var(--bs-primary);
}

/* Étapes de la paire : frise horizontale (verticale sur mobile). Chaque étape
 * trace le trait qui la relie à la suivante ; `.is-reached` le colore tant que
 * l'étape suivante n'est pas une échéance future. */
.bocage-subscriptions .bsub-steps {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}
.bocage-subscriptions .bsub-step {
    position: relative;
    flex: 1 1 0;
    min-width: 7.5rem;
    padding: 1.75rem .25rem 0;
    text-align: center;
}
.bocage-subscriptions .bsub-step-dot {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border: 2px solid var(--bsub-line);
    border-radius: 50%;
    background-color: #fff;
}
.bocage-subscriptions .bsub-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 7.5px;
    left: calc(50% + 9px);
    width: calc(100% - 18px);
    height: 3px;
    background-color: var(--bsub-line);
}
.bocage-subscriptions .bsub-step.is-reached::after { background-color: var(--bs-primary); }
.bocage-subscriptions .bsub-step:is(.is-next, .is-future) .bsub-step-dot { border-color: var(--bs-primary); }
.bocage-subscriptions .bsub-step.is-done .bsub-step-dot {
    border-color: var(--bs-primary);
    box-shadow: inset 0 0 0 4px var(--bs-primary);
}
.bocage-subscriptions .bsub-step.is-failed .bsub-step-dot {
    border-color: var(--bs-danger);
    background-color: var(--bs-danger);
}
.bocage-subscriptions .bsub-step.is-muted .bsub-step-dot {
    border-color: var(--bsub-line);
    background-color: var(--bsub-line);
}
.bocage-subscriptions .bsub-step-date {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bs-secondary);
}
.bocage-subscriptions .bsub-step.is-done .bsub-step-date { color: var(--bs-primary); }
.bocage-subscriptions .bsub-step.is-failed :is(.bsub-step-date, .bsub-step-label) { color: var(--bs-danger); }
.bocage-subscriptions .bsub-step-label {
    display: block;
    margin-top: .15rem;
    font-size: .85rem;
}
.bocage-subscriptions .bsub-step.is-next .bsub-step-label { font-weight: 600; }
@media (max-width: 575.98px) {
    .bocage-subscriptions .bsub-steps {
        flex-direction: column;
        gap: 1.25rem;
        overflow: visible;
    }
    .bocage-subscriptions .bsub-step {
        min-width: 0;
        padding: 0 0 0 2rem;
        text-align: left;
    }
    .bocage-subscriptions .bsub-step-dot { top: 1px; left: 0; margin-left: 0; }
    .bocage-subscriptions .bsub-step:not(:last-child)::after {
        top: 19px;
        left: 7.5px;
        width: 3px;
        height: calc(100% + 1.25rem - 18px);
    }
    .bocage-subscriptions .bsub-thumb:not(.bsub-thumb-sm) { width: 88px; height: 88px; }
}

/* Historique : lien « Voir les détails », flèche pivotée une fois déplié. */
.bocage-subscriptions .bsub-details-toggle {
    color: var(--bs-primary);
    text-decoration: none;
}
.bocage-subscriptions .bsub-details-toggle:hover { color: var(--bs-secondary); }
/* inline-block : une icône en ligne ne pivote pas (transform sans effet). */
.bocage-subscriptions .bsub-details-toggle .bi {
    display: inline-block;
    transition: transform .15s ease;
}
/* Nom de la paire : base = sa largeur entière, donc le badge de statut passe
 * dessous dès que le nom complet ne tient pas à côté ; le nom ne passe à la
 * ligne que s'il dépasse seul la largeur. */
.bocage-subscriptions .bsub-past-name {
    flex: 1 1 auto;
    min-width: 0;
}
.bocage-subscriptions .bsub-details-toggle[aria-expanded="true"] .bi { transform: rotate(90deg); }

/* =============================================================================
 * RETOURS MOBILE (RENTAL-6916)
 * ========================================================================== */

/* -----------------------------------------------------------------------------
 * 1. CENTRAGE — « marge plus grande à droite » sur tout le site.
 * Le style.css compilé contient `* { max-width: 100% }` (utilitaires du thème
 * ziqy). Une `.row` Bootstrap déborde de son parent d'une demi-gouttière de
 * CHAQUE côté (marges négatives) ; bridée à 100 % de ce parent, elle ne garde
 * que la marge gauche : tout son contenu glisse d'une demi-gouttière vers la
 * gauche, d'où 24 px de plus à droite en mobile (footer, connexion, panier,
 * livraison…). On rend aux rangées leur largeur Bootstrap : `.row` (0,1,0) bat
 * `*` (0,0,0) quel que soit l'ordre des feuilles.
 * -------------------------------------------------------------------------- */
.row { max-width: none; }

/* Pagination (PLP) : 15 liens sur une ligne non repliable débordaient de
 * l'écran (page large de 545 px en 390 px) — autre source de décentrage. */
.pagination {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: .5rem;
}

/* -----------------------------------------------------------------------------
 * 2. CONNEXION — « Connexion à votre compte » et « Pas encore de compte ?
 * Inscription » partagent une ligne flex non repliable (vue cœur
 * auth/connexion-form) : en mobile chacun se tassait sur 2-3 lignes, décalés
 * l'un de l'autre. Repliable : une ligne quand ça tient, sinon l'invitation
 * passe dessous, alignée à gauche sur le titre. Couvre aussi le tunnel.
 * -------------------------------------------------------------------------- */
.connexion-form > .row > .d-flex:first-child {
    flex-wrap: wrap;
    column-gap: 1rem;
    row-gap: .25rem;
}

/* -----------------------------------------------------------------------------
 * 3. FILTRES DE CATÉGORIE (mobile) — sélection multiple sans fermer la fenêtre.
 * merchant.js retient les cases cochées dans l'offcanvas et ajoute ce pied :
 * « Afficher les résultats » applique tout d'un coup (aussi à la fermeture).
 * Pied hors du `.offcanvas-body` défilant : toujours visible.
 * -------------------------------------------------------------------------- */
.category-filters-offcanvas .bocage-filters-footer {
    flex-shrink: 0;
    padding: 1rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    background-color: #fff;
}
.category-filters-offcanvas .bocage-filters-apply {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem !important;
}

/* -----------------------------------------------------------------------------
 * 4. PDP — réassurance (mobile/tablette, colonne unique < 992px).
 * Elle tenait en 4 colonnes de 77 px (« savoir-faire » coupé en trois) :
 * désormais carré 2 × 2. Sa place — sous le CTA « Louer » et les vignettes,
 * avant l'accordéon — vient du réordonnancement de la PDP (RENTAL-6836,
 * `.bpdp-layout`), dont la ligne de vignettes laisse 1rem au-dessus d'elle.
 * Sans vignettes (produit à image unique), le bloc beige touchait le CTA :
 * même écart de 1rem.
 * -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .product-item-section .bpdp-layout:not(:has(.product-thumbnails-grid)) .reusable { margin-top: 1rem; }

    .product-item-section .reusable .custom-reinsurance-section {
        padding: 1.25rem .75rem !important;
    }
    /* `d-flex` du markup est en !important. */
    .product-item-section .reusable .custom-reinsurance-section .crein-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem .75rem;
    }
    /* Annule l'échelle .9 et les marges/paddings (my-4, px-4) du réglage desktop. */
    .product-item-section .reusable .custom-reinsurance-section .crein-item {
        transform: none;
        margin: 0 !important;
        padding: 0 !important;
    }
    .product-item-section .reusable .custom-reinsurance-section .crein-img img { height: 64px; }
}

/* -----------------------------------------------------------------------------
 * 5. PANIER
 * -------------------------------------------------------------------------- */

/* 5.a « Qté : 1 » retiré (desktop et mobile). Ce libellé statique ne sort que
 * quand la quantité n'est pas modifiable — pour Bocage, toujours (abonnement
 * sans multi-quantité) — et vaut donc toujours 1. Le sélecteur +/−, s'il
 * revenait, resterait visible. */
.cart-product-card .cart-qty-control:has(> .cart-qty-static),
.cart-product-card .cart-qty-static {
    display: none !important;
}

/* 5.b Livraison (mobile, cartes en pleine largeur) : icône et texte centrés.
 * Seul l'en-tête de carte (label) est centré ; le bloc point relais qui
 * s'ouvre dessous reste aligné à gauche. */
@media (max-width: 767.98px) {
    .cart-delivery-mode-card label { text-align: center; }
    .cart-delivery-mode-card .cart-delivery-mode-icon {
        margin-left: auto;
        margin-right: auto;
    }
}

/* 5.c Détail de l'abonnement (mobile) : « date de début | Retour / Achat
 * possible le … | ∞ Illimité » tenait sur une ligne en 3 colonnes de ~80 px.
 * Sous 576px, frise VERTICALE : les trois infos l'une sous l'autre, le trait
 * horizontal devenant un trait vertical sous la puce de départ. Mêmes trait
 * (3px, primary à 25 %) et puce (8px) que la frise d'origine. */
@media (max-width: 575.98px) {
    .cart-product-period .cart-period-dates-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0 !important;
    }
    .cart-product-period .cart-period-dates-row > .flex-grow-1 {
        position: relative;
        display: block !important;
        align-self: stretch;
        min-height: 1.25rem;
        padding: .35rem 0 .35rem 1rem;
    }
    .cart-product-period .cart-period-dates-row > .flex-grow-1::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 2.5px;
        width: 3px;
        background-color: var(--bs-primary);
        opacity: .25;
    }
    .cart-product-period .cart-period-dates-row > .flex-grow-1 > .bg-primary { display: none; }
    .cart-product-period .cart-period-return {
        display: block;
        text-align: left !important;
    }
    /* Sans date d'épisode, la flèche du thème pointe vers la date de fin, dessous. */
    .cart-product-period .cart-period-dates-row > .flex-grow-1 > .bi-arrow-right {
        display: inline-block;
        transform: rotate(90deg);
    }
}

/* 5.d Nom du produit réduit : 2rem → 1.5rem (1.25rem en mobile, 5.e). Il
 * hérite de la règle « TITRES DE PAGE » plus haut, d'où le même préfixe
 * `:is()` (spécificité supérieure) et les !important. */
:is(.theme-rental2026, [data-gjs-type]) .cart-product-card .cart-product-title.page-heading {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
}
/* Prix « 30 €/mois » : fs-4 du markup (~1.3–1.5rem, !important) → 1.125rem,
 * en dessous du nom. */
.cart-product-card .cart-price-amount { font-size: 1.125rem !important; }

/* 5.e Ligne de produit en mobile (< 768px). Le thème y empilait image, nom
 * puis prix + corbeille, laissant vide la place à droite de l'image. Grille
 * « image | nom | corbeille », comme le panier actuel de Bocage : le nom
 * occupe l'espace à droite de l'image, la corbeille passe en haut à droite
 * face à l'image, le prix vient sous le nom. `.cart-product-actions` (prix +
 * corbeille) passe en `display: contents` pour que ses deux enfants se
 * placent séparément. Utilitaires du markup (d-flex, gap-3, align-items-*)
 * en !important. Au-delà de 768px, la rangée du thème fait déjà ainsi. */
@media (max-width: 767.98px) {
    .cart-product-card .cart-product-main {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: .5rem .75rem !important;
        align-items: start !important;
    }
    .cart-product-card .cart-product-visual {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    .cart-product-card .cart-product-info {
        grid-column: 2;
        grid-row: 1;
    }
    .cart-product-card .cart-product-actions { display: contents !important; }
    .cart-product-card .cart-actions-main {
        grid-column: 2 / span 2;
        grid-row: 2;
        align-items: flex-start !important;
    }
    /* Remontée d'un quart de bouton : icône centrée sur la 1re ligne du nom. */
    .cart-product-card .cart-remove-button {
        grid-column: 3;
        grid-row: 1;
        margin-top: -.375rem;
    }
    :is(.theme-rental2026, [data-gjs-type]) .cart-product-card .cart-product-title.page-heading {
        font-size: 1.25rem !important;
    }
}

/* -----------------------------------------------------------------------------
 * INFOBAR BOCAGE — bloc custom-infobar (RENTAL-6975, classes cinfobar-*). Cf. merchant.js.
 * 1. DÉFILEMENT en version réduite (< 992 px, seuil du header Bocage) : merchant.js pose
 *    .cinfobar-marquee et recopie le texte (copies aria-hidden) ; la piste se décale de la
 *    moitié de sa largeur puis repart → boucle sans à-coup. Pause au survol et au focus
 *    clavier ; aucun défilement si l'utilisateur a demandé à réduire les animations.
 * 2. BANDEAU FIXE (réglage « Fixer le bandeau à l'écran ») : le thème rend déjà tout
 *    #header-wrapper sticky (top: 0). Un bandeau NON fixé qui ouvre le header est sorti de
 *    l'écran en remontant le wrapper de sa hauteur (mesurée par merchant.js) : le header
 *    reste collé, le bandeau part avec la page. Posé dans le corps d'une page, c'est
 *    l'enveloppe du bloc (posée par le builder) qui colle, juste sous le header.
 * Dans le builder, la vue ne pose ni data-cinfobar ni data-cinfobar-sticky : rien ne s'applique.
 * -------------------------------------------------------------------------- */
.custom-infobar-section .cinfobar-viewport { overflow: hidden; }

/* Liste saisie dans le bandeau : items en ligne (sans puce), espacés, sans le retrait ni la
 * marge basse du thème. Marges symétriques : la ligne reste centrée, même sur deux lignes ;
 * un item ne se coupe pas, le retour à la ligne se fait entre deux items. */
.custom-infobar-section .cinfobar-item :is(ul, ol) {
    margin-bottom: 0;
    padding-left: 0;
}
.custom-infobar-section .cinfobar-item li {
    display: inline;
    margin: 0 1rem;
    white-space: nowrap;
}

.custom-infobar-section.cinfobar-marquee .cinfobar-viewport {
    max-width: none;            /* pleine largeur : le texte entre et sort par les bords de l'écran */
    padding-left: 0;
    padding-right: 0;
}
/* max-width: none (piste et texte) : le thème plafonne tout élément à 100 % (`* { max-width: 100% }`).
 * Plafonné, un texte plus large que l'écran déborde de sa boîte et la copie suivante, posée au bout
 * de cette boîte, le recouvre ; la largeur mesurée par merchant.js serait aussi fausse. */
.custom-infobar-section.cinfobar-marquee .cinfobar-track {
    display: flex;
    width: max-content;
    max-width: none;
    animation: cinfobar-defile var(--cinfobar-duree, 20s) linear infinite;
    will-change: transform;
}
.custom-infobar-section.cinfobar-marquee .cinfobar-item {
    flex: none;
    max-width: none;
    white-space: nowrap;
    padding-right: 3rem;        /* écart entre deux passages du texte */
}
/* Une seule ligne : paragraphes et listes saisis mis bout à bout, retours à la ligne ignorés. */
.custom-infobar-section.cinfobar-marquee .cinfobar-item :is(p, div, ul, ol) { display: inline; margin: 0; }
.custom-infobar-section.cinfobar-marquee .cinfobar-item br { display: none; }
/* Liste : les marges des items espacent déjà deux passages → même écart partout. */
.custom-infobar-section.cinfobar-marquee .cinfobar-item:has(li) { padding-right: 0; }
.custom-infobar-section.cinfobar-marquee:hover .cinfobar-track,
.custom-infobar-section.cinfobar-marquee:focus-within .cinfobar-track { animation-play-state: paused; }

@keyframes cinfobar-defile {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .custom-infobar-section.cinfobar-marquee .cinfobar-track { animation: none; }
}

/* Header : wrapper remonté de la hauteur du ou des bandeaux non fixés qui l'ouvrent.
 * Id + classe : l'emporte sur le `top: 0 !important` du thème (id seul). */
#header-wrapper.cinfobar-offset { top: calc(-1 * var(--cinfobar-offset, 0px)) !important; }

/* Corps de page : l'enveloppe du bloc colle sous la partie visible du header (--cinfobar-top),
 * sous le header lui-même (z-index 1030) et son méga sous-menu (1031). */
@media (max-width: 991.98px) {
    #body-wrapper div:has(> .custom-infobar-section:is([data-cinfobar-sticky="mobile"], [data-cinfobar-sticky="both"])) {
        position: sticky;
        top: var(--cinfobar-top, 0px);
        z-index: 1020;
    }
}
@media (min-width: 992px) {
    #body-wrapper div:has(> .custom-infobar-section:is([data-cinfobar-sticky="desktop"], [data-cinfobar-sticky="both"])) {
        position: sticky;
        top: var(--cinfobar-top, 0px);
        z-index: 1020;
    }
}
