/* =========================================================================
   Pumps & Valves — Fluids Dynamics
   Feuille de style principale
   Police : Poppins (Google Fonts)
   Couleurs : issues du logo — bleu #2A3991 et encre #0C1522
   ========================================================================= */

:root {
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Couleurs du logo */
  --brand:        #2A3991;
  --brand-600:    #24327f;
  --brand-700:    #1d2a6c;
  --brand-400:    #4353b5;
  --brand-300:    #6e7bcd;
  --brand-100:    #dde1f4;
  --brand-50:     #f2f4fb;

  --ink:          #0C1522;
  --ink-800:      #16223a;
  --ink-600:      #3a4560;
  --ink-400:      #6b7590;
  --ink-300:      #98a0b5;

  --line:         #e3e7f1;
  --bg:           #ffffff;
  --bg-soft:      #f5f7fc;
  --bg-softer:    #fafbfe;

  --ok:           #0f9d58;
  --warn:         #e8a33d;
  --err:          #d93025;

  --radius:       12px;
  --radius-lg:    18px;
  --shadow-sm:    0 1px 2px rgba(12,21,34,.06), 0 2px 8px rgba(12,21,34,.05);
  --shadow:       0 6px 24px -12px rgba(12,21,34,.28);
  --shadow-lg:    0 24px 60px -30px rgba(12,21,34,.45);

  --container:    1280px;
  --header-h:     92px;
}

/* ---------- Confort de lecture : mouvement réduit ---------------------- */
/* Neutralise toutes les animations/transitions (existantes et à venir) si
   le visiteur a demandé de réduire les animations dans son système. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--brand-700); }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.22; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 3.4vw, 42px); }
h2 { font-size: clamp(22px, 2.4vw, 32px); }
h3 { font-size: clamp(18px, 1.7vw, 22px); }
h4 { font-size: 16px; }
p  { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Boutons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; cursor: pointer; text-align: center;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-800); color: #fff; }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--brand-50); color: var(--brand-700); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { background: #fff; color: var(--brand); border-color: var(--brand-100); }
.btn--outline:hover { border-color: var(--brand); background: var(--brand-50); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; border-radius: 8px; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Barre supérieure ------------------------------------------ */
.topbar { background: var(--ink); color: #cdd3e2; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar__phones { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.topbar__phone .ico { width: 15px; height: 15px; color: var(--brand-300); }
.topbar__phone-txt { display: flex; flex-direction: column; line-height: 1.15; }
.topbar__phone-txt strong { font-weight: 600; font-size: 13.5px; }
.topbar__phone-txt em { font-style: normal; font-size: 11px; color: #8f99b4; }
.topbar__phone:hover strong { color: var(--brand-300); }
.topbar__links { display: flex; gap: 20px; }
.topbar__links a { color: #cdd3e2; font-size: 13px; }
.topbar__links a:hover { color: #fff; }

/* ---------- En-tête ---------------------------------------------------- */
.header { background: transparent; border-bottom: 1px solid var(--line); position: relative; z-index: 60;
  transition: border-color .3s ease; }
.header__inner { display: flex; align-items: center; gap: 28px; padding: 16px 20px;
  transition: padding .3s cubic-bezier(.2,.7,.3,1), gap .3s ease; }
.brand img { height: 58px; width: auto; transition: height .3s cubic-bezier(.2,.7,.3,1); }

.searchbar { position: relative; flex: 1; display: flex; max-width: 640px; border: 2px solid var(--brand-100); border-radius: 11px; background: #fff; transition: border-color .16s; }
.searchbar:focus-within { border-color: var(--brand); }
.searchbar input { flex: 1; border: 0; padding: 12px 16px; outline: none; font-size: 14.5px; background: transparent; border-radius: 9px 0 0 9px; }
.searchbar input::placeholder { color: var(--ink-300); }
.searchbar button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--brand); color: #fff; padding: 0 20px; font-weight: 600; cursor: pointer; font-size: 14px; border-radius: 0 9px 9px 0; }
.searchbar button:hover { background: var(--brand-700); }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hact { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.hact__ico { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--brand-50); color: var(--brand); }
.hact__ico .ico { width: 21px; height: 21px; }
.hact .badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.hact__txt { display: flex; flex-direction: column; line-height: 1.15; }
.hact__txt strong { font-size: 13.5px; font-weight: 600; }
.hact__txt em { font-style: normal; font-size: 11.5px; color: var(--ink-400); }
.hact:hover .hact__ico { background: var(--brand); color: #fff; }

.burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Navigation principale + mega menu ------------------------- */
.mainnav { background: var(--brand); position: relative; z-index: 55; }
.mainnav__inner { padding: 0 20px; }
.menu { display: flex; flex-wrap: wrap; overflow: visible; }
.menu__item { position: static; }
.menu__link {
  display: inline-flex; align-items: center; gap: 7px; padding: 12px 11px;
  color: #fff; font-size: 13.2px; font-weight: 500; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.menu__link .ico { width: 15px; height: 15px; }
.menu__item:hover > .menu__link,
.menu__link.is-active { background: rgba(255,255,255,.1); border-bottom-color: #fff; color: #fff; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  max-height: min(74vh, 640px); overflow-y: auto;
}
.menu__item:hover > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__inner { padding: 26px 20px 30px; }
.mega__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.mega__head h3 { margin: 0; font-size: 19px; color: var(--brand); }
.mega__head a { font-size: 13.5px; font-weight: 600; }

.mega__cols { display: grid; grid-template-columns: 1.25fr 1.1fr .7fr; gap: 28px; }
.mega__col--main ul { columns: 2; column-gap: 26px; }
.mega__col--main li { break-inside: avoid; margin-bottom: 3px; }
.mega__col--main a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 7px; color: var(--ink-800); font-size: 13.6px; }
.mega__col--main a:hover { background: var(--brand-50); color: var(--brand); }
.mega__col--main a i { font-style: normal; font-size: 11px; color: var(--ink-300); background: var(--bg-soft); padding: 1px 7px; border-radius: 20px; }

.mega__col--acc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); margin: 0 0 8px; }
.mega__col--acc h4 a { color: inherit; }
.mega__col--acc h4 a:hover { color: var(--brand); }
.mega__sub { columns: 2; column-gap: 20px; margin-bottom: 16px; }
.mega__sub li { break-inside: avoid; }
.mega__sub a { display: block; padding: 4px 0; font-size: 13px; color: var(--ink-600); }
.mega__sub a:hover { color: var(--brand); }

.mega__col--promo { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; align-self: start; }
.mega__promo-kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); font-weight: 700; margin: 0 0 6px; }
.mega__promo-title { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 16px; line-height: 1.4; }
.mega__promo-tel { display: block; margin-top: 12px; font-weight: 700; color: var(--ink); font-size: 16px; }

.mega--brands .mega__brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.mega--brands .mega__brands a { display: block; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; color: var(--ink-800); }
.mega--brands .mega__brands a:hover { background: var(--brand-50); color: var(--brand); }

/* ---------- Navigation mobile ----------------------------------------- */
.mobilenav { position: fixed; top: 0; left: 0; bottom: 0; width: min(360px, 88vw); background: #fff; z-index: 1200; overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: transform .25s ease; }
.mobilenav.is-open { transform: translateX(0); }
.mobilenav__backdrop { position: fixed; inset: 0; background: rgba(12,21,34,.5); z-index: 1150; }
.mobilenav__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.mobilenav__head img { height: 42px; }
.mobilenav__close { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink-400); }
.mobilenav__search { position: relative; display: flex; padding: 14px 18px; gap: 8px; }
.mobilenav__search input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.mobilenav__search button { border: 0; background: var(--brand); color: #fff; padding: 0 16px; border-radius: 8px; font-weight: 600; }
.mobilenav__list > li { border-top: 1px solid var(--line); }
.mobilenav__row { display: flex; align-items: center; }
.mobilenav__row a, .mobilenav__list > li > a { flex: 1; display: block; padding: 13px 18px; color: var(--ink-800); font-size: 14.5px; }
.mobilenav__toggle { width: 48px; border: 0; border-left: 1px solid var(--line); background: none; font-size: 20px; color: var(--ink-400); cursor: pointer; align-self: stretch; }
.mobilenav__sub { background: var(--bg-soft); }
.mobilenav__sub a { display: block; padding: 10px 18px 10px 32px; font-size: 13.5px; color: var(--ink-600); border-top: 1px solid var(--line); }

/* ---------- Recherche instantanée --------------------------------------- */
/* Panneau ajouté en JS (assets/js/main.js) à côté de la barre de recherche.
   Masqué par défaut via [hidden] : sans JavaScript, rien n'apparaît et le
   formulaire continue de fonctionner en soumission classique. */
.searchsuggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 120;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease;
}
.searchsuggest.is-open { opacity: 1; transform: translateY(0); }
.searchsuggest__scroll { max-height: min(70vh, 480px); overflow-y: auto; }
.searchsuggest__group { padding: 10px 8px; }
.searchsuggest__group + .searchsuggest__group { border-top: 1px solid var(--line); }
.searchsuggest__label { padding: 4px 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-300); }
.searchsuggest__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 4px; }
.searchsuggest__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: var(--brand-50); color: var(--brand); font-size: 13px; font-weight: 500; }
.searchsuggest__chip small { color: var(--ink-300); font-weight: 400; }
.searchsuggest__chip.is-active, .searchsuggest__chip:hover { background: var(--brand); color: #fff; }
.searchsuggest__chip.is-active small, .searchsuggest__chip:hover small { color: rgba(255,255,255,.75); }

.searchsuggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; }
.searchsuggest__item:hover, .searchsuggest__item.is-active { background: var(--brand-50); }
.searchsuggest__thumb { flex: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; }
.searchsuggest__thumb img { max-width: 30px; max-height: 30px; object-fit: contain; mix-blend-mode: multiply; }
.searchsuggest__body { min-width: 0; flex: 1; }
.searchsuggest__name { display: block; font-size: 13.8px; color: var(--ink-800); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchsuggest__name mark { background: none; color: var(--brand); font-weight: 700; }
.searchsuggest__meta { display: block; font-size: 11.8px; color: var(--ink-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchsuggest__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 5px; vertical-align: 1px; }

.searchsuggest__foot { display: block; padding: 12px 16px; text-align: center; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--bg-soft); border-top: 1px solid var(--line); }
.searchsuggest__foot:hover { background: var(--brand-50); }

.searchsuggest__empty { padding: 26px 18px; text-align: center; color: var(--ink-400); font-size: 13.5px; }
.searchsuggest__empty b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 4px; }

