/* ──────────────────────────────────────────────────────────────
   SailCapture - Design tokens & utilities
   Cockpit d'instruments de navigation : sobre, technique, propre.
   ────────────────────────────────────────────────────────────── */

:root {
  --bg:           #F0EFED;
  --surface:      #FFFFFF;
  --surface-2:    #FAF9F7;
  --text:         #1C1C1C;
  --text-2:       #6B6560;
  --text-3:       #9A938C;
  --border:       #E0DDD8;
  --border-2:     #ECEAE6;
  --anthracite:   #2E2C2A;
  --accent:       #D42B2B;
  --accent-soft:  rgba(212, 43, 43, 0.08);
  --accent-dim:   rgba(212, 43, 43, 0.55);
  --ok:           #1E8A4B;
  --grid:         rgba(28, 28, 28, 0.04);

  --container:    1600px;
  --pad-x:        72px;
  --section-y:    96px;

  --radius-sm:    2px;
  --radius:       4px;

  --font-ui:      'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, Menlo, monospace;
}

/* density tweak: --d = 1 (compact) | 1.15 (default) | 1.35 (aerated) */
[data-density="compact"]  { --d: 0.82; --section-y: 64px; --pad-x: 52px; }
[data-density="regular"]  { --d: 1.00; --section-y: 96px; --pad-x: 72px; }
[data-density="aerated"]  { --d: 1.22; --section-y: 128px; --pad-x: 80px; }

