/* ==========================================================================
   MIENGNOLI GROUP SARLU — feuille de styles principale
   Charte issue du logo et du catalogue institutionnel :
   bleu marine #19294A · or #D69118 · blanc cassé #F7F4ED · gris technique
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --navy-900: #0b1626;
  --navy-800: #101f36;
  --navy-700: #142744;
  --navy: #19294a;
  --navy-600: #24395f;
  --navy-500: #37507b;

  --gold-700: #a86f0b;
  --gold: #d69118;
  --gold-400: #e7ad45;
  --gold-100: #f7e8c9;

  --cream: #f7f4ed;
  --cream-200: #efeade;
  --white: #ffffff;

  --ink: #131a24;
  --steel-700: #46556b;
  --steel-500: #6c7b91;
  --steel-300: #aab4c2;
  --steel-200: #d7dce3;
  --steel-100: #e9ecf1;

  --ok: #1f7a4d;
  --err: #b3261e;

  /* Typographie */
  --ff-display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ff-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.6rem, 1.5rem + 4.2vw, 5.1rem);
  --fs-h1: clamp(2.2rem, 1.5rem + 2.9vw, 3.9rem);
  --fs-h2: clamp(1.8rem, 1.35rem + 1.9vw, 2.85rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.55vw, 1.6rem);
  --fs-h4: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --fs-lede: clamp(1.06rem, 1rem + 0.35vw, 1.28rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Approches optiques : plus le corps est grand, plus l'approche se resserre. */
  --track-display: -0.03em;
  --track-h2: -0.022em;
  --track-h3: -0.012em;
  --track-eyebrow: 0.18em;

  /* Espacement */
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --maxw: 1320px;
  --maxw-narrow: 820px;
  --maxw-lecture: 68ch;
  --sec-y: clamp(4.75rem, 3rem + 6.5vw, 9.5rem);

  /* Divers */
  --r: 3px;
  --r-lg: 6px;
  --line: 1px solid var(--steel-200);
  --shadow-sm: 0 1px 2px rgba(11, 22, 38, 0.06), 0 4px 16px rgba(11, 22, 38, 0.05);
  --shadow-md: 0 12px 40px -12px rgba(11, 22, 38, 0.24);
  --shadow-lg: 0 30px 70px -28px rgba(11, 22, 38, 0.38);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --hdr-h: 78px;
}

/* --------------------------------------------------------------------------
   2. Réinitialisation
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  line-height: 1.68;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* L'attribut `hidden` doit primer sur toute règle d'affichage de la feuille. */
[hidden] { display: none !important; }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 0.6em;
  text-wrap: balance;
  font-variant-numeric: oldstyle-nums;
}
h1 { font-size: var(--fs-h1); letter-spacing: var(--track-display); line-height: 1.06; }
h2 { font-size: var(--fs-h2); letter-spacing: var(--track-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: var(--track-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--ff-text); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-color: rgba(25, 41, 74, 0.28); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

strong, b { font-weight: 600; }
small { font-size: var(--fs-xs); }
address { font-style: normal; }
hr { border: 0; border-top: var(--line); margin: 2.5rem 0; }

button { font: inherit; color: inherit; }
::selection { background: var(--navy); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 0.85rem 1.25rem; font-size: var(--fs-sm);
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Utilitaires de mise en page
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--cream { background: var(--cream); }
/* Dégradé très contenu : donne de la matière au bleu sans effet tapageur. */
.section--navy {
  background: linear-gradient(168deg, var(--navy-700) 0%, var(--navy) 46%, var(--navy-800) 100%);
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  overflow: hidden;
}
.section--navy::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 80% 0%, rgba(231, 173, 69, 0.07), transparent 60%);
  pointer-events: none;
}
.section--navy > * { position: relative; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--line { border-top: var(--line); }

.grid { display: grid; gap: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
}
.split__media { grid-column: span 6; }
.split__body { grid-column: span 6; }
.split--reverse .split__media { order: 2; }
.split--wide-media .split__media { grid-column: span 7; }
.split--wide-media .split__body { grid-column: span 5; }

.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--steel-700); }
.section--navy .lede { color: rgba(255, 255, 255, 0.78); }

/* --------------------------------------------------------------------------
   4. Typographie éditoriale
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--ff-text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--steel-500);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
/* Filet doré, doublé d'un point : un repère discret, répété sur tout le site. */
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(to right, var(--gold), rgba(214, 145, 24, 0.25));
  flex: none;
}
.eyebrow--gold { color: var(--gold-400); }
.eyebrow--plain::before { display: none; }
.sec-head--center .eyebrow { justify-content: center; }

.sec-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 1.5rem + 2vw, 3.75rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head__title { margin-bottom: 0.5em; }
.sec-head__intro { font-size: var(--fs-lede); color: var(--steel-700); margin: 0; }
.sec-head--light .sec-head__title { color: #fff; }
.sec-head--light .sec-head__intro { color: rgba(255, 255, 255, 0.76); }

.prose > * + * { margin-top: 1.15em; }
.prose h3 { margin-top: 2em; }
.prose ul { list-style: none; padding: 0; }
.prose ul li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.6em;
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 7px; height: 7px; border: 1.5px solid var(--gold); border-radius: 50%;
}

.quote {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.38;
  color: var(--navy);
  border-left: 2px solid var(--gold);
  padding-left: clamp(1.25rem, 0.8rem + 1.5vw, 2.25rem);
  margin: 0;
}
.quote cite { display: block; margin-top: 1.25rem; font-family: var(--ff-text); font-size: var(--fs-sm); font-style: normal; color: var(--steel-500); letter-spacing: 0.04em; }

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  --btn-bd: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn .ic { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover .btn__ic { transform: translateX(3px); }

.btn--primary:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }
.btn--gold { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: #1a1205; }
.btn--gold:hover { --btn-bg: var(--gold-400); --btn-bd: var(--gold-400); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--steel-200); }
.btn--ghost:hover { --btn-bd: var(--navy); --btn-bg: transparent; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.34); }
.btn--ghost-light:hover { --btn-bd: #fff; }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
  color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.link-arrow .ic { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* --------------------------------------------------------------------------
   6. En-tête
   -------------------------------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 90;
  background: #fff;
  border-bottom: var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hdr__bar { display: flex; align-items: center; gap: 1.5rem; min-height: var(--hdr-h); }

.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; flex: none; }
.brand__mark { width: 46px; height: 46px; }
.brand__mark--light { display: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--ff-display); font-weight: 700; font-size: 1.12rem;
  letter-spacing: 0.02em; color: var(--navy);
}
.brand__sub { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-500); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav__item { margin: 0; position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.6rem 0.85rem; font-size: var(--fs-sm); font-weight: 500;
  color: var(--navy-700); text-decoration: none; border-radius: var(--r);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--navy); background: var(--cream); }
.nav__link.is-active { color: var(--navy); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: -2px;
  height: 2px; background: var(--gold);
}
.nav__chev { width: 14px; height: 14px; opacity: 0.6; transition: transform 0.25s var(--ease); }
.nav__item--has-sub:hover .nav__chev { transform: rotate(180deg); }

.subnav {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px);
  width: min(620px, 80vw);
  background: #fff; border: var(--line); border-top: 2px solid var(--gold);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.subnav::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav__item--has-sub:hover .subnav,
.nav__item--has-sub:focus-within .subnav { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.subnav__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; }
.subnav__list { list-style: none; margin: 0; padding: 0.9rem; }
.subnav__list li { margin: 0; }
.subnav__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0.9rem; font-size: var(--fs-sm); font-weight: 500;
  color: var(--navy-700); text-decoration: none; border-radius: var(--r);
  transition: background 0.2s, color 0.2s;
}
.subnav__list a .ic { width: 16px; height: 16px; opacity: 0; transform: translateX(-4px); transition: all 0.25s var(--ease); }
.subnav__list a:hover { background: var(--cream); color: var(--navy); }
.subnav__list a:hover .ic { opacity: 1; transform: translateX(0); }
.subnav__list a.is-active { color: var(--gold-700); }
.subnav__aside { background: var(--cream); padding: 1.6rem 1.5rem; border-left: var(--line); }
.subnav__aside p { font-size: var(--fs-sm); color: var(--steel-700); }
.subnav__aside .btn { margin-top: 0.5rem; }

