/* La capuche — feuille de style. Charte « éditorial chaud », pensée téléphone d'abord. */
:root {
  --creme: #f7f1e6; --creme2: #efe6d6; --papier: #fffaf1;
  --encre: #241c15; --encre2: #5b4f45; --discret: #7d7166; --grille: #e3d8c8;
  --terre: #c2502a; --terre-f: #8c3d18; --terre-c: #dc9874; --sarcelle: #00899e;
  --nuit: #1e1712;
  --titre: "DM Serif Display", Georgia, serif;
  --texte: "IBM Plex Sans", system-ui, sans-serif;
  --r: 14px; --ombre: 0 1px 2px rgba(36,28,21,.06), 0 8px 28px rgba(36,28,21,.09);
  --largeur: 1180px; --haut: 60px; --bas: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--haut) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--encre); font: 400 16px/1.55 var(--texte); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: var(--terre-f); }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
[hidden] { display: none !important; }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
.conteneur.etroit { max-width: 860px; }
.surtitre { font: 600 .78rem/1 var(--texte); letter-spacing: .13em; text-transform: uppercase; color: var(--terre); margin-bottom: 12px; display: inline-flex; gap: 10px; align-items: center; }
.surtitre::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.chapo { font-size: 1.05rem; color: var(--encre2); max-width: 62ch; margin: 0 0 1em; }
.centre { text-align: center; margin: 26px 0 0; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--encre); color: #fff; padding: 8px 14px; border-radius: 8px; }
.evitement:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sarcelle); outline-offset: 3px; border-radius: 6px; }

/* ---------- boutons et puces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; min-height: 46px; font: 600 .95rem var(--texte); cursor: pointer; text-decoration: none; transition: transform .15s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-plein { background: var(--terre); color: #fff; box-shadow: 0 6px 18px rgba(194,80,42,.28); }
.btn-plein:hover { background: var(--terre-f); }
.btn-contour { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.btn-clair { background: var(--creme); color: var(--encre); }
.puce { border: 1px solid var(--grille); background: var(--papier); border-radius: 999px; padding: 8px 14px; min-height: 40px; font: 500 .92rem var(--texte); cursor: pointer; color: var(--encre); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.puce:hover { border-color: var(--terre); color: var(--terre-f); }
.puce[aria-pressed="true"] { background: var(--encre); color: var(--creme); border-color: var(--encre); }
.puce small { opacity: .6; }
.puces-ligne { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: .9rem; color: var(--encre2); align-items: center; }

/* ---------- en-tête ---------- */
.haut { position: sticky; top: 0; z-index: 50; background: rgba(247,241,230,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--grille); padding-top: env(safe-area-inset-top); }
.haut .conteneur { display: flex; align-items: center; gap: 16px; height: var(--haut); }
.logo { display: flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; color: var(--encre); font: 1.45rem var(--titre); }
.logo svg { width: 34px; height: 34px; color: var(--encre); }
.nav-bureau { display: none; margin-left: auto; gap: 2px; align-items: center; }
.nav-bureau a { color: var(--encre); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav-bureau a:hover, .nav-bureau a.actif { background: rgba(194,80,42,.1); color: var(--terre-f); }
.nav-bureau .btn { padding: 9px 16px; min-height: 0; color: #fff; margin-left: 8px; }
.nav-bureau .btn.actif { background: var(--terre-f); color: #fff; }
.loupe-haut { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; color: var(--encre); border-radius: 50%; }

/* ---------- barre du bas (téléphone) ---------- */
.onglets-bas { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,250,241,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--grille); padding-bottom: env(safe-area-inset-bottom); }
.onglets-bas a, .onglets-bas button { display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; background: none; border: 0; color: var(--discret); font: 500 .75rem var(--texte); text-decoration: none; cursor: pointer; min-height: 56px; align-content: center; }
.onglets-bas svg { width: 24px; height: 24px; }
.onglets-bas .actif { color: var(--terre); }
.onglets-bas .actif span { font-weight: 700; }
body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }

/* feuille « Plus » */
dialog.feuille { margin: auto 0 0; width: 100%; max-width: 100%; border: 0; border-radius: 22px 22px 0 0; background: var(--papier); padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
dialog.feuille::backdrop { background: rgba(30,23,18,.5); }
dialog.feuille[open] { animation: monte .3s cubic-bezier(.2,.8,.2,1); }
.feuille .poignee { width: 44px; height: 5px; background: var(--grille); border-radius: 9px; margin: 2px auto 10px; }
.feuille a { display: block; padding: 15px 4px; border-bottom: 1px solid var(--grille); color: var(--encre); text-decoration: none; font-weight: 500; }
.feuille .btn { width: 100%; margin-top: 16px; }
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }

/* ---------- accueil ---------- */
.heros { position: relative; overflow: hidden; padding: 30px 0 34px; isolation: isolate; }
.heros::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 90%; height: 120%; z-index: -2; opacity: .2;
  background: radial-gradient(closest-side, transparent 58%, var(--terre) 59% 60%, transparent 61% 68%, var(--terre) 69% 70%, transparent 71% 78%, var(--terre) 79% 80%, transparent 81% 88%, var(--terre) 89% 90%, transparent 91%); transform: rotate(-12deg) scaleY(.8); }