/* accent variant tweak: red | mono | ocean | sand | seagreen */
[data-accent="mono"]     { --accent: #2E2C2A; --accent-soft: rgba(46,44,42,0.07);  --accent-dim: rgba(46,44,42,0.45); }
[data-accent="ocean"]    { --accent: #1F5FA6; --accent-soft: rgba(31,95,166,0.08); --accent-dim: rgba(31,95,166,0.5); }
[data-accent="sand"]     { --accent: #C9762B; --accent-soft: rgba(201,118,43,0.08); --accent-dim: rgba(201,118,43,0.5); }
[data-accent="seagreen"] { --accent: #2E7D5F; --accent-soft: rgba(46,125,95,0.08); --accent-dim: rgba(46,125,95,0.5); }
[data-accent="signal"]   { --accent: #E84E18; --accent-soft: rgba(232,78,24,0.08); --accent-dim: rgba(232,78,24,0.5); }

/* background tone */
[data-bg="paper"]    { --bg: #F0EFED; --surface: #FFFFFF; --surface-2: #FAF9F7; }
[data-bg="white"]    { --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F7F6F4; }
[data-bg="ivory"]    { --bg: #F4F1EA; --surface: #FBF8F1; --surface-2: #EFEBE2; }
[data-bg="fog"]      { --bg: #E9EBED; --surface: #FFFFFF; --surface-2: #F2F3F5; }
[data-bg="night"]    {
  --bg: #16181A; --surface: #1F2225; --surface-2: #25282C;
  --text: #ECEAE6; --text-2: #9A938C; --text-3: #6B6560;
  --border: #2D3034; --border-2: #25282C;
  --anthracite: #ECEAE6; --grid: rgba(255,255,255,0.04);
}
[data-bg="night"] .btn { background:#ECEAE6; color:#16181A; border-color:#ECEAE6; }
[data-bg="night"] .btn-red { background: var(--accent); color:#fff; border-color: var(--accent); }
[data-bg="night"] .btn-ghost { background: transparent; color:#ECEAE6; border-color:#2D3034; }
[data-bg="night"] .site-header { background: rgba(22,24,26,0.7); }
[data-bg="night"] .site-footer { background: var(--bg); }
[data-bg="night"] .ph { background:
  repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 8px, transparent 8px 16px),
  var(--surface-2); }

/* type system swap */
[data-type="grotesk"]  { --font-ui: 'Space Grotesk', system-ui, sans-serif; --font-mono: 'DM Mono', ui-monospace, monospace; }
[data-type="inter"]    { --font-ui: 'Inter', system-ui, sans-serif; --font-mono: 'JetBrains Mono', ui-monospace, monospace; }
[data-type="ibmplex"]  { --font-ui: 'IBM Plex Sans', system-ui, sans-serif; --font-mono: 'IBM Plex Mono', ui-monospace, monospace; }
[data-type="manrope"]  { --font-ui: 'Manrope', system-ui, sans-serif; --font-mono: 'JetBrains Mono', ui-monospace, monospace; }
[data-type="helvetica"]{ --font-ui: 'Helvetica Neue', Helvetica, Arial, sans-serif; --font-mono: ui-monospace, Menlo, monospace; }
[data-type="serif"]    { --font-ui: 'Fraunces', Georgia, serif; --font-mono: 'JetBrains Mono', ui-monospace, monospace; }

/* card style */
[data-card="flat"]     .surface { border: 0; background: var(--surface-2); }
[data-card="elevated"] .surface { box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 8px 24px rgba(28,28,28,0.06); border-color: transparent; }
[data-card="outline"]  .surface { border-width: 1.5px; box-shadow: 2px 2px 0 var(--border); }

/* corner radius scale (square / soft / round) */
[data-corners="square"] { --radius: 0; --radius-sm: 0; }
[data-corners="soft"]   { --radius: 6px; --radius-sm: 3px; }
[data-corners="round"]  { --radius: 12px; --radius-sm: 6px; }
[data-corners="pill"]   { --radius: 999px; --radius-sm: 999px; }
[data-corners="pill"] .surface, [data-corners="pill"] .ph { border-radius: 24px; }
[data-corners="pill"] .form-row input, [data-corners="pill"] .form-row select { border-radius: 999px; }
[data-corners="pill"] .form-row textarea { border-radius: 18px; }

/* hero scale */
[data-hero="s"]  h1 { font-size: clamp(40px, 4.4vw, 64px) !important; }
[data-hero="m"]  h1 { font-size: clamp(48px, 5.5vw, 84px) !important; }
[data-hero="l"]  h1 { font-size: clamp(56px, 6.6vw, 104px) !important; }
[data-hero="xl"] h1 { font-size: clamp(72px, 8.5vw, 132px) !important; letter-spacing: -0.045em !important; }
/* clamp pour permettre le scaling mobile - desktop reste à ~61px */
h1.hero-accueil { font-size: clamp(34px, 8.5vw, 61px) !important; }

/* Hero accueil - container plein viewport pour permettre à l'image de se
   prolonger jusqu'au bord droit visible. La padding gauche reste celle du
   container par défaut (alignement avec le reste du site), la droite est
   à zéro pour que l'image s'étende au max. */
.container.hero-accueil-container {
  /* Aligné sur le conteneur standard du site (1600px centré) : sur très
     grand écran (27"+), le texte reste calé sur la même marge que le reste
     du site (plus à l'extrême gauche) et l'espace central reste contenu,
     au lieu de s'étirer d'un bord à l'autre. */
  max-width: var(--container);
  padding-right: var(--pad-x);
}

/* Hero accueil - image produit côté droit.
   On aligne l'image à droite (flex-end) : sur les très grands écrans (27"+),
   l'espace excédentaire devient une respiration entre le texte et l'image,
   plutôt qu'une image démesurée. */
.hero-media {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  /* Marge à droite pour ne pas coller la bordure de l'écran (équilibre avec le texte à gauche) */
  padding-right: 56px;
}
.hero-media__img {
  display: block;
  /* Taille liée à la largeur de l'écran (vw) plutôt qu'à un % de la colonne :
     sur un 15" la valeur fluide reste confortable, et elle est bornée à
     800px ; sur grand écran c'est en pratique la largeur de la colonne
     (conteneur 1600px) qui fixe la taille finale (~760px).
     max-width:100% protège des écrans étroits (l'image ne déborde jamais
     de sa colonne). */
  width: clamp(380px, 46vw, 800px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  /* Léger relief sous les boîtiers détourés */
  filter: drop-shadow(0 18px 28px rgba(20, 22, 28, 0.18));
}

/* header style */
[data-header="solid"]  .site-header { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-header="minimal"] .site-header { background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-header="bold"]   .site-header { background: var(--anthracite); border-bottom-color: var(--anthracite); }
[data-header="bold"]   .site-header .site-nav a { color: rgba(255,255,255,0.7); }
[data-header="bold"]   .site-header .site-nav a.active { color: #fff; }
[data-header="bold"]   .site-logo img { filter: brightness(0) invert(1); }
[data-header="bold"]   .lang-switch { border-color: rgba(255,255,255,0.2); }
[data-header="bold"]   .lang-switch button { color: rgba(255,255,255,0.7); }

/* grid backdrop on hero */
[data-grid="on"] body { background-image:
  linear-gradient(to right, var(--grid) 1px, transparent 1px),
  linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; }

/* button style override */
[data-btn="outline"] .btn { background: transparent; color: var(--anthracite); border-color: var(--anthracite); }
[data-btn="outline"] .btn-red { background: transparent; color: var(--accent); border-color: var(--accent); }
[data-btn="solid"]   .btn { background: var(--anthracite); color:#fff; }
[data-btn="solid"]   .btn-red { background: var(--accent); color:#fff; border-color: var(--accent); }
[data-btn="soft"]    .btn { background: var(--anthracite); color:#fff; }
[data-btn="soft"]    .btn-red { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
[data-btn="soft"]    .btn-ghost { background: rgba(0,0,0,0.04); border-color: transparent; }

/* eyebrow accent on/off */
[data-eyebrow="off"] .eyebrow::before { display: none; }
[data-eyebrow="off"] .eyebrow { margin-bottom: 12px; }
[data-eyebrow="dot"] .eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* accent intensity */
[data-accent-weight="soft"]   { --accent-bg: var(--accent-soft); }
[data-accent-weight="strong"] { --accent-bg: var(--accent); }

/* mono brackets / tag visibility (engineered details) */
[data-brackets="off"] .idx, [data-brackets="off"] .mono-bracket { display: none; }

/* LED visibility */
[data-led="off"] .led { display: none; }

/* Ticker visibility */
[data-ticker="off"] .ticker { display: none; }

/* Footer style */
[data-footer="compact"] .site-footer { padding: 32px 0 24px; }
[data-footer="compact"] .footer-cols { display: none; }
[data-footer="minimal"] .site-footer { padding: 24px 0; }
[data-footer="minimal"] .footer-cols { display: none; }
[data-footer="minimal"] .footer-bottom { border-top: 0; padding-top: 0; }

/* Logo style - logoHD = icône seule, logoAvecNom... = icône + texte horizontal */
[data-logo="mark-text"]  .site-logo img { content: url("../assets/logo-S-64.png"); height: 28px; width: auto; }
[data-logo="mark"]       .site-logo-wordmark { display: none; }
[data-logo="mark"]       .site-logo img { content: url("../assets/logo-S-64.png"); height: 28px; width: auto; }
[data-logo="horizontal"] .site-logo-wordmark { display: none; }
[data-logo="horizontal"] .site-logo img { content: url("../assets/logoAvecNomDroiteRougeSailCapture.png"); height: 32px; width: auto; }
[data-logo="text"]       .site-logo img { display: none; }
[data-header="bold"]     .site-logo-wordmark { color: #fff; }

/* Hero accent word color */
[data-hero-word="muted"]    .hero-accent { color: var(--text-2) !important; font-style: normal !important; }
[data-hero-word="anthracite"] .hero-accent { color: var(--anthracite) !important; font-style: normal !important; }
[data-hero-word="underline"] .hero-accent { color: inherit !important; font-style: normal !important;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 6px; }

/* Schema visibility hooks (SVG groups get these class names) */
[data-schema-grid="off"]     .svg-grid     { display: none; }
[data-schema-ticks="off"]    .svg-ticks    { display: none; }
[data-schema-dims="off"]     .svg-dims     { display: none; }
[data-schema-callouts="off"] .svg-callouts { display: none; }
[data-schema-labels="off"]   .svg-labels   { display: none; }

/* Schema accent color override - applied to red lines & arrows in schemas */
[data-schema-accent="mono"] .svg-grid path,
[data-schema-accent="mono"] .svg-callouts line,
[data-schema-accent="mono"] .svg-arrow path { stroke: var(--anthracite) !important; fill: var(--anthracite) !important; }

/* Card padding scale */
[data-pad="tight"]  .surface, [data-pad="tight"]  .ph { --surface-pad: 20px; }
[data-pad="normal"] .surface, [data-pad="normal"] .ph { --surface-pad: 32px; }
[data-pad="loose"]  .surface, [data-pad="loose"]  .ph { --surface-pad: 48px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; }
/* `overflow-x: clip` sur <html> empêche le scroll horizontal SANS créer un
   nouveau scroll container - indispensable pour que `position: sticky` du
   header continue de fonctionner. (overflow-x: hidden, lui, casse sticky.) */
html { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--body-size, 22px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.25s ease, color 0.25s ease;
}
/* Les retours à la ligne (\n) saisis dans les textes s'affichent comme des
   sauts de ligne. Appliqué au contenu (#root, portails de nav) plutôt qu'à
   <body> lui-même : sinon les nœuds texte de whitespace entre <body> et
   <div id="root"> seraient rendus comme une ligne vide (~70px) au-dessus du
   header. Le ticker garde son `nowrap` (plus spécifique). */
#root, .site-nav--mobile { white-space: pre-line; }
/* Garde-fou anti-débordement horizontal : aucune image / SVG / vidéo ne peut
   excéder la largeur de son parent (cause fréquente de scroll horizontal mobile).
   `height: auto` uniquement sur les médias bitmap pour préserver le ratio sans
   casser les SVG sans viewBox. */
img, video, canvas { max-width: 100%; height: auto; }
svg { max-width: 100%; }

/* ───────────────────── Layout ───────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.section   { padding: calc(var(--section-y)) 0; }
.section-tight { padding: 56px 0; }

/* ───────────────────── Type ───────────────────── */
h1, h2, h3, h4 { font-family: var(--font-ui); color: var(--anthracite); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(56px, 6vw, 96px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; }
h2 { font-size: 50px; line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: 28px; line-height: 1.2; }
h4 { font-size: 19px; line-height: 1.3; }
p  { margin: 0; color: var(--text); font-size: 1em; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.muted { color: var(--text-2); }
.dim   { color: var(--text-3); }

/* small caps tech label */
.tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.tag-red { color: var(--accent); }

/* numeric chip with brackets [01] */
.idx {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

/* eyebrow over titles */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
}

/* ───────────────────── Cards / surfaces ───────────────────── */
.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.surface-flush { background: var(--surface); border: 1px solid var(--border); }

.hairline { border-top: 1px solid var(--border); }
.hairline-b { border-bottom: 1px solid var(--border); }

/* ───────────────────── Buttons ───────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid var(--anthracite);
  background: var(--anthracite);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 15.5px;
  letter-spacing: 0.01em;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; }
.btn-red { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--anthracite); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--anthracite); opacity: 1; }
.btn .arr { font-family: var(--font-mono); font-size: 15px; }

/* ───────────────────── Voyant LED ───────────────────── */
.led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(212, 43, 43, 0.18);
  display: inline-block;
}
.led-ok { background: var(--ok); box-shadow: 0 0 0 2px rgba(30, 138, 75, 0.18); }
.led-dim { background: var(--text-3); box-shadow: none; }

/* ───────────────────── Header ───────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;                         /* au-dessus du panneau mobile (100) et du backdrop (90) */
  background: rgba(240, 239, 237, 0.85);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;                  /* respiration externe entre le header et le hero (en bas uniquement) */
  padding: 16px 0;                      /* respiration INTERNE symétrique : centre verticalement le logo + nav dans la barre, sans changer la hauteur totale (16+48+16+1 = 81px, identique à 12+48+20+1) */
}
.site-header-inner {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none; }
.site-logo img { height: 28px; width: auto; display: block; }
.site-logo-wordmark {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--anthracite);
  font-size: 15px;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
/* Par défaut (desktop) : on cache la nav mobile portée dans <body>.
   La nav mobile devient visible (en fixed) uniquement sous 768px. */
.site-nav--mobile { display: none; }
.site-nav a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.01em;
  position: relative;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--anthracite); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
}
.lang-switch {
  display: flex; align-items: center; gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
  margin-left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 4px 8px;
  color: var(--text-2);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
}
.lang-switch button.on { background: var(--anthracite); color: #fff; }

/* ───────────────────── Burger menu (mobile) ─────────────────────
   Bouton hamburger masqué par défaut (desktop) ; visible sous 768px.
   Les 3 barres s'animent en croix quand .open est ajouté.
   Le panneau slide-in et son backdrop sont définis dans la media query mobile.
*/
.site-burger {
  display: none; /* affiché uniquement en mobile (cf. @media max-width: 767px) */
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  z-index: 110; /* au-dessus du panneau et du backdrop */
  margin-right: -8px;
}
.site-burger__lines {
  display: block;
  width: 22px;
  height: 16px;
  position: relative;
}
.site-burger__lines i {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--anthracite);
  left: 0;
  border-radius: 1px;
  transition: top 0.2s ease 0.2s, opacity 0.2s ease, transform 0.2s ease;
}
.site-burger__lines i:nth-child(1) { top: 0; }
.site-burger__lines i:nth-child(2) { top: 7px; }
.site-burger__lines i:nth-child(3) { top: 14px; }
/* État ouvert : animation en croix */
.site-burger.open .site-burger__lines i {
  transition: top 0.2s ease, opacity 0.2s ease, transform 0.2s ease 0.2s;
}
.site-burger.open .site-burger__lines i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.site-burger.open .site-burger__lines i:nth-child(2) { opacity: 0; }
.site-burger.open .site-burger__lines i:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Variante d'en-tête "bold" (fond anthracite) : barres en blanc */
[data-header="bold"] .site-burger__lines i { background: #fff; }

/* Backdrop semi-transparent (rendu conditionnellement par React quand menuOpen) */
.site-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.45);
  z-index: 90;
  animation: scBackdropIn 0.22s ease;
}
@keyframes scBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Bloque le scroll de page quand le menu mobile est ouvert */
body.nav-locked { overflow: hidden; }

/* ───────────────────── Footer ───────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 64px 0 32px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-cols h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-cols a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  font-size: 14px;
  cursor: pointer;
}
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

/* ───────────────────── Data ticker ───────────────────── */
.ticker {
  background: var(--anthracite);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: 0.04em;
  overflow: hidden;
  margin-top: 32px;
}
/* Réduit la respiration verticale entre le ticker et la première section
   qui le suit (sinon ~140px de padding-top de .section donnent un vide
   visuel disproportionné). Couvre les deux cas : ticker → section
   et ticker → <img> sonde invisible → section (page d'accueil). */
.ticker + .section,
.ticker + img + .section {
  padding-top: 48px;
}
.ticker-inner {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 40px;
  white-space: nowrap;
  /* scroll infini : la piste se duplique dans le JSX, on la fait glisser */
  animation: ticker-scroll 60s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; flex-shrink: 0; }
.ticker-item .k { color: rgba(255,255,255,0.5); letter-spacing: 0.12em; font-size: 13px; }
.ticker-item .v { color: #fff; font-feature-settings: "tnum"; font-size: 15px; font-weight: 500; }
.ticker-item .u { color: rgba(255,255,255,0.55); font-size: 13px; }
.ticker-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; flex: 0 0 auto; }

/* ───────────────────── Spec table ───────────────────── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 500;
  padding: 16px 18px;
  width: 36%;
  vertical-align: top;
}
.spec-table td {
  padding: 16px 18px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14.5px;
  vertical-align: top;
}
.spec-table td .sub { display: block; color: var(--text-3); font-size: 13px; margin-top: 3px; }

/* ───────────────────── Placeholder image ───────────────────── */
.ph {
  background:
    repeating-linear-gradient(135deg,
      rgba(28,28,28,0.025) 0 8px,
      transparent 8px 16px),
    var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
  position: relative;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--border);
  pointer-events: none;
}

/* ───────────────────── Page wrappers ───────────────────── */
.page-head {
  padding: 32px 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-head .crumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 24px;
  display: flex; gap: 10px; align-items: center;
}
.page-head .crumb .sep { color: var(--text-3); }
.page-head .lead { max-width: 760px; color: var(--text-2); font-size: 22px; line-height: 1.55; margin-top: 28px; }
.page-head h1 { font-size: 80px; }

/* ───────────────────── Grid helpers ───────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
/* Responsive fallbacks */
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .grid-4 { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* form */
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.form-row input, .form-row textarea, .form-row select {
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--text);
  border-radius: var(--radius);
  outline: none;
}
.form-row textarea { height: 160px; padding: 14px 16px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--anthracite); }


/* ──────────────────────────────────────────────────────────────
   Responsive - site désigné pour 1280px (Claude Design).
   Breakpoints :
     ≥ 1440px : largeur native, gouttières larges
     1280–1439 : design natif
     1024–1279 : container fluide, pads réduits (gros laptops 14–15")
      768–1023 : tablet - grilles 4 colonnes deviennent 2 colonnes
      480–767  : mobile - tout empilé, panneau Tweaks caché
        < 480  : petit mobile - typo et pads ultra-compacts
   Stratégie : conserver le design ; uniquement ajuster la mise en
   page (grilles, paddings, échelle typographique) via media queries.
   ────────────────────────────────────────────────────────────── */

/* ─── Laptops 14"/15" (1024–1279px) - légère réduction ─── */
@media (max-width: 1279px) {
  :root { --container: 1100px; --pad-x: 40px; --section-y: 80px; }
  [data-density="compact"]  { --section-y: 60px; --pad-x: 32px; }
  [data-density="regular"]  { --section-y: 80px; --pad-x: 40px; }
  [data-density="aerated"]  { --section-y: 104px; --pad-x: 56px; }
  .page-head { padding: 24px 0 40px; }
  .page-head h1 { font-size: 60px; }

  /* ── Hero accueil - petits écrans 10"/11" et tablettes (768–1279px) ──
     En desktop la colonne de texte peut prendre jusqu'à 660px, ce qui
     écrase l'image (il ne lui reste que ~150–330px → "toute petite").
     Avant de passer en mode téléphone (≤767px, qui empile tout), on
     rééquilibre les deux colonnes 50/50 pour que l'image garde une taille
     correcte, et on réduit légèrement le titre pour qu'il respire dans sa
     demi-colonne. */
  .hero-split--media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 28px !important;
  }
  h1.hero-accueil,
  [data-hero] h1.hero-accueil {
    font-size: clamp(34px, 4.4vw, 52px) !important;
  }
  .hero-media { padding-right: 0; }
  .hero-media__img { width: 100%; }
}

/* ─── Tablet & petit laptop (768–1023px) ─── */
@media (max-width: 1023px) {
  :root { --container: 100%; --pad-x: 28px; --section-y: 64px; }
  [data-density="compact"]  { --section-y: 48px; --pad-x: 20px; }
  [data-density="regular"]  { --section-y: 64px; --pad-x: 28px; }
  [data-density="aerated"]  { --section-y: 80px; --pad-x: 36px; }

  .page-head { padding: 20px 0 32px; }
  .page-head h1 { font-size: 52px; }
  main h2 { font-size: 36px !important; }
  h3 { font-size: 22px; }
  .page-head .lead { font-size: 17px; }

  /* Grilles utilitaires : 4 → 2, 3 → 2 */
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Grilles inline : 4-col → 2 cols */
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: 1fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* 5-col → 2 cols */
  [style*="grid-template-columns: repeat(5, 1fr)"],
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* 3-col → 2 cols */
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* 2-cols asymétriques (1.4fr 1fr, 1.05fr 0.95fr, etc.) restent en 2 cols mais égales */
  [style*="1.4fr 1fr"],
  [style*="1fr 1.2fr"],
  [style*="1.4fr 1.6fr"],
  [style*="1.05fr 0.95fr"],
  [style*="1.05fr 1fr"],
  [style*="1fr 1.6fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Header nav : wrap si nécessaire */
  .site-nav { flex-wrap: wrap; justify-content: flex-end; }

  /* Spec tables : padding réduit */
  .spec-table th, .spec-table td { padding: 12px 12px; }
}

/* ─── Mobile (≤ 767px) - tout empilé en 1 colonne ─── */
@media (max-width: 767px) {
  :root { --container: 100%; --pad-x: 18px; --section-y: 56px; --body-size: 15.5px; }
  [data-density="compact"]  { --section-y: 44px; --pad-x: 16px; }
  [data-density="regular"]  { --section-y: 56px; --pad-x: 18px; }
  [data-density="aerated"]  { --section-y: 72px; --pad-x: 22px; }

  body { line-height: 1.55; overflow-x: hidden; }
  html, body { width: 100%; max-width: 100vw; }

  /* Aucun élément ne doit dépasser horizontalement */
  main, section, .container, header, footer { max-width: 100vw; overflow-x: clip; }

  /* Empilage universel des grilles utilitaires */
  .grid-2, .grid-3, .grid-4, .grid-12 { grid-template-columns: 1fr !important; gap: 16px; }
  .footer-cols { grid-template-columns: 1fr !important; gap: 28px; padding-bottom: 28px; }

  /* Empilage universel des grilles inline - couvre les patterns React (camelCase compilé en kebab-case) */
  [style*="grid-template-columns"],
  [style*="gridTemplateColumns"] { grid-template-columns: 1fr !important; }

  /* Les gaps inline trop larges deviennent compacts. Couvre les variations
     avec/sans espace, avec/sans px, et la version camelCase. */
  [style*="gap: 96px"], [style*="gap:96px"], [style*="gap: 96,"], [style*="gap:96,"] { gap: 24px !important; }
  [style*="gap: 80px"], [style*="gap:80px"], [style*="gap: 80,"], [style*="gap:80,"] { gap: 22px !important; }
  [style*="gap: 64px"], [style*="gap:64px"], [style*="gap: 64,"], [style*="gap:64,"] { gap: 20px !important; }
  [style*="gap: 56px"], [style*="gap:56px"], [style*="gap: 56,"], [style*="gap:56,"] { gap: 20px !important; }
  [style*="gap: 48px"], [style*="gap:48px"], [style*="gap: 48,"], [style*="gap:48,"] { gap: 18px !important; }
  [style*="gap: 40px"], [style*="gap:40px"], [style*="gap: 40,"], [style*="gap:40,"] { gap: 18px !important; }
  [style*="gap: 32px"], [style*="gap:32px"], [style*="gap: 32,"], [style*="gap:32,"] { gap: 16px !important; }

  /* Padding inline rendu en CSS : "padding: 32px" ou "padding: 32px 28px".
     On cap d'abord les paddings symétriques (px de tous les côtés),
     puis les asymétriques (deux valeurs). */
  [style*="padding: 64px"], [style*="padding:64px"] { padding: 24px !important; }
  [style*="padding: 56px"], [style*="padding:56px"] { padding: 22px !important; }
  [style*="padding: 48px"], [style*="padding:48px"] { padding: 20px !important; }
  [style*="padding: 40px"], [style*="padding:40px"] { padding: 20px !important; }
  [style*="padding: 32px"], [style*="padding:32px"] { padding: 18px !important; }

  /* Paddings directionnels inline (paddingTop/paddingBottom/paddingLeft/paddingRight)
     que React rend en CSS kebab-case "padding-top: 64px". */
  [style*="padding-top: 96px"],    [style*="paddingTop: 96"]    { padding-top: 32px !important; }
  [style*="padding-top: 80px"],    [style*="paddingTop: 80"]    { padding-top: 28px !important; }
  [style*="padding-top: 72px"],    [style*="paddingTop: 72"]    { padding-top: 24px !important; }
  [style*="padding-top: 64px"],    [style*="paddingTop: 64"]    { padding-top: 24px !important; }
  [style*="padding-top: 56px"],    [style*="paddingTop: 56"]    { padding-top: 20px !important; }
  [style*="padding-top: 48px"],    [style*="paddingTop: 48"]    { padding-top: 18px !important; }
  [style*="padding-bottom: 96px"], [style*="paddingBottom: 96"] { padding-bottom: 32px !important; }
  [style*="padding-bottom: 72px"], [style*="paddingBottom: 72"] { padding-bottom: 24px !important; }
  [style*="padding-bottom: 64px"], [style*="paddingBottom: 64"] { padding-bottom: 24px !important; }
  [style*="padding-bottom: 56px"], [style*="paddingBottom: 56"] { padding-bottom: 20px !important; }
  [style*="padding-bottom: 48px"], [style*="paddingBottom: 48"] { padding-bottom: 18px !important; }

  /* Paddings asymétriques courants - couvre "40px 36px", "40px 44px", "56px 56px", etc. */
  [style*="padding: 64px 56px"], [style*="padding:64px 56px"] { padding: 28px 18px !important; }
  [style*="padding: 56px 56px"], [style*="padding:56px 56px"] { padding: 24px 18px !important; }
  [style*="padding: 40px 36px"], [style*="padding:40px 36px"] { padding: 22px 18px !important; }
  [style*="padding: 40px 44px"], [style*="padding:40px 44px"] { padding: 22px 18px !important; }
  [style*="padding: 32px 28px"], [style*="padding:32px 28px"] { padding: 20px 16px !important; }
  [style*="padding: 28px 24px"], [style*="padding:28px 24px"] { padding: 18px 16px !important; }
  [style*="padding: 28px 28px"], [style*="padding:28px 28px"] { padding: 18px 16px !important; }
  [style*="padding: 40px 24px"], [style*="padding:40px 24px"] { padding: 24px 18px !important; }
  [style*="padding: 80px 56px"], [style*="padding:80px 56px"] { padding: 28px 18px !important; }

  /* Marges inline lourdes → réduites */
  [style*="margin-bottom: 96px"], [style*="marginBottom: 96"], [style*="marginBottom:96"] { margin-bottom: 32px !important; }
  [style*="margin-bottom: 72px"], [style*="marginBottom: 72"], [style*="marginBottom:72"] { margin-bottom: 28px !important; }
  [style*="margin-bottom: 64px"], [style*="marginBottom: 64"], [style*="marginBottom:64"] { margin-bottom: 24px !important; }
  [style*="margin-bottom: 56px"], [style*="marginBottom: 56"], [style*="marginBottom:56"] { margin-bottom: 24px !important; }
  [style*="margin-bottom: 48px"], [style*="marginBottom: 48"], [style*="marginBottom:48"] { margin-bottom: 20px !important; }
  [style*="margin-bottom: 40px"], [style*="marginBottom: 40"], [style*="marginBottom:40"] { margin-bottom: 18px !important; }
  [style*="margin-top: 96px"],    [style*="marginTop: 96"],    [style*="marginTop:96"]    { margin-top: 28px !important; }
  [style*="margin-top: 72px"],    [style*="marginTop: 72"],    [style*="marginTop:72"]    { margin-top: 24px !important; }
  [style*="margin-top: 64px"],    [style*="marginTop: 64"],    [style*="marginTop:64"]    { margin-top: 24px !important; }
  [style*="margin-top: 56px"],    [style*="marginTop: 56"],    [style*="marginTop:56"]    { margin-top: 20px !important; }
  [style*="margin-top: 48px"],    [style*="marginTop: 48"],    [style*="marginTop:48"]    { margin-top: 18px !important; }

  /* Tailles inline gigantesques - cap raisonnable. La format React inline est
     "font-size: 120px" dans le DOM final, donc on match le rendu réel. */
  [style*="font-size: 120px"], [style*="fontSize: 120"], [style*="fontSize:120"] { font-size: 38px !important; line-height: 1.05 !important; }
  [style*="font-size: 84px"],  [style*="fontSize: 84"],  [style*="fontSize:84"]  { font-size: 34px !important; line-height: 1.08 !important; }
  [style*="font-size: 80px"],  [style*="fontSize: 80"],  [style*="fontSize:80"]  { font-size: 32px !important; line-height: 1.08 !important; }
  [style*="font-size: 72px"],  [style*="fontSize: 72"],  [style*="fontSize:72"]  { font-size: 30px !important; line-height: 1.08 !important; }
  [style*="font-size: 60px"],  [style*="fontSize: 60"],  [style*="fontSize:60"]  { font-size: 28px !important; }
  [style*="font-size: 56px"],  [style*="fontSize: 56"],  [style*="fontSize:56"]  { font-size: 27px !important; }
  [style*="font-size: 50px"],  [style*="fontSize: 50"],  [style*="fontSize:50"]  { font-size: 25px !important; }
  [style*="font-size: 48px"],  [style*="fontSize: 48"],  [style*="fontSize:48"]  { font-size: 25px !important; }
  [style*="font-size: 44px"],  [style*="fontSize: 44"],  [style*="fontSize:44"]  { font-size: 23px !important; }
  [style*="font-size: 40px"],  [style*="fontSize: 40"],  [style*="fontSize:40"]  { font-size: 22px !important; }
  [style*="font-size: 36px"],  [style*="fontSize: 36"],  [style*="fontSize:36"]  { font-size: 20px !important; }
  [style*="font-size: 32px"],  [style*="fontSize: 32"],  [style*="fontSize:32"]  { font-size: 19px !important; }
  [style*="font-size: 28px"],  [style*="fontSize: 28"],  [style*="fontSize:28"]  { font-size: 18px !important; }
  [style*="font-size: 26px"],  [style*="fontSize: 26"],  [style*="fontSize:26"]  { font-size: 17px !important; }
  [style*="font-size: 24px"],  [style*="fontSize: 24"],  [style*="fontSize:24"]  { font-size: 16px !important; }
  [style*="font-size: 22px"],  [style*="fontSize: 22"],  [style*="fontSize:22"]  { font-size: 16px !important; }
  [style*="font-size: 21px"],  [style*="fontSize: 21"],  [style*="fontSize:21"]  { font-size: 15.5px !important; }
  [style*="font-size: 19px"],  [style*="fontSize: 19"],  [style*="fontSize:19"]  { font-size: 15px !important; }
  [style*="font-size: 18px"],  [style*="fontSize: 18"],  [style*="fontSize:18"]  { font-size: 14.5px !important; }

  /* maxWidth inline qui pousserait au-delà du viewport */
  [style*="max-width: 280px"], [style*="maxWidth: 280"] { max-width: 100% !important; }
  [style*="max-width: 340px"], [style*="maxWidth: 340"] { max-width: 100% !important; }
  [style*="max-width: 460px"], [style*="maxWidth: 460"] { max-width: 100% !important; }
  [style*="max-width: 480px"], [style*="maxWidth: 480"] { max-width: 100% !important; }
  [style*="max-width: 560px"], [style*="maxWidth: 560"] { max-width: 100% !important; }
  [style*="max-width: 640px"], [style*="maxWidth: 640"] { max-width: 100% !important; }
  [style*="max-width: 680px"], [style*="maxWidth: 680"] { max-width: 100% !important; }
  [style*="max-width: 720px"], [style*="maxWidth: 720"] { max-width: 100% !important; }
  [style*="max-width: 760px"], [style*="maxWidth: 760"] { max-width: 100% !important; }
  [style*="max-width: 800px"], [style*="maxWidth: 800"] { max-width: 100% !important; }
  [style*="max-width: 820px"], [style*="maxWidth: 820"] { max-width: 100% !important; }
  [style*="max-width: 900px"], [style*="maxWidth: 900"] { max-width: 100% !important; }
  [style*="max-width: 1100px"], [style*="maxWidth: 1100"] { max-width: 100% !important; }

  /* Texte qui pourrait déborder horizontalement : on autorise la rupture au mot,
     PAS au milieu d'un mot (jamais de "-" automatique : on préfère que le mot
     passe à la ligne suivante). */
  h1, h2, h3, h4, p, span, li, a, td, th { overflow-wrap: break-word; word-wrap: break-word; word-break: normal; hyphens: none; -webkit-hyphens: none; }

  /* Header : logo à gauche + hamburger à droite, hauteur fixe */
  .site-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 60px;
    padding: 0 16px;
  }

  /* Hamburger devient visible en mobile */
  .site-burger { display: inline-flex; margin-right: 0; }

  /* Nav DESKTOP masquée sous 768px */
  .site-nav--desktop { display: none !important; }

  /* Nav MOBILE : panneau slide-in depuis la droite */
  .site-nav--mobile {
    display: flex;
    position: fixed;
    top: 61px;
    right: 0;
    bottom: 0;
    width: min(84vw, 320px);
    background: var(--surface);
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 12px 20px 24px;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 24px rgba(28, 28, 28, 0.12);
  }
  .site-nav--mobile.mobile-open { transform: translateX(0); }

  .site-nav-backdrop { top: 61px; }

  /* Liens : pleine largeur, plus tactiles, taille adéquate */
  .site-nav a {
    flex-shrink: 0;
    padding: 16px 14px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.01em;
    border-bottom: 1px solid var(--border-2);
    border-radius: 0;
  }
  .site-nav a:hover { color: var(--accent); background: transparent; }
  .site-nav a:last-of-type { border-bottom: 0; }
  .site-nav a.active { color: var(--accent); border-left: 2px solid var(--accent); padding-left: 12px; }
  .site-nav a.active::after { display: none; }

  .lang-switch { margin: 16px 0 0 0; align-self: flex-start; flex-shrink: 0; }
  .lang-switch button { padding: 8px 14px; font-size: 12px; }

  /* Échelle typographique mobile */
  .page-head { padding: 36px 0 24px; }
  .page-head .crumb { font-size: 11px; margin-bottom: 16px; flex-wrap: wrap; gap: 6px; }
  .page-head h1 { font-size: 38px !important; letter-spacing: -0.025em !important; }
  main h1 { font-size: 38px !important; letter-spacing: -0.025em !important; line-height: 1.05 !important; }
  main h2 { font-size: 26px !important; line-height: 1.18 !important; letter-spacing: -0.015em !important; }
  h3 { font-size: 20px !important; line-height: 1.25 !important; }
  h4 { font-size: 16.5px !important; }
  .page-head .lead { font-size: 16px; line-height: 1.55; margin-top: 18px; max-width: 100%; }
  .eyebrow { font-size: 10.5px; margin-bottom: 14px; letter-spacing: 0.16em; }
  .eyebrow::before { width: 16px; }

  /* ── Hero accueil - mobile : empilé, centré, jamais de débordement ──
     .hero-split est la grille 2 colonnes du desktop. On la repasse en bloc,
     et on autorise les enfants à rétrécir (min-width:0) - sinon un titre ou
     une rangée de boutons plus large que l'écran force un débordement. */
  .hero-split { display: block !important; }
  .hero-split > * { min-width: 0; max-width: 100%; }
  .hero-split > div { text-align: center; }
  .hero-split p { margin-left: auto !important; margin-right: auto !important; }

  /* Titre hero : taille fluide bornée à la largeur réelle de l'écran.
     On cible aussi [data-hero] (Tweaks) car sa spécificité est plus haute. */
  h1.hero-accueil,
  [data-hero] h1.hero-accueil {
    font-size: clamp(26px, 7.8vw, 38px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
    text-align: center;
    margin: 0 0 18px;
  }

  /* Boutons du hero : empilés pleine largeur, centrés */
  .hero-cta { flex-wrap: wrap !important; justify-content: center; }
  .hero-cta .btn { flex: 1 1 100% !important; justify-content: center; }

  /* Image produits du hero : pleine largeur sous le texte, marge confortable */
  .hero-media { margin-top: 28px; margin-right: 0; justify-content: center; }
  .hero-media__img {
    max-width: 100%;
    width: 100%;
    filter: drop-shadow(0 12px 18px rgba(20, 22, 28, 0.15));
  }
  /* Sur mobile on remet la padding droite du container (l'image passe sous
     le texte et n'a plus besoin de bleed). */
  .container.hero-accueil-container { padding-right: var(--pad-x); }

  section .eyebrow { margin-bottom: 12px; }

  /* Les Tweaks "data-hero" (échelle hero S/M/L/XL) ont une spécificité
     supérieure aux règles mobiles ([data-hero] h1 = (0,1,1) > main h1) et
     ré-agrandissent donc les titres au-delà de l'écran. On les neutralise
     ici, dans la media query mobile, avec une spécificité au moins égale. */
  [data-hero] main h1      { font-size: 38px !important; }
  [data-hero] .page-head h1 { font-size: 38px !important; }

  /* Sections */
  .section { padding: 56px 0; }
  .section-tight { padding: 36px 0; }

  /* Boutons : hauteur tactile, gap entre boutons quand .btn voisin */
  .btn { height: 48px; padding: 0 20px; font-size: 14.5px; max-width: 100%; }
  .btn .arr { font-size: 14px; }
  /* Si plusieurs boutons côte à côte, leur conteneur passe en colonne */
  [style*="display: flex"][style*="gap: 12"] > .btn,
  [style*="display:'flex'"][style*="gap:12"] > .btn { flex: 1 1 auto; }

  /* Forms : inputs plus grands, lisibles */
  .form-row input, .form-row textarea, .form-row select {
    height: 48px;
    font-size: 16px;       /* 16px+ pour éviter le zoom auto iOS */
    padding: 0 14px;
  }
  .form-row textarea { height: 140px; padding: 12px 14px; }
  .form-row label { font-size: 11.5px; }

  /* Panneau Tweaks caché : non utilisable au doigt */
  .twk-panel, .twk-fab, .twk-trigger { display: none !important; }

  /* SVG schémas - masquer les annotations détaillées qui rendraient le SVG illisible */
  .svg-callouts, .svg-dims, .svg-labels { display: none; }

  /* Spec tables : padding correct, font lisible */
  .spec-table { font-size: 13.5px; }
  .spec-table th { font-size: 11px; padding: 13px 10px; width: auto !important; }
  .spec-table td { font-size: 13px; padding: 13px 10px; }
  .spec-table td .sub { font-size: 12px; }

  /* Ticker : compact + scroll natif (pas d'animation) */
  .ticker { font-size: 12.5px; }
  .ticker-inner { animation: none; gap: 18px; height: 44px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 16px; }
  .ticker-item .k { font-size: 11px; }
  .ticker-item .v { font-size: 13px; }
  .ticker-item .u { font-size: 11px; }

  /* Footer */
  .site-footer { padding: 40px 0 24px; }
  .footer-cols h5 { font-size: 11px; margin-bottom: 12px; }
  .footer-cols a { padding: 6px 0; font-size: 14.5px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; font-size: 11px; padding-top: 20px; }

  /* Images & placeholders fluides */
  img, video, canvas, svg { max-width: 100%; height: auto; }
  .ph { font-size: 10px; }
  .ph::before { inset: 8px; }

  /* Conteneurs `surface` génériques : padding par défaut compact */
  .surface { padding: 18px; }
  .surface-flush { padding: 18px; }

  /* Tableaux dans des cards inline (page Tactibox/Tactigraph) */
  .spec-table { display: block; overflow-x: auto; }
}

/* ─── Très petit mobile (< 480px) ─── */
@media (max-width: 479px) {
  :root { --pad-x: 14px; --body-size: 14.5px; }
  [data-density="compact"]  { --pad-x: 12px; }
  [data-density="regular"]  { --pad-x: 14px; }
  [data-density="aerated"]  { --pad-x: 16px; }

  .page-head h1 { font-size: 36px !important; }
  main h1 { font-size: 36px !important; }
  main h2 { font-size: 24px !important; }
  h3 { font-size: 19px !important; }
  .page-head .lead { font-size: 15.5px; }
  .eyebrow { font-size: 10.5px; }

  /* Header logo : icône + texte plus petits */
  .site-logo img { height: 24px; }
  .site-logo-wordmark { font-size: 13px; }

  /* Boutons CTA principaux pleine largeur sur très petit écran */
  .page-head .btn, main section .btn { width: 100%; justify-content: center; }
  /* Sauf dans le header et la nav */
  .site-nav .btn, .lang-switch .btn { width: auto; }

  /* Cap encore plus serré sur les fontSize inline géants */
  [style*="fontSize: 120"], [style*="fontSize:120"] { font-size: 36px !important; }
  [style*="fontSize: 80"],  [style*="fontSize:80"]  { font-size: 30px !important; }
  [style*="fontSize: 72"],  [style*="fontSize:72"]  { font-size: 28px !important; }

  /* Section paddings plus serrés */
  .section { padding: 44px 0; }

  /* Ticker plus serré */
  .ticker-inner { height: 40px; gap: 14px; }
}