.searchsuggest__loading { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.searchsuggest__loading span { display: block; height: 14px; border-radius: 5px; background: linear-gradient(100deg, var(--bg-soft) 28%, #eef1f8 45%, var(--bg-soft) 62%); background-size: 220% 100%; animation: pvShimmer 1.4s ease-in-out infinite; }
.searchsuggest__loading span:nth-child(1) { width: 70%; }
.searchsuggest__loading span:nth-child(2) { width: 90%; }
.searchsuggest__loading span:nth-child(3) { width: 55%; }

.mobilenav__search .searchsuggest { left: 18px; right: 18px; }

/* ---------- Hero ------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--ink) url('../img/hero-poster.jpg') center / cover no-repeat;
}
/* Vidéo de fond : muette, en boucle, décorative */
.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; border: 0;
}
/* Voile dégradé : le texte reste lisible à gauche, l'image respire à droite */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9,15,26,.96) 0%, rgba(9,15,26,.90) 30%,
                           rgba(9,15,26,.68) 58%, rgba(9,15,26,.52) 100%),
    linear-gradient(rgba(9,15,26,.30), rgba(9,15,26,.30));
}
/* Trame technique discrète par-dessus la vidéo */
.hero__scrim::after {
  content: ''; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to bottom right, #000 8%, transparent 70%);
          mask-image: linear-gradient(to bottom right, #000 8%, transparent 70%);
}
/* Animation désactivée : on garde l'image fixe */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 352px; gap: 48px; align-items: start; padding: 52px 20px 46px; }

