/* ============================================================================
   ODYO Assistant — feuille de style unique
   Direction « 1a — Clinique lumineuse », alignée charte odyo.com :
   Poppins, bleu #4685C5, marine #1B3A6B, turquoise #2BB8AE.
   Page pleine largeur : fonds et contenu vont d'un bord à l'autre, à une
   gouttière près. Deux fonds seulement en alternance (blanc / lavé), des
   pilules, des cartes à grand rayon et des dessins au trait entourés de halos
   concentriques.
   ========================================================================= */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Couleurs de marque */
  --blue:        #4685C5;
  --blue-deep:   #3A6FAE;
  --navy:        #1B3A6B;
  --teal:        #2BB8AE;

  /* Texte */
  --ink:         #1B3A6B;
  --ink-soft:    #4A6C96;
  --ink-faint:   #7EA4CE;
  --placeholder: #9DB8D6;

  /* Surfaces */
  --white:       #ffffff;
  --wash:        #EDF4FC;
  --wash-top:    #F4F9FE;
  --wash-bottom: #E4EFFA;
  --hero-top:    #FBFDFF;

  /* Traits */
  --line:        #E3EEF9;
  --line-soft:   #EAF1F9;
  --line-pale:   #CBDDF0;
  --border-btn:  #BBD4EC;

  /* Échelle de sévérité — convention clinique, lue par catalogue.js */
  --sev-0:       #16A34A;
  --sev-1:       #CA8A04;
  --sev-2:       #EA580C;
  --sev-3:       #DC2626;
  --sev-4:       #991B1B;

  /* Formes */
  --r-card:      26px;
  --r-sm:        22px;
  --r-field:     14px;
  --r-pill:      999px;
  --shadow-card: 0 14px 34px rgba(27, 58, 107, .08);
  --shadow-lift: 0 20px 44px rgba(27, 58, 107, .14);
  --shadow-pop:  0 32px 70px rgba(27, 58, 107, .28);

  --font:        'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease:        cubic-bezier(.22, 1, .36, 1);

  /* Page pleine largeur : les fonds vont d'un bord à l'autre, seule une
     gouttière décolle le contenu — 44px comme dans la maquette, dégradée à
     20px sur mobile.
     Au-delà d'une certaine largeur la gouttière prend le relais et grandit
     pour plafonner le contenu : sans cela le hero s'étirait sur 2400px alors
     que son texte reste bloqué à 530px, d'où de larges poches de vide. Le
     plafond passe par la gouttière et non par un conteneur : un conteneur
     couperait les fonds avant le bord de la fenêtre.
     `100%` et non `100vw` : le pourcentage se résout contre la largeur du bloc
     conteneur, barre de défilement exclue — `100vw` l'inclut et provoquerait un
     débordement horizontal de sa largeur.
     Les deux termes se croisent vers 1550px de fenêtre, là où 3.6vw ≈ 56px : le
     passage est continu, rien ne saute au redimensionnement. */
  --content-max: 1600px;
  --pad-x:       clamp(20px, 3.6vw, 68px);
  --pad-y:       clamp(48px, 6vw, 70px);
  --gutter:      max(var(--pad-x), calc((100% - var(--content-max)) / 2));

  /* Dégagement sous l'en-tête collant, repris par `scroll-padding-top` pour que
     les ancres n'atterrissent pas dessous. Mesuré : la barre fait 77px sur
     bureau et 79px sous 1040px — le bouton du menu, agrandi pour le doigt, la
     rend plus haute que sur bureau, et non l'inverse. 88px couvre les deux. */
  --head-h:      88px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

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

.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;
}

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 300;
  padding: 11px 20px; background: var(--navy); color: #fff;
  border-radius: var(--r-pill); transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ── Coquille de page ────────────────────────────────────────────────────── */
/* Pleine largeur : les bandes de fond touchent les deux bords de la fenêtre.
   `overflow: clip` et non `hidden` : rogne les halos qui débordent sans créer
   de conteneur de défilement, ce qui casserait l'en-tête collant. */
.od-page {
  background: var(--white);
  overflow: clip;
}

/* ── Sections : deux fonds seulement, en alternance ──────────────────────── */
.section { padding: var(--pad-y) var(--gutter); }
.section--white { background: var(--white); }
.section--wash  { background: linear-gradient(180deg, var(--wash-top), var(--wash-bottom)); }

/* ── Typographie ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; }
p { margin: 0; }

.eyebrow {
  font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint);
}

.h2 {
  font-size: clamp(27px, 1.4rem + 1.5vw, 36px);
  font-weight: 600;
  color: var(--blue);
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.h2 .t-light { font-weight: 300; }

.lead {
  font-size: 17px; font-weight: 300; color: var(--ink);
  text-wrap: pretty;
}

.section-head {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  margin-bottom: 44px;
}
.section-head .lead { max-width: 640px; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 16px; font-weight: 600;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); color: #fff; }

.btn--ghost {
  background: transparent; color: var(--navy);
  border: 2px solid var(--border-btn);
  padding: 13px 28px;
}
.btn--ghost:hover { border-color: var(--blue); color: var(--navy); }

.btn--sm { font-size: 14px; padding: 11px 22px; }
.btn--ghost.btn--sm { padding: 9px 20px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 120;
  display: flex; align-items: center; gap: 22px;
  padding: 16px var(--gutter);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--ease);
}
.site-head.is-stuck { box-shadow: 0 10px 26px -22px rgba(27, 58, 107, .55); }

/* Verrou de marque : logotype ODYO + nom du produit, sans filet.
   `baseline` et non `center` : le logotype est calé sur la ligne de base du mot
   qui le suit, comme deux mots d'une même ligne — c'est ce qui les lie. Un
   élément de bloc n'ayant pas de ligne de base propre, le navigateur prend son
   bord inférieur ; le logotype est détouré au ras des lettres, l'appui tombe
   donc juste. */
.brand { display: flex; align-items: baseline; gap: 9px; margin-right: auto; }
.brand-logo { height: 27px; width: auto; }
/* Petites capitales espacées, à la manière du « SOFTWARE » de CORTI : le nom du
   produit se range sous l'autorité du logotype au lieu de rivaliser avec lui. */
