/* ============================================================
 * mobile-ux.css — Refonte UX & Mobile-First
 * Auteur : Nolane Caliari (stagiaire BUT)
 * Charg le APRS style.css pour surcharger les rgles globales.
 *
 * Principes :
 *  - Mobile-first (les rgles mobiles sont la base, le desktop est
 *    une amlioration via media queries min-width).
 *  - Cibles tactiles  44px partout.
 *  - Aucun dfilement horizontal possible.
 *  - Hover remplac par interactions tactiles compatibles.
 *  - Anti Layout-Shift (CLS) sur images, polices, sticky.
 *  - Respect strict de prefers-reduced-motion.
 * ============================================================ */

/* ---------- 0. RESET MOBILE-FIRST DURCI ---------- */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

img, picture, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tap-highlight discrte */
a, button, [role="button"], input, select, textarea, label {
  -webkit-tap-highlight-color: rgba(45, 106, 79, 0.18);
}

/* ---------- 1. SKIP-LINK ACCESSIBILIT ---------- */

.skip-to-content {
  position: absolute;
  left: 8px;
  top: -200px;
  z-index: 10000;
  background: var(--vert);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-to-content:focus {
  top: 8px;
  outline: 3px solid var(--sucre);
  outline-offset: 2px;
}

/* ---------- 2. FOCUS VISIBLE GLOBAL ---------- */

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sucre);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 3. TOUCH TARGETS  44px ----------
 * Cibles les boutons "primary" (CTA) et la nav, PAS les petits boutons
 * d'action dans les listings (catalogue, panier...) qui doivent rester
 * compacts visuellement. */

.icon-btn,
.btn-primary,
.btn-outline,
nav a,
.header-select {
  min-height: 44px;
}

.icon-btn {
  min-width: 44px;
  padding: 10px 12px;
}

nav ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
}

/* Exception : boutons des cards catalogue (compacts par design) */
.catalogue-card .add-to-cart-btn,
.catalogue-card .buy-now-btn {
  min-height: 0;
}

/* ---------- 4. HEADER MOBILE-FIRST + BURGER ---------- */

/* Bouton burger : cach en desktop, affich en mobile */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--vert);
  transition: background-color 0.2s;
}

.nav-burger:hover,
.nav-burger:focus-visible {
  background: rgba(45, 106, 79, 0.08);
}

.nav-burger svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.nav-burger[aria-expanded="true"] .nav-burger__open { display: none; }
.nav-burger[aria-expanded="false"] .nav-burger__close { display: none; }

/* Mobile + tablette + petits écrans PC : menu burger (desktop large à partir de 1280px) */
@media (max-width: 1279px) {
  /* Safe-area iOS : padding-top sur le body pour que le header sticky
     ne soit pas coll  la barre du navigateur */
  body {
    padding-top: env(safe-area-inset-top);
  }

  /* Forcer la hauteur du header pour qu'il reste compact */
  body > header:not(.partners-hero) {
    height: auto !important;
    min-height: 56px !important;
    padding: 6px 14px !important;
    padding-top: calc(6px + env(safe-area-inset-top)) !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    overflow: visible;
    z-index: 10060 !important;
  }

  .nav-burger {
    display: inline-flex;
    order: 3;
    z-index: 10061;
    pointer-events: auto;
  }

  body.nav-open main {
    pointer-events: none;
  }

  /* Logo : ne pas écraser l'emblème (éviter flex:1 + min-width:0) */
  .logo { gap: 8px; flex: 0 0 auto !important; min-width: auto !important; width: auto !important; }
  body > header:not(.partners-hero) .logo-mark {
    display: block !important;
    flex-shrink: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 4px 0 !important;
    overflow: visible !important;
    background: none !important;
    line-height: normal !important;
  }
  body > header:not(.partners-hero) .logo-img {
    height: 56px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
  }
  .logo-title {
    font-size: 0.92rem !important;
    line-height: 1.28 !important;
    white-space: nowrap;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .logo-tagline { display: none !important; }

  /* CACHE COMPLETEMENT la nav desktop ET tout fragment dropdown
     (au cas o le menu  propos serait detache visuellement) */
  header > nav,
  header > nav *,
  header .nav-about-item,
  header .nav-about-menu,
  header .nav-about-submenu,
  header .nav-about-trigger,
  header .header-icons,
  /* IMPORTANT : app.js cree son propre menu .header-actions-menu avec
     son propre burger (summary.header-actions-trigger). On le masque
     car notre .nav-burger + drawer mobile-ux remplace dj cette fonction. */
  header .header-actions-menu,
  header .header-actions-trigger,
  header .header-actions-panel {
    display: none !important;
    visibility: hidden !important;
  }

  /* Drawer plein cran */
  body.nav-open { overflow: hidden; }

  .mobile-drawer {
    position: fixed;
    inset: 60px 0 0 0;
    z-index: 10050;
    background: var(--blanc);
    transform: translateX(100%);
    transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px 80px;
    visibility: hidden;
  }

  body.nav-open .mobile-drawer {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  }

  .mobile-drawer__group {
    border-bottom: 1px solid var(--creme-fonce);
    padding: 8px 0;
  }

  .mobile-drawer__group:last-child {
    border-bottom: none;
  }

  .mobile-drawer__heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vert-clair);
    margin: 8px 4px;
  }

  .mobile-drawer__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 8px;
    min-height: 52px;
    font-size: 1.02rem;
    color: var(--texte);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
  }

  .mobile-drawer__link:active,
  .mobile-drawer__link:focus-visible {
    background: rgba(45, 106, 79, 0.07);
  }

  .mobile-drawer__link svg {
    width: 22px;
    height: 22px;
    stroke: var(--vert);
    fill: none;
    stroke-width: 1.8;
    flex-shrink: 0;
  }

  .mobile-drawer__link[aria-current="page"] {
    color: var(--vert);
    font-weight: 600;
    background: rgba(82, 183, 136, 0.08);
  }

  .mobile-drawer__badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--terracotta);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-drawer__tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 8px 0;
  }

  .mobile-drawer__select {
    width: 100%;
    min-height: 48px;
    border: 1.5px solid var(--creme-fonce);
    border-radius: 10px;
    padding: 0 14px;
    background: #fff;
    font: inherit;
    color: var(--texte);
  }

  .mobile-drawer__select:focus-visible {
    border-color: var(--vert);
    outline: 3px solid var(--sucre);
    outline-offset: 1px;
  }

  /* Backdrop derrire le drawer */
  .mobile-drawer-backdrop {
    position: fixed;
    inset: 60px 0 0 0;
    background: rgba(0, 0, 0, 0.32);
    z-index: 10040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  body.nav-open .mobile-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 1280px) {
  /* Le drawer mobile n'existe pas en desktop large */
  .mobile-drawer,
  .mobile-drawer-backdrop,
  .nav-burger { display: none !important; }
}

