/*
 * La Ludothèque — l'apparence. Papier chaud, boîtes posées sur une table avec leur ombre, rouge
 * tomate des couvercles. Téléphone d'abord ; à partir de 900 points, la navigation passe sur le
 * côté et la fiche sur deux colonnes. Clair ou sombre selon le téléphone.
 */
@font-face {
  font-family: "Nunito";
  src: url("/polices/nunito.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light dark only;
  --fond: #F7F1E6;
  --fond-2: #EFE5D3;
  --carte: #FFFDF8;
  --encre: #23252C;
  --doux: #6D6A64;
  --ligne: #E4D8C3;
  --accent: #D4513A;
  --accent-fonce: #B23F2B;
  --accent-doux: #F8DCD3;
  --sur-accent: #FFFFFF;
  --vert: #2D7A69;
  --vert-doux: #D5EBE4;
  --jaune: #E9A923;
  --jaune-doux: #FBEACB;
  --table-1: #FFFFFF;
  --table-2: #EFE5D4;
  --ombre-boite: rgba(64, 40, 12, .30);
  --ombre: 0 1px 2px rgba(64, 40, 12, .06), 0 6px 20px rgba(64, 40, 12, .07);
  --rayon: 18px;
  --nav-h: 72px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #16181D;
    --fond-2: #1D2027;
    --carte: #22262E;
    --encre: #F2EDE4;
    --doux: #A7A39B;
    --ligne: #343843;
    --accent: #FF7457;
    --accent-fonce: #FF8E76;
    --accent-doux: #4A2A24;
    --sur-accent: #1B0F0B;
    --vert: #4DB49C;
    --vert-doux: #1E3A34;
    --jaune: #F4C24E;
    --jaune-doux: #3D3220;
    --table-1: #30343E;
    --table-2: #1F2229;
    --ombre-boite: rgba(0, 0, 0, .55);
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
  /* En sombre, l'annonce et le bandeau sont clairs : leur lien passe au rouge, le vert prend un texte foncé. */
  .annonce .lien-bouton, .bandeau .lien-bouton { color: #B23F2B !important; }
  .bouton.joue { color: #0C1F1A !important; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--fond); color: var(--encre);
  font-family: "Nunito", system-ui, sans-serif; font-size: 16px; line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.cache { position: fixed; left: -9999px; }
.doux { color: var(--doux); }
.petit-texte { font-size: .85rem; }
.centre-texte { text-align: center; }

/* ─── pictogrammes ─── */
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.petit { width: 16px; height: 16px; }
.ico.grand { width: 34px; height: 34px; stroke-width: 1.6; }

/* ─── boutons ─── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0;
  background: var(--accent); color: var(--sur-accent);
  font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, opacity .15s ease;
}
.bouton:active { transform: scale(.97); }
.bouton:disabled { opacity: .5; cursor: default; }
.bouton.second { background: var(--carte); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--ligne); }
.bouton.danger { background: #C0392B; color: #fff; }
.bouton.danger.discret { background: transparent; color: #C0392B; box-shadow: none; }
.bouton.petit { min-height: 38px; padding: 0 14px; font-size: .92rem; border-radius: 12px; }
.bouton.large { width: 100%; }
.lien-bouton { background: none; border: 0; padding: 6px 4px; color: var(--accent-fonce); font-weight: 800; cursor: pointer; text-decoration: none; }
.rond {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 0; background: var(--carte); color: var(--encre);
  box-shadow: var(--ombre); text-decoration: none; cursor: pointer;
}
.rond.discret { box-shadow: none; background: var(--fond-2); width: 38px; height: 38px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions.collees { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px); z-index: 2; }
.actions.collees .bouton { flex: 1; box-shadow: 0 8px 24px var(--ombre-boite); }

/* ─── puces ─── */
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puces.defile { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 4px; margin: 0 -16px; scroll-padding: 16px; }
.puces.defile::-webkit-scrollbar { display: none; }
.puce {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0;
  background: var(--carte); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--ligne);
  font-weight: 700; font-size: .95rem; cursor: pointer;
}
.puce[aria-pressed="true"] { background: var(--encre); color: var(--fond); box-shadow: none; }
.puce.filtre .ico { transform: rotate(90deg); opacity: .55; }
.puce.effacer { background: transparent; box-shadow: none; color: var(--accent-fonce); }

/* ─── champs ─── */
.champ { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
.champ > span { color: var(--doux); }
input[type="text"], input[type="number"], input[type="url"], input[type="search"], textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid var(--ligne); background: var(--carte); font-weight: 600; font-size: 1rem;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.ligne-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; align-items: end; }
.message { min-height: 1.2em; font-weight: 700; font-size: .95rem; }
.message.erreur { color: #C0392B; }

/* ─── la coquille et la navigation ─── */
#bandeaux { position: sticky; top: 0; z-index: 30; }
.bandeau {
  display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 8px 16px; background: var(--encre); color: var(--fond); font-weight: 700; font-size: .92rem;
}
.bandeau .lien-bouton { color: var(--jaune); }
.coque { min-height: 100dvh; }
.contenu { padding: 0 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px); max-width: 1180px; margin: 0 auto; }
.navigation {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--carte) 92%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--ligne);
}
.nav-marque { display: none; }
.onglet {
  display: grid; justify-items: center; align-content: center; gap: 3px;
  text-decoration: none; color: var(--doux); font-size: .74rem; font-weight: 800;
}
.onglet[aria-current="page"] { color: var(--encre); }
.onglet[aria-current="page"] .onglet-icone { background: var(--fond-2); }
.onglet-icone { position: relative; display: grid; place-items: center; width: 54px; height: 32px; border-radius: 999px; }
.onglet.fort .onglet-icone { background: var(--accent); color: var(--sur-accent); width: 54px; }
.onglet.fort[aria-current="page"] .onglet-icone { background: var(--accent-fonce); }
.pastille {
  position: absolute; top: -6px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--jaune); color: #2B1E05; font-size: .72rem; font-weight: 900;
}

