/* ───── Tableau d'enquête ───── */
body.sans-defil { overflow: hidden; overscroll-behavior: none; }
.tb-ecran { position: fixed; inset: 0; z-index: 1; background: #1A120B; overflow: hidden; }
.tb-vp { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.tb-vp.mode-fil { cursor: crosshair; }
.tb-board { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
/* Fond uni sous le tableau : couche de couleur pleine que le GPU dessine sans rastériser.
   Pendant un zoom/déplacement rapide sur GSM, les tuiles pas encore peintes laissent voir ce fond
   (liège) au lieu de carrés noirs. Il suit la même transformation que #tb-board. */
.tb-fond { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; background: #9C7349; box-shadow: 0 0 0 26px #4F3620; border-radius: 2px; pointer-events: none; }
.tb-cadre { position: absolute; inset: -26px; border-radius: 8px; background: linear-gradient(135deg, #6B4A2B, #4A3119 40%, #5E4026 60%, #3E2914); box-shadow: 0 14px 28px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,220,170,.25); }
/* Texture liège = petite image répétée (bien plus légère à peindre que des dégradés radiaux en 7 px sur 2800 px). */
.tb-liege { position: absolute; inset: 0; background-color: #A47B4F;
  background-image: radial-gradient(ellipse at 50% 35%, rgba(255,230,190,.2), transparent 60%), url('../img/liege.png');
  background-size: 100% 100%, 96px 96px;
  box-shadow: inset 0 0 40px rgba(40,20,5,.55); }

.tb-etiquette { position: absolute; left: 560px; top: 34px; width: 480px; padding: 12px 16px; background: #F2EDE1; transform: rotate(-1deg); box-shadow: 0 8px 14px rgba(40,20,5,.45); text-align: center; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.tb-etiquette .tb-n { font-size: 14px; color: #6B5B3A; }
.tb-dossier { font-family: 'Special Elite', 'IBM Plex Mono', monospace; font-size: 24px; color: #1D1A15; line-height: 1.1; }
.tb-scotch { position: absolute; top: -11px; width: 76px; height: 24px; background: rgba(240,230,190,.72); }
.tb-scotch.g { left: 36px; transform: rotate(-6deg); } .tb-scotch.d { right: 36px; transform: rotate(5deg); }
.tb-n { font-family: 'Special Elite', 'IBM Plex Mono', monospace; letter-spacing: .5px; }

/* Plan */
.tb-map { position: absolute; transform: rotate(-.5deg); box-shadow: 0 2px 2px rgba(0,0,0,.25), 0 18px 34px rgba(40,20,5,.55); cursor: pointer; }
.tb-plan { display: block; }
.tb-plan .tb-quartiers text { font-family: 'Special Elite', monospace; font-size: 13px; fill: rgba(94,74,48,.55); letter-spacing: 2px; }
.tb-plan .tb-quartiers .tb-q2 { font-size: 10px; fill: #4E6B3D; }
.tb-plan .tb-canal { font-family: 'Caveat', cursive; font-size: 24px; fill: #4F7A99; }
.tb-plan .tb-n { font-size: 11px; fill: #3A352C; }
.tb-plan .tb-croix { font-family: 'Caveat', cursive; font-weight: 700; font-size: 44px; fill: #B3261E; }
.tb-plan .tb-trajet { fill: none; stroke: #B3261E; stroke-width: 3; stroke-dasharray: 9 6; stroke-linecap: round; opacity: .85; }
.tb-plan .tb-min-bg { fill: #FFF8E6; stroke: #B3261E; stroke-width: 1.5; }
.tb-plan .tb-min { font-family: 'Caveat', cursive; font-weight: 700; font-size: 21px; fill: #B3261E; }
.tb-plan .tb-heures { font-family: 'Caveat', cursive; font-weight: 700; font-size: 22px; fill: #B3261E; }
.tb-mpin { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #A8F0C6, #2E9E62 45%, #11502E); box-shadow: 2px 4px 4px rgba(30,15,0,.55); }
.tb-mpin.tl { left: -9px; top: -9px; } .tb-mpin.tr { right: -9px; top: -9px; } .tb-mpin.bl { left: -9px; bottom: -9px; } .tb-mpin.br { right: -9px; bottom: -9px; }

.tb-lieu { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; z-index: 2; }
.tb-lieu-pt { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #1F4FA0; background: rgba(255,255,255,.55); box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.tb-lieu-nom { font-family: 'Caveat', cursive; font-weight: 700; font-size: 19px; color: #1F4FA0; background: rgba(239,231,208,.88); padding: 0 4px; white-space: nowrap; border-radius: 3px; }
.tb-lieu.loin .tb-lieu-pt { border-style: dashed; }
.tb-lieu.tb-sel .tb-lieu-pt, .tb-lieu.tb-from .tb-lieu-pt { box-shadow: 0 0 0 5px rgba(255,178,63,.9); }

/* Éléments punaisés */
.tb-it { position: absolute; transform-origin: 50% 0; transform: rotate(var(--r)) scale(var(--sc)); z-index: 5; cursor: pointer; }
.tb-it.tb-drag { z-index: 40; filter: drop-shadow(0 18px 14px rgba(20,10,0,.45)); transform: rotate(calc(var(--r) * .4)) scale(var(--sc)); cursor: grabbing; }
.tb-it.tb-sel { filter: drop-shadow(0 0 10px rgba(255,200,90,.95)); z-index: 30; }
.tb-it.tb-from .tb-pin { box-shadow: 0 0 0 5px rgba(255,178,63,.95), 2px 4px 4px rgba(30,15,0,.55); }
.tb-pin { position: absolute; top: -7px; left: calc(50% - 8px); width: 16px; height: 16px; border-radius: 50%; box-shadow: 2px 4px 4px rgba(30,15,0,.55); }
.tb-neuf { position: absolute; top: 4px; right: -16px; padding: 2px 6px; background: #D32F2F; color: #fff; font-family: 'Special Elite', monospace; font-size: 9px; letter-spacing: 1px; transform: rotate(10deg); box-shadow: 0 2px 3px rgba(0,0,0,.35); }
.tb-obj { color: #1D1A15; box-shadow: 0 1px 1px rgba(0,0,0,.2), 0 8px 14px rgba(40,20,5,.45); display: flex; flex-direction: column; gap: 4px; position: relative; }
.tb-k { font-family: 'Special Elite', monospace; font-size: 8.5px; text-transform: uppercase; letter-spacing: .3px; color: #5E574A; }
.tb-txt p { margin: 0 0 3px; font-family: 'Special Elite', monospace; font-size: 8px; line-height: 1.35; color: #2B2418; }
.tb-tampon { align-self: flex-end; margin-top: 2px; padding: 1px 5px; border: 1.5px solid #1F4FA0; color: #1F4FA0; font-family: 'Special Elite', monospace; font-size: 7.5px; transform: rotate(-4deg); }

.tb-fiche { background-color: #FBF8F0; background-image: linear-gradient(transparent 27px, #E36B66 27px, #E36B66 28px, transparent 28px), repeating-linear-gradient(transparent 0 15px, #B9CFE6 15px 16px); background-position: 0 0, 0 30px; padding: 8px 9px 10px; min-height: 92px; box-sizing: border-box; border-top: 5px solid var(--c); }
.tb-fiche .tb-k { color: var(--c); font-size: 9px; }
.tb-fiche .tb-main { font-family: 'Caveat', cursive; font-size: 19px; line-height: 16px; color: #1F2A44; }

.tb-polo { background: linear-gradient(180deg, #FFFFFF, #F1EDE3); padding: 6px 6px 7px; gap: 2px; box-shadow: 0 1px 1px rgba(0,0,0,.25), 0 10px 16px rgba(40,20,5,.5); }
.tb-face { display: block; width: 78px; height: 74px; }
.tb-face.tb-mini { width: 48px; height: 46px; border-radius: 8px; flex-shrink: 0; }
.tb-prenom { font-family: 'Caveat', cursive; font-size: 19px; font-weight: 700; line-height: 1; text-align: center; }
.tb-role { font-family: 'Caveat', cursive; font-size: 11px; color: #6B6355; line-height: 1; text-align: center; }
.tb-pasts { display: flex; justify-content: center; gap: 4px; margin-top: 2px; }
.tb-past { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--c); box-sizing: border-box; color: #fff; font-size: 7.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tb-past[data-v="1"] { background: var(--c); } .tb-past[data-v="2"] { background: #B3261E; border-color: #B3261E; }
.tb-exclu { position: absolute; top: 44px; left: -8px; right: -8px; text-align: center; font-family: 'Special Elite', monospace; font-size: 16px; color: #B3261E; border: 2.5px solid #B3261E; border-radius: 3px; transform: rotate(-16deg); background: rgba(255,255,255,.4); letter-spacing: 2px; }
.tb-accuse { position: absolute; inset: -12px -10px; border: 3px solid #D32F2F; border-radius: 50%; transform: rotate(-6deg); pointer-events: none; }
.tb-cesoir { position: absolute; bottom: -10px; right: -14px; padding: 2px 6px; background: #FFD45C; font-family: 'Special Elite', monospace; font-size: 8.5px; color: #3A2A00; transform: rotate(6deg); box-shadow: 0 2px 3px rgba(0,0,0,.3); }

.tb-tk { background: #EFE6C8; padding: 8px 10px 9px 16px; -webkit-mask: radial-gradient(circle 4px at 0 50%, transparent 98%, #000) 0 0 / 100% 12px; mask: radial-gradient(circle 4px at 0 50%, transparent 98%, #000) 0 0 / 100% 12px; }
.tb-sc { background: linear-gradient(160deg, rgba(235,245,250,.82), rgba(200,220,232,.62)); border: 1px solid rgba(255,255,255,.7); border-radius: 4px; padding: 0 8px 8px; overflow: hidden; }
.tb-bande { height: 9px; margin: 0 -8px 2px; background: repeating-linear-gradient(90deg, #C0392B 0 6px, #E8E8E8 6px 9px); }
.tb-rv { background: #F4F7F2; padding: 8px 9px; border-left: 4px solid #2E7D5B; }
.tb-rv .tb-k { color: #2E7D5B; }
.tb-lb { background-color: #FFFFFF; background-image: repeating-linear-gradient(transparent 0 11px, #DCE6F2 11px 12px); padding: 8px 9px; border-top: 4px solid #2F6FD3; }
.tb-lb .tb-k { color: #2F6FD3; }
.tb-jn { background: #EAE3D2; padding: 8px 9px 10px; clip-path: polygon(0 3%, 7% 0, 15% 2%, 27% 0, 40% 3%, 54% 1%, 68% 3%, 82% 0, 93% 2%, 100% 0, 99% 50%, 100% 100%, 88% 98%, 72% 100%, 58% 97%, 42% 100%, 28% 98%, 12% 100%, 0 98%, 1% 50%); }
.tb-jn .tb-k { font-family: 'Fraunces', serif; color: #9A2B1F; }
.tb-jn strong { font-family: 'Fraunces', serif; font-weight: 800; font-size: 14px; line-height: 1.05; }
.tb-jn .tb-txt p { font-family: 'Instrument Sans', sans-serif; font-size: 8px; }

.tb-fil { position: absolute; height: 4px; margin-top: -2px; border-radius: 2px; background: repeating-linear-gradient(90deg, #E04640 0 3px, #B8241F 3px 5px); transform-origin: 0 50%; box-shadow: 2px 6px 4px rgba(30,10,0,.4); pointer-events: none; z-index: 50; }
.tb-noeud { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF9A93, #D32F2F 45%, #7A1010); box-shadow: 3px 5px 5px rgba(30,15,0,.55); pointer-events: none; z-index: 51; }

/* Interface par-dessus le tableau */
.tb-haut { position: absolute; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 8px; z-index: 6; }
.tb-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 999px; border: 0; background: rgba(12,17,36,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text); font: 600 13px var(--body); cursor: pointer; white-space: nowrap; }
/* Barre du haut : elle tient sur un petit écran ou avec une grande police système (classes posées par ajusterHaut). */
.tb-haut > * { flex-shrink: 0; }
.tb-haut > .grow { flex-shrink: 1; min-width: 0; }
.tb-haut.serre1 { gap: 5px; left: 6px; right: 6px; }
.tb-haut.serre1 .tb-chip { padding: 0 9px; }
.tb-haut.serre1 .tb-rond { width: 36px; height: 36px; }
.tb-haut.serre1 .tb-fic { display: none; }
.tb-haut.serre2 .tb-soir-l { display: none; }
.tb-haut.serre3 .tb-chip { padding: 0 7px; gap: 4px; }
.tb-haut.serre3 .tb-rond { width: 32px; height: 32px; }
.tb-chip.ambre { background: var(--amber); color: var(--amber-ink); font-weight: 800; box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.tb-chip.rouge { background: rgba(216,69,63,.92); color: #fff; }
.tb-compte { padding: 1px 7px; border-radius: 999px; background: rgba(36,20,0,.15); }
.tb-dot { position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%; background: #D32F2F; border: 2px solid #1A120B; }
.tb-rond { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(12,17,36,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tb-aide { position: absolute; left: 50%; top: calc(60px + env(safe-area-inset-top)); transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(216,69,63,.94); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; z-index: 6; }
.tb-outils { position: absolute; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(12,17,36,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 24px rgba(0,0,0,.5); z-index: 6; transition: bottom .25s; }
.tb-ecran.sale .tb-outils { bottom: calc(150px + env(safe-area-inset-bottom)); }
.tb-ecran.volet-ouvert .tb-outils { opacity: 0; pointer-events: none; }
.tb-o { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text2); display: flex; align-items: center; justify-content: center; cursor: pointer; font: 700 16px var(--body); }
.tb-o.on { background: var(--surface3); color: var(--text); }
.tb-o.rouge.on { background: #D8453F; color: #fff; }
.tb-sep { width: 1px; height: 26px; background: var(--line); margin: 0 4px; }
.tb-spot { box-shadow: 0 0 0 4px var(--amber), 0 0 24px 6px rgba(255,178,63,.6) !important; position: relative; z-index: 3; }

/* Volet */
.tb-volet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 62%; display: flex; flex-direction: column; background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -16px 40px rgba(0,0,0,.55); z-index: 12; animation: tbMonte .28s cubic-bezier(.2,.8,.2,1); }
@keyframes tbMonte { from { transform: translateY(100%); } to { transform: none; } }
.tb-poignee { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 2px; flex-shrink: 0; }
.tb-fermer { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text2); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1; }
.tb-volet-corps { overflow-y: auto; padding: 6px 16px calc(96px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.tb-ecran.sale .tb-volet-corps { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
.tb-titre { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.15; padding-right: 44px; }
.tb-tete { display: flex; gap: 12px; align-items: center; padding-right: 40px; }
.tb-tete .tb-titre { padding-right: 0; }
.tb-fiche-pub { margin: 0; line-height: 1.55; color: var(--text2); }
.tb-ligne { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--r-md); padding: 10px 10px 10px 12px; }
.tb-ligne-k { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--c, var(--muted)); }
.tb-fait { margin: 0; line-height: 1.5; color: var(--amber-soft); }
.tb-mark { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; border: 2px solid var(--line); background: transparent; color: var(--faint); font-size: 20px; font-weight: 800; cursor: pointer; }
.tb-mark[data-v="1"] { border-color: var(--green); background: var(--green); color: var(--bg); }
.tb-mark[data-v="2"] { border-color: var(--red); background: var(--red-bg); color: var(--red); }
.tb-duo { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-duo > * { flex: 1 1 140px; }
.tb-boite-l { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 9px 9px 10px; }
.tb-boite-l.nouveau { border-color: var(--red-line); }
.tb-vign { width: 38px; height: 30px; flex-shrink: 0; transform: rotate(-3deg); box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.tb-vign-tk { background: #EFE6C8; } .tb-vign-sc { background: #D6E6EF; border-top: 4px solid #C0392B; } .tb-vign-rv { background: #F4F7F2; border-left: 4px solid #2E7D5B; }
.tb-vign-lb { background: #fff; border-top: 4px solid #2F6FD3; } .tb-vign-jn { background: #EAE3D2; } .tb-vign-fiche { background: #FBF8F0; border-top: 4px solid var(--c); }
.tb-trajet-l { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--text); font: 600 14px var(--body); cursor: pointer; }
.tb-trajet-l span:first-child { flex: 1; }
.tb-trajet-l strong { color: var(--red-soft); }

/* Mini tuto */
.tb-tuto { position: absolute; inset: 0; z-index: 20; background: rgba(6,9,22,.45); display: flex; justify-content: center; padding: 16px; }
.tb-tuto-centre { align-items: center; } .tb-tuto-haut { align-items: flex-start; padding-top: calc(66px + env(safe-area-inset-top)); } .tb-tuto-bas { align-items: flex-end; padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.tb-tuto-bulle { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--amber-line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--float); animation: aideDescend .2s ease-out; }
.tb-tuto-bulle .tb-titre { padding-right: 0; }
.tb-ecran:has(.tb-tuto) .tb-spot { z-index: 21; }
.tb-ecran:has(.tb-tuto) .tb-haut, .tb-ecran:has(.tb-tuto) .tb-outils { z-index: 21; }

@media (min-width: 1000px) and (hover: hover) and (pointer: fine) {
  .tb-volet { left: auto; right: 16px; bottom: 16px; top: 70px; width: 420px; max-height: none; border-radius: 22px; }
  .tb-volet-corps { padding-bottom: 24px; }
  .tb-ecran.volet-ouvert .tb-outils { opacity: 1; pointer-events: auto; left: calc(50% - 220px); }
}
@media (prefers-reduced-motion: reduce) { .tb-volet, .tb-tuto-bulle { animation: none; } }
body:has(.demo-banner) .tb-ecran { top: 44px; }

/* Ficelles : on les tire au doigt, avec aimantation */
.tb-pin::after { content: ''; position: absolute; inset: -16px; border-radius: 50%; }
.tb-lieu-pt { position: relative; }
.tb-lieu-pt::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; }
.tb-fil-tmp { z-index: 60; opacity: .9; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 2px 6px 4px rgba(30,10,0,.4); }
.tb-it.tb-cible { filter: drop-shadow(0 0 12px rgba(255,90,80,.95)) drop-shadow(0 0 4px rgba(255,255,255,.8)); z-index: 35; }
.tb-it.tb-cible .tb-pin { box-shadow: 0 0 0 6px rgba(255,90,80,.9), 2px 4px 4px rgba(30,15,0,.55); }
.tb-lieu.tb-cible .tb-lieu-pt { box-shadow: 0 0 0 7px rgba(255,90,80,.9); background: #fff; }
.mode-fil .tb-it, .mode-fil .tb-lieu { cursor: crosshair; }
.mode-fil .tb-lieu-pt { width: 34px; height: 34px; border-width: 4px; }
.mode-fil .tb-fil { pointer-events: auto; cursor: pointer; }
.mode-fil .tb-fil::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; bottom: -12px; }


/* Ficelles : on les attrape et on les arrache d'un geste */
.tb-fil { pointer-events: auto; cursor: grab; }
.tb-fil::before { content: ''; position: absolute; left: 14px; right: 14px; top: -13px; bottom: -13px; }
.tb-fil-tire { pointer-events: none; z-index: 60; }
.tb-fil-tire.casse { background: repeating-linear-gradient(90deg, rgba(224,70,64,.55) 0 6px, transparent 6px 10px); box-shadow: none; }

/* Planques sur le plan */
.tb-plan .tb-rive { font-size: 11px; fill: #4F7A99; letter-spacing: 1.5px; }
.tb-planque { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; z-index: 2; }
.tb-planque .tb-lieu-pt { width: 28px; height: 28px; border-radius: 8px; border: 3px solid #6B4FA8; background: rgba(255,255,255,.7); color: #6B4FA8; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.tb-planque .tb-lieu-nom { color: #4E3A80; font-size: 17px; }
.tb-pmark { position: absolute; top: -10px; right: -10px; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 12px var(--body); color: #fff; }
.tb-planque.m0 .tb-pmark { display: none; }
.tb-planque.m1 { opacity: .55; } .tb-planque.m1 .tb-pmark { background: #B3261E; }
.tb-planque.m1 .tb-lieu-nom { text-decoration: line-through; text-decoration-color: #B3261E; text-decoration-thickness: 2px; }
.tb-planque.m2 .tb-pmark { background: #C88A12; }
.tb-planque.m3 .tb-pmark { background: #2E9E62; }
.tb-planque.m3 .tb-lieu-pt { box-shadow: 0 0 0 5px rgba(46,158,98,.55); }
.tb-planque.tb-sel .tb-lieu-pt, .tb-planque.tb-from .tb-lieu-pt, .tb-planque.tb-cible .tb-lieu-pt { box-shadow: 0 0 0 6px rgba(255,178,63,.9); }
.mode-fil .tb-planque .tb-lieu-pt { width: 34px; height: 34px; }

/* Partage des pièces */
.tb-tampon { max-width: 100%; white-space: normal; text-align: right; }
.tb-tampon.tb-t-gardee { border-color: #8A8070; color: #6B6355; }
.tb-tampon.tb-t-prevu { border-color: #C88A12; color: #A8650E; }
.tb-tampon.tb-t-faite { border-color: #2E7D5B; color: #2E7D5B; }
.tb-tampon.tb-t-recue { border-color: #1F4FA0; color: #1F4FA0; }
.tb-partage { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--faint); }
.tb-partage.tb-t-prevu { border-left-color: var(--amber); } .tb-partage.tb-t-faite { border-left-color: var(--green); } .tb-partage.tb-t-recue { border-left-color: var(--blue); }
.tb-partage > span:nth-child(3), .tb-partage .col { align-items: flex-start !important; }
.tb-lien { all: unset; cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
span.tb-t-gardee { color: var(--faint); } span.tb-t-prevu { color: var(--amber); } span.tb-t-faite { color: var(--green); } span.tb-t-recue { color: var(--blue-soft); }
.tb-share { position: absolute; bottom: 5px; right: 5px; display: inline-flex; align-items: center; gap: 3px; height: 20px; min-width: 20px; padding: 0 4px; box-sizing: border-box; justify-content: center; border-radius: 10px; background: #fff; border: 1.5px solid #9A9080; color: #6B6355; box-shadow: 0 1px 2px rgba(0,0,0,.25); cursor: pointer; z-index: 2; }
.tb-share::after { content: ''; position: absolute; inset: -8px; }
.tb-share i { font: italic 700 8px var(--body); }
.tb-share.tb-t-prevu { background: #FFE7A8; border-color: #C88A12; color: #8A5A10; }
.tb-share.tb-t-faite { background: #D6F2E2; border-color: #2E7D5B; color: #1F5C40; }
.tb-share.tb-t-recue { background: #DCE8FA; border-color: #1F4FA0; color: #1F4FA0; }
.tb-partage .col, .tb-partage > span { align-items: stretch !important; }
.tb-partage .row { justify-content: flex-start !important; flex-wrap: nowrap !important; }
.tb-partage select { flex: 1; max-width: none !important; }

/* Narratif : procès-verbal d'ouverture, main courante, chapô des coupures */
.tb-pv { background: #FDFCF8; padding: 0 12px 10px; border: 1px solid #DAD4C6; }
.tb-pv-bande { margin: 0 -12px 4px; padding: 4px 12px; background: #1F2F4F; color: #F4EFE3; font-family: 'Special Elite', monospace; font-size: 8px; letter-spacing: 1.5px; }
.tb-pv strong { font-family: 'Special Elite', monospace; font-size: 12px; font-weight: 400; text-transform: uppercase; color: #1D1A15; }
.tb-pv .tb-txt p { font-size: 8.5px; line-height: 1.45; }
.tb-chrono { background-color: #FFFDF5; background-image: repeating-linear-gradient(transparent 0 13px, #CFDCEC 13px 14px); background-position: 0 22px; padding: 10px 10px 10px 20px; border-left: 2px solid #E36B66; }
.tb-spirale { position: absolute; left: -7px; top: 6px; bottom: 6px; width: 10px; background: repeating-linear-gradient(transparent 0 6px, #8A8A8A 6px 9px, transparent 9px 14px); border-radius: 4px; }
.tb-mc { margin: 0; font-family: 'Caveat', cursive; font-size: 12px; line-height: 14px; color: #1F2A44; }
.tb-mc b { font-family: 'Special Elite', monospace; font-weight: 400; font-size: 8px; color: #B3261E; margin-right: 2px; }
.tb-mc-rebond { color: #9A2B1F; } .tb-mc-constat { color: #1F4FA0; } .tb-mc-acc { color: #B3261E; font-weight: 700; } .tb-mc-attente { color: #8A8070; }
.tb-chapo { margin: 0; font-family: 'Fraunces', serif; font-size: 8.5px; font-style: italic; line-height: 1.35; color: #3A352C; }

/* Une de la Gazette, photos, dépôt de plainte */
.tb-une { background: #EFE9DA; padding: 8px 10px 10px; gap: 3px; clip-path: polygon(0 1%, 8% 0, 22% 1%, 40% 0, 60% 1%, 78% 0, 100% 1%, 99% 50%, 100% 99%, 85% 100%, 65% 99%, 45% 100%, 25% 99%, 8% 100%, 0 99%, 1% 50%); }
.tb-une-titre { font-family: 'Fraunces', serif; font-weight: 800; font-size: 17px; text-align: center; color: #1D1A15; border-bottom: 2px solid #1D1A15; padding-bottom: 2px; }
.tb-une-date { font-family: 'Fraunces', serif; font-size: 7px; text-align: center; color: #5E574A; border-bottom: 1px solid #1D1A15; padding-bottom: 2px; margin-bottom: 2px; }
.tb-une .tb-k { font-family: 'Fraunces', serif; color: #9A2B1F; }
.tb-une strong { font-family: 'Fraunces', serif; font-weight: 800; font-size: 15px; line-height: 1.05; color: #1D1A15; }
.tb-une .tb-txt p { font-family: 'Fraunces', serif; font-size: 8px; line-height: 1.35; columns: 1; }
.tb-photo { position: relative; line-height: 0; border: 1px solid rgba(0,0,0,.25); flex-shrink: 0; }
.tb-photo-svg { display: block; width: 100%; height: auto; filter: sepia(.25) contrast(1.05); }
.tb-jn .tb-photo { width: 56%; float: none; margin: 2px 0; }
.tb-jn .tb-photo .tb-face { width: 100%; height: auto; }
.tb-face.tb-gris { filter: grayscale(1) contrast(1.15); }
.tb-legende { font-family: 'Fraunces', serif; font-style: italic; font-size: 6.5px; color: #5E574A; }
.tb-scene .tb-photo { border: 0; }
.tb-scene .tb-photo-svg { filter: grayscale(.35) contrast(1.1); }
.tb-signature { align-self: flex-end; font-family: 'Caveat', cursive; font-size: 16px; color: #1F4FA0; transform: rotate(-4deg); }
.tb-photo-grande { line-height: 0; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.tb-photo-grande .tb-photo-svg { filter: none; }

/* Restaurer / synchroniser : seulement sur PC (sur téléphone, la synchro reste automatique ; l'alerte d'échec reste visible) */
@media not ((hover: hover) and (pointer: fine)) { .tb-chip.tb-pc { display: none; } }
/* Élément épinglé : deux punaises dorées en bas, il ne bouge plus quand on glisse dessus */
.tb-pin2 { position: absolute; bottom: -4px; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF4C8, #D9A520 45%, #6E4E06); box-shadow: 2px 3px 3px rgba(30,15,0,.5); z-index: 3; pointer-events: none; }
.tb-pin2.g { left: 6px; } .tb-pin2.d { right: 6px; }
.tb-fixer { align-self: flex-start; border: 1px solid var(--hair); background: var(--surface2); color: var(--text2); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.tb-fixer.on { border-color: var(--amber-line); color: var(--amber); }

/* ───── Dossier complet : petits PV, auditions, plan routier ───── */
.tb-pvd { background: #FDFCF8; padding: 0 12px 10px; border: 1px solid #DAD4C6; gap: 3px; }
.tb-pv-qui { font-family: 'Special Elite', monospace; font-size: 12px; font-weight: 400; text-transform: uppercase; color: #1D1A15; }
.tb-qr p { font-size: 7.8px; line-height: 1.38; margin: 0 0 2px; }
.tb-qr p:nth-child(even) { margin-bottom: 5px; color: #1F2A44; }
.tb-qr b { display: inline-block; width: 11px; color: #9A2B1F; font-weight: 400; }
.tb-pvp { background: #FFFEFA; padding: 0 10px 9px; border: 1px solid #DAD4C6; border-left: 5px solid var(--c); gap: 3px; }
.tb-pvp .tb-pv-bande { margin: 0 -10px 3px -10px; padding: 3px 10px; background: #F1ECDF; color: #5E574A; font-size: 7.5px; letter-spacing: .6px; border-bottom: 1px dashed #CFC6B2; }
.tb-pvp .tb-k { color: var(--c); }
.tb-pv-sign { align-self: flex-end; font-family: 'Caveat', cursive; font-size: 13px; color: #1F4FA0; transform: rotate(-3deg); }
.tb-lire { align-self: flex-end; font-family: 'Fraunces', serif; font-size: 9px; font-weight: 800; color: #9A2B1F; }
.tb-vign-pv { background: #FFFEFA; border-left: 4px solid #2F6FD3; } .tb-vign-au { background: #FDFCF8; border-top: 6px solid #1F2F4F; }
.pv-qr { flex-shrink: 0; border-left: 3px solid var(--line); padding-left: 10px; }
.pv-q { margin: 0; font-size: 12.5px; color: var(--muted); }
.pv-r { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--amber-soft); }
.tb-trajet-l.on { border-color: var(--c); box-shadow: inset 4px 0 0 var(--c); }
.tb-trajet-l.on strong { color: var(--c); }
.tb-trajet-l[style*="--c"] strong { color: var(--text); }

.p3 .p3-noms text { font-family: 'Instrument Sans', sans-serif; font-size: 8.5px; font-weight: 600; fill: #6B5A3A; paint-order: stroke; stroke: #FFFCF3; stroke-width: 2.6px; letter-spacing: .2px; }
.p3 .p3-quartiers text { font-family: 'Special Elite', monospace; font-size: 12px; fill: rgba(94,74,48,.5); letter-spacing: 2px; }
.p3 .p3-pont { font-family: 'Instrument Sans', sans-serif; font-size: 8px; font-weight: 700; fill: #4F4433; paint-order: stroke; stroke: #E6F0F5; stroke-width: 2.5px; }
.p3 .p3-pont.passerelle { fill: #7A5A33; font-style: italic; }
.p3 .p3-canal { font-family: 'Caveat', cursive; font-size: 22px; fill: #4F7A99; }
.p3 .p3-n { font-family: 'Special Elite', monospace; font-size: 11px; fill: #3A352C; }
.p3 .p3-gare { font-family: 'Special Elite', monospace; font-size: 10px; fill: #3E3121; letter-spacing: 1px; }
.p3 .p3-leg { font-family: 'Instrument Sans', sans-serif; font-size: 10px; font-weight: 600; fill: #3A352C; }
.p3 .p3-leg2 { font-family: 'Instrument Sans', sans-serif; font-size: 9px; fill: #6B5A3A; }
.p3 .p3-trav { font-family: 'Special Elite', monospace; font-size: 10px; fill: #B3261E; letter-spacing: 1px; }
.p3 .p3-etiq { font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 13px; }
.p3 .tb-croix { font-size: 38px; }

/* ───── Le journal du lendemain ───── */
.jr-wrap { position: fixed; inset: 0; z-index: 80; background: radial-gradient(ellipse at 50% 40%, rgba(30,22,12,.82), rgba(6,4,2,.94)); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(16px + env(safe-area-inset-top)) 12px calc(110px + env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: flex-start; }
body:has(.demo-banner) .jr-wrap { top: 44px; }
.jr { width: 100%; max-width: 1020px; background-color: #F3EEE2; background-image: radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.55), transparent 60%), radial-gradient(rgba(120,100,60,.08) 1px, transparent 1.4px); background-size: 100% 100%, 5px 5px; color: #1D1A15; padding: 18px 18px 22px; box-shadow: 0 30px 70px rgba(0,0,0,.65); font-family: 'Fraunces', serif; transform-origin: 50% 40%; }
.jr-tourne .jr { animation: jrTourne 1.15s cubic-bezier(.22,.9,.3,1) both; }
@keyframes jrTourne { 0% { transform: scale(.06) rotate(-900deg); opacity: 0; } 15% { opacity: 1; } 78% { transform: scale(1.04) rotate(4deg); } 100% { transform: none; } }
.jr-tete { text-align: center; border-bottom: 3px double #1D1A15; padding-bottom: 6px; }
.jr-oreilles { display: flex; justify-content: space-between; font-family: 'Instrument Sans', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #5E574A; border-bottom: 1px solid #1D1A15; padding-bottom: 4px; }
.jr-titre-journal { margin: 6px 0 0; font-family: 'Fraunces', serif; font-weight: 800; font-size: clamp(34px, 8vw, 66px); letter-spacing: -1px; line-height: 1; font-variation-settings: 'opsz' 144; }
.jr-devise { font-size: 12px; font-style: italic; color: #5E574A; margin-top: 2px; }
.jr-une { text-align: center; padding: 12px 4px 10px; border-bottom: 1px solid #1D1A15; }
.jr-surtitre { font-family: 'Instrument Sans', sans-serif; font-size: 12px; font-weight: 700; color: #9A2B1F; text-transform: uppercase; letter-spacing: 1.5px; }
.jr-titre { margin: 4px 0 6px; font-family: 'Fraunces', serif; font-weight: 800; font-size: clamp(28px, 6.4vw, 52px); line-height: 1.02; letter-spacing: -.8px; text-wrap: balance; font-variation-settings: 'opsz' 144; }
.jr-chapo { margin: 0 auto; max-width: 720px; font-size: 16px; font-style: italic; line-height: 1.4; color: #3A352C; }
.jr-grille { display: grid; grid-template-columns: 1fr; gap: 16px; padding-top: 12px; }
.jr-photo { margin: 0; line-height: 0; }
.jr-photo .tb-photo-svg { width: 100%; height: auto; display: block; filter: sepia(.3) contrast(1.08) grayscale(.2); border: 1px solid rgba(0,0,0,.35); }
.jr-photo figcaption, .jr-plan figcaption { margin-top: 5px; line-height: 1.3; font-size: 12px; font-style: italic; color: #5E574A; }
.jr-texte { margin-top: 12px; }
.jr-texte p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.55; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.jr-lettrine::first-letter { float: left; font-size: 58px; line-height: .82; font-weight: 800; padding: 4px 6px 0 0; color: #9A2B1F; }
.jr-cote { display: flex; flex-direction: column; gap: 14px; }
.jr-encadre { border: 2px solid #1D1A15; padding: 10px 12px; background: rgba(255,255,255,.45); }
.jr-encadre-t { display: block; font-family: 'Instrument Sans', sans-serif; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #9A2B1F; margin-bottom: 6px; }
.jr-encadre dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 14px; line-height: 1.35; }
.jr-encadre dt { font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 12px; text-transform: uppercase; color: #5E574A; padding-top: 2px; }
.jr-encadre dd { margin: 0; }
.jr-plan { margin: 0; line-height: 0; }
.jr-plan svg { width: 100%; height: auto; border: 1px solid rgba(0,0,0,.35); filter: sepia(.15); }
.jr-second { border-top: 3px solid #1D1A15; padding-top: 6px; }
.jr-second h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; line-height: 1.1; }
.jr-second p, .jr-breve p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.jr-breve { border-top: 1px solid #1D1A15; padding-top: 6px; }
.jr-breve span { font-family: 'Instrument Sans', sans-serif; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #5E574A; }
.jr-breve.jr-alerte { border: 2px solid #B3261E; padding: 8px 10px; background: rgba(255,230,200,.5); }
.jr-breve.jr-alerte span { color: #B3261E; }
.jr-pied { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 3px double #1D1A15; font-family: 'Instrument Sans', sans-serif; color: #5E574A; }
.jr-pied .btn { min-width: 220px; }
@media (min-width: 760px) {
  .jr { padding: 26px 30px 28px; }
  .jr-grille { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
  .jr-cote { border-left: 1px solid #1D1A15; padding-left: 20px; }
  .jr-texte { columns: 2; column-gap: 22px; column-rule: 1px solid rgba(29,26,21,.35); }
  .jr-texte p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .jr-tourne .jr { animation: none; } }
.p3l .tb-lieu-nom { font-size: 15px; }
.p3l .tb-lieu-pt { width: 22px; height: 22px; }
.pm .pm-reperes text { font-family: 'Special Elite', monospace; font-size: 12px; fill: #4E4430; paint-order: stroke; stroke: #F1E9D2; stroke-width: 3px; }

/* Bandeau « suspect identifié » sur le tableau */
.tb-banniere { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 62px); z-index: 30; max-width: 520px; margin: 0 auto; }
.tb-banniere .banniere-traque { box-shadow: 0 8px 24px rgba(0,0,0,.45); padding-right: 44px; }
.tb-banniere .tb-ban-x { position: absolute; top: 8px; right: 8px; }

/* Édition spéciale : avis de recherche */
.ed-avis .ed-portrait { display: flex; justify-content: center; margin: 6px 0 8px; }
.ed-avis .ed-face { display: block; width: 140px; height: 132px; filter: grayscale(.85) contrast(1.1); border: 3px solid #2B2118; background: #EDE3CC; }

/* ───── Affaire de Mons : photos des pièces, scène à fouiller, chronologie ───── */
.ip-photo { display: block; width: 100%; height: auto; }
.ip-duo { display: flex; gap: 4px; align-items: flex-start; }
.ip-duo .ip-photo { flex: 1 1 0; min-width: 0; }
.tb-pv-photo { margin: 2px 0 3px; line-height: 0; border: 1px solid rgba(0,0,0,.25); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tb-photo-grande .ip-photo, .tb-photo-grande .ip-duo { border-radius: 8px; overflow: hidden; }
.tb-frise { background: #FFFDF6; padding: 7px 8px 8px; border-top: 4px solid #C88A12; gap: 4px; }
.tb-frise .tb-k { color: #8A6210; }
.fr-svg { display: block; width: 100%; height: auto; }
.fr-cadre { flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #FFFDF6; }
.fr-leg { flex-shrink: 0; margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.35; color: var(--text2); }
.sf-wrap { align-items: flex-start; }
.sf { width: 100%; max-width: 980px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: 0 30px 70px rgba(0,0,0,.65); color: var(--text); }
.sf-titre { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; }
.sf-photo { line-height: 0; border-radius: 12px; overflow: hidden; border: 1px solid #000; }
.sf-photo svg { width: 100%; height: auto; display: block; }
.sf-plot { cursor: pointer; }
.sf-plot path { transition: transform .15s; }
.sf-plot.vu path { fill: #D8C9A0; }
.sf-plot.on path { fill: #FF9F2E; stroke: #FFF; stroke-width: 2; }
.sf-plot:hover path, .sf-plot:focus path { transform: scale(1.18); }
.sf-detail { min-height: 86px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sf-detail strong { font-size: 16px; }
.sf-detail p { margin: 0; line-height: 1.5; color: var(--amber-soft); }

/* Affaire de la Rampe : relectures, recoupement, coups de pouce. */
.tb-relu { margin: 3px 0 0; padding: 3px 5px; font-size: 9.5px; line-height: 1.35; color: #1F4E66; background: rgba(90,176,240,.14); border-left: 2px solid #2F6FD3; }
.tb-relu-g { margin: 0; padding: 8px 10px; line-height: 1.5; background: rgba(90,176,240,.10); border: 1px solid rgba(90,176,240,.35); border-radius: 10px; color: var(--text); }
.tb-recoup { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tb-recoup .tb-lien { display: inline; }
.tb-pouce { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }
.tb-pouce .btn { align-self: flex-start; }

/* Scène : la photo s'agrandit au toucher (plein écran, à faire glisser). */
.sf-photo { position: relative; cursor: zoom-in; }
.sf-loupe { position: absolute; right: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px; background: rgba(10,12,20,.72); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4; pointer-events: none; }
.sf-zoom { position: fixed; inset: 0; z-index: 1000; background: #05060a; display: flex; flex-direction: column; }
.sf-zoom-haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 8px; }
.sf-zoom-defil { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; display: flex; align-items: center; }
.sf-zoom-img { height: 100%; aspect-ratio: 1024 / 572; flex: 0 0 auto; margin: 0 auto; max-width: none; }
.sf-zoom-img svg { width: 100%; height: 100%; display: block; }
@media (min-aspect-ratio: 16/9) { .sf-zoom-img { height: auto; width: 100%; } }
.sf-zoom-bas { padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); max-height: 34vh; overflow: auto; }
.sf-zoom-bas p { margin: 4px 0 0; line-height: 1.45; color: var(--amber-soft); }

.sf-gros-plan { width: 100%; border-radius: 8px; display: block; margin: 4px 0 2px; }
/* Volet d'un lieu : temps de trajet Google Maps, bien visibles */
.tb-trajets { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: var(--surface2); border: 1px solid var(--amber-line); }
.tb-trajets-t { font-weight: 700; font-size: 15px; }
.tb-trajets-l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tb-trajets-l .btn { min-height: 56px; padding: 4px 6px; flex-direction: column; gap: 0; font-size: 13px; line-height: 1.15; text-align: center; }
.tb-trajets-l .btn .ic { font-size: 20px; line-height: 1.2; }
/* Ma cellule d'enquête, dans « Ce soir » */
.tb-cellule { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--hair); }

/* ═══════════════════════════════════════════════════════════════
   Saison 2 : l'Enquête en dossier (comme l'HP et les énigmes).
   L'affaire en héros, une seule prochaine étape, le mur des suspects,
   « Ce soir » en cases à remplir, puis le classeur sur papier.
   ═══════════════════════════════════════════════════════════════ */
.enq2 { gap: 14px; }
/* Héros : la photo de l'affaire, le titre, les jours */
.e2-hero { position: relative; margin: -20px -16px 0; height: 250px; background: #0B0F1E; }
/* Pas d'overflow sur le héros : le menu ⋯ doit pouvoir déborder dessous. C'est la photo qui est rognée. */
.e2-photo, .e2-photo > svg, .e2-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.e2-photo { overflow: hidden; border-radius: inherit; }
.e2-hero::before { border-radius: inherit; }
.e2-photo > svg, .e2-photo svg image { object-fit: cover; }
.e2-photo > svg { transform: scale(1.06); }
.e2-photo > svg[viewBox] { width: 100%; height: 100%; }
.e2-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(8,12,27,.78) 0, rgba(8,12,27,.15) 34%, rgba(8,12,27,.25) 55%, var(--bg) 100%); }
.e2-hud { position: absolute; z-index: 4; top: 12px; left: 16px; right: 12px; display: flex; align-items: center; gap: 8px; }
.e2-k { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--amber-soft); text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.e2-hbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(12,17,36,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; font: 800 17px var(--body); cursor: pointer; list-style: none; flex-shrink: 0; }
.e2-hbtn::-webkit-details-marker { display: none; }
.e2-menu .fe-menu-l { top: 46px; z-index: 6; }
.e2-menu .fe-menu-l > a { display: flex; padding: 9px 10px; border-radius: 10px; color: #EDF0FA; font: 600 14px var(--body); text-decoration: none; }
.e2-titre { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.e2-titre h1 { margin: 0; font: 800 29px/1.04 var(--display); letter-spacing: -.6px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.75); text-wrap: balance; }
.e2-jours { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.e2-jt { font: 800 15px var(--display); color: #fff; }
.e2-jt small { font-size: 12px; color: var(--muted); font-weight: 700; }
.e2-pts { display: flex; gap: 4px; }
.e2-pts i { width: 16px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); }
.e2-pts i.passe { background: var(--amber-line); }
.e2-pts i.ajd { background: var(--amber); box-shadow: 0 0 10px rgba(255,178,63,.7); width: 24px; }
.e2-dec { margin-left: auto; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; color: var(--amber); background: rgba(12,17,36,.7); border: 1px solid var(--amber-line); white-space: nowrap; }
/* La prochaine étape */
.e2-cta { width: 100%; margin-top: -4px; text-align: center; font: inherit; cursor: pointer; }
div.e2-cta { cursor: default; }
.e2-cta.env .hs-cta-t { display: inline-flex; align-items: center; gap: 10px; }
.e2-env { position: relative; width: 30px; height: 21px; border-radius: 3px; background: #F4EFE3; box-shadow: 0 2px 4px rgba(60,30,0,.35); flex-shrink: 0; animation: e2env 2.4s ease-in-out infinite; }
.e2-env::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 13px; background: linear-gradient(to bottom right, transparent 49%, #D9CFBA 50%) left / 50% 100% no-repeat, linear-gradient(to bottom left, transparent 49%, #D9CFBA 50%) right / 50% 100% no-repeat; transform: scaleY(-1); }
.e2-env::after { content: ''; position: absolute; left: 50%; top: 8px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #B3261E; }
@keyframes e2env { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(7deg); } 95% { transform: rotate(-4deg); } }
.e2-reb { gap: 4px; }
/* Colonnes (une sur téléphone) */
.e2-cols { display: flex; flex-direction: column; gap: 14px; }
.e2-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* Le mur */
.e2-mur { position: relative; padding: 14px 10px 10px; border-radius: 18px; background-color: #A47B4F; background-image: radial-gradient(ellipse at 50% 30%, rgba(255,230,190,.22), transparent 65%), url('../img/liege.png'); background-size: 100% 100%, 96px 96px;
  box-shadow: inset 0 0 0 6px #5E4026, inset 0 0 0 8px #3E2914, inset 0 0 34px rgba(40,20,5,.6), 0 14px 26px -16px rgba(0,0,0,.9); display: flex; flex-direction: column; gap: 6px; }
.e2-fiches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 2px 4px 0; }
.e2-fiche { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 84px; padding: 9px 7px 7px; border: 0; border-top: 5px solid var(--c); border-radius: 2px; text-align: left; cursor: pointer;
  background-color: #FBF8F0; background-image: repeating-linear-gradient(transparent 0 15px, #C9D9EA 15px 16px); background-position: 0 34px; color: #1D1A15; box-shadow: 0 1px 1px rgba(0,0,0,.2), 0 7px 12px rgba(40,20,5,.45); transform: rotate(-1deg); }
.e2-fiche:nth-child(2) { transform: rotate(1.2deg); } .e2-fiche:nth-child(3) { transform: rotate(-.6deg); }
.e2-fiche::before { content: ''; position: absolute; top: -9px; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, var(--c) 50%, #0008); box-shadow: 1px 3px 3px rgba(30,15,0,.5); }
.e2-fk { font: 700 10px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.e2-ft { font: 700 11.5px/1.2 var(--body); color: #3A352C; }
.e2-fv { font: 700 17px/1.05 'Caveat', cursive; color: #1F2A44; margin-top: 2px; }
.e2-fiche.vide .e2-fv { color: #9A8F78; }
.e2-rangs { display: flex; flex-direction: column; gap: 4px; }
.e2-rangs.pc { display: none; }
.e2-rang { position: relative; display: flex; justify-content: center; gap: 8px; padding-top: 10px; }
.e2-corde { position: absolute; left: 0; right: 0; top: 4px; width: 100%; height: 30px; pointer-events: none; }
.e2-corde path { fill: none; stroke: #C42B23; stroke-width: 2.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 1px rgba(40,10,0,.45)); }
.e2-rang.n3 > .e2-polo:nth-of-type(2), .e2-rang.n5 > .e2-polo:nth-of-type(3) { margin-top: 12px; }
.e2-rang.n5 > .e2-polo:nth-of-type(2), .e2-rang.n5 > .e2-polo:nth-of-type(4), .e2-rang.n2 > .e2-polo { margin-top: 7px; }
.e2-polo { position: relative; width: calc((100% - 16px) / 3); max-width: 116px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 6px 7px; border: 0; background: #FBF8F0; color: #1D1A15; cursor: pointer; font: inherit;
  transform: rotate(var(--r)); transform-origin: 50% 0; box-shadow: 0 1px 1px rgba(0,0,0,.25), 0 10px 16px -4px rgba(40,20,5,.55); transition: transform .2s; }
.e2-polo:hover { transform: rotate(0) translateY(-2px); }
.e2-polo:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.e2-pince { position: absolute; top: -12px; left: calc(50% - 5px); width: 10px; height: 24px; border-radius: 2px; background: linear-gradient(90deg, #C9A06A, #E4C38E 50%, #B48650); box-shadow: 1px 2px 2px rgba(30,15,0,.45); z-index: 2; }
.e2-ph { position: relative; width: 100%; aspect-ratio: 152 / 146; overflow: hidden; background: #2A2C33; }
.e2-ph .tb-face { display: block; width: 100%; height: 100%; }
.e2-pn { font: 700 21px/1 'Caveat', cursive; margin-top: 4px; }
.e2-pr { font-size: 10px; color: #6A6253; line-height: 1.15; text-align: center; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.e2-sceaux { display: flex; gap: 4px; margin-top: 4px; }
.e2-sceaux i, .e2-leg i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 11px var(--body); font-style: normal; color: var(--c); border: 2px solid color-mix(in srgb, var(--c) 55%, transparent); background: #fff; }
.e2-sceaux i.v1 { background: var(--c); border-color: var(--c); color: #fff; font-size: 13px; }
.e2-sceaux i.v2 { background: #fff; border-color: #B3261E; color: #B3261E; font-size: 13px; }
.e2-polo.exclu .e2-ph .tb-face { filter: grayscale(1) contrast(.9) brightness(.85); }
.e2-polo.exclu { opacity: .9; }
.e2-croix, .e2-cercle { position: absolute; inset: -6%; width: 112%; height: 112%; pointer-events: none; }
.e2-croix path { fill: none; stroke: #D3271E; stroke-width: 9; stroke-linecap: round; opacity: .9; }
.e2-cercle path { fill: none; stroke: #E8341C; stroke-width: 5; stroke-linecap: round; }
.e2-polo.complet { box-shadow: 0 0 0 3px rgba(61,211,154,.75), 0 10px 16px -4px rgba(40,20,5,.55); }
.e2-neuf { position: absolute; top: 2px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #D32F2F; color: #fff; font: 800 12px/22px var(--body); box-shadow: 0 2px 4px rgba(0,0,0,.4); z-index: 3; }
.e2-cel { position: absolute; top: 10px; left: -6px; padding: 2px 7px; border-radius: 3px; background: #2F6FD6; color: #fff; font: 700 10.5px/1.2 var(--body); letter-spacing: .02em; transform: rotate(-6deg); box-shadow: 0 2px 4px rgba(0,0,0,.4); z-index: 3; white-space: nowrap; }
.e2-cel-l { margin: 4px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(14,18,34,.82); display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; color: #EDF0FA; }
.e2-cel-l .muted { font-size: 12px; color: #A9B2CC; }
.e2-cel { position: absolute; top: 10px; left: -6px; padding: 2px 7px; border-radius: 3px; background: #2F6FD6; color: #fff; font: 700 10.5px/1.2 var(--body); letter-spacing: .02em; transform: rotate(-6deg); box-shadow: 0 2px 4px rgba(0,0,0,.4); z-index: 3; white-space: nowrap; }
.e2-cel-l { margin: 4px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(14,18,34,.82); display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; color: #EDF0FA; }
.e2-cel-l .muted { font-size: 12px; color: #A9B2CC; }
.e2-cesoir { position: absolute; bottom: 30px; left: -6px; padding: 1px 6px; background: #FFE27A; color: #4A3A08; font: 700 13px/1.2 'Caveat', cursive; transform: rotate(-8deg); box-shadow: 0 2px 3px rgba(0,0,0,.35); }
.e2-leg { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; margin: 4px 0 0; font-size: 12px; font-weight: 600; color: #FFF3DE; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.e2-leg span { display: inline-flex; align-items: center; gap: 1px; }
.e2-leg i { width: 12px; height: 12px; margin-right: 4px; background: var(--c); border: 0; }
.e2-leg-t { color: #F1DFC0; font-weight: 500; }
/* Ce soir */
section.e2-soir { gap: 12px; }
.e2-h2 { margin: 0; font: 800 19px var(--display); letter-spacing: -.3px; }
.e2-cases { display: flex; flex-direction: column; gap: 6px; }
.e2-case { position: relative; min-height: 52px; display: flex; align-items: center; gap: 6px; padding: 7px 40px 7px 8px; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 -3px 0 #E2D7BC inset, 0 6px 14px -8px rgba(0,0,0,.8); }
.e2-case.vide { justify-content: center; gap: 8px; padding: 8px; background: transparent; color: var(--amber); border: 2px dashed var(--amber-line); box-shadow: none; font: 700 12.5px var(--body); cursor: pointer; }
.e2-case.vide:hover { background: var(--amber-bg); }
.e2-plus { font: 800 22px/1 var(--display); }
.e2-ct { display: flex; align-items: center; gap: 6px; min-width: 0; }
.e2-ct strong { font-size: 14px; line-height: 1.15; }
.e2-ct .tiny { font-size: 12px; color: var(--ink3); }
.e2-case .e2-mini, .e2-ch-qui .e2-mini, .e2-aud .e2-mini { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: block; }
.e2-cs { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #E8DFC9; flex-shrink: 0; }
.e2-cx { position: absolute; top: calc(50% - 15px); right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(29,26,21,.08); color: var(--ink3); font-size: 11px; cursor: pointer; display: grid; place-items: center; }
.e2-ligne { display: flex; gap: 10px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--hair); }
.e2-li { width: 32px; height: 32px; border-radius: 10px; background: var(--surface2); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.e2-pistes { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.e2-pistes::-webkit-scrollbar { display: none; }
.e2-pistes .chip { flex-shrink: 0; min-height: 32px; }
.e2-ligne .enq-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.e2-ligne .voisinage { padding: 8px 10px; }
/* Le classeur */
.e2-classeur { display: flex; flex-direction: column; }
.e2-classeur .classeur { margin-bottom: -10px; }
.e2-feuille { min-height: 260px; }
.e2-sk { font: 700 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.e2-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
.e2-chips::-webkit-scrollbar { display: none; }
.e2-chips .chip { flex-shrink: 0; }
.feuille .chip { background: var(--surface2); border-color: var(--line); color: var(--text2); }
.feuille .chip.on { background: var(--amber-bg); border-color: var(--amber); color: var(--amber-soft); }
.e2-doc { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 12px 15px; border-radius: 4px 12px 12px 4px; background: #FFFDF7; border: 1px solid var(--line); border-left: 5px solid var(--c); box-shadow: 0 1px 2px rgba(29,26,21,.08); }
.e2-doc.neuf { box-shadow: 0 0 0 2px rgba(211,47,47,.35), 0 1px 2px rgba(29,26,21,.08); }
.e2-dt { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.e2-dk { font: 600 10.5px var(--code); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.e2-tampon { padding: 1px 7px; border: 2px solid #B3261E; border-radius: 5px; color: #B3261E; font: 800 11px var(--display); letter-spacing: .12em; text-transform: uppercase; transform: rotate(-6deg); }
.e2-dh { margin: 0; font: 800 16.5px/1.2 var(--display); color: var(--text); }
.e2-dq { font-weight: 600; font-size: 13.5px; color: var(--muted); }
.e2-dph { border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.e2-dph svg, .e2-dph img { display: block; width: 100%; height: auto; }
.e2-dtx p { margin: 0 0 5px; font: 400 14.5px/1.5 var(--body); color: var(--text2); }
.e2-dtx p:last-child { margin-bottom: 0; }
.e2-dp { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px dashed var(--line); }
.e2-dp .tiny { font-weight: 600; }
.feuille .tb-t-gardee { color: #8A5A12; } .feuille .tb-t-prevu { color: #1E5FA8; } .feuille .tb-t-faite, .feuille .tb-t-recue { color: #1F7A55; }
.e2-auds { display: flex; flex-direction: column; gap: 6px; }
.e2-aud-l { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.e2-aud { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 13px var(--body); cursor: pointer; flex-shrink: 0; }
.e2-aud .e2-mini { width: 26px; height: 26px; border-radius: 50%; }
.e2-vigns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.e2-vign { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.e2-vign strong { display: block; font-size: 13px; line-height: 1.2; }
.e2-vign small { display: block; font-size: 11.5px; color: var(--muted); }
.e2-vi { width: 40px; height: 40px; border-radius: 8px; background: var(--surface3); display: grid; place-items: center; font-size: 19px; flex-shrink: 0; overflow: hidden; }
.e2-vi.ph svg { width: 100%; height: 100%; }
.e2-cst { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; border-radius: 4px 12px 12px 4px; border: 1px solid var(--line); border-left: 5px solid var(--c); background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.e2-rebond { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--amber-bg); border: 1px solid var(--amber-line); }
.e2-rebond .e2-fk { color: var(--amber-soft); }
.e2-mc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.e2-mc summary::-webkit-details-marker { display: none; }
.e2-mc[open] summary { margin-bottom: 6px; }
.e2-plan { position: relative; margin: 0 -6px; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(29,26,21,.2); }
.e2-plan > svg { display: block; width: 100%; height: auto; }
.e2-pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; }
.e2-pin i, .e2-lieu i { width: 24px; height: 24px; box-sizing: border-box; border-radius: 50%; border: 2px solid #fff; background: #1F4FA0; box-shadow: 0 2px 4px rgba(0,0,0,.4); font: 800 12px/1 var(--body); font-style: normal; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.e2-lieu.planque i, .e2-pin.planque i { background: #6B4FB8; }
.e2-lieux { display: flex; flex-direction: column; gap: 4px; }
.e2-lieu { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.e2-lieu strong { display: block; font-size: 14px; } .e2-lieu small { display: block; font-size: 12px; color: var(--muted); }
.e2-lieu.planque.m1 { opacity: .55; }
.e2-pin span { font: 700 14px/1 'Caveat', cursive; color: #1F4FA0; background: rgba(244,239,227,.92); padding: 1px 4px; border-radius: 3px; white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.e2-pin.planque i { border-color: #6B4FB8; }
.e2-pin.planque span { color: #4B2E8A; }
.e2-pin.planque.m1 { opacity: .5; }
.e2-pin.planque.m3 i { background: #6B4FB8; color: #fff; }
.e2-pin.on i { box-shadow: 0 0 0 5px rgba(255,178,63,.9); }
.feuille .list-row { background: var(--surface); }
/* Feuille de détail (volet) en bas, par-dessus l'écran */
.e2-volet .tb-volet { position: fixed; left: 50%; right: auto; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 560px; max-height: 86vh; z-index: 31; animation: e2monte .26s cubic-bezier(.2,.8,.2,1) both; }
.e2-volet .tb-volet-corps { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
@keyframes e2monte { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.e2-ch-l { display: flex; flex-direction: column; gap: 4px; }
.e2-ch-k { font: 700 11px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.e2-ch-s { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.e2-ch-s.exclu { opacity: .6; }
.e2-ch-qui { display: flex; align-items: center; gap: 8px; }
.e2-ch-qui strong { font-size: 14px; }
/* Ouvrir les nouvelles pièces */
.e2-lire-voile { position: fixed; inset: 0; z-index: 70; background: radial-gradient(ellipse at 50% 30%, rgba(40,28,14,.97), rgba(5,6,12,.985)); overflow-y: auto; -webkit-overflow-scrolling: touch; animation: bsVoile .2s both; }
.e2-lire { max-width: 520px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.e2-lt { display: flex; justify-content: space-between; align-items: center; }
.e2-pli { animation: e2pli .45s cubic-bezier(.2,1.2,.3,1) both; transform-origin: 50% 0; }
.e2-pli .e2-doc { background: var(--paper); color: var(--ink); padding: 16px 14px 16px 18px; transform: rotate(-.8deg); box-shadow: 0 24px 40px -18px rgba(0,0,0,.9);
  --text: #1D1A15; --text2: #3A352C; --muted: #6A6253; --line: #CFC5B0; }
.e2-pli .e2-dh { font-size: 20px; }
.e2-pli .e2-dtx p { font-size: 15.5px; }
@keyframes e2pli { from { transform: translateY(26px) rotate(3deg) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.e2-avis { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); }
.e2-avb { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.e2-av { min-height: 46px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: 700 13.5px var(--body); cursor: pointer; }
.e2-av.v0 { grid-column: 1 / -1; min-height: 38px; font-weight: 600; color: var(--muted); }
.e2-av.v1.on { background: rgba(61,211,154,.16); border-color: var(--green); color: var(--green-soft); }
.e2-av.v2.on { background: var(--red-bg); border-color: var(--red); color: var(--red-soft); }
.e2-av.v0.on { border-color: var(--amber-line); color: var(--amber-soft); }
.e2-lb { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 10px; margin: 0 -10px; border-radius: 18px; background: rgba(12,17,36,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.e2-lb .grow { flex: 1; }
.e2-toutes { align-self: center; border: 0; background: none; color: var(--muted); font: 600 13px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 36px; }
@media (prefers-reduced-motion: reduce) { .e2-env, .e2-pli, .e2-volet .tb-volet { animation: none; } }
@media (max-width: 360px) { .e2-titre h1 { font-size: 25px; } .e2-dec { margin-left: 0; } .e2-pn { font-size: 18px; } }
/* Ordinateur : deux colonnes, le mur en une rangée de cinq */
@media (min-width: 1000px) and (hover: hover) and (pointer: fine) {
  main.screen.enq2 { max-width: 1160px; }
  .e2-hero { margin: 0; height: 280px; border-radius: 24px; border: 1px solid var(--hair); }
  .e2-titre h1 { font-size: 38px; }
  .e2-cta { max-width: 560px; align-self: center; }
  .e2-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .e2-rangs.mobile { display: none; }
  .e2-rangs.pc { display: flex; }
  .e2-rangs.pc .e2-polo { width: calc((100% - 32px) / 5); }
  .e2-volet .tb-volet { left: auto; right: 24px; bottom: 24px; top: 80px; transform: none; width: 440px; max-height: none; border-radius: 22px; animation: none; }
  .e2-classeur { position: sticky; top: 16px; }
}
.e2-vign > span:last-child { min-width: 0; }
.e2-vign small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