/* Ajustement de la position du drawer aprs hauteur header mobile */
@media (max-width: 1279px) {
  .mobile-drawer {
    inset: calc(56px + env(safe-area-inset-top)) 0 0 0 !important;
  }
  .mobile-drawer-backdrop {
    inset: calc(56px + env(safe-area-inset-top)) 0 0 0 !important;
  }
}

/* ============================================================
 * CORRECTIFS CIBLES PAR PAGE (mobile)
 * ============================================================ */

/* ---------- HERO INDEX : image dédiée + texte en dessous (tablette / mobile) ---------- */
.hero-bg {
  display: none;
}

@media (max-width: 1023px) {
  .hero {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    background-color: #1a3d32 !important;
    background-image: none !important;
  }

  .hero-bg {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    order: 0 !important;
    height: clamp(320px, 64svh, 520px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #1a3d32 !important;
  }

  .hero-bg picture,
  .hero-bg__img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Colibri (haut) + panneau bois entiers ; bas du livre peut être légèrement coupé */
  .hero-bg__img {
    object-fit: cover !important;
    object-position: 38% 54% !important;
  }

  .hero::before {
    display: none !important;
  }

  .hero-image,
  .hero-image-placeholder {
    display: none !important;
  }

  .hero-deco-cercle,
  .hero-deco-cercle2,
  .hero-showcase,
  .hero-nikou,
  .hero-book,
  .hero-book-cover,
  .coup-coeur-nikou-deco {
    display: none !important;
  }

  .hero-texte {
    position: relative !important;
    order: 2 !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(14px, 3vw, 20px) clamp(14px, 4vw, 28px) clamp(16px, 3vw, 22px) !important;
    background: rgba(253, 246, 227, 0.94) !important;
    border: none !important;
    border-top: 1px solid rgba(219, 206, 170, 0.9) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .hero h1 {
    font-size: clamp(1.28rem, 3.8vw, 1.65rem) !important;
    margin-bottom: 6px !important;
    line-height: 1.12 !important;
  }

  .hero-desc {
    font-size: clamp(0.78rem, 2.2vw, 0.9rem) !important;
    line-height: 1.45 !important;
    margin-bottom: 8px !important;
  }

  .hero-motto {
    font-size: 0.76rem !important;
    margin: 0 0 12px !important;
  }

  .hero-tag {
    margin-bottom: 8px !important;
    font-size: 0.62rem !important;
    padding: 3px 8px !important;
    letter-spacing: 1px !important;
  }

  .hero-ctas {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 0 !important;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    flex: 1 1 12rem;
    justify-content: center;
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
    min-height: 40px !important;
  }
}

@media (max-width: 768px) {
  .hero-bg {
    height: clamp(300px, 60svh, 480px) !important;
  }

  .hero-bg__img {
    object-position: 34% 50% !important;
  }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.18rem !important; }
  .hero-motto { display: none !important; }
}

/* ---------- CATALOGUE : grille  2 colonnes + boutons compacts ----------
 * En mobile on passe  2 colonnes (au lieu de 3) pour donner plus de
 * place  l'image ET aux boutons d'action en dessous. */
@media (max-width: 767px) {
  .catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 380px) {
  .catalogue-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .catalogue-card {
    border-radius: 14px;
  }

  .catalogue-card {
    container-type: inline-size;
    container-name: catalogue-card;
  }

  .catalogue-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    align-items: stretch;
    margin-top: 6px;
  }

  /* Bouton proportionnel à la largeur de la carte (image produit) */
  .catalogue-actions .add-to-cart-btn {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100%;
    padding: clamp(4px, 2.6cqi, 8px) clamp(5px, 3.4cqi, 11px) !important;
    font-size: clamp(0.56rem, 4.2cqi, 0.72rem) !important;
    height: auto !important;
    min-height: clamp(24px, 17cqi, 34px) !important;
    border-radius: 999px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 2px 8px rgba(27, 67, 50, 0.18) !important;
  }
}