.heros-texte { max-width: 640px; }
.heros h1 em { font-style: italic; color: var(--terre); }
.papiers { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: none; }
.papier { position: absolute; border-radius: 6px; box-shadow: 0 30px 60px rgba(36,28,21,.22); background: var(--papier); padding: 8px; will-change: transform; }
.papier img { border-radius: 3px; }
.papier.p1 { width: min(28vw, 380px); right: 6%; top: 12%; rotate: 5deg; }
.papier.p2 { width: min(17vw, 230px); right: 33%; top: 58%; rotate: -7deg; }
.papier.p3 { width: min(15vw, 200px); right: 2%; top: 62%; rotate: -2deg; }
.chiffres { display: flex; gap: 30px; margin-top: 26px; }
.chiffres b { display: block; font: 2rem/1 var(--titre); color: var(--terre); }
.chiffres span { font-size: .82rem; color: var(--encre2); }
.bloc { padding: 30px 0; }
.tete-bloc { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.tete-bloc h2 { margin: 0; }
.lien-voir { font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; padding: 10px 4px; margin: -10px -4px; }

/* recherche unique (cartes + lieux) */
.omni { position: relative; }
.omni-champ { display: flex; align-items: center; gap: 10px; background: var(--papier); border: 1.5px solid var(--grille); border-radius: 999px; padding: 0 8px 0 18px; box-shadow: var(--ombre); transition: border .2s; }
.omni-champ:focus-within { border-color: var(--terre); }
.omni-champ svg { flex: none; color: var(--discret); }
.omni-champ input { flex: 1; min-width: 0; border: 0; background: none; font: 16px var(--texte); padding: 15px 0; color: var(--encre); }
.omni-champ input:focus { outline: none; }
.omni-champ button { border: 0; background: var(--creme2); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 1.1rem; color: var(--encre2); }
.omni-res { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--papier); border: 1px solid var(--grille); border-radius: 18px; box-shadow: 0 18px 50px rgba(36,28,21,.2); padding: 8px; margin: 0; list-style: none; max-height: min(70svh, 520px); overflow-y: auto; }
.omni-res h4 { margin: 8px 10px 4px; font: 600 .78rem var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--discret); }
.omni-res li { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; cursor: pointer; min-height: 48px; }
.omni-res li:hover, .omni-res li.actif { background: var(--creme); }
.omni-res img { width: 38px; height: 48px; object-fit: cover; object-position: top; border-radius: 5px; flex: none; }
.omni-res .pastille { width: 38px; height: 38px; border-radius: 50%; background: rgba(194,80,42,.12); color: var(--terre); display: grid; place-items: center; flex: none; }
.omni-res .pastille svg { width: 20px; height: 20px; }
.omni-res b { font-weight: 600; font-size: .95rem; line-height: 1.3; display: block; }
.omni-res small { color: var(--discret); font-size: .8rem; }
.omni-res .tout { justify-content: center; color: var(--terre-f); font-weight: 600; }