.hdr__actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.hdr__actions .btn { padding: 0.75rem 1.2rem; white-space: nowrap; }

/* La navigation compte sept entrées : l'en-tête dispose d'une largeur propre,
   un peu supérieure à celle du contenu, et le libellé du bouton se raccourcit
   avant que quoi que ce soit ne déborde. */
.hdr__bar { max-width: 1400px; gap: 1.25rem; }
.hdr__cta-court { display: none; }

@media (max-width: 1460px) {
  .nav__list { gap: 0.05rem; }
  .nav__link { padding: 0.6rem 0.5rem; font-size: 0.875rem; }
}
@media (max-width: 1300px) {
  /* La baseline de marque cède la place à la navigation avant tout débordement. */
  .brand__sub { display: none; }
}
@media (max-width: 1240px) {
  .hdr__cta-long { display: none; }
  .hdr__cta-court { display: inline; }
}

.burger {
  display: none; width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--steel-200); border-radius: var(--r);
  cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 13px; width: 20px; height: 1.5px; background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }

/* En-tête transparent au-dessus du héros (accueil) */
.hdr--over { position: absolute; inset: 0 0 auto; background: transparent; border-bottom-color: rgba(255, 255, 255, 0.16); }
.hdr--over .hdr__main { background: transparent; }
.hdr--over .brand__name { color: #fff; }
.hdr--over .brand__sub { color: rgba(255, 255, 255, 0.72); }
.hdr--over .brand__mark { display: none; }
.hdr--over .brand__mark--light { display: block; }
.hdr--over .nav__link { color: rgba(255, 255, 255, 0.88); }
.hdr--over .nav__link:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hdr--over .burger { border-color: rgba(255, 255, 255, 0.3); }
.hdr--over .burger span { background: #fff; }
.hdr--over .btn--primary { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: #1a1205; }

.hdr.is-stuck {
  position: fixed; inset: 0 0 auto; background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom-color: var(--steel-200);
  box-shadow: 0 8px 28px -20px rgba(11, 22, 38, 0.5);
  animation: slideDown 0.35s var(--ease);
}
.hdr.is-stuck .brand__mark { display: block; }
.hdr.is-stuck .brand__mark--light { display: none; }
.hdr.is-stuck .brand__name { color: var(--navy); }
.hdr.is-stuck .brand__sub { color: var(--steel-500); }
.hdr.is-stuck .nav__link { color: var(--navy-700); }
.hdr.is-stuck .nav__link:hover { background: var(--cream); color: var(--navy); }
.hdr.is-stuck .burger { border-color: var(--steel-200); }
.hdr.is-stuck .burger span { background: var(--navy); }
.hdr.is-stuck .btn--primary { --btn-bg: var(--navy); --btn-bd: var(--navy); --btn-fg: #fff; }

@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Navigation mobile plein écran */
.mnav {
  position: fixed; inset: 0; z-index: 120;
  background: var(--navy); color: #fff;
  display: flex; flex-direction: column;
  padding: 1.25rem var(--gutter) 2rem;
  overflow-y: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mnav[hidden] { display: none; }
.mnav.is-open { opacity: 1; transform: none; }
.mnav__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.brand--small img { width: 38px; height: 38px; }
.brand--small .brand__name { color: #fff; font-size: 1rem; }
.mnav__close { width: 46px; height: 46px; display: grid; place-items: center; background: transparent; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: var(--r); color: #fff; cursor: pointer; }
.mnav__close .ic { width: 20px; height: 20px; }
.mnav__list { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.mnav__item { margin: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mnav__link {
  display: block; padding: 1.05rem 0; font-family: var(--ff-display);
  font-size: 1.5rem; color: #fff; text-decoration: none;
}
.mnav__link.is-active { color: var(--gold-400); }
.mnav__sub { list-style: none; margin: 0 0 1rem; padding: 0 0 0 1rem; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.mnav__sub a { display: block; padding: 0.5rem 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.mnav__sub a:hover { color: var(--gold-400); }
.mnav__foot { margin-top: auto; padding-top: 2rem; }
.mnav__contact { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.mnav__contact li { margin: 0; }
.mnav__contact a { display: flex; align-items: center; gap: 0.6rem; color: rgba(255, 255, 255, 0.8); font-size: var(--fs-sm); text-decoration: none; }
.mnav__contact .ic { width: 16px; height: 16px; color: var(--gold-400); }
body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Héros
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  padding-top: calc(var(--hdr-h) + 48px);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--navy-900);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(9, 19, 34, 0.92) 0%, rgba(9, 19, 34, 0.74) 42%, rgba(9, 19, 34, 0.32) 78%, rgba(9, 19, 34, 0.42) 100%),
    linear-gradient(to top, rgba(9, 19, 34, 0.85) 0%, rgba(9, 19, 34, 0) 48%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__eyebrow { color: rgba(255, 255, 255, 0.72); }
.hero__eyebrow::before { background: var(--gold); }
/* Accueil : le hero porte le logo et se limite au titre, au texte et aux
   deux actions. Pas de bandeau de chiffres — la page doit tenir en deux écrans. */
.hero--accueil { min-height: min(78vh, 700px); }
.hero__logo {
  display: block; width: clamp(86px, 7vw, 112px); height: auto;
  margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
.hero__title {
  font-size: var(--fs-display); color: #fff; max-width: 16ch;
  letter-spacing: -0.025em; margin-bottom: 0.45em;
}
.hero__title em { font-style: normal; color: var(--gold-400); }
.hero__text { max-width: 54ch; color: rgba(255, 255, 255, 0.82); font-size: var(--fs-lede); margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__strip {
  position: relative; z-index: 2;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.75rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.hero__strip div p { margin: 0; }
.hero__strip .k { font-family: var(--ff-display); font-size: 1.7rem; color: #fff; line-height: 1; }
.hero__strip .l { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); margin-top: 0.45rem; }

/* En-tête de page intérieure */
.phead {
  position: relative; background: var(--navy); color: #fff; overflow: hidden;
  padding-block: clamp(3.25rem, 2rem + 5vw, 6rem);
}
.phead::after {
  content: ""; position: absolute; right: -8%; top: -40%; width: 46%; aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 50%;
}
.phead::before {
  content: ""; position: absolute; right: 2%; bottom: -55%; width: 34%; aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 50%;
}
.phead__inner { position: relative; z-index: 2; max-width: 68ch; }
.phead h1 { color: #fff; margin-bottom: 0.4em; }
.phead__text { font-size: var(--fs-lede); color: rgba(255, 255, 255, 0.78); margin: 0; }
.phead .eyebrow { color: var(--gold-400); }
.phead--media { padding-block: 0; }
.phead--media .phead__bg { position: absolute; inset: 0; }
.phead--media .phead__bg img { width: 100%; height: 100%; object-fit: cover; }
.phead--media .phead__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11, 22, 38, 0.94), rgba(11, 22, 38, 0.72) 55%, rgba(11, 22, 38, 0.45));
}
.phead--media .phead__inner { padding-block: clamp(4rem, 2.5rem + 6vw, 7.5rem); }

/* Fil d'Ariane */
.crumbs { border-bottom: var(--line); background: var(--white); font-size: var(--fs-xs); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0.85rem 0; color: var(--steel-500); }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 0.45rem; }
.crumbs li + li::before { content: "›"; color: var(--steel-300); }
.crumbs a { color: var(--steel-700); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs [aria-current] { color: var(--navy); font-weight: 500; }

/* --------------------------------------------------------------------------
   8. Cartes
   -------------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  background: #fff; border: var(--line); border-radius: var(--r);
  text-decoration: none; color: inherit; overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { border-color: var(--navy-500); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-200); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card__media img { transform: scale(1.055); }
/* Voile bas très léger : ancre la photo et fait ressortir le numéro. */
.card__media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(11, 22, 38, 0.38), transparent);
  opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none;
}
.card:hover .card__media::after { opacity: 1; }
.card__media--contain { background: var(--cream); }
.card__media--contain img { object-fit: cover; }
.card__num {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--navy); color: var(--gold-400);
  font-family: var(--ff-display); font-size: 0.85rem; letter-spacing: 0.12em;
  padding: 0.4rem 0.85rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.card:hover .card__num { background: var(--gold); color: var(--navy); }
.card__body { padding: clamp(1.25rem, 1rem + 0.8vw, 1.8rem); display: flex; flex-direction: column; flex: 1; }
.card__meta { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-500); margin: 0 0 0.55rem; }
.card__title { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.card__text { font-size: var(--fs-sm); color: var(--steel-700); margin-bottom: 1.35rem; }
.card__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--navy);
}
.card__link .ic { width: 17px; height: 17px; color: var(--gold); transition: transform 0.3s var(--ease); }
.card:hover .card__link .ic { transform: translateX(4px); }

.card--sector .card__media { aspect-ratio: 16 / 10; }

/* Carte « texte seul » numérotée */
.tile {
  position: relative; background: #fff; border: var(--line); border-radius: var(--r);
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tile:hover { border-color: var(--navy-500); transform: translateY(-2px); }
.tile__num { font-family: var(--ff-display); font-size: 0.85rem; letter-spacing: 0.18em; color: var(--gold-700); display: block; margin-bottom: 1rem; }
.tile h3 { font-size: var(--fs-h4); font-family: var(--ff-text); font-weight: 600; letter-spacing: 0; margin-bottom: 0.5rem; }
.tile p { font-size: var(--fs-sm); color: var(--steel-700); margin: 0; }
.section--navy .tile { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.14); }
.section--navy .tile p { color: rgba(255, 255, 255, 0.72); }
.section--navy .tile:hover { border-color: rgba(255, 255, 255, 0.34); }

/* --------------------------------------------------------------------------
   9. Chiffres clés
   -------------------------------------------------------------------------- */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.figures__item { padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); border-right: var(--line); }
.figures__item:last-child { border-right: 0; }
.figures__value { font-family: var(--ff-display); font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 1; color: var(--navy); margin: 0 0 0.5rem; }
.figures__label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); margin: 0 0 0.35rem; }
.figures__note { font-size: var(--fs-xs); color: var(--steel-500); margin: 0; }

/* --------------------------------------------------------------------------
   10. Médias
   -------------------------------------------------------------------------- */
.media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--cream-200); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1; }
.media__caption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 2.5rem 1.5rem 1.15rem;
  background: linear-gradient(to top, rgba(11, 22, 38, 0.88), transparent);
  color: rgba(255, 255, 255, 0.92); font-size: var(--fs-xs); letter-spacing: 0.04em;
}
.media-stack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.media-stack .media:first-child { grid-column: span 2; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

.badge-frame {
  position: relative;
}
.badge-frame::before {
  content: ""; position: absolute; inset: auto auto -18px -18px; width: 62%; height: 62%;
  border: 1px solid var(--gold); border-radius: var(--r); z-index: -1;
}

/* --------------------------------------------------------------------------
   11. Processus / étapes
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 92px 1fr; gap: clamp(1rem, 0.6rem + 1.5vw, 2.5rem);
  padding: clamp(1.5rem, 1.1rem + 1vw, 2.15rem) 0;
  border-top: var(--line);
}
.step:last-child { border-bottom: var(--line); }
.step__num {
  counter-increment: step;
  font-family: var(--ff-display); font-size: 1.05rem; letter-spacing: 0.14em;
  color: var(--gold-700); padding-top: 0.25rem;
}
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: var(--fs-h4); font-family: var(--ff-text); font-weight: 600; letter-spacing: 0; margin-bottom: 0.4rem; }
.step p { font-size: var(--fs-sm); color: var(--steel-700); margin: 0; }
.section--navy .step { border-color: rgba(255, 255, 255, 0.14); }
.section--navy .step p { color: rgba(255, 255, 255, 0.72); }
.section--navy .step__num { color: var(--gold-400); }

/* Chaîne horizontale (9 étapes de la méthode) */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--steel-200); border: var(--line); }
.flow__item { background: #fff; padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.flow__num { font-family: var(--ff-display); font-size: 0.8rem; letter-spacing: 0.18em; color: var(--gold-700); }
.flow__item h3 { font-size: 1rem; font-family: var(--ff-text); font-weight: 600; letter-spacing: 0; margin: 0.7rem 0 0.4rem; }
.flow__item p { font-size: var(--fs-sm); color: var(--steel-700); margin: 0; }

/* --------------------------------------------------------------------------
   12. Listes à coches
   -------------------------------------------------------------------------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.checks li { position: relative; padding-left: 2rem; margin: 0; font-size: var(--fs-sm); color: var(--steel-700); }
.checks .ic, .checks li::before { position: absolute; left: 0; top: 0.22em; width: 18px; height: 18px; color: var(--gold); }
.checks li::before {
  content: ""; border: 1px solid var(--gold); border-radius: 50%;
  background: var(--gold-100);
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 0.6em; width: 8px; height: 4px;
  border-left: 1.5px solid var(--gold-700); border-bottom: 1.5px solid var(--gold-700);
  transform: rotate(-45deg);
}
.section--navy .checks li { color: rgba(255, 255, 255, 0.78); }
.section--navy .checks li::before { background: rgba(214, 145, 24, 0.18); }
.section--navy .checks li::after { border-color: var(--gold-400); }

/* --------------------------------------------------------------------------
   13. Accordéon
   -------------------------------------------------------------------------- */
.acc { border-top: var(--line); }
.acc__item { border-bottom: var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--ff-display); font-size: var(--fs-h4); font-weight: 600; color: var(--navy);
}
.acc__btn .ic { width: 20px; height: 20px; flex: none; color: var(--gold); transition: transform 0.3s var(--ease); }
.acc__btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.acc__panel { overflow: hidden; height: 0; transition: height 0.35s var(--ease); }
.acc__panel-in { padding-bottom: 1.6rem; font-size: var(--fs-sm); color: var(--steel-700); max-width: 72ch; }

/* --------------------------------------------------------------------------
   14. Catalogue — filtres
   -------------------------------------------------------------------------- */
.filters {
  position: sticky; top: var(--hdr-h); z-index: 40;
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(8px);
  border-block: var(--line); padding-block: 0.9rem;
}
.filters__in { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.filters__chips { display: flex; gap: 0.5rem; flex-wrap: wrap; flex: 1; }
.chip {
  padding: 0.55rem 1rem; border: 1px solid var(--steel-200); border-radius: 999px;
  background: #fff; font-size: var(--fs-sm); color: var(--navy-700); cursor: pointer;
  transition: all 0.25s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--navy-500); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.search {
  position: relative; display: flex; align-items: center; min-width: 240px;
}
.search input {
  width: 100%; padding: 0.6rem 0.9rem; border: 1px solid var(--steel-200); border-radius: var(--r);
  font-size: var(--fs-sm); font-family: inherit; background: #fff;
}
.search input:focus { outline: none; border-color: var(--navy-500); }
.filters__count { font-size: var(--fs-xs); color: var(--steel-500); white-space: nowrap; }
.empty-state { padding: 4rem 0; text-align: center; color: var(--steel-500); }

/* --------------------------------------------------------------------------
   15. Fiche produit
   -------------------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 1.2rem + 3vw, 4rem); }
.pdp__gallery { grid-column: span 7; }
.pdp__aside { grid-column: span 5; }

.pgal__main { position: relative; aspect-ratio: 4 / 3; background: var(--cream); border: var(--line); border-radius: var(--r); overflow: hidden; }
/* `contain` : aucune photo ni aucun schéma technique n'est rogné dans la vue principale. */
.pgal__main img { width: 100%; height: 100%; object-fit: contain; }
.pgal__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.pgal__thumb {
  aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--steel-200); border-radius: var(--r);
  background: var(--cream); cursor: pointer; overflow: hidden; transition: border-color 0.25s;
}
.pgal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pgal__thumb.is-on { border-color: var(--navy); }

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { text-align: left; padding: 0.9rem 0; border-bottom: var(--line); vertical-align: top; }
.spec-table th { width: 42%; font-weight: 600; color: var(--navy); padding-right: 1.5rem; }
.spec-table td { color: var(--steel-700); }

.pbox { border: var(--line); border-radius: var(--r); padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); background: var(--cream); }
.pbox h3 { font-size: var(--fs-h4); font-family: var(--ff-text); letter-spacing: 0; margin-bottom: 0.75rem; }
.pbox .btn { width: 100%; justify-content: center; }
.pbox .btn + .btn { margin-top: 0.7rem; }
.pbox__note { font-size: var(--fs-xs); color: var(--steel-500); margin-top: 1rem; }