.brand-sub { font-size: 20px; font-weight: 300; color: var(--blue); }
.brand .brand-sub {
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  /* L'espacement de lettres ajoute un blanc après le « T » : on le reprend pour
     que le mot reste optiquement centré sur son propre bloc. */
  margin-right: -.22em;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: 15px; font-weight: 500; color: var(--navy);
  transition: color .18s var(--ease);
}
.site-nav a:hover { color: var(--blue); }
.site-nav a.is-active { color: var(--blue); }

/* Retour à l'accueil : sur grand écran, l'icône seule — le libellé ne sert que
   dans le menu replié, et reste lisible par les lecteurs d'écran entre-temps. */
.nav-home { display: inline-flex; align-items: center; gap: 9px; }
.nav-home svg { width: 20px; height: 20px; flex: none; }
/* Le tracé est rempli en permanence de la couleur du trait ; seule l'opacité du
   remplissage bouge. C'est elle qu'on anime — `fill` en mot-clé ne s'interpole
   pas de façon fiable, `fill-opacity` est un nombre. */
.nav-home svg path {
  fill: currentColor; fill-opacity: 0;
  transition: fill-opacity .22s var(--ease);
}
/* Au repos la maison reste vide, y compris sur l'accueil : le remplissage est
   réservé au survol, où l'icône bascule d'un coup du trait à l'aplat plein — la
   porte, sous-tracé du même chemin, s'y creuse. L'état actif se signale par la
   couleur, comme les autres entrées de la barre. Le focus clavier reçoit le
   même état que le survol. */
.nav-home:hover svg path,
.nav-home:focus-visible svg path { fill-opacity: 1; }
.nav-home > span {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Sélecteur de langue */
.langpill {
  display: inline-flex; padding: 3px;
  background: var(--wash); border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.langpill button {
  padding: 5px 13px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; letter-spacing: .05em;
  color: var(--ink-faint);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.langpill button[aria-pressed='true'] { background: var(--blue); color: #fff; }

/* Menu replié ouvert : on fige le corps pour que le doigt fasse défiler la
   liste et non la page derrière elle. Posé sur <html> par main.js. */
.nav-open, .nav-open body { overflow: hidden; }

.nav-toggle {
  display: none; padding: 8px; border-radius: var(--r-pill);
  color: var(--navy); border: 1px solid var(--line);
}
/* Trois barres au repos, croix une fois le panneau ouvert — même mécanisme que
   le bouton flottant du chat : deux tracés dans le bouton, l'état `aria-expanded`
   choisit lequel s'affiche. */
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded='true'] .ic-open  { display: none; }
.nav-toggle[aria-expanded='true'] .ic-close { display: block; }

.nav-cta { display: none; }        /* visible seulement dans le menu replié */

/* Voile posé sur la page pendant que le menu est ouvert. Il vit dans le créneau
   `widgets`, avec les autres surcouches fixes, et non dans l'en-tête : celui-ci
   porte un `backdrop-filter`, qui établit un bloc conteneur pour les descendants
   `fixed` et l'enfermerait dans la hauteur de la barre.
   z-index 118 : sous le panneau (119) et sous l'en-tête (120), qui restent donc
   nets au-dessus du voile. */
.nav-scrim {
  position: fixed; inset: 0; z-index: 118;
  background: rgba(27, 58, 107, .38);
  animation: fade-in .22s var(--ease);
}
.nav-scrim[hidden] { display: none; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 119;
    /* Le padding horizontal descend du panneau vers chaque rangée : c'est ce qui
       permet à la page active de teinter toute la largeur, bord à bord. */
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 0 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 var(--r-card) var(--r-card);
    box-shadow: 0 26px 46px -24px rgba(27, 58, 107, .45);
    /* En paysage sur téléphone la liste dépasse le bas de la fenêtre : sans
       cela les dernières entrées deviennent inatteignables, le corps étant
       verrouillé pendant l'ouverture du menu. */
    max-height: calc(100vh - 100%);
    max-height: calc(100dvh - 100%);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .site-nav[hidden] { display: none; }

  /* `:not(.btn)` est indispensable et pas cosmétique : sans lui cette règle
     écrase le `display: inline-flex` de .btn et le libellé du CTA déborde de sa
     pilule. C'est aussi elle qui remet l'icône d'accueil sur sa ligne — un
     `display: block` empilait le tracé au-dessus du mot. */
  .site-nav a:not(.btn) {
    display: flex; align-items: center;
    padding: 15px var(--gutter);
    font-size: 16px;
  }
  /* Filet *entre* les rangées, porté par la suivante — et non sous chacune :
     la liste se termine ainsi sans trait courant sous la dernière entrée, qui
     viendrait toucher le bouton. `:last-of-type` ne rendrait pas ce service, le
     dernier <a> du panneau étant le CTA lui-même. */
  .site-nav a:not(.btn) + a:not(.btn) { border-top: 1px solid var(--line-soft); }

  /* Chevron en fin de rangée, dessiné en `data:` URI comme celui des menus
     déroulants du catalogue : il dit « cette ligne mène ailleurs » sans ajouter
     un <svg> à chaque entrée dans chrome.js. */
  .site-nav a:not(.btn)::after {
    content: ''; margin-left: auto; flex: none;
    width: 8px; height: 13px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 13' fill='none' stroke='%239DB8D6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5 6.5 6.5l-5 5'/%3E%3C/svg%3E") no-repeat center/contain;
  }

  /* La page courante se signale par un aplat pleine largeur et un liseré, pas
     seulement par la couleur du mot : dans une liste, la couleur seule se
     confond avec un simple lien. */
  .site-nav a.is-active {
    background: var(--wash-top);
    box-shadow: inset 3px 0 0 var(--blue);
    font-weight: 600;
  }

  /* Cinq rangées de texte homogènes se lisent mieux qu'une seule ornée d'une
     icône. Le tracé garde tout son sens sur grand écran, où il est seul. */
  .nav-home svg { display: none; }
  .nav-home > span {
    position: static; width: auto; height: auto;
    margin: 0; overflow: visible; clip: auto;
  }

  .nav-cta { display: inline-flex; margin: 16px var(--gutter) 0; }
  .head-cta { display: none; }
}
@media (max-width: 560px) {
  .site-head { gap: 12px; }
  .brand { gap: 8px; }
  .brand-logo { height: 24px; }
  .brand .brand-sub { font-size: 10.5px; letter-spacing: .16em; margin-right: -.16em; }
}
/* Dernier recours seulement : sans « Assistant », l'en-tête ne nomme plus que la
   maison mère. On ne lâche le mot qu'à la largeur où il chasserait le sélecteur
   de langue hors de l'écran — les tailles d'iPhone courantes le gardent. */
@media (max-width: 359px) {
  .brand .brand-sub { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(52px, 6vw, 76px) var(--gutter) clamp(56px, 7vw, 84px);
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--wash-bottom) 100%);
  overflow: hidden;
}
.hero__halo {
  position: absolute; top: -180px; right: -160px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(70,133,197,.13) 0%, rgba(70,133,197,.05) 45%, rgba(70,133,197,0) 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center;
}
/* Les colonnes doivent pouvoir passer sous la largeur mini de leur contenu :
   sans cela les illustrations en largeur fixe élargissent la grille sur mobile. */
.hero__grid > *, .page-hero__grid > *, .split > *, .products__grid > *, .stats > *,
.steps > *, .rules > *, .consensus > * { min-width: 0; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.hero__title {
  font-size: clamp(36px, 2rem + 2.6vw, 56px);
  line-height: 1.06; font-weight: 600; color: var(--blue);
  letter-spacing: -.015em;
}
.hero__title .t-light { display: block; font-weight: 300; }

.hero__sub {
  font-size: clamp(17px, 1rem + .3vw, 19px);
  line-height: 1.55; font-weight: 300; color: var(--ink);
  max-width: 530px; text-wrap: pretty;
}

.flow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
}
.flow .last { color: var(--navy); font-weight: 600; }
.flow svg { width: 34px; flex: none; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }

/* `min-height` et non `height` : la réserve reste un plancher, elle ne borne
   plus le contenu. `--ring` porte le diamètre du plus grand halo ; les autres
   s'en déduisent, si bien qu'un seul chiffre suffit à redimensionner tout le
   bloc — voir la bande tablette et le bloc grand écran plus bas. */
.hero__art {
  --ring: 430px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 430px;
}
.hero__art > svg { position: relative; width: 100%; max-width: 560px; height: auto; }

/* Halos concentriques en fond d'illustration */
.rings { position: absolute; border-radius: 50%; pointer-events: none; }
.rings--1 { width: var(--ring); height: var(--ring); background: rgba(70,133,197,.07); }
.rings--2 { width: calc(var(--ring) * .744); height: calc(var(--ring) * .744); background: rgba(70,133,197,.09); }
.rings--3 { width: calc(var(--ring) * .488); height: calc(var(--ring) * .488); background: rgba(70,133,197,.10); }

/* ── Hero des pages intérieures (CORTI, ODYO Soft, Catalogue) ────────────── */
/* Même famille que le hero d'accueil, mais plus court : ces pages doivent
   amener la matière — les règles, les étapes, la grille — dès le premier
   défilement. Le titre y est un h1, l'accroche produit remplace le sous-titre. */
.page-hero {
  position: relative;
  padding: clamp(44px, 5vw, 66px) var(--gutter) clamp(48px, 5.5vw, 70px);
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--wash-bottom) 100%);
  overflow: hidden;
}
.page-hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center;
}
.page-hero__copy {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  min-width: 0;
}
.page-hero__logo { height: 42px; width: auto; }
.page-hero h1 {
  font-size: clamp(32px, 1.8rem + 2vw, 46px);
  line-height: 1.08; font-weight: 600; color: var(--blue);
  letter-spacing: -.015em; text-wrap: pretty;
}
.page-hero .lead { font-size: clamp(16px, 1rem + .3vw, 18px); max-width: 560px; }
.page-hero p:not(.lead):not(.eyebrow) {
  font-size: 16px; font-weight: 300; color: var(--ink-soft);
  max-width: 560px; text-wrap: pretty;
}
.page-hero .btn-row { padding-top: 8px; }
.page-hero__art {
  --ring: 330px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 340px;
}
.page-hero__art > svg { position: relative; width: 100%; max-width: 460px; height: auto; }

