/* =========================================================
   GABS TRADING FZ-LLC — systeme de design
   Palette issue du logo : bleu #1B3288, vert #8DBE3C
   Parti pris : grille editoriale, filets 1px, angles droits,
   libelles en monospace. Pas de degrade sur le texte.
   ========================================================= */

/* ---------------------------------------------------------
   1. Jetons
   --------------------------------------------------------- */
:root {
  /* Marque */
  --blue:        #1B3288;
  --blue-deep:   #0C1A3E;
  --blue-ink:    #071127;
  --blue-mid:    #2C49A8;
  --blue-pale:   #EBEEF8;
  --green:       #8DBE3C;
  --green-deep:  #4F7411;   /* >= 4.7:1 sur blanc, papier, bleu pale et vert pale */
  --green-pale:  #F0F6E3;

  /* Neutres — volontairement chauds */
  --paper:       #F7F6F2;
  --paper-2:     #EFEDE6;
  --white:       #FFFFFF;
  --ink:         #101623;
  --ink-2:       #2B3444;
  --muted:       #5A6474;
  --line:        #E0DDD3;
  --line-strong: #C9C5B8;
  --line-dark:   rgba(255,255,255,.16);

  /* Etats */
  --ok:          #1E7A46;
  --ok-bg:       #E9F6EE;
  --warn:        #8A5A00;
  --warn-bg:     #FBF2DF;
  --err:         #A62121;
  --err-bg:      #FBEAEA;

  /* Typographie */
  --font:  "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Mesures */
  --container: 1220px;
  --gutter: 24px;
  --r: 3px;
  --r-lg: 6px;
  --ease: cubic-bezier(.2,.6,.3,1);

  /* Ombres — reservees aux elements reellement flottants */
  --pop: 0 18px 48px rgba(16,22,35,.16);
}

/* ---------------------------------------------------------
   2. Base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;   /* compense l'en-tete collant lors des ancres */
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; }
img { display: block; height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.021em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.3rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 1.15rem + 2.1vw, 2.7rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blue-mid); }

strong, b { font-weight: 700; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* Focus : visible sur clair ET sur sombre */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Sur les fonds sombres le bleu du focus se perdrait : on passe au vert,
   qui tient 7,7:1 sur le bleu nuit. Le bouton vert de l'en-tete, lui, est
   sur fond clair : il garde le contour bleu par defaut. */
.topbar :focus-visible,
.page-head :focus-visible,
.cta :focus-visible,
.band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--green);
  outline-offset: 3px;
}

::selection { background: var(--blue); color: #fff; }

/* Lien d'evitement */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--blue); color: #fff; font-weight: 600;
  padding: 12px 20px; border-radius: var(--r);
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------------------------------------------------------
   3. Mise en page
   --------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(44px, 5vw, 72px); }
.section--paper { background: var(--paper); }
.section + .section--paper,
.section--paper + .section { border-top: 1px solid var(--line); }

/* En-tete de section : aligne a gauche, filet de rappel */
.sec-head { max-width: 660px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; margin-bottom: 0; }
.sec-head--split {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.sec-head--split > div { max-width: 620px; }

/* Surtitre monospace + trait : signature visuelle du site */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: 16px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--green); flex: none; }
.kicker--light { color: var(--green); }

.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------
   4. Boutons et liens d'action
   --------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 12px 24px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--r);
  font-family: var(--font); font-size: .97rem; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.btn:hover { --btn-bg: var(--blue-deep); --btn-bd: var(--blue-deep); color: #fff; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--green { --btn-bg: var(--green); --btn-fg: var(--blue-ink); --btn-bd: var(--green); }
.btn--green:hover { --btn-bg: #7CAB2E; --btn-bd: #7CAB2E; color: var(--blue-ink); }

.btn--line { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--line:hover { --btn-bg: transparent; --btn-bd: var(--blue); --btn-fg: var(--blue); color: var(--blue); }

.btn--line-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.42); }
.btn--line-light:hover { --btn-bg: rgba(255,255,255,.1); --btn-bd: #fff; color: #fff; }

.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Lien flechs */
.arrow-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; color: var(--blue); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .18s var(--ease); }
.arrow-link:hover { border-bottom-color: currentColor; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------
   5. En-tete
   --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(10px);
}
.admin-bar .site-header { top: 32px; }

/* Bandeau de service : l'info de contact accessible sans scroll */
.topbar {
  background: var(--blue-deep); color: rgba(255,255,255,.82);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 38px; flex-wrap: wrap; }
.topbar a { display: inline-block; padding-block: 5px; color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--green); text-decoration: underline; }
.topbar-facts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-facts span { white-space: nowrap; }