.tag {
  display: inline-block; padding: 0.3rem 0.7rem; border: 1px solid var(--steel-200);
  border-radius: 999px; font-size: var(--fs-xs); color: var(--steel-700); background: #fff;
  margin: 0 0.35rem 0.35rem 0;
}

/* --------------------------------------------------------------------------
   16. Formulaires
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.req { color: var(--gold-700); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1rem; font-family: inherit; font-size: var(--fs-sm);
  color: var(--ink); background: #fff; border: 1px solid var(--steel-200); border-radius: var(--r);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(36, 57, 95, 0.1);
}
.field input::placeholder, .field textarea::placeholder { color: var(--steel-300); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--err); }
.field__error { font-size: var(--fs-xs); color: var(--err); margin: 0; }
.field__help { font-size: var(--fs-xs); color: var(--steel-500); margin: 0; }
.select { position: relative; }
.select select { appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select__ic { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--steel-500); pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--steel-500); }
.form__consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.form__status { font-size: var(--fs-sm); margin: 0; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }
.form--compact { gap: 0.9rem; }

/* Regroupement de champs */
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1.15rem; }
.fieldset + .fieldset { margin-top: 0.5rem; padding-top: 1.75rem; border-top: var(--line); }
.fieldset legend {
  padding: 0; margin-bottom: 0.35rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-700);
}
.field__opt { font-weight: 400; color: var(--steel-500); font-size: var(--fs-xs); }