/* Grille 3 colonnes : cartes étroites → bouton encore plus compact */
@media (max-width: 767px) {
  .catalogue-actions .add-to-cart-btn {
    padding: clamp(3px, 2.4cqi, 7px) clamp(4px, 3cqi, 9px) !important;
    font-size: clamp(0.54rem, 3.9cqi, 0.68rem) !important;
    min-height: clamp(22px, 16cqi, 30px) !important;
  }
}

@media (max-width: 420px) {
  .catalogue-actions .add-to-cart-btn {
    min-height: clamp(20px, 15cqi, 28px) !important;
  }
}

/* ---------- PAGE  PROPOS : image hero correctement traite ---------- */
@media (max-width: 900px) {
  .about-entry-hero {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .about-entry-hero-content {
    margin-top: 0 !important;
    height: auto !important;
    display: block !important;
    flex: none !important;
  }

  .about-entry-hero-body {
    display: grid !important;
    flex: none !important;
  }

  .about-entry-hero-content .about-renata-contact {
    margin: 4px 0 0 !important;
  }

  /* Image en haut : photo entière, sans recadrage forcé */
  .about-entry-hero-media {
    order: -1;
    margin: 0 0 14px !important;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: auto;
    background: transparent;
    pointer-events: none;
  }

  .about-entry-hero-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
    display: block;
  }
}

/* ---------- PAGE A PROPOS MAISON : pas de chevauchement de cards ---------- */
@media (max-width: 900px) {
  /* Cards "Ce qui nous guide" : s'assurer qu'il n'y a pas de border-top
     qui dpasse hors de la card */
  .about-maison-page .maison-pillar,
  .about-maison-page .pillar-card,
  .about-maison-page .pillar {
    margin-bottom: 16px;
    overflow: hidden;
  }

  /* Bloc maison-hero (citation + image) : ne pas couper le contenu */
  .maison-hero__card {
    grid-template-columns: 1fr !important;
    padding: 18px !important;
  }

  .maison-hero__banner {
    width: 100%;
    max-height: 220px !important;
    aspect-ratio: 16 / 10;
  }

  .maison-hero__intro {
    gap: 14px !important;
  }

  .maison-hero__motto p {
    font-size: 1.15rem !important;
  }

  .maison-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .maison-hero__actions .btn-primary,
  .maison-hero__actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- BLOC TITRE CHAPITRE : adapter en mobile ---------- */
@media (max-width: 700px) {
  .about-chapter-hero {
    margin: 16px 4% 14px;
  }

  .about-chapter-hero__card {
    padding: 18px 18px 20px !important;
    gap: 6px !important;
  }

  .about-chapter-hero__number {
    font-size: 2.8rem !important;
    text-align: left;
    margin-bottom: 4px;
  }

  .about-chapter-hero__title {
    font-size: 1.65rem !important;
  }
}

/* ---------- ICN-BTN en desktop : aligner verticalement ---------- */
@media (min-width: 901px) {
  .icon-btn { min-height: 38px; }
}

/* ---------- BOUTONS .btn-outline SUR FOND CLAIR ----------
 * Le style global .btn-outline est conu pour le hero sombre (texte blanc).
 * Sur les pages claires (about, maison, partenaires...) il devient invisible.
 * On force ici un style vert lisible sur tout fond clair. */
.maison-cta .btn-outline,
.maison-hero__actions .btn-outline,
.about-maison-page .btn-outline,
.about-partners-page .btn-outline,
.page-shell .btn-outline,
section.maison-cta .btn-outline {
  background: #fff;
  color: var(--vert);
  border: 1.5px solid rgba(45, 106, 79, 0.4);
}

.maison-cta .btn-outline:hover,
.maison-hero__actions .btn-outline:hover,
.about-maison-page .btn-outline:hover,
.about-partners-page .btn-outline:hover,
.page-shell .btn-outline:hover {
  color: #1e4d3a;
  border-color: var(--vert);
  background: rgba(45, 106, 79, 0.06);
}

/* ============================================================
 * HERO ACCUEIL — mobile / tablette uniquement (≤ 1023px)
 * Transition premium hero → stats-band. Desktop : voir reset 1024px+.
 * ============================================================ */

/* Retirer Nikou en bas à droite du hero d'accueil (toutes tailles) */
.hero .hero-nikou {
  display: none !important;
}

.hero-image .hero-showcase {
  justify-content: center;
}

@media (max-width: 1023px) {
  .hero {
    position: relative;
  }

  /* Le fondu bas du hero est masqué : le texte est dans le hero en dessous de l'image */
  .hero::after {
    display: none !important;
    content: none !important;
  }

  .hero-texte {
    position: relative;
    z-index: 2;
    overflow: visible !important;
    border-top: none !important;
    box-shadow: none !important;
  }

  /* Pas de fondu sur l'image : il masquait le panneau « Les Éditions du Sucrier » */
  .hero-texte::before {
    display: none !important;
    content: none !important;
  }

  /* Bandeau chiffres : courbe + léger relief (effet premium) */
  .stats-band {
    position: relative;
    z-index: 3;
    margin-top: -1px;
    border-top: none !important;
    border-radius: 22px 22px 0 0;
    background:
      radial-gradient(ellipse 140% 64px at 50% -6px, rgba(45, 106, 79, 0.09) 0%, transparent 65%),
      var(--creme-fonce);
    box-shadow:
      0 -18px 44px rgba(7, 33, 28, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }

  .stats-band::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(45, 106, 79, 0.2) 22%,
      rgba(45, 106, 79, 0.36) 50%,
      rgba(45, 106, 79, 0.2) 78%,
      transparent 100%
    );
  }

  .hero .btn-outline,
  .hero-ctas .btn-outline {
    background: #fff !important;
    color: var(--vert) !important;
    border: 1.5px solid rgba(45, 106, 79, 0.45) !important;
    font-weight: 600;
  }

  .hero .btn-outline:hover,
  .hero-ctas .btn-outline:hover {
    background: rgba(45, 106, 79, 0.08) !important;
    color: #1e4d3a !important;
    border-color: var(--vert) !important;
  }
}