.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img, .brand .custom-logo { height: 54px; width: auto; }
.brand-fallback { font-weight: 800; font-size: 1.3rem; color: var(--blue); letter-spacing: -.03em; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: .97rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  border-radius: var(--r); position: relative;
}
.nav-link:hover { color: var(--blue); background: var(--blue-pale); }
.nav-link[aria-current="page"],
.current-menu-item > .nav-link,
.current_page_parent > .nav-link { color: var(--blue); font-weight: 600; }
.nav-link[aria-current="page"]::after,
.current-menu-item > .nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 2px; background: var(--green);
}
.nav-cta { flex: none; }

.nav-toggle {
  display: none; align-items: center; gap: 9px;
  min-height: 44px; padding: 8px 14px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r);
  font-family: var(--font); font-size: .9rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.nav-toggle .bars { position: relative; width: 18px; height: 12px; flex: none; }
.nav-toggle .bars i { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle .bars i:nth-child(1) { top: 0; }
.nav-toggle .bars i:nth-child(2) { top: 5px; }
.nav-toggle .bars i:nth-child(3) { top: 10px; }
.nav-open .nav-toggle .bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle .bars i:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------------------------------------------------------
   6. Hero d'accueil
   --------------------------------------------------------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 6vw, 88px);
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.24rem); color: var(--ink-2); max-width: 54ch; margin-bottom: 30px; }

/* Bande de reperes sous le hero : 3 faits, separes par des filets */
.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  margin-top: 42px; border-top: 1px solid var(--line-strong);
}
.hero-facts div { padding: 18px 20px 0 0; }
.hero-facts div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.hero-facts dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hero-facts dd { margin: 0; font-size: 1.02rem; font-weight: 600; color: var(--ink); line-height: 1.35; }

.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; }
/* Pastille posee sur le visuel : une seule, pas une nuee */
.hero-stamp {
  position: absolute; left: 0; bottom: 8%;
  background: var(--blue); color: #fff; padding: 18px 22px; border-radius: var(--r);
  max-width: 250px;
}
.hero-stamp .n { font-family: var(--mono); font-size: 2.1rem; font-weight: 600; line-height: 1; color: var(--green); }
.hero-stamp .t { font-size: .9rem; line-height: 1.4; margin-top: 8px; color: rgba(255,255,255,.9); }

/* ---------------------------------------------------------
   7. Bande de chiffres (fond sombre)
   --------------------------------------------------------- */
.band { background: var(--blue-deep); color: #fff; }
.band-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.band-grid > div { padding: clamp(30px,4vw,46px) 26px; border-left: 1px solid var(--line-dark); }
.band-grid > div:first-child { border-left: 0; padding-left: 0; }
.band-grid .n { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.7rem); font-weight: 700; letter-spacing: -.03em; color: #fff; line-height: 1; }
.band-grid .n span { color: var(--green); }
.band-grid .l { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-top: 12px; }

/* ---------------------------------------------------------
   8. Cartes categorie
   --------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(16px, 2vw, 28px); }
.cat-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.cat-card:hover { background: var(--paper); border-color: var(--blue); }
.cat-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.04); }
.cat-media.is-empty { background: var(--blue-deep); }
.cat-num {
  position: absolute; left: 0; top: 0; background: var(--white);
  font-family: var(--mono); font-size: .72rem; font-weight: 500; color: var(--blue);
  padding: 7px 12px; letter-spacing: .08em;
}
.cat-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 { font-size: 1.18rem; margin-bottom: 10px; }
.cat-card:hover .cat-body h3 { color: var(--blue); }
.cat-body p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.cat-meta {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.cat-meta .go { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 500; }
.cat-meta .go svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.cat-card:hover .cat-meta .go svg { transform: translateX(4px); }

.empty-note {
  border: 1px dashed var(--line-strong); background: var(--paper);
  padding: 40px 28px; text-align: center; color: var(--muted); border-radius: var(--r);
}

/* ---------------------------------------------------------
   9. Marques
   --------------------------------------------------------- */
.brand-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 6px 15px;
  background: var(--white); border: 1px solid var(--line);
  font-family: var(--mono); font-size: .82rem; color: var(--ink-2);
  text-decoration: none; border-radius: var(--r);
}
.brand-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.brand-chip .c { color: var(--muted); font-size: .74rem; margin-left: 8px; }