/* Pièces jointes */
.upload { border: 1px dashed var(--steel-300); border-radius: var(--r); padding: 1.15rem; background: var(--cream); }
.upload input[type="file"] { font-size: var(--fs-sm); width: 100%; }
.upload input[type="file"]::file-selector-button {
  margin-right: 0.9rem; padding: 0.55rem 1rem; border: 1px solid var(--navy);
  border-radius: var(--r); background: var(--navy); color: #fff;
  font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
.upload input[type="file"]::file-selector-button:hover { background: var(--navy-700); }
.upload__hint { font-size: var(--fs-xs); color: var(--steel-500); margin: 0.85rem 0 0; }
.upload__list { list-style: none; margin: 0.85rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.upload__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0;
  font-size: var(--fs-xs); color: var(--steel-700);
  background: #fff; border: var(--line); border-radius: var(--r); padding: 0.5rem 0.75rem;
}
.upload__list li.is-bad { border-color: var(--err); color: var(--err); }
.upload__list .poids { color: var(--steel-500); flex: none; }

.form-card {
  background: #fff; border: var(--line); border-radius: var(--r);
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 3rem);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   17. Bandeau CTA
   -------------------------------------------------------------------------- */
.cta-band { background: var(--navy); color: rgba(255, 255, 255, 0.8); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; left: -6%; top: -60%; width: 34%; aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50%;
}
.cta-band__inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-block: clamp(3rem, 2rem + 3.5vw, 5rem);
}
.cta-band h2 { color: #fff; max-width: 20ch; margin-bottom: 0.5rem; }
.cta-band .lede { max-width: 52ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: 0.8rem; flex: none; min-width: 240px; }
.cta-band__actions .btn { justify-content: space-between; }

/* --------------------------------------------------------------------------
   18. Pied de page
   -------------------------------------------------------------------------- */
.ftr { background: var(--navy-900); color: rgba(255, 255, 255, 0.68); font-size: var(--fs-sm); border-top: 3px solid var(--gold); }
.ftr__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}
.ftr__brand img { width: 62px; height: 62px; margin-bottom: 1.25rem; }
.ftr__claim { font-family: var(--ff-display); font-size: 1.35rem; color: #fff; margin-bottom: 0.9rem; }
.ftr__desc { color: rgba(255, 255, 255, 0.6); max-width: 38ch; }
/* Réseaux sociaux : pastilles cerclées au pied de page, liste lisible sur la
   page Contact. Seuls les comptes renseignés dans site.js sont rendus. */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 0.65rem; padding: 0; margin: 1.5rem 0 0; }
.social li { margin: 0; }
.social a {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.78); text-decoration: none;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.social a:hover, .social a:focus-visible {
  color: var(--navy); background: var(--gold-400); border-color: var(--gold-400);
  transform: translateY(-2px);
}
.social .ic { width: 19px; height: 19px; }

