/* Mes bonnes tables — feuille unique. Direction : docs/DESIGN.md.
   App mobile native : en-tête vert profond arrondi, cartes très arrondies, couvertures sans photo
   teintées par cuisine, barre d'onglets flottante. Une police : Plus Jakarta Sans (OFL, auto-hébergée).
   Mouvement : transform/opacity, < 300 ms, réduit sur demande. Survols réservés aux pointeurs fins. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("polices/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --- Jetons --------------------------------------------------------------- */
:root {
  color-scheme: light;
  --fond: #f6f4ef;          /* blanc cassé légèrement chaud */
  --surface: #ffffff;
  --surface-2: #efece5;
  --texte: #161d1b;
  --texte-2: #575f5c;       /* 5,9:1 sur le fond */
  --ligne: #e6e2d9;
  --ligne-forte: #cdc7bb;
  --contour: #8d8676;       /* contours de champs : 3:1 minimum */
  --marque: #172e2a;        /* vert profond : en-tête, boutons */
  --marque-2: #26433c;      /* champ posé sur le vert */
  --sur-marque: #ffffff;
  --sur-marque-2: #c4d1cc;
  --encre: #161d1b;         /* puce choisie, onglets */
  --sur-encre: #ffffff;
  --bouton: #172e2a;
  --sur-bouton: #ffffff;
  --accent: #c33d29;        /* unique accent : favori et actions destructives */
  --sur-accent: #ffffff;
  --accent-doux: #fbe7e2;
  --onglets: #141a18;
  --sur-onglets: #ffffff;
  --sur-onglets-2: #a3aaa7;
  --focus: #1f6e5b;
  --selection: #cfe5db;
  --etoile-vide: #dcd6ca;   /* étoile non remplie (décor, la valeur est toujours écrite) */
  --ombre-1: 0 1px 2px rgb(22 29 27 / .05), 0 6px 18px -6px rgb(22 29 27 / .10);
  --ombre-2: 0 2px 6px rgb(22 29 27 / .08), 0 18px 40px -12px rgb(22 29 27 / .28);

  --police: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-s: 12px; --r-m: 18px; --r-l: 24px; --r-xl: 30px;
  --gouttiere: 16px;
  --haut-onglets: 64px;
  --zone-haut: env(safe-area-inset-top, 0px);
  --zone-bas: env(safe-area-inset-bottom, 0px);
  --bas-libre: calc(var(--haut-onglets) + 28px + var(--zone-bas));

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --fond: #0f1513;
    --surface: #182120;
    --surface-2: #232d2a;
    --texte: #eef1ee;
    --texte-2: #a9b2ae;
    --ligne: #29332f;
    --ligne-forte: #3c4743;
    --contour: #75817c;
    --marque: #13221e;
    --marque-2: #213732;
    --sur-marque-2: #b9c8c2;
    --encre: #eef1ee;
    --sur-encre: #0f1513;
    --bouton: #e7eee9;
    --sur-bouton: #0f1513;
    --accent: #ff8a73;
    --sur-accent: #1c0b07;
    --accent-doux: #3a1d17;
    --onglets: #222c29;
    --sur-onglets-2: #a9b2ae;
    --focus: #8fd3bd;
    --selection: #2c5247;
    --etoile-vide: #3a4541;
    --ombre-1: 0 1px 2px rgb(0 0 0 / .3), 0 6px 18px -6px rgb(0 0 0 / .45);
    --ombre-2: 0 2px 6px rgb(0 0 0 / .35), 0 18px 40px -12px rgb(0 0 0 / .65);
  }
}