@media (max-width: 768px) {
  .hero-texte::before {
    height: clamp(40px, 10vw, 60px) !important;
  }

  .stats-band {
    border-radius: 18px 18px 0 0;
    box-shadow:
      0 -12px 32px rgba(7, 33, 28, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
}

/* ---------- Empcher tout dpassement horizontal global ---------- */
body { max-width: 100vw; overflow-x: clip; }
main, section, header, footer, .page-shell {
  max-width: 100%;
}

/* ============================================================
 * PAGE PARTENAIRES  refonte des sections
 * ============================================================ */

/* <header class="partners-hero"> ne doit pas hériter du sticky/z-index du header site
   (sinon le carrousel passe au-dessus du menu mobile, z-index 100 > drawer 99). */
header.partners-hero {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none;
}

body.nav-open header.partners-hero {
  z-index: 0 !important;
}

/* Bloc vert hero : agrandi pour que tout le texte tienne, carrousel centr */
.partners-hero {
  padding: clamp(72px, 8vw, 110px) clamp(28px, 4vw, 56px) clamp(60px, 6vw, 88px) !important;
}

.partners-hero__grid {
  align-items: center !important;
  gap: clamp(28px, 4vw, 48px) !important;
}

.partners-hero__copy {
  align-self: center !important;
}

.partners-hero__metrics {
  align-self: center !important;
  width: 100%;
}

/* Carrousel centr et un peu plus haut pour respirer */
.partners-hero__carousel-viewport {
  height: 180px !important;
}

.partners-hero__slide {
  min-height: 180px !important;
  padding: 22px 18px !important;
  gap: 12px !important;
}

.partners-hero__slide-note {
  max-width: 22rem !important;
  line-height: 1.5 !important;
}

@media (max-width: 900px) {
  .partners-hero {
    padding: 32px 20px 38px !important;
  }
  .partners-hero__grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .partners-hero__carousel-viewport {
    height: 160px !important;
  }
  .partners-hero__slide {
    min-height: 160px !important;
  }
}

/* Section labels (distinctions reues) : violet/jaune valorisant */
.partners-panel--labels {
  background: linear-gradient(165deg, #fff9e8 0%, #fff 60%) !important;
  border: 1px solid rgba(212, 160, 23, 0.25) !important;
}

.partners-panel--labels .partners-panel__title {
  color: #8a6b00;
}

.partners-panel--labels .partners-logo-item {
  background: linear-gradient(165deg, #fffdf3 0%, #fff5dd 100%);
  border-color: rgba(212, 160, 23, 0.3);
}

/* Section associations : vert clair valorisant */
.partners-panel--associations {
  background: linear-gradient(165deg, #f3faf6 0%, #fff 60%) !important;
  border: 1px solid rgba(82, 183, 136, 0.22) !important;
}

.partners-panel--associations .partners-panel__title {
  color: var(--vert);
}

.partners-panel--associations .partners-logo-item {
  background: linear-gradient(180deg, #fbfdfb 0%, #f1f9f4 100%);
  border-color: rgba(82, 183, 136, 0.22);
}

/* Librairies : rangées compactes (MQ pleine largeur, GP+CA, puis FR+CY+SN) */
.partners-panel--bookshops .partners-bookshops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
}

.partners-panel--bookshops .partners-bookshops-layout > .partners-region-card--wide,
.partners-panel--bookshops .partners-bookshops-row {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.partners-panel--bookshops .partners-bookshops-row {
  display: grid;
  gap: 12px;
  align-items: stretch;
}

.partners-panel--bookshops .partners-bookshops-row--gp-ca {
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.85fr);
}

.partners-panel--bookshops .partners-bookshops-row--triplet {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partners-panel--bookshops .partners-region-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(240, 230, 200, 0.95);
  border-radius: 14px;
  min-height: 0;
}

.partners-panel--bookshops .partners-region-card--wide .partners-logo-grid--inline {
  display: grid !important;
  width: 100%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  justify-content: stretch;
}

.about-partners-page .partners-panel--bookshops .partners-region-card--wide .partners-logo-grid--inline > .partners-logo-item {
  min-height: 112px !important;
}

.about-partners-page .partners-panel--bookshops .partners-region-card--wide .partners-logo-grid--inline > .partners-logo-item img {
  max-height: 86px !important;
}

.partners-panel--bookshops .partners-region-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  text-align: left;
}

.partners-panel--bookshops .partners-region-card__title {
  text-align: left;
  font-size: 0.95rem;
  margin: 0;
}

.partners-panel--bookshops .partners-region-card__badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
}

.partners-panel--bookshops .partners-logo-grid--inline {
  display: grid !important;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: stretch;
}

.partners-panel--bookshops .partners-logo-grid--inline > .partners-logo-item {
  width: 100% !important;
  flex: none !important;
  min-height: 108px !important;
  padding: 12px 14px !important;
}

.partners-panel--bookshops .partners-logo-grid--inline > .partners-logo-item img {
  max-height: 80px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain;
}

.about-partners-page .partners-panel--bookshops .partners-logo-grid--inline > .partners-logo-item img {
  max-height: 80px !important;
}

.about-partners-page .partners-panel--bookshops .partners-logo-grid--inline > .partners-logo-item--boost img {
  max-height: 94px !important;
}

.partners-panel--bookshops .partners-region-card--compact .partners-logo-grid--inline {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

@media (max-width: 900px) {
  .partners-panel--bookshops .partners-region-card--wide .partners-logo-grid--inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .partners-panel--bookshops .partners-bookshops-row--gp-ca,
  .partners-panel--bookshops .partners-bookshops-row--triplet {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .partners-panel--bookshops .partners-region-card--wide .partners-logo-grid--inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .partners-panel--bookshops .partners-bookshops-row--triplet {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================================
 * AGRANDISSEMENT + AMLIORATION QUALIT VISUELLE DES LOGOS
 * (page partenaires uniquement)
 * ============================================================ */
.about-partners-page .partners-logo-item {
  flex: 0 0 190px !important;
  width: 190px !important;
  min-height: 130px !important;
  padding: 18px 20px !important;
  background: linear-gradient(180deg, #ffffff 0%, #faf6ec 100%) !important;
  border: 1px solid rgba(226, 214, 184, 0.9) !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-partners-page .partners-logo-item:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(45, 106, 79, 0.4) !important;
  box-shadow: 0 16px 36px rgba(27, 67, 50, 0.14) !important;
}

.about-partners-page .partners-logo-item img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 82px !important;
  object-fit: contain;
  image-rendering: auto;
}

/* Logos labels (or/jaune) un peu plus grands */
.about-partners-page .partners-logo-item--label {
  flex: 0 0 210px !important;
  width: 210px !important;
  min-height: 140px !important;
}

.about-partners-page .partners-logo-item--label img {
  max-height: 92px !important;
}

/* Logos institutionnels : encore plus mis en valeur */
.about-partners-page .partners-logo-grid--institutional .partners-logo-item {
  flex: 1 1 210px !important;
  min-width: 210px !important;
  max-width: 260px !important;
  min-height: 140px !important;
  padding: 20px 22px !important;
}

.about-partners-page .partners-logo-grid--institutional .partners-logo-item img {
  max-height: 90px !important;
}

/* Carte texte (NENA) : taille cohrente avec les autres */
.about-partners-page .partners-logo-item--text {
  background: linear-gradient(165deg, #fdfaf3 0%, #f5ecd9 100%) !important;
  border-color: rgba(212, 160, 23, 0.4) !important;
}

.about-partners-page .partners-logo-item--text .partners-logo-text {
  font-size: 1.1rem;
}

.about-partners-page .partners-logo-item--text .partners-logo-text small {
  font-size: 0.74rem;
}

/* Espacement entre les logos un peu plus arien */
.about-partners-page .partners-logo-grid {
  gap: 14px !important;
}

.about-partners-page .partners-logo-grid--institutional {
  gap: 18px !important;
}

/* Sur mobile, on garde un format raisonnable */
@media (max-width: 600px) {
  .about-partners-page .partners-logo-item {
    flex: 1 1 calc(50% - 8px) !important;
    width: auto !important;
    min-height: 110px !important;
    padding: 14px 16px !important;
  }
  .about-partners-page .partners-logo-item img {
    max-height: 64px !important;
  }
  .about-partners-page .partners-logo-grid--institutional .partners-logo-item {
    min-width: 0 !important;
    flex: 1 1 calc(50% - 8px) !important;
    min-height: 120px !important;
  }
}

/* Préfet & Alliance : mêmes cartes crème que les autres partenaires */
.about-partners-page .partners-logo-grid--institutional .partners-logo-item--prefet {
  flex: 1 1 240px !important;
  min-width: 220px !important;
  max-width: 300px !important;
  min-height: 150px !important;
  padding: 14px 16px !important;
}

.about-partners-page .partners-logo-grid--institutional .partners-logo-item--prefet img {
  max-height: 118px !important;
  width: 100% !important;
  object-fit: contain;
  object-position: center center;
}

.about-partners-page .partners-logo-grid--associations .partners-logo-item--alliance {
  flex: 1 1 210px !important;
  min-width: 210px !important;
  max-width: 260px !important;
}

.about-partners-page .partners-logo-grid--associations .partners-logo-item--alliance img {
  max-height: 82px !important;
}

.about-partners-page .partners-logo-item--boost img {
  max-height: 96px !important;
}

.about-partners-page .partners-logo-grid--institutional .partners-logo-item--boost img {
  max-height: 100px !important;
}

@media (max-width: 600px) {
  .about-partners-page .partners-logo-item--boost img {
    max-height: 72px !important;
  }
  .about-partners-page .partners-panel--bookshops .partners-logo-grid--inline > .partners-logo-item img {
    max-height: 68px !important;
  }
  .about-partners-page .partners-panel--bookshops .partners-logo-grid--inline > .partners-logo-item--boost img {
    max-height: 76px !important;
  }
}

/* Bloc texte pour les partenaires sans logo (ex. NENA Sngal) */
.partners-logo-item--text {
  background: linear-gradient(165deg, #fdfaf3 0%, #f5ecd9 100%) !important;
  border-color: rgba(212, 160, 23, 0.35) !important;
  text-align: center;
}

.partners-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--vert);
}

.partners-logo-text strong,
.partners-logo-item--text .partners-logo-text {
  font-family: var(--font-titre);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.partners-logo-text small {
  font-family: var(--font-corps);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--texte-clair);
  letter-spacing: 0;
  line-height: 1.35;
}

/* La page partenaires utilise toute la largeur disponible (avec marges utiles) */
.about-partners-page .partners-layout {
  width: 100%;
  max-width: none;
}

@media (min-width: 1200px) {
  .partners-logo-grid--institutional {
    gap: 18px !important;
  }
  .partners-logo-grid--institutional .partners-logo-item {
    flex: 1 1 200px;
    min-width: 200px;
    max-width: 260px;
  }
}

/* ---------- 5. CONTAINER FLUIDE & SAFE-AREA ---------- */

main, .page-shell {
  padding-left: max(env(safe-area-inset-left), 0px);
  padding-right: max(env(safe-area-inset-right), 0px);
}

/* Empcher le dbordement de tout enfant trop large */
main *,
.page-shell * {
  max-width: 100%;
}

/* Tableaux scrollables proprement */
table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- 6. CATALOGUE : FILTRES MOBILES EN DRAWER ---------- */

@media (max-width: 900px) {
  .catalogue-layout {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .filters-card {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--blanc);
    margin: 0 !important;
    padding: 60px 16px 96px !important;
    border-radius: 0 !important;
    transform: translateY(100%);
    transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
  }

  body.filters-open .filters-card {
    transform: translateY(0);
    visibility: visible;
  }

  body.filters-open { overflow: hidden; }

  .filters-card__close {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--creme);
    color: var(--texte);
    font-size: 1.4rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .filters-mobile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1.5px solid var(--vert);
    background: var(--blanc);
    color: var(--vert);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
  }

  .filters-mobile-trigger svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
  }

  /* Apply filters bouton sticky en bas du drawer */
  .filters-card__apply {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 16px -16px -96px;
    padding: 14px 16px;
    background: var(--blanc);
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 10px;
  }

  .filters-card__apply .btn-primary { flex: 1; }
}

@media (min-width: 901px) {
  .filters-card__close,
  .filters-mobile-trigger,
  .filters-card__apply { display: none !important; }
}

/* ---------- 7. FICHE LIVRE : STICKY CTA MOBILE ---------- */

.sticky-cta-mobile {
  display: none;
}

@media (max-width: 720px) {
  .sticky-cta-mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--blanc);
    border-top: 1px solid var(--creme-fonce);
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(0);
    transition: transform 220ms ease;
  }

  .sticky-cta-mobile.is-hidden {
    transform: translateY(110%);
  }

  .sticky-cta-mobile__info {
    min-width: 0;
    flex: 1;
  }

  .sticky-cta-mobile__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--texte);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sticky-cta-mobile__price {
    margin: 2px 0 0;
    font-size: 0.95rem;
    color: var(--vert);
    font-weight: 700;
  }

  .sticky-cta-mobile__btn {
    flex-shrink: 0;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--vert);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
  }

  /* Padding additionnel pour le footer ne soit pas mask sur fiche livre */
  body.has-sticky-cta {
    padding-bottom: 72px;
  }
}

/* ---------- 8. TOAST DE NOTIFICATION ---------- */

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  width: min(92vw, 360px);
}