/* Variante en liste : l'icône est suivie du nom et de l'identifiant. */
.social--liste { flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.social--liste a {
  width: auto; height: auto; border-radius: var(--r);
  grid-auto-flow: column; justify-content: start; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.9rem 0.5rem 0.6rem;
  border-color: var(--steel-200); color: var(--navy);
  font-size: var(--fs-sm); font-weight: 500;
}
.social--liste a:hover, .social--liste a:focus-visible {
  background: var(--cream-200); border-color: var(--navy-500); color: var(--navy); transform: none;
}
.social--liste .ic { color: var(--gold-700); }
.ftr__title { font-family: var(--ff-text); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1.35rem; }
.ftr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ftr__list li { margin: 0; }
.ftr__list a, .ftr__contact a { color: rgba(255, 255, 255, 0.72); text-decoration: none; transition: color 0.2s; }
.ftr__list a:hover, .ftr__contact a:hover { color: #fff; }
.ftr__contact { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.ftr__contact li { margin: 0; }
.ftr__contact a, .ftr__contact .is-plain, .ftr__contact li.is-plain { display: flex; align-items: flex-start; gap: 0.6rem; }
.ftr__contact .ic { width: 16px; height: 16px; color: var(--gold-400); flex: none; margin-top: 3px; }
.ftr__contact small { color: rgba(255, 255, 255, 0.45); }
.ftr address p { color: rgba(255, 255, 255, 0.62); }
.ftr__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: var(--fs-xs); }
.ftr__bottom-in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; color: rgba(255, 255, 255, 0.45); }
/* Réserve la place du bouton WhatsApp flottant */
@media (min-width: 761px) { .ftr__bottom-in { padding-right: 170px; } }
.ftr__bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   19. WhatsApp flottant + modale
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: clamp(1rem, 0.5rem + 1.5vw, 1.75rem); bottom: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  z-index: 80; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.15rem; background: #1f9d55; color: #fff; text-decoration: none;
  border-radius: 999px; font-size: var(--fs-sm); font-weight: 600;
  box-shadow: 0 10px 30px -8px rgba(31, 157, 85, 0.55);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.wa-float:hover { background: #18854a; transform: translateY(-2px); }
.wa-float .ic { width: 22px; height: 22px; }

.modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: var(--gutter); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11, 22, 38, 0.72); backdrop-filter: blur(3px); animation: fade 0.25s var(--ease); }
.modal__panel {
  position: relative; width: min(480px, 100%); background: #fff; border-radius: var(--r-lg);
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); box-shadow: var(--shadow-lg);
  animation: pop 0.3s var(--ease); max-height: 90vh; overflow-y: auto;
}
.modal__close { position: absolute; top: 0.9rem; right: 0.9rem; width: 38px; height: 38px; display: grid; place-items: center; background: transparent; border: 1px solid var(--steel-200); border-radius: var(--r); cursor: pointer; }
.modal__close .ic { width: 18px; height: 18px; }
.modal__text { font-size: var(--fs-sm); color: var(--steel-700); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

/* --------------------------------------------------------------------------
   20. Apparition au défilement
   -------------------------------------------------------------------------- */
/* Le masquage n'est appliqué que si le JavaScript est actif : sans JS,
   la classe `js` est absente et tout le contenu reste visible. */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   23. Renvois compacts entre modules (évitent de répéter les cartes)
   -------------------------------------------------------------------------- */
.linkrow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: var(--line); }
.linkrow li { margin: 0; border-bottom: var(--line); }
.linkrow a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.05rem 0.25rem 1.05rem 0; text-decoration: none; color: var(--navy);
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}
.linkrow a:hover { padding-left: 0.65rem; color: var(--gold-700); }
.linkrow__num { font-family: var(--ff-display); font-size: 0.8rem; letter-spacing: 0.16em; color: var(--gold-700); flex: none; width: 2.2rem; }
.linkrow__label { font-family: var(--ff-display); font-size: 1.12rem; font-weight: 600; }
.linkrow__note { margin-left: auto; font-size: var(--fs-xs); color: var(--steel-500); text-align: right; }
.linkrow .ic { width: 17px; height: 17px; color: var(--gold); flex: none; align-self: center; transition: transform 0.3s var(--ease); }
.linkrow a:hover .ic { transform: translateX(4px); }
.section--navy .linkrow { border-color: rgba(255, 255, 255, 0.16); }
.section--navy .linkrow li { border-color: rgba(255, 255, 255, 0.16); }
.section--navy .linkrow a { color: #fff; }
.section--navy .linkrow a:hover { color: var(--gold-400); }
.section--navy .linkrow__note { color: rgba(255, 255, 255, 0.55); }

/* Pastilles de catégories (aperçu du catalogue en page d'accueil) */

/* Cartes d'orientation de l'accueil -------------------------------------- */
.modules {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.85rem, 0.6rem + 0.8vw, 1.25rem);
  margin-top: 1.75rem;
}
.modcard {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: var(--line); border-radius: var(--r);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  text-decoration: none; color: inherit;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.modcard:hover, .modcard:focus-visible {
  border-color: var(--navy-500); transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.modcard__num {
  font-family: var(--ff-display); font-size: 0.85rem; letter-spacing: 0.18em;
  color: var(--gold-700); margin-bottom: 1.4rem;
}
.modcard__label {
  font-size: var(--fs-h4); font-weight: 600; color: var(--navy);
  letter-spacing: var(--track-h3); margin-bottom: 0.5rem;
}
.modcard__note { font-size: var(--fs-sm); color: var(--steel-700); }
.modcard__go { margin-top: 1.5rem; }
.modcard__go .ic { width: 20px; height: 20px; color: var(--gold); transition: transform 0.3s var(--ease); }
.modcard:hover .modcard__go .ic { transform: translateX(5px); }
@media (max-width: 1240px) { .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .modules { grid-template-columns: 1fr; } }

.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pills a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem; border: 1px solid var(--steel-200); border-radius: 999px;
  background: #fff; font-size: var(--fs-sm); font-weight: 500; color: var(--navy-700);
  text-decoration: none; transition: all 0.25s var(--ease);
}
.pills a:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-1px); }
.pills a .n { font-size: var(--fs-xs); color: var(--steel-500); }

/* Liseré doré révélé au survol des cartes */
.card { position: relative; }
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease); z-index: 2;
}
.card:hover::after { transform: scaleX(1); }

/* Lien « voir plus » du pied de page */
.ftr__more { margin-top: 1.25rem; }
.ftr__more a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold-400); text-decoration: none; font-size: var(--fs-xs); border-bottom: 1px solid rgba(231, 173, 69, 0.35); padding-bottom: 3px; }
.ftr__more a:hover { color: #fff; border-color: #fff; }
.ftr__more .ic { width: 15px; height: 15px; }

/* Repli des formulaires lorsque l'envoi automatique n'est pas disponible */
.form__fallback {
  border: 1px solid var(--gold); border-left-width: 3px; border-radius: var(--r);
  background: var(--gold-100); padding: 1.15rem 1.25rem;
}
.form__fallback p { font-size: var(--fs-sm); color: #5c4208; margin-bottom: 1rem; }

/* Guillemet ouvrant décoratif (citation du dirigeant) */
.quote-ic { width: 42px; height: 42px; color: var(--gold); opacity: 0.55; margin-bottom: 1.25rem; }

/* --------------------------------------------------------------------------
   21. Blocs spécifiques
   -------------------------------------------------------------------------- */
/* Équipe */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.person__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--cream-200); margin-bottom: 1.15rem; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(1) contrast(1.02); transition: filter 0.5s var(--ease), transform 0.7s var(--ease); }
.person:hover .person__photo img { filter: none; transform: scale(1.03); }
.person h3 { font-size: var(--fs-h4); font-family: var(--ff-text); letter-spacing: 0; margin-bottom: 0.25rem; }
.person p { font-size: var(--fs-sm); color: var(--steel-500); margin: 0; }
.person .role { color: var(--gold-700); font-weight: 600; }

/* Partenaire */
.partner-strip {
  display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap;
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem); border: var(--line); border-radius: var(--r); background: #fff;
}
.partner-strip img { max-height: 46px; width: auto; }

/* Bloc contact (page contact) */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 1.2rem + 3vw, 4rem); align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.info-list li { margin: 0; display: grid; grid-template-columns: 22px 1fr; gap: 1rem; }
.info-list .ic { width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
.info-list dt, .info-list .k { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-500); margin-bottom: 0.3rem; }
.info-list a { color: var(--navy); font-weight: 500; text-decoration: none; }
.info-list a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.map-frame { border: var(--line); border-radius: var(--r); overflow: hidden; background: var(--cream-200); }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }
.qr-block { display: flex; gap: 1.25rem; align-items: center; border: var(--line); border-radius: var(--r); padding: 1.25rem; background: #fff; }
.qr-block img { width: 104px; height: 104px; }
.qr-block p { font-size: var(--fs-xs); color: var(--steel-500); margin: 0; }
.qr-block strong { display: block; color: var(--navy); font-size: var(--fs-sm); margin-bottom: 0.25rem; }

/* Bandeau gestion de flotte */
.fleet-hero { position: relative; }
.fleet-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--steel-200); border: var(--line); }
.fleet-steps > div { background: #fff; padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }

/* Mise en page « article » (mentions légales) */
.doc { max-width: 760px; }
.doc h2 { font-size: var(--fs-h3); margin-top: 2.5em; }
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { font-size: var(--fs-sm); color: var(--steel-700); }
.doc a { color: var(--navy); }

/* Page merci / 404 */
.centered-page { text-align: center; max-width: 620px; margin-inline: auto; padding-block: clamp(4rem, 3rem + 6vw, 9rem); }
.centered-page .eyebrow { justify-content: center; }

/* --------------------------------------------------------------------------
   22. Adaptatif
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .nav__link { padding: 0.6rem 0.6rem; font-size: 0.875rem; }
  .brand__sub { display: none; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr__actions .btn { display: none; }
  .split { grid-template-columns: 1fr; }
  .split__media, .split__body { grid-column: 1 / -1; }
  .split--reverse .split__media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures__item:nth-child(2n) { border-right: 0; }
  .figures__item:nth-child(-n + 2) { border-bottom: var(--line); }
  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery, .pdp__aside { grid-column: 1; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .fleet-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { flex-direction: row; width: 100%; }
  .cta-band__actions .btn { flex: 1; justify-content: center; }
  .ftr__grid { grid-template-columns: repeat(2, 1fr); }
  .ftr__brand { grid-column: span 2; }
}

@media (max-width: 760px) {
  :root { --hdr-h: 66px; }
  /* Barre utilitaire compacte : un seul niveau, sans retour à la ligne */
  .hero { padding-top: calc(var(--hdr-h) + 34px); }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: calc(var(--hdr-h) + 56px); }
  .hero--accueil { min-height: auto; }
  .hero__title { max-width: 100%; }
  .hero__strip { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: 1fr; }
  .media-stack { grid-template-columns: 1fr; }
  .media-stack .media:first-child { grid-column: 1; }
  .pgal__thumbs { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
  .fleet-steps { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; }
  .figures__item { border-right: 0; border-bottom: var(--line); }
  .figures__item:last-child { border-bottom: 0; }
  .ftr__grid { grid-template-columns: 1fr; }
  .ftr__brand { grid-column: 1; }
  .wa-float span { display: none; }
  .wa-float { padding: 0.9rem; }
  .filters { position: static; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1rem; }
  .spec-table th { width: 50%; }
}