/* ─── les en-têtes ─── */
.entete { display: flex; align-items: center; gap: 12px; padding: 18px 0 12px; min-height: 76px; }
.entete-titres { flex: 1; min-width: 0; }
.entete h1 { font-size: 1.65rem; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sous-titre { color: var(--doux); font-weight: 700; font-size: .95rem; margin-top: 2px; }
.entete-droite { display: flex; gap: 8px; }
.titre-section { font-size: 1.15rem; font-weight: 900; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.titre-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 10px; flex-wrap: wrap; }
.titre-ligne .titre-section { margin: 0; }

/* ─── l'image d'un jeu : sur la table, avec son ombre ─── */
.visuel {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--rayon); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, var(--table-1) 0%, var(--table-2) 100%);
}
.visuel img { width: 100%; height: 100%; }
.visuel.detoure img {
  object-fit: contain; padding: 11%;
  filter: drop-shadow(0 12px 14px var(--ombre-boite)) drop-shadow(0 2px 3px var(--ombre-boite));
}
.visuel.photo img { object-fit: cover; }
.visuel.vide { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-doux), var(--jaune-doux)); }
.visuel.vide span { font-size: 3rem; font-weight: 900; color: var(--accent-fonce); opacity: .7; }

/* ─── le catalogue ─── */
.barre-recherche { margin-bottom: 10px; }
.champ-recherche { position: relative; display: block; }
.champ-recherche .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--doux); }
.champ-recherche input { padding-left: 44px; border-radius: 999px; min-height: 50px; background: var(--carte); }
.zone-tete { display: grid; gap: 10px; margin: 14px 0 6px; }
.zone-tete:empty { display: none; }
.rappel {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: var(--jaune-doux); color: var(--encre); font-weight: 800; text-decoration: none;
}
.rappel > :nth-child(2) { flex: 1; }
.rappel.doux { background: var(--fond-2); color: var(--doux); }
.pepite {
  display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 16px; align-items: center;
  padding: 12px; border-radius: calc(var(--rayon) + 4px); background: var(--carte); box-shadow: var(--ombre);
  text-decoration: none;
}
.pepite-texte { display: grid; gap: 6px; min-width: 0; }
.surtitre { display: flex; align-items: center; gap: 6px; color: var(--accent-fonce); font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.pepite h2 { font-size: 1.35rem; font-weight: 900; }
.pepite-resume { color: var(--doux); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grille-jeux { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 14px; }
.tuile {
  position: relative; display: grid; gap: 8px; text-decoration: none;
  transition: transform .15s ease;
}
.tuile:active { transform: scale(.98); }
.tuile .visuel { box-shadow: var(--ombre); }
.tuile-texte { padding: 0 4px; display: grid; gap: 4px; }
.tuile h3 { font-size: 1rem; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge {
  position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--carte) 88%, transparent); font-size: .75rem; font-weight: 800; color: var(--doux);
}
.reperes { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--doux); font-weight: 700; }
.reperes.courts { gap: 4px 10px; font-size: .82rem; }
.repere { display: inline-flex; align-items: center; gap: 5px; }
.reperes.courts .ico { width: 15px; height: 15px; }
.vide-etat { display: grid; justify-items: center; gap: 14px; padding: 48px 16px; color: var(--doux); text-align: center; font-weight: 700; grid-column: 1 / -1; }