/* thèmes */
.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.theme { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1.25; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; padding: 12px 14px; background: var(--nuit); isolation: isolate; }
.theme img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.5); z-index: -2; transition: transform .5s; }
.theme::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,23,18,.05) 20%, rgba(30,23,18,.82)); }
.theme:hover img { transform: scale(1.6); }
.theme b { font: 1.18rem/1.15 var(--titre); }
.theme span { font-size: .85rem; opacity: .85; }

/* promo « chez vous » */
.lieu-promo { display: grid; gap: 18px; background: var(--papier); border-radius: 22px; padding: 22px 18px; box-shadow: var(--ombre); margin-block: 14px; }
.lieu-promo h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
.lieu-promo .chapo { margin-bottom: 0; }

/* carrousel */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 18px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .carte { flex: 0 0 min(72vw, 270px); scroll-snap-align: start; }

/* ---------- liste de cartes ---------- */
.sous-outils { padding: 0 0 12px; }
.outils { position: sticky; top: calc(var(--haut) + env(safe-area-inset-top)); z-index: 20; background: rgba(247,241,230,.96); backdrop-filter: blur(8px); padding: 12px 0 8px; border-bottom: 1px solid var(--grille); margin-bottom: 16px; }
.filtres { display: flex; gap: 8px; margin: 10px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.filtres::-webkit-scrollbar { display: none; }
.ligne-filtres { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; font-size: .85rem; color: var(--encre2); }
.ligne-filtres select { font: 16px var(--texte); border: 1px solid var(--grille); background: var(--papier); border-radius: 8px; padding: 6px 8px; color: var(--encre); }
.compteur { margin-left: auto; font-weight: 600; }
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.carte { background: var(--papier); border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); cursor: pointer; display: flex; flex-direction: column; text-align: left; text-decoration: none; color: inherit; border: 0; padding: 0; font: inherit; transition: transform .2s, box-shadow .2s; animation: apparait .35s both; }
.carte:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(36,28,21,.16); }
.carte .img { aspect-ratio: 4/5; overflow: hidden; background: var(--creme2); position: relative; }
.carte .img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.carte .badge { position: absolute; left: 8px; top: 8px; background: rgba(30,23,18,.8); color: #fff; font-size: .75rem; font-weight: 600; border-radius: 999px; padding: 3px 9px; letter-spacing: .03em; }
.carte .corps { padding: 11px 12px 14px; }
.carte .meta { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--terre); font-weight: 700; }
.carte h3 { font-size: .98rem; margin: 4px 0 0; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.carte p { display: none; }
mark { background: rgba(220,152,116,.45); color: inherit; border-radius: 3px; padding: 0 2px; }
@keyframes apparait { from { opacity: 0; transform: translateY(12px); } }
.vide { text-align: center; padding: 50px 16px; color: var(--encre2); grid-column: 1/-1; }
.vide h3 { color: var(--encre); }

/* ---------- fiche d'une carte ---------- */
.fiche-page { padding-bottom: 20px; }
.retour-lien { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--encre2); font: 600 .92rem var(--texte); padding: 12px 0 8px; cursor: pointer; min-height: 44px; }
.retour-lien svg { width: 20px; height: 20px; }
.fiche-tete h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); }
.chiffre-cle { background: var(--papier); border-left: 4px solid var(--terre); border-radius: 0 10px 10px 0; padding: 12px 14px; margin: 10px 0 14px; font-weight: 500; font-size: .95rem; }
.fiche-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.fiche-grille > * { min-width: 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--creme2); padding: 4px; border-radius: 999px; gap: 2px; }
.seg button { border: 0; background: none; padding: 10px 4px; border-radius: 999px; font: 600 .85rem var(--texte); color: var(--encre2); cursor: pointer; min-height: 42px; }
.seg button[aria-selected="true"] { background: var(--papier); color: var(--encre); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.scene { margin-top: 12px; background: var(--creme2); border-radius: var(--r); overflow: hidden; position: relative; }
.scene img { width: 100%; height: auto; cursor: zoom-in; }
.scene iframe { display: block; width: 100%; height: 82svh; min-height: 520px; border: 0; background: var(--creme); }
.scene .zoom-ind { position: absolute; right: 10px; top: 10px; background: rgba(30,23,18,.75); color: #fff; font-size: .75rem; padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.palmares { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 14px; }
.palmares div { background: var(--papier); border-radius: 10px; padding: 12px 14px; font-size: .9rem; }
.palmares b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--terre); margin-bottom: 3px; }
.fiche-page details { border-top: 1px solid var(--grille); padding: 12px 0; }
.fiche-page summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.fiche-page dl { font-size: .92rem; margin: 8px 0 0; } .fiche-page dt { font-weight: 600; margin-top: 10px; } .fiche-page dd { margin: 2px 0 0; color: var(--encre2); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.actions .btn { padding: 11px 12px; font-size: .88rem; }
.actions .large { grid-column: 1/-1; }
.appel-pro { background: var(--nuit); color: var(--creme); border-radius: 14px; padding: 16px; font-size: .92rem; margin-top: 8px; }
.appel-pro a { color: var(--terre-c); font-weight: 600; }
.proches { margin-top: 26px; }

dialog.loupe-image { width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 0; background: #111; color: #fff; }
dialog.loupe-image::backdrop { background: #000; }
.vw { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.vw img { position: absolute; left: 0; top: 0; max-width: 100%; max-height: 100%; transform-origin: 0 0; will-change: transform; -webkit-user-drag: none; pointer-events: none; }
.vw-aide { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 16px; right: 70px; margin: 0; font-size: .78rem; opacity: .75; pointer-events: none; }
.vw-barre { position: absolute; left: 50%; translate: -50% 0; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); }
.vw-barre button { min-width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: #111; font: 600 1rem var(--texte); padding: 0 16px; cursor: pointer; }
#explorer-plein { position: fixed; inset: 0; z-index: 90; background: var(--creme); height: 100dvh; box-sizing: border-box; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
#explorer-plein iframe { width: 100%; height: 100%; border: 0; display: block; }
body.plein { overflow: hidden; }
.fermer { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; font-size: 1.6rem; z-index: 3; color: #111; }

.barre-cta { position: fixed; z-index: 55; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); padding: 10px 16px; background: rgba(247,241,230,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--grille); }
.barre-cta .btn { width: 100%; min-height: 50px; font-size: 1rem; }
.barre-cta[hidden] { display: none; }
.cta-flottant { position: fixed; z-index: 55; left: 50%; translate: -50% 0; bottom: calc(72px + env(safe-area-inset-bottom)); box-shadow: 0 10px 30px rgba(194,80,42,.45); white-space: nowrap; }
.cta-flottant[hidden] { display: none; }

/* ---------- mon lieu ---------- */
.lieu-tete { padding: 22px 0 8px; }
.lieu-tete .chapo { margin-bottom: 14px; }
.lieu-fiche { background: var(--papier); border-radius: 18px; padding: 18px; box-shadow: var(--ombre); margin: 18px 0 10px; display: grid; gap: 4px; }
.lieu-fiche .type { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--discret); font-weight: 700; }
.lieu-fiche h2 { margin: 0; font-size: clamp(1.7rem, 6vw, 2.4rem); }
.lieu-fiche p { margin: 4px 0 0; color: var(--encre2); font-size: .92rem; }
.lieu-fiche .liens { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.groupe { margin-top: 20px; }
.groupe > h3 { font: 700 .8rem var(--texte); letter-spacing: .12em; text-transform: uppercase; color: var(--terre); margin: 0 0 8px; }
.ligne { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: var(--papier); border-radius: 12px; padding: 13px 14px; margin-bottom: 8px; text-decoration: none; color: inherit; border: 1px solid transparent; min-height: 64px; }
.ligne:hover { border-color: var(--terre-c); }
.ligne .nom { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.ligne .ctx { font-size: .8rem; color: var(--encre2); margin-top: 2px; }
.ligne .val { text-align: right; }
.ligne .val strong { font: 1.45rem/1 var(--titre); color: var(--encre); white-space: nowrap; }
.ligne .val span { display: block; font-size: .78rem; color: var(--discret); margin-top: 4px; white-space: nowrap; }
.ligne .val .haut-b { color: var(--terre); font-weight: 600; } .ligne .val .bas-b { color: var(--sarcelle); font-weight: 600; }
.recents { margin-top: 18px; }
.recents h3 { font: 700 .74rem var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--discret); margin-bottom: 8px; }
.note-lieu { font-size: .82rem; color: var(--discret); margin-top: 18px; }

/* ---------- assistant ---------- */
.questions-types { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px; scrollbar-width: none; }
.questions-types::-webkit-scrollbar { display: none; }
.questions-types button { flex: none; max-width: 78vw; text-align: left; background: var(--papier); border: 1px dashed var(--terre-c); border-radius: 14px; padding: 11px 14px; font: 500 .88rem var(--texte); color: var(--encre); cursor: pointer; }
.chat { background: var(--papier); border-radius: 20px; box-shadow: var(--ombre); display: flex; flex-direction: column; height: calc(100dvh - var(--haut) - 340px); min-height: 380px; overflow: hidden; margin-bottom: 20px; }
.chat-tete { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--grille); }
.chat-tete .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--terre); display: grid; place-items: center; color: #fff; }
.chat-tete small { display: block; color: var(--discret); font-size: .76rem; }
.etat { width: 8px; height: 8px; border-radius: 50%; background: #3f9a5a; display: inline-block; margin-right: 5px; }
.fil { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { max-width: 90%; padding: 11px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.5; animation: apparait .3s both; }
.msg.moi { align-self: flex-end; background: var(--encre); color: var(--creme); border-bottom-right-radius: 4px; }
.msg.ia { align-self: flex-start; background: var(--creme); border-bottom-left-radius: 4px; }
.msg.ia p { margin: 0 0 8px; } .msg.ia p:last-child { margin: 0; }
.msg .liens { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mini { display: flex; gap: 10px; align-items: center; background: var(--papier); border: 1px solid var(--grille); border-radius: 10px; padding: 6px; cursor: pointer; text-align: left; font: inherit; color: inherit; text-decoration: none; }
.mini:hover { border-color: var(--terre); }
.mini img { width: 44px; height: 55px; object-fit: cover; object-position: top; border-radius: 5px; }
.mini b { font-size: .86rem; font-weight: 600; line-height: 1.3; }
.ecrit span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--discret); margin: 0 2px; animation: rebond 1s infinite; }
.ecrit span:nth-child(2) { animation-delay: .15s; } .ecrit span:nth-child(3) { animation-delay: .3s; }
@keyframes rebond { 50% { transform: translateY(-5px); opacity: .5; } }
.chat-pied { border-top: 1px solid var(--grille); padding: 10px; }
.chat-pied form { display: flex; gap: 8px; }
.chat-pied input { flex: 1; min-width: 0; border: 1.5px solid var(--grille); border-radius: 999px; padding: 11px 16px; font: 16px var(--texte); background: var(--creme); }
.chat-pied input:focus { outline: none; border-color: var(--terre); }
.chat-pied .btn { padding: 10px 16px; }
.avertissement { font-size: .8rem; color: var(--discret); margin: 8px 6px 0; }

/* ---------- formulaires, idées, pros ---------- */
.carte-form { background: var(--papier); border-radius: 20px; padding: 18px; box-shadow: var(--ombre); margin: 10px 0 26px; }
.onglets { display: flex; gap: 6px; background: var(--creme2); padding: 4px; border-radius: 999px; width: 100%; margin-bottom: 16px; }
.onglets button { flex: 1; border: 0; background: none; padding: 10px 8px; border-radius: 999px; font: 600 .88rem var(--texte); cursor: pointer; color: var(--encre2); }
.onglets button[aria-selected="true"] { background: var(--papier); color: var(--encre); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
form.f { display: grid; grid-template-columns: 1fr; gap: 14px; }
.f label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; }
.f input, .f select, .f textarea { font: 16px var(--texte); padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--grille); background: var(--papier); color: var(--encre); width: 100%; min-height: 46px; }
.f textarea { min-height: 130px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--terre); }
.f .case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.f .case input { width: 22px; min-height: 22px; margin-top: 2px; flex: none; }
.piege { position: absolute; left: -9999px; }
.retour { padding: 12px 16px; border-radius: 10px; font-size: .92rem; display: none; }
.retour.ok { display: block; background: rgba(63,154,90,.15); color: #2d6a3e; }
.retour.erreur { display: block; background: rgba(158,42,27,.12); color: #9e2a1b; }
.sous-titre { margin: 28px 0 12px; }
.liste-idees { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; }
.idee { display: grid; grid-template-columns: 54px 1fr; gap: 14px; background: var(--papier); border-radius: var(--r); padding: 14px; border: 1px solid var(--grille); }
.vote { border: 1.5px solid var(--grille); background: none; border-radius: 12px; cursor: pointer; display: grid; place-items: center; padding: 8px 0; font: 700 1rem var(--texte); color: var(--encre); height: fit-content; min-height: 54px; }
.vote:hover, .vote.fait { border-color: var(--terre); color: var(--terre); }
.vote svg { width: 16px; }
.idee h4 { margin: 0 0 4px; font: 600 1rem var(--texte); }
.idee p { margin: 0; font-size: .9rem; color: var(--encre2); }
.idee .etiquette { display: inline-block; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 2px 9px; margin-top: 8px; background: var(--creme2); color: var(--encre2); }
.idee .etiquette.encours { background: rgba(0,137,158,.12); color: #00697a; }
.idee .etiquette.faite { background: rgba(63,154,90,.14); color: #2d6a3e; }
.idee .reponse { margin-top: 8px; font-size: .86rem; border-left: 3px solid var(--terre-c); padding-left: 10px; color: var(--encre); }

section.pros { background: var(--nuit); color: var(--creme); min-height: 70svh; padding-bottom: 40px; }
.pros h1, .pros h2, .pros h3 { color: var(--creme); }
.pros .chapo { color: #cbbfae; }
.offres { display: grid; gap: 14px; margin: 18px 0 8px; }
.offre { border: 1px solid rgba(247,241,230,.15); border-radius: var(--r); padding: 20px; background: rgba(247,241,230,.03); }
.offre .num { font: 2.2rem/1 var(--titre); color: var(--terre-c); }
.offre p { color: #cbbfae; font-size: .95rem; }
.offre ul { padding-left: 18px; color: #e6dccb; font-size: .9rem; margin: 0; }
.etapes { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: e; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 44px 1fr; gap: 10px; margin-bottom: 16px; color: #cbbfae; }
.etapes li::before { content: counter(e); width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--terre-c); display: grid; place-items: center; color: var(--terre-c); font: 1.1rem var(--titre); }
.etapes b { color: var(--creme); display: block; }
.pros .f input, .pros .f select, .pros .f textarea { background: rgba(247,241,230,.06); border-color: rgba(247,241,230,.18); color: var(--creme); }
.pros .f select option { color: var(--encre); }
.pros .retour.ok { color: #9fdcb0; } .pros .retour.erreur { color: #f0a98c; }

.principes { display: grid; gap: 20px; margin-top: 8px; }
.principe { display: grid; grid-template-columns: 48px 1fr; gap: 14px; }
.principe .ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(194,80,42,.1); color: var(--terre); display: grid; place-items: center; }
.principe h3 { font-size: 1.15rem; margin: 2px 0 2px; }
.principe p { margin: 0; color: var(--encre2); font-size: .95rem; }
.portrait-hugo { margin: 6px 0 16px; }
.portrait-hugo img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: var(--ombre); border: 4px solid var(--papier); }
.signature { font: italic 1.6rem var(--titre); color: var(--terre); margin: 28px 0 40px; }

.bandeau { display: grid; gap: 12px; }
.bandeau-carte { background: var(--papier); border-radius: 18px; padding: 20px; box-shadow: var(--ombre); }
.bandeau-carte.sombre { background: var(--nuit); color: var(--creme); }
.bandeau-carte.sombre h3 { color: var(--creme); }
.bandeau-carte p { color: inherit; opacity: .8; margin: 0 0 14px; font-size: .95rem; }

/* ---------- pied ---------- */
.pied { background: var(--nuit); color: #cbbfae; padding: 40px 0 26px; font-size: .9rem; margin-top: 30px; }
.pied .conteneur { display: grid; gap: 24px; }
.pied .logo { color: var(--creme); } .pied .logo svg { color: var(--creme); }
.pied a:not(.logo) { color: #e6dccb; text-decoration: none; display: flex; align-items: center; min-height: 44px; }
.pied h4 { color: var(--creme); font: 600 .78rem var(--texte); letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 10px; }
.bas { border-top: 1px solid rgba(247,241,230,.1); padding-top: 18px; font-size: .78rem; }

/* ---------- tablette et bureau ---------- */
@media (min-width: 700px) {
  .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .themes { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .carte .corps { padding: 14px 16px 16px; } .carte h3 { font-size: 1.1rem; }
  .carte p { display: block; font-size: .85rem; color: var(--encre2); margin: 6px 0 0; }
  .lieu-promo { grid-template-columns: 1fr 1fr; align-items: center; padding: 30px; gap: 40px; }
  .bandeau { grid-template-columns: 1fr 1fr; }
  .offres { grid-template-columns: repeat(3, 1fr); }
  form.f { grid-template-columns: 1fr 1fr; } .f .large, .retour { grid-column: 1/-1; }
  .palmares { grid-template-columns: 1fr 1fr; }
  .pied .conteneur { grid-template-columns: 2fr 1fr 1fr; }
  .bas { grid-column: 1/-1; }
  .rail .carte { flex-basis: 260px; }
  .conteneur { padding: 0 24px; }
  .rail { margin: 0 -24px; padding: 4px 24px 18px; }
}
@media (min-width: 900px) {
  :root { --haut: 72px; }
  body { padding-bottom: 0; }
  .onglets-bas, .loupe-haut { display: none; }
  .nav-bureau { display: flex; }
  .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .themes { grid-template-columns: repeat(4, 1fr); }
  .heros { padding: 70px 0 80px; }
  .papiers { display: block; }
  .fiche-grille { grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; }
  .fiche-gauche { position: sticky; top: calc(var(--haut) + 16px); }
  .scene iframe { height: 78vh; }
  .chat { height: 560px; }
  .outils { padding-top: 16px; }
  .omni-champ input { font-size: 1.05rem; }
  .heros .omni { max-width: 580px; }
  .actions { grid-template-columns: repeat(2, auto); justify-content: start; }
  .actions .large { grid-column: auto; }
}
@media (max-width: 899px) { .fiche-page { padding-bottom: 96px; } }
@media (min-width: 900px) { .cta-flottant, .barre-cta { display: none; } }
a, button, summary, select, label, input { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