/* ── Chiffres ────────────────────────────────────────────────────────────── */
/* Pas de rupture avec le hero : la bande reprend exactement la couleur sur
   laquelle il se termine (--wash-bottom) et remonte vers le blanc, puis
   redescend vers --wash-top où commence la section Produits. Les deux
   jointures sont donc invisibles. */
.stats {
  padding: clamp(68px, 7.5vw, 96px) var(--gutter) clamp(52px, 6vw, 72px);
  background: linear-gradient(180deg,
    var(--wash-bottom) 0%,
    var(--white) 46%,
    var(--white) 80%,
    var(--wash-top) 100%);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.stat svg { width: 88px; height: auto; }
.stat .value { font-size: clamp(30px, 1.6rem + 1vw, 38px); font-weight: 600; color: var(--blue); line-height: 1; }
/* Une valeur en toutes lettres ne tient pas à la taille d'un nombre. */
.stat .value--text { font-size: clamp(22px, 1.1rem + .9vw, 30px); letter-spacing: -.01em; }
.stat .label { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.35; }

/* ── Produits ────────────────────────────────────────────────────────────── */
.products { padding: clamp(46px, 5.5vw, 64px) var(--gutter) clamp(52px, 6.5vw, 76px); }
.products .section-head { margin-bottom: 42px; }
.products .lead { max-width: 600px; }
.products__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.product {
  position: relative; overflow: hidden;
  padding: 38px 34px 32px;
  background: var(--white); border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
/* `hover: hover` : sur écran tactile un appui déclenche `:hover` et l'état y
   reste jusqu'au suivant — la carte restait soulevée après le tap. */
@media (hover: hover) {
  .product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
}
.product .halo {
  position: absolute; top: 40px; left: 50%; transform: translateX(-50%);
  width: 340px; height: 340px; border-radius: 50%; pointer-events: none;
}
.product .halo--blue { background: radial-gradient(circle, rgba(70,133,197,.12) 0%, rgba(70,133,197,.04) 55%, rgba(70,133,197,0) 72%); }
.product .halo--teal { background: radial-gradient(circle, rgba(43,184,174,.12) 0%, rgba(43,184,174,.04) 55%, rgba(43,184,174,0) 72%); }
.product > *:not(.halo) { position: relative; }
.product__art { width: 100%; max-width: 250px; height: auto; }
.product__logo { width: auto; }
.product p {
  font-size: 16px; font-weight: 300; color: var(--ink);
  text-align: center; max-width: 330px;
}

/* ── CORTI ───────────────────────────────────────────────────────────────── */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-bottom: 52px; }
.rule { display: flex; gap: 22px; align-items: center; }
.rule__art { width: 150px; flex: none; height: auto; }
.rule__body { display: flex; flex-direction: column; gap: 7px; }
.rule .kicker {
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.rule h3 { font-size: 21px; font-weight: 600; color: var(--navy); }
.rule p { font-size: 15px; font-weight: 300; color: var(--ink-soft); }
.rule em { color: var(--blue); font-weight: 500; font-style: normal; }

/* `align-items: start` et non `center` : le tracé se cale en haut, au niveau du
   surtitre, plutôt que de flotter au milieu de la bande. */
.consensus {
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  border-radius: var(--r-card);
  padding: 36px 40px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px;
  align-items: start; color: #fff;
}
.consensus__copy { display: flex; flex-direction: column; gap: 10px; }
.consensus .kicker {
  font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; opacity: .75;
}
.consensus h3 { font-size: clamp(21px, 1.2rem + .7vw, 25px); font-weight: 600; text-wrap: pretty; }
.consensus p { font-size: 16px; font-weight: 300; opacity: .9; }

/* Le protocole en trois temps : c'est lui qui donne son sens au mot « aveugle »,
   et il équilibre la colonne de gauche face à la hauteur du tracé. */
.proof-steps {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.proof-steps li {
  position: relative; padding-left: 20px;
  font-size: 14.5px; font-weight: 300; line-height: 1.5; opacity: .88;
}
.proof-steps li::before {
  content: ''; position: absolute; left: 0; top: .6em;
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}
.proof-steps b { font-weight: 600; opacity: 1; }

/* Le tracé clinique et sa légende, dans le bandeau bleu de /corti. Le carton
   blanc est indispensable : l'audiogramme suit la convention (grille pâle,
   ○ rouge à droite, × bleu à gauche) et disparaîtrait sur le fond bleu.
   Largeur plafonnée : à pleine colonne le graphe écrasait le reste de la bande. */
.proof {
  display: flex; flex-direction: column; gap: 14px;
  width: min(100%, 360px); margin-left: auto;
}
.proof__chart {
  background: #fff; border-radius: var(--r-sm);
  padding: 14px 16px 8px;
  box-shadow: 0 12px 30px -18px rgba(10, 30, 60, .5);
}
.consensus .proof__caption {
  font-size: 13.5px; font-weight: 300; line-height: 1.55;
  opacity: .85; text-wrap: pretty;
}
.proof__caption b { font-weight: 600; opacity: 1; }


/* ── ODYO Soft : les six étapes ──────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px 30px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__art { width: 64px; flex: none; height: auto; }
.step__body { display: flex; flex-direction: column; gap: 5px; }
.step h3 { font-size: 18px; font-weight: 600; color: var(--navy); }
.step p { font-size: 15px; font-weight: 300; color: var(--ink-soft); }

/* ── Colonnes texte + illustration ───────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: center; }
.split--even { grid-template-columns: 1fr 1fr; }
.split__copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.split__copy .h2 { font-size: clamp(26px, 1.35rem + 1.4vw, 34px); }
.split__copy p { font-size: 16px; font-weight: 300; color: var(--ink); text-wrap: pretty; }
.split__art {
  --ring: 330px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 330px;
}
.split__art > svg { position: relative; width: 100%; max-width: 440px; height: auto; }
.rings--cat-1 { width: var(--ring); height: var(--ring); background: rgba(70,133,197,.06); }
.rings--cat-2 { width: calc(var(--ring) * .697); height: calc(var(--ring) * .697); background: rgba(70,133,197,.08); }

/* ── Catalogue ───────────────────────────────────────────────────────────── */
.cat-tools { margin-top: clamp(44px, 5vw, 64px); }

.cat-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.cat-search { position: relative; flex: 1 1 250px; min-width: 200px; }
.cat-search svg {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--placeholder); pointer-events: none;
}
.cat-search input {
  width: 100%; padding: 12px 18px 12px 44px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-pill); font-size: 15px; font-weight: 300;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.cat-search input::placeholder { color: var(--placeholder); }
.cat-search input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(70, 133, 197, .14);
}

.cat-bar select {
  padding: 12px 38px 12px 18px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%234A6C96' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E") no-repeat right 16px center/11px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 14px; font-weight: 400; color: var(--navy);
  appearance: none; cursor: pointer;
  transition: border-color .18s var(--ease);
}
.cat-bar select:hover { border-color: var(--border-btn); }
.cat-bar select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(70, 133, 197, .14); }