/* Teintes de cuisine (couvertures et avatars) : fond doux + encre, 14 teintes, stables. */
[data-t="0"]  { --c-f: #e7e3db; --c-e: #555b58; }
[data-t="1"]  { --c-f: #f6dbd1; --c-e: #8a3a22; }   /* tomate : italiens */
[data-t="2"]  { --c-f: #f6e4bf; --c-e: #775210; }   /* safran : pizzerias, bières */
[data-t="3"]  { --c-f: #f0d4d6; --c-e: #7d2c34; }   /* grenat : viandes, liégeoise */
[data-t="4"]  { --c-f: #e4e4c5; --c-e: #55581b; }   /* olive : tapas */
[data-t="5"]  { --c-f: #d5e2ef; --c-e: #284e74; }   /* égée : grecs */
[data-t="6"]  { --c-f: #d1e7db; --c-e: #1f5d46; }   /* jade : asiatiques */
[data-t="7"]  { --c-f: #e6dae9; --c-e: #59396c; }   /* prune : gastronomiques */
[data-t="8"]  { --c-f: #eadecd; --c-e: #694728; }   /* chêne : brasserie */
[data-t="9"]  { --c-f: #f1e1ab; --c-e: #69500b; }   /* moutarde : burgers */
[data-t="10"] { --c-f: #dce6d1; --c-e: #425f39; }   /* sauge : lunch, végétarien */
[data-t="11"] { --c-f: #f5dcc4; --c-e: #80451a; }   /* abricot : brunch, boulangerie */
[data-t="12"] { --c-f: #cce5e4; --c-e: #1c5c5e; }   /* lagon : cuisines du monde */
[data-t="13"] { --c-f: #f4d6e8; --c-e: #7b2557; }   /* framboise : glaciers (réservée, jamais tirée au hasard) */
@media (prefers-color-scheme: dark) {
  [data-t="0"]  { --c-f: #262c2a; --c-e: #b9bfbb; }
  [data-t="1"]  { --c-f: #3b241d; --c-e: #f1b7a4; }
  [data-t="2"]  { --c-f: #372d16; --c-e: #eac983; }
  [data-t="3"]  { --c-f: #3a2125; --c-e: #eaa9b0; }
  [data-t="4"]  { --c-f: #2e2f19; --c-e: #d1d398; }
  [data-t="5"]  { --c-f: #1c2a39; --c-e: #a9c6e6; }
  [data-t="6"]  { --c-f: #172f29; --c-e: #9fd6bd; }
  [data-t="7"]  { --c-f: #2e2334; --c-e: #cfb4dc; }
  [data-t="8"]  { --c-f: #32281e; --c-e: #dcc2a2; }
  [data-t="9"]  { --c-f: #352f19; --c-e: #e6cf7d; }
  [data-t="10"] { --c-f: #222f1f; --c-e: #b5d1a6; }
  [data-t="11"] { --c-f: #39291b; --c-e: #ecbf96; }
  [data-t="12"] { --c-f: #163132; --c-e: #9fd3d1; }
  [data-t="13"] { --c-f: #391d2f; --c-e: #efb0d2; }
}

/* --- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--fond);
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--fond);
  color: var(--texte);
  font: 400 1rem/1.5 var(--police);
  font-feature-settings: "calt", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
::selection { background: var(--selection); color: var(--texte); }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button, a, label, summary, [role="button"] { touch-action: manipulation; }
button, .bascule, .nav-bas a, .nav-haut a, .bouton, .action, summary, .cuisine, .pastille-filtre, .option, .puce-active {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
button { cursor: pointer; }
input, select, textarea { font-size: 16px; } /* jamais de zoom iOS */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
main:focus-visible { outline: none; }
[hidden] { display: none !important; }

.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icone {
  width: 22px; height: 22px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.icone-etoile { fill: currentColor; stroke: none; width: 15px; height: 15px; }
.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--encre); color: var(--sur-encre);
  font-weight: 600; text-decoration: none;
}
.evitement:focus { top: calc(var(--zone-haut) + 12px); }
.pale { color: var(--texte-2); }

/* --- Logotype ------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--texte); }
.logo-pastille {
  display: grid; place-items: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--marque); color: var(--sur-marque);
  font-weight: 700; font-size: 21px; line-height: 1; letter-spacing: -.04em;
  padding-bottom: 2px;
}
.logo-mot { font-weight: 700; font-size: 18px; letter-spacing: -.035em; line-height: 1; }
.logo-clair { color: var(--sur-marque); }
.logo-clair .logo-pastille { background: var(--sur-marque); color: var(--marque); }
@media (prefers-color-scheme: dark) {
  .logo .logo-pastille { background: #2b4a42; color: #ffffff; }
  .logo-clair .logo-pastille { background: #ffffff; color: #13221e; }
}

/* --- Couverture sans photo (remplaçable par une photo, voir DESIGN.md) ------------ */
.couv {
  position: relative; display: grid; place-items: center; flex-shrink: 0;
  aspect-ratio: var(--couv-ratio, 1);
  border-radius: var(--couv-rayon, var(--r-m));
  background: var(--c-f, var(--surface-2)); color: var(--c-e, var(--texte-2));
  overflow: hidden; container-type: inline-size;
}
.couv > .icone { width: var(--couv-icone, 44%); height: auto; aspect-ratio: 1; stroke-width: 1.35; }
.couv-lettre { font-weight: 700; font-size: 46cqi; line-height: 1; letter-spacing: -.04em; padding-bottom: .06em; }
/* Photo (copiée du site du restaurant) posée sur le bloc coloré, qui sert de repli et de fond
   pendant le chargement. Image en échec sans JS : texte de remplacement masqué (transparent). */
.couv > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  color: transparent; font-size: 0;
}
.couv-credit { margin: 6px var(--gouttiere) 0; text-align: right; font-size: 12px; line-height: 1.4; color: var(--texte-2); }
.couv-credit a { color: inherit; text-underline-offset: .15em; }

/* --- Avatar à initiales --------------------------------------------------- */
.avatar {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-f); color: var(--c-e);
  font-weight: 700; font-size: 15px; letter-spacing: -.02em; line-height: 1;
}

/* --- Boutons -------------------------------------------------------------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--bouton); color: var(--sur-bouton);
  font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 150ms ease, opacity 150ms ease;
}
.bouton:active { transform: scale(.97); }
.bouton .icone { width: 20px; height: 20px; }
.bouton[aria-busy="true"] { opacity: .7; }
.bouton-second { background: var(--surface-2); color: var(--texte); }
.bouton-danger { background: var(--accent); color: var(--sur-accent); }
.bouton-petit { min-height: 44px; padding: 0 16px; font-size: 15px; }
.bouton-large { width: 100%; }
.bouton.enregistre { background: var(--surface-2); color: var(--texte); }
.bouton-rond {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--surface); color: var(--texte);
  box-shadow: var(--ombre-1); text-decoration: none;
  transition: transform 140ms var(--ease-out);
}
.bouton-rond:active { transform: scale(.92); }
.lien-danger {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 15px;
  text-decoration: underline; text-underline-offset: .2em;
}
.lien-fort { font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { opacity: .9; }
  .bouton-rond:hover { box-shadow: var(--ombre-2); }
  .lien-danger:hover { text-decoration-thickness: 2px; }
}

/* --- Champs --------------------------------------------------------------- */
.pile { display: grid; gap: 14px; }
.champ { display: grid; gap: 6px; min-width: 0; }
.champ-label { font-size: 14px; font-weight: 600; }
.titre-note, .requis { font-size: 13px; font-weight: 500; color: var(--texte-2); letter-spacing: 0; }
.aide { font-size: 14px; color: var(--texte-2); }
.champ input:not([type="checkbox"]):not([type="radio"]), .champ textarea, .select-enveloppe select {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1px solid var(--contour); border-radius: 14px;
  background: var(--surface); color: var(--texte);
  font-size: 16px; line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.champ textarea { resize: vertical; min-height: 92px; }
.champ input:focus-visible, .champ textarea:focus-visible, .select-enveloppe select:focus-visible {
  outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent);
}
.champ input[readonly] { background: var(--surface-2); }
::placeholder { color: var(--texte-2); opacity: 1; }
.select-enveloppe { position: relative; display: block; }
.select-enveloppe select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.select-enveloppe .icone { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--texte-2); }
.deux-colonnes { display: grid; gap: 14px; }
@media (min-width: 560px) { .deux-colonnes { grid-template-columns: 1fr 1fr; } }

/* Bascules (favori, testée, case à cocher) : puces à cocher. */
.bascules { display: flex; flex-wrap: wrap; gap: 8px; }
.bascule { position: relative; display: inline-flex; }
.bascule input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.bascule > span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--contour); background: var(--surface);
  font-weight: 600; font-size: 15px;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 140ms var(--ease-out);
}
.bascule .icone { width: 18px; height: 18px; }
.bascule input:checked + span { background: var(--encre); border-color: var(--encre); color: var(--sur-encre); }
.bascule-favori input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.bascule-favori input:checked + span .icone { fill: currentColor; }
.bascule input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.bascule input:active + span { transform: scale(.97); }
.bascule-seule { align-self: start; }
.bascule-petite > span { padding: 0 14px; font-size: 14px; }
fieldset.choix-cases { margin: 0; padding: 0; border: 0; min-width: 0; gap: 10px; }
fieldset.choix-cases legend { padding: 0; margin-bottom: 8px; }

/* --- Barre du haut (bureau) et barre d'onglets flottante (téléphone) ---------------------- */
.barre { display: none; }
.nav-bas {
  position: fixed; z-index: 40;
  left: max(12px, 50% - 210px); right: max(12px, 50% - 210px);
  bottom: calc(10px + var(--zone-bas));
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  height: var(--haut-onglets); padding: 6px;
  border-radius: 999px; background: var(--onglets);
  box-shadow: var(--ombre-2);
}
.nav-bas a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 999px; color: var(--sur-onglets-2); text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: .01em;
  transition: background-color 200ms ease, color 200ms ease, transform 140ms var(--ease-out);
}
.nav-bas a:active { transform: scale(.94); }
.nav-bas .icone { width: 23px; height: 23px; }
.nav-bas a[aria-current="page"] { color: var(--sur-onglets); background: rgb(255 255 255 / .13); }
.nav-bas a[aria-current="page"] .icone { stroke-width: 2; }
.nav-bas a[aria-current="page"][data-nav="favoris"] .icone { fill: currentColor; }
.nav-bas a:focus-visible { outline-color: #ffffff; outline-offset: -3px; border-radius: 999px; }
@media (prefers-color-scheme: dark) {
  .nav-bas { box-shadow: var(--ombre-2), inset 0 0 0 1px rgb(255 255 255 / .07); }
}

main { display: block; padding: 0 var(--gouttiere); }
body.connecte main { padding-bottom: var(--bas-libre); }

/* --- Messages et toasts ---------------------------------------------------- */
.messages { display: grid; gap: 8px; margin: calc(var(--zone-haut) + 12px) 0 4px; }
.flash {
  padding: 13px 16px; border-radius: 16px;
  background: var(--surface); box-shadow: var(--ombre-1);
  font-weight: 600; font-size: 15px;
}
.page-carnet .messages {
  position: fixed; z-index: 70; top: calc(var(--zone-haut) + 10px);
  left: max(12px, 50% - 220px); right: max(12px, 50% - 220px); margin: 0;
  pointer-events: none; animation: message-sortie 260ms 5s var(--ease-out) forwards;
}
.page-carnet .messages .flash { background: var(--onglets); color: var(--sur-onglets); box-shadow: var(--ombre-2); }
@keyframes message-sortie { to { opacity: 0; transform: translateY(-8px); visibility: hidden; } }

.toasts {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(var(--bas-libre) - 8px);
  display: grid; justify-items: center; gap: 8px; pointer-events: none;
}
.toast {
  max-width: 420px; padding: 12px 18px; border-radius: 999px;
  background: var(--onglets); color: var(--sur-onglets); box-shadow: var(--ombre-2);
  font-weight: 600; font-size: 15px; text-align: center;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
@starting-style { .toast { opacity: 0; transform: translateY(10px) scale(.98); } }
.toast.sortie { opacity: 0; transform: translateY(6px); transition-duration: 150ms; }
@media (prefers-color-scheme: dark) { .toast, .page-carnet .messages .flash { box-shadow: var(--ombre-2), inset 0 0 0 1px rgb(255 255 255 / .08); } }

/* --- Carnet : en-tête d'accueil ------------------------------------------- */
.page-carnet main { padding: 0 0 var(--bas-libre); }
.accueil {
  padding: calc(var(--zone-haut) + 14px) 20px 22px;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  background: var(--marque); color: var(--sur-marque);
}
.accueil-haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.accueil-profil { text-decoration: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -2px; border-radius: 50%; }
.accueil-profil .avatar { width: 38px; height: 38px; font-size: 14px; box-shadow: 0 0 0 2px rgb(255 255 255 / .18); }
.accueil-titre {
  margin: 22px 0 18px; max-width: 18ch;
  font-size: clamp(27px, 7.6vw, 34px); line-height: 1.14; letter-spacing: -.03em; overflow-wrap: anywhere;
}
.accueil-titre span { display: block; color: var(--sur-marque-2); }
.recherche { position: relative; }
.recherche > .icone { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--sur-marque-2); pointer-events: none; }
.recherche input {
  width: 100%; height: 54px; padding: 0 18px 0 50px;
  border: 1px solid rgb(255 255 255 / .1); border-radius: 999px;
  background: var(--marque-2); color: var(--sur-marque);
  font-size: 16px; font-weight: 500;
  -webkit-appearance: none; appearance: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.recherche input::placeholder { color: var(--sur-marque-2); }
.recherche input:focus-visible { outline: none; border-color: rgb(255 255 255 / .55); background: color-mix(in srgb, var(--marque-2) 85%, #ffffff); }
.recherche input::-webkit-search-cancel-button { filter: invert(1) brightness(1.4); }
.accueil :focus-visible { outline-color: #ffffff; }

.flash.bienvenue {
  margin: 14px var(--gouttiere) 0; padding: 14px 16px; border-radius: var(--r-m);
  background: var(--surface); box-shadow: var(--ombre-1); font-weight: 400;
}
.bienvenue-titre { display: block; font-weight: 700; font-size: 16px; }
.bienvenue-texte { font-size: 14px; color: var(--texte-2); }
.bienvenue-texte a { color: var(--texte); font-weight: 600; }

/* Passage de relais : « ouvre cette page dans Safari » (navigateur intégré d'une appli). */
.bandeau-safari {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px var(--gouttiere) 0; padding: 14px 8px 14px 14px; border-radius: var(--r-m);
  background: var(--surface); box-shadow: var(--ombre-1); color: var(--texte);
}
.bandeau-safari > .icone { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--focus); }
.bandeau-safari-corps { flex: 1; min-width: 0; display: grid; justify-items: start; gap: 10px; }
.bandeau-safari-corps p { font-size: 14px; line-height: 1.45; color: var(--texte-2); overflow-wrap: anywhere; }
.bandeau-safari-copier .icone { width: 18px; height: 18px; }
.bandeau-safari-copier.copie-ok { background: var(--selection); }
.bandeau-safari-fermer {
  display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; margin: -10px 0 -10px;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--texte-2);
}
.bandeau-safari-fermer .icone { width: 18px; height: 18px; }
.copie-cachee { position: fixed; top: 0; left: -9999px; opacity: 0; }
@media (min-width: 600px) { .bandeau-safari { margin-inline: 0; } }

/* --- Carnet : zone collante des filtres ---------------------------------------- */
/* UNE rangée défilante (bouton « Filtres », raccourcis, cuisines), puis les puces des filtres
   actifs seulement s'il y en a. Le reste (statut, jours, prix, ville, tri) est dans la feuille. */
.outils {
  position: sticky; top: 0; z-index: 20;
  padding: 8px 0 6px;
  background: var(--fond);
}
/* Le bouton « Filtres » reste à gauche, hors de la partie qui défile (raccourcis + cuisines). */
.rangee { position: relative; display: flex; align-items: center; }
.rangee-liste { flex: 1; min-width: 0; padding-left: 8px !important; scroll-padding-left: 8px !important; }
.rangee-liste, .actifs {
  position: relative; display: flex; align-items: center; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 2px var(--gouttiere); scroll-padding-inline: var(--gouttiere); scrollbar-width: none;
}
/* La rangée garde 5 px au-dessus et au-dessous : la zone de toucher (44 px) des pastilles de 34 px
   n'est pas rognée par le défilement horizontal. */
.rangee-liste { padding-block: 5px; }
.rangee-liste::-webkit-scrollbar, .actifs::-webkit-scrollbar { display: none; }
.rangee.defile .rangee-liste, .actifs.defile {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}
.rangee.defile-gauche .rangee-liste {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px);
  mask-image: linear-gradient(to right, transparent, #000 24px);
}
.rangee.defile.defile-gauche .rangee-liste {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 40px), transparent);
}
.filtres-sep { flex-shrink: 0; width: 1px; height: 24px; margin: 0 2px; background: var(--ligne-forte); }
/* Pastilles : 34 px visibles (texte 14 px), 44 px au toucher (zone élargie par ::before, sans
   hauteur visible en plus). */
.cuisine, .pastille-filtre {
  position: relative; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 34px; padding: 0 13px;
  border: 1px solid var(--ligne-forte); border-radius: 999px; background: var(--surface);
  color: var(--texte); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
}
.cuisine::before, .pastille-filtre::before, .filtres-feuille .option::before { content: ""; position: absolute; inset: -5px -3px; }
.cuisine:active, .pastille-filtre:active { transform: scale(.96); }
.cuisine:focus-visible, .pastille-filtre:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cuisine[aria-current="true"], .cuisine[aria-pressed="true"],
.pastille-filtre[aria-current="true"], .pastille-filtre[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--sur-encre); }
.cuisine-point {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-f); box-shadow: inset 0 0 0 3px var(--c-e);
}
.cuisine-n { font-size: 12px; font-weight: 500; opacity: .72; font-variant-numeric: tabular-nums; }
/* Bouton « Filtres » : contour appuyé (c'est une commande, pas un choix) + nombre de filtres actifs. */
.bouton-filtres { gap: 6px; margin-left: var(--gouttiere); padding: 0 12px 0 10px; border-color: var(--texte); }
.bouton-filtres .icone { width: 18px; height: 18px; }
.filtres-nb {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-right: -5px; padding: 0 6px;
  border-radius: 999px; background: var(--encre); color: var(--sur-encre);
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.filtres-nb[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cuisine:hover, .pastille-filtre:hover { border-color: var(--texte-2); }
  .bouton-filtres:hover { border-color: var(--texte); background: var(--surface-2); }
}
/* Puces des filtres actifs : noires comme un choix, croix pour retirer ; 34 px visibles, 44 px
   au toucher (zone élargie par ::after). */
.actifs { gap: 6px; padding-top: 8px; }
.actifs[hidden] { display: none; }
.puce-active, .puce-effacer {
  position: relative; display: inline-flex; flex-shrink: 0; align-items: center; gap: 4px;
  min-height: 34px; padding: 0 10px 0 14px; border: 0; border-radius: 999px;
  background: var(--encre); color: var(--sur-encre); font: inherit; font-weight: 600; font-size: 14px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 140ms var(--ease-out), opacity 150ms ease;
}
.puce-active::after, .puce-effacer::after { content: ""; position: absolute; inset: -5px -3px; }
.puce-active .icone { width: 16px; height: 16px; opacity: .8; }
.puce-effacer { padding: 0 10px; background: transparent; color: var(--texte-2); text-decoration: underline; text-underline-offset: 3px; }
.puce-active:active, .puce-effacer:active { transform: scale(.96); }
.puce-active:focus-visible, .puce-effacer:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Feuille « Filtres » (dialog au téléphone et au bureau, page /filtres sans JS). */
.filtres-feuille .feuille-titre { margin-bottom: 4px; }
.filtres-section { padding: 14px 0 16px; border-top: 1px solid var(--ligne); }
.filtres-section:first-of-type { border-top: 0; }
.filtres-section-titre { margin: 0 0 10px; font-size: 16px; letter-spacing: -.01em; }
.filtres-section-aide { font-size: 13px; font-weight: 500; color: var(--texte-2); letter-spacing: 0; }
/* 10 px entre deux lignes : les zones de toucher (34 + 2 × 5 px) se touchent sans se chevaucher. */
.options { display: flex; flex-wrap: wrap; gap: 10px 6px; }
.option {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 44px; min-height: 34px; margin: 0; padding: 0 12px;
  border: 1px solid var(--ligne-forte); border-radius: 999px; background: var(--surface);
  color: var(--texte); font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
}
/* `.option` sert aussi aux choix de l'ajout (plus bas) : la feuille garde ses pastilles. */
.filtres-feuille .option { display: inline-flex; gap: 5px; margin: 0; padding: 0 12px; border-radius: 999px; }
.option:active { transform: scale(.96); }
.option:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.option[aria-pressed="true"], .option[aria-current="true"] { background: var(--encre); border-color: var(--encre); color: var(--sur-encre); }
.option-n { font-size: 12px; font-weight: 500; opacity: .72; font-variant-numeric: tabular-nums; }
.option-n:empty { display: none; }
/* Téléphone : grilles régulières (statut 2 × 2, prix sur 4 colonnes) ; plus large : en ligne. */
.options-2, .options-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.options-2 .option, .options-4 .option { min-width: 0; padding-inline: 8px; }
.options-prix .option { gap: 4px; padding-inline: 4px; letter-spacing: -.02em; }
@media (max-width: 359px) { .options-prix { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 560px) {
  .options-2, .options-4 { display: flex; }
  .options-2 .option, .options-4 .option { min-width: 48px; gap: 5px; padding-inline: 12px; letter-spacing: normal; }
}
/* Jours d'ouverture : « Ouvert maintenant », UNE rangée de 7 jours (tient sur 320 px), Midi / Soir,
   puis une phrase d'aide. Aucun décompte : un jour qui donnerait 0 table est en retrait (contour
   en pointillé, texte secondaire), jamais bloqué ; aujourd'hui = petit point sous le libellé. */
.ouverture { display: grid; gap: 10px; justify-items: start; }
.jours { justify-self: stretch; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px 4px; max-width: 420px; }
.filtres-feuille .jour { min-width: 0; padding: 0 0 2px; font-size: 13px; letter-spacing: -.01em; }
.filtres-feuille .jour:has(.jour-auj) { padding-bottom: 6px; }
.filtres-feuille .jour::before { inset: -5px -2px; }
.jour-auj {
  position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: currentColor;
}
.jour.option-zero:not([aria-pressed="true"]):not([aria-current="true"]) { border-style: dashed; }
/* Nom complet du jour en bulle au survol (souris) ou au focus clavier. */
.jour::after {
  content: attr(data-nom); position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 2;
  padding: 4px 8px; border-radius: 8px; background: var(--encre); color: var(--sur-encre);
  font-size: 12px; font-weight: 600; letter-spacing: 0; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateX(-50%); transition: opacity 120ms ease;
}
.jour:first-child::after { left: 0; transform: none; }
.jour:nth-child(n+6)::after { left: auto; right: 0; transform: none; }
.jour:focus-visible::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .jour:hover::after { opacity: 1; } }
/* Aucune table avec ce choix (les autres filtres restant) : l'option reste choisissable, en retrait. */
.option-zero:not([aria-pressed="true"]):not([aria-current="true"]) { color: var(--texte-2); border-color: var(--ligne); }
.filtres-aide { margin: 0; font-size: 13px; line-height: 1.4; color: var(--texte-2); }
@media (hover: hover) and (pointer: fine) {
  .option:hover { border-color: var(--texte-2); }
}
.filtres-actions {
  position: sticky; bottom: 0; z-index: 1;
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  margin: 4px calc(-1 * var(--gouttiere)) 0; padding: 12px var(--gouttiere) calc(12px + var(--zone-bas));
  background: var(--fond); border-top: 1px solid var(--ligne);
}
.filtres-actions .bouton { min-width: 0; padding: 0 18px; white-space: nowrap; }
.feuille-corps:has(.filtres-feuille) { padding-bottom: 0; }
.page-feuille .filtres-actions { position: static; margin-inline: 0; padding-inline: 0; }
.filtre-note { margin: 2px var(--gouttiere) 0; font-size: 13px; color: var(--texte-2); }
/* Tranche de prix sur la carte : dessinée d'après data-prix (aucun octet de plus par carte
   sans tranche ; le texte généré est lu par les lecteurs d'écran). */
.card[data-prix] .carte-meta::after { font-weight: 600; letter-spacing: .02em; }
.card[data-prix="1"] .carte-meta::after { content: " · €"; }
.card[data-prix="2"] .carte-meta::after { content: " · €€"; }
.card[data-prix="3"] .carte-meta::after { content: " · €€€"; }
.card[data-prix="4"] .carte-meta::after { content: " · €€€€"; }

/* --- Carnet : sections ------------------------------------------------------- */
.section-titre { font-size: 21px; letter-spacing: -.025em; }
.vedettes { margin-top: 10px; }
.vedettes > .section-titre { padding: 0 var(--gouttiere); }
.vedettes-liste {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: min(70%, 252px); gap: 14px;
  margin: 0; padding: 12px var(--gouttiere) 18px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere);
  scrollbar-width: none;
}
.vedettes-liste::-webkit-scrollbar { display: none; }
.vedette { scroll-snap-align: start; min-width: 0; }
.vedette-lien {
  display: flex; flex-direction: column; height: 100%;
  padding: 8px 8px 14px; border-radius: var(--r-l);
  background: var(--surface); box-shadow: var(--ombre-1);
  color: var(--texte); text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease;
}
.vedette-lien:active { transform: scale(.97); }
.vedette .couv { --couv-ratio: 3 / 2; --couv-icone: 30%; --couv-rayon: 18px; }
.vedette .couv-lettre { font-size: 30cqi; }
.vedette-nom {
  margin: 12px 6px 4px; font-weight: 700; font-size: 16px; line-height: 1.25; letter-spacing: -.015em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  overflow-wrap: anywhere;
}
.vedette-note { display: flex; align-items: center; gap: 4px; margin: 0 6px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.vedette-nb { font-weight: 500; color: var(--texte-2); }
.vedette-meta { margin: 2px 6px 0; font-size: 14px; color: var(--texte-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.section-tete {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px var(--gouttiere) 2px;
}
.resultat { font-size: 14px; color: var(--texte-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.resultat strong { color: var(--texte); font-weight: 700; }

/* --- Carnet : cartes ----------------------------------------------------------- */
.cartes { display: grid; gap: 12px; margin: 0; padding: 10px var(--gouttiere) 8px; list-style: none; }
.card { min-width: 0; }
.carte {
  position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px;
  padding: 10px 14px 10px 10px; border-radius: var(--r-l);
  background: var(--surface); box-shadow: var(--ombre-1);
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease;
}
.carte .couv { --couv-icone: 46%; --couv-rayon: 16px; width: 88px; align-self: start; }
.carte-corps { min-width: 0; padding: 3px 0 2px; }
.carte-nom {
  padding-right: 34px; font-size: 17px; line-height: 1.25; letter-spacing: -.015em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  overflow-wrap: anywhere;
}
.carte-lien { color: inherit; text-decoration: none; }
.carte-lien::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.carte-lien:focus-visible { outline: none; }
.carte:has(.carte-lien:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.carte:has(.carte-lien:active) { transform: scale(.98); }
.carte-meta { margin-top: 3px; font-size: 14px; color: var(--texte-2); }
/* Catégorie en plus : petite puce discrète (contour, pas de couleur nouvelle). */
.puce-extra {
  display: inline-block; margin-left: 4px; padding: 0 7px; border: 1px solid var(--ligne-forte);
  border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; vertical-align: 1px; white-space: nowrap;
}
.carte-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 5px;
  font-size: 14px; font-variant-numeric: tabular-nums;
}
.carte-note .icone-etoile { margin-right: -2px; }
.score { font-weight: 700; }
.info-google { color: var(--texte-2); }
.carte-note .info-google { flex-basis: 100%; font-size: 13px; }
.carte-infos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.carte-infos:not(:has(> :not([hidden]))) { display: none; }
.info-perso, .info-comm, .info-vide {
  display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 10px;
  border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.info-perso .icone, .info-comm .icone { width: 15px; height: 15px; stroke-width: 2; }
.info-vide { background: transparent; padding: 0; color: var(--texte-2); font-weight: 500; }
.carte-remarque { margin-top: 6px; font-size: 13px; color: var(--texte-2); }
.favori-form { position: absolute; top: 4px; right: 4px; z-index: 2; }
.favori {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--texte-2);
  transition: transform 140ms var(--ease-out);
}
.favori:active { transform: scale(.88); }
.favori .icone { width: 23px; height: 23px; transition: fill 150ms ease, stroke 150ms ease; }
.favori[aria-pressed="true"] { color: var(--accent); }
.favori[aria-pressed="true"] .icone { fill: currentColor; }
.favori.bat .icone { animation: battement 240ms var(--ease-out); }
@keyframes battement { 0% { transform: scale(.85); } 55% { transform: scale(1.15); } 100% { transform: scale(1); } }
.card[aria-current] .carte { box-shadow: 0 0 0 2px var(--encre), var(--ombre-1); }
@media (hover: hover) and (pointer: fine) {
  .carte:hover, .vedette-lien:hover { box-shadow: var(--ombre-2); }
  .favori:hover { color: var(--accent); }
}

.vide { margin: 12px var(--gouttiere); padding: 32px 20px; border-radius: var(--r-l); background: var(--surface); text-align: center; box-shadow: var(--ombre-1); }
.vide-titre { font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.vide-texte { margin-top: 6px; color: var(--texte-2); }
.vide-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* --- Panneau : feuille plein écran (téléphone), panneau latéral (bureau) ---------- */
.panneau {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  top: calc(var(--zone-haut) + 10px);
  overflow-y: auto; overscroll-behavior: contain;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--fond); box-shadow: var(--ombre-2);
  transform: translateY(100%);
  transition: transform 280ms var(--ease-drawer);
}
.panneau.ouvert { transform: none; }
.panneau.fermeture { transition-duration: 200ms; }
.panneau.glisse { transition: none; }
body.panneau-ouvert { overflow: hidden; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 45; pointer-events: none;
  background: rgb(8 12 11 / .42); opacity: 0; transition: opacity 280ms ease;
}
body.panneau-ouvert::after { opacity: 1; }
.panneau-barre { position: sticky; top: 0; z-index: 5; height: 0; }
.poignee {
  position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px;
  border-radius: 999px; background: rgb(255 255 255 / .85); box-shadow: 0 0 0 1px rgb(0 0 0 / .06);
  touch-action: none; cursor: grab;
}
.poignee::before { content: ""; position: absolute; inset: -12px -70px; }
.panneau-barre .bouton-rond { position: absolute; top: 18px; left: 16px; }
.panneau-barre::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 76px;
  background: var(--fond); box-shadow: 0 1px 0 var(--ligne);
  opacity: 0; transition: opacity 160ms ease; pointer-events: none;
}
.panneau.defile .panneau-barre::before { opacity: 1; }
.panneau.defile .poignee { background: var(--ligne-forte); box-shadow: none; }
.panneau-contenu[aria-busy="true"] { opacity: .6; transition: opacity 150ms ease; }
.panneau .retour { display: none; }
.panneau .fiche-couv .couv-grande { --couv-rayon: var(--r-xl) var(--r-xl) var(--r-xl) var(--r-xl); }
.panneau .fiche-favori { top: 18px; }
.panneau.fermeture .fiche-actions { opacity: 0; }

/* --- Fiche ----------------------------------------------------------------------- */
.page-fiche main { padding: 0 0 calc(110px + var(--zone-bas)); }
.page-fiche .nav-bas { display: none; }
.page-fiche .toasts { bottom: calc(92px + var(--zone-bas)); }
.fiche { padding-bottom: calc(110px + var(--zone-bas)); }
.page-fiche .fiche { padding-bottom: 0; }
.fiche-couv { position: relative; }
.couv-grande { --couv-ratio: 16 / 11; --couv-icone: 26%; --couv-rayon: 0 0 var(--r-xl) var(--r-xl); width: 100%; }
.couv-grande > .icone { stroke-width: 1.1; }
.couv-grande .couv-lettre { font-size: 26cqi; }
.fiche-couv .retour { position: absolute; top: calc(var(--zone-haut) + 14px); left: 16px; }
.fiche-favori { position: absolute; top: calc(var(--zone-haut) + 14px); right: 16px; }
.fiche-favori .favori { background: var(--surface); color: var(--texte); box-shadow: var(--ombre-1); }
.fiche-favori .favori[aria-pressed="true"] { color: var(--accent); }
.fiche-tete { padding: 20px 20px 0; }
.fiche-tete h1 { font-size: 27px; line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; }
.fiche-tete h1.titre-long { font-size: 22px; }
.fiche-tete h1:focus-visible { outline-offset: 4px; }
.fiche-note { margin-top: 8px; }
.grande-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 16px; }
.grande-note .icone-etoile { width: 18px; height: 18px; }
.grande-note-chiffre { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.grande-note .fiche-note-texte::before { content: "·"; margin-right: 6px; color: var(--texte-2); }
.fiche-note-texte { color: var(--texte-2); }
.fiche-google { margin-top: 2px; font-size: 14px; color: var(--texte-2); font-variant-numeric: tabular-nums; }

/* --- Étoiles ----------------------------------------------------------------- */
.etoile { width: 16px; height: 16px; flex-shrink: 0; fill: var(--etoile-vide); stroke: none; color: var(--texte); }
.etoile.e-plein { fill: currentColor; }
.etoiles-lecture { display: inline-flex; gap: 1px; }
.notes-detail { display: grid; gap: 4px; margin: 10px 0 0; font-size: 14px; }
.notes-detail > div { display: grid; grid-template-columns: 76px auto; align-items: center; gap: 8px; }
.notes-detail dt { color: var(--texte-2); font-weight: 600; }
.notes-detail dd { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; font-variant-numeric: tabular-nums; }
.nd-valeur { font-weight: 700; }
.nd-nb { color: var(--texte-2); }

.champ-note { gap: 4px; }
.etoiles-saisie { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.etoiles-piste {
  display: inline-flex; margin-left: -6px; border-radius: 14px; cursor: pointer;
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.etoiles-piste:focus-visible { outline-offset: 0; }
.etoile-case { display: grid; place-items: center; width: 44px; height: 48px; }
.etoile-case .etoile { width: 34px; height: 34px; transition: fill 120ms ease; }
.etoile-case.pop .etoile { animation: etoile-pop 180ms var(--ease-out); }
@keyframes etoile-pop { 0% { transform: scale(.84); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
.etoiles-valeur { min-width: 4.8em; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.etoiles-retirer {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none;
  color: var(--texte-2); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: .2em;
}
.etoiles-statut { flex-basis: 100%; min-height: 1.4em; font-size: 13px; color: var(--texte-2); transition: opacity 200ms ease; }
.etoiles-statut:empty { opacity: 0; }
.fiche-puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.puce-info {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600;
  max-width: 100%; overflow-wrap: anywhere;
}
.puce-info .icone { width: 16px; height: 16px; stroke-width: 2; }
.puce-info.puce-extra { margin: 0; padding: 0 12px; background: none; border: 1px solid var(--ligne-forte); font-size: 14px; line-height: normal; color: var(--texte-2); }

/* Barre d'action sombre flottante. */
.fiche-actions {
  position: fixed; z-index: 60;
  left: max(12px, 50% - 280px); right: max(12px, 50% - 280px); bottom: calc(12px + var(--zone-bas));
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: var(--onglets); color: var(--sur-onglets); box-shadow: var(--ombre-2);
  transition: opacity 150ms ease;
}
.actions-resume { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.actions-nom { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actions-note { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--sur-onglets-2); font-variant-numeric: tabular-nums; }
.actions-note .icone-etoile { width: 13px; height: 13px; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; text-decoration: none; transition: transform 140ms var(--ease-out); }
.action:active { transform: scale(.94); }
.action-rond { width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / .12); color: var(--sur-onglets); }
.action-rond span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.action-principale {
  height: 48px; padding: 0 20px; border-radius: 999px;
  background: #ffffff; color: #141a18; font-weight: 700; font-size: 16px;
}
.action-principale .icone { width: 20px; height: 20px; }
.fiche-actions .action:focus-visible { outline-color: #ffffff; }
@media (prefers-color-scheme: dark) { .fiche-actions { box-shadow: var(--ombre-2), inset 0 0 0 1px rgb(255 255 255 / .08); } }
@media (max-width: 359px) {
  .actions-resume { display: none; }
  .fiche-actions { padding-left: 8px; }
  .action-principale { flex: 1; }
}
/* Trois actions rondes (Appeler, Site, Voir la carte) : le résumé (nom tronqué) céderait sa
   place ; il s'efface et « Itinéraire » prend la largeur restante. */
@media (max-width: 479px) {
  .fiche-actions:has(.action-rond + .action-rond + .action-rond) { padding-left: 8px; }
  .fiche-actions:has(.action-rond + .action-rond + .action-rond) .actions-resume { display: none; }
  .fiche-actions:has(.action-rond + .action-rond + .action-rond) .action-principale { flex: 1; }
}
@media (max-width: 359px) {
  .fiche-actions:has(.action-rond + .action-rond + .action-rond) { gap: 6px; }
  .fiche-actions:has(.action-rond + .action-rond + .action-rond) .action-rond { width: 44px; height: 44px; }
  .fiche-actions:has(.action-rond + .action-rond + .action-rond) .action-principale { padding: 0 12px; height: 44px; }
}

.fiche-bloc {
  margin: 20px var(--gouttiere) 0; padding: 18px;
  border-radius: var(--r-l); background: var(--surface); box-shadow: var(--ombre-1);
}
.fiche-bloc h2 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 14px; }
.fiche-bloc h2 .titre-note { margin-left: 4px; }
.titre-compte {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; margin-left: 4px;
  border-radius: 999px; background: var(--surface-2); font-size: 14px; vertical-align: 2px;
  font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.infos { display: grid; margin: -6px 0 0; }
.infos > div { padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.infos > div:last-child { border-bottom: 0; }
.infos dt { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--texte-2); }
.infos dt .icone { width: 16px; height: 16px; }
.infos dd { margin: 3px 0 0 22px; font-size: 16px; overflow-wrap: anywhere; }
.infos dd a { font-weight: 600; }
.description { margin-top: 12px; }
.description p:first-child { font-size: 16px; line-height: 1.6; }
.source { margin-top: 8px; font-size: 13px; color: var(--texte-2); overflow-wrap: anywhere; }
.remarque {
  display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2); font-size: 15px;
}
.remarque .icone { width: 20px; height: 20px; margin-top: 1px; }
.remarque-titre { display: block; font-weight: 700; font-size: 13px; }
/* Fermeture : bandeau sobre (pas d'accent : l'accent reste au favori et aux suppressions). */
.bandeau-ferme {
  display: flex; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--ligne-forte); font-size: 15px;
}
.bandeau-ferme .icone { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; }
.bandeau-ferme strong { display: block; font-weight: 700; }
.bandeau-note { display: block; margin-top: 2px; color: var(--texte-2); font-size: 14px; }
.bandeau-definitif { background: var(--encre); color: var(--sur-encre); border-color: var(--encre); }
.bandeau-definitif .bandeau-note { color: inherit; opacity: .78; }
.carte-ferme {
  display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--texte);
}
.lien-simple { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; }
.fiche-pied { margin-top: 14px; font-size: 13px; color: var(--texte-2); }
.fiche-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
/* « Signaler un problème » : lien discret qui ouvre sa feuille. */
.signaler { margin-top: 6px; }
.signaler-lien {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 14px; font-weight: 600; color: var(--texte-2); text-underline-offset: .2em;
}
.signaler-lien .icone { width: 16px; height: 16px; }
.signaler-form { display: grid; gap: 14px; }


.avis { display: grid; gap: 16px; }
.champ-note { max-width: 260px; }

.commentaires { display: grid; gap: 16px; margin: 0 0 4px; padding: 0; list-style: none; }
.commentaire { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.commentaire:focus-visible { outline-offset: 4px; }
.commentaire-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.commentaire-auteur { font-weight: 700; font-size: 15px; }
.commentaire-date { font-size: 13px; color: var(--texte-2); }
.commentaire-corps { margin-top: 2px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.commentaire-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 2px; }
.commentaire-actions summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: .2em; }
.commentaire-actions summary::-webkit-details-marker { display: none; }
.modifier[open] { flex-basis: 100%; }
.modifier form { display: grid; gap: 10px; margin-bottom: 6px; }
.modifier .bouton { justify-self: start; }
.anciens { margin-bottom: 16px; }
.anciens summary {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px;
  border-radius: 22px; background: var(--surface-2); font-weight: 600; font-size: 15px; line-height: 1.3;
  text-align: center; cursor: pointer; list-style: none;
}
.anciens summary::-webkit-details-marker { display: none; }
.anciens[open] summary { margin-bottom: 16px; }
.nouveau-commentaire { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ligne); }
.nouveau-commentaire .bouton { justify-self: start; }

/* Horaires : liste repliable (details) ; repliée = une ligne (état du jour), dépliée = la semaine. */
.fiche-horaires { padding-top: 6px; padding-bottom: 6px; }
.horaires-liste > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px;
  cursor: pointer; list-style: none;
}
.horaires-liste > summary::-webkit-details-marker { display: none; }
.horaires-liste > summary:focus-visible { outline-offset: 2px; }
.horaires-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-width: 0; }
.horaires-vide { min-height: 52px; }
.horaires-titre { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.horaires-chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--texte-2); transition: transform 180ms var(--ease-out); }
.horaires-liste[open] .horaires-chevron { transform: rotate(180deg); }
.horaires-liste[open] > summary { margin-bottom: 6px; }
.horaires-liste > .source { margin-top: 10px; }
.horaires-liste > .horaires-aide { margin-bottom: 10px; }
.horaires-etat { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 15px; color: var(--texte-2); }
.horaires-etat strong { color: var(--texte); }
.horaires-point { width: 10px; height: 10px; border-radius: 50%; background: var(--ligne-forte); flex-shrink: 0; }
.horaires-etat.est-ouvert .horaires-point { background: var(--focus); }
.horaires-etat.est-ouvert strong { color: var(--focus); }
.horaires-semaine { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.horaires-semaine th, .horaires-semaine td { padding: 7px 10px; text-align: left; vertical-align: top; }
.horaires-semaine th { width: 3.6em; font-weight: 600; color: var(--texte-2); }
.horaires-semaine abbr { text-decoration: none; }
.horaires-semaine td { overflow-wrap: anywhere; }
.horaires-semaine tr + tr th, .horaires-semaine tr + tr td { border-top: 1px solid var(--ligne); }
.horaires-semaine .aujourdhui th, .horaires-semaine .aujourdhui td { background: var(--surface-2); color: var(--texte); font-weight: 700; }
.horaires-semaine .aujourdhui th { border-radius: 10px 0 0 10px; }
.horaires-semaine .aujourdhui td { border-radius: 0 10px 10px 0; }
.horaires-semaine .aujourdhui th, .horaires-semaine .aujourdhui td, .horaires-semaine .aujourdhui + tr th, .horaires-semaine .aujourdhui + tr td { border-top-color: transparent; }
.horaires-semaine .ferme { color: var(--texte-2); }
.horaires-semaine .inconnu { color: var(--texte-2); font-style: italic; }
.horaires-aide { margin-top: 6px; font-size: 13px; }

/* Mon avis sur la fiche : une ligne compacte (le reste est dans la feuille). */
.fiche-mon-avis h2 { margin-bottom: 2px; }
.mon-avis-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.mon-avis-texte { min-width: 0; }
.mon-avis-note { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mon-avis-note .pale { font-weight: 500; }
.mon-avis-note .icone-etoile { width: 15px; height: 15px; }
.mon-avis-bouton { flex-shrink: 0; }
.criteres-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.criteres-titre { flex-basis: 100%; font-size: 13px; font-weight: 600; color: var(--texte-2); }
.critere-nb { margin-left: 2px; font-size: 11px; color: var(--texte-2); }
.critere-nb::before { content: "· "; }
.puce-nb { font-weight: 500; color: var(--texte-2); }
.puce-prix { letter-spacing: .02em; }

/* Feuille modale (dialog) : plein écran au téléphone, panneau centré au bureau. */
dialog.feuille {
  position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; height: auto;
  max-height: calc(100dvh - var(--zone-haut) - 10px); margin: 0; padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain;
  border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--fond); color: var(--texte); box-shadow: var(--ombre-2);
  transform: translateY(calc(100% + var(--glisse, 0px))); transition: transform 280ms var(--ease-drawer);
}
dialog.feuille.ouverte { transform: translateY(var(--glisse, 0px)); }
dialog.feuille.glisse { transition: none; }
dialog.feuille::backdrop { background: rgb(8 12 11 / .42); }
.feuille-barre { position: sticky; top: 0; z-index: 2; height: 64px; background: var(--fond); }
.feuille-barre .poignee { background: var(--ligne-forte); box-shadow: none; }
.feuille-barre .feuille-fermer { position: absolute; top: 12px; right: 16px; }
.feuille-corps { padding: 0 var(--gouttiere) calc(28px + var(--zone-bas)); }
.feuille .retour-page { display: none; }
.page-feuille .feuille-contenu { padding: calc(var(--zone-haut) + 18px) 4px 40px; }
.feuille-titre { font-size: 24px; letter-spacing: -.03em; margin: 0 0 16px; }
.feuille-titre:focus-visible { outline-offset: 4px; }
.feuille-sous-titre { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--texte-2); letter-spacing: 0; }
.page-feuille .retour-page {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0 0 6px -8px; padding: 0 12px 0 4px;
  font-weight: 600; font-size: 15px; color: var(--texte); text-decoration: none;
}
.page-feuille .retour-page .icone { width: 20px; height: 20px; }
@media (min-width: 900px) {
  dialog.feuille {
    inset: 0; margin: auto; width: min(560px, calc(100% - 48px)); height: auto; max-height: calc(100dvh - 64px);
    border-radius: var(--r-xl); transform: translateY(16px) scale(.98); opacity: 0;
    transition: transform 240ms var(--ease-out), opacity 200ms ease;
  }
  dialog.feuille.ouverte { transform: none; opacity: 1; }
  .feuille-barre .poignee { display: none; }
}
.avis-feuille { display: grid; gap: 18px; }
.moyenne-avis {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--ombre-1);
}
.moyenne-libelle { font-size: 14px; font-weight: 600; color: var(--texte-2); }
.moyenne-valeur { grid-row: span 2; font-variant-numeric: tabular-nums; }
.moyenne-valeur strong { font-size: 28px; letter-spacing: -.02em; }
.moyenne-sur { font-size: 15px; color: var(--texte-2); }
.moyenne-etoiles .etoile { width: 18px; height: 18px; }
.moyenne-aide { grid-column: 1 / -1; font-size: 13px; color: var(--texte-2); }
.criteres { display: grid; gap: 14px; }
.critere { max-width: none; gap: 2px; }
.critere .etoiles-statut { display: none; }
.critere .etoiles-saisie { flex-wrap: nowrap; gap: 0 6px; }
.critere .etoiles-valeur { min-width: 3.4em; font-size: 15px; }
.etoiles-retirer-icone {
  justify-content: center; width: 44px; min-height: 44px; padding: 0; border-radius: 50%; text-decoration: none;
}
.etoiles-retirer-icone .icone { width: 18px; height: 18px; }
/* Très petit écran : les étoiles gardent 44 px ; la valeur et « retirer » passent dessous. */
@media (max-width: 359px) { .critere .etoiles-saisie { flex-wrap: wrap; } }
.champ-aide { display: block; font-size: 13px; font-weight: 500; color: var(--texte-2); }
.critere .select-enveloppe { max-width: 260px; }
.prix-vote { margin: 0; padding: 0; border: 0; min-width: 0; }
.prix-vote legend { padding: 0; margin-bottom: 8px; }
.prix-choix { display: flex; flex-wrap: wrap; gap: 6px; }
.pastille-radio { position: relative; display: inline-flex; }
.pastille-radio input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pastille-radio > span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 11px;
  border: 1px solid var(--ligne-forte); border-radius: 999px; background: var(--surface);
  font-weight: 600; font-size: 15px; white-space: nowrap; letter-spacing: .02em;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
}
.pastille-radio input:checked + span { background: var(--encre); border-color: var(--encre); color: var(--sur-encre); }
.pastille-radio input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.pastille-radio input:active + span { transform: scale(.96); }
.plus-options { border-top: 1px solid var(--ligne); }
.plus-options > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding-top: 6px;
  font-weight: 700; font-size: 16px; cursor: pointer; list-style: none;
}
.plus-options > summary::-webkit-details-marker { display: none; }
.plus-options > summary .titre-note { display: block; }
.plus-options > summary .icone { width: 20px; height: 20px; flex-shrink: 0; color: var(--texte-2); transition: transform 180ms var(--ease-out); }
.plus-options[open] > summary .icone { transform: rotate(180deg); }
.plus-options-corps { display: grid; gap: 14px; padding: 6px 0 4px; }
.retirer-avis { display: grid; justify-items: start; gap: 4px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.confirmer { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 14px; color: var(--texte-2); cursor: pointer; }
.confirmer input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.retirer-avis .lien-danger { min-height: 44px; }
.commentaire-criteres { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.pastille-critere {
  display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 9px;
  border: 1px solid var(--ligne-forte); border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--texte-2); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pastille-critere strong { color: var(--texte); font-weight: 700; }

/* --- Pages (ajouter, profil, administration) --------------------------------------- */
.page-etroite { max-width: 640px; margin: 0 auto; }
.page-large { max-width: 1080px; margin: 0 auto; }
.page-tete { padding: calc(var(--zone-haut) + 22px) 4px 6px; }
.page-tete h1 { font-size: clamp(28px, 7.8vw, 36px); line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.chapeau { margin-top: 6px; font-size: 16px; color: var(--texte-2); overflow-wrap: anywhere; }
.page-tete .retour {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -8px 0 6px -10px; padding: 0 12px 0 6px;
  border-radius: 999px; color: var(--texte); font-weight: 600; font-size: 15px; text-decoration: none;
}
.page-tete .retour .icone { width: 20px; height: 20px; }
.carte-bloc {
  display: block; margin: 16px 0; padding: 20px;
  border-radius: var(--r-l); background: var(--surface); box-shadow: var(--ombre-1);
}
.carte-bloc > h2, .depliable summary h2 { font-size: 19px; letter-spacing: -.02em; }
.carte-bloc > h2 + .aide { margin-top: 6px; }
.carte-bloc > .aide + .pile, .carte-bloc > .aide + .candidats, .carte-bloc > .aide + .champ { margin-top: 16px; }
.carte-bloc > .aide + .liste-lignes { margin-top: 14px; }
.carte-bloc > h2 + .pile, .carte-bloc > h2 + .liste-lignes, .carte-bloc > h2 + .sources { margin-top: 14px; }
.encart { margin: 12px 0; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.depliable summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: -10px 0; cursor: pointer; list-style: none; }
.depliable summary::-webkit-details-marker { display: none; }
.depliable summary .icone { color: var(--texte-2); transition: transform 200ms var(--ease-out); }
.depliable[open] summary { margin-bottom: 16px; }
.depliable[open] summary .icone { transform: rotate(180deg); }
.sous-depliable summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; cursor: pointer; }
.sous-depliable[open] summary { margin-bottom: 8px; }

.sources { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.sources-titre { font-weight: 700; font-size: 14px; }
.sources ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.sources a {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px;
  border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; text-decoration: none;
  overflow-wrap: anywhere;
}
.sources a .icone { width: 16px; height: 16px; }
.sources + .pile { margin-top: 16px; }

.candidats { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.candidat-bouton {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px 12px 12px;
  border: 1px solid var(--ligne-forte); border-radius: var(--r-m); background: var(--surface);
  text-align: left; transition: transform 140ms var(--ease-out), border-color 150ms ease;
}
.candidat-bouton:active { transform: scale(.98); }
.candidat-bouton > .icone {
  width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--surface-2);
}
.candidat-texte { display: grid; min-width: 0; }
.candidat-texte strong { font-size: 16px; overflow-wrap: anywhere; }
.candidat-texte span { font-size: 14px; color: var(--texte-2); overflow-wrap: anywhere; }
.candidats + p { margin-top: 14px; }
.candidats + p .lien-fort { display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) and (pointer: fine) { .candidat-bouton:hover { border-color: var(--texte-2); } }

.ligne-lien { display: flex; align-items: center; gap: 14px; color: var(--texte); text-decoration: none; transition: transform 140ms var(--ease-out); }
.ligne-lien:active { transform: scale(.98); }
.ligne-lien > .icone:first-child { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.ligne-lien > span { display: grid; flex: 1; min-width: 0; }
.icone-suivant { transform: rotate(180deg); color: var(--texte-2); }
.profil-tete { display: flex; align-items: center; gap: 16px; }
.profil-tete .avatar { width: 64px; height: 64px; font-size: 24px; }
.profil-tete > div { min-width: 0; }
.installer-etapes { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: etape; }
.installer-etapes li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; counter-increment: etape; }
.installer-etapes li::before {
  content: counter(etape); display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px;
  border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: 13px;
}
.deconnexion { margin: 20px 0 8px; }

/* Administration */
.grille-admin { display: grid; gap: 0 16px; }
@media (min-width: 760px) { .grille-admin { grid-template-columns: 1fr 1fr; } }
.grille-admin .carte-bloc .bouton { margin-top: 14px; }
.grille-admin .pile .bouton { margin-top: 0; }
.liste-lignes { margin: 0; padding: 0; list-style: none; }
.ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 0; border-top: 1px solid var(--ligne); }
.ligne:first-child { border-top: 0; padding-top: 4px; }
.ligne-texte { display: flex; align-items: flex-start; gap: 12px; flex: 1 1 240px; min-width: 0; }
.ligne-texte > div, .ligne-texte > .ligne-mots { display: grid; min-width: 0; }
.ligne-texte strong { font-size: 16px; overflow-wrap: anywhere; }
.ligne-texte .aide { overflow-wrap: anywhere; }
.ligne-citation { margin-top: 4px; font-size: 14px; font-style: italic; }
.ligne-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.consequences { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.consequences li { display: flex; gap: 10px; font-size: 15px; }
.consequences li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.consequences strong { font-variant-numeric: tabular-nums; }
.danger .pile, .danger .barre-action { margin-top: 18px; }
.barre-action { display: flex; flex-wrap: wrap; gap: 10px; }
.choix { margin: 16px 0; border: 0; min-width: 0; }
.choix-plat { margin: 0; padding: 0; }
.choix-titre { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 17px; }
.choix-titre + * { clear: both; }
.choix-titre a { text-decoration: none; }
.option {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 8px;
  border: 1px solid var(--ligne-forte); border-radius: 16px; cursor: pointer;
}
.option:has(input:checked) { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.option input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--marque); }
.option-texte { display: grid; flex: 1; min-width: 0; }
.option-texte strong { overflow-wrap: anywhere; }
.option-source { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-size: 14px; font-weight: 600; }
.option-source .icone { width: 16px; height: 16px; }
@media (prefers-color-scheme: dark) { .option input { accent-color: #8fd3bd; } }

/* Lien personnel : affiché une seule fois, à copier d'un geste. */
.encart-fort { background: var(--marque); color: var(--sur-marque); }
.encart-fort .aide { color: var(--sur-marque-2); }
.encart-fort .champ-label { color: var(--sur-marque); }
.encart-fort .champ input[readonly] {
  background: var(--marque-2); color: var(--sur-marque); border-color: rgb(255 255 255 / .22);
  font-size: 15px; text-overflow: ellipsis;
}
.encart-fort .champ { margin-top: 16px; }
.encart-fort :focus-visible { outline-color: #ffffff; }
.alerte-lien {
  display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: rgb(255 255 255 / .1); font-size: 15px; font-weight: 500;
}
.alerte-lien .icone { width: 20px; height: 20px; margin-top: 1px; }
.alerte-lien strong { font-weight: 700; }
.encart-fort .bouton-copier { margin-top: 12px; width: 100%; background: #ffffff; color: #141a18; }
.encart-fort .bouton-copier.copie-ok { background: var(--sur-marque-2); }

/* --- Accès (connexion, invitation, mot de passe) ------------------------------------ */
body.couverture { background: var(--marque); }
body.couverture main { padding: 0; }
.acces { display: flex; flex-direction: column; min-height: 100dvh; }
.acces-entete { padding: calc(var(--zone-haut) + 56px) 24px 32px; color: var(--sur-marque); }
.acces-entete .logo-pastille { width: 56px; height: 56px; border-radius: 17px; font-size: 36px; background: #ffffff; color: var(--marque); }
.acces-titre { margin-top: 22px; font-size: 34px; line-height: 1.08; letter-spacing: -.04em; }
.acces-texte { margin-top: 10px; max-width: 34ch; font-size: 17px; color: var(--sur-marque-2); }
.acces-feuille {
  flex: 1; align-content: start; padding: 28px 20px calc(28px + var(--zone-bas));
  border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--fond); color: var(--texte);
}
.acces-feuille .bouton-large { margin-top: 6px; }
.acces-note {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2); font-size: 14px; color: var(--texte-2);
}
.acces-note .icone { width: 20px; height: 20px; color: var(--texte); }
@media (min-width: 600px) {
  .acces { justify-content: center; align-items: center; padding: 40px 20px; }
  .acces-entete { width: 100%; max-width: 440px; padding: 0 4px 28px; }
  .acces-feuille { flex: none; width: 100%; max-width: 440px; border-radius: var(--r-xl); padding: 28px; box-shadow: var(--ombre-2); }
}

/* --- Erreurs et hors-ligne ----------------------------------------------------------- */
.erreur {
  display: grid; justify-items: center; gap: 10px; max-width: 460px; margin: 0 auto;
  padding: calc(var(--zone-haut) + 72px) 8px 32px; text-align: center;
}
.erreur-code {
  display: grid; place-items: center; width: 112px; height: 112px; margin-bottom: 10px;
  border-radius: 34px; background: var(--surface-2); color: var(--texte-2);
  font-weight: 700; font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.erreur h1 { font-size: 27px; letter-spacing: -.03em; }
.erreur-message { color: var(--texte-2); max-width: 36ch; }
.erreur-actions { margin-top: 14px; }
body.couverture .erreur { color: var(--sur-marque); min-height: 100dvh; align-content: center; padding-top: var(--zone-haut); }
body.couverture .erreur-message { color: var(--sur-marque-2); }
body.couverture .erreur-code { background: var(--marque-2); color: var(--sur-marque); }
body.couverture .erreur .bouton { background: #ffffff; color: var(--marque); }
body.couverture .erreur .logo-pastille { width: 64px; height: 64px; border-radius: 20px; font-size: 40px; background: #ffffff; color: var(--marque); margin-bottom: 10px; }
body.couverture :focus-visible { outline-color: #ffffff; }

/* --- Bureau ------------------------------------------------------------------------- */
@media (min-width: 900px) {
  :root { --gouttiere: 32px; --bas-libre: 48px; }
  .nav-bas { display: none; }
  .barre {
    display: block; position: sticky; top: 0; z-index: 30;
    background: var(--fond); border-bottom: 1px solid var(--ligne);
  }
  .barre-interieur { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1320px; height: 68px; margin: 0 auto; padding: 0 var(--gouttiere); }
  .barre-marque { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; border-radius: 12px; }
  .nav-haut { display: flex; align-items: center; gap: 4px; }
  .nav-haut a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    border-radius: 999px; color: var(--texte-2); font-weight: 600; font-size: 15px; text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
  }
  .nav-haut a:hover { color: var(--texte); background: var(--surface-2); }
  .nav-haut a[aria-current="page"] { background: var(--encre); color: var(--sur-encre); }
  .nav-profil { padding-left: 6px !important; }
  .panneau { --gouttiere: 16px; }
  .nav-profil .avatar { width: 32px; height: 32px; font-size: 12px; }
  .nav-profil span:last-child { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .page-tete { padding-top: 36px; }
  .messages { margin-top: 20px; }
  .page-carnet .messages { top: 80px; }
  .toasts { bottom: 28px; }

  .page-carnet main { padding: 0 var(--gouttiere) 48px; max-width: 1320px; margin: 0 auto; }
  .carnet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
  .carnet.avec-panneau { grid-template-columns: minmax(0, 1fr) minmax(400px, 440px); }
  .carnet-liste { --gouttiere: 0px; min-width: 0; padding-top: 20px; }
  .accueil { border-radius: var(--r-xl); padding: 26px 32px 30px; }
  .accueil-haut { display: none; }
  .accueil-titre { margin-top: 0; max-width: none; font-size: 38px; }
  .accueil-titre span { display: inline; }
  .recherche { max-width: 560px; }
  /* Bureau : toutes les cuisines à la vue, retour à la ligne plutôt qu'une rangée à faire glisser ;
     trop haute pour rester collante, la barre défile avec la page. */
  .outils { position: static; padding-top: 16px; }
  .rangee-liste, .actifs { flex-wrap: wrap; row-gap: 10px; overflow: visible; padding-inline: 0; }
  .rangee { align-items: flex-start; }
  .bouton-filtres { margin: 2px 0 0; }
  .rangee.defile .rangee-liste, .actifs.defile { -webkit-mask-image: none; mask-image: none; }
  .vedettes-liste { grid-auto-columns: 248px; padding-left: 2px; padding-right: 2px; }
  .cartes { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); padding-inline: 0; }
  .vide { margin-inline: 0; }
  .flash.bienvenue { margin-inline: 0; }

  .panneau {
    position: sticky; top: 88px; left: auto; right: auto; bottom: auto; z-index: 10;
    height: calc(100dvh - 108px); margin-top: 20px;
    border-radius: var(--r-xl); background: var(--fond);
    box-shadow: var(--ombre-2), 0 0 0 1px var(--ligne);
    transform: translateX(16px); opacity: 0;
    transition: transform 240ms var(--ease-out), opacity 200ms ease;
  }
  .panneau.ouvert { transform: none; opacity: 1; }
  .panneau.fermeture { transition-duration: 160ms; }
  body.panneau-ouvert { overflow: visible; }
  body::after { display: none; }
  .poignee { display: none; }
  .panneau-barre .bouton-rond { top: 14px; left: 14px; }
  .panneau-barre::before { height: 70px; }
  .panneau .fiche-favori { top: 14px; right: 14px; }
  .panneau .fiche-couv .couv-grande { --couv-rayon: var(--r-xl) var(--r-xl) var(--r-l) var(--r-l); --couv-ratio: 16 / 9; }

  /* La barre d'action devient une rangée de boutons sous l'en-tête. */
  .fiche { padding-bottom: 24px; }
  .fiche-actions {
    position: static; margin: 18px 20px 0; padding: 0; border-radius: 0;
    background: none; color: var(--texte); box-shadow: none;
  }
  .actions-resume { display: none; }
  .action-rond { width: 48px; height: 48px; background: var(--surface-2); color: var(--texte); }
  .action-principale { background: var(--bouton); color: var(--sur-bouton); }
  .fiche-actions .action:focus-visible { outline-color: var(--focus); }
  .action-rond:hover { background: var(--ligne-forte); }
  .action-principale:hover { opacity: .9; }

  .page-fiche main { max-width: 760px; margin: 0 auto; padding: 24px var(--gouttiere) 64px; }
  .page-fiche .couv-grande { --couv-rayon: var(--r-xl); --couv-ratio: 21 / 9; }
  .page-fiche .couv-credit { margin-right: 4px; }
  .page-fiche .fiche-couv .retour, .page-fiche .fiche-favori { top: 16px; }
  .page-fiche .fiche-couv .retour { left: 16px; }
  .page-fiche .fiche-bloc, .page-fiche .fiche-tete { margin-left: 0; margin-right: 0; }
  .page-fiche .fiche-tete { padding-left: 4px; padding-right: 4px; }
  .page-fiche .fiche-actions { margin-left: 0; margin-right: 0; }
  .page-fiche .toasts { bottom: 28px; }
}

/* --- Préférences d'accessibilité --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
  .page-carnet .messages { animation: message-sortie 1ms 6s forwards !important; }
  /* La feuille et le panneau apparaissent en fondu court, sans glisser. */
  .panneau, .panneau.ouvert { transform: none; }
  .panneau { opacity: 0; transition: opacity 160ms ease !important; }
  .panneau.ouvert { opacity: 1; }
  .bouton:active, .bouton-rond:active, .carte:has(.carte-lien:active), .vedette-lien:active,
  .nav-bas a:active, .action:active, .favori:active, .cuisine:active, .option:active, .puce-active:active, .puce-effacer:active,
  .candidat-bouton:active, .ligne-lien:active, .bascule input:active + span, .pastille-filtre:active,
  .pastille-radio input:active + span { transform: none; }
  dialog.feuille, dialog.feuille.ouverte { transform: none; }
  dialog.feuille { opacity: 0; transition: opacity 160ms ease !important; }
  dialog.feuille.ouverte { opacity: 1; }
}
@media (prefers-contrast: more) {
  :root { --texte-2: #3d4542; --ligne: #9a9488; --ligne-forte: #6f695e; }
  .carte, .vedette-lien, .carte-bloc, .fiche-bloc { box-shadow: 0 0 0 1px var(--ligne-forte); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --texte-2: #cdd4d1; --ligne: #56615c; --ligne-forte: #7a8681; }
}
@media (forced-colors: active) {
  .couv, .avatar, .bouton, .nav-bas a[aria-current="page"] { border: 1px solid CanvasText; }
  .cuisine[aria-pressed="true"], .cuisine[aria-current="true"], .pastille-filtre[aria-pressed="true"],
  .pastille-filtre[aria-current="true"], .option[aria-pressed="true"], .option[aria-current="true"],
  .puce-active { border: 3px solid Highlight; }
}
.copie-bloc { margin-top: 4px; }
@media (hover: hover) and (pointer: fine) {
  .vedettes-liste { scrollbar-width: thin; scrollbar-color: var(--ligne-forte) transparent; }
  .vedettes-liste::-webkit-scrollbar { display: block; height: 8px; }
  .vedettes-liste::-webkit-scrollbar-thumb { background: var(--ligne-forte); border-radius: 999px; }
}
.commentaire-actions .lien-danger { color: var(--texte-2); font-weight: 500; font-size: 14px; }
@media (min-width: 900px) { .page-fiche .couv-grande .couv-lettre { font-size: 16cqi; } .page-fiche .couv-grande > .icone { --couv-icone: 16%; width: 16%; } }

/* --- Boîte « À décider » (admin) ----------------------------------------------------- */
/* Pastille de notification : nombre de décisions ouvertes (nav du haut, onglet Profil, profil). */
.pastille-nb {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
  border-radius: 999px; background: var(--accent); color: var(--sur-accent);
  font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; vertical-align: 1px;
}
.nav-bas a { position: relative; }
.pastille-onglet { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; box-shadow: 0 0 0 2px var(--onglets); }
.bandeau-decisions {
  display: flex; align-items: center; gap: 10px; margin: 14px var(--gouttiere) 0; padding: 12px 14px;
  border-radius: var(--r-m); background: var(--surface); box-shadow: var(--ombre-1);
  color: var(--texte); font-size: 15px; text-decoration: none; transition: transform 140ms var(--ease-out);
}
.bandeau-decisions:active { transform: scale(.98); }
.bandeau-decisions > .icone:first-child { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.bandeau-decisions > span { flex: 1; min-width: 0; }
.bandeau-decisions .icone-suivant { width: 18px; height: 18px; }

.onglets-page { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.onglets-page a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); color: var(--texte); font-weight: 600; font-size: 15px; text-decoration: none;
  white-space: nowrap; box-shadow: var(--ombre-1);
}
.onglets-page a[aria-current="page"] { background: var(--encre); color: var(--sur-encre); }
.onglets-page a[aria-current="page"] .titre-compte { background: rgb(255 255 255 / .18); color: inherit; }

.decision { scroll-margin-top: 16px; }
.decision-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.etiquette {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--surface-2); font-size: 13px; font-weight: 700;
}
.etiquette-confiance { background: none; border: 1px solid var(--ligne-forte); font-weight: 600; color: var(--texte-2); }
.etiquette-confiance[data-confiance="incertain"] { border-style: dashed; }
.carte-bloc > .decision-titre { font-size: 19px; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.decision-question { margin-top: 6px; font-size: 15px; line-height: 1.5; }
.decision-fiches { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.decision-fiches li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.decision-fiche { display: grid; min-width: 0; }
.decision-fiche a { color: var(--texte); overflow-wrap: anywhere; }
.decision-fiche .aide { font-size: 13px; overflow-wrap: anywhere; }
.decision-lettre {
  display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--encre); color: var(--sur-encre); font-size: 13px; font-weight: 700;
}
.preuves { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.preuves li {
  padding: 10px 12px; border-left: 3px solid var(--ligne-forte); font-size: 14px; line-height: 1.5;
  color: var(--texte-2); overflow-wrap: anywhere;
}
.preuves li > span { color: var(--texte); }
.preuves a { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; font-weight: 600; white-space: nowrap; }
.preuves a .icone { width: 15px; height: 15px; }
.decision-form { margin-top: 16px; }
.decision-form .sous-depliable { margin-bottom: 10px; }
.decision-options { display: grid; gap: 8px; }
.decision-option { width: 100%; min-height: 50px; padding: 10px 18px; border-radius: 18px; }
.decision-option > span { display: grid; gap: 2px; }
.option-detail { font-size: 13px; font-weight: 500; opacity: .78; overflow-wrap: anywhere; }
.decision-option:has(.option-apercu) { display: grid; gap: 10px; justify-items: start; padding: 10px; text-align: left; }
.option-apercu { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.admin-photo { margin-top: 16px; }
.admin-photo-apercu { display: grid; gap: 8px; margin: 12px 0 4px; }
.admin-photo-apercu .aide { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; margin: 0; }
.admin-photo-apercu .aide a { display: inline-flex; align-items: center; gap: 2px; }
.admin-photo-apercu .aide .icone { width: 14px; height: 14px; }
.couv-apercu { --couv-ratio: 3 / 2; --couv-icone: 26%; --couv-rayon: 18px; width: 100%; max-width: 360px; }
.decision-ignorer {
  justify-self: center; min-height: 44px; padding: 0 16px; border: 0; background: none;
  color: var(--texte-2); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: .2em;
}
.decision-groupe { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: var(--surface-2); }
.decision-groupe-titre { margin: 0; font-size: 13px; font-weight: 600; color: var(--texte-2); }
.decision-option-niveau { background: var(--surface); }
.decision-choix { display: flex; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.decision-choix .icone { width: 18px; height: 18px; flex-shrink: 0; }
@media (min-width: 560px) {
  .decision-options { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .decision-ignorer { grid-column: 1 / -1; }
  .decision-groupe { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  .decision-groupe-titre { grid-column: 1 / -1; }
}

/* --- Ajout : l'appli pose la question au lieu de deviner ------------------------------ */
.question h2 { font-size: 19px; letter-spacing: -.02em; }
.question-actions { display: grid; gap: 8px; margin-top: 14px; }
.question-actions .bouton { width: 100%; }
.question-note { margin-top: 10px; }
.question-autre { margin-top: 14px; }
@media (min-width: 560px) { .question-actions { grid-template-columns: 1fr 1fr; } }
.a-verifier {
  display: inline-block; margin-left: 6px; padding: 0 8px; border: 1px dashed var(--contour); border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 18px; color: var(--texte-2); vertical-align: 1px;
}
/* Provenance d'une valeur trouvée (« · OpenStreetMap », « · lien Google Maps ») : discrète. */
.provenance { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--texte-2); letter-spacing: 0; overflow-wrap: anywhere; }
.aide-champ { margin-top: -6px; font-size: 13px; overflow-wrap: anywhere; }
.question .form-lien, .question-form-ville { margin-top: 14px; }
.question-form-ville .bouton { width: 100%; }
.champ-google { display: grid; gap: 8px; }
.champ-google .bouton { justify-self: start; gap: 6px; }
.lien-google { margin-top: 8px; }
.lien-google a { display: inline-flex; align-items: center; gap: 4px; }
.lien-google .icone { width: 14px; height: 14px; flex: none; }
.question-form { display: contents; }
.question-form .bouton { width: 100%; }
.separateur-ou { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; font-size: 13px; font-weight: 600; color: var(--texte-2); }
.separateur-ou::before, .separateur-ou::after { content: ""; flex: 1; height: 1px; background: var(--ligne-forte); }
.carte-bloc > h2 .titre-note { margin-left: 6px; }
.encart-icone { display: flex; gap: 10px; font-size: 15px; }
.encart-icone .icone { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.erreur-code .icone { width: 40px; height: 40px; stroke-width: 1.8; }

/* --- Ajout : complément trouvé (horaires, prix, carte, photo), décochable ---------------- */
.complement { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.complement-titre { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.complement-titre .titre-note { margin-left: 6px; }
.complement-bloc { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.complement-case { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-height: 44px; cursor: pointer; }
.complement-case input { width: 22px; height: 22px; margin: 0 6px 0 0; accent-color: var(--texte); flex: none; }
.complement-nom { font-weight: 700; font-size: 15px; }
.complement-case .provenance { margin-left: 0; }
.complement-case .a-verifier { margin-left: 0; }
.complement-valeur { margin: 0 0 4px 34px; font-size: 15px; overflow-wrap: anywhere; }
.complement-valeur a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.complement-valeur .icone { width: 14px; height: 14px; }
.complement-semaine { margin: 0 0 2px; font-size: 14px; }
.complement-semaine th, .complement-semaine td { padding: 4px 8px; }
.complement-photo-corps { display: flex; align-items: center; gap: 12px; margin-left: 34px; }
.complement-miniature { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; background: var(--surface-2); flex: none; }
.complement-photo-corps .aide { font-size: 13px; overflow-wrap: anywhere; }
.complement-ligne { margin: 0; font-size: 13px; }
.complement-bloc:has(input:not(:checked)) > :not(.complement-case) { opacity: .45; }
@media (max-width: 359px) {
  .complement { padding: 12px; }
  .complement-valeur, .complement-photo-corps { margin-left: 0; }
}
