/* ==========================================================================
   NATIONAL PLUS COAT — Feuille de style principale / Main stylesheet
   Palette dérivée du logo / Palette derived from the logo
   ========================================================================== */

:root {
  /* Marque / Brand */
  --navy:        #0B3C7D;
  --navy-dark:   #072a58;
  --blue:        #0F62B0;
  --blue-light:  #2E8FE0;
  --blue-pale:   #EAF3FC;
  --red:         #E11B22;
  --yellow:      #FBBF0B;
  --teal:        #23BFAE;

  /* Neutres / Neutrals */
  --ink:         #16202E;
  --body:        #4A5768;
  --muted:       #78889B;
  --line:        #E2E8F0;
  --surface:     #FFFFFF;
  --surface-alt: #F5F8FC;
  --surface-dk:  #0A2247;

  --radius:      14px;
  --radius-lg:   24px;
  --shadow-sm:   0 1px 2px rgba(11,60,125,.06), 0 2px 8px rgba(11,60,125,.06);
  --shadow:      0 4px 12px rgba(11,60,125,.08), 0 12px 32px rgba(11,60,125,.10);
  --shadow-lg:   0 18px 48px rgba(11,60,125,.16);

  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display:'Barlow', 'Inter', sans-serif;

  --wrap:        1240px;
  --header-h:    76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1em; }

/* ---------- Utilitaires / Utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--surface-alt); }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--body); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.eyebrow--light { color: #9CC8F5; background: rgba(255,255,255,.10); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Boutons / Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700; font-size: .96rem;
  border: 2px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(11,60,125,.28); }
.btn--primary:hover { background: var(--blue); color: #fff; box-shadow: 0 10px 26px rgba(15,98,176,.34); }
.btn--accent { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(225,27,34,.28); }
.btn--accent:hover { background: #c2151b; color: #fff; }
.btn--gold { background: var(--yellow); color: #3a2c00; box-shadow: 0 6px 18px rgba(251,191,11,.35); }
.btn--gold:hover { background: #e8ad00; color: #3a2c00; }
.btn--ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn--onDark { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--onDark:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--sm { padding: 9px 18px; font-size: .86rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- En-tête / Header ---------- */
.topbar {
  background: var(--navy-dark); color: #C6DCF5;
  font-size: .82rem; padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #C6DCF5; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 20px; align-items: center; list-style: none; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 22px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; padding-right: 10px; flex: none; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b {
  font-family: var(--font-display); font-size: 1.02rem;
  color: var(--navy); letter-spacing: .01em; font-weight: 800;
  white-space: nowrap;
}
.brand-text span {
  font-size: .64rem; color: var(--muted); letter-spacing: .06em;
  text-transform: uppercase; margin-top: 3px;
}
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* Menu principal — aligné à droite, juste avant le sélecteur de langue */
.header-nav { flex: 0 1 auto; display: flex; justify-content: flex-end; min-width: 0; }
.nav { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: flex; align-items: center;
  padding: 9px 12px; border-radius: 9px;
  font-weight: 600; font-size: .92rem; color: var(--ink);
  white-space: nowrap;
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link:focus-visible,
.nav-link.is-active { background: var(--blue-pale); color: var(--navy); }

/* Flèche des entrées à sous-menu */
.has-sub > .nav-link::after {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); opacity: .55;
}
/* Bouton d'ouverture du sous-menu (mobile uniquement) */
.nav-toggle {
  display: none; border: 0; background: transparent; padding: 0 14px 0 0; color: var(--navy);
}
.caret {
  display: inline-block; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-bottom: 3px;
}

/* Panneau déroulant */
.subnav {
  position: absolute; top: calc(100% + 10px); left: -6px; min-width: 244px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--yellow);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px; list-style: none; z-index: 40;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
/* zone tampon pour que le survol ne se coupe pas entre le lien et le panneau */
.subnav::before {
  content: ''; position: absolute; top: -13px; left: 0; right: 0; height: 13px;
}
.nav-item:hover > .subnav,
.nav-item:focus-within > .subnav,
.nav-item.is-open > .subnav {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.subnav a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: .9rem; color: var(--ink); font-weight: 500;
}
.subnav a:hover { background: var(--blue-pale); color: var(--navy); }
/* Les derniers menus s'ouvrent vers la gauche pour ne pas déborder */
.nav-item:nth-last-child(-n+2) > .subnav { left: auto; right: -6px; }