@media print {
  .hdr, .mnav, .wa-float, .cta-band, .ftr__bottom, .filters, .modal { display: none !important; }
  body { color: #000; }
  a { text-decoration: none; }
}

/* Référence de dossier affichée sur la page de confirmation */
.reference {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold-100);
  font-size: var(--fs-sm);
  color: #5c4208;
}
.reference strong { font-family: var(--ff-display); letter-spacing: 0.06em; }

/* Case de consentement : signalement visuel lorsqu'elle n'est pas cochée */
.consent { display: grid; gap: 0.4rem; }
.consent.is-invalid .form__consent { color: var(--err); }
.consent.is-invalid input[type="checkbox"] { outline: 2px solid var(--err); outline-offset: 2px; }

/* ==========================================================================
   24. Finitions premium
   Détails discrets qui donnent au site sa tenue : filet de progression,
   soulignements animés, mesure de lecture, respiration du pied de page.
   ========================================================================== */

/* --- Filet de progression de lecture, sous l'en-tête collé --------------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(to right, var(--gold), var(--gold-400));
  z-index: 95; opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.progress.is-on { opacity: 1; }

/* --- Liens de texte : soulignement qui se déploie ------------------------ */
.prose a:not(.btn),
.doc a:not(.btn),
.lede a:not(.btn) {
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.4s var(--ease);
  padding-bottom: 1px;
}
.prose a:not(.btn):hover,
.doc a:not(.btn):hover,
.lede a:not(.btn):hover { background-size: 100% 1px; }

/* --- Mesure de lecture : aucun paragraphe ne dépasse la longueur utile --- */
.split__body > p,
.sec-head__intro,
.phead__text { max-width: var(--maxw-lecture); }

/* --- Titres de section : filet supérieur discret ------------------------- */
.section + .section:not(.section--cream):not(.section--navy) { border-top: var(--line); }

/* --- Boutons : proportions et appui ------------------------------------- */
.btn { letter-spacing: 0.015em; }
.btn:active { transform: translateY(0); }
.btn--gold { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset; }

/* --- Pied de page : hiérarchie et respiration --------------------------- */
.ftr__grid { padding-block: clamp(4rem, 3rem + 3.5vw, 6.5rem); }
.ftr__brand img { width: 68px; height: 68px; }
.ftr__claim { font-size: 1.45rem; letter-spacing: var(--track-h3); }
.ftr__title { font-size: 0.68rem; letter-spacing: 0.2em; }
.ftr__list a, .ftr__contact a { position: relative; }
.ftr__list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold-400); transition: width 0.35s var(--ease);
}
.ftr__list a:hover::after { width: 100%; }

.ftr__legal-links { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.ftr__legal-links li { margin: 0; }
.ftr__legal-links a { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.ftr__legal-links a:hover { color: var(--gold-400); }

/* --- Apparition au défilement : décalage piloté par l'index ------------- */
.js [data-reveal] { transition-delay: calc(var(--i, 0) * 70ms); }

@media (max-width: 760px) {
  .ftr__legal-links { gap: 1rem; }
}

/* --- Fiche produit : le bloc de contact suit la lecture ------------------ */
@media (min-width: 1025px) {
  .pdp__aside { position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; }
}

/* --- Filtres : effectif par famille ------------------------------------- */
.chip .n {
  margin-left: 0.45rem; font-size: var(--fs-xs); color: var(--steel-500);
  font-variant-numeric: tabular-nums;
}
.chip.is-on .n { color: rgba(255, 255, 255, 0.65); }

/* --- Agrandissement d'une photo produit --------------------------------- */
.pgal__main { cursor: zoom-in; }
.pgal__zoom {
  position: absolute; right: 0.85rem; bottom: 0.85rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.85rem; border: 0; border-radius: 999px;
  background: rgba(11, 22, 38, 0.78); color: #fff;
  font-size: var(--fs-xs); letter-spacing: 0.04em; cursor: zoom-in;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.pgal__main:hover .pgal__zoom,
.pgal__zoom:focus-visible { opacity: 1; transform: none; }
.pgal__zoom:hover { background: var(--navy); }

.loupe {
  position: fixed; inset: 0; z-index: 140;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 16, 28, 0.94);
  animation: fade 0.25s var(--ease);
}
.loupe[hidden] { display: none; }
.loupe img {
  max-width: min(1200px, 100%); max-height: 84vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--r); background: var(--cream);
  animation: pop 0.3s var(--ease);
}
.loupe__legende {
  position: absolute; left: 50%; bottom: clamp(1rem, 3vw, 2.25rem); transform: translateX(-50%);
  max-width: 68ch; text-align: center; padding-inline: 1rem;
  color: rgba(255, 255, 255, 0.72); font-size: var(--fs-sm);
}
.loupe__fermer {
  position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem);
  width: 46px; height: 46px; display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r); color: #fff; cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.loupe__fermer:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.loupe__fermer .ic { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Éléments repris de la maquette client du 19/09/2026
   -------------------------------------------------------------------------- */

/* Recherche de l'en-tête : elle interroge le catalogue. */
.hdr__rech { position: relative; display: none; }
@media (min-width: 1180px) { .hdr__rech { display: block; } }
.hdr__rech input {
  width: 11rem; padding: 0.5rem 2.2rem 0.5rem 0.9rem;
  border: 1px solid var(--steel-200); border-radius: 999px;
  background: #fff; font-size: var(--fs-sm); color: var(--ink);
  transition: width 0.3s var(--ease), border-color 0.3s var(--ease);
}
.hdr__rech input:focus { width: 14rem; outline: none; border-color: var(--navy-500); }
.hdr__rech button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: transparent; display: grid; place-items: center; cursor: pointer;
}
.hdr__rech button .ic { width: 17px; height: 17px; color: var(--steel-500); }
.hdr__rech button:hover .ic { color: var(--navy); }
.hdr--over .hdr__rech input { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); color: #fff; }

/* Drapeau ivoirien, dessiné en SVG. */
.drapeau {
  width: 18px; height: 12px; border-radius: 2px; flex: none;
  box-shadow: 0 0 0 1px rgba(11, 22, 38, 0.12);
}