.cat-status {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 26px;
  font-size: 14px; color: var(--ink-soft);
}
.cat-count b { color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }

.src-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 500;
}
.src-pill .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.src-pill--live      { background: #E7F7F5; color: #167F78; }
.src-pill--live .dot { background: var(--teal); animation: pulse-soft 2s ease-in-out infinite; }
.src-pill--fallback  { background: #FDF3E3; color: #8A5B00; }
.src-pill--fallback .dot { background: var(--sev-1); }
.src-pill--loading   { background: var(--wash); color: var(--ink-faint); }
.src-pill--loading .dot { background: var(--ink-faint); animation: pulse-soft 1.2s ease-in-out infinite; }

.reset-filters {
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--wash); color: var(--navy);
  font-size: 13px; font-weight: 500;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.reset-filters:hover { background: var(--blue); color: #fff; }

.cat-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.cat-more-row { display: flex; justify-content: center; margin-top: 30px; }
.cat-more-row button[hidden] { display: none; }

/* Vitrine d'accueil : une rangée fixe de trois, pour que le bloc garde la même
   silhouette quel que soit le nombre d'appareils chargés. */
.cat-grid--teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat-teaser-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 22px; margin-top: 32px;
  font-size: 14px; color: var(--ink-soft);
}

/* Rail de la vitrine — voir le bloc mobile en fin de feuille, qui l'active.
   Au-dessus du point de rupture la vitrine reste une grille et les deux boutons
   n'existent pas : le conteneur est alors purement transparent. */
.cat-rail { position: relative; }
.cat-rail__nav {
  position: absolute; top: 50%; z-index: 3;
  display: none; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--navy);
  box-shadow: var(--shadow-lift);
  transform: translateY(-50%);
}
.cat-rail__nav svg { width: 20px; height: 20px; }
.cat-rail__nav--prev { left: 6px; }
.cat-rail__nav--next { right: 6px; }
/* Plus spécifique que le `display: grid` du bloc mobile : c'est `hidden` qui
   tranche quand le rail est en butée, où que la règle soit écrite. */
.cat-rail__nav[hidden] { display: none; }

.device {
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden; text-align: left;
  background: #fff; border: 0; border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
@media (hover: hover) {
  .device:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
}

/* Bande visuelle — toujours présente, c'est elle qui donne le rythme de rayon. */
.device-thumb {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  height: 180px; padding: 14px;
  background: linear-gradient(180deg, var(--wash-top), var(--wash));
}
.device-thumb--photo { background: var(--white); border-bottom: 1px solid var(--line-soft); }
/* Conteneur en flex, pas en grid : sur un élément de grille centré, un `height`
   ou `max-height` en pourcentage ne se résout pas contre une zone indéfinie —
   l'image reprenait sa taille carrée intrinsèque et débordait de la bande, rognée
   par `overflow: hidden`. En flex, la hauteur du conteneur est définie et les
   `max-*` en pourcentage contiennent réellement le visuel. */
.device-thumb img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  /* Seul `transform` est animé : composé par le GPU, il ne relance pas la mise en
     page — un survol sur `height` ferait ramer une grille de 24 cartes. */
  transition: transform .3s var(--ease);
}
@media (hover: hover) {
  .device:hover .device-thumb img { transform: scale(1.045); }
}

/* Tuile de marque : occupe toute la bande, sans la marge réservée aux photos. */
.device-thumb .device-tile { position: absolute; inset: 0; }
.device-tile {
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--tile-a), var(--tile-b));
}
/* `meet` (et non `slice`) : le monogramme est posé en bas du carré, un recadrage
   le tronquerait dans une bande plus large que haute. */