.hero h1 { color: #fff; margin-bottom: 14px; max-width: 22ch; font-size: clamp(27px, 2.9vw, 37px); line-height: 1.14; }
.hero__sub { font-size: 16px; color: #b8c0d8; max-width: 60ch; margin-bottom: 26px; line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 30px; }

/* Accès direct aux gammes : des liens réels, pas un bloc décoratif */
.hero__jump { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; }
.hero__jump-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: #7d88a8; margin-bottom: 12px; }
.hero__jump ul { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__jump a {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 7px;
  font-size: 13.5px; color: #dfe3f0; background: rgba(255,255,255,.04);
  transition: background .15s ease, border-color .15s ease;
}
.hero__jump a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.34); color: #fff; }
.hero__jump a b { font-size: 11.5px; font-weight: 600; color: #8f9ac0; font-variant-numeric: tabular-nums; }
.hero__jump a:hover b { color: #c3cbe6; }

/* Bloc contact : carte blanche pleine, informations réelles */
.hero__desk { background: #fff; border-radius: var(--radius); padding: 24px 24px 20px; box-shadow: var(--shadow-lg); color: var(--ink-800); }
.hero__desk-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #1a7f4b; margin-bottom: 14px; }
.hero__desk-dot { width: 7px; height: 7px; border-radius: 50%; background: #1fa25e; box-shadow: 0 0 0 3px rgba(31,162,94,.16); }
.hero__desk h2 { font-size: 19px; margin-bottom: 6px; color: var(--ink); }
.hero__desk-intro { font-size: 13.2px; color: var(--ink-400); line-height: 1.55; margin-bottom: 18px; }
.hero__desk-lines { border-top: 1px solid var(--line); }
.hero__desk-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hero__desk-lines a { font-size: 16.5px; font-weight: 700; color: var(--brand); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hero__desk-lines a:hover { color: var(--brand-700); text-decoration: underline; }
.hero__desk-lines span { font-size: 12px; color: var(--ink-400); text-align: right; }
.hero__desk-foot { display: flex; align-items: center; gap: 8px; padding-top: 14px; font-size: 12.4px; color: var(--ink-400); }
.hero__desk-foot .ico { width: 15px; height: 15px; color: var(--ink-300); flex: none; }

/* Chiffres clés : une ligne factuelle, pas quatre compteurs géants */
.hero__facts { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.13); background: rgba(0,0,0,.16); }
.hero__facts-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px; padding: 14px 20px; font-size: 13px; color: #9aa4c2; }
.hero__facts-inner b { color: #fff; font-weight: 600; }
.hero__facts-inner a { margin-left: auto; color: #c3cbe6; font-size: 12.5px; font-weight: 500; }
.hero__facts-inner a:hover { color: #fff; }

/* ---------- Bandeau d'arguments --------------------------------------- */
.usp { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.usp__item { background: var(--bg-soft); padding: 26px 22px; display: flex; gap: 14px; align-items: flex-start; }
.usp__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); flex: none; }
.usp__ico .ico { width: 22px; height: 22px; }
.usp__item h3 { font-size: 15.5px; margin-bottom: 3px; }
.usp__item p { font-size: 13.3px; color: var(--ink-400); margin: 0; line-height: 1.5; }

/* ---------- Sections --------------------------------------------------- */
.section { padding: 66px 0; }
.section--soft { background: var(--bg-soft); }
.section--partners { background: var(--brand-50); border-top: 1px solid var(--brand-100);
  border-bottom: 1px solid var(--brand-100); }
.section--tight { padding: 44px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section__kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.section__head h2 { margin: 0; }
.section__head p { margin: 8px 0 0; color: var(--ink-400); max-width: 62ch; }
.section__link { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ---------- Grille de catégories -------------------------------------- */
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.catcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: box-shadow .18s ease, transform .18s ease, border-color .18s; }
.catcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--brand-100); }
.catcard__ico { width: 50px; height: 50px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.catcard__ico .ico { width: 26px; height: 26px; }
.catcard h3 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.catcard p { font-size: 13.2px; color: var(--ink-400); margin: 0 0 14px; line-height: 1.5; }
.catcard__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-400); }
.catcard__cta { display: inline-flex; align-items: center; gap: 9px; font-size: 12.7px; font-weight: 600;
  color: var(--brand); padding: 6px 14px 6px 0; border-radius: 999px;
  transition: padding .3s ease, background .3s ease, color .3s ease; }
.catcard__cta i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand); font-style: normal; font-size: 13px; line-height: 1;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), background .3s ease, color .3s ease; }
.catcard:hover .catcard__cta { padding-left: 14px; background: var(--brand); color: #fff; }
.catcard:hover .catcard__cta i { background: rgba(255,255,255,.24); color: #fff; transform: translateX(3px); }
.catcard--photo .catcard__cta { color: #fff; }
.catcard--photo .catcard__cta i { background: rgba(255,255,255,.20); color: #fff; }
.catcard--photo:hover .catcard__cta { background: #fff; color: var(--ink); }
.catcard--photo:hover .catcard__cta i { background: var(--brand); color: #fff; transform: translateX(3px); }
.catcard__meta b { color: var(--brand); font-weight: 600; }

/* Tuile photo : dès qu'une image de gamme est ajoutée dans le dashboard
   (Catégories → Illustration), la carte bascule en tuile photographique
   avec voile de lisibilité, sans rien changer côté administration. */
.catcard--photo {
  min-height: 278px; justify-content: flex-end; color: #fff; border-color: transparent;
  overflow: hidden; isolation: isolate;
}
/* couche photo : c'est elle que l'on floute au survol, pas le texte */
.catcard--photo::before {
  content: ''; position: absolute; inset: -3px; z-index: 0; border-radius: inherit;
  background-image: var(--catbg); background-size: cover; background-position: center;
  transform: scale(1); transform-origin: center;
  transition: transform .55s cubic-bezier(.2,.7,.3,1), filter .45s ease;
}
/* voile de lisibilité */
.catcard--photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(12,21,34,.08) 0%, rgba(12,21,34,.38) 46%, rgba(12,21,34,.92) 100%);
  transition: background .4s ease;
}
.catcard--photo > * { position: relative; z-index: 2; }
.catcard--photo:hover::before { filter: blur(5px); transform: scale(1.1); }
.catcard--photo:hover::after {
  background: linear-gradient(180deg, rgba(12,21,34,.52) 0%, rgba(23,34,88,.70) 52%, rgba(29,42,108,.90) 100%);
}
.catcard--photo .catcard__ico { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(3px); }
.catcard--photo h3 { color: #fff; }
.catcard--photo p { color: rgba(255,255,255,.82); }
.catcard--photo .catcard__meta { border-top-color: rgba(255,255,255,.24); color: rgba(255,255,255,.78); }
.catcard--photo .catcard__meta b { color: #fff; }
.catcard--photo:hover { box-shadow: var(--shadow-lg); border-color: transparent; }

/* ---------- Cartes produit -------------------------------------------- */
.prodgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prodgrid--3 { grid-template-columns: repeat(3, 1fr); }
.prodcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .18s ease, transform .18s ease, border-color .18s; }
.prodcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--brand-100); }
.prodcard__flags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.flag { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 5px; color: #fff; background: var(--brand); }
.flag--new { background: var(--ok); }
.flag--promo { background: var(--warn); color: var(--ink); }
.prodcard__photos {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(12,21,34,.72); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 8px; border-radius: 20px;
}
.prodcard__photos svg { width: 12px; height: 12px; fill: #fff; }
.prodcard__thumb { aspect-ratio: 4/3; background: #fff; display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.prodcard__thumb img { grid-area: 1/1; max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: opacity .25s ease; }
/* Deuxième photo (galerie) révélée au survol de la carte — seulement si
   .prodcard--hasalt est posée par PHP, donc jamais sur une carte à photo unique. */
.prodcard__thumb .prodcard__img--alt.is-loaded { opacity: 0; }
.prodcard--hasalt:hover .prodcard__img--alt.is-loaded { opacity: 1; }
.prodcard--hasalt:hover .prodcard__img:not(.prodcard__img--alt) { opacity: 0; }
.prodcard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.prodcard__brand { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.prodcard__brand--logo { display: flex; align-items: center; height: 22px; }
.prodcard__brand--logo img { height: 22px; width: auto; max-width: 110px; object-fit: contain; display: block; }
.prodcard__name { font-size: 14.6px; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 4px; display: block; }
.prodcard__name:hover { color: var(--brand); }
.prodcard__ref { font-size: 11.5px; color: var(--ink-300); margin-bottom: 12px; }
.prodcard__specs { font-size: 12.3px; color: var(--ink-600); margin-bottom: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.prodcard__specs div { display: flex; justify-content: space-between; gap: 10px; padding: 2.5px 0; }
.prodcard__specs span:first-child { color: var(--ink-400); }
.prodcard__specs span:last-child { font-weight: 600; text-align: right; }
.prodcard__foot { margin-top: auto; display: flex; gap: 8px; }
.prodcard__foot .btn { flex: 1; padding: 10px 12px; font-size: 13px; }
.prodcard__avail { font-size: 11.8px; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.prodcard__avail::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.prodcard__avail.is-order { color: var(--ink-400); }
.noprice { font-size: 12px; color: var(--ink-400); font-style: italic; }

/* ---------- Marques ---------------------------------------------------- */
.brandstrip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brandtile { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; min-height: 92px; text-align: center; font-weight: 600; font-size: 14px; color: var(--ink-600); transition: all .16s; }
.brandtile:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-sm); }
.brandtile img { max-height: 44px; object-fit: contain; }
.brandtile small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-300); margin-top: 4px; }

/* ---------- Fil d'Ariane ---------------------------------------------- */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; font-size: 12.8px; color: var(--ink-400); }
.breadcrumb li::after { content: '›'; margin-left: 8px; color: var(--ink-300); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--ink-600); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- En-tête de page ------------------------------------------- */
.pagehead { background: linear-gradient(120deg, var(--ink) 0%, var(--brand-700) 100%); color: #fff; padding: 44px 0 46px; }
.pagehead h1 { color: #fff; margin-bottom: 10px; }
.pagehead p { color: #ccd2ec; max-width: 76ch; margin: 0; font-size: 15.5px; }
.pagehead__meta { margin-top: 16px; display: flex; gap: 18px; font-size: 13px; color: #aeb7d8; flex-wrap: wrap; }

/* ---------- Mise en page catalogue ------------------------------------ */
.shop { display: grid; grid-template-columns: 288px 1fr; gap: 34px; padding: 38px 0 70px; }
.sidebar { align-self: start; position: sticky; top: 16px; }
.facet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.facet__head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); background: var(--bg-softer); }
.facet__body { padding: 10px 8px; max-height: 340px; overflow-y: auto; }
.facet__body a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 7px; font-size: 13.4px; color: var(--ink-600); }
.facet__body a:hover { background: var(--brand-50); color: var(--brand); }
.facet__body a.is-active { background: var(--brand); color: #fff; font-weight: 600; }
.facet__body a i { font-style: normal; font-size: 11px; color: var(--ink-300); }
.facet__body a.is-active i { color: rgba(255,255,255,.75); }
.facet__check { display: flex; align-items: center; gap: 9px; padding: 6px 10px; font-size: 13.4px; color: var(--ink-600); cursor: pointer; }
.facet__check input { accent-color: var(--brand); width: 15px; height: 15px; }
.facet--help { background: var(--brand); color: #fff; border: 0; padding: 22px; }
.facet--help h4 { color: #fff; font-size: 16px; }
.facet--help p { font-size: 13.4px; color: #d5daf3; }
.facet--whatsapp { background: #25D366; color: #fff; border: 0; padding: 22px; }
.facet--whatsapp h4 { color: #fff; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.facet--whatsapp h4 .ico { width: 20px; height: 20px; fill: #fff; flex: none; }
.facet--whatsapp p { font-size: 13.4px; color: #e6fbee; }
.facet--whatsapp .btn--light { color: #128C46; }

.shop__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.shop__count { font-size: 14px; color: var(--ink-400); }
.shop__count b { color: var(--ink); }
.shop__sort { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-400); }
.shop__sort select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: #fff; font-size: 13.5px; }

.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; margin-bottom: 30px; }
.subcat { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13.7px; font-weight: 500; color: var(--ink-800); }
.subcat:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.subcat i { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--ink-300); background: var(--bg-soft); padding: 2px 8px; border-radius: 20px; }

.intro { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; padding: 20px 24px; margin-bottom: 28px; color: var(--ink-600); font-size: 14.4px; }
.intro p:last-child { margin-bottom: 0; }

/* ---------- Pagination ------------------------------------------------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.page-link { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; color: var(--ink-600); background: #fff; }
.page-link:hover { border-color: var(--brand); color: var(--brand); }
.page-link.is-active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.page-dots { display: grid; place-items: center; color: var(--ink-300); padding: 0 4px; }

/* ---------- Fiche produit --------------------------------------------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; padding: 34px 0 20px; }
.gallery__main { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; aspect-ratio: 4/3; display: grid; place-items: center; padding: 30px; position: relative; }
.gallery__main img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumbs button { width: 78px; height: 78px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 7px; cursor: pointer; display: grid; place-items: center; }
.gallery__thumbs button.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-100); }
.gallery__thumbs img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* Zoom plein écran (posé par JS uniquement : sans script, l'image n'est pas
   cliquable et se comporte comme une image normale). */
.gallery__main--zoomable { cursor: zoom-in; }
.gallery__zoomhint {
  position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(12,21,34,.72); color: #fff; display: grid; place-items: center;
  opacity: 0; transition: opacity .18s ease; pointer-events: none;
}
.gallery__zoomhint svg { width: 18px; height: 18px; fill: #fff; }
.gallery__main--zoomable:hover .gallery__zoomhint { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(8,12,20,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease;
}
/* Indispensable : "display: flex" ci-dessus prime sinon sur la règle du
   navigateur "[hidden] { display: none }" (même spécificité, cascade
   d'auteur), ce qui laissait le calque plein écran actif — invisible mais
   cliquable — au-dessus de toute la page dès son insertion dans le DOM. */
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { max-width: min(92vw, 1100px); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; }
.lightbox__img { max-width: 100%; max-height: 80vh; object-fit: contain; background: #fff; border-radius: 10px; }
.lightbox__count { color: #cfd6ea; font-size: 13px; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }
@media (max-width: 640px) {
  .lightbox__close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 22px; }
  .lightbox__nav { width: 40px; height: 40px; font-size: 24px; }
  .lightbox__prev { left: 6px; }
  .lightbox__next { right: 6px; }
}

.pinfo__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; min-height: 30px; }
.pinfo__brandlogo { height: 30px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.pinfo h1 { font-size: clamp(23px, 2.5vw, 32px); margin-bottom: 10px; }
.pinfo__ref { font-size: 13px; color: var(--ink-400); margin-bottom: 16px; }
.pinfo__ref b { color: var(--ink); }
.pinfo__short { font-size: 15.4px; color: var(--ink-600); margin-bottom: 22px; }
.pinfo__box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; }
.pinfo__noprice { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.pinfo__noprice .ico { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.pinfo__noprice strong { display: block; font-size: 15px; color: var(--ink); }
.pinfo__noprice span { font-size: 13.4px; color: var(--ink-400); }
.pinfo__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pinfo__actions .btn { flex: 1 1 190px; }
.qtyfield { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.qtyfield button { width: 38px; height: 42px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink-400); }
.qtyfield input { width: 48px; border: 0; text-align: center; outline: none; font-weight: 600; }

.pmeta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.pmeta div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; }
.pmeta span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-300); }
.pmeta b { font-size: 13.8px; color: var(--ink); }

.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; margin: 46px 0 28px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 13px 20px; font-size: 14.5px; font-weight: 600; color: var(--ink-400); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tabpanel { display: none; }
.tabpanel.is-active { display: block; }

.spectable { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spectable tr:nth-child(odd) { background: var(--bg-softer); }
.spectable th, .spectable td { text-align: left; padding: 12px 18px; font-size: 14px; border-bottom: 1px solid var(--line); }
.spectable th { width: 38%; color: var(--ink-400); font-weight: 500; }
.spectable td { font-weight: 600; color: var(--ink); }
.spectable tr:last-child th, .spectable tr:last-child td { border-bottom: 0; }

.prose { font-size: 15.2px; color: var(--ink-600); max-width: 78ch; }
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.prose h3 { font-size: 18px; margin-top: 1.5em; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.3em; }
.prose li { list-style: disc; margin-bottom: .4em; }
.prose ol li { list-style: decimal; }
.prose a { text-decoration: underline; }

/* ---------- Formulaires ------------------------------------------------ */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 13.2px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label span { color: var(--err); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 14px;
  font-size: 14.5px; background: #fff; outline: none; transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.field textarea { min-height: 140px; resize: vertical; }
.field small { display: block; margin-top: 5px; font-size: 12.2px; color: var(--ink-400); }
.field--check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.4px; color: var(--ink-600); }
.field--check input { width: auto; margin-top: 3px; accent-color: var(--brand); }

.alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; border: 1px solid; }
.alert-success { background: #eaf7ef; border-color: #bfe5cd; color: #12683c; }
.alert-error   { background: #fdeceb; border-color: #f6c9c6; color: #a3231a; }
.alert-info    { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }

/* ---------- Tableau de sélection --------------------------------------- */
.seltable { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seltable th { text-align: left; padding: 14px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); background: var(--bg-softer); border-bottom: 1px solid var(--line); }
.seltable td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.seltable img { width: 62px; height: 62px; object-fit: contain; }
.seltable .sel-name { font-weight: 600; color: var(--ink); }
.seltable .sel-ref { font-size: 12px; color: var(--ink-300); }
.linkdanger { color: var(--err); font-size: 13px; }

/* ---------- Actualités -------------------------------------------------- */
.postgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.postcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s; }
.postcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.postcard__thumb { aspect-ratio: 16/9; background: linear-gradient(120deg, var(--brand-700), var(--brand)); }
.postcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.postcard__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.postcard__date { font-size: 12px; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.postcard h3 { font-size: 17px; margin-bottom: 8px; }
.postcard p { font-size: 13.8px; color: var(--ink-400); margin-bottom: 16px; }
.postcard a.more { margin-top: auto; font-weight: 600; font-size: 13.8px; }

/* ---------- Bandeau CTA ------------------------------------------------- */
.ctastrip { background: linear-gradient(100deg, var(--brand-700), var(--brand)); color: #fff; }
.ctastrip__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px 20px; flex-wrap: wrap; }
.ctastrip h2 { color: #fff; margin-bottom: 6px; font-size: 26px; }
.ctastrip p { margin: 0; color: #d3d9f3; font-size: 15px; }
.ctastrip__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Pied de page ------------------------------------------------ */
.footer { background: var(--ink); color: #a9b2c9; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 56px 20px 44px; }
.footer__logo { height: 54px; margin-bottom: 18px; }
.footer__col h4 { color: #fff; font-size: 13.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.footer__col a { color: #a9b2c9; }
.footer__col a:hover { color: #fff; }
.footer__col ul li { margin-bottom: 9px; font-size: 13.8px; }
.footer__contact { margin-top: 20px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 11px; font-size: 13.5px; }
.footer__contact .ico { color: var(--brand-300); margin-top: 3px; width: 16px; height: 16px; }
.footer__phones li { margin-bottom: 13px; }
.footer__phones a { display: block; color: #fff; font-weight: 600; font-size: 15px; }
.footer__phones span { font-size: 12px; color: #7d879f; }
.footer__social { display: flex; gap: 9px; margin-top: 20px; }
.footer__social a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; }
.footer__social a:hover { background: var(--brand); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.09); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; flex-wrap: wrap; font-size: 12.6px; color: #79839c; }
.footer__bottom p { margin: 0; }

.totop { position: fixed; right: 22px; bottom: 92px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 18px; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: all .2s; z-index: 90; }
.totop.is-visible { opacity: 1; visibility: visible; }

/* ---------- Bouton flottant WhatsApp -------------------------------------
   Présent sur toutes les pages publiques (inclus une fois dans le pied de
   page). Masqué automatiquement si l'admin vide le numéro dans les réglages. */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 95;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(37,211,102,.65), var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 30px -8px rgba(37,211,102,.75), var(--shadow); }
.wa-float .ico { width: 30px; height: 30px; fill: #fff; }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; opacity: .55;
  animation: waPing 2.4s ease-out infinite;
}
@keyframes waPing { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.55); opacity: 0; } }
@media (max-width: 640px) {
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .wa-float .ico { width: 27px; height: 27px; }
  .totop { right: 16px; bottom: 82px; }
}

/* ---------- États vides -------------------------------------------------- */
.empty { text-align: center; padding: 70px 20px; color: var(--ink-400); }
.empty h3 { color: var(--ink); margin-bottom: 8px; }

/* =========================================================================
   Animations & chargement — ajoutées par-dessus les styles ci-dessus.
   Rien n'est masqué par défaut en CSS pur : toutes les classes de départ
   (.reveal, .skel-img, .skel-parent…) sont posées par le script, jamais par
   une règle générale — un visiteur sans JavaScript voit donc le contenu et
   les images normalement, sans rien qui reste caché.
   ========================================================================= */

/* ---------- Barre de chargement de page --------------------------------- */
.pageload-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 999;
  background: linear-gradient(90deg, var(--brand-300), var(--brand));
  box-shadow: 0 0 10px rgba(42,57,145,.5);
  opacity: 0; pointer-events: none;
}
.pageload-bar.is-loading { opacity: 1; animation: pvBarRun 1.3s cubic-bezier(.2,.7,.3,1) forwards; }
.pageload-bar.is-done { animation: none; width: 100%; transition: opacity .35s ease .1s; opacity: 0; }
@keyframes pvBarRun {
  0%   { width: 0; }
  15%  { width: 24%; }
  45%  { width: 52%; }
  80%  { width: 76%; }
  100% { width: 88%; }
}

/* ---------- Révélation au défilement ------------------------------------ */
/* .reveal est ajoutée en JS avant observation : sans script, le contenu
   reste visible normalement (pas de classe = pas d'opacité à 0). */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; transition-delay: var(--rd, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--fade { transform: none; }
.reveal--scale { transform: scale(.96); }
.reveal--scale.is-visible { transform: scale(1); }

/* ---------- Images en chargement (effet miroitant) ----------------------- */
.skel-parent { position: relative; overflow: hidden; }
.skel-parent::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: linear-gradient(100deg, var(--bg-soft) 28%, #eef1f8 45%, var(--bg-soft) 62%);
  background-size: 220% 100%; animation: pvShimmer 1.4s ease-in-out infinite;
}
.skel-img { opacity: 0; transition: opacity .4s ease; position: relative; z-index: 1; }
.skel-img.is-loaded { opacity: 1; }
.skel-parent.is-loaded::after { content: none; }
@keyframes pvShimmer { 0% { background-position: 220% 0; } 100% { background-position: -220% 0; } }

/* Variante pour les tuiles de gamme en photo (fond CSS, pas de balise img) */
.catcard--photo { position: relative; }
.catcard--photo.is-bg-loading {
  background: linear-gradient(100deg, var(--ink-800) 28%, #223154 45%, var(--ink-800) 62%);
  background-size: 220% 100%; animation: pvShimmer 1.4s ease-in-out infinite;
}

/* ---------- Compteurs ----------------------------------------------------- */
.hero__facts-inner b { font-variant-numeric: tabular-nums; }

/* ---------- Retour de sélection (pastille du panier) ---------------------- */
@keyframes pvBadgeBump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.4); }
  60%  { transform: scale(.92); }
  100% { transform: scale(1); }
}
.hact__ico.is-bumping { animation: pvBadgeBump .5s cubic-bezier(.34,1.56,.64,1); }
.hact__ico.is-bumping .badge { animation: pvBadgeBump .5s cubic-bezier(.34,1.56,.64,1); }

/* ---------- Galerie produit : voile pendant le chargement d'une vue ------- */
.gallery__main.is-swapping img { opacity: .25; transition: opacity .15s ease; }

/* ---------- Menu mobile : fondu du fond ----------------------------------- */
.mobilenav__backdrop { opacity: 0; transition: opacity .25s ease; }
.mobilenav__backdrop.is-open { opacity: 1; }

/* ---------- Petites retouches d'interaction ------------------------------- */
.btn { transition: background .16s ease, color .16s ease, border-color .16s ease, transform .12s ease, box-shadow .16s ease; }
.btn:active { transform: translateY(0) scale(.97); }
.catcard, .prodcard, .postcard, .brandtile { transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease; }
.prodcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.postcard { transition: box-shadow .22s ease, transform .22s ease; }
.postcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1200px) {
  .menu__link { padding: 13px 9px; font-size: 12.7px; }
  .catgrid, .prodgrid { grid-template-columns: repeat(3, 1fr); }
  .brandstrip { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .mainnav { display: none; }
  .burger { display: flex; }
  .header__cta span { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; padding: 46px 20px 52px; }
  .usp__grid { grid-template-columns: repeat(2, 1fr); }
  .shop { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product { grid-template-columns: 1fr; gap: 30px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .postgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .topbar__links { display: none; }
  .topbar__phones { gap: 14px; }
  .topbar__phone-txt em { display: none; }
  .header__inner { flex-wrap: wrap; gap: 14px; }
  .searchbar { order: 3; flex-basis: 100%; max-width: none; }
  .header__actions { margin-left: auto; }
  .hact__txt { display: none; }
  .catgrid, .prodgrid, .prodgrid--3 { grid-template-columns: repeat(2, 1fr); }
  .brandstrip { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 46px 0; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .form__row { grid-template-columns: 1fr; }
  /* Mobile : on économise la data, le poster suffit */
  .hero__video { display: none; }
  .hero__scrim { background: linear-gradient(rgba(9,15,26,.90), rgba(9,15,26,.94)); }
  .hero__facts-inner { gap: 8px 20px; font-size: 12.3px; }
  .hero__facts-inner a { margin-left: 0; width: 100%; }
  .hero__jump ul { gap: 7px; }
  .pmeta { grid-template-columns: 1fr; }
  .postgrid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .brand img { height: 44px; }
  .topbar__phone-txt strong { font-size: 12.5px; }
  .topbar__phones .topbar__phone:nth-child(n+2) { display: none; }
  .catgrid, .prodgrid, .prodgrid--3 { grid-template-columns: 1fr; }
  .brandstrip { grid-template-columns: repeat(2, 1fr); }
  .usp__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .searchbar button span { display: none; }
  .searchbar button { padding: 0 16px; }
  .header__cta { padding: 12px 14px; }
  .seltable thead { display: none; }
  .seltable td { display: block; border: 0; padding: 6px 16px; }
  .seltable tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; }
}

@media print {
  .topbar, .header__actions, .mainnav, .ctastrip, .footer, .totop, .burger, .wa-float { display: none !important; }
}

/* ==========================================================================
   Pages rubrique (mode vitrine)
   ========================================================================== */

/* --- Bannière ------------------------------------------------------------ */
.rubhero { position: relative; overflow: hidden; padding: 68px 0 60px;
  background: var(--brand-700); color: #fff; }
.rubhero::before { content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 46px 46px; }
.rubhero--img { background-color: var(--ink); }
.rubhero--img::before { background-image: var(--rubbg); background-size: cover; background-position: center; }
.rubhero--img::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(96deg, rgba(12,21,34,.93) 0%, rgba(29,42,108,.82) 52%, rgba(29,42,108,.38) 100%); }
.rubhero > .container { position: relative; z-index: 2; }
.rubhero__inner { max-width: 700px; border-left: 3px solid rgba(255,255,255,.5); padding-left: 26px; }
.rubhero__kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.62); margin-bottom: 14px; }
.rubhero h1 { font-size: clamp(27px, 3.6vw, 42px); line-height: 1.1; color: #fff; margin-bottom: 14px; letter-spacing: -.01em; }
.rubhero__lead { font-size: clamp(14.6px, 1.3vw, 16.5px); line-height: 1.62; color: rgba(255,255,255,.84);
  max-width: 60ch; margin-bottom: 26px; }
.rubhero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --- Corps éditorial ----------------------------------------------------- */
.rubbody { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 54px; align-items: start; padding: 50px 0 12px; }
.rubbody .prose > *:first-child { margin-top: 0; }
.rubaside { position: sticky; top: calc(var(--stickyh, 140px) + 18px); display: grid; gap: 22px; }

.quotepanel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.quotepanel__head { background: var(--ink); color: #fff; padding: 13px 18px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.quotepanel__body { padding: 18px; }
.quotepanel__body p { font-size: 13.4px; color: var(--ink-600); line-height: 1.55; margin: 0 0 16px; }
.quotepanel__tel { display: block; font-size: 21px; font-weight: 700; color: var(--ink);
  letter-spacing: -.01em; margin-top: 14px; text-align: center; }
.quotepanel__tel small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-300); margin-bottom: 3px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 13px 0;
  border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { counter-increment: st; content: '0' counter(st);
  font-size: 12px; font-weight: 700; color: var(--brand-300); letter-spacing: .04em; padding-top: 2px; }
.steps b { display: block; font-size: 13.6px; color: var(--ink); margin-bottom: 2px; }
.steps span { display: block; font-size: 12.7px; color: var(--ink-400); line-height: 1.5; }

/* --- Périmètre : index dense, pas une grille de cartes -------------------- */
.scope { padding: 44px 0 56px; }
.scope__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 4px; }
.scope__head h2 { font-size: clamp(19px, 2vw, 24px); margin: 0; letter-spacing: -.01em; }
.scope__head p { font-size: 13.4px; color: var(--ink-400); margin: 0; }
.scope__count { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-300); white-space: nowrap; }
.scope__list { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 46px; }
.scope__list--rich { columns: 2; column-gap: 54px; }
.scope__list li { break-inside: avoid; position: relative; padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--line); }
.scope__list li::before { content: ''; position: absolute; left: 0; top: 19px;
  width: 9px; height: 2px; background: var(--brand); }
.scope__name { font-size: 14.2px; font-weight: 600; color: var(--ink); }
.scope__desc { display: block; font-size: 12.7px; color: var(--ink-400); line-height: 1.45; margin-top: 3px; }
.scope__more { margin-top: 22px; font-size: 13.2px; color: var(--ink-400); line-height: 1.6; max-width: 90ch; }
.scope__more b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-600); margin-bottom: 5px; }

/* --- Bande d'appel à l'action -------------------------------------------- */
.ctaband { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between; background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 36px 40px; margin: 8px 0 72px; }
.ctaband::before { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px; }
.ctaband > * { position: relative; z-index: 2; }
.ctaband__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ctaband h2 { color: #fff; font-size: clamp(20px, 2.1vw, 25px); margin-bottom: 8px; letter-spacing: -.01em; }
.ctaband p { color: rgba(255,255,255,.72); font-size: 14.2px; line-height: 1.6; max-width: 58ch; margin: 0; }

/* --- Tuiles marques non cliquables --------------------------------------- */
.brandtile--static { cursor: default; }
.brandtile--static:hover { border-color: var(--line); color: var(--ink-600); box-shadow: none; }

@media (max-width: 1080px) { .scope__list { columns: 2; } }
@media (max-width: 980px) {
  .rubbody { grid-template-columns: 1fr; gap: 32px; padding-top: 38px; }
  .rubaside { position: static; }
}
@media (max-width: 680px) {
  .rubhero { padding: 46px 0 42px; }
  .rubhero__inner { padding-left: 18px; }
  .scope__list, .scope__list--rich { columns: 1; }
  .ctaband { padding: 28px 24px; }
}

/* Survol des tuiles de gamme : respect du réglage « animations réduites » */
@media (prefers-reduced-motion: reduce) {
  .catcard--photo::before, .catcard--photo::after,
  .catcard__cta, .catcard__cta i { transition: none; }
  .catcard--photo:hover::before { filter: none; transform: none; }
  .catcard:hover .catcard__cta i { transform: none; }
}

/* ==========================================================================
   Médias des pages rubrique : vidéos, galerie photo, visionneuse
   ========================================================================== */
.rubmain { min-width: 0; }
.rubmain .prose + .mediavideos,
.rubmain .prose + .mediagrid { margin-top: 34px; }

.mediavideos { display: grid; gap: 16px; }
.mediavideos--multi { grid-template-columns: repeat(2, 1fr); }
.mediavideos video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  background: #000; border-radius: var(--radius); border: 1px solid var(--line); }
.mediavideos__embed { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
.mediavideos__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.mediagrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.mediagrid--2 { grid-template-columns: repeat(2, 1fr); }
.mediagrid__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-soft); }
.mediagrid__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.7,.3,1), filter .35s ease; }
.mediagrid__item::after { content: ''; position: absolute; inset: 0;
  background: rgba(12,21,34,0); transition: background .3s ease; }
.mediagrid__zoom { position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1;
  opacity: 0; transform: translateY(6px); transition: opacity .28s ease, transform .28s ease; }
.mediagrid__item:hover img { transform: scale(1.06); }
.mediagrid__item:hover::after { background: rgba(12,21,34,.18); }
.mediagrid__item:hover .mediagrid__zoom { opacity: 1; transform: translateY(0); }

/* Visionneuse plein écran */
.pvlb { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: rgba(8,13,24,.94); padding: 46px 20px; opacity: 0; transition: opacity .22s ease; }
.pvlb.is-open { opacity: 1; }
.pvlb img { max-width: min(1200px, 94vw); max-height: 86vh; object-fit: contain; display: block;
  border-radius: 6px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.pvlb__btn { position: absolute; border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.08);
  color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.pvlb__btn:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.pvlb__close { top: 20px; right: 20px; }
.pvlb__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.pvlb__next { right: 20px; top: 50%; transform: translateY(-50%); }
.pvlb__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.66); font-size: 12.5px; letter-spacing: .06em; }
body.pvlb-open { overflow: hidden; }

@media (max-width: 860px) {
  .mediagrid, .mediagrid--2 { grid-template-columns: repeat(2, 1fr); }
  .mediavideos--multi { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mediagrid, .mediagrid--2 { grid-template-columns: 1fr; }
  .pvlb__prev { left: 8px; } .pvlb__next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .mediagrid__item img, .mediagrid__zoom, .pvlb { transition: none; }
  .mediagrid__item:hover img { transform: none; }
}

/* Rebond de fin de page rubrique : les autres gammes */
.otherranges { padding: 6px 0 74px; }
.otherranges h2 { font-size: 15px; letter-spacing: .02em; margin-bottom: 14px; color: var(--ink-600); }
.otherranges ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.otherranges a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.2px; font-weight: 500; color: var(--ink-600); background: #fff; transition: all .18s ease; }
.otherranges a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }

/* ==========================================================================
   En-tête collant : verre dépoli au défilement + condensation animée
   ========================================================================== */
.stickyhead {
  position: sticky; top: 0; z-index: 900;
  background: #fff;
  transition: background .32s ease, box-shadow .32s ease, backdrop-filter .32s ease;
}
.stickyhead.is-stuck {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 10px 30px -18px rgba(12, 21, 34, .45);
}
/* le bandeau bleu du menu se translucidifie lui aussi, sinon il bloque le flou */
.stickyhead.is-stuck .mainnav { background: rgba(42, 57, 145, .90);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stickyhead.is-stuck .header { border-bottom-color: transparent; }

/* condensation : l'en-tête se resserre et le logo réduit */
.stickyhead.is-stuck .header__inner { padding-top: 8px; padding-bottom: 8px; gap: 20px; }
.stickyhead.is-stuck .brand img { height: 40px; }
.stickyhead.is-stuck .menu__link { padding-top: 9px; padding-bottom: 9px; }
.menu__link { transition: padding .3s cubic-bezier(.2,.7,.3,1); }

/* apparition douce au tout premier passage en mode collant */
@keyframes pvHeadDrop { from { transform: translateY(-6px); opacity: .92; } to { transform: none; opacity: 1; } }
.stickyhead.is-stuck { animation: pvHeadDrop .32s cubic-bezier(.2,.7,.3,1); }

/* les ancres ne passent plus sous l'en-tête */
[id] { scroll-margin-top: calc(var(--stickyh, 140px) + 12px); }

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .stickyhead.is-stuck { background: rgba(255,255,255,.97); }
  .stickyhead.is-stuck .mainnav { background: var(--brand); }
}
@media (prefers-reduced-motion: reduce) {
  .stickyhead, .header__inner, .brand img, .menu__link { transition: none; }
  .stickyhead.is-stuck { animation: none; }
}

/* =========================================================================
   Partenariat mis en avant (page d'accueil)
   Bande sombre : elle tranche avec les sections claires qui l'entourent et
   fait ressortir le visuel du constructeur.
   ========================================================================= */
.spotlight {
  position: relative; overflow: hidden;
  background: linear-gradient(118deg, var(--ink) 0%, #14224a 52%, var(--brand-700) 100%);
  padding: clamp(40px, 5vw, 66px) 0;
}
.spotlight::before {
  content: ''; position: absolute; right: -160px; top: 50%; transform: translateY(-50%);
  width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(110,123,205,.22) 0%, rgba(110,123,205,0) 68%);
}
.spotlight__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4vw, 52px); align-items: center;
}

/* ---------- Le visuel ---------- */
.spotlight__media {
  position: relative; display: block; border-radius: var(--radius-lg);
  overflow: hidden; background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .35s ease, box-shadow .35s ease;
}
.spotlight__media img { display: block; width: 100%; height: auto; }
.spotlight__zoom {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(12,21,34,.82); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 7px 13px; border-radius: 40px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.spotlight__media:hover,
.spotlight__media:focus-visible { transform: translateY(-4px); }
.spotlight__media:hover .spotlight__zoom,
.spotlight__media:focus-visible .spotlight__zoom { opacity: 1; transform: none; }

/* ---------- Le texte ---------- */
.spotlight__kicker {
  display: inline-block; margin-bottom: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-300);
}
.spotlight__kicker::after {
  content: ''; display: block; width: 34px; height: 2px; margin-top: 8px;
  background: var(--brand-300);
}
.spotlight__body h2 {
  color: #fff; font-size: clamp(23px, 2.6vw, 33px);
  line-height: 1.2; letter-spacing: -.015em; margin-bottom: 14px;
}
.spotlight__lead {
  color: rgba(255,255,255,.8); font-size: 15.5px; line-height: 1.7;
  max-width: 58ch; margin-bottom: 26px;
}

.spotlight__pillars {
  list-style: none; margin: 0 0 30px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 26px;
}
.spotlight__pillars li {
  position: relative; padding-left: 26px;
  border-left: 0;
}
.spotlight__pillars li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--brand-300);
}
.spotlight__pillars b {
  display: block; color: #fff; font-size: 14.5px; font-weight: 600; margin-bottom: 3px;
}
.spotlight__pillars span {
  display: block; color: rgba(255,255,255,.62); font-size: 13.5px; line-height: 1.55;
}

.spotlight__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Écrans étroits ---------- */
@media (max-width: 900px) {
  .spotlight__inner { grid-template-columns: 1fr; }
  .spotlight__media { max-width: 520px; margin: 0 auto; }
  .spotlight__zoom { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .spotlight__pillars { grid-template-columns: 1fr; gap: 14px; }
  .spotlight__actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .spotlight__media,
  .spotlight__zoom { transition: none; }
  .spotlight__media:hover { transform: none; }
}
