/* ==========================================================================
   Protège Plus — design system
   Vert & blanc, mobile-first, sans dépendance externe (polices facultatives).
   ========================================================================== */

/* ---------- Jetons ---------- */
:root {
  --blanc: #ffffff;
  --brume: #f2f7f4;          /* fonds de section, cartes secondaires */
  --brume-2: #e6f0ea;
  --trait: #d9e5de;          /* bordures */
  --trait-fort: #b9cdc2;
  --foret: #0b5d3b;          /* vert principal : actions, liens */
  --foret-2: #084a2f;        /* survol / pressé */
  --feuille: #12a150;        /* vert de marque : accents, succès */
  --menthe: #d8f3e3;         /* fonds d'accent doux */
  --marine: #0d2b66;         /* couleur du logotype : titres */
  --encre: #17262f;          /* texte courant */
  --gris: #5b6b66;           /* texte secondaire */
  --gris-clair: #8a9994;

  --rouge: #c8102e;          /* BioSecours / urgence */
  --rouge-doux: #fde8eb;
  --ambre: #b45309;          /* attente */
  --ambre-doux: #fef3c7;
  --sarcelle: #0e7c86;       /* annuaire */
  --sarcelle-doux: #dff3f4;
  --info: #1d5fbf;
  --info-doux: #e5efff;

  --police-titre: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --police-texte: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-xs: .8125rem;   /* 13 */
  --t-s: .875rem;     /* 14 */
  --t-m: 1rem;        /* 16 */
  --t-l: 1.125rem;    /* 18 */
  --t-xl: 1.375rem;   /* 22 */
  --t-2xl: 1.75rem;   /* 28 */
  --t-3xl: 2.25rem;   /* 36 */
  --t-4xl: clamp(2.25rem, 1.4rem + 3.6vw, 3.6rem);

  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --ombre-1: 0 1px 2px rgba(13, 43, 102, .06), 0 1px 1px rgba(13, 43, 102, .04);
  --ombre-2: 0 10px 30px -12px rgba(11, 93, 59, .28);
  --ombre-3: 0 24px 60px -20px rgba(13, 43, 102, .35);

  --marine-fixe: #0d2b66;    /* bandeaux sombres, identiques dans les deux thèmes */
  --fond: #ffffff;           /* fond de page */
  --surface: #ffffff;        /* cartes, champs */
  --surface-verre: rgba(255, 255, 255, .92);
  --survol: #f7faf8;
  --lateral: #f6faf7;        /* barre latérale (ordinateur) */
  color-scheme: light;

  --entete: 64px;
  --onglets: 68px;
  --largeur: 1680px;
  --gouttiere: 16px;
  --lateral-largeur: 272px;
  --duree: .18s;
}

@media (min-width: 768px) {
  :root { --gouttiere: 28px; --entete: 72px; }
}
@media (min-width: 1400px) {
  :root { --gouttiere: 40px; }
}