.device-tile svg { width: 100%; height: 100%; display: block; }

.device-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 18px; }
.device-brand {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.device-model {
  margin: 5px 0 12px;
  font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--navy);
}
.device-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border: 1px solid #D8E7F6; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--wash); color: var(--ink-soft);
}
.badge--type { background: #E4EFFA; color: var(--navy); }
.badge--otc  { background: #E7F7F5; color: #167F78; }
.badge--tier-ultra,
.badge--tier-premium { background: var(--navy); color: #fff; }

.device-desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden;
  margin-bottom: 15px;
  font-size: 13.5px; font-weight: 300; line-height: 1.5; color: var(--ink-soft);
}
.device-feats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 15px; }
.device-feats span {
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--wash); color: var(--ink-soft);
  font-size: 12px; font-weight: 400;
}

.device-foot {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.device-price {
  font-size: 15px; font-weight: 600; color: var(--navy);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* Barre de couverture de sévérité : 5 crans, ceux couverts sont colorés. */
.sev { display: flex; align-items: center; gap: 9px; }
.sev-track { display: flex; gap: 2px; flex: none; }
.sev-track i {
  width: 12px; height: 5px; border-radius: var(--r-pill);
  background: var(--line); transition: background-color .2s var(--ease);
}
.sev-label {
  font-size: 10.5px; line-height: 1.35; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-faint);
}

.cat-empty {
  padding: 60px 26px; text-align: center;
  background: #fff; border: 1px dashed var(--line-pale);
  border-radius: var(--r-sm); color: var(--ink-soft); font-weight: 300;
}
.cat-empty b { display: block; margin-bottom: 8px; color: var(--navy); font-weight: 600; }

/* Squelettes de chargement */
.skeleton { pointer-events: none; }
.skeleton .device-thumb,
.skeleton .sk-line {
  background: linear-gradient(90deg, var(--wash) 25%, var(--line-soft) 50%, var(--wash) 75%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
.sk-line { height: 11px; border-radius: var(--r-pill); margin-bottom: 9px; }
.sk-line.w60 { width: 60%; } .sk-line.w85 { width: 85%; } .sk-line.w40 { width: 40%; }

/* ── Modale détail appareil ──────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 220;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(27, 58, 107, .45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: fade-in .2s var(--ease);
}
.modal[hidden] { display: none; }
.modal-panel {
  position: relative;
  width: min(660px, 100%);
  /* `dvh` doublé de `vh` : sur iOS `100vh` compte la barre d'URL rétractée, le
     bas du panneau passait dessous. Les moteurs qui ignorent `dvh` invalident
     simplement la seconde déclaration et gardent la première. */
  max-height: min(86vh, 780px);
  max-height: min(86dvh, 780px);
  overflow-y: auto;
  background: #fff; border-radius: var(--r-card);
  box-shadow: var(--shadow-pop);
  animation: slide-up .3s var(--ease);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--ink-soft);
  box-shadow: 0 2px 10px rgba(27, 58, 107, .14);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.modal-close:hover { background: var(--navy); color: #fff; }
/* Bloc simple, pas une grille centrée : `.modal-hero-media` porte `height: 100%`
   et ce pourcentage doit se résoudre contre une hauteur définie — centré dans une
   grille, il repartait sur la taille intrinsèque du visuel, qui débordait. */
.modal-hero {
  position: relative; overflow: hidden;
  height: 240px;
  background: linear-gradient(180deg, var(--wash-top), var(--wash));
}
.modal-hero-media {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; padding: 22px;
}
.modal-hero-media--photo { background: var(--white); }
.modal-hero-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.modal-hero-media .device-tile { position: absolute; inset: 0; }

/* Crédit du visuel, posé sur le hero — discret mais toujours lisible. */
.modal-imgsrc {
  position: absolute; right: 14px; bottom: 12px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .82);
  font-size: 11px; letter-spacing: .04em; color: var(--ink-faint);
}
.modal-body { padding: 28px 32px 32px; }
.modal-body h3 { margin: 6px 0 14px; font-size: 24px; font-weight: 600; color: var(--blue); }
.modal-body .desc { font-size: 15px; font-weight: 300; color: var(--ink-soft); }

.spec {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 152px), 1fr));
  margin: 24px 0 0;
}
.spec div { padding: 14px 16px; background: var(--wash); border-radius: var(--r-field); }
.spec dt {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint);
}
.spec dd {
  margin: 5px 0 0;
  font-size: 15px; font-weight: 500; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.modal-body .device-feats { margin-top: 20px; }
.modal-src {
  display: block; margin-top: 20px;
  font-size: 12.5px; color: var(--ink-faint); word-break: break-all;
}

/* ── Assistant : la carte de conversation ────────────────────────────────── */
.chat-card {
  background: var(--white); border-radius: var(--r-card);
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-card);
}
.bubble { font-size: 15px; padding: 12px 18px; }
.bubble--user {
  align-self: flex-end; max-width: 76%;
  background: var(--blue); color: #fff;
  border-radius: 18px 18px 4px 18px;
}
.bubble--bot {
  align-self: flex-start; max-width: 84%;
  background: var(--wash); color: var(--navy); font-weight: 300;
  border-radius: 18px 18px 18px 4px;
}
/* Le composeur n'est pas un décor : il ouvre la vraie fenêtre de discussion. */
.composer {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--placeholder); font-size: 15px; font-weight: 300; text-align: left;
  transition: border-color .2s var(--ease);
}
.composer:hover { border-color: var(--border-btn); }
.composer .send {
  margin-left: auto; flex: none;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: #fff;
}
.composer .send svg { width: 16px; height: 16px; }