.toast {
  pointer-events: auto;
  background: var(--vert);
  color: #fff;
  padding: 14px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 220ms ease, transform 220ms ease;
  font-size: 0.92rem;
  line-height: 1.35;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--error { background: var(--terracotta); }
.toast--info  { background: var(--texte); }
.toast--success { background: var(--vert); }

.toast svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.toast__action {
  margin-left: auto;
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 6px 8px;
  min-height: 36px;
}

@media (max-width: 720px) {
  .toast-stack {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
  body:not(.has-sticky-cta) .toast-stack {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* ---------- 9. FORMULAIRES MOBILE-FRIENDLY ---------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="date"],
textarea,
select {
  font-size: 16px; /* iOS empche le zoom auto si  16px */
  min-height: 48px;
  border-radius: 10px;
}

textarea {
  min-height: 96px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* ---------- 10. CHIFFRES & GRILLES RESPONSIVE ---------- */

@media (max-width: 600px) {
  .stats-band,
  .maison-stats,
  .partners-hero__metrics {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 380px) {
  .stats-band,
  .maison-stats {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- 11. SCROLLBAR DISCRTE ---------- */

@media (pointer: fine) {
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 106, 79, 0.25) transparent;
  }
  *::-webkit-scrollbar { width: 8px; height: 8px; }
  *::-webkit-scrollbar-thumb {
    background: rgba(45, 106, 79, 0.25);
    border-radius: 999px;
  }
}

/* ---------- 12. IMAGE LAZY PLACEHOLDER ---------- */

img[loading="lazy"] {
  background: linear-gradient(110deg,
    rgba(240, 230, 200, 0.4) 30%,
    rgba(240, 230, 200, 0.7) 50%,
    rgba(240, 230, 200, 0.4) 70%);
  background-size: 200% 100%;
}

/* ---------- 13. CTA AGE-FILTER PILLS (mise en avant catalogue) ---------- */

.age-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.age-quick-filters__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--creme-fonce);
  background: #fff;
  color: var(--texte);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}

.age-quick-filters__pill:hover,
.age-quick-filters__pill:focus-visible {
  border-color: var(--vert);
  color: var(--vert);
}

.age-quick-filters__pill.is-active {
  background: var(--vert);
  border-color: var(--vert);
  color: #fff;
}

/* ---------- 13b. FICHE LIVRE COMPACTE (tablette + mobile) ---------- */

@media (max-width: 1180px) {
  .book-detail-page .page-hero {
    padding: 10px 5% 8px !important;
  }

  .book-detail-page .page-hero h1 {
    font-size: clamp(1.2rem, 3.2vw, 1.5rem) !important;
    margin-bottom: 4px !important;
  }

  .book-detail-page .book-back-btn {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
  }

  .book-detail-layout {
    padding: 12px 5% 16px !important;
    gap: 14px !important;
    grid-template-columns: minmax(128px, 32vw) minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .book-detail-content h2 {
    font-size: clamp(1.22rem, 3vw, 1.55rem) !important;
    margin-bottom: 6px !important;
    line-height: 1.15 !important;
  }

  .book-detail-collection {
    font-size: 0.68rem !important;
    margin-bottom: 4px !important;
  }

  .book-detail-contributors {
    font-size: 0.82rem !important;
    margin-bottom: 6px !important;
  }

  .book-detail-price {
    font-size: 1.15rem !important;
    margin-bottom: 8px !important;
  }

  .book-detail-actions {
    margin-bottom: 10px !important;
  }

  .book-detail-tabs {
    margin-top: 4px !important;
  }

  .book-detail-tab {
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
  }

  .book-detail-page .qty-input {
    width: 2.75rem !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border-radius: 8px !important;
    padding: 4px 2px !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    -moz-appearance: textfield;
    appearance: textfield;
  }

  .book-detail-page .qty-btn {
    min-width: 36px !important;
    min-height: 36px !important;
  }
}

@media (max-width: 767px) {
  .book-detail-layout {
    grid-template-columns: 1fr !important;
  }

  .book-detail-media {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 72px !important;
    gap: 10px !important;
    align-items: start !important;
  }

  .book-detail-main-frame {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 3 / 4;
  }

  .book-detail-thumb-list {
    grid-column: 2 !important;
    grid-row: 1 !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    width: 72px !important;
    max-width: 72px !important;
    align-self: start !important;
  }

  .book-detail-thumb {
    border-radius: 6px !important;
  }

  .book-detail-thumb img {
    width: 100% !important;
    height: auto !important;
    max-height: 68px !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: contain !important;
  }

  .book-detail-content {
    margin-top: 0 !important;
  }

  .book-detail-page .page-hero h1 {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 480px) {
  .book-detail-page .page-hero {
    padding: 8px 4% 6px !important;
  }

  .book-detail-layout {
    padding: 10px 4% 14px !important;
  }

  .book-detail-media {
    grid-template-columns: minmax(0, 1fr) 64px !important;
    gap: 8px !important;
  }

  .book-detail-thumb-list {
    width: 64px !important;
    max-width: 64px !important;
    gap: 5px !important;
  }

  .book-detail-thumb img {
    max-height: 58px !important;
  }

  .qty-input {
    width: 2.5rem !important;
    min-height: 36px !important;
    border-radius: 8px !important;
  }
}

/* ---------- 14. PRINT FRIENDLY ---------- */

/* ============================================================
 * DESKTOP (≥ 1024px) — header + hero + stats comme version PC d'origine
 * ============================================================ */
@media (min-width: 1024px) {
  body > header:not(.partners-hero) {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: auto !important;
    min-height: 88px !important;
    max-height: none !important;
    padding: 12px 5% !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    overflow: visible !important;
    background: var(--blanc) !important;
    border-bottom: 1.5px solid var(--creme-fonce) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body > header:not(.partners-hero) .logo {
    width: auto !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    min-width: auto !important;
    overflow: visible !important;
    gap: 14px !important;
  }

  body > header:not(.partners-hero) .logo-mark {
    flex-shrink: 0 !important;
    overflow: visible !important;
  }

  body > header:not(.partners-hero) .logo-img {
    height: 56px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  body > header:not(.partners-hero) .logo-tagline {
    display: inline !important;
  }

  body > header:not(.partners-hero) > nav {
    display: block !important;
    visibility: visible !important;
    width: auto !important;
    order: unset !important;
    flex: 0 1 auto !important;
  }

  body > header:not(.partners-hero) .header-icons,
  body > header:not(.partners-hero) .header-tools {
    display: flex !important;
    visibility: visible !important;
    width: auto !important;
    order: unset !important;
    flex: 0 0 auto !important;
  }

  body > header:not(.partners-hero) .nav-burger {
    display: none !important;
  }

  body > header:not(.partners-hero) > nav ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 36px !important;
    width: auto !important;
    justify-content: flex-start !important;
  }

  body > header:not(.partners-hero) .header-icons {
    gap: 20px !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  body > header:not(.partners-hero) .icon-btn span:not(.panier-badge) {
    display: inline !important;
  }

  body > header:not(.partners-hero) .header-actions-menu,
  body > header:not(.partners-hero) .header-actions-trigger,
  body > header:not(.partners-hero) .header-actions-panel {
    display: none !important;
    visibility: hidden !important;
  }

  .hero::before {
    display: block !important;
    content: "" !important;
  }

  .hero::after {
    display: block !important;
    content: "" !important;
    height: clamp(100px, 18vh, 200px) !important;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, 0.05) 52%,
      rgba(255, 253, 248, 0.14) 66%,
      rgba(252, 248, 238, 0.32) 78%,
      rgba(248, 242, 228, 0.58) 88%,
      rgba(242, 234, 214, 0.82) 95%,
      var(--creme-fonce) 100%
    ) !important;
  }

  .hero-texte::before {
    display: none !important;
    content: none !important;
  }

  .hero ~ .stats-band {
    border-top: none !important;
  }

  .stats-band {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #e0d4b0 !important;
    box-shadow: none !important;
    background: var(--creme-fonce) !important;
  }

  .hero {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    flex-direction: row !important;
    justify-content: initial !important;
    align-items: stretch !important;
    min-height: 92vh !important;
    padding: 0 !important;
    overflow: hidden !important;
    background-color: #1a3d32 !important;
    background-image: url('images/site/home-bg-editions-sucrier-4k.webp') !important;
    background-size: cover !important;
    background-position: 40% 46% !important;
    background-repeat: no-repeat !important;
  }

  .hero-bg {
    display: none !important;
  }

  .hero-image,
  .hero-image-placeholder {
    display: block !important;
    min-height: 0 !important;
  }

  .hero-image-placeholder {
    background: transparent !important;
    min-height: 380px !important;
  }

  .hero-texte {
    order: unset !important;
    width: auto !important;
    max-width: 430px !important;
    margin: clamp(26px, 4.6vw, 48px) 4% clamp(26px, 4.6vw, 48px) 3% !important;
    padding: clamp(24px, 3.5vw, 34px) clamp(20px, 4vw, 30px) !important;
    align-self: center !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1), 0 2px 0 rgba(255, 255, 255, 0.32) inset !important;
    background: rgba(253, 246, 227, 0.93) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 2.9vw, 2.55rem) !important;
    margin-bottom: 16px !important;
  }

  .hero-desc {
    font-size: 0.93rem !important;
    margin-bottom: 30px !important;
  }

  .hero-motto {
    display: block !important;
    font-size: 0.9rem !important;
    margin: -14px 0 28px !important;
  }

  .hero-tag {
    margin-bottom: 28px !important;
    font-size: 0.75rem !important;
    padding: 6px 14px !important;
    letter-spacing: 2px !important;
  }

  .hero-ctas {
    flex-direction: row !important;
    gap: 14px !important;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    flex: unset !important;
    min-height: unset !important;
    padding: 14px 28px !important;
    font-size: 0.9rem !important;
    font-weight: inherit !important;
  }

  .hero .btn-outline,
  .hero-ctas .btn-outline {
    background: transparent !important;
    color: var(--vert) !important;
    border: 1.5px solid rgba(45, 106, 79, 0.35) !important;
    font-weight: 400 !important;
  }

  .hero .btn-outline:hover,
  .hero-ctas .btn-outline:hover {
    background: rgba(45, 106, 79, 0.06) !important;
    color: #1e4d3a !important;
    border-color: var(--vert) !important;
  }
}

/* Logo : voir logo-lockup.css */

@media print {
  header, footer, .mobile-drawer, .nav-burger,
  .sticky-cta-mobile, .toast-stack, .filters-mobile-trigger,
  .cookie-banner {
    display: none !important;
  }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