/* ─── la fiche ─── */
.fiche-corps { display: grid; gap: 18px; }
.fiche-visuel .visuel { box-shadow: var(--ombre); max-height: 62vh; margin: 0 auto; }
.fiche-visuel .visuel.detoure img { padding: 8%; }
.fiche-infos { display: grid; gap: 14px; align-content: start; }
.fiche-nom { font-size: 2rem; font-weight: 900; }
.fiche-editeur { color: var(--doux); font-weight: 700; margin-top: -8px; }
.fiche .reperes { font-size: 1rem; color: var(--encre); }
.fiche .reperes .ico { color: var(--accent); }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }
.etiquette { padding: 5px 11px; border-radius: 999px; background: var(--fond-2); font-weight: 800; font-size: .85rem; }
.etiquette.mode { background: var(--vert-doux); color: var(--vert); }
.etiquette.niveau.facile { background: var(--vert-doux); color: var(--vert); }
.etiquette.niveau.moyen { background: var(--jaune-doux); color: #9A6A00; }
.etiquette.niveau.costaud { background: var(--accent-doux); color: var(--accent-fonce); }
.fiche-actions .bouton { flex: 1; min-width: 140px; }
.bouton.joue { background: var(--vert); color: #fff; }
.bloc { display: grid; gap: 6px; padding: 16px; border-radius: var(--rayon); background: var(--carte); box-shadow: var(--ombre); }
.bloc h2 { font-size: 1.05rem; font-weight: 900; }
.bloc p { font-size: 1.02rem; }
.bloc.famille { background: var(--jaune-doux); box-shadow: none; }
.liste-parties { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 2px; font-weight: 700; font-size: .92rem; }
.parties-texte { font-weight: 800; }
.bandeau-fiche { display: grid; gap: 10px; padding: 14px; border-radius: var(--rayon); background: var(--jaune-doux); font-weight: 800; }
.bandeau-fiche.alerte { background: var(--accent-doux); }
.bandeau-fiche.doux { background: var(--fond-2); color: var(--doux); }
.bandeau-fiche p { display: flex; gap: 8px; align-items: center; }
.bandeau-fiche .bouton { flex: 1; }

/* ─── formulaires ─── */
.formulaire { display: grid; gap: 14px; }
.groupe { display: grid; gap: 8px; }
.groupe h3 { font-size: .92rem; font-weight: 800; color: var(--doux); }
.groupe.refaire { padding: 14px; border-radius: var(--rayon); background: var(--fond-2); }
.photo-ligne { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.photo-boutons { display: grid; gap: 10px; justify-items: start; }

/* ─── ajouter ─── */
.deux-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gros-bouton {
  display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 128px; padding: 16px;
  border-radius: calc(var(--rayon) + 4px); border: 0; background: var(--accent); color: var(--sur-accent);
  font-weight: 900; font-size: 1.05rem; text-align: center; text-decoration: none; cursor: pointer; box-shadow: var(--ombre);
}
.gros-bouton.second { background: var(--carte); color: var(--encre); }
.gros-bouton:disabled { opacity: .5; }
.gros-bouton:active { transform: scale(.98); }
.conseil { color: var(--doux); font-weight: 700; text-align: center; margin: 12px 0 4px; font-size: .92rem; }
.liste-file, .liste-verifier { display: grid; gap: 10px; }
.ligne-file, .carte-verifier {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--rayon);
  background: var(--carte); box-shadow: var(--ombre);
}
.carte-verifier.alerte { box-shadow: inset 0 0 0 2px var(--accent-doux), var(--ombre); }
.carte-verifier-lien { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; }
.mini { width: 64px; flex: none; }
.mini .visuel { border-radius: 12px; }
.mini .visuel.detoure img { padding: 6%; }
.ligne-texte { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ligne-nom { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-etat { display: flex; align-items: center; gap: 6px; color: var(--doux); font-weight: 700; font-size: .88rem; }
.ligne-etat.alerte { color: var(--accent-fonce); }
.ligne-file.erreur .ligne-etat { color: var(--accent-fonce); }
.ligne-file:not(.erreur) .ligne-etat .ico { animation: tourne 2.4s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ─── on joue à quoi ─── */
.raccourcis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gros-bouton.hasard { background: linear-gradient(135deg, var(--accent), #E8833A); }
.questions { display: grid; gap: 18px; margin-top: 22px; padding: 18px; border-radius: calc(var(--rayon) + 4px); background: var(--carte); box-shadow: var(--ombre); }
.questions .bouton.large { margin-top: 4px; }
.resultats { scroll-margin-top: 16px; }
.resultats:not(:empty) { margin-top: 22px; display: grid; gap: 14px; }
.idees { display: grid; gap: 12px; }
.idee {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; padding: 10px;
  border-radius: var(--rayon); background: var(--carte); box-shadow: var(--ombre); text-decoration: none;
}
.idee-texte { display: grid; gap: 5px; min-width: 0; }
.idee h3 { font-size: 1.1rem; font-weight: 900; }
.idee-resume { color: var(--doux); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oublies { margin-top: 10px; }

/* ─── le tirage ─── */
dialog.tirage { width: min(360px, calc(100vw - 32px)); text-align: center; display: grid; gap: 12px; justify-items: center; }
.tirage-visuel { width: 230px; }
.tirage-visuel .visuel { box-shadow: var(--ombre); }
.tirage-nom { font-size: 1.4rem; font-weight: 900; min-height: 1.4em; }
.tirage-infos .reperes { justify-content: center; }
.tirage.pose .tirage-visuel { animation: pose .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pose { 0% { transform: scale(.85) rotate(-4deg); } 100% { transform: scale(1) rotate(0); } }
.tirage .actions { justify-content: center; }

/* ─── dialogues et feuilles ─── */
dialog { border: 0; padding: 0; background: var(--carte); color: var(--encre); }
dialog::backdrop { background: rgba(20, 16, 10, .45); backdrop-filter: blur(2px); }
dialog.boite { border-radius: 22px; padding: 22px; max-width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
dialog.boite > p { font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; }
dialog.boite .actions { justify-content: flex-end; }
dialog.feuille {
  width: 100%; max-width: 100%; margin: auto 0 0; max-height: 86dvh; border-radius: 24px 24px 0 0;
  padding: 0 0 env(safe-area-inset-bottom);
}
dialog.feuille[open] { animation: monte .22s ease-out; }
@keyframes monte { from { transform: translateY(40px); opacity: .5; } }
.feuille .interieur { padding: 18px 18px 22px; display: grid; gap: 16px; }
.feuille-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feuille-tete h2 { font-size: 1.25rem; font-weight: 900; }
.grille-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.choix {
  min-height: 56px; border-radius: 14px; border: 0; background: var(--fond-2); font-weight: 900; font-size: 1.05rem; cursor: pointer;
}
.choix[aria-pressed="true"] { background: var(--encre); color: var(--fond); }
.annonce {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px); transform: translateX(-50%);
  z-index: 40; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 14px;
  background: var(--encre); color: var(--fond); font-weight: 800; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: opacity .4s ease; max-width: calc(100vw - 32px);
}
.annonce .lien-bouton { color: var(--jaune); }
.annonce.partie { opacity: 0; }

/* ─── profil ─── */
.carte-section { display: grid; gap: 12px; padding: 18px; margin-bottom: 14px; border-radius: calc(var(--rayon) + 2px); background: var(--carte); box-shadow: var(--ombre); }
.carte-section h2 { font-size: 1.1rem; font-weight: 900; }
.carte-section h3 { font-size: .92rem; font-weight: 800; color: var(--doux); }
.liste-simple { list-style: none; margin: 0; padding: 0; display: grid; }
.ligne-simple { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ligne); font-weight: 700; }
.ligne-simple:last-child { border-bottom: 0; }
.carte-lien { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--fond-2); }
.carte-lien .adresse { font-family: ui-monospace, monospace; font-size: .8rem; word-break: break-all; color: var(--doux); }
.pied { justify-content: space-between; margin: 8px 0 12px; }

/* ─── l'entrée ─── */
.ecran.entree { min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 28px; padding: 32px 20px; }
.marque { display: grid; justify-items: center; gap: 10px; text-align: center; }
.marque .logo { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 10px 30px var(--ombre-boite); }
.marque h1 { font-size: 2.1rem; font-weight: 900; }
.pile { display: grid; gap: 12px; width: min(380px, 100%); }
.pile h2 { font-size: 1.2rem; font-weight: 900; }
.accueil { font-size: 1.15rem; font-weight: 800; text-align: center; }

/* ─── sur grand écran ─── */
@media (min-width: 640px) {
  .grille-jeux { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
  .idees { grid-template-columns: repeat(3, 1fr); }
  .idee { grid-template-columns: 1fr; align-items: start; }
  .deux-boutons, .raccourcis { max-width: 640px; }
  dialog.feuille { max-width: 560px; margin: auto; border-radius: 24px; }
}
@media (min-width: 900px) {
  :root { --nav-h: 0px; }
  .coque { display: grid; grid-template-columns: 232px 1fr; }
  .navigation {
    position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px;
    padding: 22px 14px; border-top: 0; border-right: 1px solid var(--ligne); background: var(--carte); backdrop-filter: none;
  }
  .nav-marque { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; text-decoration: none; font-weight: 900; font-size: 1.15rem; }
  .nav-marque img { border-radius: 10px; }
  .onglet { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 14px; font-size: 1rem; color: var(--encre); }
  .onglet[aria-current="page"] { background: var(--fond-2); }
  .onglet[aria-current="page"] .onglet-icone { background: transparent; }
  .onglet-icone { width: 40px; height: 40px; }
  .onglet.fort .onglet-icone { width: 40px; border-radius: 12px; }
  .contenu { padding: 8px 36px 48px; width: 100%; }
  .entete { padding-top: 28px; }
  .entete h1 { font-size: 2rem; }
  .puces.defile { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .barre-recherche { max-width: 560px; }
  .pepite { grid-template-columns: 260px 1fr; padding: 16px; max-width: 860px; }
  .zone-tete { max-width: 860px; }
  .fiche-corps { grid-template-columns: minmax(320px, 46%) 1fr; gap: 36px; align-items: start; }
  .fiche-visuel { position: sticky; top: 24px; }
  .fiche-visuel .visuel { max-height: none; }
  .fiche-nom { font-size: 2.4rem; }
  .formulaire, .ecran.profil, .ecran.ajout { max-width: 760px; }
  .ecran.choisir .questions, .ecran.choisir .raccourcis { max-width: 760px; }
  .actions.collees { bottom: 16px; }
  .annonce { bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