/* ---------- Mode nuit ---------- */
/* data-theme : "auto" (suit l'appareil), "clair" ou "sombre" */
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --fond: #0c1310; --surface: #131d18; --surface-verre: rgba(16, 24, 20, .9); --survol: #18241e; --lateral: #101915;
    --blanc: #131d18; --brume: #172520; --brume-2: #1f2f28; --trait: #263830; --trait-fort: #355045;
    --foret: #34c37a; --foret-2: #5ad696; --feuille: #2fbf71; --menthe: #153a28; --marine: #e3ecfb;
    --encre: #e4ece7; --gris: #a3b5ac; --gris-clair: #7f948a;
    --rouge: #ff5c73; --rouge-doux: #3a1820; --ambre: #f5b04a; --ambre-doux: #3a2a10;
    --sarcelle: #4cc3cc; --sarcelle-doux: #12312f; --info: #7eaaf2; --info-doux: #172540;
    --ombre-1: 0 1px 2px rgba(0, 0, 0, .4); --ombre-2: 0 10px 30px -12px rgba(0, 0, 0, .6); --ombre-3: 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="sombre"] {
  --fond: #0c1310; --surface: #131d18; --surface-verre: rgba(16, 24, 20, .9); --survol: #18241e; --lateral: #101915;
  --blanc: #131d18; --brume: #172520; --brume-2: #1f2f28; --trait: #263830; --trait-fort: #355045;
  --foret: #34c37a; --foret-2: #5ad696; --feuille: #2fbf71; --menthe: #153a28; --marine: #e3ecfb;
  --encre: #e4ece7; --gris: #a3b5ac; --gris-clair: #7f948a;
  --rouge: #ff5c73; --rouge-doux: #3a1820; --ambre: #f5b04a; --ambre-doux: #3a2a10;
  --sarcelle: #4cc3cc; --sarcelle-doux: #12312f; --info: #7eaaf2; --info-doux: #172540;
  --ombre-1: 0 1px 2px rgba(0, 0, 0, .4); --ombre-2: 0 10px 30px -12px rgba(0, 0, 0, .6); --ombre-3: 0 24px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
/* En mode nuit, les boutons pleins gardent un texte foncé lisible sur le vert clair */
:root[data-theme="sombre"] .btn-primaire, :root[data-theme="sombre"] .puce.actif,
:root[data-theme="sombre"] .plus-modules .bras-intime { --texte: #06210f; color: #06210f; }
:root[data-theme="sombre"] .plus-modules .bras-intime small { color: #0b3a22; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .btn-primaire, :root[data-theme="auto"] .puce.actif,
  :root[data-theme="auto"] .plus-modules .bras-intime { --texte: #06210f; color: #06210f; }
  :root[data-theme="auto"] .plus-modules .bras-intime small { color: #0b3a22; }
}
.logo-sombre { display: none !important; }
:root[data-theme="sombre"] .logo-clair { display: none !important; }
:root[data-theme="sombre"] .logo-sombre { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .logo-clair { display: none !important; }
  :root[data-theme="auto"] .logo-sombre { display: block !important; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 12px); }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: var(--t-m);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--foret); text-underline-offset: 3px; }
a:hover { color: var(--foret-2); }
h1, h2, h3, h4 { font-family: var(--police-titre); color: var(--marine); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: var(--t-3xl); letter-spacing: -.02em; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-l); }
p { margin: 0 0 1em; }
small, .petit { font-size: var(--t-s); }
.discret { color: var(--gris); }
.tres-discret { color: var(--gris-clair); font-size: var(--t-xs); }
hr { border: 0; border-top: 1px solid var(--trait); margin: 24px 0; }
::selection { background: var(--menthe); color: var(--foret-2); }
:focus-visible { outline: 3px solid var(--feuille); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
[hidden] { display: none !important; }
.saut-lien { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--marine-fixe); color: #fff; padding: 10px 14px; border-radius: var(--r-s); }
.saut-lien:focus { top: 8px; color: #fff; }

/* ---------- Mise en page ---------- */
.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur-etroit { max-width: 760px; }
.conteneur-moyen { max-width: 1120px; }
main { flex: 1; padding-bottom: calc(var(--onglets) + 32px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { main { padding-bottom: 48px; } }
.section { padding-block: 40px; }
.section-serree { padding-block: 24px; }
.fond-brume { background: var(--brume); }
.pile > * + * { margin-top: var(--pile, 16px); }
.pile-s { --pile: 8px; }
.pile-l { --pile: 28px; }
.ligne { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ligne-entre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ligne-fin { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr)); }
.grille-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grille-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grille > *, .grille-2 > *, .grille-3 > *, .colonnes > * { min-width: 0; }
@media (min-width: 720px) { .grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grille-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grille-3 { grid-template-columns: repeat(3, 1fr); } }
.colonnes { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .colonnes { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .colonnes-gauche { grid-template-columns: 300px minmax(0, 1fr); }
  .colle { position: sticky; top: calc(var(--entete) + 16px); }
}
@media (min-width: 720px) { .messages { top: 16px; left: calc(50% + var(--lateral-largeur) / 2); } }
@media (min-width: 1200px) { .colle { top: 16px; } }
.min0 { min-width: 0; }
.centre { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-s { margin-top: 8px; } .mt-m { margin-top: 16px; } .mt-l { margin-top: 28px; }
.mb-s { margin-bottom: 8px; } .mb-m { margin-bottom: 16px; } .mb-l { margin-bottom: 28px; }
.coupe { overflow-wrap: anywhere; }

/* ---------- Coque d'application ---------- */
/* Téléphone (< 720 px) : barre du haut + onglets en bas + menu plein écran.
   Tablette (720–1199 px) : rail d'icônes à gauche + barre du haut (préférences, compte).
   Ordinateur (≥ 1200 px) : barre latérale complète, pas de menu hamburger.
   Grands écrans et TV (≥ 1920 px) : tout est agrandi proportionnellement. */
.app-principal { min-width: 0; min-height: 100dvh; display: flex; flex-direction: column; }
@media (min-width: 720px) {
  .app-principal { margin-left: var(--lateral-largeur); }
}
.entete {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface-verre);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--trait);
  padding-top: env(safe-area-inset-top);
}
/* backdrop-filter crée un bloc conteneur pour les éléments fixes : on le retire quand le menu plein écran est ouvert */
.entete:has(details[open]) { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--fond); }
.entete .conteneur { height: var(--entete); display: flex; align-items: center; gap: 12px; }
@media (min-width: 1200px) { .entete { display: none; } }
.marque { display: flex; align-items: center; flex: none; }
.marque img { height: 34px; width: auto; }
.entete-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.bouton-rond {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--marine); cursor: pointer; text-decoration: none;
}
.bouton-rond:hover { background: var(--brume); color: var(--foret); }
.bouton-rond .ic { width: 22px; height: 22px; }
.compteur {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--feuille); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  border: 2px solid var(--surface); box-sizing: content-box;
}
.compteur:empty, .compteur[data-n="0"] { display: none; }

/* Barre latérale (ordinateur) */
.lateral {
  display: none; position: fixed; inset: 0 auto 0 0; width: var(--lateral-largeur); z-index: 70;
  background: var(--lateral); border-right: 1px solid var(--trait);
  flex-direction: column; padding: 20px 14px 14px;
}
@media (min-width: 720px) { .lateral { display: flex; } }
.lateral .marque { padding: 4px 10px 18px; }
.lateral .marque img { height: 40px; }
.lateral-defile { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.nav-lat { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-lat .groupe { padding: 16px 12px 6px; color: var(--gris); font-size: var(--t-xs); font-weight: 700; }
.nav-lat a, .nav-lat button {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--r-m);
  color: var(--encre); text-decoration: none; font: inherit; font-weight: 700; font-size: var(--t-s);
  background: none; border: 0; cursor: pointer; text-align: left;
}
.nav-lat a:hover, .nav-lat button:hover { background: var(--brume); color: var(--foret); }
.nav-lat a[aria-current="page"] { background: var(--menthe); color: var(--foret-2); }
.nav-lat .ic { width: 20px; height: 20px; }
.nav-lat .compteur { position: static; margin-left: auto; border: 0; }
.nav-lat .compteur-attente { background: var(--ambre); }
.lateral-pied { border-top: 1px solid var(--trait); padding-top: 12px; margin-top: 8px; display: grid; gap: 8px; }
.compte-lat { display: flex; align-items: center; gap: 10px; padding: 6px 8px; min-width: 0; }
.compte-lat .min0 { flex: 1; }
.compte-lat strong { display: block; font-size: var(--t-s); color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte-lat small { color: var(--gris); font-size: var(--t-xs); }

/* Préférences : thème et langue */
.preferences { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0 4px; }
.bascule-theme {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1.5px solid var(--trait); background: var(--surface); color: var(--encre); font: inherit; font-size: var(--t-xs); font-weight: 700; cursor: pointer;
}
.bascule-theme .ic { width: 18px; height: 18px; }
.langues { display: inline-flex; border: 1.5px solid var(--trait); border-radius: var(--r-pill); overflow: hidden; background: var(--surface); }
.langues a { padding: 8px 9px; font-size: var(--t-xs); font-weight: 700; color: var(--gris); text-decoration: none; line-height: 1; }
.langues a[aria-current="true"] { background: var(--foret); color: #fff; }
:root[data-theme="sombre"] .langues a[aria-current="true"] { color: #06210f; }

/* Menu plein écran (mobile) : details/summary, fonctionne sans JavaScript */
.menu { position: static; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panneau {
  position: fixed; inset: calc(var(--entete) + env(safe-area-inset-top)) 0 0 0; z-index: 80; overflow-y: auto;
  background: var(--fond); padding: 12px var(--gouttiere) calc(var(--onglets) + 24px);
  animation: tiroir .2s ease-out;
}
@keyframes tiroir { from { opacity: 0; transform: translateY(-8px); } }
.menu-panneau .titre-menu { padding: 14px 12px 6px; color: var(--gris); font-size: var(--t-xs); font-weight: 700; }
.menu-panneau hr { margin: 8px 0; }
.menu-panneau .nav-lat a, .menu-panneau .nav-lat button { padding: 13px 12px; font-size: var(--t-m); }

/* Onglets du bas (mobile) */
.onglets-bas {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  background: var(--surface-verre); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--trait);
  padding-bottom: env(safe-area-inset-bottom);
}
.onglets-bas ul { list-style: none; margin: 0; padding: 0 4px; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--onglets); }
.onglets-bas a {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--gris); text-decoration: none; font-size: 11px; font-weight: 700; position: relative;
  -webkit-user-select: none; user-select: none;
}
.onglets-bas a .ic { width: 24px; height: 24px; }
.onglets-bas a[aria-current="page"] { color: var(--foret); }
.onglets-bas a[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--feuille);
}
.onglets-bas .compteur { top: 6px; right: calc(50% - 22px); }
@media (min-width: 720px) { .onglets-bas { display: none; } }

/* Barre de progression de navigation (comportement d'application) */
.chargement { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: var(--feuille);
  box-shadow: 0 0 8px var(--feuille); transition: width .3s ease, opacity .3s ease; opacity: 0; pointer-events: none; }
.chargement.actif { opacity: 1; width: 70%; transition: width 8s cubic-bezier(.1, .7, .2, 1); }

/* Pied de page compact */
.pied { background: var(--marine-fixe); color: #c9d6ee; padding-block: 32px calc(var(--onglets) + 32px); margin-top: auto; }
@media (min-width: 720px) { .pied { padding-bottom: 32px; } }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; color: #fff; }
.pied h4 { color: #fff; font-size: var(--t-m); margin-bottom: 12px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pied-grille { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .pied-grille { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.pied-grille > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .pied-grille > :first-child { grid-column: auto; } }
.slogan { font-family: var(--police-titre); font-size: var(--t-xl); color: #fff; line-height: 1.25; max-width: 22ch; }
.pied-bas { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: var(--t-s); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.pied-compact { padding-block: 20px calc(var(--onglets) + 20px); font-size: var(--t-s); }
@media (min-width: 720px) { .pied-compact { padding-bottom: 20px; } }
.pied-compact .conteneur { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Application installée : pas de rebond, sélection de texte limitée aux contenus */
@media (display-mode: standalone) {
  html, body { overscroll-behavior-y: none; }
  .entete, .onglets-bas, .lateral { -webkit-user-select: none; user-select: none; }
}

/* ---------- Boutons ---------- */
.btn {
  --fond: var(--brume); --texte: var(--marine); --bord: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  background: var(--fond); color: var(--texte); border: 1.5px solid var(--bord);
  font: inherit; font-weight: 700; font-size: var(--t-m); line-height: 1.1; text-decoration: none; text-align: center;
  cursor: pointer; transition: background var(--duree), color var(--duree), border-color var(--duree), transform .08s;
  -webkit-user-select: none; user-select: none; position: relative;
}
.btn:hover { color: var(--texte); filter: brightness(.97); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primaire { --fond: var(--foret); --texte: #fff; }
.btn-primaire:hover { --fond: var(--foret-2); filter: none; }
.btn-secondaire { --fond: var(--surface); --texte: var(--foret); --bord: var(--trait-fort); }
.btn-secondaire:hover { --bord: var(--foret); filter: none; }
.btn-fantome { --fond: transparent; --texte: var(--foret); padding-inline: 12px; }
.btn-fantome:hover { --fond: var(--brume); filter: none; }
.btn-danger { --fond: var(--surface); --texte: var(--rouge); --bord: #f1b7c1; }
.btn-urgence { --fond: var(--rouge); --texte: #fff; }
.btn-blanc { --fond: #fff; --texte: var(--foret-2); }
.btn-l { min-height: 56px; font-size: var(--t-l); padding: 0 28px; }
.btn-s { min-height: 38px; padding: 0 14px; font-size: var(--t-s); }
.btn-bloc { width: 100%; }
.btn .ic { width: 20px; height: 20px; }
.btn[aria-busy="true"] { color: transparent !important; pointer-events: none; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid currentColor; border-color: var(--texte) transparent var(--texte) transparent;
  animation: tourne .7s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }
.lien-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--foret); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Formulaires ---------- */
.champ { display: grid; gap: 6px; margin-bottom: 18px; }
.champ > label, .etiquette { font-weight: 700; color: var(--marine); font-size: var(--t-s); }
.champ .aide { color: var(--gris); font-size: var(--t-xs); }
.champ .erreur, .erreur-liste { color: var(--rouge); font-size: var(--t-s); font-weight: 600; }
.erreur-liste { list-style: none; padding: 0; margin: 0; }
.requis::after { content: " *"; color: var(--rouge); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=search],
input[type=url], input[type=date], input[type=datetime-local], input[type=time], select, textarea, .saisie {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-m);
  border: 1.5px solid var(--trait-fort); background: var(--surface); color: var(--encre); font: inherit; font-size: 16px;
  transition: border-color var(--duree), box-shadow var(--duree); appearance: none; -webkit-appearance: none;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230b5d3b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 42px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--foret); box-shadow: 0 0 0 4px rgba(18, 161, 80, .16); }
.champ-invalide input, .champ-invalide select, .champ-invalide textarea, [aria-invalid="true"] { border-color: var(--rouge) !important; }
input[type=file] { width: 100%; font: inherit; font-size: var(--t-s); padding: 10px; border: 1.5px dashed var(--trait-fort); border-radius: var(--r-m); background: var(--brume); }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; border: 0; background: var(--foret); color: #fff; padding: 8px 14px; border-radius: var(--r-pill); margin-right: 10px; cursor: pointer; }
.case { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 4px 0; }
.case input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--foret); flex: none; }
.prefixe { display: flex; align-items: stretch; }
.prefixe span { display: grid; place-items: center; padding: 0 12px; background: var(--brume); border: 1.5px solid var(--trait-fort); border-right: 0; border-radius: var(--r-m) 0 0 var(--r-m); font-weight: 700; color: var(--gris); }
.prefixe input { border-radius: 0 var(--r-m) var(--r-m) 0; }

/* Choix en cartes (radio / case) */
.choix { display: grid; gap: 10px; }
.choix-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.choix label {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-l);
  border: 1.5px solid var(--trait); background: var(--surface); cursor: pointer; transition: border-color var(--duree), background var(--duree);
}
.choix label:hover { border-color: var(--trait-fort); }
.choix input { accent-color: var(--foret); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.choix label:has(input:checked) { border-color: var(--foret); background: var(--menthe); box-shadow: inset 0 0 0 1px var(--foret); }
.choix strong { display: block; color: var(--marine); }
.choix small { color: var(--gris); }

/* Sélecteur de quantité */
.quantite { display: inline-flex; align-items: center; border: 1.5px solid var(--trait-fort); border-radius: var(--r-pill); background: var(--surface); }
.quantite button { width: 44px; height: 44px; border: 0; background: none; color: var(--foret); cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.quantite button:hover { background: var(--brume); }
.quantite input { width: 48px; min-height: 40px; text-align: center; border: 0; padding: 0; font-weight: 700; -moz-appearance: textfield; }
.quantite input::-webkit-outer-spin-button, .quantite input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantite input:focus { box-shadow: none; }

/* Recherche */
.barre-recherche { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--trait-fort); border-radius: var(--r-pill); padding: 4px 4px 4px 16px; }
.barre-recherche:focus-within { border-color: var(--foret); box-shadow: 0 0 0 4px rgba(18,161,80,.16); }
.barre-recherche input { border: 0; padding: 8px 0; min-height: 44px; box-shadow: none !important; }
.barre-recherche .ic { color: var(--gris); }
.barre-recherche select { border: 0; border-left: 1px solid var(--trait); border-radius: 0; min-height: 40px; width: auto; max-width: 42%; box-shadow: none !important; background-color: transparent; }

/* ---------- Cartes ---------- */
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-l); padding: 20px; }
.carte-l { padding: 24px; }
@media (min-width: 768px) { .carte-l { padding: 32px; } }
.carte-brume { background: var(--brume); border-color: transparent; }
.carte-elevee { box-shadow: var(--ombre-2); border-color: transparent; }
.carte-lien { display: block; color: inherit; text-decoration: none; transition: border-color var(--duree), transform var(--duree); }
.carte-lien:hover { border-color: var(--trait-fort); color: inherit; }
.carte-lien:active { transform: scale(.995); }
.carte h3 { font-size: var(--t-l); }
.carte-titre { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.carte-titre h2, .carte-titre h3 { margin: 0; }
.liste-plate { list-style: none; margin: 0; padding: 0; }
.liste-plate > li + li { border-top: 1px solid var(--trait); }
.liste-plate > li { padding: 14px 0; }
.ligne-cle { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.ligne-cle dt { color: var(--gris); }
.ligne-cle dd { margin: 0; font-weight: 700; text-align: right; color: var(--encre); }
dl.details { margin: 0; }
dl.details > div + div { border-top: 1px dashed var(--trait); }
.total { font-family: var(--police-titre); font-size: var(--t-xl); color: var(--marine); }

/* Pastille d'icône en forme de « + » arrondi : motif de la marque */
.croix {
  --c: var(--foret); --f: var(--menthe);
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; color: var(--c); position: relative; isolation: isolate;
}
.croix::before, .croix::after { content: ""; position: absolute; background: var(--f); border-radius: 10px; z-index: -1; }
.croix::before { inset: 0 26%; }
.croix::after { inset: 26% 0; }
.croix .ic { width: 24px; height: 24px; }
.croix-l { width: 72px; height: 72px; }
.croix-l .ic { width: 32px; height: 32px; }
.croix-urgence { --c: var(--rouge); --f: var(--rouge-doux); }
.croix-annuaire { --c: var(--sarcelle); --f: var(--sarcelle-doux); }
.croix-marche { --c: var(--ambre); --f: var(--ambre-doux); }
.croix-marine { --c: var(--marine); --f: var(--info-doux); }
.croix-pleine { --c: #fff; --f: var(--foret); }

/* ---------- Pastilles de statut ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 700; line-height: 1.4; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-succes { background: var(--menthe); color: var(--foret-2); }
.pill-info { background: var(--info-doux); color: var(--info); }
.pill-attente { background: var(--ambre-doux); color: var(--ambre); }
.pill-danger { background: var(--rouge-doux); color: var(--rouge); }
.pill-neutre { background: var(--brume-2); color: var(--gris); }
.etiquette-douce { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--brume); color: var(--foret-2); font-size: var(--t-xs); font-weight: 700; }

/* ---------- Messages ---------- */
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-m); background: var(--info-doux); color: #163f7a; font-size: var(--t-s); }
.note .ic { width: 20px; height: 20px; margin-top: 1px; }
.note p:last-child { margin-bottom: 0; }
.note-succes { background: var(--menthe); color: var(--foret-2); }
.note-attente { background: var(--ambre-doux); color: #7c3a06; }
.note-danger { background: var(--rouge-doux); color: #8a0c20; }
.note-neutre { background: var(--brume); color: var(--encre); }
.messages { position: fixed; z-index: 120; left: 50%; transform: translateX(-50%); top: calc(var(--entete) + 10px); width: min(560px, calc(100vw - 24px)); display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-m); background: var(--marine-fixe); color: #fff; box-shadow: var(--ombre-3); font-weight: 600; animation: entre .25s ease-out; }
.toast-succes { background: var(--foret); }
.toast-erreur { background: var(--rouge); }
.toast-alerte { background: #7c3a06; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; opacity: .8; }
@keyframes entre { from { opacity: 0; transform: translateY(-8px); } }

/* État vide */
.vide { text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 10px; }
.vide .croix { margin-bottom: 6px; }
.vide h3 { margin: 0; }
.vide p { color: var(--gris); max-width: 42ch; margin: 0 auto 8px; }

/* Squelette de chargement */
.squelette { background: linear-gradient(90deg, var(--brume) 25%, var(--brume-2) 37%, var(--brume) 63%); background-size: 400% 100%; animation: chatoie 1.3s ease infinite; border-radius: var(--r-s); min-height: 16px; }
@keyframes chatoie { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Bandeau réseau & synchronisation ---------- */
.reseau {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--onglets) + 12px + env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-m);
  background: var(--encre); color: #fff; font-weight: 600; font-size: var(--t-s); box-shadow: var(--ombre-3);
}
@media (min-width: 900px) { .reseau { left: auto; right: 24px; bottom: 24px; width: 380px; } }
.reseau.en-ligne { background: var(--foret); }
.reseau .ic { width: 20px; height: 20px; }
.attente-sync { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--ambre-doux); color: var(--ambre); font-weight: 700; font-size: var(--t-xs); text-decoration: none; }

/* ---------- Chronologie (suivi) ---------- */
.etapes { list-style: none; margin: 0; padding: 0; position: relative; }
.etapes li { position: relative; padding: 0 0 22px 40px; }
.etapes li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--trait); }
.etapes li:last-child { padding-bottom: 0; }
.etapes li:last-child::before { display: none; }
.etapes .puce { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--trait-fort); color: var(--gris); }
.etapes .puce .ic { width: 15px; height: 15px; }
.etapes .fait .puce { background: var(--feuille); border-color: var(--feuille); color: #fff; }
.etapes .fait::before { background: var(--feuille); }
.etapes .courant .puce { border-color: var(--foret); color: var(--foret); box-shadow: 0 0 0 5px var(--menthe); }
.etapes strong { display: block; color: var(--marine); }
.etapes small { color: var(--gris); }

/* ---------- Tableaux ---------- */
.tableau-conteneur { width: 100%; overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--r-l); background: var(--surface); }
table.tableau { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.tableau th { text-align: left; color: var(--gris); font-weight: 700; padding: 12px 14px; background: var(--brume); border-bottom: 1px solid var(--trait); white-space: nowrap; }
.tableau td { padding: 12px 14px; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tbody tr:hover { background: var(--survol); }
.tableau .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 719px) {
  .tableau-empile { border: 0; background: none; overflow: visible; }
  .tableau-empile table, .tableau-empile tbody, .tableau-empile tr, .tableau-empile td { display: block; width: 100%; }
  .tableau-empile thead { display: none; }
  .tableau-empile tr { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-l); padding: 8px 14px; margin-bottom: 10px; }
  .tableau-empile td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 8px 0; text-align: right; }
  .tableau-empile td::before { content: attr(data-label); color: var(--gris); font-weight: 700; text-align: left; }
  .tableau-empile td.num { text-align: right; }
}

/* ---------- Chiffres clés ---------- */
.chiffres { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chiffre { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-l); padding: 16px; min-width: 0; }
.chiffre .valeur { font-family: var(--police-titre); font-size: var(--t-2xl); font-weight: 700; color: var(--marine); line-height: 1.1; overflow-wrap: anywhere; }
.chiffre .libelle { color: var(--gris); font-size: var(--t-s); }
a.chiffre { text-decoration: none; color: inherit; }
a.chiffre:hover { border-color: var(--trait-fort); }
.chiffre-alerte { border-color: #f6c768; background: var(--ambre-doux); }

/* ---------- Puces filtres (défilement horizontal interne) ---------- */
.puces { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-inline: calc(var(--gouttiere) * -1); padding-inline: var(--gouttiere); }
.puces::-webkit-scrollbar { display: none; }
.puce {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--trait); background: var(--surface); color: var(--encre); font-weight: 700; font-size: var(--t-s); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.puce:hover { border-color: var(--trait-fort); color: var(--foret); }
.puce[aria-current="true"], .puce.actif { background: var(--foret); border-color: var(--foret); color: #fff; }

/* Onglets */
.onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--trait); overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
.onglets a { padding: 12px 14px; color: var(--gris); text-decoration: none; font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.onglets a[aria-current="page"] { color: var(--foret); border-color: var(--feuille); }

/* Fil d'Ariane / retour */
.retour { display: inline-flex; align-items: center; gap: 6px; color: var(--gris); text-decoration: none; font-weight: 700; font-size: var(--t-s); padding: 8px 0; }
.retour:hover { color: var(--foret); }
.entete-page { padding-block: 24px 8px; }
.entete-page h1 { margin-bottom: 6px; }
.entete-page p { color: var(--gris); max-width: 60ch; }

/* ---------- Accueil ---------- */
.heros { padding-block: 28px 36px; background:
  radial-gradient(1200px 400px at 110% -10%, var(--menthe), transparent 60%), var(--fond); }
@media (min-width: 900px) { .heros { padding-block: 64px 72px; } }
.heros-grille { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .heros-grille { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.heros h1 { font-size: var(--t-4xl); line-height: 1.02; max-width: 14ch; margin-bottom: 16px; }
.heros .accroche { font-size: var(--t-l); color: var(--gris); max-width: 46ch; }
.heros-recherche { margin-top: 24px; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-xl); padding: 16px; box-shadow: var(--ombre-2); }
.heros-recherche .etiquette { display: block; margin-bottom: 10px; }
.heros-recherche .rangee { display: flex; flex-wrap: wrap; gap: 10px; }
.heros-recherche .rangee .btn { flex: 1 1 240px; min-width: 0; padding-block: 10px; }
.garanties { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--gris); font-size: var(--t-s); font-weight: 600; }
.garanties span { display: inline-flex; align-items: center; gap: 6px; }
.garanties .ic { color: var(--feuille); width: 18px; height: 18px; }

/* La grande croix des modules : élément signature */
.plus-modules {
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
}
.plus-modules .bras {
  display: flex; flex-direction: column; gap: 6px; justify-content: flex-end;
  min-height: 150px; padding: 18px; border-radius: var(--r-xl); text-decoration: none; color: var(--marine);
  background: var(--brume); position: relative; overflow: hidden; transition: transform var(--duree), background var(--duree);
}
.plus-modules .bras:hover { transform: translateY(-2px); color: var(--marine); }
.plus-modules .bras strong { font-family: var(--police-titre); font-size: var(--t-l); line-height: 1.15; }
.plus-modules .bras small { color: var(--gris); font-size: var(--t-xs); line-height: 1.35; }
.plus-modules .bras .ic { width: 28px; height: 28px; position: absolute; top: 18px; left: 18px; }
.plus-modules .bras-intime { background: var(--foret); color: #fff; }
.plus-modules .bras-intime:hover { color: #fff; }
.plus-modules .bras-intime small { color: #cfeedd; }
.plus-modules .bras-urgence { background: var(--rouge-doux); }
.plus-modules .bras-urgence .ic { color: var(--rouge); }
.plus-modules .bras-marche { background: var(--ambre-doux); }
.plus-modules .bras-marche .ic { color: var(--ambre); }
.plus-modules .bras-annuaire { background: var(--sarcelle-doux); }
.plus-modules .bras-annuaire .ic { color: var(--sarcelle); }
@media (min-width: 560px) {
  .plus-modules {
    grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto auto;
    grid-template-areas: ". haut ." "gauche centre droite" ". bas .";
  }
  .plus-modules .bras-intime { grid-area: haut; }
  .plus-modules .bras-marche { grid-area: gauche; }
  .plus-modules .bras-urgence { grid-area: droite; }
  .plus-modules .bras-annuaire { grid-area: bas; }
  .plus-modules .coeur { grid-area: centre; display: grid; place-items: center; border-radius: var(--r-xl); background: var(--surface); border: 1.5px dashed var(--trait-fort); }
  .plus-modules .coeur img { width: 64%; }
}
@media (max-width: 559px) { .plus-modules .coeur { display: none; } }

.bande-modules { display: grid; gap: 14px; }
@media (min-width: 900px) { .bande-modules { grid-template-columns: repeat(3, 1fr); } }
.module { padding: 24px; border-radius: var(--r-xl); border: 1px solid var(--trait); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.module h3 { margin: 6px 0 0; }
.module p { color: var(--gris); margin: 0; }
.module .btn { margin-top: auto; align-self: flex-start; }
.module ul { margin: 0; padding-left: 18px; color: var(--encre); }

.parcours { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: etape; }
@media (min-width: 900px) { .parcours { grid-template-columns: repeat(4, 1fr); } }
.parcours li { counter-increment: etape; background: var(--surface); border-radius: var(--r-l); padding: 20px; border: 1px solid var(--trait); }
.parcours li::before { content: counter(etape); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--menthe); color: var(--foret-2); font-family: var(--police-titre); font-weight: 700; margin-bottom: 12px; }
.parcours strong { display: block; color: var(--marine); margin-bottom: 4px; }
.parcours p { color: var(--gris); margin: 0; font-size: var(--t-s); }

/* ---------- Produits ---------- */
.produits { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .produits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1080px) { .produits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.produit { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-l); overflow: hidden; text-decoration: none; color: inherit; min-width: 0; }
.produit:hover { border-color: var(--trait-fort); color: inherit; }
.produit .visuel { aspect-ratio: 1; background: var(--brume); display: grid; place-items: center; position: relative; }
.produit .visuel img { width: 100%; height: 100%; object-fit: cover; }
.produit .visuel .ic { width: 40px; height: 40px; color: var(--trait-fort); }
.produit .corps { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.produit .nom { font-weight: 700; color: var(--encre); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--t-s); }
.produit .vendeur { color: var(--gris); font-size: var(--t-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.produit .prix { margin-top: auto; padding-top: 6px; font-family: var(--police-titre); font-weight: 700; color: var(--marine); font-size: var(--t-l); }
.prix-barre { color: var(--gris-clair); text-decoration: line-through; font-size: var(--t-s); font-weight: 400; margin-left: 4px; }
.remise { position: absolute; top: 10px; left: 10px; background: var(--feuille); color: #fff; font-size: var(--t-xs); font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill); }
.rupture { position: absolute; inset: auto 10px 10px 10px; background: rgba(23,38,47,.82); color: #fff; font-size: var(--t-xs); font-weight: 700; padding: 5px 8px; border-radius: var(--r-s); text-align: center; }

.galerie { aspect-ratio: 1; border-radius: var(--r-xl); background: var(--brume); overflow: hidden; display: grid; place-items: center; }
.galerie img { width: 100%; height: 100%; object-fit: cover; }

/* Panier */
.article-panier { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.article-panier .vignette { width: 72px; height: 72px; border-radius: var(--r-m); background: var(--brume); overflow: hidden; display: grid; place-items: center; }
.article-panier .vignette img { width: 100%; height: 100%; object-fit: cover; }
.barre-action {
  position: fixed; left: 0; right: 0; bottom: calc(var(--onglets) + env(safe-area-inset-bottom)); z-index: 65;
  background: var(--surface); border-top: 1px solid var(--trait); padding: 12px var(--gouttiere); box-shadow: 0 -10px 30px -20px rgba(0,0,0,.3);
}
@media (min-width: 900px) { .barre-action { position: static; box-shadow: none; border: 0; padding: 0; background: none; } }

/* ---------- Boutique ---------- */
.banniere { height: 140px; background: linear-gradient(120deg, var(--foret), var(--feuille)); border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; }
@media (min-width: 768px) { .banniere { height: 220px; border-radius: var(--r-xl); margin-top: 16px; } }
.banniere img { width: 100%; height: 100%; object-fit: cover; }
.logo-boutique { width: 84px; height: 84px; border-radius: 22px; border: 4px solid var(--surface); background: var(--brume); overflow: hidden; display: grid; place-items: center; margin-top: -42px; box-shadow: var(--ombre-1); font-family: var(--police-titre); font-weight: 700; font-size: var(--t-xl); color: var(--foret); }
.logo-boutique img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Annuaire ---------- */
.etab { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.etab h3 { margin: 0 0 4px; font-size: var(--t-l); }
.etab .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--gris); font-size: var(--t-s); }
.etab .meta span { display: inline-flex; align-items: center; gap: 4px; }
.etab .meta .ic { width: 16px; height: 16px; }
.garde { background: var(--feuille); color: #fff; }
.carte-geo { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--r-l); background: var(--brume); }

/* ---------- BioSecours ---------- */
.heros-urgence { background: radial-gradient(900px 380px at 100% 0, var(--rouge-doux), transparent 60%), var(--fond); }
.fiche-publique { max-width: 560px; margin-inline: auto; }
.bandeau-urgence { background: var(--rouge); color: #fff; border-radius: var(--r-xl); padding: 20px; display: grid; gap: 4px; }
.bandeau-urgence h1 { color: #fff; font-size: var(--t-2xl); margin: 0; }
.appel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-l); border: 1.5px solid var(--trait); background: var(--surface); text-decoration: none; color: var(--encre); }
.appel:hover { border-color: var(--rouge); color: var(--encre); }
.appel .numero { margin-left: auto; font-family: var(--police-titre); font-size: var(--t-xl); font-weight: 700; color: var(--rouge); white-space: nowrap; }
.appel-principal { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.appel-principal:hover { color: #fff; filter: brightness(.95); }
.appel-principal .numero { color: #fff; }
.appel-principal .croix { --c: var(--rouge); --f: #fff; }
.donnee-medicale { border-left: 4px solid var(--rouge); padding: 10px 0 10px 14px; }
.donnee-medicale dt { font-weight: 700; color: var(--marine); }
.donnee-medicale dd { margin: 2px 0 0; white-space: pre-line; }

/* Carte physique au format CR80 (85,6 × 54 mm) */
.carte-bio {
  --marine: #0d2b66; --encre: #17262f; --gris: #5b6b66; --rouge: #c8102e; --brume: #f2f7f4; --trait: #d9e5de;
  color: var(--encre);
  width: 100%; max-width: 428px; aspect-ratio: 85.6 / 54; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid var(--trait); box-shadow: var(--ombre-3);
  display: grid; grid-template-columns: 1fr auto; container-type: inline-size;
}
.carte-bio .gauche { padding: 5cqw 0 5cqw 5.5cqw; display: flex; flex-direction: column; gap: 1.6cqw; min-width: 0; }
.carte-bio .titre { display: flex; align-items: center; gap: 2cqw; font-family: var(--police-titre); font-weight: 700; color: var(--rouge); font-size: 4.2cqw; }
.carte-bio .titre img { width: 7cqw; height: 7cqw; }
.carte-bio .nom { font-family: var(--police-titre); font-size: 6cqw; font-weight: 700; color: var(--marine); line-height: 1.05; }
.carte-bio .ligne-contact { font-size: 3.4cqw; color: var(--encre); line-height: 1.25; }
.carte-bio .ligne-contact b { display: block; font-size: 4.6cqw; color: var(--rouge); }
.carte-bio .pied-carte { margin-top: auto; font-size: 2.7cqw; color: var(--gris); }
.carte-bio .droite { background: var(--brume); padding: 4cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw; }
.carte-bio .droite img { width: 31cqw; height: 31cqw; image-rendering: pixelated; }
.carte-bio .droite small { font-size: 2.5cqw; color: var(--gris); text-align: center; }

/* ---------- Magazine ---------- */
.une { display: grid; gap: 20px; }
@media (min-width: 900px) { .une { grid-template-columns: 1.4fr 1fr; } }
.article-carte { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.article-carte:hover h3 { color: var(--foret); }
.article-carte .vignette { aspect-ratio: 16 / 10; border-radius: var(--r-l); background: var(--brume); overflow: hidden; display: grid; place-items: center; position: relative; }
.article-carte .vignette img { width: 100%; height: 100%; object-fit: cover; }
.article-carte .vignette .ic { width: 36px; height: 36px; color: var(--trait-fort); }
.article-carte h3 { margin: 0; font-size: var(--t-l); transition: color var(--duree); }
.article-carte p { margin: 0; color: var(--gris); font-size: var(--t-s); }
.lecture { max-width: 68ch; margin-inline: auto; font-size: var(--t-l); line-height: 1.7; }
.lecture h1 { font-size: var(--t-3xl); }
.lecture h2 { font-size: var(--t-xl); margin-top: 1.6em; }
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--r-l); background: #000; }
.badge-verifie { display: inline-flex; align-items: center; gap: 6px; color: var(--foret-2); font-weight: 700; font-size: var(--t-s); }

/* ---------- Progression ---------- */
.jauge { height: 10px; border-radius: var(--r-pill); background: var(--brume-2); overflow: hidden; }
.jauge > span { display: block; height: 100%; background: var(--feuille); border-radius: inherit; }

/* ---------- Dialogue ---------- */
dialog { border: 0; border-radius: var(--r-xl); padding: 0; width: min(520px, calc(100vw - 24px)); box-shadow: var(--ombre-3); color: var(--encre); }
dialog::backdrop { background: rgba(13, 43, 102, .45); backdrop-filter: blur(3px); }
dialog .dialogue-corps { padding: 24px; }
dialog .dialogue-pied { padding: 16px 24px; background: var(--brume); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Espaces professionnels / console ---------- */
.espace-entete { background: var(--marine-fixe); color: #dbe5f5; padding-block: 24px; }
.espace-entete h1 { color: #fff; margin: 0; font-size: var(--t-2xl); }
.espace-entete p { margin: 4px 0 0; }
.espace-entete .btn-secondaire { --fond: transparent; --texte: #fff; --bord: rgba(255,255,255,.35); }
.console { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
.console-corps { padding: 24px var(--gouttiere) 48px; min-width: 0; }
.file-attente { display: grid; gap: 10px; }
.file-attente .carte { display: grid; gap: 10px; }
@media (min-width: 720px) { .file-attente .carte { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

/* Mission (livreur) */
.mission-code { font-family: var(--police-titre); font-size: 2.5rem; letter-spacing: .3em; font-weight: 700; color: var(--marine); text-align: center; padding: 12px; background: var(--brume); border-radius: var(--r-l); }

/* ---------- Divers ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--menthe); color: var(--foret-2); display: grid; place-items: center; font-weight: 700; flex: none; }
.separateur { display: flex; align-items: center; gap: 12px; color: var(--gris); font-size: var(--t-s); }
.separateur::before, .separateur::after { content: ""; flex: 1; height: 1px; background: var(--trait); }
.code-suivi { font-family: var(--police-titre); font-weight: 700; letter-spacing: .06em; color: var(--marine); }
.qr-image { width: 220px; height: 220px; image-rendering: pixelated; border-radius: var(--r-m); background: #fff; padding: 10px; border: 1px solid var(--trait); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ================================================================== */
/* Mouvement : l'interface réagit et s'anime (désactivé si l'appareil   */
/* demande moins d'animations)                                          */
/* ================================================================== */
/* Transitions entre pages (navigateurs compatibles) : la barre latérale et les onglets restent fixes */
@view-transition { navigation: auto; }
.lateral { view-transition-name: lateral; }
.onglets-bas { view-transition-name: onglets; }
.entete { view-transition-name: entete; }
::view-transition-old(root) { animation: 160ms ease-in both sortie-page; }
::view-transition-new(root) { animation: 260ms cubic-bezier(.2, .8, .2, 1) both entree-page; }
@keyframes sortie-page { to { opacity: 0; transform: translateY(-6px); } }
@keyframes entree-page { from { opacity: 0; transform: translateY(10px); } }

/* Apparition au défilement (classe ajoutée par app.js) */
.js .revele { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .55s cubic-bezier(.2, .8, .2, 1), transform .55s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 60ms); }
.js .revele.visible { opacity: 1; transform: none; }
.apparait { animation: entree-page .5s cubic-bezier(.2, .8, .2, 1) both; }

/* Cartes et boutons : relief au survol, enfoncement au toucher */
.carte-lien, .produit, a.chiffre, .bras, .module { transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, border-color .22s; }
@media (hover: hover) {
  .carte-lien:hover, .produit:hover, a.chiffre:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(13, 43, 102, .35); }
  .btn:hover .ic { transform: translateX(2px); }
  .nav-lat a:hover .ic { transform: scale(1.12); }
}
.btn .ic, .nav-lat .ic, .onglets-bas .ic { transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.btn:active { transform: scale(.96); }
.carte-lien:active, .produit:active { transform: scale(.985); }
/* Onglet actif : l'icône saute légèrement */
.onglets-bas a[aria-current="page"] .ic { animation: saut .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes saut { 40% { transform: translateY(-4px) scale(1.12); } }
/* Ondulation au toucher */
.onde { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .18; pointer-events: none; animation: onde .6s ease-out forwards; }
@keyframes onde { to { transform: scale(4); opacity: 0; } }
.btn, .bouton-rond, .nav-lat a, .onglets-bas a { overflow: hidden; }
/* Compteurs (panier, notifications) : rebond quand le nombre change */
.compteur.rebond { animation: rebond .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rebond { 30% { transform: scale(1.45); } }
/* Accueil : modules qui flottent doucement, croix qui respire */
.plus-modules > * { animation: flotte 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.4s); }
@keyframes flotte { 50% { transform: translateY(-6px); } }
.plus-modules .coeur img, .croix-l { animation: respire 4s ease-in-out infinite; }
@keyframes respire { 50% { transform: scale(1.05); } }
/* Squelettes de chargement */
.squelette { position: relative; overflow: hidden; background: var(--brume); border-radius: var(--r-m); min-height: 1em; }
.squelette::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: balaye 1.3s infinite; }
@keyframes balaye { to { transform: translateX(100%); } }
/* Changement de thème en douceur */
html.transition-theme, html.transition-theme * { transition: background-color .35s, color .35s, border-color .35s !important; }
/* Pastilles « en cours » qui pulsent */
.pill-info::before, .pill-attente::before { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js .revele { opacity: 1; transform: none; transition: none; }
  .plus-modules > *, .plus-modules .coeur img, .croix-l, .pill-info::before, .pill-attente::before { animation: none; }
}

/* ================================================================== */
/* Visite guidée                                                       */
/* ================================================================== */
.tuto-voile { position: fixed; inset: 0; z-index: 400; }
.tuto-voile.plein { background: rgba(6, 18, 40, .58); backdrop-filter: blur(2px); }
.tuto-trou { position: fixed; z-index: 401; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 4px var(--feuille), 0 0 0 9999px rgba(6, 18, 40, .58);
  transition: left .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1), width .35s, height .35s; }
.tuto-trou::after { content: ""; position: absolute; inset: -4px; border-radius: 18px; border: 3px solid var(--feuille); animation: halo 1.6s ease-out infinite; }
@keyframes halo { to { inset: -16px; opacity: 0; border-radius: 26px; } }
.tuto-bulle { position: fixed; z-index: 402; width: min(380px, calc(100vw - 32px)); background: var(--surface); color: var(--encre);
  border-radius: 20px; padding: 18px 18px 14px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .45); border: 1px solid var(--trait); }
.tuto-bulle h3 { font-size: var(--t-l); margin: 2px 0 6px; }
.tuto-bulle .tuto-texte { margin: 0 0 14px; color: var(--gris); }
.tuto-etape { margin: 8px 0 0; font-size: var(--t-xs); font-weight: 700; color: var(--foret); text-transform: uppercase; letter-spacing: .04em; }
.tuto-progression { height: 4px; border-radius: 4px; background: var(--brume); overflow: hidden; }
.tuto-progression span { display: block; height: 100%; background: var(--feuille); border-radius: 4px; transition: width .35s; }
.tuto-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tuto-centre { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); text-align: center; padding: 26px 22px 18px; }
.tuto-centre .tuto-actions { justify-content: space-between; }
.tuto-feuille { left: 12px !important; right: 12px; width: auto; }
.tuto-feuille.en-bas { bottom: calc(12px + env(safe-area-inset-bottom)); top: auto !important; }
.tuto-feuille.en-haut { top: calc(12px + env(safe-area-inset-top)) !important; }
.tuto-bulle.entre { animation: bulle .35s cubic-bezier(.2, .8, .2, 1); }
.tuto-centre.entre { animation: bulle-centre .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes bulle { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes bulle-centre { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .tuto-trou::after { animation: none; } }

/* ---------- Impression ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .entete, .onglets-bas, .pied, .messages, .reseau, .ne-pas-imprimer, .barre-action { display: none !important; }
  main { padding: 0; min-height: 0; }
  .carte-bio { width: 85.6mm; max-width: none; height: 54mm; box-shadow: none; border: .2mm solid #999; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* Pages autonomes (fiche d'urgence publique) : pas de barre latérale */
.sans-lateral .app-principal { margin-left: 0; }
.sans-lateral .entete { display: block; }
.sans-lateral main { padding-bottom: 32px; }
.fichier-actuel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 12px; border-radius: var(--r-s); background: var(--brume); font-size: var(--t-s); }
.fichier-actuel .case { margin: 0; }

/* Langues à mots longs (allemand…) : césure et coupure plutôt que débordement */
h1, h2, h3, h4, .titre-hero, .carte-titre, p, li, dd, td, strong, label { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

/* Pied de page complet */
.pied-marque img { height: 40px; width: auto; margin-bottom: 10px; }
.pied-marque p { margin: 0; max-width: 32ch; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 18px; font-size: var(--t-xs); }
.pied ul a { overflow-wrap: anywhere; }
/* Contact */
.grille-contact { display: grid; gap: 20px; align-items: start; }
@media (min-width: 860px) { .grille-contact { grid-template-columns: minmax(260px, 1fr) 1.6fr; } }


/* ================================================================== */
/* Adaptation à chaque support                                         */
/* ================================================================== */
/* Tablette : rail d'icônes */
@media (min-width: 720px) and (max-width: 1199.98px) {
  :root { --lateral-largeur: 96px; }
  .lateral { padding: 14px 8px 10px; }
  .lateral .marque { padding: 0 0 10px; justify-content: center; }
  .lateral .marque img { display: none !important; }
  .lateral .marque::before { content: ""; width: 46px; height: 46px; background: url("../img/croix.5aab4c7d057f.png") center / contain no-repeat; }
  .lateral .nav-lat .groupe, .lateral-pied, .lateral [data-installer] { display: none !important; }
  .lateral .nav-lat a, .lateral .nav-lat button {
    flex-direction: column; gap: 5px; padding: 10px 2px; font-size: 10.5px; line-height: 1.15; text-align: center; justify-content: center; border-radius: 14px;
  }
  .lateral .nav-lat .ic { width: 23px; height: 23px; }
  .lateral .nav-lat .compteur { position: absolute; top: 4px; right: 14px; margin: 0; }
  .lateral .nav-lat a[aria-current="page"]::before { content: ""; position: absolute; left: -8px; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0; background: var(--feuille); }
  .lateral-defile { margin: 0 -4px; padding: 0 4px; scrollbar-width: none; }
  .entete .marque { visibility: hidden; width: 0; }
  .entete .conteneur { justify-content: flex-end; }
  /* Menu : panneau latéral droit (la navigation est déjà dans le rail) */
  .menu-panneau { left: auto; width: min(420px, 100%); border-left: 1px solid var(--trait); box-shadow: var(--ombre-3, 0 20px 50px rgba(0,0,0,.18)); padding-bottom: 24px; }
  .menu-panneau > .nav-lat { display: none; }
}
/* Petits téléphones */
@media (max-width: 359.98px) {
  :root { --gouttiere: 12px; --t-3xl: 1.85rem; --t-2xl: 1.5rem; }
  .onglets-bas a { font-size: 10px; }
  .btn { padding-inline: 16px; }
}
/* Téléphone à l'horizontale : barres plus fines pour laisser la place au contenu */
@media (max-height: 480px) and (orientation: landscape) and (max-width: 1000px) {
  :root { --entete: 52px; --onglets: 52px; }
  .onglets-bas a { flex-direction: row; gap: 6px; font-size: 12px; }
  .onglets-bas a .ic { width: 20px; height: 20px; }
  .onglets-bas a[aria-current="page"]::before { display: none; }
  .heros { padding-block: 20px; }
}
/* Grands écrans */
@media (min-width: 1600px) { .produits { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 2200px) { .produits { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* Très grands écrans et téléviseurs : agrandissement proportionnel (lecture à distance) */
@media (min-width: 1920px) { html { font-size: 112.5%; } :root { --lateral-largeur: 300px; --largeur: 1820px; } }
/* Au-delà, l'interface est agrandie d'un bloc (zoom) : un écran 4K ou une TV affiche la même mise en page qu'un écran de 1920 px, en plus grand */
@media (min-width: 2560px) { html { zoom: 1.333; } }
@media (min-width: 3400px) { html { zoom: 2; } }
/* Téléviseurs et télécommandes (pas de survol, grand écran) : focus très visible pour la navigation aux flèches */
@media (hover: none) and (min-width: 1200px) {
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 4px solid var(--feuille); outline-offset: 4px; box-shadow: 0 0 0 10px rgba(18, 161, 80, .18);
  }
  .carte-lien:focus-visible { transform: scale(1.03); }
}
/* Écrans tactiles : cibles de 44 px minimum */
@media (pointer: coarse) { .nav-lat a, .nav-lat button, .puce, .langues a { min-height: 44px; } .langues a { display: inline-flex; align-items: center; } }

/* Cartes-liens en ligne (aide, contact, espace) : icône à gauche du texte */
.carte-lien.ligne { display: flex; align-items: center; flex-wrap: nowrap; }
.carte-lien.ligne > .croix { flex: none; }
/* Notes lisibles en mode nuit */
:root[data-theme="sombre"] .note-danger { color: #ffc2cc; }
:root[data-theme="sombre"] .note-attente { color: #ffd9a8; }
:root[data-theme="sombre"] .note-succes { color: #b9f3cf; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .note-danger { color: #ffc2cc; }
  :root[data-theme="auto"] .note-attente { color: #ffd9a8; }
  :root[data-theme="auto"] .note-succes { color: #b9f3cf; }
}

/* ---------- Paiement direct (Mixx by Yas, Moov Money) ---------- */
.paiement-direct { margin-bottom: 18px; }
.pd-attente { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 18px 8px 4px; }
.pd-attente[hidden], .pd-formulaire[hidden] { display: none; }
.pd-telephone { position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--menthe); color: var(--foret); }
.pd-telephone .ic { width: 34px; height: 34px; animation: pd-vibre 1.6s ease-in-out infinite; }
.pd-onde { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--foret); animation: pd-onde 1.6s ease-out infinite; }
@keyframes pd-vibre { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } 85% { transform: rotate(-6deg); } }
@keyframes pd-onde { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.paiement-direct.pd-reussi .pd-telephone { background: var(--foret); color: #fff; }
.paiement-direct.pd-reussi .pd-onde, .paiement-direct.pd-reussi .ic { animation: none; }
.autre-paiement { border-top: 1px dashed var(--trait); padding-top: 14px; margin-top: 6px; }
.autre-paiement > summary { cursor: pointer; font-weight: 700; color: var(--foret); list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.autre-paiement > summary::-webkit-details-marker { display: none; }
.autre-paiement > summary .ic { transition: transform .2s; }
.autre-paiement[open] > summary .ic { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .pd-telephone .ic, .pd-onde { animation: none; } }

/* Les fieldsets prennent par défaut la largeur de leur contenu le plus long (liste déroulante) : on les contraint */
fieldset { min-width: 0; max-width: 100%; }
select { max-width: 100%; text-overflow: ellipsis; }
.choix label { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Visiteurs (non connectés) : barre du haut sur ordinateur, onglets en bas sur téléphone ---------- */
.nav-haut, .haut-large, .ic-langue { display: none; }
.visiteur .lateral { display: none !important; }
.visiteur .app-principal { margin-left: 0; }
.visiteur .entete { display: block; }
.visiteur .entete .marque { visibility: visible; width: auto; }
@media (min-width: 720px) {
  .visiteur .messages { left: 50%; }
  .visiteur .entete .conteneur { justify-content: flex-start; }
}
@media (min-width: 1024px) {
  .visiteur .entete .conteneur { gap: 18px; height: 72px; }
  .visiteur .entete .marque img { height: 40px; }
  .visiteur .nav-haut { display: flex; align-items: center; gap: 2px; min-width: 0; }
  .nav-haut a { position: relative; padding: 10px 12px; border-radius: var(--r-pill); color: var(--encre); font-weight: 700; font-size: var(--t-s); text-decoration: none; white-space: nowrap; }
  .nav-haut a:hover { background: var(--brume); color: var(--foret); }
  .nav-haut a[aria-current="page"] { color: var(--foret); background: var(--menthe); }
  .visiteur .haut-large { display: inline-flex; }
  .visiteur .entete-actions { gap: 8px; }
  /* Le menu devient un petit panneau « langue et apparence » */
  .visiteur .ic-menu { display: none; } .visiteur .ic-langue { display: inline-grid; }
  .visiteur .menu { position: relative; }
  .visiteur .menu-panneau { position: absolute; inset: calc(100% + 10px) 0 auto auto; width: 330px; height: auto; max-height: 70vh;
    border: 1px solid var(--trait); border-radius: var(--r-l); box-shadow: 0 20px 50px rgba(13,43,102,.16); padding: 14px; }
  .visiteur .menu-panneau > :not(.preferences) { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .nav-haut a { padding: 9px 9px; }
  .visiteur .haut-large .ic { display: none; }
}
@media (min-width: 720px) and (max-width: 1023.98px) {
  .visiteur .menu-panneau > .nav-lat { display: grid; }   /* pas de rail pour les visiteurs : le menu porte la navigation */
}

/* ---------- Accueil du lancement : boutiques ---------- */
.slogan-heros { font-family: var(--police-titre); font-weight: 700; color: var(--foret); font-size: var(--t-s); letter-spacing: .02em; margin-bottom: 8px; }
.heros-boutique h1 { max-width: 16ch; }
.barre-heros { max-width: 560px; background: var(--surface); box-shadow: var(--ombre-2); }
.portes { display: grid; gap: 14px; }
.porte { border-radius: var(--r-xl); padding: 22px; display: grid; gap: 10px; align-content: start; }
.porte h2 { margin: 0; font-size: var(--t-2xl); }
.porte p { margin: 0; }
.porte-client { background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre-2); }
.porte-vendeur { background: var(--foret); color: #fff; box-shadow: 0 18px 40px rgba(11,93,59,.28); }
.porte-vendeur h2 { color: #fff; }
.porte-vendeur p { color: #e3f6ea; }
:root[data-theme="sombre"] .porte-vendeur, .porte-vendeur { --marine: #fff; }
@media (min-width: 640px) and (max-width: 959.98px) { .portes { grid-template-columns: 1fr 1fr; } }
.rayons { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rayon { display: grid; gap: 4px; justify-items: start; padding: 16px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--trait); text-decoration: none; color: var(--encre); transition: transform .2s, box-shadow .2s, border-color .2s; }
.rayon:hover { transform: translateY(-3px); box-shadow: var(--ombre-2); border-color: var(--feuille); }
.rayon-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--menthe); color: var(--foret); margin-bottom: 6px; }
.rayon-ic .ic { width: 24px; height: 24px; }
.rayon strong { font-family: var(--police-titre); color: var(--marine); }
.rayon small { color: var(--gris); font-size: var(--t-xs); }
.etapes-accueil { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .etapes-accueil { grid-template-columns: repeat(3, 1fr); } }
.etapes-accueil li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-l); padding: 18px; }
.etapes-accueil .num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--foret); color: #fff; font: 700 var(--t-l) var(--police-titre); }
.etapes-accueil h3 { margin: 0 0 4px; font-size: var(--t-l); }
.etapes-accueil p { margin: 0; color: var(--gris); }
.bande-vendeur { background: linear-gradient(135deg, #0b5d3b, #0d4f35 60%, #0d2b66); color: #fff; }
.bande-vendeur h2 { color: #fff; font-size: var(--t-3xl); }
.bande-vendeur p { color: #e3f6ea; }
.liste-coche { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.liste-coche li { display: flex; gap: 10px; align-items: flex-start; color: #fff; font-weight: 700; }
.liste-coche .ic { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--feuille); color: #fff; }
.btn-fantome-clair { --fond: transparent; --texte: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-fantome-clair:hover { --fond: rgba(255,255,255,.12); }
.vendeur-etapes { color: var(--encre); }
.vendeur-etapes ol { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: e; display: grid; gap: 14px; }
.vendeur-etapes li { counter-increment: e; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.vendeur-etapes li::before { content: counter(e); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--menthe); color: var(--foret); font: 700 var(--t-m) var(--police-titre); }
.vendeur-etapes li span { color: var(--gris); font-size: var(--t-s); }
.visiteur .haut-large { white-space: nowrap; }
.visiteur .nav-haut { overflow: hidden; }
@media (min-width: 1024px) and (max-width: 1279.98px) { .nav-haut .secondaire { display: none; } }
@media (min-width: 1024px) and (max-width: 1150px) { .nav-haut a[href*="/magazine/"] { display: none; } }

/* ================================================================== */
/* Vitrine 2026 : accueil, boutiques, fiches produit, panier           */
/* ================================================================== */
:root { --vert-fixe: #0b5d3b; --vert-fixe-2: #084a2f; --feuille-fixe: #12a150; --nuit-verte: #062b1c; }
.btn-blanc { --texte: #084a2f; }

/* Tons par rayon (icône du rayon) : fonds doux, suivent le mode nuit */
[data-ton] { --ton-fond: var(--menthe); --ton-encre: var(--foret); }
[data-ton="droplet"] { --ton-fond: var(--sarcelle-doux); --ton-encre: var(--sarcelle); }
[data-ton="heart-hand"] { --ton-fond: var(--rouge-doux); --ton-encre: var(--rouge); }
[data-ton="sparkle"] { --ton-fond: var(--ambre-doux); --ton-encre: var(--ambre); }
[data-ton="activity"] { --ton-fond: var(--info-doux); --ton-encre: var(--info); }
[data-ton="stethoscope"] { --ton-fond: var(--brume-2); --ton-encre: var(--marine); }

/* Titres de section */
.v-section { padding-block: 40px; }
@media (min-width: 900px) { .v-section { padding-block: 64px; } }
.v-section-serree { padding-block: 24px 48px; }
.v-fond-doux { background: linear-gradient(180deg, var(--brume), var(--fond)); }
.v-titre-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.v-titre-section h2 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); letter-spacing: -.02em; }
.v-titre-centre { justify-content: center; text-align: center; }
.v-surtitre { margin: 0 0 6px; font-size: var(--t-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--feuille); }
.v-surtitre-clair { color: #8fe0b4; }
.v-lien-fleche { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--foret); text-decoration: none; white-space: nowrap; }
.v-lien-fleche .ic { width: 18px; height: 18px; transition: transform .2s; }
.v-lien-fleche:hover .ic { transform: translateX(3px); }
.v-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Héros ---------- */
.v-heros { position: relative; overflow: hidden; padding-block: 28px 72px;
  background:
    radial-gradient(700px 420px at 92% 8%, color-mix(in srgb, var(--feuille) 22%, transparent), transparent 70%),
    radial-gradient(600px 380px at -10% 100%, var(--info-doux), transparent 70%),
    var(--fond); }
.v-heros::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--foret) 22%, transparent) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%); }
@media (min-width: 900px) { .v-heros { padding-block: 64px 120px; } }
.v-heros-grille { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .v-heros-grille { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; } }
.v-slogan { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px 7px 10px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre-1); font-weight: 700; font-size: var(--t-s); color: var(--foret); }
.v-point { width: 10px; height: 10px; border-radius: 50%; background: var(--feuille); box-shadow: 0 0 0 0 color-mix(in srgb, var(--feuille) 60%, transparent); animation: v-ping 2.2s infinite; }
@keyframes v-ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.v-heros h1 { font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; max-width: 15ch; }
.v-surligne { position: relative; color: var(--foret); white-space: normal;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--feuille) 28%, transparent) 62%, color-mix(in srgb, var(--feuille) 28%, transparent) 92%, transparent 92%); }
.v-accroche { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); color: var(--gris); max-width: 50ch; margin: 0 0 24px; }
.v-recherche { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--trait); border-radius: var(--r-pill);
  padding: 6px 6px 6px 18px; box-shadow: 0 18px 40px -22px rgba(11, 93, 59, .45); max-width: 620px; transition: border-color .2s, box-shadow .2s; }
.v-recherche:focus-within { border-color: var(--feuille); box-shadow: 0 0 0 4px color-mix(in srgb, var(--feuille) 18%, transparent), 0 18px 40px -22px rgba(11, 93, 59, .45); }
.v-recherche > .ic { width: 22px; height: 22px; color: var(--gris); flex: none; }
.v-recherche input { flex: 1; min-width: 0; border: 0; background: none; outline: none; box-shadow: none; padding: 10px 4px; font-size: var(--t-m); min-height: 44px; color: var(--encre); }
.v-recherche input:focus { box-shadow: none; outline: none; }
.v-recherche .btn { border-radius: var(--r-pill); flex: none; }
@media (max-width: 420px) { .v-recherche .btn { padding-inline: 14px; } }
.v-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; font-size: var(--t-s); color: var(--gris); }
.v-suggestions a { padding: 5px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--trait); color: var(--encre); text-decoration: none; font-weight: 600; transition: border-color .2s, color .2s; }
.v-suggestions a:hover { border-color: var(--feuille); color: var(--foret); }
.v-garanties { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: var(--t-s); font-weight: 700; color: var(--encre); }
.v-garanties li { display: inline-flex; align-items: center; gap: 8px; }
.v-garanties li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--menthe); color: var(--foret); }
.v-garanties .ic { width: 17px; height: 17px; }
.v-garanties-compactes { margin-top: 16px; font-weight: 600; color: var(--gris); }
.v-garanties-compactes li > span { width: 28px; height: 28px; border-radius: 8px; }

/* Scène illustrée : colis neutre et bulles flottantes */
.v-scene { position: relative; min-height: 340px; display: grid; place-items: center; }
@media (min-width: 1000px) { .v-scene { min-height: 500px; } }
.v-scene-fond { position: absolute; inset: 4% 2%; border-radius: 40px; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, #1bb562 0%, var(--vert-fixe) 45%, var(--nuit-verte) 100%);
  box-shadow: 0 40px 80px -40px rgba(6, 43, 28, .75); }
.v-anneau { position: absolute; width: 520px; height: 520px; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); }
.v-anneau-2 { width: 340px; height: 340px; border-color: rgba(255,255,255,.2); }
.v-croix-geante { position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; opacity: .08;
  background: linear-gradient(#fff, #fff) center / 34% 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 34% no-repeat; border-radius: 30px; rotate: -12deg; }
.v-colis { position: relative; width: min(64%, 300px); height: auto; filter: drop-shadow(0 30px 30px rgba(0,0,0,.25)); animation: v-flotte 6s ease-in-out infinite; }
@keyframes v-flotte { 50% { transform: translateY(-12px); } }
.v-bulle, .v-vedette { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.95); color: #0b3a26; font-weight: 700; font-size: var(--t-s); box-shadow: 0 16px 34px -14px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: v-flotte 7s ease-in-out infinite; white-space: nowrap; }
.v-bulle .ic { width: 18px; height: 18px; color: var(--feuille-fixe); }
.v-bulle-1 { top: 10%; left: 0; animation-delay: -1s; }
.v-bulle-2 { top: 30%; right: -2%; animation-delay: -3s; }
.v-bulle-3 { bottom: 12%; left: 3%; animation-delay: -5s; }
.v-bulle-4 { bottom: 6%; right: 4%; animation-delay: -2s; }
.v-vedette { bottom: 4%; right: 2%; border-radius: 20px; padding: 8px 14px 8px 8px; gap: 12px; text-decoration: none; max-width: 270px; animation-delay: -2s; }
.v-vedette:hover { color: #0b3a26; }
.v-vedette-visuel { flex: none; width: 54px; height: 54px; border-radius: 14px; background: #e3f5ea; color: #0b5d3b; display: grid; place-items: center; overflow: hidden; }
.v-vedette-visuel img { width: 100%; height: 100%; object-fit: cover; }
.v-vedette-visuel .ic { width: 26px; height: 26px; }
.v-vedette small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #12a150; }
.v-vedette strong { display: block; font-size: var(--t-s); max-width: 170px; }
.v-vedette b { font-family: var(--police-titre); color: #0d2b66; }
@media (max-width: 999px) {
  .v-scene { min-height: 300px; margin-inline: auto; width: 100%; max-width: 520px; }
  .v-bulle { font-size: var(--t-xs); padding: 7px 11px; }
  .v-bulle-2 { right: 0; }
}
@media (max-width: 420px) { .v-scene { min-height: 270px; } .v-bulle-3 { display: none; } }

/* ---------- Deux portes (acheter / vendre) ---------- */
.v-portes-zone { position: relative; z-index: 2; margin-top: -48px; }
@media (min-width: 900px) { .v-portes-zone { margin-top: -84px; } }
.v-portes { display: grid; gap: 16px; }
@media (min-width: 860px) { .v-portes { grid-template-columns: 1fr 1fr; gap: 20px; } }
.v-porte { position: relative; overflow: hidden; display: flex; gap: 18px; padding: 24px; border-radius: 28px; }
@media (min-width: 768px) { .v-porte { padding: 32px; } }
.v-porte h2 { margin: 0 0 6px; font-size: var(--t-2xl); }
.v-porte p { margin: 0; }
.v-porte-ic { flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; }
.v-porte-ic .ic { width: 28px; height: 28px; }
.v-porte-client { background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre-3); }
.v-porte-client p { color: var(--gris); }
.v-porte-client .v-porte-ic { background: var(--menthe); color: var(--foret); }
.v-porte-vendeur { color: #fff; background: linear-gradient(135deg, var(--vert-fixe) 0%, #0f7a47 55%, var(--feuille-fixe) 100%); box-shadow: 0 30px 60px -30px rgba(11, 93, 59, .8); }
.v-porte-vendeur h2 { color: #fff; }
.v-porte-vendeur p { color: #d4f2e1; }
.v-porte-vendeur strong { color: #fff; }
.v-porte-vendeur .v-porte-ic { background: rgba(255,255,255,.16); color: #fff; }
.v-porte-vendeur::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); }
.v-porte-vendeur > .min0 { padding-right: 96px; }
.v-tampon { position: absolute; right: 18px; top: 18px; z-index: 1; display: grid; place-content: center; text-align: center; width: 88px; height: 88px; border-radius: 50%; padding: 6px;
  background: #fff; color: var(--vert-fixe); font-size: 9px; font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; rotate: 10deg; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.v-tampon b { display: block; font-family: var(--police-titre); font-size: 28px; letter-spacing: 0; }
@media (max-width: 520px) { .v-porte { flex-direction: column; } .v-porte-vendeur > .min0 { padding-right: 0; } .v-tampon { width: 74px; height: 74px; } .v-tampon b { font-size: 22px; } }

/* ---------- Rayons ---------- */
.v-rayons { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 12px; margin-inline: -4px; scrollbar-width: none; }
.v-rayons::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .v-rayons { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); overflow: visible; } }
.v-rayon { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 168px; padding: 18px; border-radius: 24px; text-decoration: none;
  background: var(--ton-fond); color: var(--encre); overflow: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.v-rayon::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: color-mix(in srgb, var(--ton-encre) 10%, transparent); transition: transform .35s; }
.v-rayon-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface); color: var(--ton-encre); margin-bottom: auto; box-shadow: var(--ombre-1); }
.v-rayon-ic .ic { width: 26px; height: 26px; }
.v-rayon strong { font-family: var(--police-titre); font-size: var(--t-l); line-height: 1.15; color: var(--marine); margin-top: 18px; }
.v-rayon small { color: var(--gris); font-weight: 600; }
@media (hover: hover) { .v-rayon:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -20px rgba(13,43,102,.4); color: var(--encre); } .v-rayon:hover::after { transform: scale(1.4); } }

/* ---------- Cartes produit ---------- */
.produits { gap: 12px; }
@media (min-width: 720px) { .produits { gap: 20px; } }
.produit { position: relative; border: 1px solid var(--trait); border-radius: 22px; padding: 6px; box-shadow: var(--ombre-1); }
.produit .visuel { aspect-ratio: 1; border-radius: 17px; overflow: hidden; background: var(--ton-fond, var(--brume)); }
.produit .visuel img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) { .produit:hover .visuel img { transform: scale(1.05); } }
.visuel-ic { display: grid; place-items: center; width: 44%; aspect-ratio: 1; border-radius: 28%; background: var(--surface); color: var(--ton-encre, var(--foret)); box-shadow: 0 14px 30px -16px rgba(13,43,102,.35); }
.produit .visuel .visuel-ic .ic { width: 46%; height: 46%; color: inherit; }
.produit .visuel::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.7), transparent 40%); }
.produit .corps { padding: 10px 8px 8px; gap: 3px; }
.produit .vendeur { display: flex; align-items: center; gap: 4px; order: -1; }
.produit .vendeur .ic { width: 13px; height: 13px; flex: none; }
.produit .nom { font-size: var(--t-m); text-decoration: none; color: var(--encre); }
.produit .nom:hover { color: var(--foret); }
.produit .prix { font-size: var(--t-xl); letter-spacing: -.01em; padding-right: 48px; }
.remise { top: 10px; left: 10px; background: var(--rouge); padding: 4px 10px; box-shadow: 0 6px 14px -6px rgba(200,16,46,.6); }
.stock-bas { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--ambre-doux); color: var(--ambre); font-size: 11px; font-weight: 700; }
.ajout-rapide { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 14px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--foret); color: #fff; box-shadow: 0 10px 22px -10px rgba(11,93,59,.8); transition: transform .2s cubic-bezier(.3,1.6,.5,1), background .2s; }
.ajout-rapide .ic { width: 22px; height: 22px; transition: transform .25s; }
.ajout-rapide:hover { background: var(--foret-2); transform: scale(1.06); }
.ajout-rapide:hover .ic { transform: rotate(90deg); }
.ajout-rapide:active { transform: scale(.92); }
.ajout-rapide:focus-visible { outline: 3px solid var(--feuille); outline-offset: 2px; }
:root[data-theme="sombre"] .ajout-rapide { color: #06210f; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .ajout-rapide { color: #06210f; } }
.v-filtrable { display: flex; min-width: 0; }
.v-filtrable > .produit { flex: 1; }

/* ---------- Cartes boutique ---------- */
.v-boutiques { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.v-boutique { position: relative; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--trait);
  text-decoration: none; color: var(--encre); box-shadow: var(--ombre-1); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
@media (hover: hover) { .v-boutique:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(13,43,102,.45); color: var(--encre); } }
.v-boutique-couv, .v-couverture { display: block; height: 96px; overflow: hidden;
  background: radial-gradient(circle at 80% 20%, hsl(var(--teinte, 152) 70% 55% / .9), transparent 55%),
              linear-gradient(135deg, hsl(var(--teinte, 152) 75% 22%), hsl(var(--teinte, 152) 70% 36%)); }
.v-boutique-couv img, .v-couverture img { width: 100%; height: 100%; object-fit: cover; }
.v-boutique-couv:not(:has(img)), .v-couverture:not(:has(img)) { background-color: #0b5d3b; }
.v-boutique-logo { width: 64px; height: 64px; border-radius: 18px; border: 4px solid var(--surface); background: var(--menthe); color: var(--foret); overflow: hidden;
  display: grid; place-items: center; font-family: var(--police-titre); font-weight: 700; font-size: var(--t-l); box-shadow: var(--ombre-1); flex: none; }
.v-boutique-logo img { width: 100%; height: 100%; object-fit: cover; }
.v-boutique > .v-boutique-logo { margin: -34px 0 0 16px; position: relative; }
.v-boutique-corps { display: flex; flex-direction: column; gap: 2px; padding: 8px 18px 18px; min-width: 0; }
.v-boutique-corps strong { font-family: var(--police-titre); font-size: var(--t-l); color: var(--marine); }
.v-boutique-corps small { color: var(--gris); display: flex; align-items: center; gap: 4px; }
.v-boutique-corps small .ic { width: 14px; height: 14px; flex: none; }
.v-boutique-pied { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: var(--t-xs); font-weight: 700; color: var(--gris); }
.v-boutique-pied > span { padding: 4px 10px; border-radius: var(--r-pill); background: var(--brume); }
.v-verifie { display: inline-flex; align-items: center; gap: 4px; color: var(--foret); }
.v-boutique-pied .v-verifie { background: var(--menthe); }
.v-verifie .ic { width: 14px; height: 14px; }

/* ---------- Étapes ---------- */
.v-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
@media (min-width: 860px) {
  .v-etapes { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .v-etapes::before { content: ""; position: absolute; top: 60px; left: 16%; right: 16%; border-top: 2px dashed var(--trait-fort); }
}
.v-etapes li { position: relative; background: var(--surface); border: 1px solid var(--trait); border-radius: 26px; padding: 26px; box-shadow: var(--ombre-1); }
.v-etape-num { position: absolute; top: 18px; right: 22px; font-family: var(--police-titre); font-weight: 700; font-size: 2.6rem; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px var(--trait-fort); }
.v-etape-ic { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--foret); color: #fff; margin-bottom: 18px;
  box-shadow: 0 14px 26px -14px rgba(11,93,59,.9); }
:root[data-theme="sombre"] .v-etape-ic { color: #06210f; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .v-etape-ic { color: #06210f; } }
.v-etape-ic .ic { width: 28px; height: 28px; }
.v-etapes h3 { margin: 0 0 6px; font-size: var(--t-xl); }
.v-etapes p { margin: 0; color: var(--gris); }
.v-bandeau-compte, .v-campagne, .v-cta-vendeur { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 26px; margin-top: 24px; }
.v-bandeau-compte { background: var(--surface); border: 1.5px solid var(--trait); box-shadow: var(--ombre-2); }
.v-bandeau-compte > .min0, .v-campagne > .min0, .v-cta-vendeur > .min0 { flex: 1 1 280px; }
.v-bandeau-compte h3 { margin: 0 0 4px; }
.v-bandeau-compte p { margin: 0; color: var(--gris); }
.v-bandeau-ic { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--menthe); color: var(--foret); }
.v-bandeau-ic .ic { width: 26px; height: 26px; }
.v-campagne { margin-top: 0; text-decoration: none; background: linear-gradient(120deg, var(--menthe), var(--brume)); color: var(--encre); }
.v-campagne strong { display: block; font-family: var(--police-titre); font-size: var(--t-xl); color: var(--marine); }
.v-campagne span:not(.btn):not(.v-bandeau-ic) { color: var(--gris); }
.v-campagne .v-bandeau-ic { background: var(--surface); }

/* ---------- Bande commerçants ---------- */
.v-vendeur { position: relative; overflow: hidden; color: #fff; padding-block: 56px;
  background: radial-gradient(700px 400px at 100% 0, rgba(18,161,80,.45), transparent 60%), radial-gradient(600px 400px at 0 100%, rgba(13,43,102,.6), transparent 60%),
              linear-gradient(135deg, var(--nuit-verte), var(--vert-fixe)); }
@media (min-width: 900px) { .v-vendeur { padding-block: 88px; } }
.v-vendeur-grille { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .v-vendeur-grille { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.v-vendeur h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 14px; }
.v-vendeur-accroche { color: #cfeedd; font-size: var(--t-l); max-width: 48ch; }
.v-coches { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.v-coches li { display: flex; gap: 10px; align-items: flex-start; color: #e6f7ee; }
.v-coches .ic { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(143,224,180,.2); color: #8fe0b4; margin-top: 1px; }
.v-offre { position: relative; padding: 26px; border-radius: 30px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
@media (min-width: 768px) { .v-offre { padding: 32px; } }
.v-offre-tete { display: flex; align-items: center; gap: 16px; }
.v-offre-gros { font-family: var(--police-titre); font-weight: 700; font-size: 5rem; line-height: .85; letter-spacing: -.05em;
  background: linear-gradient(180deg, #fff, #8fe0b4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v-offre-tete strong { display: block; font-family: var(--police-titre); font-size: var(--t-2xl); color: #fff; line-height: 1.1; }
.v-offre-tete small { color: #cfeedd; }
.v-offre-ensuite { margin: 22px 0 10px; color: #cfeedd; font-weight: 700; font-size: var(--t-s); }
.v-formules { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.v-formules > div { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.95); color: #0d2b66; text-align: center; }
.v-formules b { display: block; font-family: var(--police-titre); font-size: var(--t-xl); }
.v-formules small { color: #5b6b66; font-weight: 600; }
.v-ou { font-weight: 700; color: #8fe0b4; font-size: var(--t-s); }
.v-mini-etapes { list-style: none; counter-reset: me; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.v-mini-etapes li { counter-increment: me; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.v-mini-etapes li::before { content: counter(me); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #8fe0b4; color: #062b1c; font-weight: 700; font-family: var(--police-titre); }
.v-mini-etapes strong { color: #fff; }
.v-mini-etapes span { color: #cfeedd; font-size: var(--t-s); }

/* ---------- Bloc application ---------- */
.v-appli { display: grid; gap: 20px; padding: 28px; border-radius: 30px; color: #fff; align-items: center;
  background: radial-gradient(500px 300px at 100% 0, rgba(18,161,80,.5), transparent 60%), linear-gradient(135deg, #0d2b66, #0b3f55); }
@media (min-width: 900px) { .v-appli { grid-template-columns: 1.3fr 1fr; padding: 40px; gap: 40px; } }
.v-appli h2 { color: #fff; }
.v-appli p { color: #d6e2f5; }
.v-appli-contact { padding: 22px; border-radius: 22px; background: var(--surface); color: var(--encre); }
.v-appli-contact h3 { margin: 0 0 4px; }
.v-appli-contact p { color: var(--gris); margin: 0; }
.v-appli-contact .v-actions { margin-top: 14px; }

/* ---------- Vide ---------- */
.v-vide { text-align: center; padding: 48px 20px; border-radius: 28px; border: 1.5px dashed var(--trait-fort); background: var(--brume); }
.v-vide-ic { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--surface); color: var(--foret); box-shadow: var(--ombre-2); margin-bottom: 14px; }
.v-vide-ic .ic { width: 32px; height: 32px; }
.v-vide p { color: var(--gris); max-width: 52ch; margin-inline: auto; }

/* ---------- Vitrine /marche/ ---------- */
.v-entete-marche { position: relative; overflow: hidden; padding-block: 28px 26px;
  background: radial-gradient(600px 300px at 100% 0, color-mix(in srgb, var(--ton-fond, var(--menthe)) 100%, transparent), transparent 70%),
              linear-gradient(180deg, var(--brume), var(--fond)); }
@media (min-width: 900px) { .v-entete-marche { padding-block: 48px 36px; } }
.v-entete-ligne { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.v-entete-marche h1 { margin: 0 0 8px; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); letter-spacing: -.03em; line-height: 1.05; }
.v-entete-texte { margin: 0; color: var(--gris); max-width: 60ch; }
.v-recherche-page { margin-top: 22px; max-width: 760px; }
.v-btn-commandes { flex: none; }
@media (max-width: 600px) { .v-btn-commandes { display: none; } }
.v-rail { position: sticky; top: 0; z-index: 30; background: var(--surface-verre); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--trait); }
@media (max-width: 1199.98px) { .v-rail { top: var(--entete); } }
@media (min-width: 1024px) { body.visiteur .v-rail { top: var(--entete); } }
.v-rail-defile { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.v-rail-defile::-webkit-scrollbar { display: none; }
.v-puce { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--trait); background: var(--surface);
  color: var(--encre); font-weight: 700; font-size: var(--t-s); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; min-height: 40px; font-family: inherit; }
.v-puce .ic { width: 17px; height: 17px; color: var(--ton-encre, var(--foret)); }
.v-puce small { font-size: 11px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--brume); color: var(--gris); }
.v-puce:hover { border-color: var(--feuille); color: var(--foret); }
.v-puce.actif { background: var(--foret); border-color: var(--foret); color: #fff; }
.v-puce.actif .ic { color: inherit; }
.v-puce.actif small { background: rgba(255,255,255,.2); color: inherit; }
:root[data-theme="sombre"] .v-puce.actif { color: #06210f; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .v-puce.actif { color: #06210f; } }
.v-barre-outils { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.v-effacer { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: var(--t-s); font-weight: 700; }
.v-effacer .ic { width: 14px; height: 14px; }
.v-tri { display: inline-flex; align-items: center; gap: 6px; padding-left: 14px; border: 1.5px solid var(--trait); border-radius: var(--r-pill); background: var(--surface); }
.v-tri .ic { width: 16px; height: 16px; color: var(--gris); }
.v-tri select { border: 0; background-color: transparent; min-height: 40px; width: auto; box-shadow: none; font-weight: 700; padding-left: 4px; }
.v-cta-vendeur { color: #fff; background: radial-gradient(400px 200px at 100% 0, rgba(18,161,80,.6), transparent 60%), linear-gradient(135deg, var(--nuit-verte), var(--vert-fixe)); }
.v-cta-vendeur h2 { color: #fff; margin: 0 0 4px; font-size: var(--t-xl); }
.v-cta-vendeur p { color: #cfeedd; margin: 0; }
.v-cta-vendeur .v-bandeau-ic { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Fiche boutique ---------- */
.v-couverture { height: 150px; border-radius: 28px; margin-top: 4px; position: relative; }
@media (min-width: 768px) { .v-couverture { height: 260px; } }
.v-fiche-boutique { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: -44px 12px 0; padding: 18px 20px; border-radius: 26px;
  background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre-3); }
@media (min-width: 768px) { .v-fiche-boutique { margin: -64px 32px 0; padding: 22px 28px; } }
.v-fiche-logo { width: 84px; height: 84px; margin-top: -52px; border-radius: 24px; border: 5px solid var(--surface); background: var(--menthe); color: var(--foret); overflow: hidden; flex: none;
  display: grid; place-items: center; font-family: var(--police-titre); font-weight: 700; font-size: var(--t-2xl); box-shadow: var(--ombre-2); }
@media (min-width: 768px) { .v-fiche-logo { width: 108px; height: 108px; margin-top: 0; } }
.v-fiche-logo img { width: 100%; height: 100%; object-fit: cover; }
.v-fiche-infos { flex: 1 1 260px; }
.v-fiche-infos h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -.02em; }
.v-fiche-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: var(--gris); font-weight: 600; font-size: var(--t-s); }
.v-fiche-meta span { display: inline-flex; align-items: center; gap: 5px; }
.v-fiche-meta .ic { width: 16px; height: 16px; }
.v-fiche-chiffres { display: flex; align-items: center; gap: 14px; }
.v-fiche-chiffres > div { text-align: center; padding: 8px 16px; border-radius: 16px; background: var(--brume); }
.v-fiche-chiffres b { display: block; font-family: var(--police-titre); font-size: var(--t-2xl); color: var(--marine); line-height: 1; }
.v-fiche-chiffres small { color: var(--gris); font-weight: 600; }
.v-fiche-description { max-width: 72ch; margin: 22px 4px 0; font-size: var(--t-l); color: var(--encre); }
.v-filtres { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }

/* ---------- Fiche produit ---------- */
.v-ariane { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow: hidden; padding-block: 14px; font-size: var(--t-s); font-weight: 600; color: var(--gris); }
.v-ariane a { color: var(--gris); text-decoration: none; white-space: nowrap; }
.v-ariane a:hover { color: var(--foret); }
.v-ariane .ic { width: 14px; height: 14px; flex: none; }
.v-ariane span { color: var(--encre); min-width: 0; }
.v-produit { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .v-produit { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; } }
.v-galerie { position: relative; aspect-ratio: 1; border-radius: 32px; overflow: hidden; display: grid; place-items: center; background: var(--ton-fond, var(--brume)); }
@media (min-width: 900px) { .v-galerie { position: sticky; top: calc(var(--entete) + 16px); } }
@media (min-width: 1200px) { body:not(.visiteur) .v-galerie { top: 24px; } }
.v-galerie img { width: 100%; height: 100%; object-fit: cover; }
.v-galerie .visuel-ic { width: 38%; }
.v-galerie .visuel-ic .ic { width: 50%; height: 50%; }
.v-galerie::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 80% 15%, rgba(255,255,255,.55), transparent 40%); }
.v-galerie .remise { top: 18px; left: 18px; font-size: var(--t-s); }
.v-achat { display: flex; flex-direction: column; gap: 16px; }
.v-chip-boutique { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: var(--r-pill); background: var(--menthe); color: var(--foret); font-weight: 700; font-size: var(--t-s); text-decoration: none; }
.v-chip-boutique .ic { width: 16px; height: 16px; }
.v-achat h1 { margin: 0; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); letter-spacing: -.025em; line-height: 1.08; }
.v-prix-ligne { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.v-prix { font-family: var(--police-titre); font-weight: 700; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); color: var(--marine); letter-spacing: -.02em; }
.v-stock { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--gris); font-weight: 600; font-size: var(--t-s); }
.v-stock > span { width: 9px; height: 9px; border-radius: 50%; background: var(--feuille); box-shadow: 0 0 0 4px color-mix(in srgb, var(--feuille) 22%, transparent); }
.v-stock-bas > span { background: var(--ambre); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ambre) 22%, transparent); }
.v-achat-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.v-achat-actions .btn { flex: 1 1 220px; }
.v-assurances { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; border-radius: 22px; background: var(--brume); }
.v-assurances li { display: flex; gap: 12px; align-items: center; padding: 10px; }
.v-assurances li > span { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--foret); }
.v-assurances .ic { width: 20px; height: 20px; }
.v-assurances strong { display: block; color: var(--encre); font-size: var(--t-s); }
.v-assurances small { color: var(--gris); }
.v-assurances-compactes { margin-top: 16px; }
.v-assurances-compactes li { padding: 6px 8px; }
.v-assurances-compactes li > span { width: 32px; height: 32px; }
.v-volet { border-bottom: 1px solid var(--trait); }
.v-volet summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; cursor: pointer; list-style: none; font-family: var(--police-titre); font-weight: 700; font-size: var(--t-l); color: var(--marine); }
.v-volet summary::-webkit-details-marker { display: none; }
.v-volet summary .ic { width: 20px; height: 20px; transition: transform .25s; }
.v-volet[open] summary .ic { transform: rotate(180deg); }
.v-volet p { margin: 0 0 16px; color: var(--encre); }
.v-mini-boutique { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 22px; border: 1px solid var(--trait); background: var(--surface); text-decoration: none; color: var(--encre); flex-wrap: wrap; }
.v-mini-boutique:hover { border-color: var(--feuille); color: var(--encre); }
.v-mini-boutique .v-boutique-logo { width: 54px; height: 54px; border-width: 0; }
.v-mini-boutique > .min0 { flex: 1 1 160px; display: flex; flex-direction: column; }
.v-mini-boutique small { color: var(--gris); display: inline-flex; align-items: center; gap: 4px; }
.v-mini-boutique small .ic { width: 13px; height: 13px; }
.v-mini-boutique strong { font-family: var(--police-titre); font-size: var(--t-l); color: var(--marine); }

/* ---------- Panier ---------- */
.v-entete-simple { padding-block: 24px 16px; }
.v-entete-simple h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); letter-spacing: -.02em; }
.v-entete-simple p:not(.v-surtitre) { color: var(--gris); max-width: 60ch; margin: 0; }
.v-panier { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .v-panier { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; } }
.v-panier-principal { min-width: 0; }
.v-panier [data-panier-liste] > .carte { border-radius: 24px; padding: 20px; box-shadow: var(--ombre-1); }
.v-panier .article-panier { grid-template-columns: 88px minmax(0, 1fr); }
.v-panier .article-panier:last-child { border-bottom: 0; }
.v-panier .article-panier .vignette { width: 88px; height: 88px; border-radius: 18px; background: var(--menthe); color: var(--foret); }
.v-panier-resume { padding: 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre-2); }
@media (min-width: 960px) { .v-panier-resume { position: sticky; top: calc(var(--entete) + 16px); } }
@media (min-width: 1200px) { body:not(.visiteur) .v-panier-resume { top: 24px; } }
.v-panier-resume h2 { font-size: var(--t-xl); margin: 0 0 14px; }
.v-panier-resume .barre-action { margin-top: 12px; }
.v-panier-resume .v-lien-fleche { margin-top: 14px; }
@media (max-width: 899.98px) { .v-panier-resume { padding-bottom: 96px; } }

@media (prefers-reduced-motion: reduce) {
  .v-colis, .v-bulle, .v-vedette, .v-point { animation: none; }
}
@media (max-width: 719.98px) {
  .produit .prix { font-size: var(--t-l); padding-right: 42px; }
  .produit .prix .prix-barre { display: block; margin-left: 0; font-size: var(--t-xs); }
  .produit .nom { font-size: var(--t-s); }
  .ajout-rapide { width: 38px; height: 38px; border-radius: 12px; right: 10px; bottom: 10px; }
}
.v-ariane span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-theme="sombre"] .produit .visuel::after, :root[data-theme="sombre"] .v-galerie::after { opacity: .08; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .produit .visuel::after, :root[data-theme="auto"] .v-galerie::after { opacity: .08; } }

/* ================================================================== */
/* Interfaces 2026 : connexion, tableaux de bord, carte, suggestions     */
/* ================================================================== */

/* ---------- Composants communs rafraîchis ---------- */
.carte { border-radius: 22px; }
.chiffres { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 14px; }
@media (min-width: 900px) { .chiffres { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.chiffres-denses { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.chiffre { position: relative; overflow: hidden; border-radius: 22px; padding: 18px; box-shadow: var(--ombre-1); transition: transform .2s, box-shadow .2s, border-color .2s; }
.chiffre .valeur { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); letter-spacing: -.02em; }
.chiffre .libelle { margin-top: 2px; font-weight: 600; }
.chiffre-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--menthe); color: var(--foret); margin-bottom: 12px; }
.chiffre-ic .ic { width: 20px; height: 20px; }
.chiffre::after { content: ""; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; background: color-mix(in srgb, var(--feuille) 7%, transparent); }
.chiffre-alerte { border-color: color-mix(in srgb, var(--ambre) 45%, transparent); background: var(--ambre-doux); }
.chiffre-alerte .chiffre-ic { background: var(--surface); color: var(--ambre); }
.chiffre-info .chiffre-ic { background: var(--info-doux); color: var(--info); }
@media (hover: hover) { a.chiffre:hover { transform: translateY(-3px); box-shadow: var(--ombre-2); } }

.tableau-conteneur { border-radius: 20px; box-shadow: var(--ombre-1); }
.tableau th { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 719px) {
  .tableau-empile tr { border-radius: 18px; box-shadow: var(--ombre-1); padding: 10px 16px; }
  .tableau-empile td:empty { display: none; }
  .tableau-empile td:not([data-label])::before, .tableau-empile td[data-label=""]::before { content: none; }
  .tableau-empile td > .btn, .tableau-empile td > form { margin-left: auto; }
}
.onglets { gap: 6px; border-bottom: 0; padding: 4px; background: var(--brume); border-radius: var(--r-pill); width: fit-content; max-width: 100%; }
.onglets a { border: 0; border-radius: var(--r-pill); padding: 9px 16px; margin: 0; }
.onglets a[aria-current="page"] { background: var(--surface); color: var(--foret); box-shadow: var(--ombre-1); }
.puces { margin-inline: 0; padding-inline: 0; }

/* ---------- Coque des tableaux de bord ---------- */
.tb-entete { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(600px 260px at 100% 0, rgba(18,161,80,.55), transparent 65%), linear-gradient(120deg, var(--nuit-verte), var(--vert-fixe) 70%); }
.tb-entete::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; opacity: .07; pointer-events: none;
  background: linear-gradient(#fff, #fff) center / 34% 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 34% no-repeat; border-radius: 40px; rotate: -12deg; }
.tb-entete-ligne { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 24px 20px; }
@media (min-width: 900px) { .tb-entete-ligne { padding-block: 34px 26px; } }
.tb-avatar { flex: none; width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; overflow: hidden; background: rgba(255,255,255,.14);
  border: 2px solid rgba(255,255,255,.25); color: #fff; font-family: var(--police-titre); font-weight: 700; font-size: var(--t-xl); }
.tb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tb-avatar .ic { width: 28px; height: 28px; }
.tb-entete-texte { flex: 1 1 220px; }
.tb-entete h1 { color: #fff; margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); letter-spacing: -.02em; }
.tb-surtitre { margin: 0 0 2px; font-size: var(--t-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8fe0b4; }
.tb-surtitre-sombre { margin: 0 0 2px; font-size: var(--t-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--feuille); }
.tb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 0; color: #cfeedd; font-size: var(--t-s); }
.tb-role { padding: 3px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: var(--t-xs); }
.tb-entete-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .tb-entete-actions { width: 100%; }
  .tb-entete-actions .btn { flex: 1; }
  .tb-avatar { width: 48px; height: 48px; border-radius: 16px; font-size: var(--t-l); }
}
.tb-onglets { position: relative; z-index: 1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 0; }
.tb-onglets::-webkit-scrollbar { display: none; }
.tb-onglets a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 16px 16px 0 0; color: #d9f2e4; text-decoration: none; font-weight: 700; font-size: var(--t-s); white-space: nowrap; }
.tb-onglets a .ic { width: 18px; height: 18px; }
.tb-onglets a:hover { color: #fff; background: rgba(255,255,255,.08); }
.tb-onglets a[aria-current="page"] { background: var(--fond); color: var(--foret); }
.tb-corps { display: grid; gap: 22px; padding-block: 24px 40px; }
@media (min-width: 900px) { .tb-corps { gap: 28px; padding-block: 32px 56px; } }
.tb-corps > * { min-width: 0; }
.tb-h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -.02em; }
.tb-h2 { font-size: var(--t-xl); margin: 0 0 12px; }
.tb-titre-page { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.tb-titre-page h1, .tb-titre-page h2 { margin: 0; }
.tb-grille { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1080px) { .tb-grille { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; } }
@media (min-width: 1500px) { .tb-grille { grid-template-columns: minmax(0, 1fr) 400px; } }
@media (min-width: 900px) { .tb-grille-egale { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .tb-grille-egale { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tb-principal, .tb-cote { display: grid; gap: 22px; min-width: 0; }
@media (min-width: 1080px) { .tb-cote { position: sticky; top: 20px; } }
.tb-panneau { background: var(--surface); border: 1px solid var(--trait); border-radius: 24px; padding: 20px; box-shadow: var(--ombre-1); min-width: 0; }
@media (min-width: 768px) { .tb-panneau { padding: 24px; } }
.tb-panneau h2 { font-size: var(--t-l); margin: 0 0 12px; }
.tb-panneau-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tb-panneau-tete h2 { margin: 0; }
.tb-panneau-tete p { margin: 2px 0 0; color: var(--gris); font-size: var(--t-s); }
.tb-gros { font-family: var(--police-titre); font-size: var(--t-2xl); color: var(--marine); letter-spacing: -.02em; }
.tb-legende { margin: 8px 0 0; color: var(--gris); font-size: var(--t-s); }
.graphe { display: block; width: 100%; height: auto; max-height: 220px; overflow: visible; }
.graphe .barre { fill: color-mix(in srgb, var(--feuille) 55%, var(--surface)); transition: fill .2s; }
.graphe .barre-derniere { fill: var(--foret); }
.graphe .barre-vide { fill: var(--brume-2); }
.graphe .barre:hover { fill: var(--feuille); }
.graphe text { font-size: 9px; fill: var(--gris); font-family: var(--police-texte); }
.tb-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tb-liste a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; text-decoration: none; color: var(--encre); }
.tb-liste a:hover { background: var(--survol); color: var(--encre); }
.tb-liste strong { display: block; }
.tb-liste small { display: block; color: var(--gris); font-size: var(--t-xs); }
.tb-liste b { font-family: var(--police-titre); color: var(--marine); white-space: nowrap; }
.tb-liste-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brume); color: var(--foret); }
.tb-liste-ic .ic { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .tb-liste a { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tb-liste a .pill { grid-column: 2; justify-self: start; grid-row: 2; }
  .tb-liste a b { grid-row: 1; grid-column: 3; }
}
.tb-vide { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 22px 12px; color: var(--gris); border-radius: 18px; background: var(--brume); }
.tb-vide > .ic { width: 28px; height: 28px; color: var(--feuille); }
.tb-vide p { margin: 0; max-width: 40ch; }
.tb-mini { list-style: none; margin: 0; padding: 0; display: grid; }
.tb-mini li { border-bottom: 1px solid var(--trait); }
.tb-mini li:last-child { border-bottom: 0; }
.tb-mini a, .tb-mini li > span { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px; text-decoration: none; color: var(--encre); }
.tb-mini li > span { flex-direction: column; align-items: flex-start; gap: 0; }
.tb-mini small { color: var(--gris); font-size: var(--t-xs); }
.tb-mini .non-lue strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--feuille); margin-right: 6px; vertical-align: 1px; }
.tb-classement { counter-reset: cl; }
.tb-classement li { counter-increment: cl; }
.tb-classement a::before { content: counter(cl); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--menthe); color: var(--foret); font-weight: 700; font-size: var(--t-xs); }
.tb-classement a span { flex: 1; }
.tb-journal li > span { padding: 8px 2px; }
.tb-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.tb-actions a { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border-radius: 18px; background: var(--brume); color: var(--encre); text-decoration: none; font-weight: 700; font-size: var(--t-xs); text-align: center; transition: background .2s, transform .2s; }
.tb-actions a .ic { width: 22px; height: 22px; color: var(--foret); }
.tb-actions a:hover { background: var(--menthe); color: var(--foret-2); transform: translateY(-2px); }
.tb-progression { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.tb-progression h2 { margin: 0 0 2px; }
.tb-progression p { margin: 0; color: var(--gris); font-size: var(--t-s); }
.tb-anneau { --p: 0; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 77%), conic-gradient(var(--feuille) calc(var(--p) * 1%), var(--brume-2) 0); }
.tb-anneau span { font-family: var(--police-titre); font-weight: 700; color: var(--marine); font-size: var(--t-s); }
.tb-coches { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.tb-coches a { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; color: var(--encre); text-decoration: none; font-weight: 600; font-size: var(--t-s); }
.tb-coches a:hover { background: var(--survol); }
.tb-coches .ic { width: 20px; height: 20px; color: var(--feuille); }
.tb-coches .fait a { color: var(--gris); text-decoration: line-through; }
.tb-rond { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--trait-fort); flex: none; }
.tb-espaces { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.tb-espace { --c: var(--foret); --f: var(--menthe); display: grid; gap: 2px; padding: 18px; border-radius: 22px; text-decoration: none; color: var(--encre); background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre-1); transition: transform .2s, box-shadow .2s; }
.tb-espace > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--f); color: var(--c); margin-bottom: 10px; }
.tb-espace > span .ic { width: 22px; height: 22px; }
.tb-espace strong { font-family: var(--police-titre); font-size: var(--t-l); color: var(--marine); }
.tb-espace small { color: var(--gris); }
.tb-espace:hover { transform: translateY(-3px); box-shadow: var(--ombre-2); color: var(--encre); }
.tb-espace-marine { --c: var(--info); --f: var(--info-doux); }
.tb-espace-sarcelle { --c: var(--sarcelle); --f: var(--sarcelle-doux); }
.tb-espace-rouge { --c: var(--rouge); --f: var(--rouge-doux); }
.tb-suivi { display: block; padding: 14px; border-radius: 18px; border: 1px solid var(--trait); text-decoration: none; color: var(--encre); margin-bottom: 10px; transition: border-color .2s; }
.tb-suivi:hover { border-color: var(--feuille); color: var(--encre); }
.tb-suivi-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-suivi-tete small { display: block; color: var(--gris); font-size: var(--t-xs); }
.tb-frise { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.tb-frise::before { content: ""; position: absolute; left: 10%; right: 10%; top: 6px; height: 3px; border-radius: 3px; background: var(--brume-2); }
.tb-frise::after { content: ""; position: absolute; left: 10%; top: 6px; height: 3px; border-radius: 3px; background: var(--feuille); width: calc(var(--etape) * 20%); transition: width .6s; }
.tb-frise li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--gris); text-align: center; }
.tb-frise li::before { content: ""; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brume-2); }
.tb-frise li.fait { color: var(--foret); }
.tb-frise li.fait::before { border-color: var(--feuille); background: var(--feuille); }
.tb-badge-ia { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--menthe), var(--info-doux)); color: var(--foret); font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.tb-badge-ia .ic { width: 13px; height: 13px; }
.tb-cta { margin-top: 0; text-decoration: none; }
.tb-cta:hover { color: #fff; }
.tb-kpis { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tb-kpis > div { padding: 12px; border-radius: 16px; background: var(--brume); }
.tb-kpis dt { color: var(--gris); font-size: var(--t-xs); font-weight: 700; }
.tb-kpis dd { margin: 2px 0 0; font-family: var(--police-titre); font-weight: 700; font-size: var(--t-l); color: var(--marine); }
.tb-repartition { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tb-repartition li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--brume); }
.tb-produit-cell { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.tb-produit-cell small { display: block; }
.tb-vignette { flex: none; width: 48px; height: 48px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--ton-fond, var(--brume)); color: var(--ton-encre, var(--foret)); }
.tb-vignette img { width: 100%; height: 100%; object-fit: cover; }
.tb-vignette .ic { width: 22px; height: 22px; }
.tb-dispo { width: 10px; height: 10px; border-radius: 50%; background: #f5b04a; box-shadow: 0 0 0 4px rgba(245,176,74,.25); }
.tb-dispo.on { background: #8fe0b4; box-shadow: 0 0 0 4px rgba(143,224,180,.25); }
.tb-interrupteur { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: var(--r-pill); border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 700; cursor: pointer; min-height: 48px; }
.tb-interrupteur-piste { width: 52px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.25); position: relative; transition: background .2s; }
.tb-interrupteur-piste span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.tb-interrupteur.on .tb-interrupteur-piste { background: #12a150; }
.tb-interrupteur.on .tb-interrupteur-piste span { transform: translateX(22px); }
.espace-entete { background: radial-gradient(600px 260px at 100% 0, rgba(18,161,80,.55), transparent 65%), linear-gradient(120deg, var(--nuit-verte), var(--vert-fixe) 70%); padding-block: 28px; }
.espace-entete h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); }
.console-corps { max-width: 1680px; display: grid; gap: 18px; align-content: start; }
.console-corps > * { margin-top: 0; min-width: 0; }
@media (min-width: 900px) { .console-corps { padding: 32px 40px 56px; } }

/* Formulaire produit + assistant */
.tb-grille-form { align-items: start; }
.tb-form fieldset { border: 0; margin: 0 0 18px; padding: 0 0 6px; border-bottom: 1px solid var(--trait); }
.tb-form fieldset:last-of-type { border-bottom: 0; }
.tb-form legend { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-family: var(--police-titre); font-weight: 700; color: var(--marine); font-size: var(--t-l); padding: 0; }
.tb-form legend .ic { width: 20px; height: 20px; color: var(--feuille); }
.tb-form-pied { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tb-photo { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.tb-photo img { width: 120px; height: 120px; object-fit: cover; border-radius: 18px; border: 1px solid var(--trait); }
.tb-photo > .min0 { flex: 1 1 220px; }
.tb-assistant { border-color: color-mix(in srgb, var(--feuille) 40%, var(--trait)); background: linear-gradient(180deg, color-mix(in srgb, var(--menthe) 55%, var(--surface)), var(--surface) 140px); display: grid; gap: 12px; }
.tb-assistant[aria-busy="true"] .tb-assistant-ic { animation: tourne 1.2s linear infinite; }
.tb-assistant-tete { display: flex; gap: 12px; align-items: flex-start; }
.tb-assistant-tete h2 { margin: 0; }
.tb-assistant-tete p { margin: 2px 0 0; color: var(--gris); font-size: var(--t-xs); }
.tb-assistant-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--foret); color: #fff; }
.tb-sugg { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--trait); display: grid; gap: 6px; }
.tb-sugg > small { color: var(--gris); font-weight: 700; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; }
.tb-sugg-ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
.tb-sugg-ligne strong { font-family: var(--police-titre); color: var(--marine); }
.tb-confiance { font-size: var(--t-xs); font-weight: 700; color: var(--foret); background: var(--menthe); padding: 2px 8px; border-radius: var(--r-pill); }
.tb-sugg-autres { color: var(--gris); font-size: var(--t-xs); }
.tb-sugg pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: var(--t-s); color: var(--encre); background: var(--brume); padding: 10px; border-radius: 12px; }
.tb-apercu .produit { max-width: 260px; }

/* ---------- Connexion / inscription ---------- */
body.page-auth main { padding-bottom: calc(var(--onglets) + 16px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { body.page-auth main { padding-bottom: 0; } }
.auth { display: grid; min-height: calc(100dvh - var(--entete)); }
@media (min-width: 1200px) { .auth { min-height: 100dvh; } }
@media (min-width: 960px) { .auth { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.auth-marque { position: relative; overflow: hidden; color: #fff; padding: 28px var(--gouttiere) 34px;
  background: radial-gradient(500px 300px at 100% 0, rgba(18,161,80,.6), transparent 60%), radial-gradient(500px 360px at 0 100%, rgba(13,43,102,.55), transparent 60%), linear-gradient(150deg, var(--nuit-verte), var(--vert-fixe)); }
@media (min-width: 960px) { .auth-marque { padding: 56px clamp(32px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; } }
.auth-deco { position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; opacity: .07; pointer-events: none;
  background: linear-gradient(#fff, #fff) center / 34% 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 34% no-repeat; border-radius: 50px; rotate: -12deg; }
.auth-logo { display: none; margin-bottom: 36px; }
.auth-logo img { height: 44px; width: auto; }
@media (min-width: 1200px) { .auth-logo { display: inline-block; } }
.auth-marque h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 2vw, 2.7rem); letter-spacing: -.03em; line-height: 1.08; max-width: 18ch; margin: 0 0 18px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 460px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; }
.auth-points li > span { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.12); color: #8fe0b4; }
.auth-points .ic { width: 20px; height: 20px; }
.auth-points strong { display: block; color: #fff; }
.auth-points small { color: #cfeedd; }
@media (max-width: 959px) {
  .auth-points { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .auth-points small { display: none; }
}
@media (max-width: 520px) { .auth-points li:nth-child(n+2) { display: none; } .auth-marque h2 { margin-bottom: 12px; } }
.auth-etapes { list-style: none; margin: 26px 0 0; padding: 0; display: flex; gap: 8px; counter-reset: ae; flex-wrap: wrap; }
.auth-etapes li { counter-increment: ae; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); color: #cfeedd; font-weight: 700; font-size: var(--t-xs); }
.auth-etapes li::before { content: counter(ae); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; }
.auth-etapes li.actif { background: #fff; color: var(--vert-fixe); }
.auth-etapes li.actif::before { background: var(--feuille-fixe); }
.auth-zone { display: grid; align-content: center; justify-items: center; gap: 16px; padding: 24px var(--gouttiere) 32px; background: var(--fond); }
@media (min-width: 960px) { .auth-zone { padding: 48px; } }
.auth-carte { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--trait); border-radius: 28px; padding: 24px; box-shadow: var(--ombre-3); margin-top: -18px; position: relative; }
@media (min-width: 960px) { .auth-carte { padding: 36px; margin-top: 0; } }
.auth-carte h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); letter-spacing: -.02em; margin: 0 0 6px; }
.auth-carte > p.discret { margin-bottom: 20px; }
.auth-pastille { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--menthe); color: var(--foret); font-weight: 700; font-size: var(--t-xs); margin-bottom: 12px; }
.auth-pastille .ic { width: 15px; height: 15px; }
.auth-form .champ { margin-bottom: 14px; }
.auth-form input { min-height: 52px; border-radius: 16px; }
.auth-sous-ligne { margin: -4px 0 14px; }
.auth-grille { gap: 0 14px; }
.auth-aide { max-width: 480px; margin: 0; }
.mdp { position: relative; }
.mdp input { padding-right: 52px; }
.mdp-voir { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--gris); cursor: pointer; display: grid; place-items: center; }
.mdp-voir:hover { background: var(--brume); color: var(--foret); }
.mdp-voir .ic { width: 20px; height: 20px; }

/* ---------- Incitation à créer un compte ---------- */
.incitation { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin: 14px 0; border-radius: 18px;
  background: linear-gradient(120deg, var(--menthe), color-mix(in srgb, var(--info-doux) 70%, var(--surface))); border: 1px solid color-mix(in srgb, var(--feuille) 25%, transparent); }
.incitation-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface); color: var(--foret); }
.incitation-ic .ic { width: 20px; height: 20px; }
.incitation strong { display: block; color: var(--marine); }
.incitation small { display: block; color: var(--gris); margin-top: 2px; }
.incitation-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------- Suggestions de recherche ---------- */
.avec-sugg { position: relative; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; max-height: min(70vh, 460px); overflow-y: auto; padding: 8px;
  background: var(--surface); border: 1px solid var(--trait); border-radius: 22px; box-shadow: var(--ombre-3); animation: entre .15s ease-out; text-align: left; }
.sugg-titre { margin: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.sugg-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; text-decoration: none; color: var(--encre); }
.sugg-opt:hover, .sugg-opt.actif { background: var(--brume); color: var(--encre); }
.sugg-opt strong { display: block; font-size: var(--t-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg-opt small { display: block; color: var(--gris); font-size: var(--t-xs); }
.sugg-opt b { margin-left: auto; font-family: var(--police-titre); color: var(--marine); white-space: nowrap; font-size: var(--t-s); }
.sugg-opt .min0 { flex: 1; }
.sugg-vis { flex: none; width: 40px; height: 40px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--ton-fond, var(--menthe)); color: var(--ton-encre, var(--foret)); }
.sugg-vis img { width: 100%; height: 100%; object-fit: cover; }
.sugg-vis .ic { width: 20px; height: 20px; }
.sugg-correction { margin: 4px 10px 6px; color: var(--gris); font-size: var(--t-s); }
.sugg-correction .sugg-opt { display: inline; padding: 0; }
.v-correction { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--info-doux); color: var(--encre); font-size: var(--t-s); margin: 0 0 16px; }
.v-correction .ic { width: 18px; height: 18px; color: var(--info); }
.produits-compacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .produits-compacts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.v-recos-panier { margin-top: 28px; }
.v-entete-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .v-entete-actions { width: 100%; } .v-entete-actions .v-btn-commandes { display: inline-flex; flex: 1; } }

/* ---------- Carte des boutiques ---------- */
body.page-carte main { padding-bottom: 0; }
.v-carte { display: grid; grid-template-rows: auto auto; }
@media (min-width: 900px) { .v-carte { grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: none; height: calc(100dvh - var(--entete)); } }
@media (min-width: 1200px) { .v-carte { height: 100dvh; } body.visiteur .v-carte { height: calc(100dvh - var(--entete)); } }
.v-carte-zone { position: relative; order: -1; height: 52vh; min-height: 300px; }
@media (min-width: 900px) { .v-carte-zone { order: 0; height: auto; } }
.v-carte-map { position: absolute; inset: 0; z-index: 1; background: var(--brume); }
.v-carte-panneau { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-right: 1px solid var(--trait);
  border-radius: 24px 24px 0 0; margin-top: -22px; position: relative; z-index: 5; box-shadow: 0 -12px 30px -18px rgba(0,0,0,.35);
  padding-bottom: calc(var(--onglets) + 16px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { .v-carte-panneau { padding-bottom: 16px; } }
@media (min-width: 900px) { .v-carte-panneau { margin-top: 0; border-radius: 0; box-shadow: none; overflow: hidden; } }
.v-carte-tete { padding: 20px 18px 10px; display: grid; gap: 12px; }
.v-carte-tete::before { content: ""; justify-self: center; width: 42px; height: 5px; border-radius: 3px; background: var(--trait-fort); margin-top: -8px; }
@media (min-width: 900px) { .v-carte-tete::before { display: none; } .v-carte-tete { padding: 24px 22px 10px; } }
.v-carte-tete h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.02em; }
.v-carte-tete .v-surtitre { margin: 0; }
.v-recherche-compacte { max-width: none; box-shadow: none; padding: 4px 6px 4px 14px; }
.v-recherche-compacte input { min-height: 40px; padding: 6px 2px; }
.v-carte-outils { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v-carte-panneau .v-filtres { margin: 0; padding-bottom: 4px; }
.v-carte-liste { list-style: none; margin: 0; padding: 4px 12px 12px; display: grid; gap: 6px; overflow-y: auto; flex: 1; align-content: start; }
.v-carte-liste > li { display: flex; align-items: stretch; gap: 4px; border-radius: 18px; }
.v-carte-liste .squelette { display: block; }
.v-carte-item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--trait); border-radius: 18px; background: var(--surface);
  color: var(--encre); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.v-carte-item:hover, .v-carte-item.actif { border-color: var(--feuille); background: var(--survol); }
.v-carte-item .v-boutique-logo { width: 48px; height: 48px; border-width: 0; border-radius: 14px; }
.v-carte-item strong { display: block; font-family: var(--police-titre); color: var(--marine); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-carte-item small { display: block; color: var(--gris); font-size: var(--t-xs); }
.v-carte-item .min0 { flex: 1; }
.v-sans-pos { color: var(--ambre) !important; }
.v-dist { flex: none; padding: 3px 8px; border-radius: var(--r-pill); background: var(--info-doux); color: var(--info); font-weight: 700; font-size: var(--t-xs); }
.v-carte-lien { flex: none; display: grid; place-items: center; width: 40px; border-radius: 14px; background: var(--brume); color: var(--foret); text-decoration: none; font-size: 1.4rem; font-weight: 700; }
.v-carte-lien:hover { background: var(--menthe); }
.v-carte-vide { padding: 24px 8px; text-align: center; color: var(--gris); }
.v-carte-note { padding: 0 18px; margin: 0; }
.v-carte-horsligne { position: absolute; z-index: 3; left: 12px; right: 12px; top: 12px; display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--encre); color: #fff; font-weight: 600; font-size: var(--t-s); }
.v-pin { background: none; border: 0; }
.v-pin-tete { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 6px; rotate: -45deg; overflow: hidden;
  background: var(--vert-fixe); border: 3px solid #fff; box-shadow: 0 8px 18px -6px rgba(0,0,0,.5); color: #fff; font: 700 13px var(--police-titre); }
.v-pin-tete > * { rotate: 45deg; }
.v-pin-tete img { width: 100%; height: 100%; object-fit: cover; rotate: 45deg; }
.v-pin-tete { line-height: 1; }
.v-pop { display: grid; gap: 4px; min-width: 180px; font-family: var(--police-texte); }
.v-pop strong { font-family: var(--police-titre); color: #0d2b66; font-size: 15px; }
.v-pop small { color: #5b6b66; }
.v-pop .btn { margin-top: 6px; color: #fff; }
.leaflet-container { font: inherit; }
.leaflet-popup-content-wrapper { border-radius: 18px; }
.leaflet-control-attribution { font-size: 10px; }

/* ---------- Ajustements tous écrans ---------- */
@media (min-width: 1920px) { :root { --largeur: 1840px; } }
@media (max-width: 359.98px) { .tb-actions { grid-template-columns: repeat(2, 1fr); } .chiffres { grid-template-columns: 1fr 1fr; } .chiffre { padding: 14px; } }
.v-carte { grid-template-columns: minmax(0, 1fr); }
.v-carte-panneau, .v-carte-tete { min-width: 0; }
@media (min-width: 900px) { .v-carte { grid-template-columns: 400px minmax(0, 1fr); } }
/* Cartes produit étroites (grilles compactes, petits écrans) : prix et bouton ne se chevauchent jamais */
.produit { container-type: inline-size; }
@container (max-width: 210px) {
  .produit .prix { font-size: var(--t-m); padding-right: 40px; }
  .produit .prix .prix-barre { display: block; margin-left: 0; font-size: var(--t-xs); }
  .produit .nom { font-size: var(--t-s); }
  .ajout-rapide { width: 36px; height: 36px; border-radius: 12px; right: 8px; bottom: 8px; }
}
@container (max-width: 160px) {
  .produit .prix { font-size: var(--t-s); }
}
svg.ic { display: inline-block; }
@media (max-width: 480px) { .tb-frise li { font-size: 9.5px; overflow-wrap: anywhere; } }
/* Histogramme HTML (remplace le SVG : net à toutes les tailles) */
.graphe { display: grid; gap: 6px; }
.graphe-barres { height: var(--hauteur, 120px); display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(2px, .6vw, 6px); align-items: end;
  padding-bottom: 2px; border-bottom: 1px dashed var(--trait-fort); }
.graphe .barre { display: block; height: var(--h); min-height: 0; border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--feuille) 50%, var(--surface)); transition: background .2s, transform .2s; transform-origin: bottom; animation: pousse .6s cubic-bezier(.2,.8,.2,1) both; }
.graphe .barre-derniere { background: var(--foret); }
.graphe .barre-vide { height: 3px; background: var(--brume-2); }
.graphe .barre:hover { background: var(--feuille); }
@keyframes pousse { from { transform: scaleY(0); } }
.graphe-etiquettes { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); font-size: 11px; color: var(--gris); white-space: nowrap; }
.graphe-etiquettes span:nth-child(1) { justify-self: start; }
.graphe-etiquettes span:last-child { justify-self: end; }
.graphe-etiquettes span { overflow: visible; justify-self: center; }
@media (prefers-reduced-motion: reduce) { .graphe .barre { animation: none; } }
.tb-form .tb-assistant { margin: 0 0 18px; }
@media (max-width: 1079px) { .tb-grille-form .tb-apercu { display: none; } }
.tb-repartition li > span { min-width: 0; overflow-wrap: anywhere; }
.tb-repartition li > b { white-space: nowrap; }
.puces { max-width: 100%; min-width: 0; }
.tb-entete-actions .btn { white-space: nowrap; }
@media (max-width: 560px) { .tb-entete-actions .btn { padding-inline: 10px; font-size: var(--t-xs); } }
.v-trouves { color: var(--foret) !important; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Commande : réception et position ---------- */
.v-choix-reception { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.v-reception { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; border: 1.5px solid var(--trait); background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.v-reception input { position: absolute; opacity: 0; pointer-events: none; }
.v-reception:hover { border-color: var(--trait-fort); }
.v-reception:has(input:checked) { border-color: var(--foret); background: var(--menthe); box-shadow: inset 0 0 0 1px var(--foret); }
.v-reception:has(input:focus-visible) { outline: 3px solid var(--feuille); outline-offset: 2px; }
.v-reception-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface); color: var(--foret); box-shadow: var(--ombre-1); }
.v-reception-ic .ic { width: 22px; height: 22px; }
.v-reception strong { display: block; color: var(--marine); font-family: var(--police-titre); font-size: var(--t-l); }
.v-reception small { display: block; color: var(--gris); margin-top: 2px; }
.v-mini-carte { height: 260px; border-radius: 18px; overflow: hidden; border: 1px solid var(--trait); margin: 12px 0; background: var(--brume); z-index: 0; }
@media (min-width: 900px) { .v-mini-carte { height: 320px; } }
.v-position-etat { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--ambre-doux); color: var(--ambre); font-weight: 700; font-size: var(--t-s); }
.v-position-etat.ok { background: var(--menthe); color: var(--foret); }
.v-paiement-unique { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--menthe); }
.v-paiement-unique > .ic { width: 22px; height: 22px; color: var(--foret); margin-top: 2px; }
.v-paiement-unique strong { display: block; color: var(--marine); }
.v-paiement-unique small { color: var(--gris); }
.v-adresse-retrait { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px; border-radius: 16px; border: 1px solid var(--trait); margin-bottom: 8px; }
.v-adresse-retrait .min0 { flex: 1 1 160px; }
.v-adresse-retrait strong { display: block; color: var(--marine); }
.v-adresse-retrait small { color: var(--gris); }
.v-adresse-retrait .v-boutique-logo { width: 44px; height: 44px; border-width: 0; border-radius: 12px; }
.v-adresse-retrait .v-boutique-logo .ic { width: 20px; height: 20px; }
.tb-panneau h2 .ic { width: 20px; height: 20px; color: var(--feuille); vertical-align: -3px; }

/* ---------- Aucun texte hors de sa zone ---------- */
.btn { flex-shrink: 0; max-width: 100%; }
.btn > span, .btn { overflow-wrap: anywhere; }
.barre-recherche > .btn, .v-recherche > .btn { flex-shrink: 0; }
.barre-recherche input, .v-recherche input { min-width: 0; flex: 1 1 60px; }
.chiffre .libelle, .tb-espace small, .tb-actions a, .tb-mini span, .v-rayon strong, .produit .nom, .tb-liste strong { overflow-wrap: anywhere; hyphens: auto; }
.v-vedette strong { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 180px; }
.v-bulle-2 { right: 3%; }
@media (min-width: 1000px) { .v-bulle-2 { right: 4%; } }
h1, h2, h3, h4, .v-surtitre, .tb-surtitre, .tb-gros, .total, .v-prix { overflow-wrap: anywhere; }
.ligne-entre > *, .ligne > * { min-width: 0; }
.pill { max-width: 100%; white-space: normal; text-align: left; }