/* ---------------------------------------------------------
   10. Methode (liste numerotee)
   --------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.step { padding: 28px 26px 8px 0; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step + .step { padding-left: 26px; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 42px; height: 3px; background: var(--green);
}
.step + .step::before { left: 26px; }
.step .n { font-family: var(--mono); font-size: .8rem; color: var(--green-deep); letter-spacing: .1em; margin-bottom: 14px; }
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------------------------------------------------------
   11. Bloc scinde (a propos)
   --------------------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(32px, 5vw, 68px); align-items: center; }
.split--media-first .split-media { order: -1; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.split-media.is-empty { aspect-ratio: 4/3; background: var(--blue-deep); border-radius: var(--r); }
.split-media::after {
  content: ""; position: absolute; inset: auto auto -14px -14px;
  width: 96px; height: 96px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green);
  pointer-events: none;
}

.tick-list { display: grid; gap: 14px; margin-top: 26px; }
.tick-list li { display: flex; gap: 13px; align-items: flex-start; }
.tick-list svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--green-deep); }

/* ---------------------------------------------------------
   12. Appel a l'action
   --------------------------------------------------------- */
.cta { background: var(--blue); color: #fff; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; padding-block: clamp(44px, 5vw, 68px); }
.cta h2 { color: #fff; margin-bottom: 10px; max-width: 20ch; }
.cta p { color: rgba(255,255,255,.86); margin: 0; max-width: 46ch; }
.cta-side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-phone { font-family: var(--mono); font-size: 1.28rem; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.cta-phone:hover { color: var(--green); }
.cta-phone svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------
   13. Banniere de page interieure
   --------------------------------------------------------- */
.page-head { background: var(--blue-deep); color: #fff; position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 300px; height: 300px;
  border: 1px solid rgba(255,255,255,.1); transform: rotate(45deg);
}
.page-head .container { position: relative; z-index: 1; padding-block: clamp(42px, 5vw, 74px); }
.page-head h1 { color: #fff; margin-bottom: 14px; max-width: 18ch; }
.page-head p { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 62ch; margin: 0; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: rgba(255,255,255,.6); }
.crumbs a { display: inline-block; padding-block: 4px; color: var(--green); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--green); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: rgba(255,255,255,.85); }

/* ---------------------------------------------------------
   14. Catalogue : outils de filtrage
   --------------------------------------------------------- */
.tools { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); padding: 20px 22px; margin-bottom: 28px; }
.tools-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.tools-field { flex: 1 1 260px; min-width: 0; }
.tools-field label,
.filter-group > .fl {
  display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.search-input { position: relative; }
.search-input svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-input input {
  width: 100%; min-height: 46px; padding: 10px 14px 10px 42px;
  font-family: var(--font); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r);
}
.search-input input:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }

select.tools-select {
  width: 100%; min-height: 46px; padding: 10px 40px 10px 14px;
  font-family: var(--font); font-size: 1rem; color: var(--ink);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6474' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  -webkit-appearance: none; appearance: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 7px 16px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r);
  font-family: var(--font); font-size: .92rem; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.results-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; margin-bottom: 22px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .8rem; color: var(--muted);
}
.results-bar strong { color: var(--ink); font-weight: 600; }
.results-reset { background: none; border: 0; padding: 6px 0; font-family: var(--mono); font-size: .78rem; color: var(--blue); cursor: pointer; text-decoration: underline; }
.results-reset[hidden] { display: none; }

/* ---------------------------------------------------------
   15. Grille produits
   --------------------------------------------------------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(12px, 1.4vw, 20px); }
.prod-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.prod-card:hover { background: var(--paper); border-color: var(--blue); }
.prod-card[hidden] { display: none; }
.prod-media { position: relative; aspect-ratio: 1/1; background: var(--white); display: grid; place-items: center; overflow: hidden; }
.prod-media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .3s var(--ease); }
.prod-card:hover .prod-media img { transform: scale(1.05); }
.prod-media.is-empty { background: var(--paper-2); }
/* Vignette de remplacement : tant que la photo du fournisseur manque, on
   affiche le repere technique plutot qu'un rectangle vide. */
.prod-repere {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding-top: 10px; border-top: 2px solid var(--green); text-align: center;
}
.prod-repere--lg { font-size: 1.05rem; padding-top: 14px; border-top-width: 3px; }
.prod-body { padding: 4px 18px 20px; border-top: 1px solid var(--line); }
.prod-brand { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); margin: 14px 0 6px; }
.prod-name { display: block; font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.prod-cat { display: block; font-size: .82rem; color: var(--muted); margin-top: 8px; }

.load-more-wrap { display: flex; justify-content: center; margin-top: 36px; }

/* ---------------------------------------------------------
   16. Fiche produit
   --------------------------------------------------------- */
.prod-detail { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(28px,4vw,56px); align-items: start; }
.prod-detail-media { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; }
.prod-detail-media img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.prod-detail-media.is-empty { background: var(--paper); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; padding: 6px 12px; border-radius: var(--r); background: var(--blue-pale); color: var(--blue); text-decoration: none; }
.tag--green { background: var(--green-pale); color: var(--green-deep); }
.tag:hover { background: var(--blue); color: #fff; }

.spec-table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; width: 38%; }

/* ---------------------------------------------------------
   17. Contact
   --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(32px,4vw,60px); align-items: start; }
.contact-list { display: grid; gap: 12px; }
.contact-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; display: flex; gap: 16px; }
.contact-item svg { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: 3px; }
.contact-item h3 { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.contact-item p { margin: 0; font-size: 1rem; color: var(--ink); }
.contact-item a { display: inline-block; padding-block: 4px; margin: 0; font-size: 1rem; color: var(--ink); text-decoration: none; }
.contact-item a:hover { color: var(--blue); text-decoration: underline; }

.form { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px,3vw,34px); background: var(--white); }
.form > h2 { font-size: 1.35rem; margin-bottom: 6px; }
.form-hint { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--err); }
.field .opt { font-weight: 400; color: var(--muted); font-size: .84rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-family: var(--font); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r);
}
.field select { -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6474' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.field-note { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.field-check { display: flex; gap: 12px; align-items: flex-start; }
.field-check input { width: 24px; min-height: 24px; height: 24px; margin-top: 1px; flex: none; accent-color: var(--blue); }
.field-check label { font-weight: 400; font-size: .92rem; color: var(--ink-2); margin: 0; }

/* Piege a robots — invisible pour l'humain, lisible pour le lecteur d'ecran */
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.alert { border-radius: var(--r); padding: 16px 18px; margin-bottom: 24px; font-size: .95rem; border: 1px solid; }
.alert h3 { font-size: 1rem; margin-bottom: 6px; }
.alert p:last-child { margin-bottom: 0; }
.alert ul { list-style: disc; padding-left: 20px; margin-top: 8px; }
.alert--ok  { background: var(--ok-bg);  border-color: #B6E0C6; color: var(--ok); }
.alert--err { background: var(--err-bg); border-color: #EEC0C0; color: var(--err); }
.alert--ok h3, .alert--err h3 { color: inherit; }
.alert a { color: inherit; }

.map { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; aspect-ratio: 21/8; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------
   18. Texte long / pages legales
   --------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.4rem; margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1rem; }
.prose ol { padding-left: 22px; margin-bottom: 1rem; }
.prose li { margin-bottom: 8px; }
.prose dl { margin: 0 0 1rem; }
.prose dt { font-weight: 600; color: var(--ink); }
.prose dd { margin: 0 0 10px; }

.callout { border-left: 3px solid var(--green); background: var(--green-pale); padding: 16px 20px; margin-bottom: 32px; font-size: .94rem; border-radius: 0 var(--r) var(--r) 0; }
.callout strong { color: var(--green-deep); }

/* Sommaire des pages legales */
.toc { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; margin-bottom: 36px; background: var(--paper); }
.toc h2 { font-family: var(--mono); font-size: .74rem !important; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px !important; font-weight: 500; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc a { font-size: .94rem; }

/* ---------------------------------------------------------
   19. Pied de page
   --------------------------------------------------------- */
.site-footer { background: var(--blue-ink); color: rgba(255,255,255,.78); }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; padding-block: clamp(46px,5vw,72px); }
.footer-logo { height: 50px; width: auto; margin-bottom: 20px; }
.footer-about { font-size: .94rem; line-height: 1.7; max-width: 34ch; }
.footer-col h2 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 500; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding-block: 5px; color: rgba(255,255,255,.78); font-size: .94rem; text-decoration: none; }
.footer-col a:hover { color: var(--green); text-decoration: underline; }
.footer-contact li { display: flex; gap: 11px; font-size: .94rem; align-items: flex-start; }
.footer-contact svg { flex: none; width: 17px; height: 17px; color: var(--green); margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding-block: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .75rem; color: rgba(255,255,255,.66); letter-spacing: .03em;
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a { display: inline-block; padding-block: 4px; color: rgba(255,255,255,.78); text-decoration: none; }
.footer-bottom a:hover { color: var(--green); text-decoration: underline; }

/* ---------------------------------------------------------
   20. 404 / recherche
   --------------------------------------------------------- */
.notfound { text-align: center; max-width: 620px; margin-inline: auto; }
.notfound .code { font-family: var(--mono); font-size: 4.5rem; font-weight: 600; color: var(--green); line-height: 1; margin-bottom: 12px; }

.result-list { display: grid; gap: 14px; }
.result-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.result-item h2 { font-size: 1.18rem; margin-bottom: 6px; }
.result-item .type { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 8px; }
.result-item p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------------------------------------------------------
   21. Animation d'entree — degradation propre sans JS
   --------------------------------------------------------- */
.js .rise { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: no-preference) {
  .js .rise { transition: opacity .5s var(--ease), transform .5s var(--ease); }
}
.js .rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   22. Utilitaires
   --------------------------------------------------------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.mt-8  { margin-top: 8px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-0  { margin-bottom: 0; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------------------------------------------------
   23. Adaptations
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: -1px; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 40px 56px; }
  .hero-visual { max-width: 520px; }
  .hero-stamp { left: auto; right: 0; bottom: 4%; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--media-first .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .prod-detail { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .band-grid > div { padding-left: 26px; border-top: 1px solid var(--line-dark); }
  .band-grid > div:first-child { padding-left: 26px; }
  .band-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .band-grid > div:nth-child(-n+2) { border-top: 0; }
}

/* Navigation repliee */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--pop); padding: 8px var(--gutter) 22px;
    max-height: calc(100dvh - 120px); overflow-y: auto;
  }
  .primary-nav[hidden] { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; }
  .nav-link[aria-current="page"]::after { left: 4px; right: auto; width: 22px; bottom: 12px; }
  .nav-cta { margin-top: 18px; width: 100%; }
  /* Le bandeau de service se reduit au contact : l'adresse et les horaires
     restent accessibles dans le pied de page et sur la page Contact. */
  .topbar-facts { display: none; }
  .topbar .container { justify-content: center; min-height: 34px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero-facts { grid-template-columns: 1fr; border-top: 0; }
  .hero-facts div { padding: 16px 0; border-top: 1px solid var(--line); }
  .hero-facts div + div { padding-left: 0; border-left: 0; }
  .hero-stamp { position: static; max-width: none; margin-top: 18px; display: flex; align-items: center; gap: 16px; }
  .hero-stamp .t { margin-top: 0; }
  .cat-grid, .prod-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .prod-body { padding: 2px 12px 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; padding: 26px 0 8px; }
  .step + .step { padding-left: 0; border-top: 1px solid var(--line); }
  .step + .step::before { left: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .cta .container { flex-direction: column; align-items: flex-start; }
  .map { aspect-ratio: 4/3; }
}

@media (max-width: 420px) {
  .cat-grid { grid-template-columns: 1fr; }
  .prod-name { font-size: .88rem; }
}

/* Impression */
@media print {
  .site-header, .site-footer, .cta, .tools, .results-bar, .load-more-wrap, .skip-link { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .js .rise { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