/* Bandeau de bas de page : réseaux · société · valeurs. */
.ftr__bandeau {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem; padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.ftr__bandeau .social { margin: 0; }
.ftr__ident {
  display: flex; align-items: center; gap: 0.6rem; margin: 0;
  font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.82);
}
.ftr__sep { color: rgba(255, 255, 255, 0.3); }
.ftr__valeurs {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
}
.ftr__valeurs li {
  margin: 0; font-size: var(--fs-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
}
@media (max-width: 860px) {
  .ftr__bandeau { justify-content: center; text-align: center; }
  .ftr__valeurs { justify-content: center; }
}

/* Liste à coches, employée sur la page Carrières. */
.liste-check { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.liste-check li { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0; }
.liste-check .ic { width: 19px; height: 19px; color: var(--gold-700); flex: none; margin-top: 0.15rem; }
.liste-check span { font-size: var(--fs-sm); color: var(--steel-700); }

/* Réservé aux lecteurs d'écran. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   25. Contrôle qualité — logo blanc, en-tête, tactile, robustesse
   Ce bloc est volontairement en fin de feuille : il fixe le comportement
   final de l'en-tête et des cibles tactiles sans réécrire les sections
   précédentes.
   ========================================================================== */

/* --- Logo : la version blanche est la seule utilisée dans l'en-tête -------- */
/* Le logo marine est illisible sur fond sombre : l'en-tête est donc marine
   partout, et le logo blanc s'y affiche sur toutes les pages. */
.brand__mark:not(.brand__mark--light) { display: none !important; }
.brand__mark--light { display: block !important; }
.brand__mark { width: 60px; height: 60px; object-fit: contain; flex: none; }

.hdr:not(.hdr--over) { background: var(--navy); border-bottom-color: rgba(255, 255, 255, 0.12); }
.hdr.is-stuck { background: rgba(16, 31, 54, 0.97); border-bottom-color: rgba(255, 255, 255, 0.1); }
:is(.hdr, .hdr.is-stuck, .hdr--over) .brand__name { color: #fff; }
:is(.hdr, .hdr.is-stuck, .hdr--over) .brand__sub { color: rgba(255, 255, 255, 0.72); }
:is(.hdr, .hdr.is-stuck, .hdr--over) .nav__link { color: rgba(255, 255, 255, 0.9); }
:is(.hdr, .hdr.is-stuck, .hdr--over) .nav__link:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
:is(.hdr, .hdr.is-stuck, .hdr--over) .nav__link.is-active { color: #fff; }
:is(.hdr, .hdr.is-stuck, .hdr--over) .burger { border-color: rgba(255, 255, 255, 0.34); }
:is(.hdr, .hdr.is-stuck, .hdr--over) .burger span { background: #fff; }
:is(.hdr, .hdr.is-stuck, .hdr--over) .btn--primary { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: #1a1205; }
:is(.hdr, .hdr.is-stuck, .hdr--over) .btn--primary:hover { --btn-bg: var(--gold-400); --btn-bd: var(--gold-400); }
:is(.hdr, .hdr.is-stuck, .hdr--over) .hdr__rech input { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
:is(.hdr, .hdr.is-stuck, .hdr--over) .hdr__rech input::placeholder { color: rgba(255, 255, 255, 0.62); }
:is(.hdr, .hdr.is-stuck, .hdr--over) .hdr__rech button .ic { color: rgba(255, 255, 255, 0.82); }
.brand--small img { object-fit: contain; }

/* --- En-tête : jamais de débordement entre 1025 et 1500 px ---------------- */
/* La recherche n'apparaît que lorsque la place existe réellement. */
.hdr__rech { display: none; }
@media (min-width: 1500px) { .hdr__rech { display: block; } }
.hdr__rech input, .hdr__rech input:focus { width: 11rem; transition: border-color 0.3s var(--ease); }
.hdr__bar > *, .hdr__actions { min-width: 0; }
/* Sans navigation visible, les actions (menu burger) restent calées à droite. */
@media (max-width: 1240px) {
  .hdr__actions { margin-left: auto; }
  .nav { display: none; }
  .burger { display: block; }
  .hdr__actions .btn { display: none; }
}
@media (max-width: 760px) {
  .brand__mark { width: 52px; height: 52px; }
}
@media (max-width: 360px) {
  .brand__mark { width: 46px; height: 46px; }
  .brand__name { font-size: 0.92rem; letter-spacing: 0; }
  .hdr__bar { gap: 0.75rem; }
}

/* --- Textes longs : jamais de débordement du conteneur ------------------- */
h1, h2, h3, h4, h5, .card__title, .acti__titre { overflow-wrap: break-word; }
.ftr__contact a, .info-list a, .mnav__contact a, .doc a { overflow-wrap: anywhere; }
.spec-table td, .spec-table th { overflow-wrap: anywhere; }
table { max-width: 100%; }

/* --- Cibles tactiles : 44 px minimum sur tablette et smartphone ---------- */
@media (max-width: 1240px), (pointer: coarse) {
  .ftr__list { gap: 0; }
  .ftr__list a, .ftr__contact a, .ftr__legal-links a, .ftr__more a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .ftr__contact { gap: 0; }
  .ftr__list a::after { display: none; }
  .ftr__legal-links { gap: 0.5rem 1.25rem; }
  .crumbs ol { padding-block: 0; gap: 0 0.45rem; }
  .crumbs a, .crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }
  .chip, .pills a, .link-arrow { min-height: 44px; display: inline-flex; align-items: center; }
  .search input { min-height: 44px; }
  .info-list a { display: inline-block; padding-block: 0.55rem; }
  .form__consent { min-height: 44px; align-items: center; }
  .form__consent input { width: 24px; height: 24px; margin-top: 0; }
  .social a { width: 44px; height: 44px; }
  .modal__close { width: 44px; height: 44px; }
  .mnav__sub a { padding-block: 0.7rem; }
  .upload input[type="file"]::file-selector-button { min-height: 44px; }
  .pgal__thumb { min-height: 44px; }
  .field input, .field select, .field textarea { min-height: 48px; font-size: 1rem; }
  .field textarea { min-height: 140px; }
  .ftr__contact li, .ftr__list li { margin-bottom: 0; }
}

/* --- Écrans tactiles : aucun effet ne dépend du survol ------------------- */
@media (hover: none) {
  .btn:hover, .card:hover, .tile:hover, .acti:hover, .modcard:hover,
  .pills a:hover, .social a:hover, .wa-float:hover { transform: none; }
  .card:hover .card__media img, .acti:hover .acti__img img, .person:hover .person__photo img { transform: none; }
  .card:hover::after { transform: scaleX(0); }
  .card:hover .card__media::after { opacity: 0; }
  .person__photo img { filter: none; }
  .pgal__zoom { opacity: 1; transform: none; }
  .linkrow a:hover { padding-left: 0; }
}

/* --- Appareils modestes : animations lourdes désactivées automatiquement -- */
.lite .ouv__photo--alt { animation: none; opacity: 0; }
.lite .js [data-reveal], .lite [data-reveal] { transition: none; }
.lite * { backdrop-filter: none !important; }
@media (max-width: 760px) {
  .piliers__rond, .film__lecture, .ouv__lieu { backdrop-filter: none; }
}

/* --- Smartphone : boutons d'action pleine largeur ------------------------- */
@media (max-width: 520px) {
  .ouv__actions .btn, .hero__actions .btn, .btn-row .btn, .cta-band__actions .btn {
    width: 100%; justify-content: center;
  }
  .cta-band__actions { flex-direction: column; }
}

/* --- Paysage bas (smartphone couché) ------------------------------------- */
@media (max-height: 520px) and (orientation: landscape) {
  .ouv, .hero, .hero--accueil { min-height: auto; }
  .mnav { padding-block: 0.75rem 1.25rem; }
  .mnav__link { padding-block: 0.6rem; font-size: 1.25rem; }
  .modal__panel { max-height: 94vh; }
  .loupe img { max-height: 76vh; }
}

/* ==========================================================================
   26. En-tête refondu — Logo | Navigation | Actions (recherche + contact)
   Chaque zone dispose de son propre espace : la navigation est le seul
   élément extensible (flex 1, min-width 0), le logo et les actions gardent
   leur largeur. La recherche n'occupe plus la barre : elle s'ouvre dans un
   panneau dédié sous l'en-tête, à toutes les tailles d'écran.
   ========================================================================== */
.hdr__bar { display: flex; align-items: center; gap: clamp(0.75rem, 0.4rem + 1.2vw, 1.5rem); }
.hdr__bar .brand { flex: 0 0 auto; }
.hdr__bar .nav { flex: 1 1 auto; min-width: 0; margin-left: 0; display: flex; justify-content: flex-end; }
.hdr__bar .nav__list { flex-wrap: nowrap; }
.hdr__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 0.6rem; margin-left: 0; }

.hdr__loupe {
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center; flex: none;
  border: 1px solid rgba(255, 255, 255, 0.32); border-radius: var(--r);
  background: transparent; color: #fff; cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hdr__loupe .ic { width: 20px; height: 20px; }
.hdr__loupe:hover, .hdr__loupe[aria-expanded="true"] { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.6); }

.hsearch {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
  background: var(--navy-800); border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow-md);
}
.hsearch[hidden] { display: none; }
.hsearch__in { display: flex; align-items: center; gap: 0.75rem; padding-block: 1rem; }
.hsearch__form { display: flex; flex: 1 1 auto; min-width: 0; gap: 0.6rem; }
.hsearch__form input {
  flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--r);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
}
.hsearch__form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.hsearch__form .btn { flex: none; min-height: 48px; }
.hsearch__close {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--r);
  background: transparent; color: #fff; cursor: pointer;
}
.hsearch__close .ic { width: 20px; height: 20px; }
.hsearch__close:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 520px) {
  .hsearch__in { gap: 0.5rem; }
  .hsearch__form .btn { padding-inline: 1rem; }
}

/* Paliers intermédiaires : la navigation se resserre avant de passer au menu. */
@media (min-width: 1241px) and (max-width: 1299px) {
  .hdr__bar { gap: 0.75rem; }
  .brand__name { font-size: 1rem; }
  .nav__link { padding: 0.6rem 0.45rem; font-size: 0.84rem; }
  .hdr__actions .btn { padding: 0.7rem 0.95rem; }
}
@media (min-width: 1300px) and (max-width: 1459px) {
  .nav__link { padding: 0.6rem 0.55rem; font-size: 0.875rem; }
}
@media (max-width: 1240px) {
  .hdr__bar .nav { display: none; }
  .hdr__actions { margin-left: auto; }
}

/* --------------------------------------------------------------------------
   Menu mobile : panneau latéral dédié (jamais une copie réduite du bureau)
   -------------------------------------------------------------------------- */
.mnav {
  inset: 0 0 0 auto; width: min(88vw, 400px); max-width: 100%;
  padding: 0 0 max(1.5rem, env(safe-area-inset-bottom));
  background: var(--navy);
  box-shadow: 0 0 0 100vmax rgba(8, 16, 28, 0.62);
  opacity: 1; transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.mnav.is-open { transform: none; }
.mnav__head {
  position: sticky; top: 0; z-index: 2; background: var(--navy);
  padding: 0.85rem 1.25rem; min-height: 72px; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.mnav .brand--small img { width: 46px; height: 46px; }
.mnav__close { width: 48px; height: 48px; flex: none; border-color: rgba(255, 255, 255, 0.4); }
.mnav__close:hover { background: rgba(255, 255, 255, 0.12); }
.mnav nav { padding-inline: 1.25rem; }
.mnav__list { margin-top: 0.5rem; }
.mnav__link { font-size: 1.2rem; padding: 0.95rem 0; min-height: 52px; display: flex; align-items: center; overflow-wrap: anywhere; }
.mnav__sub { margin-bottom: 0.75rem; padding-left: 0.9rem; }
.mnav__sub a { display: flex; align-items: center; min-height: 44px; padding-block: 0.4rem; font-size: 1rem; overflow-wrap: anywhere; }
.mnav__foot { padding: 1.5rem 1.25rem 0; margin-top: 1rem; }
.mnav__foot .btn { width: 100%; justify-content: center; }
.mnav__contact a { min-height: 44px; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .mnav { transition: none; } }

/* --------------------------------------------------------------------------
   Formulaires : adaptation fine tablette / smartphone
   -------------------------------------------------------------------------- */
.form, .form-card, .field, .form__row > * { min-width: 0; }
.form__consent span { min-width: 0; overflow-wrap: anywhere; }
.form__consent input { flex: none; }
.form__status { overflow-wrap: anywhere; }
.form__status.is-ok { padding: 0.9rem 1.1rem; border: 1px solid var(--ok); border-left-width: 3px; border-radius: var(--r); background: #eaf6ef; }
.form__status.is-err { padding: 0.9rem 1.1rem; border: 1px solid var(--err); border-left-width: 3px; border-radius: var(--r); background: #fdeeed; }
@media (max-width: 760px) {
  .form-card { padding: 1.25rem; }
  .form .btn[type="submit"] { width: 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .form-card { padding: 1rem; }
}
/* La baseline de marque n'apparaît que lorsqu'il reste réellement de la place :
   sans cela, la navigation débordait vers le logo sur les grands écrans. */
.hdr__bar { max-width: 1500px; }
.brand__sub { display: none; }
@media (min-width: 1760px) { .brand__sub { display: none; } }

/* Très petits écrans (320–360 px) : logo, recherche et menu tiennent sur une ligne. */
@media (max-width: 400px) {
  .hdr__bar { gap: 0.5rem; }
  .hdr__bar .container, .hdr__bar { padding-inline: 16px; }
  .brand { gap: 0.55rem; }
  .brand__name { font-size: 0.95rem; letter-spacing: 0; }
  .hdr__actions { gap: 0.4rem; }
}
@media (max-width: 350px) {
  .brand__mark { width: 44px; height: 44px; }
  .brand__name { font-size: 0.82rem; }
  .hdr__loupe, .burger { width: 42px; height: 42px; }
  .burger span { left: 11px; }
  .hdr__bar { padding-inline: 12px; }
}

/* Panneau de recherche sur smartphone : fermeture en haut, champ pleine largeur. */
@media (max-width: 520px) {
  .hsearch__in { flex-wrap: wrap; justify-content: flex-end; }
  .hsearch__close { order: -1; width: 44px; height: 44px; }
  .hsearch__form { flex: 1 1 100%; }
}
/* --------------------------------------------------------------------------
   Recherche sur ordinateur : champ visible dans la barre à partir de 1760 px,
   sinon loupe + petite carte de recherche ancrée sous l'icône (jamais une
   barre pleine largeur).
   -------------------------------------------------------------------------- */
.hdr__rech { display: none; position: relative; align-items: center; margin: 0; }
@media (min-width: 1760px) {
  .hdr__bar { max-width: 1640px; }
  .hdr__rech { display: flex; }
  .hdr__loupe { display: none; }
  .hsearch { display: none !important; }
}
.hdr__rech input {
  width: 13rem; min-height: 44px; padding: 0.5rem 2.75rem 0.5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.34); border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: #fff; font: inherit; font-size: 0.9rem;
}
.hdr__rech input::placeholder { color: rgba(255, 255, 255, 0.66); }
.hdr__rech input:focus { outline: 2px solid var(--gold); outline-offset: 2px; background: rgba(255, 255, 255, 0.18); }
.hdr__rech button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
}
.hdr__rech button:hover { background: rgba(255, 255, 255, 0.16); }
.hdr__rech button .ic { width: 18px; height: 18px; color: #fff; }

@media (min-width: 761px) {
  .hsearch {
    left: auto;
    right: max(var(--gutter), calc((100% - 1500px) / 2 + var(--gutter)));
    top: calc(100% + 8px);
    width: min(540px, calc(100% - 2 * var(--gutter)));
    border: 1px solid rgba(255, 255, 255, 0.16); border-bottom: 2px solid var(--gold);
    border-radius: var(--r-lg);
  }
  .hsearch__in.container { max-width: none; padding: 0.85rem; }
  .hsearch__form input { min-height: 46px; }
  .hsearch__form .btn { min-height: 46px; }
  .hsearch__close { width: 46px; height: 46px; }
}
.form__code { display: block; margin-top: 0.35rem; font-size: 0.75rem; opacity: 0.75; }