.burger {
  display: none; border: 1px solid var(--line); background: #fff;
  width: 44px; height: 44px; border-radius: 11px; padding: 0;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy);
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* Sélecteur de langue / Language switch */
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 100px;
  overflow: hidden; background: #fff;
}
.lang button {
  border: 0; background: transparent; padding: 7px 13px;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  color: var(--muted); letter-spacing: .04em;
}
.lang button.is-active { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #072a58 0%, #0B3C7D 42%, #0F62B0 100%);
  color: #fff; padding: 96px 0 110px;
}
.hero::after {
  content: ''; position: absolute; right: -14%; top: -22%;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, rgba(46,143,224,.55), rgba(35,191,174,.10) 58%, transparent 70%);
  pointer-events: none;
}
.hero::before {
  content: ''; position: absolute; left: -10%; bottom: -34%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,11,.18), transparent 66%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { color: #CBE0F7; font-size: 1.13rem; max-width: 50ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div b {
  display: block; font-family: var(--font-display); font-size: 2rem; color: #fff; font-weight: 800; line-height: 1;
}
.hero-stats div span { font-size: .84rem; color: #9CC8F5; }

.hero-visual { position: relative; padding-bottom: 34px; }
.hero-logo {
  background: rgba(255,255,255,.96); border-radius: var(--radius-lg);
  padding: 38px 30px; box-shadow: var(--shadow-lg); text-align: center;
}
.hero-logo img { margin: 0 auto; max-height: 300px; width: auto; }
.swatch-row { display: flex; gap: 8px; margin-top: 24px; justify-content: center; }
.swatch-row i { width: 40px; height: 40px; border-radius: 10px; display: block; box-shadow: inset 0 -3px 8px rgba(0,0,0,.12); }
.hero-badge {
  position: absolute; left: -22px; bottom: 0;
  background: #fff; border-radius: var(--radius); padding: 13px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 11px;
}
.hero-badge b { font-family: var(--font-display); color: var(--navy); font-size: 1.02rem; display: block; line-height: 1.2; }
.hero-badge span { font-size: .76rem; color: var(--muted); }
.hero-badge i {
  width: 40px; height: 40px; border-radius: 11px; background: var(--teal);
  display: grid; place-items: center; color: #fff; font-size: 1.1rem; font-style: normal;
}

/* ---------- Bandeau confiance / Trust strip ---------- */
.trust { background: var(--surface-alt); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust .wrap { display: flex; gap: 30px; justify-content: space-between; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item i {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-style: normal; font-size: 1.15rem; color: #fff; flex: none;
}
.trust-item b { display: block; font-family: var(--font-display); color: var(--ink); font-size: .95rem; }
.trust-item span { font-size: .82rem; color: var(--muted); }

/* ---------- Cartes / Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFE0F2; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .94rem; margin-bottom: 0; }
.card-icon {
  min-width: 52px; width: fit-content; height: 52px; padding: 0 14px;
  border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.2rem; margin-bottom: 18px; color: #fff; white-space: nowrap;
}

/* Icônes SVG / SVG icons */
.ico {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.card-icon .ico { width: 26px; height: 26px; }
.trust-item i .ico, .hero-badge i .ico { width: 21px; height: 21px; }

/* Produits / Products */
.product-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.product-thumb { height: 168px; position: relative; display: grid; place-items: center; }
.product-thumb span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  color: rgba(255,255,255,.92); letter-spacing: .1em; text-transform: uppercase;
}
.product-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.product-body p { flex: 1; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
  background: var(--blue-pale); color: var(--blue); margin-bottom: 10px;
}
.tag--teal { background: #DFF7F3; color: #0E8677; }
.tag--gold { background: #FFF4D6; color: #9A7100; }
.tag--red  { background: #FDE7E8; color: #B3151B; }

/* Nuancier / Colour chart */
/* Chaque famille compte 10 teintes : 5 colonnes donnent deux lignes
   régulières, toutes les cases exactement à la même hauteur. */
.palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.chip {
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.chip i { display: block; height: 104px; flex: none; }
.chip b {
  display: block; font-size: .84rem; line-height: 1.25;
  padding: 11px 12px 3px; color: var(--ink); font-family: var(--font-display);
  min-height: 2.9em;
}
.chip span {
  display: block; font-size: .71rem; padding: 0 12px 11px; margin-top: auto;
  color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em;
}

@media (max-width: 1180px) { .palette { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .palette { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px)  { .palette { grid-template-columns: repeat(2, 1fr); } .chip i { height: 88px; } }


/* ---------- Fiches produit / Product entries ---------- */
.product-photo {
  background: linear-gradient(160deg, #F7FAFD, #E9F1F9);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; display: grid; place-items: center;
}
.product-photo img { width: 100%; max-width: 380px; height: auto; mix-blend-mode: multiply; }

.product-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.product-row--flip .product-photo { order: 2; }

.specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.spec {
  font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px; background: var(--blue-pale); color: var(--navy);
}
.spec--teal { background: #DFF7F3; color: #0E8677; }
.spec--gold { background: #FFF4D6; color: #9A7100; }
.spec--red  { background: #FDE7E8; color: #B3151B; }

.sizes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.size {
  min-width: 62px; text-align: center; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: .95rem;
}
.size small { display: block; font-size: .64rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; }

/* Vignette produit dans les grilles */
.product-card .product-photo {
  border: 0; border-radius: 0; padding: 20px 20px 4px; min-height: 230px;
}
.product-card .product-photo img { max-width: 210px; }

@media (max-width: 880px) {
  .product-row { grid-template-columns: 1fr; gap: 28px; }
  .product-row--flip .product-photo { order: 0; }
}

/* ---------- Calculateur / Calculator ---------- */
.calc {
  background: #fff; border-radius: var(--radius-lg); padding: 34px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(46,143,224,.16);
}
.calc-result {
  margin-top: 20px; background: var(--blue-pale); border-radius: 12px; padding: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.calc-result b { font-family: var(--font-display); font-size: 1.9rem; color: var(--navy); line-height: 1; }
.calc-result small { display: block; color: var(--muted); font-size: .82rem; }

/* ---------- Bloc sombre / Dark block ---------- */
.dark { background: var(--surface-dk); color: #C7DCF3; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .section-head p { color: #9CC8F5; }
.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.dark .card p { color: #9CC8F5; }

/* ---------- Étapes / Steps ---------- */
.steps { counter-reset: s; display: grid; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step::before {
  counter-increment: s; content: counter(s);
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
}
.dark .step::before { background: var(--yellow); color: #3a2c00; }
.step h4 { margin-bottom: 4px; font-size: 1.06rem; }
.step p { margin: 0; font-size: .93rem; color: var(--muted); }
.dark .step p { color: #9CC8F5; }

/* ---------- Vidéos / Videos ---------- */
.video-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.video-thumb {
  position: relative; aspect-ratio: 16/9; display: grid; place-items: center;
  background: linear-gradient(140deg, #0B3C7D, #2E8FE0);
}
.video-thumb .play {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.94);
  display: grid; place-items: center; color: var(--navy); font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.28); transition: transform .2s;
}
.video-card:hover .play { transform: scale(1.1); }
.video-thumb .dur {
  position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.72);
  color: #fff; font-size: .72rem; padding: 3px 8px; border-radius: 6px; font-variant-numeric: tabular-nums;
}
.video-thumb .earn {
  position: absolute; left: 10px; top: 10px; background: var(--yellow);
  color: #3a2c00; font-size: .7rem; font-weight: 800; padding: 4px 9px; border-radius: 100px;
}
.video-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.video-body h4 { font-size: 1rem; margin-bottom: 6px; line-height: 1.35; }
.video-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 12px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: .7rem; font-weight: 800; color: #fff; font-family: var(--font-display); flex: none;
}

/* Lecteur / Player */
.player { background: #06182f; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.player-stage {
  position: relative; aspect-ratio: 16/9;
  background: linear-gradient(140deg, #0B3C7D, #23BFAE);
  display: grid; place-items: center; text-align: center; color: #fff; padding: 20px;
}
.player-stage .big-play {
  width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.95);
  color: var(--navy); display: grid; place-items: center; font-size: 1.5rem; border: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .2s;
}
.player-stage .big-play:hover { transform: scale(1.08); }
.player-progress { height: 5px; background: rgba(255,255,255,.16); }
.player-progress i { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .3s linear; }
.player-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px; color: #C7DCF3; font-size: .84rem; flex-wrap: wrap;
}
.player-bar b { color: #fff; }
.earn-pill {
  background: rgba(251,191,11,.16); color: var(--yellow); border: 1px solid rgba(251,191,11,.4);
  padding: 5px 12px; border-radius: 100px; font-weight: 700; font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Tableau de bord / Dashboard ---------- */
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.stat-card small { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stat-card b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--navy); line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-card span { font-size: .8rem; color: var(--teal); font-weight: 600; }
/* Un compteur animé placé dans un <b> hérite du style du <b>, pas du <span> */
.stat-card b span, .hero-stats div b span { font: inherit; color: inherit; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
th {
  text-align: left; padding: 14px 18px; background: var(--surface-alt);
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line);
}
td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--body); }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.pill--ok { background: #DFF7F3; color: #0E8677; }
.pill--wait { background: #FFF4D6; color: #9A7100; }

/* ---------- Accordéon / Accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border-bottom: 0; }
.acc summary {
  padding: 18px 22px; font-family: var(--font-display); font-weight: 700;
  color: var(--ink); cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; gap: 14px; align-items: center;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; color: var(--blue); font-size: 1.3rem; font-weight: 400; }
.acc details[open] summary::after { content: '−'; }
.acc .acc-body { padding: 0 22px 20px; color: var(--muted); font-size: .94rem; }

/* ---------- Bandeau CTA / CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg); padding: 52px 48px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #CBE0F7; margin: 0; max-width: 52ch; }

/* ---------- Pied de page / Footer ---------- */
.site-footer { background: var(--surface-dk); color: #9CC8F5; padding: 66px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h5 {
  color: #fff; font-family: var(--font-display); font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #9CC8F5; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand img { height: 62px; filter: brightness(0) invert(1); opacity: .95; }
.footer-about p { font-size: .92rem; color: #7FA9D6; margin-top: 16px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #fff; font-size: .9rem;
}
.social a:hover { background: var(--blue); }
.footer-legal {
  margin-top: 48px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
}
.footer-legal ul {
  display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none;
}
.footer-legal a { font-size: .84rem; color: #7FA9D6; }
.footer-legal a:hover { color: #fff; }

.footer-bottom {
  margin-top: 22px; border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .84rem; color: #6E96C4;
}

/* ---------- Bannière de page / Page banner ---------- */
.page-head {
  background: linear-gradient(140deg, #072a58, #0F62B0);
  color: #fff; padding: 66px 0 58px; position: relative; overflow: hidden;
}
.page-head::after {
  content: ''; position: absolute; right: -8%; top: -60%; width: 480px; height: 480px;
  border-radius: 50%; background: radial-gradient(circle, rgba(35,191,174,.30), transparent 68%);
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { color: #fff; margin-bottom: 12px; }
.page-head p { color: #CBE0F7; max-width: 62ch; font-size: 1.06rem; margin: 0; }
.crumbs { font-size: .84rem; color: #9CC8F5; margin-bottom: 14px; }
.crumbs a { color: #9CC8F5; }
.crumbs a:hover { color: #fff; }

/* ---------- Onglets / Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--body);
  padding: 9px 18px; border-radius: 100px; font-weight: 600; font-size: .88rem; transition: all .2s;
}
.tabs button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Divers ---------- */
.note {
  background: #FFF8E6; border: 1px solid #F5DFA0; border-radius: 12px;
  padding: 16px 20px; font-size: .9rem; color: #7A5C00;
}
.note b { color: #5E4700; }
.check { list-style: none; display: grid; gap: 11px; }
.check li { position: relative; padding-left: 30px; font-size: .95rem; }
.check li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: .68rem; font-weight: 800;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---------- Réactif / Responsive ---------- */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Menu replié dès que la barre ne tient plus sur une ligne */
@media (max-width: 1140px) {
  .burger { display: flex; }
  .brand { flex: 1 1 auto; min-width: 0; padding-right: 0; }
  .header-nav {
    display: none;
    position: fixed; inset: auto 0 auto 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .header-nav.is-open { display: block; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 22px; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-link { flex: 1; padding: 15px 8px; font-size: 1rem; border-radius: 0; }
  .has-sub > .nav-link::after { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 48px; padding: 0; }
  .nav-item.is-open > .nav-toggle .caret { transform: rotate(-135deg); margin-top: 4px; }
  .subnav {
    position: static; width: 100%; opacity: 1; visibility: visible; transform: none;
    display: none; background: var(--surface-alt); border: 0; border-radius: 10px;
    box-shadow: none; margin: 0 0 12px; padding: 4px;
  }
  .nav-item:hover > .subnav, .nav-item:focus-within > .subnav { display: none; }
  .nav-item.is-open > .subnav { display: block; }
  .subnav::before { display: none; }
  .nav-item:nth-last-child(-n+2) > .subnav { right: auto; }
}

@media (max-width: 880px) {
  .g3, .g2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 62px 0; }
  .cta-band { padding: 36px 28px; }
  .topbar-links { display: none; }
}
@media (max-width: 560px) {
  .brand { min-width: 0; }
  .brand img { height: 38px; }
  .brand-text b { font-size: .78rem; white-space: nowrap; letter-spacing: 0; }
  .brand-text span { display: none; }
  .lang button { padding: 7px 10px; }
  .g4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 62px 0 76px; }
  .hero-badge { left: 8px; }
  .calc { padding: 24px; }
}

/* Impression */
@media print { .site-header, .site-footer, .topbar { display: none; } }

/* ==========================================================================
   PANNEAU DE DISCUSSION / CHAT PANEL
   Bulle flottante + robot de réponse automatique
   ========================================================================== */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  width: 60px; height: 60px; border-radius: 50%; border: 0;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(11,60,125,.4);
  transition: transform .2s, background .2s;
}
.chat-fab:hover { transform: scale(1.06); background: var(--blue); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .chat-dot {
  position: absolute; top: 4px; right: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal); border: 2px solid #fff;
}
.chat-fab[aria-expanded="true"] .chat-dot { display: none; }

.chat-panel {
  position: fixed; right: 22px; bottom: 94px; z-index: 120;
  width: 372px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 130px);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.chat-panel.is-open { opacity: 1; visibility: visible; transform: none; }

.chat-head {
  background: linear-gradient(130deg, var(--navy), var(--blue));
  color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.chat-head img { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.chat-head b { font-family: var(--font-display); font-size: .98rem; display: block; line-height: 1.2; }
.chat-head .chat-status { font-size: .76rem; color: #C6DCF5; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.chat-head .chat-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: block; }
.chat-head .chat-status.is-off i { background: var(--yellow); }
.chat-close {
  margin-left: auto; background: rgba(255,255,255,.14); border: 0; color: #fff;
  width: 32px; height: 32px; border-radius: 9px; font-size: 1.1rem; line-height: 1;
}
.chat-close:hover { background: rgba(255,255,255,.26); }

.chat-body {
  flex: 1; overflow-y: auto; padding: 18px 16px;
  background: var(--surface-alt); display: flex; flex-direction: column; gap: 12px;
}
.chat-msg { max-width: 86%; font-size: .9rem; line-height: 1.5; }
.chat-msg p { margin: 0 0 .5em; }
.chat-msg p:last-child { margin: 0; }
.chat-msg a { font-weight: 600; }
.chat-msg--bot {
  align-self: flex-start; background: #fff; color: var(--body);
  border: 1px solid var(--line); border-radius: 14px 14px 14px 4px;
  padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.chat-msg--me {
  align-self: flex-end; background: var(--navy); color: #fff;
  border-radius: 14px 14px 4px 14px; padding: 11px 14px;
}
.chat-msg--sys {
  align-self: center; font-size: .76rem; color: var(--muted);
  background: transparent; text-align: center; max-width: 100%;
}
.chat-typing { display: flex; gap: 4px; padding: 14px; }
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: chatBounce 1.1s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatBounce { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; background: var(--surface-alt); }
.chat-quick button {
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  border-radius: 100px; padding: 7px 13px; font-size: .8rem; font-weight: 600;
  transition: background .18s, border-color .18s;
}
.chat-quick button:hover { background: var(--blue-pale); border-color: var(--blue-light); }

.chat-foot {
  border-top: 1px solid var(--line); padding: 12px 14px;
  display: flex; gap: 9px; align-items: center; background: #fff;
}
.chat-foot input {
  flex: 1; border: 1px solid var(--line); border-radius: 100px;
  padding: 11px 16px; font: inherit; font-size: .9rem; color: var(--ink);
}
.chat-foot input:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(46,143,224,.16); }
.chat-send {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--navy); color: #fff; display: grid; place-items: center;
}
.chat-send:hover { background: var(--blue); }
.chat-send svg { width: 19px; height: 19px; }

.chat-note {
  font-size: .7rem; color: var(--muted); text-align: center;
  padding: 0 14px 10px; background: #fff;
}

@media (max-width: 520px) {
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 84px; height: calc(100vh - 120px); }
  .chat-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
@media print { .chat-fab, .chat-panel { display: none !important; } }

/* ==========================================================================
   COMMANDE EN LIGNE / ONLINE ORDERING
   ========================================================================== */
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  display: grid; place-items: center; flex: none;
}
.cart-btn:hover { border-color: var(--navy); background: var(--blue-pale); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  border-radius: 100px; background: var(--red); color: #fff;
  font-size: .68rem; font-weight: 800; display: grid; place-items: center;
  padding: 0 5px; border: 2px solid #fff;
}
.cart-badge[hidden] { display: none; }

/* Compteur du panier dans la barre supérieure */
.cart-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  margin-left: 7px; padding: 0 5px; border-radius: 100px;
  background: var(--red); color: #fff; font-size: .68rem; font-weight: 800;
  vertical-align: 1px;
}
.cart-count[hidden] { display: none; }

/* Ligne produit commandable */
.order-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 18px;
  align-items: center; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.order-item + .order-item { margin-top: 14px; }
.order-item__photo {
  background: linear-gradient(160deg, #F7FAFD, #E9F1F9);
  border-radius: 10px; padding: 8px; display: grid; place-items: center;
}
.order-item__photo img { width: 100%; mix-blend-mode: multiply; }
.order-item h3 { font-size: 1.05rem; margin-bottom: 3px; }
.order-item p { font-size: .84rem; color: var(--muted); margin: 0; }
.order-item__buy { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.order-item__buy select, .order-item__buy input {
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px;
  font: inherit; font-size: .88rem; color: var(--ink); background: #fff;
}
.order-item__buy input { width: 68px; text-align: center; }
.order-price {
  font-family: var(--font-display); font-weight: 800; color: var(--navy);
  font-size: .95rem; min-width: 116px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.order-price small { display: block; font-weight: 600; font-size: .7rem; color: var(--muted); }

/* Panier */
.cart-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow); overflow: hidden;
}
.split--order > aside { position: sticky; top: calc(var(--header-h) + 18px); }
@media (max-width: 1080px) { .split--order > aside { position: static; } }
.cart-card__head {
  background: var(--navy); color: #fff; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.cart-card__head b { font-family: var(--font-display); font-size: 1.02rem; }
.cart-lines { padding: 8px 20px; max-height: 320px; overflow-y: auto; }
.cart-line {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line b { font-size: .92rem; color: var(--ink); font-family: var(--font-display); }
.cart-line span { font-size: .8rem; color: var(--muted); }
.cart-line__price { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; font-size: .9rem; }
.cart-qty { display: flex; align-items: center; gap: 6px; }
.cart-qty button {
  width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-weight: 700; line-height: 1; padding: 0;
}
.cart-qty button:hover { background: var(--blue-pale); }
.cart-qty span { font-size: .85rem; min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-remove { border: 0; background: transparent; color: var(--muted); font-size: .78rem; text-decoration: underline; padding: 0; }
.cart-remove:hover { color: var(--red); }
.cart-total {
  padding: 16px 20px; background: var(--surface-alt); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.cart-total b { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); }
.cart-empty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: .92rem; }

.split--order { grid-template-columns: 1.35fr .65fr; align-items: start; gap: 36px; }
@media (max-width: 1080px) { .split--order { grid-template-columns: 1fr; gap: 30px; } }

.order-ok {
  background: #DFF7F3; border: 1px solid #9FE3D8; color: #0E6558;
  border-radius: var(--radius); padding: 18px 20px; font-size: .94rem;
}
.order-ok b { color: #0A4A40; }

@media (max-width: 880px) {
  .order-item { grid-template-columns: 72px 1fr; }
  .order-item__buy { grid-column: 1 / -1; justify-content: flex-start; }
  .order-price { text-align: left; min-width: 0; }
  .cart-card { position: static; }
}

/* ---------- Choix de la teinte à la commande / Colour picker ---------- */
.color-pick {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 7px 12px 7px 8px; font-size: .86rem; color: var(--ink); font-weight: 600;
  max-width: 190px;
}
.color-pick:hover { border-color: var(--navy); background: var(--blue-pale); }
.color-pick i {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  border: 1px solid rgba(0,0,0,.12); background: repeating-conic-gradient(#E2E8F0 0 25%, #fff 0 50%) 0 0/10px 10px;
}
.color-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.color-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,34,71,.55); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.color-modal.is-open { opacity: 1; visibility: visible; }
.color-modal__box {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 720px;
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg); transform: translateY(12px); transition: transform .2s;
}
.color-modal.is-open .color-modal__box { transform: none; }
.color-modal__head {
  padding: 20px 24px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 16px;
}
.color-modal__head h3 { margin: 0 0 4px; font-size: 1.2rem; }
.color-modal__head p { margin: 0; font-size: .86rem; color: var(--muted); }
.color-modal__close {
  margin-left: auto; border: 1px solid var(--line); background: #fff; color: var(--navy);
  width: 34px; height: 34px; border-radius: 9px; font-size: 1.15rem; line-height: 1; flex: none;
}
.color-modal__close:hover { background: var(--blue-pale); }
.color-modal__tools { padding: 14px 24px; border-bottom: 1px solid var(--line); }
.color-modal__tools input {
  width: 100%; border: 1px solid var(--line); border-radius: 100px;
  padding: 11px 18px; font: inherit; font-size: .92rem;
}
.color-modal__tools input:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(46,143,224,.16); }
.color-fams { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.color-fams button {
  border: 1px solid var(--line); background: #fff; color: var(--body);
  border-radius: 100px; padding: 6px 13px; font-size: .8rem; font-weight: 600;
}
.color-fams button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.color-grid {
  padding: 18px 24px 24px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 12px;
  /* sans min-content, une grille qui défile écrase la hauteur des pastilles
     (elles portent overflow:hidden pour arrondir l'aplat de couleur) */
  grid-auto-rows: min-content;
}
.color-swatch {
  border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
  background: #fff; text-align: left; padding: 0;
  /* un <button> ne grandit pas avec ses enfants sans display:flex */
  display: flex; flex-direction: column; align-items: stretch;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.color-swatch { cursor: pointer; }
.color-swatch:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue-light); }
.color-swatch:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }
.color-swatch.is-active { border-color: var(--navy); border-width: 2px; }
.color-swatch i { display: block; height: 62px; flex: none; }
.color-swatch b { display: block; font-size: .8rem; padding: 8px 10px 1px; color: var(--ink); font-family: var(--font-display); line-height: 1.25; min-height: 2.6em; }
.color-swatch span { display: block; font-size: .68rem; padding: 0 10px 9px; color: var(--muted); font-variant-numeric: tabular-nums; }
.color-none { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: .9rem; padding: 20px 0; }

/* Pastille de teinte dans le panier */
.cart-color { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.cart-color i { width: 13px; height: 13px; border-radius: 4px; border: 1px solid rgba(0,0,0,.14); flex: none; }

/* Le nuancier devient cliquable */
a.chip { display: block; color: inherit; }
a.chip:hover { color: inherit; }

/* ==========================================================================
   DOSEUR DE TEINTES / COLOUR DISPENSER
   ========================================================================== */
.tabs--left { justify-content: flex-start; margin-bottom: 18px; }

.split--dose { grid-template-columns: 1.05fr .95fr; align-items: start; gap: 38px; }
.split--dose > aside { position: sticky; top: calc(var(--header-h) + 18px); }
@media (max-width: 1080px) {
  .split--dose { grid-template-columns: 1fr; gap: 30px; }
  .split--dose > aside { position: static; }
}

.dose-source { margin-bottom: 18px; }
.dose-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.dose-hint { font-size: .82rem; color: var(--muted); margin: 8px 0 0; line-height: 1.55; }
.dose-hint--bad { color: var(--red); }

.dose-view { margin: 14px 0 6px; }
.dose-view video {
  width: 100%; max-width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line); background: #0d1520; display: block;
}
.dose-canvas-wrap { position: relative; display: block; }
.dose-canvas-wrap canvas {
  width: 100%; height: auto; display: block; cursor: crosshair;
  border-radius: var(--radius); border: 1px solid var(--line); background: #f4f6f9;
}
.dose-reticle {
  position: absolute; pointer-events: none; box-sizing: border-box;
  border: 2px solid #fff; border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,0,0,.5);
}

.dose-flag {
  border: 1px solid var(--line); border-left: 4px solid var(--blue-light);
  background: #fff; border-radius: var(--radius);
  padding: 12px 15px; font-size: .86rem; line-height: 1.55; margin: 14px 0;
}
.dose-flag b { font-family: var(--font-display); }
.dose-flag--ok   { border-left-color: var(--teal); background: #f2fbfa; }
.dose-flag--warn { border-left-color: var(--yellow); background: #fffaee; }
.dose-flag code {
  background: var(--blue-pale); padding: 1px 5px; border-radius: 4px;
  font-size: .92em; font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* Panneau de résultat */
.dose-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.dose-panel__head {
  background: var(--navy); color: #fff; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: 1.02rem;
}
.dose-panel > div:last-child { padding: 18px; }
.dose-empty { color: var(--muted); font-size: .9rem; }
.dose-empty p { margin: 0; }

.dose-measure { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dose-chip { width: 54px; height: 54px; border-radius: 10px; border: 1px solid rgba(0,0,0,.16); flex: none; }
.dose-chip--lg { width: 62px; height: 62px; }
.dose-measure b { display: block; font-family: var(--font-display); font-size: .98rem; }
.dose-measure span { display: block; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.dose-warn { list-style: none; margin: 0 0 14px; padding: 0; }
.dose-warn li {
  font-size: .81rem; color: #7a5b00; background: #fffaee;
  border: 1px solid #f3e2b4; border-radius: 8px; padding: 8px 11px; margin-bottom: 6px; line-height: 1.5;
}

.dose-h { font-size: .95rem; margin: 0 0 10px; font-family: var(--font-display); }
.dose-matches { display: grid; gap: 9px; margin-bottom: 20px; }
.dose-match {
  display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "sw name code" "sw de de";
  gap: 2px 12px; align-items: center; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 10px 12px; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.dose-match:hover { border-color: var(--blue-light); }
.dose-match.is-on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.dose-match i { grid-area: sw; width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(0,0,0,.14); }
.dose-match b { grid-area: name; font-family: var(--font-display); font-size: .92rem; }
.dose-match span { grid-area: code; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dose-match em { grid-area: de; font-style: normal; font-size: .76rem; font-variant-numeric: tabular-nums; }
.de--ok  { color: #0d7a63; }
.de--mid { color: #96700a; }
.de--bad { color: var(--red); }

.dose-formula { border-top: 1px solid var(--line); padding-top: 16px; }
.dose-formula__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dose-formula__head b { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.dose-formula__head span { display: block; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.dose-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.dose-picks label { display: block; }
.dose-picks span { display: block; font-size: .76rem; color: var(--muted); margin-bottom: 4px; }
.dose-picks select {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: .86rem; background: #fff; color: var(--ink);
}
@media (max-width: 420px) { .dose-picks { grid-template-columns: 1fr; } }

.dose-base {
  background: var(--blue-pale); border-radius: var(--radius);
  padding: 11px 14px; margin-bottom: 14px; font-size: .86rem;
}
.dose-base b { display: block; font-family: var(--font-display); font-size: .82rem; color: var(--navy); margin-bottom: 2px; }

.dose-table { width: 100%; border-collapse: collapse; font-size: .84rem; margin-bottom: 16px; }
.dose-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 600; padding: 0 6px 7px 0; border-bottom: 1px solid var(--line);
}
.dose-table th:last-child, .dose-table td:last-child { text-align: right; padding-right: 0; }
.dose-table td { padding: 9px 6px 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dose-table td em { font-style: normal; color: var(--muted); font-size: .78rem; }
.dose-table td b { font-variant-numeric: tabular-nums; }
.dose-dot { display: inline-block; width: 13px; height: 13px; border-radius: 4px; border: 1px solid rgba(0,0,0,.16); margin-right: 8px; vertical-align: -2px; }

.dose-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dose-actions .btn { font-size: .85rem; }
.dose-sent { margin-top: 12px; font-size: .84rem; color: var(--muted); }
.dose-sent.is-ok  { color: #0d7a63; }
.dose-sent.is-bad { color: var(--red); }

/* Doseur — vue réseau, quantités */
.dose-view img#dose-net {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--line); background: #0d1520; min-height: 120px;
}
.dose-picks label.wide { grid-column: 1 / -1; }
.dose-picks input[type="number"] {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: .86rem; background: #fff; color: var(--ink);
}
.dose-picks input[type="number"]:focus, .dose-picks select:focus {
  outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(46,143,224,.16);
}
.dose-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 11px 14px; margin-bottom: 14px; font-size: .88rem;
}
.dose-total b { font-family: var(--font-display); font-size: .82rem; font-weight: 600; opacity: .85; }
.dose-total span { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.dose-source input[type="range"], #dose-zoom { width: 100%; margin: 8px 0; box-sizing: border-box; }
.dose-flag code, .note code { overflow-wrap: anywhere; word-break: break-word; }

/* ==========================================================================
   COMPTES, ESPACES MEMBRES ET BACK-OFFICE
   ========================================================================== */
.page-head--slim { padding-bottom: 26px; }

.topbar-links a.is-signed { font-weight: 600; }

/* Bandeau d'honnêteté */
.auth-demo {
  border: 1px solid #f3e2b4; border-left: 4px solid var(--yellow); background: #fffaee;
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 26px; font-size: .86rem; line-height: 1.6;
}
.auth-demo b { display: block; font-family: var(--font-display); margin-bottom: 4px; color: #7a5b00; }
.auth-demo code { background: #f6ecd0; padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

/* Cartes de formulaire */
.split--auth { grid-template-columns: 1.15fr .85fr; align-items: start; gap: 40px; }
@media (max-width: 900px) { .split--auth { grid-template-columns: 1fr; gap: 28px; } }

.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.auth-card--wide { padding: 30px; }
.auth-card__h {
  font-size: 1.05rem; margin: 0 0 16px; font-family: var(--font-display);
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.auth-card__h + .auth-card__h, .auth-card .grid + .auth-card__h { margin-top: 26px; }
.auth-submit { width: 100%; justify-content: center; margin-top: 8px; }
.auth-alt { text-align: center; font-size: .88rem; margin: 16px 0 0; color: var(--muted); }
.auth-alt a { font-weight: 600; margin-left: 6px; }

.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin: 4px 0 16px; font-size: .86rem;
}
.check-inline { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; line-height: 1.5; cursor: pointer; }
.check-inline input { margin-top: 3px; flex: none; }
.check-inline.mini { font-size: .8rem; }

.auth-msg {
  border-radius: 10px; padding: 11px 14px; font-size: .86rem; line-height: 1.55; margin: 14px 0;
  background: var(--blue-pale); border: 1px solid #cfe3f7; color: var(--ink);
}
.auth-msg--bad  { background: #fdeceb; border-color: #f6c9c6; color: #9b1c17; }
.auth-msg--ok   { background: #eafaf5; border-color: #b9e8db; color: #0d6b52; }
.auth-msg--warn { background: #fffaee; border-color: #f3e2b4; color: #7a5b00; }
.big-code {
  display: inline-block; font-size: 1.4rem; letter-spacing: .22em; font-weight: 700;
  background: #fff; border: 1px dashed var(--navy); border-radius: 8px; padding: 4px 12px; margin: 6px 0;
}

/* Champ mot de passe */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 84px !important; width: 100%; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--blue); font: inherit; font-size: .8rem;
  font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 6px;
}
.pw-eye:hover { background: var(--blue-pale); }
.pw-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pw-meter i { display: block; flex: 1; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pw-meter i b { display: block; height: 100%; border-radius: 4px; background: var(--red); transition: width .2s, background .2s; }
.pw-meter .s2 b { background: var(--yellow); }
.pw-meter .s3 b { background: #4aa96c; }
.pw-meter .s4 b { background: var(--teal); }
.pw-meter span { font-size: .76rem; color: var(--muted); min-width: 76px; text-align: right; }

/* Choix du profil */
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
@media (max-width: 640px) { .role-pick { grid-template-columns: 1fr; } }
.role-opt {
  text-align: left; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.role-opt:hover { border-color: var(--blue-light); }
.role-opt.is-on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--blue-pale); }
.role-opt b { display: block; font-family: var(--font-display); font-size: .95rem; margin-bottom: 3px; }
.role-opt span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.5; }

.role-list { list-style: none; margin: 0; padding: 0; }
.role-list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.role-list li:last-child { border-bottom: 0; }
.role-list b { display: block; font-family: var(--font-display); font-size: .9rem; }
.role-list span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* En-tête de l'espace */
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.acc-ident { display: flex; align-items: center; gap: 16px; }
.acc-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
}
.acc-head h1 { margin: 0; font-size: 1.7rem; }
.acc-head p { margin: 3px 0 0; font-size: .85rem; color: var(--muted); }
.acc-badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; background: var(--blue-pale); color: var(--navy);
}
.acc-badge--revendeur { background: #eafaf5; color: #0d6b52; }
.acc-badge--peintre   { background: #fff6dc; color: #7a5b00; }
.acc-badge--admin     { background: #fdeceb; color: #9b1c17; }

/* Deux colonnes : onglets + contenu */
.acc-layout { display: grid; grid-template-columns: 230px 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .acc-layout { grid-template-columns: 1fr; gap: 20px; } }
.acc-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--header-h) + 18px); }
@media (max-width: 900px) {
  .acc-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
.acc-tab {
  text-align: left; border: 1px solid transparent; border-radius: 10px; background: transparent;
  padding: 10px 14px; font: inherit; font-size: .89rem; color: var(--body); cursor: pointer;
}
.acc-tab:hover { background: var(--blue-pale); }
.acc-tab.is-on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }

.acc-card { padding: 26px; }
.acc-h2 { font-size: 1.2rem; margin: 0 0 16px; font-family: var(--font-display); }
.acc-h3 { font-size: 1rem; margin: 0 0 6px; font-family: var(--font-display); }
.acc-lead { font-size: .89rem; color: var(--body); line-height: 1.65; margin: 0 0 18px; }
.acc-empty { font-size: .89rem; color: var(--muted); line-height: 1.65; margin: 0 0 18px; }
.acc-sep { border: 0; border-top: 1px solid var(--line); margin: 26px 0 20px; }
.acc-card .field { margin-bottom: 14px; }
.acc-card textarea { width: 100%; }

.acc-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.acc-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 600; padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.acc-table td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.acc-table .mini { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.mini-select {
  padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .8rem; background: #fff; color: var(--ink); max-width: 100%;
}
.ad-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-mini {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px;
  font: inherit; font-size: .78rem; cursor: pointer; color: var(--ink);
}
.btn-mini:hover { border-color: var(--blue-light); }
.btn-mini--danger { color: var(--red); border-color: #f6c9c6; }
.btn--danger { color: var(--red); border-color: #f6c9c6; }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: var(--blue-pale); color: var(--navy); white-space: nowrap;
}
.pill--confirmee { background: #fff6dc; color: #7a5b00; }
.pill--preparee  { background: #eaf3fc; color: #0f62b0; }
.pill--livree    { background: #eafaf5; color: #0d6b52; }
.pill--annulee   { background: #fdeceb; color: #9b1c17; }

.ad-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.ad-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px;
  font: inherit; font-size: .8rem; cursor: pointer; color: var(--body);
}
.ad-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; text-align: center;
}
.stat-box b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); }
.stat-box span { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }

.tool-grid, .lvl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tool-card, .lvl-card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 17px; background: #fff; color: inherit; transition: border-color .15s, transform .15s;
}
.tool-card:hover, .lvl-card:hover { border-color: var(--blue-light); transform: translateY(-2px); color: inherit; }
.tool-card b, .lvl-card b { display: block; font-family: var(--font-display); font-size: .94rem; margin-bottom: 4px; }
.tool-card span, .lvl-card span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.5; }

.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.todo-list li:last-child { border-bottom: 0; }
.todo-list code {
  display: inline-block; background: var(--blue-pale); color: var(--navy);
  padding: 2px 8px; border-radius: 6px; font-size: .8rem; margin-bottom: 4px; overflow-wrap: anywhere;
}
.todo-list span { display: block; font-size: .83rem; color: var(--muted); line-height: 1.55; }

/* Teintes gardées */
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.fav-chip { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.fav-chip i { display: block; height: 60px; }
.fav-chip b { display: block; font-family: var(--font-display); font-size: .85rem; padding: 9px 11px 0; }
.fav-chip > span { display: block; font-size: .7rem; color: var(--muted); padding: 1px 11px 8px; font-variant-numeric: tabular-nums; }
.fav-acts { display: flex; border-top: 1px solid var(--line); }
.fav-acts a, .fav-acts button {
  flex: 1; text-align: center; padding: 8px 4px; font-size: .76rem; font-weight: 600;
  background: transparent; border: 0; cursor: pointer; color: var(--blue); font-family: inherit;
}
.fav-acts button { color: var(--muted); border-left: 1px solid var(--line); }
.fav-acts a:hover, .fav-acts button:hover { background: var(--blue-pale); }

/* Le cœur sur les pastilles du nuancier */
.chip-wrap { position: relative; }
.chip-wrap > .chip { height: 100%; }
.chip-fav {
  position: absolute; top: 7px; right: 7px; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.86); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, background .15s;
}
.chip-wrap:hover .chip-fav, .chip-fav:focus-visible, .chip-fav.is-on { opacity: 1; }
.chip-fav svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.chip-fav.is-on svg { fill: var(--red); stroke: var(--red); }
.chip-fav:hover { background: #fff; }
/* Les tableaux du back-office défilent dans leur cadre au lieu d'élargir la page */
.acc-layout > * { min-width: 0; }
.acc-card .table-wrap { max-width: 100%; }