/* ── Clôture ─────────────────────────────────────────────────────────────── */
.closing {
  padding: clamp(48px, 6vw, 64px) var(--gutter);
  background: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.closing .h2 { font-size: clamp(26px, 1.35rem + 1.4vw, 34px); }
.closing .lead { max-width: 560px; }
.closing .btn-row { justify-content: center; padding-top: 8px; }

/* ── Pied de page ────────────────────────────────────────────────────────── */
.site-foot {
  padding: 44px var(--gutter) 32px;
  background: var(--navy); color: rgba(255, 255, 255, .78);
  font-weight: 300;
}
.site-foot a { color: rgba(255, 255, 255, .78); }
.site-foot a:hover { color: #fff; }

.foot-grid {
  display: grid; gap: 38px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.foot-brand .logos { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
/* Le logo n'est jamais recoloré ni recadré : sur fond marine on le pose sur une
   pastille claire plutôt que de l'inverser. */
.foot-brand .mark {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; background: #fff; flex: none;
}
.foot-brand .mark img { height: 30px; width: auto; }
.foot-brand .brand-sub { font-size: 18px; font-weight: 300; color: rgba(255, 255, 255, .9); }
.foot-brand p { font-size: 14px; max-width: 34ch; color: rgba(255, 255, 255, .72); }

.foot-grid h4 {
  margin-bottom: 14px; color: #fff;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
}
.foot-grid ul { margin: 0; padding: 0; list-style: none; }
.foot-grid li { margin-bottom: 9px; font-size: 14px; }
.foot-grid address { font-style: normal; font-size: 14px; line-height: 1.75; }

.foot-legal {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  padding-top: 22px; font-size: 12.5px; color: rgba(255, 255, 255, .55);
}

/* ── Chatbot flottant ────────────────────────────────────────────────────── */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--blue); color: #fff;
  box-shadow: 0 14px 30px -8px rgba(27, 58, 107, .5);
  transition: background-color .2s var(--ease), transform .25s var(--ease);
}
@media (hover: hover) {
  .chat-fab:hover { background: var(--blue-deep); transform: scale(1.05); }
}
.chat-fab svg { width: 25px; height: 25px; }
.chat-fab .ic-close { display: none; }
.chat-fab[aria-expanded='true'] .ic-open  { display: none; }
.chat-fab[aria-expanded='true'] .ic-close { display: block; }
.chat-fab::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid var(--blue);
  animation: ping 2.6s var(--ease) infinite;
}
.chat-fab[aria-expanded='true']::after,
.chat-fab.is-engaged::after { display: none; }

.chat-panel {
  position: fixed; right: 22px; bottom: 94px; z-index: 200;
  display: flex; flex-direction: column;
  width: min(392px, calc(100vw - 44px));
  height: min(568px, calc(100vh - 132px));
  height: min(568px, calc(100dvh - 132px));
  background: #fff; border-radius: var(--r-card);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: slide-up .28s var(--ease);
}
.chat-panel[hidden] { display: none; }

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px;
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  color: #fff;
}
.chat-head .mark {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%; background: #fff;
}
.chat-head .mark img { height: 24px; width: auto; }
.chat-head .who { flex: 1; line-height: 1.24; }
.chat-head .who b { display: block; font-size: 15px; font-weight: 600; }
.chat-head .who span {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, .82);
}
.chat-head .who i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #B8F1EC; animation: pulse-soft 2s ease-in-out infinite;
}
.chat-head button { color: rgba(255, 255, 255, .82); padding: 4px; border-radius: 8px; }
.chat-head button:hover { color: #fff; }

.chat-log {
  flex: 1; overflow-y: auto;
  padding: 20px 18px;
  background: linear-gradient(180deg, var(--wash-top), var(--wash));
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin; scrollbar-color: var(--line-pale) transparent;
}
.chat-log::-webkit-scrollbar { width: 7px; }
.chat-log::-webkit-scrollbar-thumb { background: var(--line-pale); border-radius: 4px; }

.msg {
  max-width: 86%;
  padding: 11px 16px;
  font-size: 14.5px; font-weight: 300; line-height: 1.55;
  border-radius: 18px;
  animation: msg-appear .28s var(--ease);
  overflow-wrap: anywhere;
}
.msg--bot {
  align-self: flex-start;
  background: #fff; color: var(--navy);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(27, 58, 107, .07);
}
.msg--user {
  align-self: flex-end;
  background: var(--blue); color: #fff;
  border-bottom-right-radius: 4px;
}
.msg--error {
  align-self: flex-start;
  background: #FDECEC; color: #92211E;
  border: 1px solid #F5C6C4; border-bottom-left-radius: 4px;
}
.msg p { margin: 0 0 .55em; }
.msg p:last-child { margin-bottom: 0; }
.msg ul { margin: .3em 0 .55em; padding-left: 1.15em; }
.msg li { margin-bottom: .22em; }
.msg strong { font-weight: 600; }
.msg--bot strong { color: var(--blue); }
/* Les comparatifs d'appareils sortent en tableau : la bulle passe pleine largeur
   et le tableau défile plutôt que de casser les colonnes en plein mot. */
.msg:has(table) { max-width: 100%; }
.msg .tablewrap { margin: .5em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.msg table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.msg th, .msg td {
  padding: 7px 10px; border: 1px solid var(--line);
  text-align: left; white-space: nowrap;
}
.msg th { background: var(--wash); color: var(--navy); font-weight: 600; }

.typing { display: inline-flex; gap: 4px; padding: 3px 0; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-btn);
  animation: dot-bounce 1.3s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }

.chat-quick {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 12px 18px 0;
  background: var(--wash);
}
.chat-quick button {
  padding: 8px 14px; border-radius: var(--r-pill);
  background: #fff; color: var(--navy);
  border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 400; text-align: left;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.chat-quick button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.chat-form {
  display: flex; gap: 9px; align-items: flex-end;
  padding: 14px 16px;
  background: #fff; border-top: 1px solid var(--line-soft);
}
.chat-form textarea {
  flex: 1; max-height: 108px;
  padding: 11px 16px;
  background: var(--wash);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 300; line-height: 1.45;
  resize: none; overflow-y: auto;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.chat-form textarea:focus {
  outline: none; background: #fff; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(70, 133, 197, .14);
}
.chat-send {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  background: var(--blue); color: #fff; border-radius: 50%;
  transition: background-color .2s var(--ease), opacity .2s var(--ease);
}
.chat-send:hover:not(:disabled) { background: var(--blue-deep); }
.chat-send:disabled { opacity: .4; cursor: not-allowed; }
.chat-send svg { width: 18px; height: 18px; }

.chat-note {
  padding: 0 16px 12px;
  background: #fff;
  font-size: 11px; line-height: 1.4; color: var(--ink-faint); text-align: center;
}

@media (max-width: 520px) {
  .chat-panel {
    right: 10px; left: 10px; bottom: 88px;
    width: auto;
    height: min(560px, calc(100vh - 116px));
    height: min(560px, calc(100dvh - 116px));
  }
  .chat-fab { right: 16px; bottom: 16px; }
}

/* ── Grands écrans ───────────────────────────────────────────────────────── */
/* Le contenu étant plafonné à --content-max, la colonne gauche du hero fait
   ~815px et la droite ~737px : à texte et dessin inchangés, elles restent aux
   trois quarts vides. On remplit plutôt que d'étaler.
   Progressions continues en `min(plafond, valeur_actuelle + (100vw - 1500px)*k)`
   et non paliers secs : la valeur au seuil est exactement celle d'avant, rien
   ne saute quand on élargit la fenêtre, et rien ne bouge sous 1500px. */
@media (min-width: 1500px) {
  .hero__grid, .page-hero__grid { gap: min(64px, calc(48px + (100vw - 1500px) * .04)); }

  .hero__title { font-size: min(64px, calc(56px + (100vw - 1500px) * .02)); }
  .hero__sub {
    font-size: min(20px, calc(19px + (100vw - 1500px) * .0025));
    max-width: min(640px, calc(530px + (100vw - 1500px) * .28));
  }
  .hero__art {
    --ring: min(480px, calc(430px + (100vw - 1500px) * .125));
    min-height: var(--ring);
  }
  .hero__art > svg { max-width: min(640px, calc(560px + (100vw - 1500px) * .2)); }

  .page-hero h1 { font-size: min(52px, calc(46px + (100vw - 1500px) * .015)); }
  .page-hero .lead,
  .page-hero p:not(.lead):not(.eyebrow) { max-width: min(620px, calc(560px + (100vw - 1500px) * .15)); }
  .page-hero__art {
    --ring: min(370px, calc(330px + (100vw - 1500px) * .1));
    min-height: min(380px, calc(340px + (100vw - 1500px) * .1));
  }
  .page-hero__art > svg { max-width: min(520px, calc(460px + (100vw - 1500px) * .15)); }

  /* Les blocs centrés paraissent étriqués au milieu de 1600px. */
  .section-head .lead { max-width: min(720px, calc(640px + (100vw - 1500px) * .2)); }
  .closing .lead { max-width: min(640px, calc(560px + (100vw - 1500px) * .2)); }
}

/* ── Bande tablette ──────────────────────────────────────────────────────── */
/* Juste au-dessus du point d'effondrement, la colonne de droite tombe à ~470px :
   le dessin suit, mais la réserve de hauteur et les halos, eux, ne bougeaient
   pas — d'où une poche de vide sous l'illustration. On resserre les deux. */
@media (min-width: 1025px) and (max-width: 1240px) {
  .hero__art { --ring: 370px; min-height: 370px; }
  .page-hero__art { --ring: 290px; min-height: 300px; }
  .split__art { --ring: 290px; min-height: 290px; }
}

/* ── Écrans étroits ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid, .page-hero__grid,
  .split, .split--even,
  .products__grid,
  .consensus { grid-template-columns: 1fr; }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: 1fr; }
  .cat-grid--teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* En colonne unique, le tracé reprend toute la largeur et se range sous le
     texte, aligné à gauche comme lui. */
  .proof { width: 100%; margin-left: 0; }
  /* En colonne unique, l'illustration se cale sur sa propre hauteur : la
     réserve n'a plus de colonne voisine à équilibrer. Les halos gardent en
     revanche leur diamètre — c'est le rendu actuel, validé. */
  .hero__art { min-height: 0; padding: 20px 0; }
  .page-hero__art, .split__art { min-height: 0; padding: 16px 0; }
  .foot-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
}
@media (max-width: 680px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 26px; }
  .steps { grid-template-columns: 1fr; }

  /* ── Vitrine en rail horizontal ──────────────────────────────────────── */
  /* Six fiches empilées font près de 3 000px de colonne. En rail, elles se
     parcourent au doigt et la section retrouve la hauteur d'une seule carte. */
  .cat-grid--teaser {
    display: flex; grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Sans quoi le balayage en butée déclenche le geste « page précédente ». */
    overscroll-behavior-x: contain;
    /* La barre de défilement est masquée : les deux chevrons portent déjà
       l'indication, et sur mobile elle ne sert qu'à voler 8px de carte. */
    scrollbar-width: none;
    /* Le rail sort de la gouttière pour défiler d'un bord à l'autre, son padding
       la restitue : la première carte reste alignée sur le texte au-dessus, la
       dernière ne colle pas au bord. `--pad-x` et non `--gutter` : à cette
       largeur les deux sont égaux, mais `--pad-x` n'a pas de pourcentage à
       résoudre contre un bloc conteneur différent de celui de la section.
       Le padding vertical laisse passer l'ombre des cartes. */
    margin-inline: calc(var(--pad-x) * -1);
    padding: 6px var(--pad-x) 14px;
    /* Indispensable, et pas un doublon du padding : l'ancrage se cale sur le
       « snapport », qui ignore le padding du conteneur. Sans lui la première
       carte s'ancrait 20px trop à gauche — elle collait au bord de l'écran et
       le rail se reposait à scrollLeft=20, ce qui allumait le chevron
       « précédent » alors qu'on était au début. */
    scroll-padding-inline: var(--pad-x);
  }
  .cat-grid--teaser::-webkit-scrollbar { display: none; }
  /* Une carte occupe un peu plus des trois quarts : le quart restant montre la
     suivante, ce qui dit « ça continue » avant même le chevron. */
  .cat-grid--teaser > * { flex: 0 0 min(78%, 280px); scroll-snap-align: start; }
  /* Le message « aucun appareil » n'est pas une fiche : il prend toute la largeur
     et ne s'aligne sur rien. */
  .cat-grid--teaser > .cat-empty { flex: 1 1 100%; scroll-snap-align: none; }

  .cat-rail__nav { display: grid; }

  /* ── Fiches appareil resserrées ──────────────────────────────────────── */
  /* Une fiche faisait 454px de haut pour 335 de large : on voyait moins de deux
     appareils par écran, et la page /catalogue dépassait 14 000px. Rien n'est
     retiré, tout est resserré — la fiche garde sa silhouette. */
  .device-thumb { height: 130px; padding: 12px; }
  .device-body { padding: 16px 16px 14px; }
  .device-model { margin: 3px 0 9px; }
  .device-badges { margin-bottom: 9px; }
  /* Deux lignes suffisent à donner le ton d'une description ; la fiche complète
     est à un appui de là, dans la modale. */
  .device-desc { -webkit-line-clamp: 2; margin-bottom: 11px; }
  .device-feats { margin-bottom: 11px; }
  /* Prix et couverture côte à côte plutôt qu'empilés : le pied passe de 63 à
     ~30px. Le libellé de sévérité est trop long pour tenir sur la ligne du
     prix, il se replie sous elle — `.sev-track` est déjà `flex: none`, seuls
     les mots bougent. */
  .device-foot {
    flex-direction: row; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 6px 12px;
    padding-top: 11px;
  }

  .rule { flex-direction: column; align-items: flex-start; gap: 14px; }
  .rule__art { width: 130px; }
  .consensus { padding: 30px 26px; }
  .product { padding: 30px 24px 26px; }
}

/* ── Téléphones ──────────────────────────────────────────────────────────── */
/* Aucun palier n'existait sous 680px. Seuil à 559px, mesuré et non choisi : les
   deux boutons du hero occupent 506px ensemble, ils tiennent sur une ligne dès
   560px de fenêtre et passent à la ligne en dessous. */
@media (max-width: 559px) {
  /* Une fois à la ligne ils se retrouvent de largeurs inégales, calés à gauche :
     on les empile franchement plutôt que de laisser le retour les dépareiller.
     Largeur plafonnée : sur un écran de 540px, deux boutons pleine largeur
     tiendraient de la barre d'outils plus que de l'appel à l'action. */
  .hero__actions, .page-hero .btn-row { flex-direction: column; align-items: flex-start; }
  .closing .btn-row { flex-direction: column; align-items: center; }
  .hero__actions .btn, .page-hero .btn-row .btn, .closing .btn-row .btn {
    width: 100%; max-width: 420px;
  }

  /* Pas de retaille du titre : mesuré à 320px, le `clamp` le sort déjà à ~40px
     et « l'audiologie. », le mot le plus long, tient dans la colonne. Seul le
     garde-fou reste, pour une traduction plus longue à venir. */
  .hero__title, .page-hero h1 { overflow-wrap: break-word; }

  .section-head { margin-bottom: 30px; }
  /* `space-between` sur deux éléments qui passent à la ligne rejette le second
     à droite, sans rapport avec la colonne de texte. */
  .foot-legal { justify-content: flex-start; }
}

/* ── Pointeur grossier : cibles d'au moins 44px ──────────────────────────── */
@media (pointer: coarse) {
  /* La pilule de langue garde sa taille dessinée ; c'est sa zone de frappe qui
     s'étend, par un pseudo-élément débordant — l'agrandir vraiment déformerait
     le verrou de marque à côté. */
  .langpill button { position: relative; }
  .langpill button::after { content: ''; position: absolute; inset: -9px -4px; }

  .nav-toggle { padding: 11px; }
  .chat-head button { padding: 10px; }
  .modal-close { width: 44px; height: 44px; }
  .reset-filters { padding: 11px 16px; }
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes msg-appear{ from { opacity: 0; transform: translateY(7px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dot-bounce{ 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes pulse-soft{ 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes shimmer   { from { background-position: 200% 0; } to { background-position: -20% 0; } }
@keyframes ping {
  0%        { transform: scale(1);   opacity: .55; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Révélation au défilement — orchestrée par main.js via .reveal / .is-in */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .chat-fab::after { display: none; }
}
