/* Annuaire FSS 3YP — lichen, pin, mousse ; un seul accent ocre (les repères de la carte). */
@font-face { font-family: "Atkinson"; src: url("../vendor/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: "Atkinson"; src: url("../vendor/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: "Atkinson"; src: url("../vendor/fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* La Belle Aurore (OFL, @fontsource) : la phrase laissée par les Esprits malicieux, rien d'autre. */
@font-face { font-family: "La Belle Aurore"; src: url("../vendor/fonts/la-belle-aurore-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "La Belle Aurore"; src: url("../vendor/fonts/la-belle-aurore-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson"; src: url("../vendor/fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Fraunces italique (OFL, Google Fonts, instance 500 / SOFT 100 / WONK 1) : la phrase du site, « Garder le contact,
   pratiquer ensemble. » (écran de connexion, pied de page), rien d'autre. */
@font-face { font-family: "Fraunces"; src: url("../vendor/fonts/fraunces-latin-500-italic.woff2") format("woff2"); font-style: italic; font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; src: url("../vendor/fonts/fraunces-latin-ext-500-italic.woff2") format("woff2"); font-style: italic; font-weight: 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f1f3ee;   /* lichen */
  --card: #fbfcf9;
  --ink: #1e2a22;     /* pin */
  --muted: #56645a;
  --moss: #3f6b45;    /* actions */
  --moss-dark: #2f5334;
  --ochre: #c08a2e;   /* repères de la carte */
  --line: #d3dacf;
  --error: #9b2c1f;
  --radius-s: 6px;
  --radius-l: 18px;
  --gutter: 16px;
  --measure: 42rem;
  font-family: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 106.25%; /* 17 px : lisible sur téléphone pour tous les âges */
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
#app { flex: 1; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter) 2rem; }
main:focus { outline: none; }
a { color: var(--moss-dark); text-underline-offset: 0.15em; }
h1, h2, h3 { line-height: 1.2; margin: 1.6rem 0 0.6rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 0.8rem; }
.muted { color: var(--muted); }
.boot { padding: 2rem var(--gutter); color: var(--muted); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 2000; }
.skip:focus { left: 0; }

/* En-tête et pied */
.top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem var(--gutter); max-width: var(--measure); margin: 0 auto; width: 100%; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 0.8rem; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang { border: 0; background: transparent; color: var(--muted); padding: 0.3rem 0.65rem; font: inherit; font-size: 0.85rem; cursor: pointer; }
.lang[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
/* Petit téléphone : le titre se resserre, les liens et le choix de langue restent entiers. */
.brand { min-width: 0; }
.top-actions { flex: none; }
@media (max-width: 420px) {
  .top { gap: 0.5rem; }
  .brand { font-size: 0.92rem; gap: 0.4rem; }
  .top-actions { gap: 0.55rem; }
  .lang { padding: 0.3rem 0.5rem; }
}
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.4rem; justify-content: center; padding: 1.2rem var(--gutter) 1.6rem; border-top: 1px solid var(--line); font-size: 0.92rem; }

/* Boutons et champs */
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.6rem 1.2rem; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary { background: var(--moss); color: #fff; border: 2px solid var(--moss); }
.primary:hover { background: var(--moss-dark); border-color: var(--moss-dark); }
.primary[disabled] { opacity: 0.6; cursor: wait; }
.secondary { background: transparent; color: var(--moss-dark); border: 2px solid var(--moss); }
.link { background: none; border: 0; padding: 0.25rem 0; color: var(--moss-dark); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; font-size: 0.92rem; }
input[type="email"], input[type="search"], input[name="code"], select {
  width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--card);
}
input:focus-visible, select:focus-visible { outline: none; border-color: var(--ochre); }
input[name="code"] { font-size: 1.5rem; letter-spacing: 0.4em; max-width: 12rem; }
.stack { display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem; }
.stack label { font-weight: 700; margin-top: 0.4rem; }
.stack .link { align-self: flex-start; }
.note { padding: 0.7rem 0.9rem; border-radius: var(--radius-s); border-left: 4px solid var(--moss); background: var(--card); }
.note-error { border-left-color: var(--error); color: var(--error); }
.note-strong { font-weight: 700; }
/* Message à traiter (« Ma fiche ») : un petit coup d'épaule quand il arrive à l'écran, puis un halo qui pulse
   lentement tant qu'il est là (il disparaît une fois la chose faite) ; coupé quand l'appareil demande moins d'animations. */
.attention { animation: attention-nudge 0.6s ease-out 0.3s 1, attention-pulse 3.5s ease-out 0.9s infinite; }
@keyframes attention-nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}
@keyframes attention-pulse {
  0% { box-shadow: 0 0 0 0 rgba(155, 44, 31, 0.45); }
  45%, 100% { box-shadow: 0 0 0 12px rgba(155, 44, 31, 0); }
}

/* Connexion */
.login { max-width: 28rem; }
.login h1 { font-size: 1.9rem; }
/* Écran de connexion : logo et nom en tête, puis e-mail, puis Google, puis l'inscription à part */
.login-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 1.4rem; }
.login-hero h1 { margin: 0.9rem 0 0.2rem; }
.login-lead { margin: 0 0 1.3rem; color: var(--muted); font-size: 0.95rem; }
.login-pending { text-align: center; margin: 0.4rem 0 0; }
.login-hint { margin: 0; color: var(--muted); font-size: 0.92rem; }
/* Arrivée par le lien d'un binôme : « …, ton binôme, t'attend. » (maquette validée le 15/11/2026) */
.invite-wait { border: 1px solid var(--line); border-left: 4px solid var(--ochre); border-radius: 10px; background: var(--card); padding: 0.75rem 0.9rem; margin: 0 0 1rem; text-align: left; }
.invite-wait strong { display: block; font-size: 1.05rem; margin-bottom: 0.1rem; }
.invite-wait p { margin: 0; font-size: 0.93rem; }
.login input::placeholder { color: var(--muted); opacity: 1; }
.or { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); font-size: 0.92rem; margin: 0.9rem 0 0.2rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.google { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 48px; padding: 0.6rem 1.2rem; border-radius: 999px; font-weight: 700; background: var(--card); color: var(--ink); border: 2px solid var(--line); cursor: pointer; }
.google:hover { border-color: var(--moss); }
.google[disabled] { opacity: 0.6; cursor: wait; }
.google svg { width: 22px; height: 22px; flex: none; }
.join { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.join-title { margin: 0; font-weight: 700; }
.join-title a { font-weight: 400; }
/* Téléphone (maquette A du 08/11/2026) : tête en ligne (logo, nom, FR/DE), phrase dessous, espaces resserrés ;
   le choix de langue quitte l'en-tête pour la tête de l'écran. Sur ordinateur, la tête reste centrée. */
.login-langs { display: none; }
@media (max-width: 40rem) {
  .top-login { display: none; }
  .login-hero { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 0 0.6rem; padding-top: 12px; }
  .login-hero img { width: 44px; height: 44px; }
  .login-hero h1 { font-size: 1.32rem; margin: 0; flex: 1; min-width: 0; line-height: 1.15; }
  .login-langs { display: block; flex: none; }
  .login .login-hero .tagline { flex-basis: 100%; font-size: 1rem; margin: 0.45rem 0 0; }
  .login-lead { flex-basis: 100%; font-size: 0.88rem; margin: 0.1rem 0 0.7rem; }
  .login .stack > label { margin-top: 0; }
  .login .or { margin: 0.35rem 0 0; }
  .login .join { margin-top: 1.1rem; padding-top: 0.8rem; }
}

.signup-link { margin-top: 1.4rem; }

/* Inscription */
.booklet-help { width: 100%; }
.signup-charter { border-top: 1px solid var(--line); }
.signup-charter h2 { font-size: 1.3rem; }
.signup-charter h3 { margin-top: 1rem; }
.consent-check { align-items: flex-start; font-weight: 700; }
.consent-check input { flex: none; margin-top: 0.15rem; }

/* Recherche : l'élément principal de la page */
.finder { padding-top: 0.8rem; }
.search-label { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1.15; margin: 0.4rem 0 0.7rem; }
.search { position: relative; }
.search input { font-size: 1.15rem; min-height: 56px; padding-right: 3rem; border-color: var(--ink); border-radius: var(--radius-l); }
.search input::-webkit-search-cancel-button { display: none; }
.clear { position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.controls { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.9rem 0 0.4rem; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 0.4rem; }
.tabs a { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 1rem; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--moss); }
.tabs .badge-icon { width: 1.25em; height: 1.25em; }
.tab-icon { width: 1.1em; height: 1.1em; fill: var(--ochre); }
.tab-dot { margin-left: 0.25rem; width: 9px; height: 9px; border-radius: 50%; background: var(--ochre); animation: tab-pulse 2s ease-out infinite; }
@keyframes tab-pulse { 0% { box-shadow: 0 0 0 0 rgba(192, 138, 46, 0.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(192, 138, 46, 0); } }
.control { display: block; min-width: 0; }
.control select { min-height: 44px; font-size: 0.88rem; padding: 0.4rem 0.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.count { font-size: 0.92rem; color: var(--muted); margin: 0.6rem 0 0.2rem; }
.invite { position: relative; margin: 1rem 0 0; padding: 0.9rem 3rem 0.9rem 1rem; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--moss); border-radius: var(--radius-s); }
.invite p { margin: 0 0 0.6rem; }
/* Demande de binôme en attente (08/11/2026) : cadre des bandeaux, filet doré des cartes, sans croix. */
.invite.tandem-ask { padding-right: 1rem; border-left-color: #e3ac3c; }
.tandem-ask-who { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.7rem; }
.tandem-ask-who p { margin: 0; }
.tandem-ask-who .avatar { flex: none; width: 52px; height: 52px; overflow: hidden; box-shadow: 0 0 0 2px #ffe08a, 0 0 0 4px #e3ac3c; font-size: 1rem; }
.tandem-ask-who .avatar img { width: 100%; height: 100%; object-fit: cover; }
.tandem-ask-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tandem-ask-more { margin: 0.6rem 0 0; font-size: 0.9rem; }
.invite .close { position: absolute; top: 0.3rem; right: 0.3rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 1.1rem; cursor: pointer; color: var(--muted); }
.invite-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* Vidéo de présentation des évènements : bandeau (vignette portrait et texte, tout cliquable), puis la vidéo sur fond sombre. */
.video-open { display: flex; gap: 0.9rem; align-items: center; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.video-thumb { position: relative; flex: none; width: 60px; height: 107px; border-radius: 8px; overflow: hidden; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); }
.video-play::after { content: ""; position: absolute; left: 12px; top: 9px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.video-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 16px; border: 0; background: transparent; display: grid; place-items: center; }
.video-dialog:not([open]) { display: none; }
.video-dialog::backdrop { background: rgba(10, 14, 11, 0.92); }
.video-dialog video { max-width: 100%; max-height: calc(100dvh - 88px); aspect-ratio: 9 / 16; border-radius: 12px; background: #000; }
.video-dialog video:focus { outline: none; } /* sélectionnée à l'ouverture (openVideo) : pas de contour */
.video-close { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 1.3rem; cursor: pointer; }
/* Fête des 40 : bandeau doré ; bulles avec une tête d'éléphant qui montent du bas de l'écran en grandissant
   (par-dessus la page, sans gêner les clics). Rien ne bouge si l'appareil demande moins d'animations. */
.celebrate { background: linear-gradient(135deg, #fdf6e6, var(--card) 60%); border-color: #ecd9ae; border-left-color: var(--ochre); }
.celebrate-title { font-size: 1.2rem; line-height: 1.3; }
.celebrate-count { color: var(--ochre); display: inline-block; }
.celebrate-count.pop { animation: celebrate-pop 0.5s ease-out; }
@keyframes celebrate-pop { 40% { transform: scale(1.35); } }
.celebrate-bubbles { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
.celebrate-bubble { position: absolute; top: 100%; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; opacity: 0;
  background: rgba(255, 246, 216, 0.3); box-shadow: 0 0 13px rgba(243, 196, 106, 0.7); animation: celebrate-float var(--d) ease-in-out var(--delay) forwards; }
/* La surface de la bulle (reflet, teinte dorée vers le bord) passe devant l'éléphant : il est dedans. */
.celebrate-bubble::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.6);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5) 0 5%, rgba(255, 246, 216, 0.22) 16%, rgba(243, 196, 106, 0.16) 45%, rgba(243, 196, 106, 0.5) 78%, rgba(192, 138, 46, 0.8) 100%); }
.celebrate-bubble img { width: 68%; height: 68%; object-fit: contain; opacity: 0.85; animation: celebrate-bob 1.6s ease-in-out infinite alternate; }
/* Montée jusqu'en haut de l'écran (--top : hauteur où la bulle éclate), puis éclatement en gouttes (app.js). */
@keyframes celebrate-float {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  8% { opacity: 1; transform: translate(0, calc(var(--top) * 0.08)) scale(0.6); }
  30% { transform: translate(var(--x), calc(var(--top) * 0.32)) scale(0.9); }
  60% { transform: translate(calc(var(--x) * -1), calc(var(--top) * 0.65)) scale(1.2); }
  100% { opacity: 1; transform: translate(var(--x), var(--top)) scale(1.5); }
}
.celebrate-bubble.burst { transition: opacity 0.14s ease-out; opacity: 0 !important; }
.celebrate-drop { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #f3c46a; box-shadow: 0 0 4px rgba(243, 196, 106, 0.9); animation: celebrate-drop 0.7s ease-out forwards; }
@keyframes celebrate-drop { to { opacity: 0; transform: translate(var(--x), calc(var(--y) + 12px)) scale(0.4); } }
@keyframes celebrate-bob { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.invite-actions .secondary { min-height: 40px; padding: 0.4rem 1rem; }
.map-alert { padding-right: 1rem; border-left-color: var(--ochre); }
.map-alert p { font-weight: 700; }

/* Liste des membres */
.people { list-style: none; margin: 0; padding: 0; }
.people li + li { border-top: 1px solid var(--line); }
.person { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.85rem; padding: 0.7rem 0.2rem; }
.person:hover .person-name { text-decoration: underline; text-underline-offset: 0.15em; }
.person-text { display: flex; flex-direction: column; min-width: 0; }
.person-name { font-weight: 700; font-size: 1.05rem; color: inherit; text-decoration: none; }
.person-name::after { content: ""; position: absolute; inset: 0; } /* toute la ligne ouvre la fiche */
.person-place { color: var(--muted); font-size: 0.95rem; }
.person-badges { display: flex; gap: 0.4rem; }
.person .person-badges { display: grid; grid-template-columns: 38px 38px; } /* chaque pastille à la même place d'une ligne à l'autre */
.person .badge-room { grid-column: 2; }
.person-badges:empty { display: none; }
/* Pastilles carte (ocre, comme les repères) et salle (mousse) : par-dessus le lien de la ligne. */
.person .badge, .dialog-badges .badge { position: relative; z-index: 1; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; text-decoration: none; }
.badge:hover { box-shadow: 0 0 0 2px var(--line); }
.badge-map { background: #f3e6cc; }
.badge-room { background: #dfe9dd; color: var(--moss-dark); }
.badge .tab-icon, .badge-icon { width: 22px; height: 22px; }
.badge-icon { fill: currentColor; }
.badge-icon .flame { fill: var(--ochre); }
.dialog-badges { display: flex; justify-content: center; margin: 0.2rem 0 0.8rem; }
.dialog-badges:not(:has(.badge)) { display: none; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; background: var(--moss); color: var(--paper); font-weight: 700; flex-shrink: 0; }
.avatar-s { width: 56px; height: 56px; font-size: 1.05rem; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line); }
.avatar-l { width: 180px; height: 180px; font-size: 2.6rem; margin: 0 auto 0.6rem; display: flex; box-shadow: 0 0 0 5px var(--card), 0 0 0 7px var(--moss); }
.empty { padding: 1.5rem 0; }

/* Fiche détaillée */
dialog.member { width: min(100% - 2 * var(--gutter), 30rem); max-height: calc(100% - 2rem); border: 0; border-radius: var(--radius-l); padding: 2.2rem 1.4rem 1.6rem; background: var(--card); color: var(--ink); text-align: center; }
dialog.member::backdrop { background: rgba(30, 42, 34, 0.55); }
dialog.member h2 { margin-top: 0.4rem; font-size: 1.5rem; }
/* Fiche resserrée (version A validée le 07/11/2026) : photo plus petite, ville et pastilles sur une ligne, boutons de
   cadrage et « Modifier ma fiche » en petit, pour que « Son message à la communauté » tienne dans un écran de téléphone. */
dialog.member { padding-top: 1.8rem; }
dialog.member .avatar-l { width: 112px; height: 112px; font-size: 1.9rem; margin-bottom: 0.4rem; box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--moss); }
dialog.member h2 { margin: 0.2rem 0 0.2rem; }
.dialog-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.3rem 0.6rem; margin: 0 0 0.5rem; }
.dialog-line .dialog-badges { margin: 0; gap: 0.4rem; }
.dialog-line .badge { width: 32px; height: 32px; }
.dialog-line .badge .tab-icon, .dialog-line .badge-icon { width: 19px; height: 19px; }
dialog.member .contact { margin: 0.8rem 0; }
dialog.member .contact + .message { border-top: 0; padding-top: 0; } /* déjà le trait du bas des coordonnées */
dialog.member .framing-wrap { margin-bottom: 0.2rem; }
dialog.member .framing-wrap > .primary, dialog.member .dialog-actions > :is(.primary, .secondary) { min-height: 40px; padding: 0.3rem 0.95rem; font-size: 0.92rem; background: transparent; color: var(--moss-dark); border-width: 1.5px; border-color: var(--moss); }
dialog.member .framing-wrap > .primary:hover, dialog.member .dialog-actions > :is(.primary, .secondary):hover { background: var(--moss); color: #fff; }
dialog.member .dialog-actions svg { width: 17px; height: 17px; }
dialog .close { position: absolute; top: 0.6rem; right: 0.6rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
/* Fiche d'un membre (05/11/2026) : la croix reste en haut à droite quand la fiche défile (long message) ; collée au bord
   de la zone de contenu (padding 2.2rem / 1.4rem), sans prendre de place dans la mise en page. */
dialog.member .close { position: sticky; top: -1.6rem; right: auto; display: block; margin: -1.6rem -0.8rem -44px auto; z-index: 2; background: var(--card); }
/* Partager la fiche (maquette A, 08/11/2026) : en haut à gauche, en miroir de la croix (même collage en haut). */
dialog.member .profile-share-wrap { position: sticky; top: -1.6rem; display: block; width: 44px; height: 44px; margin: 0 auto -44px -0.8rem; z-index: 2; }
dialog.member .profile-share { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--card); color: var(--moss-dark); cursor: pointer; }
dialog.member .profile-share:hover { background: var(--paper); }
dialog.member .profile-share svg { width: 21px; height: 21px; }
dialog.member .share-toast { position: absolute; left: 0; top: 46px; white-space: nowrap; font-size: 0.8rem; color: var(--moss-dark); font-weight: 700; }
dialog.member .share-toast:empty { display: none; }
.contact { margin: 1.2rem 0; border-top: 1px solid var(--line); text-align: left; }
.contact-row { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.contact dt { color: var(--muted); font-size: 0.9rem; }
.contact dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; min-width: 0; }
.contact dd a { overflow-wrap: anywhere; }
.copy { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-weight: 700; color: var(--moss-dark); cursor: pointer; }
.copy:hover { border-color: var(--moss-dark); }
.invite-link { display: inline-flex; align-items: center; gap: 0.4rem; vertical-align: middle; }
.invite-url { overflow-wrap: anywhere; }
.message { text-align: left; border-top: 1px solid var(--line); padding-top: 0.4rem; }
.message p { white-space: pre-line; }

/* Carte */
.map { height: min(70vh, 34rem); border-radius: var(--radius-l); border: 1px solid var(--line); margin-top: 0.4rem; z-index: 0; }
.map-note { font-size: 0.9rem; margin-top: 0.5rem; }
.pin { display: flex !important; align-items: center; justify-content: center; border-radius: 50%; background: var(--ochre); color: #1e2a22; font-weight: 700; border: 3px solid var(--card); box-shadow: 0 1px 4px rgba(30, 42, 34, 0.4); }
/* Nouveaux membres (maquette validée le 10/11/2026) : anneau vert autour des repères, trois pulsations à l'ouverture ;
   bande au-dessus de la carte ; « Nouveau » dans la bulle d'une ville. */
.pin.pin-new { box-shadow: 0 0 0 3px var(--moss), 0 1px 4px rgba(30, 42, 34, 0.4); }
.pin.pin-pulse::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--moss); opacity: 0; animation: pin-halo 2s ease-out 3; pointer-events: none; }
@keyframes pin-halo { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
.map-new { margin: 0.4rem 0; padding: 0.7rem; background: #e7efe4; border: 1px solid #b8cdb9; border-radius: 14px; display: flex; flex-direction: column; gap: 0.6rem; }
.map-new-title { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.map-new-ring { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--moss); box-sizing: border-box; }
.map-new-list { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.map-new-chip { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 4px 12px 4px 4px; border: 1px solid #b8cdb9; border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 0.85rem; text-align: left; cursor: pointer; }
.map-new-chip .avatar-xs { --ph: 34px; width: var(--ph); height: var(--ph); font-size: calc(var(--ph) * 0.36); }
.map-new-who { display: flex; flex-direction: column; line-height: 1.15; }
.map-new-who > span { font-size: 0.75rem; color: var(--muted); }
.map-new-more { display: flex; align-items: center; min-height: 44px; padding: 4px 14px; border: 1.5px dashed var(--moss); border-radius: 999px; background: transparent; color: #2f5334; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.map-new-more:hover { background: #dbe7d7; }
.map-new-less { min-height: 44px; padding: 4px; border: 0; background: none; color: #2f5334; font: inherit; font-size: 0.85rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.map-new-tag { margin-left: auto; font-size: 0.72rem; font-weight: 700; color: var(--card); background: var(--moss); border-radius: 999px; padding: 1px 8px; }
.popup-title { font-weight: 700; margin: 0 0 0.3rem; }
.popup ul { margin: 0; padding: 0; list-style: none; max-height: 16rem; overflow-y: auto; }
.popup li { padding: 0.15rem 0; }
.popup li a { display: flex; align-items: center; gap: 0.55rem; }
/* Taille des photos selon le nombre de membres de la ville : 1-3, 4-8, au-delà. */
.popup .avatar-xs { --ph: 30px; width: var(--ph); height: var(--ph); font-size: calc(var(--ph) * 0.36); }
.popup-l .avatar-xs { --ph: 44px; }
.popup-m .avatar-xs { --ph: 36px; }
.leaflet-container { font: inherit; }
.leaflet-container a, .popup a { color: var(--moss-dark); }

/* Textes longs : charte, à propos */
.prose { max-width: 38rem; }
.funnel { width: 100%; border-collapse: collapse; }
.funnel th, .funnel td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--line); text-align: left; }
.funnel th { font-weight: 400; }
.funnel .num { font-weight: 700; font-size: 1.15rem; text-align: right; }
.funnel .pct { color: var(--muted); font-size: 0.88rem; }
/* Tableau de bord, section Emails */
.dashboard h3 { font-size: 1rem; margin: 1rem 0 0.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0.8rem; }
.chip { font: inherit; font-size: 0.88rem; padding: 0.25rem 0.75rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: #fff; font-weight: 700; }
.chip:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.mail-chart { position: relative; }
.mail-chart svg { width: 100%; height: auto; display: block; }
.mail-chart .grid line { stroke: var(--line); stroke-width: 1; }
.mail-chart .axis text { font-size: 10.5px; fill: var(--muted); font-family: inherit; }
.mail-chart .hit { fill: transparent; }
.mail-chart .ok { fill: var(--moss); }
.mail-chart .ko { fill: var(--error); }
.mail-chart g:hover .ok, .mail-chart g:hover .ko { opacity: 0.8; }
.mail-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 0.82rem; line-height: 1.35; padding: 0.4rem 0.6rem; border-radius: var(--radius-s); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
.legend { display: flex; gap: 1.2rem; font-size: 0.88rem; color: var(--muted); margin: 0.3rem 0 0.8rem; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.4rem; vertical-align: -1px; }
.legend .ok::before { background: var(--moss); }
.legend .ko::before { background: var(--error); }
/* Mémoire (maquette du 04/11/2026) : niveau habituel, vrais pics, zone de danger, évènements sous la courbe. */
.memory-chart .line, .mem-legend .line { fill: none; stroke: var(--moss); stroke-width: 2; stroke-linejoin: round; }
.memory-chart .area, .mem-legend .area { fill: rgba(63, 107, 69, 0.12); }
.memory-chart .plan, .mem-legend .plan { stroke: var(--error); stroke-width: 1.5; stroke-dasharray: 5 4; }
.memory-chart .zone, .mem-legend .zone { fill: rgba(155, 44, 31, 0.08); }
.memory-chart .zone-label { fill: var(--error); font-size: 10.5px; font-weight: 700; }
.memory-chart .peak, .mem-legend .peak { fill: var(--error); }
.memory-chart .peak-stem { stroke: var(--error); stroke-width: 1; stroke-dasharray: 2 2; }
.memory-chart .peak-label { fill: var(--error); font-size: 11px; font-weight: 700; }
.memory-chart .axis .day { fill: var(--ink); font-weight: 700; }
.memory-chart .tick { stroke: var(--muted); }
.memory-chart .rail { stroke: var(--line); }
.memory-chart .rail-label { fill: var(--muted); font-size: 10.5px; }
.memory-chart .restart, .mem-legend .restart { stroke: var(--muted); stroke-width: 1.2; }
.memory-chart .photo, .mem-legend .photo { fill: var(--ochre); }
.memory-chart .backup, .mem-legend .backup { fill: none; stroke: var(--ink); stroke-width: 1.4; }
/* Photos servies au même instant (21/11/2026), sous la courbe de mémoire. */
.memory-chart .ph-bar, .mem-legend .ph-bar { fill: var(--moss); }
.memory-chart .ph-bar.over, .mem-legend .ph-bar.over { fill: var(--error); }
.memory-chart .ph-limit, .mem-legend .ph-limit { stroke: var(--ochre); stroke-width: 1.5; stroke-dasharray: 5 4; }
.memory-chart .ph-limit-label { fill: #7a5410; font-size: 10.5px; font-weight: 700; }
.memory-chart .ph-val { fill: var(--ink); font-size: 11px; font-weight: 700; }
.memory-chart .ph-change { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 1 3; }
.memory-chart .ph-change-label { fill: var(--ink); font-size: 10px; }
.memory-chart .cross { stroke: var(--ink); stroke-width: 1; opacity: 0.35; }
.mem-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 0.8rem; line-height: 1.35; padding: 0.4rem 0.6rem; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -100%); }
.mem-tip b { color: #f0d9a8; }
.mem-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.7rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 0.8rem; margin-bottom: 0.6rem; }
.mem-sum .sub { color: var(--muted); font-size: 0.9rem; }
.mem-sum .big { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mem-sum .chip { font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.05rem 0.55rem; border: 1px solid var(--line); color: var(--muted); }
.mem-sum .chip.warn { background: #fbf1dc; border-color: #e5c98f; color: #7a5410; }
.mem-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0 0.8rem; padding: 0; list-style: none; }
.mem-legend svg { display: inline-block; width: 22px; height: 12px; vertical-align: -1px; margin-right: 0.3rem; }
.totals { width: 100%; border-collapse: collapse; margin: 0.4rem 0 1rem; font-size: 0.95rem; }
.totals th, .totals td { padding: 0.35rem 0.4rem; border-bottom: 1px solid var(--line); text-align: left; }
.totals th { font-weight: 400; }
.totals td { text-align: right; font-variant-numeric: tabular-nums; }
.totals td.ko { color: var(--error); font-weight: 700; }
.totals tr.all th, .totals tr.all td { font-weight: 700; border-bottom: 0; }
.fails li { margin-bottom: 0.5rem; }
.deleting-list { list-style: none; padding: 0; margin: 0.3rem 0 0.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.deleting-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.8rem; align-items: center; padding: 0.6rem 0.75rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.deleting-list li .help { grid-column: 1; margin: 0; }
.deleting-list li .secondary { grid-column: 2; grid-row: 1 / span 2; min-height: 40px; padding: 0.3rem 1rem; }
.deleting-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 1rem; }
.deleting-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #f6eedd; color: #6b4a12; }
.deleting-icon svg { width: 32px; height: 32px; }
.deleting h1 { margin: 0.8rem 0 0.6rem; text-wrap: balance; }
.deleting .help { margin-top: 0.8rem; }
.mail-chart .wait { fill: var(--ochre); }
.legend .wait::before { background: var(--ochre); }
.qa-admin { list-style: none; padding: 0; margin: 0 0 0.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.qa-admin li { padding: 0.55rem 0.7rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.qa-admin-text { margin: 0.2rem 0; overflow-wrap: anywhere; white-space: pre-line; }
.fails code { font-size: 0.85em; background: #e7ebe3; padding: 0.05rem 0.35rem; border-radius: 4px; overflow-wrap: anywhere; }
.pill { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.05rem 0.5rem; border-radius: 999px; margin-left: 0.3rem; vertical-align: 1px; }
.pill.retried { background: #a9c4ad; color: var(--moss-dark); }
.pill.dropped { background: #e5b7af; color: var(--error); }
.pill.waiting { background: #f0dfb8; color: #7a5410; }
.consent { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.actions { margin-top: 1.5rem; }

/* Ma fiche */
.my-profile { font-weight: 700; font-size: 0.92rem; color: var(--moss-dark); }
.my-profile { display: inline-flex; align-items: center; gap: 0.4rem; }
.my-profile .avatar-xs { width: 28px; height: 28px; font-size: 0.62rem; }
@media (max-width: 26rem) { .my-profile:has(.avatar) .my-profile-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.my-profile[aria-current="page"] { text-decoration: none; color: var(--ink); }
.profile-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.field > label, .label, .langs-field legend { font-weight: 700; margin: 0; }
.field input:not([type="file"]):not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--card); font: inherit;
}
.field textarea { resize: vertical; line-height: 1.45; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ochre); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.help { font-size: 0.88rem; color: var(--muted); margin: 0; }
.field-error { color: var(--error); font-size: 0.9rem; font-weight: 700; margin: 0; }
.readonly { margin: 0; padding: 0.6rem 0; overflow-wrap: anywhere; }
.two { display: grid; gap: 1rem; }
.langs-field { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.langs-field legend { margin-bottom: 0.4rem; }
.langs-field .field-error { flex-basis: 100%; }
.ui-switch { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; }
.ui-switch:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: var(--radius-s); }
.ui-switch-track { position: relative; flex: none; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: #a9b2a7; transition: background 0.15s; }
.ui-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: #fff; transition: transform 0.15s; }
.ui-switch[aria-checked="true"] .ui-switch-track { background: var(--moss); }
.ui-switch[aria-checked="true"] .ui-switch-track::after { transform: translateX(1.1rem); }
.check { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; }
.check input { width: 1.3rem; height: 1.3rem; accent-color: var(--moss); }
.photo-box { display: flex; justify-content: flex-start; }
/* Photo dans un rond qui la découpe : le cadrage (« Ma fiche ») agit sur l'image seule. */
.avatar-photo { overflow: hidden; padding: 0; }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.framing-active { cursor: grab; touch-action: none; outline: 3px dashed var(--moss); outline-offset: 4px; }
.framing-active:active { cursor: grabbing; }
.framing-wrap { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.framing { display: flex; flex-direction: column; gap: 0.6rem; width: 100%; max-width: 22rem; }
.framing input[type="range"] { width: 100%; accent-color: var(--moss); }
.framing-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
/* Fenêtre d'une fiche : actions sous la photo, centrées (sa propre fiche ; cadrage de l'administrateur). */
.framing-wrap.framing-center { align-items: center; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.2rem; }
.icon-button { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; }
.icon-button svg { flex: none; }
.dialog-hint { margin: 0.5rem auto 0; max-width: 20rem; }
dialog.member .framing-wrap { align-items: center; margin-bottom: 0.6rem; }
dialog.member .framing { margin: 0 auto; text-align: left; }
dialog.member .framing-actions { justify-content: center; }
.photo-box .avatar-l { margin: 0.4rem 0; }
/* Envoi de la photo en cours (Mon compte) : voile et indicateur sur l'aperçu. */
.photo-box.is-busy .avatar-l { position: relative; }
.photo-box.is-busy .avatar-l::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(30, 42, 34, 0.45) no-repeat center / 40px; }
.photo-box.is-busy .avatar-l::before { content: ""; position: absolute; z-index: 1; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .photo-box.is-busy .avatar-l::before { animation-duration: 3s; } }
.file-button.is-disabled { opacity: 0.6; pointer-events: none; }
.photo-status { margin: 0; font-size: 0.95rem; }
.photo-status.is-ok { color: var(--moss-dark); font-weight: 700; }
.photo-status.is-ok::before { content: "✓ "; }
.file-button { align-self: flex-start; }
#f-photo:focus-visible + .file-button, #d-photo:focus-visible + .file-button { outline: 3px solid var(--ochre); outline-offset: 2px; }
.back { margin-top: 1.5rem; }
.map-small { height: 220px; margin: 0; }
.withdraw { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.danger { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.6rem 1.2rem; border-radius: 999px; font-weight: 700; cursor: pointer; background: transparent; color: var(--error); border: 2px solid var(--error); }
.stack .danger { background: var(--error); color: #fff; }
.danger:disabled { opacity: 0.4; cursor: not-allowed; }
dialog.confirm { width: min(100% - 2 * var(--gutter), 26rem); border: 0; border-radius: var(--radius-l); padding: 1.6rem 1.4rem; background: var(--card); color: var(--ink); }
dialog.confirm::backdrop { background: rgba(30, 42, 34, 0.55); }
dialog.confirm h2 { margin-top: 0; }
dialog.confirm .field { margin-bottom: 1.2rem; }

@media (min-width: 40rem) {
  .two { grid-template-columns: 1fr 1fr; }
  .controls { flex-direction: row; align-items: center; justify-content: space-between; }
  .tabs { border-bottom: 0; }
  .selects { flex: 1; max-width: 30rem; }
  .search-label { font-size: 2.3rem; }
}
/* Plan de la salle : dessin des murs (SVG) en fond, pastilles HTML posées dessus en pourcentages.
   Pastille : 18 unités du dessin, soit 18/372 de la largeur (salle en hauteur) ou 18/612 (salle en largeur). */
.room { position: relative; width: min(100%, calc(78vh * 372 / 612)); margin: 0.8rem auto 0; }
.room-wide { width: 100%; }
.room-walls { position: absolute; inset: 0; width: 100%; height: 100%; }
.room-floor { fill: var(--card); stroke: var(--ink); stroke-width: 2.5; }
.room-door { stroke: var(--card); stroke-width: 5; }
.room-door-leaf { stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.room-door-swing { fill: none; stroke: #b9c2b8; stroke-width: 0.8; stroke-linecap: round; } /* trait plein, très pâle : pas un fil de binôme */
.room-door-jamb { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.room-door-label { font-size: 12px; font-weight: 700; fill: var(--ink); }
.room-label { font-size: 11px; font-family: inherit; fill: var(--muted); }
.room-hint { font-size: 13px; font-weight: 700; fill: var(--ochre); }
.room-placing { cursor: crosshair; }
.room-seat { position: absolute; display: block; width: 4.84%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 50%; background: none; line-height: 0; cursor: pointer; transition: left 1.6s ease-in-out, top 1.6s ease-in-out; }
.room-wide .room-seat { width: 2.94%; }
.room-placing .room-seat { cursor: crosshair; }
.room-seat .avatar-xs { display: flex; width: 100%; height: 100%; line-height: 1; font-size: clamp(7px, 1.5vw, 11px); }
.room-seat.on-chair::before { content: ""; position: absolute; inset: -16%; border: 1.5px solid var(--ink); border-radius: 4px; }
.room-seat.is-me { box-shadow: 0 0 0 3px var(--ochre); }
.room-seat.is-sel { box-shadow: 0 0 0 3px var(--ink); z-index: 2; } /* au-dessus des voisines, avec son étiquette */
/* Halo qui pulse sans arrêt autour de la personne sélectionnée (fixe si l'appareil demande moins d'animations). */
.room-seat.is-sel::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--ink); pointer-events: none; animation: seat-halo 1.2s ease-out infinite; }
@keyframes seat-halo { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.2); opacity: 0; } }
/* Nom de la personne sélectionnée, en étiquette sur le plan (côté intérieur de la salle). */
.room-seat-name { position: absolute; z-index: 3; white-space: nowrap; background: var(--ink); color: var(--paper); font-size: 0.8rem; font-weight: 700; line-height: 1.4; padding: 2px 8px; border-radius: 6px; pointer-events: none; }
.name-below { top: calc(100% + 8px); }
.name-above { bottom: calc(100% + 8px); }
.name-right { left: calc(100% + 8px); }
.name-left { right: calc(100% + 8px); }
/* Le long du mur : centrée, ou décalée vers l'intérieur près d'un coin (start = haut ou gauche du plan). */
:is(.name-below, .name-above).name-middle { left: 50%; transform: translateX(-50%); }
:is(.name-below, .name-above).name-start { left: 50%; }
:is(.name-below, .name-above).name-end { right: 50%; }
:is(.name-right, .name-left).name-middle { top: 50%; transform: translateY(-50%); }
:is(.name-right, .name-left).name-start { top: 100%; }
:is(.name-right, .name-left).name-end { bottom: 100%; }
/* Cercle : les mains (trait d'un visage à l'autre, qui apparaît une fois le cercle formé) ; plus de chaises. */
.room-hands { fill: none; stroke: var(--ochre); stroke-width: 2.5; stroke-linejoin: round; animation: room-hands-in 0.6s ease-out; }
@keyframes room-hands-in { from { opacity: 0; } to { opacity: 1; } }
/* Le cercle envoie une onde vers l'extérieur seulement : l'ovale s'agrandit et s'efface, comme un rond dans l'eau. */
.room-hands-wave { fill: none; stroke: var(--ochre); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; animation: room-hands-wave 3s ease-out 0.6s infinite; }
@keyframes room-hands-wave { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18); } }
.room-circle .room-seat.on-chair::before { display: none; }
/* Trouver quelqu'un dans la salle : champ (loupe dedans), et noms trouvés en liste par-dessus le plan. Recherche et
   bouton du cercle à la largeur des murs du plan (marge du dessin : PAD = 26 unités de chaque côté, cf. room.js) ;
   écran large : sur une même ligne. */
.room-tools { width: min(calc(100% * 320 / 372), calc(78vh * 320 / 612)); margin: 1rem auto 0; }
.room-tools-wide { width: calc(100% * 560 / 612); display: flex; align-items: center; gap: 0.75rem; }
.room-tools-wide .room-find { flex: 1; min-width: 0; margin: 0; }
.room-tools-wide .room-circle-row { margin: 0; }
.room-tools-wide .room-circle-row:has(> [hidden]) { display: none; }
.room-tools-wide + .room { margin-top: 0.6rem; }
.room-find { position: relative; margin: 0 0 0.4rem; display: grid; }
.room-find > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.room-find input { padding-left: 40px; }
.room-find-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 6px 18px rgba(30, 42, 34, 0.15); }
.room-find-list > .muted { padding: 0.5rem; }
/* Membres sans place (maquette validée le 08/11/2026) : bouton au milieu de la salle, entre la bougie et le mur du bas,
   et liste dans le panneau. */
.room-toplace { position: absolute; left: 50%; top: 74%; transform: translate(-50%, -50%); z-index: 2; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.75rem 0.2rem 0.3rem; border: 1.5px solid var(--moss); border-radius: 999px; background: var(--card); color: var(--moss-dark); font: inherit; font-size: 0.85rem; font-weight: 700; white-space: nowrap; line-height: 1.2; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); cursor: pointer; }
.room-toplace.is-open { background: var(--moss); color: #fff; }
.room-toplace-stack { display: inline-flex; }
.room-toplace-stack > .avatar { --ph: 24px; width: 24px; height: 24px; margin-left: -5px; overflow: hidden; box-shadow: 0 0 0 2px var(--card); font-size: 0.5rem; }
.room-toplace-stack > .avatar img { width: 100%; height: 100%; object-fit: cover; }
.room-toplace-list .avatar { --ph: 32px; width: 32px; height: 32px; overflow: hidden; font-size: 0.7rem; }
.room-toplace-list .avatar img { width: 100%; height: 100%; object-fit: cover; }
.room-toplace-stack > .avatar:first-child { margin-left: 0; }
.room-toplace-title { font-size: 1.05rem; margin: 0 0 0.2rem; }
.room-toplace-list { list-style: none; margin: 0.6rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.room-toplace-list button { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.2rem 0.85rem 0.2rem 0.3rem; border: 1.5px solid var(--moss); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.room-thanks { color: var(--moss-dark); font-weight: 700; }
/* Liste des membres sans place sur écran large : même croix en haut à droite que la feuille du téléphone (pas de
   bouton « Fermer », 08/11/2026). */
@media (min-width: 720px) {
  .room-panel.is-toplace .room-sheet-close { display: block; position: absolute; top: 0.4rem; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--card); font-size: 1.1rem; color: var(--muted); cursor: pointer; }
  .room-panel.is-toplace > :nth-child(2) { padding-right: 2.6rem; }
}
.room-find-item { display: flex; align-items: center; gap: 0.6rem; width: 100%; min-height: 44px; padding: 0.3rem 0.5rem; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.room-find-item:hover, .room-find-item:focus-visible { background: var(--paper); }
.room-find-item .avatar-xs { flex: none; width: 32px; height: 32px; font-size: 0.7rem; }
/* « Former le cercle » : bouton rond, icône seule, au-dessus du plan, centré sur la salle ; il pulse comme
   le point de l'onglet Carte tant que le cercle n'a jamais été formé ; enfoncé (plein) pendant le cercle. */
.room-unplaced { position: absolute; z-index: 4; left: 50%; top: 25%; transform: translate(-50%, -50%); width: min(62%, 300px); display: grid; justify-items: center; gap: 0.6rem; padding: 0.8rem; border-radius: var(--radius-s); background: var(--card); box-shadow: 0 4px 16px rgba(30, 42, 34, 0.14); text-align: center; }
.room-unplaced[hidden] { display: none; }
.room-unplaced .note { margin: 0; text-align: left; }
/* Écran large : la salle est basse ; texte et bouton côte à côte, sous les pastilles du mur du haut, au-dessus de la bougie. */
.room-wide .room-unplaced { top: 14%; transform: translateX(-50%); width: auto; max-width: 86%; grid-auto-flow: column; align-items: center; padding: 0.5rem 0.6rem; }
.room-wide .room-unplaced .note { padding: 0.5rem 0.7rem; }
.room-wide .room-unplaced > * { white-space: nowrap; }
/* Tout près du mur du haut : le bouton empiète sur la marge transparente du plan, au-dessus de lui. */
.room-circle-row { position: relative; z-index: 6; display: flex; justify-content: center; margin: 0.4rem 0 -1.75rem; }
.room-circle-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 48px; padding: 0 1.1rem 0 0.75rem; border: 2px solid var(--moss); border-radius: 999px; background: var(--moss); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.room-circle-btn .badge-icon { width: 28px; height: 28px; }
.room-circle-btn[aria-pressed="true"] { background: var(--card); color: var(--moss-dark); }
.room-circle-btn:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
/* Fils des binômes dans la Salle (maquette validée le 16/11/2026), pour qui voit l'onglet Binômes. Bouton « Voir les
   binômes » à côté de celui du cercle : à deux, la rangée passe à la ligne et ne mord plus sur le plan. */
.room-links-btn { --rl-bg: var(--moss); display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 48px; padding: 0 1.1rem 0 0.85rem; border: 2px solid var(--moss); border-radius: 999px; background: var(--rl-bg); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.room-links-btn[aria-pressed="true"] { --rl-bg: var(--card); color: var(--moss-dark); }
.room-links-btn svg { width: 24px; height: 24px; flex: none; }
.room-links-btn:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.room-circle-row.has-links { flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.3rem; }
/* Le fil : très fin (demandé le 16/11/2026), halo léger ; pointillés tant que la devise manque. Il part des deux pastilles
   à la fois (masque : deux moitiés qui avancent vers le milieu), puis les anneaux apparaissent. */
.room-link-halo { fill: none; stroke: #ffd66b; stroke-width: 2.4; stroke-linecap: round; opacity: 0.3; }
.room-link-line { fill: none; stroke: #c8902a; stroke-width: 0.7; stroke-linecap: round; }
.room-link.is-mine .room-link-halo { opacity: 0.4; }
.room-link.is-mine .room-link-line { stroke-width: 0.9; }
.room-link.no-quote .room-link-line { stroke-dasharray: 2.5 3.5; stroke: #8a6a22; }
.room-link.no-quote .room-link-halo { opacity: 0.12; }
.room-link.is-float .room-link-line { stroke-dasharray: 2 3.5; stroke: #8a6a22; }
.room-link.is-float .room-link-halo { opacity: 0.12; }
.room-link-mk { fill: none; stroke: #fff; stroke-width: 12; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(0.5, 0, 0.3, 1); }
.room-link.is-drawn .room-link-mk { stroke-dashoffset: 0; }
.room-seat.is-linked { box-shadow: 0 0 0 1.5px #ffe08a, 0 0 6px 1px rgba(255, 196, 70, 0.7); }
.room-seat.is-me.is-linked { box-shadow: 0 0 0 3px var(--ochre), 0 0 7px 3px rgba(255, 196, 70, 0.7); }
.room-seat.is-sel.is-linked { box-shadow: 0 0 0 3px var(--ink); }
/* Les anneaux au milieu du fil : même langage que les cartes (allumés = devise écrite ; pointillés, anneaux séparés
   = devise à écrire ; « ? » = pas encore de binôme). */
.room-knot { position: absolute; z-index: 2; width: 6.2%; aspect-ratio: 1; padding: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; line-height: 0;
  transform: translate(-50%, -50%) scale(0); transition: transform 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
  background: #2a1f00; border: 1.5px solid #ffe08a; box-shadow: 0 0 8px 2px rgba(255, 200, 80, 0.8); }
.room-wide .room-knot { width: 3.77%; }
.room-knot::after { content: ""; position: absolute; inset: -10px; }
.room-knot.is-shown { transform: translate(-50%, -50%) scale(1); }
.room-knot svg { width: 78%; height: 78%; }
.room-knot .r1, .room-knot .r2 { transform-box: fill-box; transform-origin: center; }
.room-knot.is-off, .room-knot.is-ask { background: #fff6d6; border: 1.5px dashed #7a5a1c; box-shadow: none; }
.room-knot.is-off .r1 { transform: translateX(-2.6px) scale(0.72); }
.room-knot.is-off .r2 { transform: translateX(2.6px) scale(0.72); }
.room-knot.is-off .ov { opacity: 0; }
.room-knot.is-ask { color: #5a3a00; font-weight: 700; font-size: clamp(9px, 2.4vw, 14px); line-height: 1; }
.room-knot.is-off.is-mine.is-shown, .room-knot.is-ask.is-shown { animation: room-knot-breathe 2.6s ease-in-out infinite; }
@keyframes room-knot-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(192, 138, 46, 0); } 50% { box-shadow: 0 0 0 5px rgba(192, 138, 46, 0.45); } }
.room-knot.is-sel { outline: 3px solid var(--ink); outline-offset: 2px; }
.room-knot:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.room-placing .room-knot { display: none; }
@media (prefers-reduced-motion: reduce) { .room-link-mk, .room-knot { transition: none; } .room-knot.is-shown { animation: none !important; } }
/* Panneau : le binôme de la personne et sa devise. */
.room-tandem { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.4rem; }
.room-tandem svg { width: 20px; height: 20px; flex: none; }
.room-tandem-q { font-style: italic; overflow-wrap: anywhere; }
/* « Traduire » dans le fil de la devise, après le guillemet fermant ; la mention « Traduit · Original » ne se coupe pas : elle passe entière à la ligne. */
.room-tandem-q .xl8-row { display: inline-flex; flex-wrap: nowrap; white-space: nowrap; margin: 0 0 0 0.4rem; vertical-align: middle; font-style: normal; }
.room-tandem-q .xl8-mini-note { flex-wrap: nowrap; }
.room-who .tp-duo { margin-right: 0.1rem; }
.room-who .tp-duo .avatar { width: 44px; height: 44px; font-size: 0.85rem; }
.room-who .tp-duo .avatar + .avatar { margin-left: -14px; }
.room-seat:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; }
.avatar-guest { background: var(--card); color: var(--muted); border: 1.5px dashed var(--muted); }
.room-mat { fill: var(--ochre); fill-opacity: 0.12; stroke: var(--ochre); stroke-opacity: 0.55; }
.room-candle-foot { fill: var(--line); }
.room-candle { fill: var(--paper); stroke: var(--muted); }
.room-wick { stroke: var(--ink); }
.room-flame, .room-ember { fill: var(--ochre); }
/* La flamme danse (cœur clair à contretemps) dans un halo qui pulse ; la braise rougeoie ; trois volutes montent
   l'une après l'autre et se dissipent. Rien ne bouge si l'appareil demande moins d'animations (règle générale). */
.room-flame, .room-flame-core, .room-glow, .room-ember, .room-smoke { transform-box: fill-box; }
.room-flame { transform-origin: 50% 100%; animation: room-dance 1.7s ease-in-out infinite; }
.room-flame-core { fill: #f6d58a; transform-origin: 50% 100%; animation: room-dance 1.3s ease-in-out infinite reverse; }
.room-glow { transform-origin: 50% 50%; animation: room-glow 1.7s ease-in-out infinite; }
.room-ember { transform-origin: 50% 50%; animation: room-ember 2.2s ease-in-out infinite; }
/* Cercle formé : la flamme monte et son halo grandit et brille davantage (au rythme des visages qui glissent). */
.room-glow-wrap, .room-flame-wrap { transform-box: fill-box; transition: transform 1.6s ease-in-out; }
.room-glow-wrap { transform-origin: 50% 50%; }
.room-flame-wrap { transform-origin: 50% 100%; }
.room-circle .room-glow-wrap { transform: scale(3.4); }
.room-circle .room-flame-wrap { transform: scale(1.5); }
.room-circle .room-glow { animation-name: room-glow-strong; }
@keyframes room-glow-strong { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
.room-bowl { fill: var(--muted); opacity: 0.6; }
.room-stick { stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.room-smoke { fill: none; stroke: var(--muted); stroke-width: 1.1; stroke-linecap: round; opacity: 0; transform-origin: 50% 100%; animation: room-rise 4.5s ease-out infinite; }
.room-smoke.smoke-2 { animation-delay: 1.5s; }
.room-smoke.smoke-3 { animation-delay: 3s; }
@keyframes room-dance { 0%, 100% { transform: rotate(0) scale(1, 1); } 20% { transform: rotate(-4deg) scale(0.94, 1.08); } 45% { transform: rotate(3deg) scale(1.04, 0.95); } 70% { transform: rotate(-2deg) scale(0.97, 1.05); } }
@keyframes room-glow { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 0.85; transform: scale(1.12); } }
@keyframes room-ember { 0%, 100% { opacity: 0.65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes room-rise { 0% { opacity: 0; transform: translate(0, 4px) scale(0.8, 0.6); } 20% { opacity: 0.75; } 100% { opacity: 0; transform: translate(3px, -14px) scale(1.4, 1.2); } }
.room-title { margin-bottom: 0; }
.room-week { margin: 0.2rem 0 0; }
.room-stats { font-size: 0.92rem; color: var(--muted); margin: 0.8rem 0 0; }
.room-panel { margin-top: 1rem; padding: 0.9rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); display: grid; gap: 0.6rem; }
.room-panel p { margin: 0; }
.room-admin h2 { margin: 0; }
.room-who { display: flex; gap: 0.8rem; align-items: center; }
.room-who .avatar-l { flex: none; width: 128px; height: 128px; margin: 0; font-size: 2rem; } /* grande photo de la personne touchée */
.room-who strong, .room-who .muted { display: block; }
.room-hint-text { color: var(--ochre); font-weight: 700; }
.room-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.room-actions .primary, .room-actions .secondary { min-height: 44px; padding: 0.4rem 1rem; }
.room-panel { position: relative; }
.room-sheet-close { display: none; }
@media (max-width: 719px) {
  .room-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0; max-height: 50vh; overflow-y: auto;
    padding: 0.9rem max(16px, env(safe-area-inset-right, 0px)) calc(0.9rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    border-width: 1px 0 0; border-radius: var(--radius-l) var(--radius-l) 0 0; box-shadow: 0 -6px 24px rgba(30, 42, 34, 0.18); animation: room-sheet-in 0.2s ease-out; }
  .room-who .avatar-l { width: 96px; height: 96px; font-size: 1.6rem; }
  .room-sheet .room-who, .room-sheet .room-hint-text, .room-sheet .room-neigh:first-of-type { padding-right: 2.6rem; }
  /* Croix collée en haut à droite quand le panneau défile (05/11/2026), sans place dans la mise en page : marges
     négatives = ancienne position (0.4rem du haut, 8px du bord), le panneau ayant 0.9rem et 16px de marge intérieure ;
     l'élément suivant remonte de l'écart de la grille (0.6rem) que la croix ajoute. */
  .room-sheet-close + * { margin-top: -0.6rem; }
  .room-sheet-close { display: block; position: sticky; top: -0.5rem; z-index: 1; margin: -0.5rem -8px -44px auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--card); font-size: 1.1rem; color: var(--muted); cursor: pointer; }
  .has-room-sheet { padding-bottom: 55vh; }
}
@keyframes room-sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Nouvelle interface (EVENTS.OPEN, ou administrateur et testeurs) : nom sur deux lignes, onglets en haut des pages,
   icône au-dessus du mot (quatre colonnes : seule façon de tenir sur un téléphone sans réduire le texte). */
.brand-two { gap: 0.55rem; }
.brand-lines { display: flex; flex-direction: column; line-height: 1.15; }
.brand-sub { font-size: 0.78rem; color: var(--muted); }
.section-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); margin: 0.2rem 0 0.4rem; }
.section-tabs a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; padding: 0.5rem 0.1rem 0.45rem; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.8rem; border-bottom: 3px solid transparent; margin-bottom: -1px; min-width: 0; }
.section-tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--moss); }
.section-tabs svg { width: 22px; height: 22px; }
.section-tabs .tab-icon { width: 22px; height: 22px; }
.section-tabs .badge-icon { width: 22px; height: 22px; fill: var(--moss-dark); }
.section-tabs .tab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-tabs .tab-dot { position: absolute; top: 0.4rem; left: calc(50% + 12px); margin: 0; }
.tab-count { position: absolute; top: 0.2rem; left: calc(50% + 7px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--ochre); color: var(--ink); font-size: 0.7rem; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--paper); }
@media (min-width: 40rem) { .section-tabs a { font-size: 0.9rem; } }

/* Évènements */
.primary.wide { display: flex; width: 100%; }
.primary svg, .secondary svg { width: 20px; height: 20px; }
.centered { text-align: center; }
.strong { font-weight: 700; }
.events h1, .event h1 { margin-top: 1.1rem; }
.event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.event-card { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.85rem; padding: 0.85rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.event-card:hover .event-title { text-decoration: underline; text-underline-offset: 0.15em; }
/* Carte : le lien du titre couvre toute la carte ; les réactions passent au-dessus (05/11/2026). */
.event-open { color: inherit; text-decoration: none; }
.event-open::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.event-open:focus-visible { outline: none; }
.event-open:focus-visible::after { outline: 2px solid var(--ochre); outline-offset: 2px; }
.event-card { cursor: pointer; }
.event-counts { display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.event-faces { display: inline-flex; }
.event-faces .avatar { width: 22px; height: 22px; font-size: 0.58rem; border: 2px solid var(--card); margin-left: -6px; }
.event-faces .avatar:first-child { margin-left: 0; }
.event-rx { position: relative; z-index: 1; margin-top: 0.35rem; cursor: auto; align-self: stretch; }
.event > .event-rx { margin: 0.2rem 0 0.8rem; }
/* Réactions et « Partager » sur la fiche (06/11/2026). */
.event-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: 0.2rem 0 0.8rem; }
.event-tools .event-rx { margin: 0; align-self: auto; }
.share { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 0.35rem; height: 26px; padding: 0 0.7rem; border: 1.5px solid var(--moss); border-radius: 999px; background: var(--card); font: inherit; font-size: 0.86rem; font-weight: 700; color: var(--moss-dark); cursor: pointer; }
.share-btn svg { width: 15px; height: 15px; }
.share-btn:hover, .share-btn:focus-visible { background: #dfe9dd; }
.share-done:not(:empty) { background: var(--ink); color: #fff; font-size: 0.82rem; border-radius: 8px; padding: 0.2rem 0.6rem; }
.rx-add { display: inline-flex; align-items: center; gap: 0.1rem; height: 26px; padding: 0 0.5rem; border: 1px dashed var(--line); border-radius: 999px; background: none; font: inherit; font-size: 0.86rem; color: var(--muted); cursor: pointer; }
.rx-add svg { width: 17px; height: 17px; }
.rx-add:hover, .rx-add:focus-visible { color: var(--moss-dark); border-color: var(--moss); }
.event-rx .rx-pick { right: auto; left: 0; bottom: calc(100% + 6px); }
.event-foot { display: flex; align-items: flex-end; gap: 0.5rem; align-self: stretch; margin-top: 0.35rem; }
.event-foot .event-rx { flex: 1; margin-top: 0; }
.event-more { position: relative; z-index: 1; margin-left: auto; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--moss); color: #fff; font-weight: 700; font-size: 0.88rem; text-decoration: none; white-space: nowrap; }
.event-more:hover, .event-more:focus-visible { background: var(--moss-dark); }
.event-card.is-past .event-more, .event-card.is-cancelled .event-more { background: none; color: var(--moss-dark); border: 1px solid var(--line); }
.event-more.play { animation: event-more-pop 1.1s ease-in-out 4; }
@keyframes event-more-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .event-more.play { animation: none; } }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start; padding: 0.45rem 0; border-radius: 10px; background: #dfe9dd; color: var(--moss-dark); font-weight: 700; line-height: 1.15; text-align: center; }
.event-date-small { font-size: 0.7rem; letter-spacing: 0.04em; }
.event-date-day { font-size: 1.35rem; }
.event-card { position: relative; }
.event-corner { position: absolute; top: 0.7rem; right: 0.75rem; display: inline-flex; }
.event-corner svg, .event-corner .type-icon { width: 16px; height: 16px; }
.event-card:has(.event-corner) .event-body { padding-right: 1.4rem; }
.event-type-private .event-corner { color: #6b4a12; }
.event-type-members .event-corner { color: #2c4a63; }
.event-type-public .event-corner { color: var(--moss-dark); }
.event-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; min-width: 0; font-size: 0.9rem; }
.event-title { font-weight: 700; font-size: 1.03rem; line-height: 1.25; }
.event-meta { color: var(--muted); }
.event-deadline { color: #6b4a12; font-weight: 700; }
.event-status { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; color: var(--moss-dark); }
.event-status svg { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.pill svg { width: 13px; height: 13px; }
.pill-type { background: #e9ece6; color: var(--moss-dark); } /* type d'évènement : une seule couleur pour les trois */
.pill-cancelled { background: #f5dcd8; color: var(--error); }
.event-card.is-cancelled { color: var(--muted); }
.event-card.is-cancelled .event-title { text-decoration: line-through; }
.event-card.is-past .event-date { background: #e7e9e4; color: var(--muted); }
.event-card.is-past { background: transparent; border-style: dashed; color: #8c968e; }
/* Une couleur par type d'évènement (maquette validée le 01/11/2026) : ocre sur invitation, bleu notre communauté,
   vert ouvert à d'autres ; ni annulé ni passé. Passés : gris clair, étiquette « Passé », type écrit en gris. */
.event-type-private { background: #f6eedd; border-color: #e2cfa6; }
.event-type-private .event-date { background: #efdfba; color: #6b4a12; }
.event-type-members { background: #e6eef4; border-color: #c3d4e2; }
.event-type-members .event-date { background: #d3e1ec; color: #2c4a63; }
.event-type-public { background: #e8f0e5; border-color: #c4d8bf; }
.event-card.is-past .event-meta, .event-card.is-past .event-title { color: #8c968e; }
.event-card.is-past .event-date { color: #8c968e; }
.event-card.is-past .pill-type { background: #eef0eb; color: #8c968e; }
.event-card.is-past .pill-type .type-icon, .event-card.is-past .pill-type svg { opacity: 0.6; }
.pill-past { background: #e4e7e1; color: #7a847c; }
.event-group { display: flex; align-items: center; gap: 0.45rem; margin: 1.5rem 0 0.1rem; }
.event-group .type-icon, .event-group svg { width: 22px; height: 22px; flex: none; }
.event-group-private svg { color: #6b4a12; }
.event-group-public svg { color: var(--moss-dark); }
.event-group + .help { margin: 0 0 0.6rem; }
.note-private { border-left-color: var(--ochre); background: #f6eedd; margin: 0.4rem 0 1rem; }
.note-private strong { display: flex; align-items: center; gap: 0.35rem; color: #6b4a12; }
.note-private svg { width: 16px; height: 16px; }
.event-link-url { color: var(--moss-dark); font-size: 0.9rem; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 0.15em; }
.event-link-outside { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
/* Questions à l'organisateur */
.qa { margin: 1.4rem 0 0.4rem; padding-top: 0.2rem; border-top: 1px solid var(--line); }
.qa-count { color: var(--muted); font-weight: 400; font-size: 0.95rem; }
.qa-title > .avatar { width: 30px; height: 30px; font-size: 0.75rem; vertical-align: middle; margin-top: -0.15em; }
.qa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
/* Arrivée par le lien d'un e-mail de question : fond vert pâle qui s'estompe (focusQuestion). */
.qa-flash { animation: qa-flash 2.4s ease-out; border-radius: 8px; }
@keyframes qa-flash { 0%, 35% { background: #dfe9dd; box-shadow: 0 0 0 6px #dfe9dd; } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
.qa-item, .qa-answer { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0.55rem; }
.qa-item > .avatar, .qa-answer > .avatar { width: 30px; height: 30px; font-size: 0.75rem; }
.qa-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5rem; margin: 0; font-size: 0.88rem; }
.qa-head a, .qa-head strong { font-weight: 700; font-size: 0.95rem; }
.qa-when { color: var(--muted); }
.qa-text { margin: 0.1rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.qa-answer { margin-top: 0.55rem; padding: 0.6rem 0.7rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.qa-orga { font-size: 0.75rem; font-weight: 700; padding: 0 0.45rem; border-radius: 999px; background: #dfe9dd; color: var(--moss-dark); }
.qa-contact { margin: 0.45rem 0 0; font-size: 0.9rem; }
.qa-reply-box .help { margin: 0; }
.qa-acts { margin-left: auto; display: inline-flex; align-items: center; gap: 0.1rem; }
.qa-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -6px 0; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.qa-icon:hover, .qa-icon:focus-visible { background: #dfe9dd; }
.qa-edit { color: var(--moss-dark); }
.qa-delete { color: var(--error); }
.qa-icon.qa-confirm { width: auto; height: auto; margin: 0; padding: 0.2rem 0; border-radius: 0; background: none; font: inherit; font-size: 0.85rem; font-weight: 700; text-decoration: underline; text-underline-offset: 0.15em; }
.qa-edited { font-style: italic; }
.qa-msg { position: relative; margin: 0 -6px; padding: 2px 6px; border-radius: 8px; transition: background 0.12s; }
/* Réactions (maquette validée le 02/11/2026, comme WhatsApp) : icône au survol à droite du message (ordinateur),
   bandeau de 7 emojis ; sur téléphone, toucher le message. */
.qa-msg.can-react:hover, .qa-msg.sel { background: rgba(63, 107, 69, 0.07); }
.rx-hover { position: absolute; top: 50%; right: -36px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: #8a948c; cursor: pointer; opacity: 0; transition: opacity 0.12s; }
.rx-hover svg { width: 22px; height: 22px; stroke-width: 1.6; }
.qa-msg:hover > .rx-hover, .qa-msg.sel > .rx-hover, .rx-hover:focus-visible { opacity: 1; }
.rx-hover:hover, .qa-msg.sel > .rx-hover { color: var(--moss-dark); }
@media (hover: none) { .rx-hover { display: none; } .qa-msg.can-react { cursor: pointer; } }
.qa-list { padding-right: 36px; }
@media (hover: none) { .qa-list { padding-right: 0; } }
.rx-pick { position: absolute; right: -36px; bottom: calc(50% + 20px); z-index: 20; display: flex; gap: 0.1rem; padding: 0.3rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 18px rgba(30, 42, 34, 0.18); }
.rx-pick-touch { position: fixed; right: auto; bottom: auto; left: 50%; transform: translateX(-50%); }
.rx-pick button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.rx-pick button:hover, .rx-pick button:focus-visible, .rx-pick button.on { background: #dfe9dd; }
.rx { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0.3rem 0 0; }
.rx-chip { display: inline-flex; align-items: center; gap: 0.3rem; height: 26px; padding: 0 0.5rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; font-size: 0.86rem; color: var(--ink); cursor: pointer; }
.rx-chip .rx-e { font-size: 0.95rem; line-height: 1; }
.rx-chip.mine { border-color: var(--moss); background: #dfe9dd; color: var(--moss-dark); font-weight: 700; }
.rx-who { position: relative; margin-top: 0.5rem; padding: 0.55rem 2.6rem 0.6rem 0.7rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: 0.9rem; }
.rx-who[hidden] { display: none; }
.rx-who ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.rx-who li { display: flex; align-items: center; gap: 0.5rem; }
.rx-who .rx-e { width: 1.4rem; text-align: center; font-size: 1.05rem; }
.rx-who .avatar { width: 24px; height: 24px; font-size: 0.62rem; }
.rx-who a { font-weight: 700; }
.rx-me { display: flex; align-items: center; gap: 0.5rem; width: calc(100% + 12px); margin: -3px -6px; padding: 3px 6px; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.rx-me:hover, .rx-me:focus-visible { background: #dfe9dd; }
.rx-who-close { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 1rem; color: var(--muted); cursor: pointer; }
.rx-who-close:hover, .rx-who-close:focus-visible { background: #dfe9dd; color: var(--ink); }
.qa-pending { display: flex; align-items: flex-start; gap: 0.4rem; margin: 0.45rem 0 0; font-size: 0.88rem; color: var(--muted); }
.qa-pending svg { flex-shrink: 0; margin-top: 0.1rem; }
.qa-edit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.qa textarea { width: 100%; min-height: 84px; padding: 0.6rem 0.75rem; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--card); font: inherit; color: var(--ink); resize: vertical; }
.qa textarea:focus-visible { outline: none; border-color: var(--ochre); }
.qa-reply-box, .qa-compose { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.6rem; }
.qa-reply-box label, .qa-compose label { font-weight: 700; }
.qa-compose { margin-top: 1.2rem; }
.qa-compose .help { margin: 0; }
.event-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; margin-top: 1rem; padding: 1.6rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); }
.event-empty p { margin: 0; }
.event-empty-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #dfe9dd; color: var(--moss-dark); }
.event-empty-icon svg { width: 32px; height: 32px; }
.event-empty-title { font-weight: 700; font-size: 1.05rem; }
.event-past { margin-top: 1.6rem; }
.event-past summary { cursor: pointer; font-weight: 700; color: var(--moss-dark); padding: 0.5rem 0; }
.event-past .event-list { margin-top: 0.5rem; }
.event .back { margin: 0.8rem 0 0; }
.event-facts { display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 1.1rem; }
.event-row { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.5rem; align-items: start; }
.event-row dt { color: var(--moss-dark); padding-top: 0.1rem; }
.event-row dt svg, .event-row dt .type-icon { width: 22px; height: 22px; }
.event-row dt .tab-icon { fill: var(--ochre); }
.event-row dd { margin: 0; }
.event-row dt .avatar-xs { width: 26px; height: 26px; margin-top: -0.15rem; }
.event-author { display: flex; align-items: center; gap: 0.35rem; }
.event-author .avatar-xs { width: 20px; height: 20px; }
.event.is-cancelled h1, .event.is-cancelled .event-facts { color: var(--muted); }
.event.is-cancelled h1 { text-decoration: line-through; }
.event-answer { margin: 1.4rem 0 1rem; display: grid; gap: 0.5rem; }
.event-answer > p { margin: 0; }
/* Réponse en cartes et visages (maquette validée le 06/11/2026). */
.answer-cards legend { font-weight: 700; margin-bottom: 0.45rem; }
.answer-cards[disabled] .choice-item { cursor: progress; }
.choice-item.is-off { opacity: 0.55; cursor: not-allowed; }
.event-links-low { margin: 1.2rem 0 0; }
.event-link-why { display: block; color: var(--ink); margin: 0.1rem 0 0.2rem; }
.poll-kinds { margin: 0.4rem 0 0.6rem; }
.reg-box { display: grid; gap: 1rem; }
.answer-state { border: 1.5px solid var(--moss); border-radius: 12px; background: #dfe9dd; padding: 0.7rem 0.9rem; display: grid; gap: 0.4rem; }
.answer-state.is-no { border-color: var(--line); background: var(--card); }
.answer-state p { margin: 0; }
.answer-state-t { display: flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--moss-dark); }
.answer-state.is-no .answer-state-t { color: var(--ink); }
.answer-state-t svg { width: 18px; height: 18px; }
.answer-state-edit { font-size: 0.9rem; color: var(--muted); }
.answer-state-edit .link { font-weight: 700; color: var(--moss-dark); }
.event-actions { margin: 0 0 1rem; }
.two-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.two-buttons .secondary, .two-buttons .danger { padding: 0.5rem 0.6rem; }
.danger.solid { background: var(--error); color: #fff; }
.danger-link { color: var(--error); }
.confirm-box { margin-top: 0.75rem; padding: 0.9rem; background: var(--card); border: 2px solid var(--error); border-radius: 12px; }
.confirm-box .invite-actions .danger, .confirm-box .invite-actions .secondary { min-height: 44px; padding: 0.4rem 1rem; }
/* Annulation encore réversible (maquette validée le 03/11/2026) : sous le bandeau rouge, pour l'organisateur. */
.undo-box { margin: 0.6rem 0 1rem; padding: 0.8rem 0.9rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.undo-box .qa-pending { margin: 0 0 0.6rem; font-size: 0.92rem; }
.undo-box button { width: 100%; }
.note-done { margin: 0.4rem 0 1rem; }
.event-links { display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 1rem; }
.event-link { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--moss); border-radius: var(--radius-s); color: var(--ink); text-decoration: none; }
.event-link svg { width: 24px; height: 24px; flex: none; color: var(--moss-dark); }
.event-link > span { display: flex; flex-direction: column; }
.event-desc { white-space: pre-line; overflow-wrap: anywhere; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.event-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.event-people a { font-weight: 700; }
.event-people li { display: flex; align-items: center; gap: 0.5rem; }
.event-people .avatar-xs { width: 28px; height: 28px; font-size: 0.62rem; overflow: hidden; }
.event-people li[hidden] { display: none; }
.event-people-more { margin: 0.5rem 0 0; }
.event-going { margin-bottom: 1.2rem; }
@media (min-width: 561px) { .event-people-2 { display: block; columns: 2; column-gap: 3rem; column-rule: 1px solid var(--line); } .event-people-2 li { break-inside: avoid; margin-bottom: 0.3rem; } }
/* Clôture des inscriptions (organisateur, maquette validée le 07/11/2026) */
.reg-box { margin-top: 0.9rem; padding: 0.8rem 0.9rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 0.5rem; }
.reg-box p { margin: 0; }
.reg-state { background: #e1ebdf; border: 1px solid #b9d0b6; border-radius: 10px; padding: 0.6rem 0.75rem; }
.reg-confirm { background: #f6e1dc; border-radius: 10px; padding: 0.7rem 0.8rem; display: flex; flex-direction: column; gap: 0.6rem; }
.reg-confirm[hidden] { display: none; }
.reg-confirm-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* « Échanger avec les intéressé·e·s » (organisateur, maquette validée le 07/11/2026) */
.event-contacts { margin-top: 1rem; padding: 0.8rem 0.9rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 0.7rem; }
.event-contacts h3 { margin: 0; }
.contact-part { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-part + .contact-part { border-top: 1px solid var(--line); padding-top: 0.7rem; }
.contact-part p { margin: 0; }
.contact-row-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; }
.contact-copy { gap: 0.5rem; }
.contact-copy svg { width: 20px; height: 20px; flex: none; }
.contact-copy.done { background: #e1ebdf; }
.contact-ways { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }
.contact-ways a { font-weight: 700; }
.phone-copy { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--moss-dark); cursor: pointer; }
.phone-copy svg { width: 16px; height: 16px; }
.event-people-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 0; align-items: stretch; margin-top: 1.3rem; }
.event-people-cols > * { min-width: 0; }
.event-people-cols h2 { margin-top: 0; }
.only-you-col h3 { margin: 0.8rem 0 0.3rem; }
.only-you-col { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.only-you-col .only-you-label { margin: -0.2rem 0 0.5rem; }
@media (max-width: 560px) { .event-people-cols { grid-template-columns: 1fr; } .only-you-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; } }
.only-you { margin-top: 1.3rem; padding: 0.8rem 0.9rem; background: #e9ece6; border-radius: 12px; }
.only-you h3 { margin: 0.6rem 0 0.3rem; }
.only-you-label { margin: 0; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.event-rule { margin-top: 1.8rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
/* Formulaire */
.choice-field { border: 0; padding: 0; margin: 0; }
.choice-field legend { font-weight: 700; margin-bottom: 0.45rem; padding: 0; }
.choice { display: flex; flex-direction: column; gap: 0.5rem; }
.choice-item { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.75rem 0.85rem; border: 2px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.choice-item:has(input:checked) { border-color: var(--moss); background: #dfe9dd; }
/* « Pour qui ? » du formulaire : la couleur de chaque type, comme dans la liste (maquette validée le 01/11/2026) ;
   coché : bordure foncée du type. */
.choice-item:has(input[name="type"][value="private"]) { background: #f6eedd; border-color: #e2cfa6; }
.choice-item:has(input[name="type"][value="members"]) { background: #e6eef4; border-color: #c3d4e2; }
.choice-item:has(input[name="type"][value="public"]) { background: #e8f0e5; border-color: #c4d8bf; }
.choice-item:has(input[name="type"][value="private"]:checked) { border-color: #6b4a12; }
.choice-item:has(input[name="type"][value="members"]:checked) { border-color: #2c4a63; }
.choice-item:has(input[name="type"][value="public"]:checked) { border-color: var(--moss-dark); }
.choice-item input[name="type"][value="private"] { accent-color: #6b4a12; }
.choice-item input[name="type"][value="members"] { accent-color: #2c4a63; }
.choice-item:has(input[name="type"][value="private"]) .choice-title .type-icon, .choice-item:has(input[name="type"][value="private"]) .choice-title svg { color: #6b4a12; }
.choice-item:has(input[name="type"][value="members"]) .choice-title .type-icon, .choice-item:has(input[name="type"][value="members"]) .choice-title svg { color: #2c4a63; }
.choice-item input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: var(--moss); flex: none; }
.choice-item > span { display: flex; flex-direction: column; gap: 0.1rem; }
.choice-title { display: flex; align-items: center; gap: 0.4rem; }
.choice-title svg, .choice-title .type-icon { flex: none; width: 18px; height: 18px; color: var(--moss-dark); }
.pill .type-icon { width: 13px; height: 13px; }
.pref-lang .choice-2 { max-width: 30rem; }
.pref-lang .choice-item input[type="radio"][name] { width: 1.2rem; height: 1.2rem; padding: 0; border: 0; min-height: 0; margin: 0.15rem 0 0; background: none; }
.datepick-button { display: block; width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--card); font: inherit; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.datepick-button.is-empty { font-weight: 400; color: var(--muted); }
.datepick-button[aria-expanded="true"] { border-color: var(--moss); }
.datepick-button:focus-visible { outline: none; border-color: var(--ochre); }
.datepick-panel { margin-top: 0.4rem; padding: 0.6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.datepick-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.datepick-month { margin: 0; font-weight: 700; text-transform: capitalize; }
.datepick-nav { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--moss-dark); font-size: 1.5rem; cursor: pointer; }
.datepick-nav:disabled { visibility: hidden; }
.datepick-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; margin-top: 0.3rem; }
.datepick-dow { text-align: center; font-size: 0.78rem; color: var(--muted); padding-bottom: 0.2rem; }
.datepick-day { height: 44px; border: 0; border-radius: 50%; background: transparent; font: inherit; color: var(--ink); cursor: pointer; }
.datepick-day:disabled { color: #b4bcb2; cursor: default; }
.datepick-day:focus-visible { outline: 3px solid var(--ochre); outline-offset: -3px; }
.datepick-day.is-between { background: #dfe9dd; border-radius: 0; }
.datepick-day.is-start { border-radius: 50% 0 0 50%; }
.datepick-day.is-end { border-radius: 0 50% 50% 0; }
.datepick-day.is-chosen { background: var(--moss); color: #fff; font-weight: 700; }
.datepick-hint { margin: 0.5rem 0 0; }
.datepick-panel .link { margin-top: 0.4rem; }
.event-form .link { align-self: flex-start; }
.desc-help { display: flex; justify-content: space-between; gap: 0.6rem; }
.desc-help > span:last-child { flex: none; }
.invite-box { padding: 0.85rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.invite-box input[type="search"] { width: 100%; }
.invite-matches { list-style: none; margin: 0; padding: 0; }
.invite-match { width: 100%; text-align: left; min-height: 44px; padding: 0.4rem 0.5rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: inherit; color: var(--moss-dark); font-weight: 700; cursor: pointer; }
.chips { list-style: none; margin: 0.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.1rem 0.2rem 0.1rem 0.75rem; border-radius: 999px; background: #dfe9dd; font-size: 0.9rem; font-weight: 700; }
.chip button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--moss-dark); cursor: pointer; font-size: 0.9rem; }
.rule-box { padding: 0.85rem; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--moss); border-radius: var(--radius-s); }
.rule-box p { font-size: 0.95rem; }
.draft-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.draft-status { margin: 0; font-size: 0.88rem; color: var(--moss-dark); }
.only-you .help { margin-top: 0.6rem; }

/* Esprits malicieux : page du cercle (liste des animations, « Rejouer ») et réglage « Surprises chamaniques »
   (« Ma fiche » et page du cercle : libellé et aide à gauche, interrupteur à droite). */
.delights { list-style: none; padding: 0; margin: 0 0 1rem; }
.delight { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0.3rem 0.85rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.delight-icon { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #fff8e8, #f3d58a 70%, #e4b85a); box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.6), 0 0 0 1px #ecd9ae; }
.delight-icon img { width: 66%; height: 66%; object-fit: contain; }
.delight-text { margin: 0; }
.delight .secondary { grid-column: 2; justify-self: start; min-height: 40px; padding: 0.4rem 1rem; }
/* Réactions et commentaires sous chaque Esprit (maquette validée le 20/11/2026) : rangée des réactions et lien
   « 💬 2 commentaires » qui déplie le fil ; styles des questions d'un évènement (.qa-*) pour les commentaires. */
.delight-thread { grid-column: 2; min-width: 0; margin: 0.2rem 0 0; padding: 0; border: 0; }
.delight-thread.qa { margin: 0.2rem 0 0; padding: 0; border: 0; }
.dl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem; }
.dl-bar .event-rx { margin: 0; }
.dl-bar .rx { margin: 0; }
.dl-toggle { margin-left: auto; padding: 0.15rem 0; border: 0; background: none; font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--moss-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.delight-thread .qa-list { margin-top: 0.9rem; padding-right: 0; }
.delight-thread .xl8-row { margin: 0.25rem 0 0; }
.delight-thread .qa-compose { margin-top: 1rem; }
.delight-thread .qa-compose textarea { min-height: 64px; }
.delight-thread .qa-item .event-rx { margin-top: 0.3rem; }
@media (max-width: 30rem) { .delight-thread { grid-column: 1 / -1; } }
/* « Souffle une idée aux Esprits » : feuilles qui passent sur le titre, souffles à sa droite, texte emporté à l'envoi. */
.dl-idea { display: flex; flex-direction: column; gap: 0.5rem; margin: 1.2rem 0 1.4rem; }
.dl-idea p { margin: 0; }
.dl-idea .help { margin-top: 0.3rem; }
.dl-idea .help a { font-weight: 700; }
.dl-idea textarea { width: 100%; min-height: 84px; padding: 0.6rem 0.75rem; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--card); font: inherit; color: var(--ink); resize: vertical; line-height: 1.45; }
.dl-idea textarea:focus-visible { outline: none; border-color: var(--ochre); }
.dl-idea-thanks { font-weight: 700; color: var(--moss-dark); }
.dl-idea-title { position: relative; display: flex; align-items: center; gap: 0.4rem; }
.dl-idea-title > span:first-child { flex: none; }
.dl-swirls { position: absolute; left: 0; top: 50%; width: 62px; height: 44px; margin-top: -22px; pointer-events: none; }
.dl-swirls svg { display: block; width: 62px; height: 44px; overflow: visible; }
.dl-swirls path { fill: none; stroke: #9fbccc; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; animation: dl-swirl 3s ease-in-out infinite; }
.dl-swirls path:nth-child(2) { stroke: #a9c3ab; animation-delay: 0.3s; }
.dl-swirls path:nth-child(3) { stroke-width: 1; animation-delay: 0.15s; }
.dl-swirls path:nth-child(4) { stroke: #a9c3ab; stroke-width: 1; animation-delay: 0.5s; }
@keyframes dl-swirl { 0% { stroke-dashoffset: 1; opacity: 0; transform: translateX(-3px); } 10% { opacity: 0.9; } 50% { stroke-dashoffset: 0; opacity: 0.9; transform: translateX(0); } 65% { stroke-dashoffset: 0; opacity: 0.9; } 90%, 100% { stroke-dashoffset: 0; opacity: 0; transform: translateX(10px); } }
.dl-leaves { position: absolute; left: -10px; right: -6px; top: 50%; height: 44px; margin-top: -22px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to right, #000 75%, transparent); mask-image: linear-gradient(to right, #000 75%, transparent); }
.dl-leaves svg { display: block; width: 100%; height: 44px; overflow: visible; }
.dl-leaf { offset-rotate: auto; animation: dl-fly 12s cubic-bezier(0.35, 0, 0.7, 0.6) infinite; }
.dl-leaf > g { animation: dl-flutter 1.1s ease-in-out infinite; }
.dl-leaf:nth-of-type(even) > g { animation-duration: 0.85s; animation-direction: reverse; }
@keyframes dl-fly { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes dl-flutter { 0%, 100% { transform: rotate(-25deg) scaleY(1); } 50% { transform: rotate(35deg) scaleY(0.35); } }
.dl-blow { position: relative; }
.dl-ghost { position: absolute; inset: 0; padding: 0.6rem 0.75rem; border: 2px solid transparent; white-space: pre-wrap; overflow: hidden; line-height: 1.45; pointer-events: none; animation: dl-away 1.2s 0.15s ease-in forwards; }
@keyframes dl-away { to { transform: translate(55%, -35%) skewX(-18deg) scale(0.9); opacity: 0; filter: blur(4px); letter-spacing: 0.35em; } }
.dl-gusts { position: absolute; inset: 0; pointer-events: none; }
.dl-gusts svg { width: 100%; height: 100%; overflow: visible; }
.dl-gusts path { fill: none; stroke: #8fb2c9; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 60 240; stroke-dashoffset: 60; opacity: 0; animation: dl-gust 1.1s ease-out forwards; }
.dl-gusts path:nth-child(2) { animation-delay: 0.12s; stroke: #b9cdb5; }
.dl-gusts path:nth-child(3) { animation-delay: 0.24s; }
@keyframes dl-gust { 10% { opacity: 0.9; } 100% { stroke-dashoffset: -240; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .dl-swirls path { animation: none; stroke-dashoffset: 0; opacity: 0.75; }
  .dl-leaves { display: none; }
}
.delights-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.9rem; align-items: start; }
.delights-row .help { margin-top: 0.3rem; }
.delights-field .ui-switch { min-height: 0; margin-top: 0.1rem; }
/* L'Esprit du feu (passageFire(), app.js ; maquette ESPRITS-feu-maquette.html validée le 20/11/2026). Animations en
   !important : la règle « moins de mouvement » coupe toute animation, mais « Rejouer » joue quand même ce passage (le
   passage automatique, lui, ne se lance pas dans ce cas). Durées et délais par élément posés en ligne par le script. */
.fire-layer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 40; transition: opacity 0.9s; }
.fire-layer.out { opacity: 0; }
/* 1. L'hiver : voile bleu froid et flocons. */
.fire-cold { position: absolute; inset: 0; background: linear-gradient(#7fa6c9, #b9d2e6); opacity: 0; animation: fire-cold 3.8s ease-in-out forwards !important; }
@keyframes fire-cold { 10% { opacity: 0.5; } 58% { opacity: 0.5; } 100% { opacity: 0; } }
/* Neige sur trois plans : poussière lointaine, flocons doux, quelques cristaux à six branches tout près. Chaque flocon
   tombe sur toute la hauteur en se balançant ; l'écran en est déjà plein au départ ; tout fond quand la chaleur arrive. */
.fire-snow { position: absolute; inset: 0; opacity: 0; animation: fire-snow 3.6s ease-in-out forwards !important; }
@keyframes fire-snow { 8% { opacity: 1; } 62% { opacity: 1; } 100% { opacity: 0; } }
.fire-flake { position: absolute; top: -6%; animation: fire-fall linear infinite !important; }
.fire-flake i { display: block; animation: fire-drift ease-in-out infinite alternate !important; }
.fire-flake.far i { width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: 0.75; filter: blur(0.4px); }
.fire-flake.mid i { width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, #fff 35%, rgba(255,255,255,.55) 70%, transparent); filter: drop-shadow(0 0 1.5px rgba(90,130,170,.55)); }
.fire-flake.near svg { display: block; width: var(--s); height: var(--s); overflow: visible; filter: drop-shadow(0 0 2px rgba(80,120,165,.6)); animation: fire-spin linear infinite !important; }
.fire-flake.near path { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; }
@keyframes fire-fall { to { transform: translate(var(--wind), 112vh); } }
@keyframes fire-drift { from { transform: translateX(calc(var(--sw) * -1)); } to { transform: translateX(var(--sw)); } }
@keyframes fire-spin { to { transform: rotate(var(--rot)); } }
/* 2. Les braises montent du bas en zigzaguant et convergent vers le centre de l'écran : ce sont elles qui font
   naître l'Esprit du feu. */
.fire-ember { position: absolute; bottom: -3%; opacity: 0; animation: fire-gather ease-in forwards !important; }
.fire-ember i { display: block; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, #fff3c4 0, #ffb347 45%, #ff6a1a 100%); box-shadow: 0 0 8px 3px rgba(255,130,40,.65); animation: fire-sway 0.9s ease-in-out infinite alternate !important; }
@keyframes fire-gather { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 10% { opacity: 1; } 45% { transform: translate(calc(var(--tx) * 0.25), -26vh) scale(1); } 92% { opacity: 1; } 100% { transform: translate(var(--tx), -53vh) scale(0.3); opacity: 0; } }
@keyframes fire-sway { from { transform: translateX(-9px); } to { transform: translateX(9px); } }
/* 3. La flamme monte du bas de l'écran en crépitant et se pose au centre, là où les braises se rejoignent ; lueur dorée. */
.fire-warm { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,196,96,.55) 0, rgba(255,150,50,.28) 28%, rgba(255,140,40,.1) 55%, transparent 78%); opacity: 0; animation: fire-warm 1.6s 2.5s ease-out forwards, fire-glow 2.4s 4.1s ease-in-out infinite alternate !important; }
@keyframes fire-warm { to { opacity: 1; } }
@keyframes fire-glow { from { opacity: 1; } to { opacity: 0.78; } }
.fire-rise { position: absolute; left: 50%; top: 100%; width: 0; height: 0; opacity: 0; animation: fire-flame-rise 1.6s 2.2s cubic-bezier(0.2, 0.7, 0.3, 1) forwards !important; }
@keyframes fire-flame-rise { from { opacity: 1; transform: translateY(70px); } to { opacity: 1; transform: translateY(-50vh); } }
/* Étincelles qui crépitent : elles sortent de la pointe de la flamme, montent en s'écartant et s'éteignent, sans arrêt. */
.fire-crackle { position: absolute; left: 0; top: -52px; width: 0; height: 0; opacity: 0; animation: fire-crackle ease-out infinite !important; }
.fire-crackle i { display: block; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%; background: radial-gradient(circle, #fff3c4 0, #ffb347 50%, #ff6a1a 100%); box-shadow: 0 0 6px 2px rgba(255,130,40,.7); }
@keyframes fire-crackle { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(var(--cx), var(--cy)) scale(0.2); opacity: 0; } }
.fire-seat { animation: fire-flame-seat 0.9s 4.3s ease-in-out forwards !important; }
@keyframes fire-flame-seat { to { transform: translateY(-118px) scale(0.62); } }
.fire-flame { position: absolute; left: -48px; top: -70px; width: 96px; height: 120px; overflow: visible; filter: drop-shadow(0 0 14px rgba(255,140,40,.75)); }
.fire-flame g { transform-origin: 48px 112px; animation: fire-flick 0.55s ease-in-out infinite alternate !important; }
.fire-flame g:nth-child(2) { animation-duration: 0.42s !important; animation-direction: alternate-reverse !important; }
.fire-flame g:nth-child(3) { animation-duration: 0.33s !important; }
@keyframes fire-flick { from { transform: scale(1, 1) skewX(-3deg); } to { transform: scale(0.94, 1.07) skewX(4deg); } }
/* 4. Les facettes : chaque éclat jaillit de la flamme comme une étincelle, s'écarte, puis devient une facette qui scintille. */
.fire-facets { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: fire-turn 40s linear infinite !important; }
@keyframes fire-turn { to { transform: rotate(360deg); } }
.fire-facet { position: absolute; left: 0; top: 0; transform: rotate(var(--a)) translateX(0); animation: fire-facet-fly 0.8s cubic-bezier(0.15, 0.7, 0.3, 1) forwards !important; animation-delay: var(--d) !important; }
@keyframes fire-facet-fly { to { transform: rotate(var(--a)) translateX(var(--r)); } }
.fire-facet i { display: block; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); transform: rotate(45deg) scale(0.45); border-radius: 50%; background: radial-gradient(circle, #fff3c4 0, #ffb347 45%, #ff6a1a 100%); box-shadow: 0 0 8px 3px rgba(255,130,40,.7); opacity: 0; animation: fire-facet-on 0.8s ease-out forwards, fire-twinkle 1.8s ease-in-out infinite alternate !important; animation-delay: var(--d), calc(var(--d) + 0.8s) !important; }
@keyframes fire-facet-on { 0% { opacity: 0; } 10% { opacity: 1; transform: rotate(45deg) scale(0.45); border-radius: 50%; } 70% { border-radius: 50%; transform: rotate(45deg) scale(0.5); background: radial-gradient(circle, #fff3c4 0, #ffb347 45%, #ff6a1a 100%); }
  100% { opacity: 1; transform: rotate(45deg) scale(1); border-radius: 0; background: linear-gradient(135deg, #fff 0, #fff6d0 40%, #ffc35a 100%); box-shadow: 0 0 12px 4px rgba(255,200,100,.9); } }
@keyframes fire-twinkle { from { opacity: 1; } to { opacity: 0.6; } }
/* 5. Le disque et la phrase à la plume (comme la bulle posée des éléphants). */
.fire-disc { position: absolute; left: 50%; top: 50%; width: min(84vw, 340px); height: min(84vw, 340px); margin: calc(min(84vw, 340px) / -2) 0 0 calc(min(84vw, 340px) / -2); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, rgba(255,250,232,.96), rgba(255,238,200,.93)); box-shadow: 0 0 46px 14px rgba(255,160,60,.45), inset 0 0 18px rgba(255,190,110,.5); transform: scale(0); opacity: 0; animation: fire-disc 0.9s 4.3s cubic-bezier(0.2, 0.8, 0.3, 1.1) forwards !important; }
@keyframes fire-disc { to { transform: scale(1); opacity: 1; } }
.fire-disc p { margin: 2.2rem 0 0; padding: 0 2rem; text-align: center; font-family: "La Belle Aurore", cursive; font-size: 1.4rem; line-height: 1.45; color: #5a2e0c; opacity: 0; animation: fire-warm 1.2s 5.1s ease-in forwards !important; text-wrap: balance; }
.fire-disc { align-content: center; }
.fire-disc { pointer-events: auto; cursor: pointer; align-content: center; }
.fire-disc .fire-by { margin: 0.7rem 0 0 !important; padding: 0 !important; display: flex; align-items: center; justify-content: center; gap: 0.4rem; font-family: inherit !important; font-size: 0.82rem !important; line-height: 1.3 !important; color: #7a5a3a !important; animation-delay: 6.2s !important; }
.fire-by a { color: #5a2e0c; font-weight: 700; }
.fire-by .avatar { width: 22px; height: 22px; font-size: 0.58rem; flex: none; }
/* Pastille de l'Esprit du feu, page du cercle : la flamme danse et de petites flammèches montent au-dessus. */
.delight-flame { position: relative; overflow: visible; }
.delight-flame svg { width: 50%; height: 64%; overflow: visible; filter: drop-shadow(0 0 3px rgba(255, 140, 40, 0.6)); }
.delight-flame g { transform-origin: 48px 112px; animation: fire-flick 0.55s ease-in-out infinite alternate; }
.delight-flame g:nth-child(2) { animation-duration: 0.42s; animation-direction: alternate-reverse; }
.delight-flame g:nth-child(3) { animation-duration: 0.33s; }
.delight-flame i { position: absolute; left: 50%; top: 20%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; background: radial-gradient(circle, #fff3c4 0, #ffb347 50%, #ff6a1a 100%); box-shadow: 0 0 3px 1px rgba(255, 130, 40, 0.7); opacity: 0; animation: fire-crackle ease-out infinite; }
.delight-by { grid-column: 2; margin: 0; display: flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--muted); }
.delight-by a { font-weight: 700; }
.delight-by .avatar { width: 24px; height: 24px; font-size: 0.62rem; flex: none; }
/* Le passage d'un Esprit (passage(), app.js) : la neuvième bulle ne monte pas jusqu'en haut ; elle se pose au milieu de
   l'écran, grandit en disque doré où l'éléphant s'efface et la phrase apparaît, puis éclate en gouttes (burst). Elle
   reçoit les gestes (un toucher l'éclate), le calque autour non. */
.spirit-bubble { position: absolute; left: 50%; top: 100%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; opacity: 0; pointer-events: auto; cursor: pointer;
  background: rgba(255, 246, 216, 0.3); box-shadow: 0 0 13px rgba(243, 196, 106, 0.7); animation: spirit-rise 3.4s ease-in-out forwards;
  transition: width 1.4s ease-in-out, height 1.4s ease-in-out, margin 1.4s ease-in-out, background 1.4s ease-in-out, opacity 0.3s ease-out; }
.spirit-bubble::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.6); pointer-events: none;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5) 0 5%, rgba(255, 246, 216, 0.22) 16%, rgba(243, 196, 106, 0.16) 45%, rgba(243, 196, 106, 0.5) 78%, rgba(192, 138, 46, 0.8) 100%); }
.spirit-bubble img { position: absolute; width: 68%; height: 68%; object-fit: contain; opacity: 0.85; transition: opacity 0.8s; animation: celebrate-bob 1.6s ease-in-out infinite alternate; }
.spirit-bubble p { position: relative; z-index: 1; margin: 0; padding: 0 2rem; text-align: center; font-family: "La Belle Aurore", cursive; font-size: 1.4rem; line-height: 1.45; color: #4a3414; opacity: 0; transition: opacity 1.2s ease-in 0.7s; text-wrap: balance; }
.spirit-bubble.settled { width: min(84vw, 340px); height: min(84vw, 340px); margin: calc(min(84vw, 340px) / -2) 0 0 calc(min(84vw, 340px) / -2); animation: none; opacity: 1; transform: translate(0, calc(-50vh - 32px)); background: rgba(255, 246, 216, 0.88); }
.spirit-bubble.settled img { opacity: 0; }
.spirit-bubble.settled p { opacity: 1; }
.spirit-bubble.burst { opacity: 0 !important; }
@keyframes spirit-rise {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  10% { opacity: 1; transform: translate(0, -8vh) scale(0.6); }
  45% { transform: translate(12px, -28vh) scale(0.9); }
  100% { opacity: 1; transform: translate(0, calc(-50vh - 32px)) scale(1); }
}
/* « Moins de mouvement » demandé au système : la règle générale (plus haut) coupe toute animation ; le passage lancé par
   « Rejouer » (calque .forced, app.js) la rétablit, puisque la personne l'a demandé. Les passages automatiques ne se
   jouent pas du tout dans ce cas. */
@media (prefers-reduced-motion: reduce) {
  .celebrate-bubbles.forced .celebrate-bubble { animation: celebrate-float var(--d) ease-in-out var(--delay) forwards !important; }
  .celebrate-bubbles.forced .celebrate-bubble.burst { transition: opacity 0.14s ease-out !important; }
  .celebrate-bubbles.forced .celebrate-bubble img, .celebrate-bubbles.forced .spirit-bubble img { animation: celebrate-bob 1.6s ease-in-out infinite alternate !important; }
  .celebrate-bubbles.forced .celebrate-drop { animation: celebrate-drop 0.7s ease-out forwards !important; }
  .celebrate-bubbles.forced .spirit-bubble { animation: spirit-rise 3.4s ease-in-out forwards !important; transition: width 1.4s ease-in-out, height 1.4s ease-in-out, margin 1.4s ease-in-out, background 1.4s ease-in-out, opacity 0.3s ease-out !important; }
  .celebrate-bubbles.forced .spirit-bubble img { transition: opacity 0.8s !important; }
  .celebrate-bubbles.forced .spirit-bubble p { transition: opacity 1.2s ease-in 0.7s !important; }
  .celebrate-bubbles.forced .spirit-bubble.settled { animation: none !important; }
}

/* Mises en avant (app.js showSpotlight) : calque qui bloque la page, anneau bleu dont l'ombre géante assombrit tout le
   reste, trait et point, bulle bleue ; tout en position fixe, replacé au défilement et au redimensionnement. */
:root { --spot: #1f63b8; }
.hints { list-style: none; padding: 0; }
.hints li { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0 0 0.5rem; }
.hints .ui-switch { min-height: 1.5rem; margin-top: 0.1rem; }
.spot-blocker { position: fixed; inset: 0; z-index: 9998; }
.spot-ring { position: fixed; z-index: 9999; border-radius: 999px; pointer-events: none; box-shadow: 0 0 0 8px var(--spot), 0 0 0 9999px rgba(30, 42, 34, 0.62); }
.spot-line { position: fixed; z-index: 9999; width: 2px; background: var(--spot); pointer-events: none; }
.spot-dot { position: fixed; z-index: 9999; width: 10px; height: 10px; border-radius: 50%; background: var(--spot); pointer-events: none; }
.spot-bubble { position: fixed; z-index: 9999; margin: 0; text-align: left; padding: 14px 46px 14px 16px; border-radius: 14px; background: var(--spot); color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.45; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); pointer-events: none; }
/* Petite croix de la bulle (08/11/2026) : ferme le conseil sans le suivre ; la bulle laisse passer les clics, pas la croix. */
.spot-x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; opacity: 0.85; cursor: pointer; pointer-events: auto; }
.spot-x:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.spot-x:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; opacity: 1; }
.spot-x svg { width: 16px; height: 16px; stroke-width: 2.6; }

/* Mon compte, « Sur le plan » : voisins avec photo (s'ils en ont une) et lien vers leur fiche. */
.neigh-link { display: inline-flex; align-items: center; gap: 0.35rem; vertical-align: middle; font-weight: 700; }
.neigh-link .avatar-xs { width: 28px; height: 28px; }

/* Sondage de l'évènement, copié de WhatsApp (maquette validée le 02/11/2026) : carte, options à toucher, détails. */
.poll-sec { margin: 1.4rem 0 0.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.wpoll { max-width: 26rem; margin: 0 0 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wpoll-in { padding: 0.8rem 0.9rem 0.5rem; }
.wpoll-by { margin: 0 0 0.15rem; font-size: 0.82rem; font-weight: 600; color: #8a6d1f; }
.wpoll-q { margin: 0 0 0.3rem; font-size: 1.05rem; }
.wpoll-hint { margin: 0 0 0.6rem; font-size: 0.8rem; color: var(--muted); }
.wopt { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 0.55rem; align-items: center; width: 100%; padding: 0.35rem 0 0.45rem;
  border: 0; background: none; font: inherit; color: inherit; text-align: left; }
button.wopt { cursor: pointer; }
button.wopt:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; border-radius: 6px; }
.wopt.is-busy { opacity: 0.6; }
.wopt-ring { width: 20px; height: 20px; border: 2px solid #8a958c; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.wopt-ring svg { width: 14px; height: 14px; }
.wopt.on .wopt-ring { background: var(--moss); border-color: var(--moss); }
.wopt-n { display: flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; }
.wopt-faces { display: flex; }
.wopt-faces .avatar { width: 18px; height: 18px; font-size: 0.5rem; border: 1.5px solid var(--card); margin-left: -6px; }
.wopt-faces .avatar:first-child { margin-left: 0; }
.wopt-track { grid-column: 2 / 4; height: 6px; margin-top: 0.35rem; border-radius: 3px; background: #e3e8df; overflow: hidden; }
.wopt-track > span { display: block; height: 100%; border-radius: 3px; background: var(--moss); transition: width 0.25s; }
.wpoll-see { display: block; width: 100%; padding: 0.7rem; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-weight: 600; color: var(--moss); cursor: pointer; }
.sheet-bg { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; background: rgba(0, 0, 0, 0.35); }
.sheet { width: clamp(420px, 42vw, 640px); max-width: 100%; height: 100%; overflow-y: auto; padding-bottom: 30px; background: var(--paper); color: var(--ink); box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15); }
/* En-tête (et sa croix) collé en haut quand la liste des votants défile (05/11/2026 : sur téléphone, le panneau prend
   toute la largeur, sans « à côté » où toucher pour le fermer). */
.sheet-head { position: sticky; top: 0; z-index: 1; background: var(--paper); display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); font-weight: 600; }
.sheet-close { min-width: 36px; min-height: 36px; border: 0; background: none; font-size: 1.2rem; color: var(--ink); cursor: pointer; }
.sheet-body { padding: 1rem 1.1rem; }
.sheet-body h3 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.sheet-voters { margin: 0 0 1.2rem; font-size: 0.88rem; }
.sopt { margin: 0 0 1.3rem; }
.sopt-h { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin: 0 0 0.5rem; }
.sopt-h > span:first-child { flex: 1; min-width: 0; }
.badge-v { flex: none; white-space: nowrap; padding: 0.1rem 0.45rem; border-radius: 6px; background: #e3e8df; font-size: 0.78rem; font-weight: 600; }
.badge-v.is-top { background: #dfe9dd; color: var(--moss-dark); }
.voters { list-style: none; margin: 0; padding: 0; }
.voters li { display: grid; grid-template-columns: 40px 1fr; gap: 0.7rem; align-items: center; padding: 0.4rem 0; }
.voters li[hidden] { display: none; }
.voters .avatar { width: 40px; height: 40px; font-size: 0.85rem; }
.voters a, .voters strong { font-weight: 600; color: var(--ink); }
.voters small { display: block; color: var(--muted); }
.sheet-more { padding: 0.3rem 0 0 52px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--moss); cursor: pointer; }
.w-tel { display: none; }
@media (max-width: 600px) {
  .w-pc { display: none !important; } .w-tel { display: inline; } p.w-tel { display: block; }
  .sheet-close { font-size: 1.4rem; }
  .sheet-body { padding: 0; }
  .sheet-body h3 { padding: 1rem 1.1rem 0; }
  .sheet-voters { margin: 0; padding: 0 1.1rem 1rem; border-bottom: 8px solid #e3e8df; }
  .sopt { margin: 0; padding: 0.9rem 1.1rem; border-bottom: 8px solid #e3e8df; }
  .sopt-h { margin: 0; }
  .sopt-n { margin: 0.1rem 0 0.4rem; color: var(--muted); font-size: 0.9rem; }
}
/* Formulaire : bloc « Sondage » (version D) : deux boutons, puis la question (une réponse) et les lignes. */
.poll-field.wp-block { padding: 0.9rem 1rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.poll-field > .label { margin: 0 0 0.15rem; font-weight: 700; }
.poll-help { margin: 0 0 0.6rem; }
.poll-mail-note { margin: 0 0 0.6rem; font-size: 0.92rem; }
.wpoll-pending { margin: 0; padding: 0 0.9rem 0.7rem; }
.poll-kind .seg-item { padding: 0.3rem 0.6rem; line-height: 1.25; text-align: center; }
.poll-rm-line { margin: 0.6rem 0 0; }
.wp-h { margin: 0.9rem 0 0.35rem; font-weight: 700; font-size: 0.95rem; }
.wp-in { margin: 0 0 0.5rem; }
.wp-row { display: flex; align-items: center; gap: 0.4rem; }
.wp-row input { flex: 1; min-width: 0; }
.wp-del { flex: none; width: 40px; height: 40px; }
.wp-del.is-off { visibility: hidden; }
.wp-del { border: 0; border-radius: 50%; background: none; font-size: 1.1rem; color: var(--muted); cursor: pointer; }
.wp-del:hover, .wp-del:focus-visible { background: #e3e8df; color: var(--ink); }
.wp-row + .wp-count { margin-right: 46px; }
.wp-count { display: block; margin-top: 0.15rem; text-align: right; font-size: 0.78rem; color: var(--muted); }
.poll-locked { padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); }
.poll-locked .strong { margin: 0 0 0.3rem; }
.poll-locked ul { margin: 0 0 0.5rem; padding-left: 1.2rem; }
.hints .hint-rank { min-width: 1.4rem; font-weight: 700; }
.hints .hint-order { display: inline-flex; gap: 0.2rem; }
.hints .hint-order button { min-height: 0; padding: 0 0.3rem; font-size: 1rem; text-decoration: none; }
.hints .hint-order button:disabled { opacity: 0.3; cursor: default; }
.hints .hint-rules { display: block; margin-top: 0.15rem; font-size: 0.85rem; color: var(--muted); }
.hints .hint-rule { display: block; }
.hints .hint-rule-name { font-weight: 600; }
/* Journal des réglages (maquette validée le 08/11/2026) : dernier changement sous chaque interrupteur et sous chaque
   liste ; System › Settings history : filtre par sujet, une ligne par changement (date à gauche, empilée sur téléphone). */
.hints .hint-last, .hint-order-last { display: block; margin-top: 0.1rem; font-size: 0.8rem; color: var(--muted); }
.hint-order-last { margin: -0.2rem 0 0.8rem; }
.sh-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.6rem; }
.sh-filters button { font: inherit; font-size: 0.85rem; min-height: 0; padding: 0.2rem 0.75rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.sh-filters button:hover { border-color: var(--moss); }
.sh-filters button[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: #fff; }
.sh-n { font-variant-numeric: tabular-nums; opacity: 0.75; margin-left: 0.25rem; }
.sh-log { list-style: none; margin: 0; padding: 0; }
.sh-log li { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr); gap: 0.1rem 0.8rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.sh-log li:first-child { border-top: 0; }
.sh-when { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.1rem; }
.sh-what { min-width: 0; }
.sh-area { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0 0.5rem; border-radius: 999px; border: 1.5px solid currentColor; margin-right: 0.35rem; vertical-align: 1px; }
.sh-area.spotlights { color: var(--spot); }
.sh-area.banners { color: #8a5a10; }
.sh-area.tandems { color: #6b5b95; }
.sh-area.room { color: #2d6f73; }
.sh-area.translations { color: #2f6b3a; }
.sh-off { color: #8b3a2b; font-weight: 700; }
.sh-on { color: var(--moss); font-weight: 700; }
.sh-more { font-weight: 700; margin-top: 0.4rem; }
@media (max-width: 480px) { .sh-log li { grid-template-columns: minmax(0, 1fr); } }

/* Traduction à la demande (DeepL, maquette B validée le 03/11/2026) : petit bouton par bloc, pastille aux couleurs du sélecteur FR / DE. */
.xl8-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin: -0.5rem 0 0.9rem; }
.xl8-desc { margin: 0.9rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.xl8-desc .xl8-row { margin: 0; }
.xl8-desc + .event-desc { border-top: 0; padding-top: 0.6rem; }
.wpoll-hint .xl8-row { display: inline-flex; margin: 0; vertical-align: middle; }
.qa .xl8-row { margin: 0.2rem 0 0.9rem; }
.message .xl8-row { margin: 0.2rem 0 0.6rem; justify-content: center; }
.xl8-mini { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.55rem 0.15rem 0.4rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--moss-dark); font-weight: 700; font-size: 0.8rem; line-height: 1.4; cursor: pointer; }
.xl8-mini:hover { border-color: var(--moss-dark); }
.xl8-mini:disabled { opacity: 0.6; cursor: wait; }
.xl8-code { display: inline-block; padding: 0 0.35rem; border-radius: 4px; background: var(--ink); color: var(--paper); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.5; }
.xl8-mini-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--muted); }
.xl8-mini-note .xl8-code { opacity: 0.75; }
.xl8-mini-note button { border: 0; background: none; padding: 0; color: var(--moss-dark); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
.xl8-error { font-size: 0.8rem; color: var(--error); }

/* Avis des membres (#/feedback, maquette validée le 04/11/2026) */
.feedback-form { display: flex; flex-direction: column; gap: 1rem; }
.feedback-kinds { border: 0; padding: 0; margin: 0; }
.feedback-kinds legend { font-weight: 700; margin-bottom: 0.4rem; padding: 0; }
.feedback-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.feedback-chip { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; cursor: pointer; }
.feedback-problem { border-left: 4px solid var(--ochre); background: var(--card); border-radius: var(--radius-s); padding: 0.7rem 1rem; }
.feedback-problem ul { margin: 0.4rem 0 0.4rem 1.1rem; padding: 0; }
.feedback-problem p { margin: 0; }
.feedback-file { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.feedback-file-chip { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.7rem; background: var(--card); max-width: 100%; overflow-wrap: anywhere; }
.feedback-form .help { margin: 0; }
.feedback-thanks { border-left: 4px solid var(--moss); padding: 0.8rem 1rem; background: var(--card); border-radius: var(--radius-s); }

/* Tableau de bord en onglets (maquette validée le 04/11/2026) : réponse en une phrase en tête de section, barres
   horizontales, liste « To do », fiches des e-mails (venues heure par heure), chiffres clés, jauge de mémoire. */
/* Onglets en boutons arrondis (version A validée le 06/11/2026) : bien distincts des onglets du site au-dessus ;
   l'onglet ouvert plein, en vert ; sur un écran étroit, ils passent à la ligne (tous visibles, rien à faire glisser). */
.dash-tabs { flex-wrap: wrap; gap: 0.4rem; border-bottom: 0; margin: 0.4rem 0 1.2rem; }
.dash-tabs a { white-space: nowrap; padding: 0.45rem 0.8rem; margin: 0; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--moss-dark); }
.dash-tabs a:hover { border-color: var(--moss); }
.dash-tabs a[aria-selected="true"] { background: var(--moss); border-color: var(--moss); color: #fff; }
.dash-tabs a:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.dash-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.3rem; border-radius: 999px; background: var(--ochre); color: #fff; font-size: 0.78rem; }
.dash-answer { font-size: 1.05rem; margin: 0 0 0.8rem; }
.dash-answer strong { color: var(--moss-dark); }
.dash-todo { list-style: none; padding: 0; margin: 0 0 0.8rem; display: grid; gap: 0.5rem; }
.dash-todo li { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.55rem 0.7rem; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--paper); }
.dash-todo li.dash-todo-warn, .dash-todo li.dash-todo-watch { background: #fbf1dc; border-color: #e5c98f; }
.dash-pill { flex: none; font-size: 0.75rem; font-weight: 700; padding: 0.05rem 0.55rem; border-radius: 999px; border: 1.5px solid currentColor; }
.dash-pill.ok { color: var(--moss); }
.dash-pill.warn { color: var(--error); }
.dash-pill.watch { color: #8a5a10; }
.dash-pill.info { color: var(--muted); }
.dash-scroll { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dash-table th, .dash-table td { padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.dash-table th { font-weight: 400; }
.dash-table thead th { font-weight: 700; font-size: 0.85rem; color: var(--muted); }
.dash-table .num { text-align: right; white-space: nowrap; }
.dash-follow { width: auto; }
.dash-follow td:first-child, .dash-follow th:first-child { padding-right: 1.5rem; }
.dash-follow thead th { vertical-align: bottom; }
.dash-follow .c { text-align: center; width: 5.5rem; }
.dash-follow .n { text-align: right; white-space: nowrap; font-size: 0.9rem; padding-left: 0.8rem; }
.dash-spot { margin-left: 0.25rem; font-size: 0.8rem; color: var(--ochre); cursor: help; }
.dash-spot.closed { color: var(--muted); }
.dash-def:has(.dash-spot) { text-decoration: none; }
.dash-follow tbody td:first-child { white-space: nowrap; }
.dash-follow-sub { display: none; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .dash-follow .n { display: none; }
  .dash-follow-sub { display: block; }
  .dash-follow tbody td:first-child { white-space: normal; }
  .dash-follow .c { width: 3.9rem; }
  .dash-follow td:first-child, .dash-follow th:first-child { padding-right: 0.6rem; }
}
.dash-follow tfoot td { border-bottom: none; vertical-align: top; }
.dash-sort { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.dash-sort:hover { text-decoration: underline; }
.dash-miss { font-weight: 700; color: #a46b6b; }
.dash-copy { font-size: 0.75rem; padding: 0.2rem 0.55rem; margin-top: 0.3rem; }
.dash-copy-one { background: none; border: 0; padding: 0.15rem 0.3rem; margin-left: 0.3rem; color: var(--muted); cursor: pointer; vertical-align: -3px; border-radius: 0.3rem; }
.dash-copy-one svg { width: 15px; height: 15px; }
.dash-copy-one:hover { color: var(--ink); background: var(--line); }
.dash-copy-one.is-done { color: var(--moss); }
.dash-copy-pair { white-space: nowrap; }
.dash-copied { margin-left: 0.3rem; font-size: 0.8rem; font-weight: 700; color: var(--moss); white-space: nowrap; }
.dash-bars { display: grid; gap: 0.35rem; }
.dash-bar { display: grid; grid-template-columns: 8.5rem 1fr 2.4rem; gap: 0.6rem; align-items: center; font-size: 0.92rem; }
.dash-track { height: 0.75rem; background: #e3e8df; border-radius: 999px; overflow: hidden; }
.dash-fill { display: block; height: 100%; background: var(--moss); border-radius: 999px; }
.dash-fill.de { background: #6b5b95; }
.dash-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.dash-legend { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--muted); margin: 0.2rem 0 0.6rem; }
.dash-legend i { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 3px; margin-right: 0.3rem; vertical-align: -1px; background: var(--moss); }
.dash-legend i.de { background: #6b5b95; }
.dash-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; align-items: baseline; }
.dash-date { color: var(--muted); font-size: 0.9rem; }
.dash-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.dash-chips li { font-size: 0.85rem; padding: 0.2rem 0.7rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); }
.dash-hours { display: flex; align-items: flex-end; gap: 4px; height: 70px; margin: 0.4rem 0 0.2rem; }
.dash-hours div { flex: 0 1 3rem; background: var(--moss); border-radius: 3px 3px 0 0; }
.dash-hours-l { display: flex; gap: 4px; font-size: 0.75rem; color: var(--muted); }
.dash-hours-l span { flex: 0 1 3rem; text-align: center; }
/* Features › Tandem invitations (21/11/2026) : deux parcours côte à côte, l'un sous l'autre sur écran étroit. */
.dash-tinv-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 0.8rem 0 1.2rem; }
@media (max-width: 640px) { .dash-tinv-paths { grid-template-columns: 1fr; } }
.dash-tinv-path { border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem; }
.dash-tinv-path.is-key { border: 2px solid var(--moss); }
.dash-tinv-path h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.dash-tinv-path h3 small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.dash-tinv-path ol { list-style: none; margin: 0; padding: 0; }
.dash-tinv-path li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.5rem; align-items: baseline; padding: 0.35rem 0; border-top: 1px solid var(--line); }
.dash-tinv-path li:first-child { border-top: 0; }
.dash-tinv-path li b { font-size: 1.2rem; text-align: right; font-variant-numeric: tabular-nums; }
.dash-tinv-path li.is-zero b { color: var(--error); }
.dash-tinv-path li.is-zero span { color: var(--muted); }
.dash-tinv-path li em { font-style: normal; display: block; font-size: 0.8rem; color: var(--muted); }
.dash-tinv-names td { overflow-wrap: break-word; }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.6rem; }
.dash-kpi { background: var(--paper); border-radius: var(--radius-s); padding: 0.55rem 0.7rem; }
.dash-kpi b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.dash-kpi span { font-size: 0.85rem; color: var(--muted); }
.dash-meter { height: 0.8rem; background: var(--paper); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); margin: 0.3rem 0; }
.dash-meter div { height: 100%; background: var(--moss); }
.dash-meter div.warn { background: var(--ochre); }
@media (max-width: 480px) { .dash-bar { grid-template-columns: 6rem 1fr 2rem; } }
/* Tableau comparatif des e-mails (version A) : quatre mesures avec mini-barre, détail sous la date, sans défilement. */
.dash-compare { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.dash-compare col.c-email { width: 40%; }
.dash-compare th, .dash-compare td { padding: 0.5rem 0.35rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: right; }
.dash-compare th:first-child, .dash-compare td:first-child { text-align: left; }
.dash-compare thead th { font-size: 0.82rem; color: var(--muted); font-weight: 700; }
.dash-compare td b { font-size: 1.05rem; }
/* Ligne cliquable : sa fiche s'affiche sous le tableau (07/11/2026). */
.dash-compare tr.dash-pick { cursor: pointer; }
.dash-compare tr.dash-pick:hover { background: #f6f8f3; }
.dash-compare tr.dash-pick[aria-selected="true"] { background: #e1ebdf; box-shadow: inset 3px 0 0 var(--moss); }
.dash-compare tr.dash-pick:focus-visible { outline: 3px solid #e9c13b; outline-offset: -3px; }
.dash-see { display: block; margin-top: 0.2rem; font-size: 0.78rem; font-weight: 700; color: var(--moss-dark); }
tr[aria-selected="true"] .dash-see { color: var(--ink); }
.dash-more { align-self: flex-start; margin-top: 0.6rem; }
.dash-em b { display: block; }
.dash-sub { display: block; font-size: 0.8rem; color: var(--muted); }
.dash-mini { display: block; height: 4px; background: #e3e8df; border-radius: 99px; margin-top: 4px; overflow: hidden; }
.dash-mini i { display: block; height: 100%; background: var(--moss); }
.dash-mini.bad i { background: var(--error); }
.dash-best b { color: var(--moss); }
.dash-live { display: block; font-size: 0.7rem; font-weight: 700; color: #8a5a10; }
/* Définitions en bulle (validées le 04/11/2026) : mot souligné en pointillé, bulle au survol, au clavier ou au toucher. */
.dash-def { position: relative; text-decoration: underline dotted var(--muted); text-underline-offset: 3px; cursor: help; }
.dash-def:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; border-radius: 3px; }
.dash-tip { position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: min(20rem, 80vw);
  background: var(--ink); color: var(--paper); font-size: 0.8rem; font-weight: 400; line-height: 1.4; text-align: left; letter-spacing: 0; text-transform: none; white-space: normal;
  padding: 0.5rem 0.65rem; border-radius: 8px; box-shadow: 0 6px 18px rgba(30, 42, 34, 0.25); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.12s; }
.dash-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--ink); }
.dash-def:hover .dash-tip, .dash-def:focus .dash-tip, .dash-def.open .dash-tip { opacity: 1; visibility: visible; }
.dash-def.edge-r .dash-tip { left: auto; right: -0.4rem; transform: none; }
.dash-def.edge-r .dash-tip::after { left: auto; right: 0.8rem; transform: none; }
.dash-def.edge-l .dash-tip { left: -0.4rem; transform: none; }
.dash-def.edge-l .dash-tip::after { left: 1rem; transform: none; }
.dash-asof { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: baseline; font-size: 0.9rem; color: var(--muted); margin: -0.6rem 0 1rem; }
@media (max-width: 520px) { .dash-compare col.c-email { width: 34%; } .dash-compare thead th { font-size: 0.74rem; } .dash-compare td b { font-size: 0.95rem; } }
/* « How these figures are calculated » sous le tableau comparatif : fermé par défaut, ouvert d'un clic. */
.dash-how { margin-top: 0.8rem; font-size: 0.9rem; }
.dash-how summary { cursor: pointer; color: var(--moss-dark); font-weight: 700; }
.dash-how p { margin: 0.5rem 0 0; }
/* Onglet Emails (maquette validée le 07/11/2026) : filtre, abonnés, désinscrits, pastilles, fiches, essais. */
.dash-filter { align-items: center; margin: 0 0 1.2rem; }
.dash-filter-l { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-right: 0.2rem; }
.dash-subs { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem; }
.dash-sub-card { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; padding: 0.75rem 0.9rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.dash-sub-card b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.dash-k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.dash-k.bad { color: var(--error); }
.dash-unsub { font: inherit; align-self: flex-start; padding: 0; border: 0; background: none; color: var(--error); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; text-align: left; }
.dash-unsub:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; border-radius: 3px; }
.dash-unsub-0 { color: var(--muted); }
.dash-who-list { margin-top: 0.6rem; padding: 0.4rem 0.9rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.dash-who-list table, .dash-mt table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dash-who-list td { padding: 0.35rem 0.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.dash-who-list tr:last-child td { border-bottom: 0; }
.dash-d { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-who-list .dash-d { text-align: right; }
.dash-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 0 0.45rem; margin-right: 0.3rem; border: 1px solid var(--line); border-radius: 99px; color: var(--moss-dark); vertical-align: 1px; }
.dash-tag.events { color: #8a5a10; }
.dash-email-card { padding: 0.9rem 1rem; margin-top: 0.8rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.dash-email-card h3 { margin: 0; font-size: 1.05rem; }
.dash-email-card h4 { margin: 0.8rem 0 0.3rem; font-size: 0.95rem; }
.dash-test-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* Essais d'e-mail : un bloc coloré par e-mail (maquette validée le 07/11/2026). */
.dash-test-card { border: 1.5px solid; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 0.6rem; }
.dash-test-card.weekly { background: #eef4ee; border-color: #a9c4ad; }
.dash-test-card.events { background: #fbf1dc; border-color: #e5c98f; }
.dash-test-card h2 { margin: 0; }
.dash-test-card > .dash-tag { align-self: flex-start; margin: 0; background: var(--card); border: 1.5px solid; letter-spacing: 0.03em; }
.dash-test-card > .dash-tag.weekly { color: var(--moss-dark); border-color: #a9c4ad; }
.dash-test-card > .dash-tag.events { color: #7a5410; border-color: #e5c98f; }
.dash-test-what, .dash-test-subj { margin: 0; }
.dash-test-subj { font-size: 0.9rem; color: var(--muted); }
.dash-test-subj b { color: var(--ink); }
.dash-next { background: var(--card); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.dash-next-big { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.dash-next-unsub { font-size: 1rem; font-weight: 400; color: var(--muted); }
.dash-next ul:not(.dash-chips) { margin: 2px 0 0; padding-left: 1.1rem; font-size: 0.92rem; }
.dash-next .help { margin: 0; }
.dash-versions li { margin: 0 0 6px; }
.dash-versions .dash-who { font-weight: 400; }
.dash-versions button.link { font-size: inherit; }
/* Évènements privés (07/11/2026). */
.dash-priv { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 0.8rem; display: flex; flex-direction: column; gap: 6px; }
.dash-priv p, .dash-priv ul { margin: 0; }
.dash-priv ul { padding-left: 1.1rem; }
.dash-test-card.events .secondary { border-color: #b0812c; color: #7a5410; }
.dash-mt { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.dash-mt td { padding: 0.2rem 0.8rem 0.2rem 0; vertical-align: baseline; }
/* Francophones / germanophones (version B) : pourcentage en gras, nombre en petit, écart en ocre quand il est net. */
.dash-langs { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.dash-langs col.c1 { width: 40%; }
.dash-langs th, .dash-langs td { padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); text-align: right; vertical-align: baseline; }
.dash-langs th:first-child, .dash-langs td:first-child { text-align: left; }
.dash-langs thead th { font-size: 0.85rem; color: var(--muted); }
.dash-langs td b { font-size: 1.05rem; }
.dash-langs td small { color: var(--muted); font-size: 0.8rem; margin-left: 0.3rem; }
.dash-gap { font-weight: 700; color: var(--muted); white-space: nowrap; }
.dash-gap.is-clear { color: #8a5a10; }
.dash-dot { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; margin-right: 0.3rem; background: var(--moss); }
.dash-dot.de { background: #6b5b95; }
@media (max-width: 520px) { .dash-langs col.c1 { width: 34%; } .dash-langs thead th { font-size: 0.74rem; } .dash-langs td small { display: block; margin: 0; } }
/* Membres les plus actifs : nom, langue, dernière visite et étiquettes dans la première colonne ; sans défilement. */
.dash-active { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.dash-active col.c1 { width: 44%; }
.dash-active th, .dash-active td { padding: 0.5rem 0.35rem; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.dash-active th:first-child, .dash-active td:first-child { text-align: left; }
.dash-active thead th { font-size: 0.82rem; color: var(--muted); }
.dash-active td b { font-size: 1.05rem; }
.dash-who { font-weight: 700; color: var(--ink); text-decoration: none; }
.dash-who:hover { text-decoration: underline; }
.dash-lang { font-size: 0.75rem; font-weight: 700; color: var(--muted); margin-left: 0.35rem; }
.dash-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 0 0.45rem; margin: 0.2rem 0.25rem 0 0; border: 1.5px solid; }
.dash-tag.reg { color: var(--moss-dark); border-color: #a9c4ad; background: #eef4ee; }
.dash-tag.con { color: #7a5410; border-color: #e5c98f; background: #fbf1dc; }
.dash-def:has(.dash-tag) { text-decoration: none; }
.dash-sep td { border-bottom: 0; padding-top: 0.9rem; font-size: 0.85rem; font-weight: 700; color: var(--muted); text-align: left; }
@media (max-width: 480px) { .dash-active col.c1 { width: 36%; } .dash-active thead th { font-size: 0.74rem; } }
/* Onglet Live : une carte par visite, fil des gestes (gestes importants en gras), point qui pulse pendant la mise à jour. */
.dash-visit { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0.7rem 0.9rem; margin-bottom: 0.7rem; }
.dash-visit-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.1rem 0.8rem; align-items: baseline; }
.dash-visit-head .dash-sub { display: inline; }
.dash-now { font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--moss); border-radius: 999px; padding: 0 0.45rem; margin-left: 0.4rem; }
.dash-def:has(.dash-now) { text-decoration: none; }
.dash-feed { list-style: none; margin: 0.5rem 0 0; padding: 0 0 0 0.9rem; border-left: 2px solid var(--line); display: grid; gap: 0.2rem; }
.dash-path { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--muted); }
.dash-path a { color: inherit; }
/* Flèche en haut du trait du fil : le temps monte, dernière action en haut (05/11/2026). */
.dash-feed-wrap { position: relative; }
.dash-feed-wrap > .dash-def { position: absolute; left: -9px; top: calc(0.5rem - 12px); padding: 4px; text-decoration: none; line-height: 0; }
.dash-arrow { display: block; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 8px solid var(--muted); }
.dash-feed li { font-size: 0.92rem; display: grid; grid-template-columns: 3rem 1fr; gap: 0.5rem; }
.dash-feed time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.dash-feed li.key span { font-weight: 700; color: var(--moss-dark); }
.dash-chip-gap { width: 0.6rem; }
.dash-pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--moss); margin-right: 0.4rem; animation: dash-pulse 2s ease-out infinite; }
@keyframes dash-pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 107, 69, 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(63, 107, 69, 0); } }
@media (prefers-reduced-motion: reduce) { .dash-pulse { animation: none; } }
/* Live : carte d'un administrateur (visible, jamais comptée). */
.dash-admin { font-size: 0.72rem; font-weight: 700; color: var(--muted); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 0.45rem; margin-left: 0.4rem; }
.dash-def:has(.dash-admin) { text-decoration: none; }

/* Time on site (maquette validée le 05/11/2026) : moyenne (vert) et médiane (vert clair), semaines à venir en pointillé. */
.tos-chart .med, .legend .med::before { fill: #a9c3a6; background: #a9c3a6; }
.tos-chart .tbd { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 5 4; }
.tos-chart .val { font-size: 11px; font-weight: 700; fill: var(--ink); font-family: inherit; }
.tos-chart .val.muted { font-weight: 400; fill: var(--muted); }
.tos-chart .axis .day { fill: var(--ink); font-weight: 700; }
/* Total per week (maquette validée le 19/11/2026) : courbe du temps de la communauté, semaine en cours en pointillé. */
.tos-h { font-size: 1rem; margin: 1.2rem 0 0.3rem; }
.tos-total .line { fill: none; stroke: var(--moss); stroke-width: 2.5; stroke-linejoin: round; }
.tos-total .line.cur { stroke-dasharray: 5 4; }
.tos-total .area { fill: var(--moss); opacity: 0.08; }
.tos-total .pt { fill: var(--moss); }
.tos-total .pt.cur { fill: var(--card); stroke: var(--moss); stroke-width: 2; }
.tos-total .val.cur { fill: var(--muted); font-weight: 400; font-style: italic; }
.tos-total + .dash-sub { margin-bottom: 0.4rem; }
/* By day of the week (maquette validée le 19/11/2026) : jours d'e-mail en ocre, jour compté une seule fois en clair. */
.tos-days .bar { fill: var(--moss); }
.tos-days .bar.low { fill: #a9c3a6; }
.tos-days .mail { font-size: 10.5px; fill: var(--ochre); font-weight: 700; font-family: inherit; }
.legend .tos-mail::before { content: "✉"; width: auto; height: auto; background: none; color: var(--ochre); margin-right: 0.3rem; }
.dash-tos { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dash-tos th, .dash-tos td { padding: 0.5rem 0.35rem; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.dash-tos th:first-child, .dash-tos td:first-child { text-align: left; }
.dash-tos thead th { font-size: 0.82rem; color: var(--muted); }
.dash-tos .dash-sub { display: block; }
@media (max-width: 480px) { .dash-tos thead th { font-size: 0.74rem; } .dash-tos th, .dash-tos td { padding: 0.45rem 0.2rem; } }

/* Fiche d'un membre dans le Dashboard (maquette validée le 06/11/2026). */
.dash-m-back { margin: 0.6rem 0 0.8rem; }
.dash-m-head { display: flex; gap: 0.9rem; align-items: center; }
.dash-m-head .avatar-s { flex: none; width: 76px; height: 76px; font-size: 1.4rem; }
.dash-m-name { margin: 0; font-size: 1.4rem; }
.dash-m-name .dash-lang { margin-left: 0.4rem; vertical-align: 0.2em; }
.dash-m-head .dash-sub { margin: 0.1rem 0 0; }
.dash-m-tags { margin: 0.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.dash-m-tags .dash-tag { margin: 0; }
.dash-tag.dev { color: var(--muted); border-color: var(--line, #d3dacf); background: #fff; font-weight: 600; }
.dash-m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 0.9rem; }
.dash-m-card { background: var(--card); border: 1px solid #d3dacf; border-radius: var(--radius-s); padding: 0.7rem 0.85rem; min-width: 0; }
.dash-m-card.wide { grid-column: 1 / -1; }
.dash-m-card h2 { font-size: 0.85rem; margin: 0 0 0.45rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.dash-m-row { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.25rem 0; border-top: 1px dashed #e2e7de; font-size: 0.92rem; }
.dash-m-row:first-of-type { border-top: 0; }
.dash-m-row > span:first-child { color: var(--muted); flex: 0 1 auto; }
.dash-m-row > span:last-child { flex: 1 1 auto; min-width: 0; text-align: right; display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 0.2rem; }
.dash-m-row > span:last-child > a { min-width: 0; overflow-wrap: break-word; }
.dash-m-row > span:last-child > .dash-copy-one { flex: none; }
.dash-yes { color: var(--moss-dark); font-weight: 600; }
.dash-no { color: var(--error); font-weight: 600; }
.dash-off { color: var(--muted); }
.dash-m-kpis { margin-bottom: 0.5rem; grid-template-columns: repeat(4, 1fr); }
.dash-m-kpis .dash-kpi { background: #fff; border: 1px solid #d3dacf; text-align: center; }
.dash-m-kpis em { display: block; font-style: normal; font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; padding-top: 0.2rem; border-top: 1px dashed #e2e7de; }
.dash-m-kpis em.lo::before { content: "▼ "; color: var(--ochre); }
.dash-m-kpis em.hi::before { content: "▲ "; color: var(--moss); }
.dash-m-kpis em.eq::before { content: "= "; }
.dash-m-visit { border-top: 1px dashed #e2e7de; padding: 0.35rem 0; }
.dash-m-visit:first-of-type { border-top: 0; }
.dash-m-visit p { margin: 0; font-size: 0.92rem; }
.dash-m-visit ol { margin: 0.25rem 0 0; padding-left: 1.1rem; font-size: 0.85rem; color: var(--muted); }
.dash-m-visit li.key { color: var(--ink); font-weight: 600; }
.dash-m-visit time { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .dash-m-grid { grid-template-columns: 1fr; }
  .dash-m-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-m-head .avatar-s { width: 60px; height: 60px; font-size: 1.1rem; }
}

/* Évènement : horaires facultatifs (06/11/2026). */
.times-add { margin: -0.4rem 0 1rem; }
.times-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.time-pick { position: relative; }
.time-btn { width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--card); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-variant-numeric: tabular-nums; }
.time-btn::after { content: "▾"; color: var(--muted); }
.time-btn:focus-visible { outline: none; border-color: var(--ochre); }
.time-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 15rem; overflow-y: auto; margin: 0; padding: 0.25rem 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14); }
.time-list li { padding: 0.45rem 0.8rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.time-list li:hover, .time-list li:focus { background: #eef4ee; outline: none; }
.time-list li[aria-selected="true"] { background: var(--moss); color: #fff; }
.times-remove { font-size: 0.88rem; margin-top: 0.3rem; }

/* Drapeau du pays devant la ville, sur la carte d'un évènement (06/11/2026). */
.flag { display: inline-block; width: 18px; height: 13px; vertical-align: -1px; margin-right: 0.35rem; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); object-fit: cover; }

/* Date à choisir avec les membres (maquette validée le 06/11/2026) */
.event-date.is-tbd { background: #fbf1dc; color: #8a5f12; border: 2px dashed var(--ochre); padding: 0.3rem 0; }
.event-date.is-tbd .event-date-small { font-size: 0.6rem; }
.pill-vote { background: var(--ochre); color: #fff; text-transform: none; letter-spacing: 0; margin-left: 0; }
.wdates { max-width: 30rem; margin: 1rem 0; background: #fbf1dc; border-color: #e5c98f; }
.wdates .wpoll-see { border-top-color: #e5c98f; }
.dv-box { border-radius: 6px; }
.dv-opt { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 0.5rem 0.6rem; margin-top: 0.45rem; text-align: left; font: inherit; color: inherit; }
button.dv-opt { cursor: pointer; }
.dv-opt.on { border-color: var(--moss); background: #eef5ee; }
.dv-opt .wopt-t strong { font-weight: 600; }
.dv-ro { grid-template-columns: 0 minmax(0, 1fr) auto; column-gap: 0.5rem; }
.dv-right { display: flex; align-items: center; gap: 0.5rem; }
.dv-choose { min-height: 0; padding: 0.3rem 0.7rem; font-size: 0.85rem; }
.dv-best { display: inline-block; margin-left: 0.35rem; padding: 0 0.35rem; border-radius: 4px; background: var(--moss); color: #fff; font-size: 0.7rem; font-weight: 800; vertical-align: 1px; }
.dv-none { margin: 0.6rem 0 0.2rem; }
.dv-none .link.is-on { font-weight: 700; }
.dv-none svg { width: 14px; height: 14px; vertical-align: -2px; }
.wdates .confirm-box { margin-top: 0.8rem; }
/* Seconde date (maquette validée le 15/11/2026). */
.dv2 { margin: 0.7rem 0; padding: 0.7rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fafbf8; }
.dv2-check { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; cursor: pointer; }
.dv2-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--moss); flex: none; }
.dv2-session { margin-top: 0.65rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.dv2-session > strong { display: block; font-size: 0.92rem; }
.dv2-session select { width: 100%; margin-top: 0.3rem; font: inherit; padding: 0.45rem 0.5rem; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: inherit; }
.dv2-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.dv2-lang { min-height: 32px; padding: 0.15rem 0.75rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 0.85rem; color: var(--ink); cursor: pointer; }
.dv2-lang[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: #fff; font-weight: 700; }
.dv2-lang:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.dv2-sum { margin: 0.6rem 0 0; font-size: 0.9rem; }
.dv2 .field-error { margin: 0.4rem 0 0; }
.slot-row { padding: 0.6rem 0.7rem; margin: 0 0 0.6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.slot-n { display: flex; justify-content: space-between; align-items: center; margin: 0 0 0.4rem; font-weight: 700; }
.slot-t { display: block; font-size: 0.9rem; font-weight: 600; margin: 0.5rem 0 0.2rem; }
.slots-field .help { margin-top: 0.4rem; }
.dv-time { display: block; font-size: 0.92rem; color: var(--muted); }
.wdates .dv-time ~ .dv-best { margin: 0.25rem 0 0; }
.choice-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.choice-2 .choice-item { padding: 0.6rem 0.7rem; }
.choice-2 .help { margin: 0; line-height: 1.3; }
.choice-item.is-off { opacity: 0.4; cursor: default; }
/* Lien Dashboard de l'en-tête, administrateurs seulement (version B validée le 06/11/2026) */
.dash-link { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; border: 1.5px solid var(--moss); border-radius: 999px; background: var(--card); color: var(--moss-dark); font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.dash-link svg { width: 18px; height: 18px; }
.dash-link[aria-current="page"] { background: var(--moss); color: #fff; }
@media (max-width: 40rem) { .dash-link { padding: 0.4rem; } .dash-link-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.event-online { font-weight: 700; color: var(--moss-dark); white-space: nowrap; }
.event-online svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 0.3rem; }
.event-card.is-past .event-online, .event-card.is-cancelled .event-online { color: inherit; font-weight: 600; }

/* Mode nouveau venu (administrateurs, maquette validée le 06/11/2026) : œil et interrupteur dans l'en-tête, bandeau ocre. */
.fresh-toggle { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.4rem 0.25rem 0.45rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); cursor: pointer; font: inherit; }
.fresh-toggle svg { width: 18px; height: 18px; }
.fresh-switch { position: relative; width: 30px; height: 18px; border-radius: 999px; background: #c9d1c6; flex: none; }
.fresh-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: left 0.15s; }
.fresh-toggle.is-on { border-color: var(--ochre); color: #6b4a12; background: #fbf1dc; }
.fresh-toggle.is-on .fresh-switch { background: var(--ochre); }
.fresh-toggle.is-on .fresh-switch::after { left: 14px; }
.fresh-band { display: flex; align-items: center; gap: 0.6rem 0.8rem; flex-wrap: wrap; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--measure) - 2 * var(--gutter)); margin: 0 auto 0.6rem; padding: 0.55rem 0.8rem; border: 1.5px dashed var(--ochre); border-radius: 10px; background: #fbf1dc; color: #6b4a12; font-size: 0.9rem; }
.fresh-band p { margin: 0; flex: 1 1 16rem; }
.fresh-band strong { color: #5a3d0c; }
.fresh-btns { display: flex; gap: 0.4rem; }
.fresh-btns button { font: inherit; font-size: 0.84rem; font-weight: 700; border-radius: 999px; padding: 0.2rem 0.75rem; cursor: pointer; }
.fresh-again { background: var(--ochre); color: #fff; border: 0; }
.fresh-quit { background: none; border: 1.5px solid var(--ochre); color: #6b4a12; }
@media (max-width: 420px) {
  .fresh-toggle { gap: 0.2rem; padding: 0.2rem 0.25rem 0.2rem 0.3rem; }
  .fresh-toggle svg { width: 16px; height: 16px; }
  .fresh-switch { width: 24px; height: 14px; }
  .fresh-switch::after { width: 10px; height: 10px; }
  .fresh-toggle.is-on .fresh-switch::after { left: 12px; }
  .top-actions:has(.fresh-toggle) { gap: 0.35rem; }
}
/* Titre trop long pour la place restante (en-tête d'un administrateur sur petit téléphone) : coupé proprement. */
.brand-lines { min-width: 0; }
.brand-lines > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Rappel « Cet évènement t'intéresse ? » sous le sondage (maquette validée le 06/11/2026). */
.poll-nudge { margin-top: 0.75rem; padding: 0.65rem 0.8rem; border: 1.5px solid var(--moss); border-radius: 12px; background: #dfe9dd; }
.poll-nudge p { margin: 0 0 0.5rem; font-weight: 700; color: var(--moss-dark); }
.poll-nudge .answer-cards legend { color: var(--moss-dark); }
.poll-nudge.is-done { border: 0; color: var(--moss-dark); }
.poll-nudge.is-done span { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }

/* Vote ouvert sur la carte (maquette C validée le 06/11/2026). */
.pill-vote { display: inline-flex; align-items: center; gap: 0.3rem; }
.pill-vote svg { width: 14px; height: 14px; }
.event-tovote { color: #7a520d; font-weight: 800; }
.event-more.is-vote { background: var(--ochre); }
.event-more.is-vote:hover, .event-more.is-vote:focus-visible { background: #a87622; }

/* Dashboard › Banners (06/11/2026) : alerte carte toujours active, « Showing now ». */
.hints .banner-locked { background: #c9d2c6; }
.hints .banner-locked::after { transform: translateX(1.1rem); }
.hints .banner-locked-note { font-size: 0.8rem; color: var(--muted); }
.banner-now { display: inline-block; margin-left: 0.3rem; padding: 0 0.5rem; border-radius: 999px; background: var(--ochre); color: #fff; font-size: 0.75rem; font-weight: 700; vertical-align: 1px; }
/* « Play » d'un bandeau (Dashboard › Banners) : contour ocre qui clignote deux fois. */
.banner-preview { animation: banner-preview 0.9s ease-in-out 2; }
@keyframes banner-preview { 50% { box-shadow: 0 0 0 4px var(--ochre); } }
@media (prefers-reduced-motion: reduce) { .banner-preview { animation: none; box-shadow: 0 0 0 3px var(--ochre); } }
/* Partage du lien d'inscription (bandeaux, 06/11/2026) : icône dans le grand bouton, « ✓ Copié… » à côté. */
.invite-actions { align-items: center; }
.share-big { display: inline-flex; align-items: center; gap: 0.4rem; }
.share-big svg { width: 16px; height: 16px; }

/* Dashboard › Devices : barre des appareils principaux (maquette B validée le 06/11/2026). Couleurs fixes par appareil,
   ordre vérifié au daltonisme (validate_palette) ; texte sombre sur les blocs clairs. */
.dev-main { margin: 0.4rem 0 0.8rem; }
.dev-cap { font-size: 0.85rem; color: var(--muted); margin: 0; }
.dev-seg { display: flex; gap: 2px; height: 44px; border-radius: 6px; overflow: hidden; margin: 0.5rem 0 0.4rem; }
.dev-seg span { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; color: #fff; font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.dev-seg .dev-mac, .dev-seg .dev-windows, .dev-seg .dev-ipad { color: var(--ink); }
.dev-groups { display: flex; gap: 2px; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.5rem; }
.dev-groups span { border-top: 2px solid var(--line); padding-top: 0.2rem; text-align: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; list-style: none; padding: 0; margin: 0; font-size: 0.85rem; }
.dev-legend li { display: flex; align-items: center; gap: 0.4rem; }
.dev-sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.dev-iphone { background: #2a78d6; }
.dev-android { background: #eb6834; }
.dev-mac { background: #1baf7a; }
.dev-windows { background: #eda100; }
.dev-ipad { background: #e87ba4; }
.dev-linux { background: #6250d6; }
.dev-other { background: #8a8f88; }

/* Voir comme un membre (maquette validée le 06/11/2026) : lien sous « Modifier · Annuler », bandeau collé en haut de l'aperçu. */
.preview-open { margin: 0.6rem 0 0; }
.preview-admin { font-size: 0.72rem; font-weight: 700; border-radius: 99px; padding: 0.05rem 0.5rem; background: #e1ebdf; color: var(--moss-dark); vertical-align: middle; }
.preview-open { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
/* « Voir comme un membre » / « Voir comme l'organisateur » (07/11/2026) : noir et blanc, comme la barre de l'aperçu. */
.preview-open .link { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; text-decoration: none; font-size: 0.92rem; padding: 0.45rem 0.95rem; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 2px 8px rgba(30, 42, 34, 0.2); }
.preview-open .link:hover { background: #2c3b31; color: #fff; }
.preview-open .link svg { color: #fff; }
.preview-bar { position: sticky; top: 0.5rem; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin: 0 0 1rem; padding: 0.65rem 0.9rem; background: var(--ink); color: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(30, 42, 34, 0.25); }
.preview-bar-t { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0; font-size: 0.92rem; line-height: 1.4; flex: 1 1 16rem; }
.preview-bar-t svg { flex: none; margin-top: 0.1rem; }
.preview-back { font: inherit; font-weight: 700; font-size: 0.9rem; padding: 0.45rem 0.9rem; border-radius: 999px; border: 0; background: #fff; color: var(--ink); cursor: pointer; }
.preview-bar.is-flash span span { font-weight: 700; color: #f3d48f; }

/* Dashboard › System : sauvegardes et tâches planifiées (maquette validée le 06/11/2026). */
.dash-answer.is-bad strong { color: var(--error); }
.bk-nights { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; margin: 0.2rem 0 0.3rem; }
.bk-night { display: grid; justify-items: center; gap: 2px; font-size: 0.68rem; color: var(--muted); }
.bk-dot { width: 100%; max-width: 30px; aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; background: #dfe9dd; color: var(--moss-dark); font-weight: 700; font-size: 0.8rem; }
.bk-night.is-miss .bk-dot { background: #f6dcd6; color: var(--error); }
.bk-legend { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.8rem; }
.bk-list summary { cursor: pointer; color: var(--moss-dark); font-weight: 700; font-size: 0.92rem; margin: 0.2rem 0 0.4rem; }
.cron-group th[colspan] { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; padding-top: 0.9rem; }
.cron-job, .cron-sub, .cron-err { display: block; }
.cron-sub { font-size: 0.8rem; color: var(--muted); }
.cron-err { font-size: 0.8rem; color: var(--error); }
.cron-last { text-align: right; white-space: nowrap; font-size: 0.92rem; }
.cron-st { display: block; white-space: nowrap; font-weight: 700; font-size: 0.88rem; text-align: right; }
.cron-st.ok { color: var(--moss-dark); }
.cron-st.bad { color: var(--error); }
.cron-st.late { color: #8a5a00; }
.cron-st.cron-none { color: var(--muted); font-weight: 400; }

/* Phrase du site (maquette validée le 06/11/2026) : Fraunces italique, en vert, sous le nom de l'écran de connexion
   (et des deux premières étapes de l'inscription) et, en petit, sous les liens du pied de page des membres connectés
   (version A validée le 06/11/2026). Coupée seulement
   après la virgule quand la ligne est trop étroite (téléphone, allemand). */
.tagline { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 500; color: var(--moss-dark); line-height: 1.3; }
.tagline > span { white-space: nowrap; }
.login-hero .tagline { font-size: 1.08rem; margin: 0 0 0.75rem; }
.foot .tagline { order: 99; flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 0.25em; margin: 0.45rem 0 0; font-size: 0.8rem; text-align: center; }
.foot .tagline img { margin-right: 0.15rem; }
/* Aperçu d'un évènement (version B validée le 07/11/2026) : onglets « La page » / « La vignette » dans le bandeau ;
   la vignette remplace la page, entre ses voisines de la liste en grisé. */
.preview-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); flex: 1 1 100%; }
/* Avec les onglets, « Revenir à ma vue » en contour : il ne se confond pas avec l'onglet ouvert (blanc). */
.preview-tabs ~ .preview-back { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.7); }
/* Aperçu de l'organisateur (admin) : « Revenir à ma vue » en bas à gauche, comme sous les onglets de « Voir comme un membre ». */
.preview-bar.is-organizer { flex-direction: column; align-items: flex-start; }
.preview-bar.is-organizer .preview-bar-t { flex: none; }
.preview-bar.is-organizer .preview-back { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.7); }
.preview-tabs ~ .preview-back:hover { background: rgba(255, 255, 255, 0.12); }
.preview-tabs button { flex: 1; font: inherit; font-size: 0.9rem; font-weight: 700; padding: 0.35rem 0.6rem; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.preview-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.preview-tabs button:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.preview-card { display: none; margin: 1rem 0; }
article.event.show-card > :not(.preview-bar):not(.preview-card) { display: none; }
article.event.show-card .preview-card { display: block; }
.preview-card .is-near { opacity: 0.4; }
/* Photo en grand (photo entière, 07/11/2026) : loupe sur le bord des grandes photos, vue plein écran sur fond sombre. */
.avatar-zoom { position: relative; display: flex; width: max-content; margin: 0 auto 0.6rem; cursor: zoom-in; }
.avatar-zoom .avatar-l { margin: 0; }
.room-who .avatar-zoom { margin: 0; }
.avatar-loupe { position: absolute; right: -4px; bottom: -2px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1.5px solid var(--line); border-radius: 50%; background: var(--card); color: var(--moss-dark); cursor: zoom-in; }
.avatar-loupe:hover { border-color: var(--moss); }
.avatar-loupe:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.avatar-zoom:has(.framing-active) { cursor: grab; }
.avatar-zoom:has(.framing-active) .avatar-loupe { display: none; }
dialog.photo-viewer { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); border: 0; background: #0d110e; color: #fff; display: flex; flex-direction: column; }
dialog.photo-viewer:not([open]) { display: none; }
dialog.photo-viewer::backdrop { background: #0d110e; }
.pv-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.pv-close { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.2rem; cursor: pointer; }
.pv-close:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.pv-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0.7rem 0; touch-action: pinch-zoom; cursor: zoom-in; }
.pv-stage.is-zoomed { cursor: grab; touch-action: none; }
.pv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; transition: transform 0.15s ease-out; }
.pv-stage.is-zoomed img { transition: none; }
.pv-hint { margin: 0 0 0.8rem; padding: 0 16px; font-size: 0.85rem; color: #c9d2c6; text-align: center; }
@media (prefers-reduced-motion: reduce) { .pv-stage img { transition: none; } }
dialog.member .avatar-zoom { margin-bottom: 0.4rem; }
/* La croix (collante, sans place dans la mise en page) remonte le contenu de 1,6 rem : espace rendu au-dessus de la photo (07/11/2026, photo collée au bord). */
dialog.member .dialog-photo { padding-top: 1.1rem; }
dialog.member .avatar-zoom .avatar-l { margin: 0; }
/* Valider une inscription depuis le SMS (maquette validée le 07/11/2026). */
.validate-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.validate-card p { margin: 0; }
.validate-head { display: flex; gap: 0.8rem; align-items: center; }
.validate-head strong { display: block; font-size: 1.15rem; }
.validate-head .avatar { object-fit: cover; }
.validate-k { margin-top: 0.4rem !important; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.validate-ans { padding: 0.5rem 0.7rem; border-radius: 10px; background: var(--paper); white-space: pre-line; }
.validate-inv { margin-top: 0.4rem; padding: 0.5rem 0.7rem; border-radius: 10px; background: #fbf4e4; border: 1.5px solid #c08a2e; }
.validate-inv .validate-k { margin-top: 0 !important; }
.validate-inv p { margin: 0; }
/* Inscription par le lien d'un binôme (maquette validée le 19/11/2026) : encadré « TON BINÔME » en tête de la fiche. */
.signup-duo { margin: 0 0 1.2rem; padding: 0.8rem; border: 2px solid #c08a2e; border-radius: 14px; background: #fbf4e4; display: grid; gap: 0.6rem; }
.signup-duo.is-bad { border-color: #a8321f; }
.signup-duo legend { padding: 0 0.3rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8a5f12; }
.signup-duo .duo-who { display: flex; align-items: center; gap: 0.7rem; }
.signup-duo .duo-who .avatar { width: 48px; height: 48px; flex: none; box-shadow: 0 0 0 2px #c08a2e; }
.signup-duo .duo-who strong { display: block; }
.signup-duo .duo-who span { font-size: 0.88rem; color: var(--muted); }
.signup-duo .duo-q { margin: 0; font-weight: 700; }
.duo-opt { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.5rem 0.7rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.duo-opt input { margin-top: 0.3rem; accent-color: var(--moss); }
.duo-opt small { display: block; color: var(--muted); font-size: 0.86rem; }
.duo-opt:has(input:checked) { border-color: var(--moss); background: #eef4ec; }
.validate-warn { padding: 0.5rem 0.7rem; border-radius: 10px; background: #f6e1dc; color: var(--error); font-size: 0.92rem; }
.validate-btns { display: flex; gap: 0.6rem; }
.validate-btns button { flex: 1; }
.validate-block { border-color: var(--error); color: var(--error); }
.validate-done { margin: 0; padding: 0.8rem 1rem; border-radius: 12px; background: #e1ebdf; color: var(--moss-dark); font-weight: 700; }
.validate-done span { display: block; margin-top: 0.25rem; font-weight: 400; color: var(--ink); }
/* Après « Publish » (maquette validée le 08/11/2026) : une ligne par étape, SMS suivi en direct. */
.vp { background: #e1ebdf; border-radius: 14px; padding: 1rem; }
.vp-who { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.vp-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--moss); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.vp-who b { display: block; font-size: 1.2rem; line-height: 1.2; }
.vp-who div span { color: var(--moss-dark); font-weight: 700; }
.vp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.vp-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 0.5rem; align-items: start; }
.vp-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; color: #fff; background: var(--moss); }
.vp-ic.vp-wait { background: transparent; border: 2.5px solid #9bb59c; border-top-color: var(--moss); animation: vp-spin 0.9s linear infinite; }
.vp-ic.vp-x { background: #9b2c1f; }
.vp-ic.vp-none { background: #b9c4b5; }
@keyframes vp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vp-ic.vp-wait { animation: none; } }
.vp-steps strong { display: block; line-height: 1.25; }
.vp-steps small { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.35; overflow-wrap: anywhere; }
.vp-bad strong { color: #9b2c1f; }
.vp-muted strong { color: var(--muted); }
.message-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 0.8rem; }
.message-head h3 { margin: 0.6rem 0; }
.message-head .xl8-row { margin: 0; }

/* Onglet SMS du Dashboard (07/11/2026) */
.dash-sms .dash-sms-k { margin-left: 0.4rem; }
.dash-sms-k.welcome { color: #7a5410; border-color: #e5c98f; background: #fbf1dc; }
.dash-sms-k.outage { color: var(--error); border-color: #e7b9b0; background: #f6e1dc; }
.dash-sms-st { display: inline-block; font-size: 0.8rem; font-weight: 700; border-radius: 99px; padding: 0 0.55rem; }
.dash-sms-st.ok { color: var(--moss-dark); background: #e1ebdf; }
.dash-sms-st.wait { color: var(--muted); background: #ecefe9; }
.dash-sms-st.ko { color: var(--error); background: #f6e1dc; }
.dash-sms-text { background: var(--paper); border-radius: 10px; padding: 0.5rem 0.7rem; margin: 0.4rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dash-sms-fail { color: var(--error); font-weight: 700; margin: 0.4rem 0 0; font-size: 0.9rem; }

/* Bouton Refresh du Dashboard (07/11/2026) : chargement, puis confirmation 3 s */
.dash-asof button.link:disabled { color: var(--muted); text-decoration: none; cursor: progress; }
.dash-asof .dash-updated { font-weight: 700; color: var(--moss-dark); }
.dash-asof .dash-updating { font-style: italic; } /* derniers chiffres affichés, calcul en cours (13/11/2026) */
.dash-asof.flash { color: var(--moss-dark); background: #e1ebdf; border-radius: 8px; transition: background 0.3s; }
.dash-asof { transition: background 0.6s; padding: 0.1rem 0.3rem; margin-left: -0.3rem; }

/* Alerte de crédits SMS (07/11/2026) : message rouge au-dessus des onglets du Dashboard, tarifs par pays */
.dash-alert { background: #f6e1dc; color: var(--error); border-left: 4px solid var(--error); border-radius: 10px; padding: 0.6rem 0.8rem; margin: 0 0 0.8rem; }
.dash-alert strong { display: block; }
.dash-alert a { color: var(--error); font-weight: 700; }
.dash-answer strong.dash-low { color: var(--error); }
.dash-sms-rates { margin-top: 1rem; }
.dash-sms-rates summary { cursor: pointer; }
.dash-sms-rates table { margin-top: 0.4rem; }

/* « Mon compte » : confirmation avant de décocher un e-mail ; page de désinscription, « dernier e-mail » (07/11/2026). */
.mail-confirm { background: #fbf1dc; border: 1.5px solid #e5c98f; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.mail-confirm p { margin: 0; }
.mail-confirm-q { font-weight: 700; color: #6b4a10; }
.mail-confirm-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mail-keep { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mail-keep p { margin: 0; }

/* Bêta des binômes (maquette validée le 07/11/2026) : pastille « Bêta » de l'en-tête (« β » sur téléphone), bandeau
   ocre sous les onglets, cinq onglets (intitulés plus petits sur téléphone), interrupteur du Dashboard. */
.beta-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.3rem 0.2rem 0.6rem; border: 1.5px solid var(--ochre); border-radius: 999px; background: #fbf1dc; color: #6b4a12; font-weight: 700; font-size: 0.8rem; }
.beta-short { display: none; }
@media (max-width: 40rem) { .beta-long { display: none; } .beta-short { display: inline; } .beta-pill { padding: 0.2rem 0.25rem 0.2rem 0.45rem; } }
.beta-switch { position: relative; width: 34px; height: 20px; flex: none; padding: 0; border: 0; border-radius: 999px; background: #b9c0b5; cursor: pointer; transition: background 0.2s; }
.beta-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.beta-switch[aria-checked="true"] { background: var(--moss); }
.beta-switch[aria-checked="true"]::after { transform: translateX(14px); }
.beta-switch:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .beta-switch, .beta-switch::after { transition: none; } }
.beta-band { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.3rem 0 0.8rem; padding: 0.55rem 0.7rem; border: 1.5px solid #e5c98f; border-radius: 10px; background: #fbf1dc; color: #4d3608; font-size: 0.88rem; }
.beta-band p { margin: 0; flex: 1; }
.beta-band .close { border: 0; background: none; color: #6b4a12; font-size: 1rem; padding: 0 0.2rem; cursor: pointer; }
@media (max-width: 39.99rem) { .section-tabs.five a { font-size: 0.7rem; padding-left: 0; padding-right: 0; } }
@media (max-width: 23rem) { .section-tabs.five a { font-size: 0.64rem; } }
.dash-m-row .dash-switch { min-height: 0; margin-left: 0.5rem; vertical-align: middle; }

/* Binômes (maquettes validées le 07/11/2026) : carte verticale dorée (reflets lents : dégradés + filtre SVG #tc-liquid)
   ou grise et mate avec la place vide en pointillés ; dos brun à liseré doré ; page de l'onglet sur fond sombre. */
.tc { --w: 236px; --gold-ink: #3b2706; --gold-sub: #5e4210; position: relative; width: var(--w); max-width: 100%; aspect-ratio: 5 / 7; border-radius: calc(var(--w) * 0.075); overflow: hidden; isolation: isolate; color: var(--gold-ink); font-size: calc(var(--w) * 0.058); line-height: 1.25; flex: none; text-align: center; }
.tc-base { position: absolute; inset: 0; background: linear-gradient(150deg, #d7d9d3, #a9ada5 55%, #c5c8c1); z-index: -2; }
.tc-gl { position: absolute; inset: 0; z-index: -1; }
.tc-foil { position: absolute; inset: -30px; background: repeating-radial-gradient(circle at 35% 30%, #fff0a8 0, #f0c552 9px, #b07a1f 15px, #e3ac3c 21px, #fff0a8 28px), linear-gradient(135deg, #f9e27d, #c8902a); background-size: 260% 260%; filter: url(#tc-liquid) saturate(1.1); animation: tc-swirl 14s ease-in-out infinite alternate; }
.tc-sheen { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 252, 225, 0.65) 46%, transparent 62%); background-size: 300% 100%; mix-blend-mode: soft-light; animation: tc-sheen 5.5s ease-in-out infinite; }
@keyframes tc-swirl { 0% { background-position: 0% 0%; } 50% { background-position: 70% 40%; } 100% { background-position: 30% 100%; } }
@keyframes tc-sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -60% 0; } }
.tc-gold { box-shadow: 0 0 0 1px rgba(255, 220, 130, 0.6), 0 0 calc(var(--w) * 0.12) rgba(255, 190, 60, 0.45); }
.tc-grey { color: #2b302a; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.12); }
.tc-in { position: absolute; inset: 0; padding: 6% 6% 5%; display: flex; flex-direction: column; gap: 4%; }
.tc-ph { height: 62%; flex: none; border-radius: 0.6em; overflow: hidden; display: flex; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.tc-face { flex: 1; overflow: hidden; display: grid; place-items: center; background: var(--moss); color: #fff; font-weight: 700; font-size: 2.1em; position: relative; }
.tc-face + .tc-face { border-left: 2px solid rgba(255, 236, 170, 0.9); }
.tc-grey .tc-face + .tc-face { border-left: 2px dashed #8d938a; }
.tc-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-face img:not([src]) { visibility: hidden; }
.avatar img:not([src]) { visibility: hidden; } /* photo en attente dans la file : pas de cadre gris du navigateur */ /* photo qui attend son tour (photoqueue.js) : pas de cadre gris du navigateur */
.tc-face.tc-empty { background: transparent; color: #7d847a; font-size: 2.6em; font-weight: 400; box-shadow: inset 0 0 0 2px #8d938a; border-radius: 0.25em; outline: 2px dashed #8d938a; outline-offset: -10px; }
.tc-txt { display: flex; flex-direction: column; gap: 0.15em; min-width: 0; }
.tc-nm { position: relative; display: flex; gap: 0.4em; padding-top: 0.35em; }
.tc-nm b { flex: 1; min-width: 0; text-align: center; font-size: 1.08em; line-height: 1.2; overflow-wrap: break-word; }
.tc-nm b.tc-gh { font-weight: 400; font-style: italic; }
.tc-fn, .tc-ln { display: block; }
.tc-ln { font-weight: 400; font-size: 0.83em; color: var(--gold-sub); }
.tc-grey .tc-ln { color: #4f554d; }
.tc-ring { position: absolute; left: 50%; top: 0; transform: translate(-50%, -55%); width: 2.1em; height: 2.1em; border-radius: 50%; background: #2a1f00; display: grid; place-items: center; box-shadow: 0 0 0 2px #ffe08a; }
.tc-grey .tc-ring { background: #4a5048; box-shadow: 0 0 0 2px #c9ccc5; }
.tc-ring svg { width: 78%; height: 78%; }
/* Anneaux qui s'allument (maquette validée le 16/11/2026). Carte dorée sans devise (tc-ring-off) : médaillon clair en
   pointillés, anneaux bruns séparés ; ta carte respire (tc-ring-call). Avec devise (tc-ring-on) : anneaux dorés enlacés
   et lueur ; à chaque retour au recto, ils se détachent (apart, sans transition pendant que le dos est montré) puis se
   rejoignent avec un éclat (tc-burst). */
.tc-ring .r1, .tc-ring .r2 { transform-box: fill-box; transform-origin: center; transition: transform 0.9s cubic-bezier(0.3, 1.45, 0.5, 1), stroke 0.6s; }
.tc-ring .ov { transition: opacity 0.3s 0.6s; }
.tc-ring.tc-ring-on { box-shadow: 0 0 0 2px #ffe08a, 0 0 0.5em 0.1em rgba(255, 200, 80, 0.75); transition: background 0.6s, box-shadow 0.8s; }
.tc-ring.tc-ring-off { background: rgba(255, 246, 214, 0.55); box-shadow: none; border: 2px dashed #7a5a1c; transition: background 0.6s, box-shadow 0.8s; }
.tc-ring-off .r1, .tc-ring.apart .r1 { transform: translateX(-2.6px) scale(0.72); }
.tc-ring-off .r2, .tc-ring.apart .r2 { transform: translateX(2.6px) scale(0.72); }
.tc-ring-off .r1, .tc-ring-off .r2 { stroke: #7a5a1c !important; }
.tc-ring-off .ov, .tc-ring.apart .ov { opacity: 0; transition-delay: 0s; }
.tc-ring.tc-ring-on.apart { box-shadow: 0 0 0 2px #ffe08a; }
.tc-ring.tc-instant, .tc-ring.tc-instant .r1, .tc-ring.tc-instant .r2, .tc-ring.tc-instant .ov { transition: none; }
.tc-ring-call { animation: tc-breathe 2.6s ease-in-out infinite; }
@keyframes tc-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 224, 138, 0); } 50% { box-shadow: 0 0 0 0.35em rgba(255, 224, 138, 0.55); } }
.tc-burst { position: absolute; inset: -2px; border-radius: 50%; pointer-events: none; opacity: 0; }
.tc-burst.go { animation: tc-ring-burst 1.1s ease-out 0.75s both; }
@keyframes tc-ring-burst { 0% { opacity: 1; transform: scale(0.8); box-shadow: 0 0 0 2px #fff3c4, 0 0 14px 6px rgba(255, 210, 90, 0.9); } 100% { opacity: 0; transform: scale(3.2); box-shadow: 0 0 0 1px #ffe08a, 0 0 26px 10px rgba(255, 200, 80, 0); } }
.tp-grid .tc-ring { width: 2.6em; height: 2.6em; }
/* Ta carte sans devise : le pied invite à écrire au dos ; au dos, la place de la devise en pointillés. */
.tc-stats.tc-invite { display: flex; align-items: center; justify-content: center; gap: 0.3em; color: #5a3a00; }
.tc-stats.tc-invite svg { width: 1.1em; height: 1.1em; flex: none; }
.tc-bk-slot { border: 2px dashed rgba(227, 172, 60, 0.7); border-radius: 0.6em; padding: 0.7em 0.5em; color: #d9c48f; font-size: 0.95em; line-height: 1.3; display: flex; flex-direction: column; align-items: center; gap: 0.4em; }
.tc-bk-slot svg { width: 1.6em; height: 1.6em; color: #ffe08a; }
.tc-bk-slot button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: #ffe08a; cursor: pointer; text-decoration: underline; text-underline-offset: 0.15em; }
.tc-bk-q.tc-typing::after { content: "|"; font-style: normal; color: #ffe08a; animation: tc-caret 0.8s steps(1) infinite; }
@keyframes tc-caret { 50% { opacity: 0; } }
.tc-txt > span { color: #4f554d; font-size: 0.86em; }
.tc-stats { margin-top: auto; display: flex; justify-content: center; border-top: 1px solid rgba(59, 39, 6, 0.25); padding-top: 0.5em; font-weight: 700; font-size: 0.9em; }
.tc-grey .tc-stats { border-color: rgba(0, 0, 0, 0.15); color: #4f554d; }
.tc-reveal .tc-gl { animation: tc-reveal 1.8s cubic-bezier(0.3, 0.1, 0.2, 1) both; }
@keyframes tc-reveal { 0% { clip-path: circle(0% at 75% 25%); } 100% { clip-path: circle(150% at 75% 25%); } }
.tc-reveal { animation: tc-burst 2.2s ease-out 0.4s both; }
@keyframes tc-burst { 0% { box-shadow: 0 0 0 0 rgba(255, 200, 80, 0.9); } 100% { box-shadow: 0 0 0 1px rgba(255, 220, 130, 0.6), 0 0 28px rgba(255, 190, 60, 0.45); } }
.tc-pop { animation: tc-pop 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) 0.2s both; }
@keyframes tc-pop { 0% { transform: scale(0.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
/* Dos */
.tc-flip { --w: 236px; display: grid; width: var(--w); max-width: 100%; perspective: 1200px; cursor: pointer; border-radius: calc(var(--w) * 0.075); }
.tc-flip:focus-visible { outline: 3px solid #ffe14d; outline-offset: 4px; }
.tc-flip-in { display: grid; transition: transform 0.8s cubic-bezier(0.3, 0.1, 0.2, 1); transform-style: preserve-3d; }
.tc-flip-in > .tc { grid-area: 1 / 1; width: 100%; --w: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tc-flip-in > .tc-back { transform: rotateY(180deg); }
.tc-flip.tc-flipped .tc-flip-in { transform: rotateY(180deg); }
.tc-back { background: radial-gradient(120% 80% at 50% 0%, #4a3510, #1c1406 75%); color: #f6e6b8; box-shadow: 0 0 0 1px rgba(255, 220, 130, 0.6), 0 0 calc(var(--w) * 0.12) rgba(255, 190, 60, 0.35); }
.tc-back::after { content: ""; position: absolute; inset: 5px; border: 1.5px solid rgba(227, 172, 60, 0.7); border-radius: calc(var(--w) * 0.06); pointer-events: none; }
.tc-bk { position: absolute; inset: 0; padding: 9% 9% 7%; display: flex; flex-direction: column; gap: 0.7em; }
.tc-bk-who { display: flex; justify-content: center; gap: 0.4em; }
.tc-bk-who .tc-face { flex: none; width: 2.6em; height: 2.6em; border-radius: 50%; border: 0; box-shadow: 0 0 0 2px #e3ac3c; font-size: 0.85em; }
.tc-bk-who .tc-face + .tc-face { border-left: 0; }
.tc-bk-k { font-size: 0.62em; font-weight: 700; letter-spacing: 0.12em; color: #e3ac3c; }
.tc-bk-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.7em; min-height: 0; }
.tc-bk-q { margin: 0; font-style: italic; font-size: 1.15em; line-height: 1.35; text-wrap: balance; overflow-wrap: break-word; }
.tc-bk-q.tc-bk-empty { font-style: normal; color: #b9a77c; font-size: 1em; }
.tc-bk-sig { font-size: 0.78em; color: #d9c48f; }
.tc-bk-foot { margin-top: auto; font-size: 0.7em; color: #b9a77c; border-top: 1px solid rgba(227, 172, 60, 0.35); padding-top: 0.5em; }
.tc-back .xl8-row { justify-content: center; margin: -0.3em 0 0; font-size: 0.72em; }
.tc-back .xl8-mini { background: rgba(0, 0, 0, 0.25); border-color: rgba(227, 172, 60, 0.7); color: #ffe08a; font-size: 1em; }
.tc-back .xl8-code { background: #f6e6b8; color: #1c1406; }
.tc-back .xl8-mini-note { color: #b9a77c; font-size: 1em; }
.tc-back .xl8-mini-note button { border: 0; background: none; padding: 0; color: #ffe08a; text-decoration: underline; font: inherit; cursor: pointer; }
.tc-back .xl8-error { color: #ffb4a3; }
/* Réactions à la devise (maquette validée le 19/11/2026) : au dos, couleurs du dos ; bandeau et liste hors de la carte. */
.tc-flip { position: relative; }
.tc-back .rx { justify-content: center; flex-wrap: nowrap; gap: 0.2rem; margin: 0; }
.tc-back .rx-chip[hidden] { display: none; }
.tc-back .rx-chip { white-space: nowrap; }
.tc-flip:has(> .rx-who:not([hidden])), .tc-flip:has(> .rx-pick) { z-index: 16; }
.tc-back .rx-chip, .tc-back .rx-add { height: 24px; padding: 0 0.35rem; gap: 0.2rem; font-size: 0.8rem; }
.tc-back .rx-chip { background: rgba(0, 0, 0, 0.25); border-color: rgba(227, 172, 60, 0.7); color: #ffe08a; }
.tc-back .rx-chip.mine { background: rgba(255, 224, 138, 0.16); border: 2px solid #ffe08a; color: #ffe08a; font-weight: 700; }
.tc-back .rx-add { border-color: rgba(227, 172, 60, 0.6); color: #d9c48f; }
.tc-back .rx-add svg { width: 15px; height: 15px; }
.tc-back .rx-add:hover, .tc-back .rx-add:focus-visible { color: #ffe08a; border-color: #ffe08a; }
.tc-flip > .rx-pick:not(.rx-pick-touch) { right: auto; bottom: auto; left: 50%; transform: translateX(-50%); }
.tc-flip > .rx-who { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: max(100%, 220px); z-index: 15; margin: 0; cursor: auto; text-align: left; box-shadow: 0 6px 18px rgba(30, 42, 34, 0.18); }
@media (prefers-reduced-motion: reduce) { .tc-foil, .tc-sheen, .tc-reveal, .tc-reveal .tc-gl, .tc-pop, .tc-ring-call, .tc-burst.go { animation: none; } .tc-flip-in, .tc-ring, .tc-ring .r1, .tc-ring .r2, .tc-ring .ov { transition: none; } }
/* Page de l'onglet */
.tp { --sand: #f5eedf; --sand-line: #e6d8b8; margin-top: 0.2rem; }
.tp h1 { margin: 0 0 0.2rem; font-size: 1.55rem; }
.tp h2 { margin: 1.2rem 0 0.6rem; font-size: 1.1rem; }
.tp-help { color: var(--muted); font-size: 0.9rem; margin: 0; }
.tp-mine { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; justify-content: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.tp-mine > .tc, .tp-mine > .tc-flip { --w: 210px; }
.tp-side { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tp-side p { margin: 0; }
/* Binôme formé, ligne courte (maquette A3 validée le 08/11/2026) : vos deux photos, la phrase sur une ligne, le crayon. */
.tp-mine.tp-mini { display: block; padding: 0.5rem 0.7rem; border-radius: 12px; }
.tp-mini-row { display: flex; align-items: center; gap: 0.6rem; }
.tp-duo { display: flex; flex: none; }
.tp-duo .avatar { width: 30px; height: 30px; font-size: 0.7rem; box-shadow: 0 0 0 2px var(--card); }
.tp-duo .avatar + .avatar { margin-left: -8px; }
.tp-mini-q { flex: 1; min-width: 0; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-mini-q.tp-mini-empty { font-style: normal; white-space: normal; color: var(--muted); }
.tp-mini .qa-icon { margin: 0; flex: none; }
.tp-mini-btn { flex: none; padding: 0.35rem 0.9rem; font-size: 0.9rem; }
.tp-mini .tp-editor, .tp-mini .tp-note, .tp-mini .tp-err { margin: 0.6rem 0 0; }
.tp-note { font-size: 0.9rem; color: var(--muted); }
.tp-err { color: var(--error); font-size: 0.9rem; }
.tp-gold-btn { display: inline-block; font: inherit; font-weight: 700; border-radius: 999px; padding: 0.6rem 1.2rem; cursor: pointer; background: var(--moss); color: #fff; border: 2px solid var(--moss); text-decoration: none; }
.tp-line-btn { font: inherit; font-weight: 700; border-radius: 999px; padding: 0.5rem 1.1rem; cursor: pointer; background: transparent; color: var(--moss-dark); border: 2px solid var(--moss); }
.tp-link-btn { font: inherit; font-size: 0.92rem; background: none; border: 0; color: var(--moss-dark); text-decoration: underline; padding: 0; cursor: pointer; }
.tp button:disabled { opacity: 0.6; cursor: wait; }
.tp :focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.tp a.tp-gold-btn { color: #fff; }
.tp-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.tp-ask { border: 1.5px solid #e5c98f; background: #fbf1dc; border-radius: 12px; padding: 0.7rem 0.8rem; width: 100%; box-sizing: border-box; }
.tp-editor, .tp-panel, .tp-choose { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
.tp-panel > .tp-label, .tp-panel > .tp-list, .tp-editor > .tp-label { align-self: stretch; }
.tp-editor[hidden], .tp-panel[hidden] { display: none; }
.tp-editor { position: relative; }
.tp-editor-close { position: absolute; top: -0.6rem; right: -0.4rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 1.1rem; color: var(--muted); cursor: pointer; }
.tp-editor-close:hover, .tp-editor-close:focus-visible { background: #dfe9dd; }
.tp-label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; color: var(--muted); }
.tp-hint { font-size: 0.8rem; line-height: 1.35; }
.tp textarea, .tp input[type="search"] { font: inherit; width: 100%; box-sizing: border-box; padding: 0.5rem 0.65rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.tp-count { font-size: 0.8rem; color: var(--muted); align-self: flex-end; }
/* Devise à deux (maquette BINOMES-devise-a-deux-maquette.html validée le 18/11/2026) : espace commun du binôme, fil
   façon WhatsApp (à droite ce que j'écris, à gauche l'autre ; fond beige, bulles à pointe, heure en bas). */
.dv-room { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding: 0.9rem; border: 1px solid #ecd9ae; border-radius: 12px; background: linear-gradient(#fffaf0, var(--card) 90px); }
.tp-mine.tp-mini.tp-mini-room { padding: 0; border: 0; background: none; }
.tp-side .dv-room { margin-top: 0.4rem; }
.dv-head { display: flex; gap: 0.7rem; align-items: center; }
.dv-pair { display: flex; align-items: center; flex: none; }
.dv-pair .avatar { width: 40px; height: 40px; font-size: 0.8rem; box-shadow: 0 0 0 2px #fff; }
.dv-ring { position: relative; z-index: 1; margin: 0 -6px; font-size: 0.75rem; }
.dv-ring .tc-ring { position: relative; left: auto; top: auto; transform: none; width: 24px; height: 24px; }
.dv-ring .tc-ring svg { width: 78%; height: 78%; }
.dv-h { margin: 0; font-weight: 700; font-size: 1.05rem; }
.dv-sub { margin: 0.1rem 0 0; font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
.dv-steps { display: flex; gap: 0.3rem; list-style: none; margin: 0.8rem 0 0; padding: 0; counter-reset: dvst; }
.dv-steps li { flex: 1; counter-increment: dvst; font-size: 0.78rem; font-weight: 700; color: var(--muted); text-align: center; padding: 0.25rem 0.2rem; border-radius: 999px; background: #eef1ea; }
.dv-steps li::before { content: counter(dvst) ". "; }
.dv-steps li.on { background: #e3ac3c; color: #fff; }
.dv-steps li.done { background: #dfe9dd; color: var(--moss-dark); }
.dv-lang { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0.7rem 0 0; padding: 0.5rem 0.65rem; background: #eef4f7; border: 1px solid #cfe0e8; border-radius: 10px; font-size: 0.86rem; line-height: 1.55; color: #2c4450; }
.dv-lang-ico { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #2c4450; color: #fff; font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; }
.xl8-mini.dv-pill { cursor: default; vertical-align: 1px; padding: 0 0.45rem 0 0.3rem; font-size: 0.74rem; }
.dv-turn { margin: 0.7rem 0 0; font-size: 0.92rem; font-weight: 700; }
.dv-ideas-k { margin: 0.7rem 0 0.4rem; font-size: 0.9rem; color: var(--muted); }
.dv-others { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.dv-other { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.5rem 0.65rem; background: #fbf4e3; border: 1px solid #ecd9ae; border-radius: 10px; }
.dv-other .tp-duo { margin-top: 0.15rem; }
.dv-other-t { min-width: 0; }
.dv-oq { margin: 0; font-style: italic; font-weight: 700; overflow-wrap: anywhere; }
.dv-other .xl8-row { margin: 0.2rem 0 0; }
.dv-on { margin: 0.1rem 0 0; font-size: 0.78rem; color: var(--muted); }
.dv-more { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.6rem; }
.dv-thread { list-style: none; margin: 0.7rem 0 0; padding: 0.7rem 0.6rem; display: flex; flex-direction: column; gap: 0.45rem; background: #efeae2; border-radius: 10px; }
.dv-item { display: flex; }
.dv-me { justify-content: flex-end; }
.dv-body { position: relative; max-width: 85%; min-width: 0; padding: 0.35rem 0.6rem 0.3rem; border-radius: 8px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.dv-me .dv-body { background: #d9fdd3; border-top-right-radius: 0; }
.dv-them .dv-body { background: #fff; border-top-left-radius: 0; }
.dv-body::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; }
.dv-me .dv-body::before { right: -8px; background: #d9fdd3; clip-path: polygon(0 0, 100% 0, 0 100%); }
.dv-them .dv-body::before { left: -8px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.dv-phrase { margin: 0.1rem 0 0.35rem; padding: 0.35rem 0.6rem 0.4rem; background: #fdf6e6; border-left: 4px solid #e3ac3c; border-radius: 6px; }
.dv-me .dv-phrase { background: #f4fbef; }
.dv-k { margin: 0 0 0.1rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9a6a12; }
.dv-q { font-style: italic; font-weight: 700; font-size: 1.08rem; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.dv-word { margin: 0; font-size: 0.92rem; overflow-wrap: anywhere; white-space: pre-line; }
.dv-body .xl8-row { margin: 0.25rem 0 0; }
.dv-body .xl8-mini { background: rgba(255, 255, 255, 0.7); }
.dv-time { display: block; text-align: right; font-size: 0.7rem; color: #667781; margin-top: 0.1rem; }
.dv-room .tp-btns, .dv-room .tp-editor { margin-top: 0.7rem; }
.dv-room > .tp-note { margin: 0.6rem 0 0; }
.tp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: calc(5.6 * (34px + 0.8rem) + 5 * 4px); overflow-y: auto; }
/* Liste des binômes possibles (18/11/2026) : hauteur de 5,6 lignes (avatar 32 px + bordures, marges 0,4rem, écart
   4 px), la sixième coupée un peu au-delà de la moitié ; court fondu en bas tant qu'il reste des noms plus bas. */
.tp-list.is-more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 0.9rem), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 0.9rem), transparent); }
.tp-list button { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.4rem 0.5rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.tp-list button:hover { border-color: var(--moss); }
.tp-counter { display: flex; flex-direction: column; gap: 6px; margin-top: 1.2rem; }
.tp-counter p { margin: 0; }
.tp-counter b { font-size: 1.35rem; }
.tp-bar { height: 14px; border-radius: 99px; background: #e8dfcb; overflow: hidden; display: flex; }
.tp-bar i { position: relative; overflow: hidden; display: block; height: 100%; background: #b9c0b5; animation: tp-grow 1.2s calc(1.4s - var(--tp-t, 0s)) cubic-bezier(.45, 0, .2, 1) backwards; }
/* L'or (cartes allumées) se remplit d'abord, puis le gris (cartes qui attendent) ; maquette validée le 07/11/2026. */
.tp-bar .tp-gold { background: linear-gradient(90deg, #c8902a, #ffd66b); animation-duration: 2.2s; animation-delay: calc(.25s - var(--tp-t, 0s)); }
@keyframes tp-grow { from { width: 0; } }
/* Ronds dans l'eau : partent du bord gauche de l'or et s'élargissent vers la droite en s'effaçant. */
.tp-rip { position: absolute; left: 0; top: 50%; width: 200%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .75) 86%, rgba(255, 255, 255, 0) 100%);
  transform: translate(-50%, -50%) scale(0); opacity: 0; animation: tp-rip 4.5s cubic-bezier(.2, .6, .35, 1) infinite; }
.tp-rip:nth-child(2) { animation-delay: 1.5s; }
.tp-rip:nth-child(3) { animation-delay: 3s; }
@keyframes tp-rip { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 8% { opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tp-bar i { animation: none; } .tp-rip { display: none; } }
.tp-sub { margin: 1.2rem 0 0.6rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
/* Sous « Allumés » : comment voir le dos des cartes (08/11/2026). */
.tp-flip-hint { display: flex; align-items: center; gap: 0.35rem; margin: -0.2rem 0 0.7rem; font-size: 0.95rem; color: var(--ink); }
.tp-flip-hint svg { width: 16px; height: 16px; flex: none; color: #b9801f; }
/* Variante 2 validée le 08/11/2026 : le ↻ fait un tour toutes les 3,5 s, tant que le membre n'a retourné aucune carte. */
.tp-flip-hint.is-spin svg { width: 20px; height: 20px; animation: tp-turn 3.5s cubic-bezier(0.5, 0, 0.3, 1) infinite; }
@keyframes tp-turn { 0% { transform: rotate(0); } 30% { transform: rotate(360deg); } 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tp-flip-hint.is-spin svg { animation: none; } }
.tp-flip-hint + .tp-flip-hint { margin-top: -0.45rem; }
.tp-flip-hint .tc-ring { position: relative; left: auto; top: auto; transform: none; width: 20px; height: 20px; flex: none; font-size: 1rem; }
.tp-flip-hint .tc-ring svg { width: 78%; height: 78%; }
.tp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; justify-items: center; }
@media (min-width: 40rem) { .tp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; } }
.tp-grid > .tc-flip, .tp-cell { --w: 100%; width: 100%; max-width: 210px; }
.tp-cell > .tc { --w: 100%; }
/* Cartes du mur : à la largeur de leur colonne (unités de conteneur au lieu de --w en pixels). */
.tp-grid > .tc-flip, .tp-cell { container-type: inline-size; }
.tp-grid .tc { font-size: 5.8cqi; border-radius: 7.5cqi; box-shadow: 0 0 0 1px rgba(255, 220, 130, 0.6), 0 0 12cqi rgba(255, 190, 60, 0.4); }
.tp-grid .tc-grey { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.12); }
.tp-grid > .tc-flip { border-radius: 16px; }
.tp-grid .tc-back::after { border-radius: 6cqi; }
.tp-me { outline: 3px solid var(--ochre); outline-offset: 4px; border-radius: 16px; }
/* Nouveaux binômes (maquette validée le 10/11/2026) : point ocre qui pulse dans le coin de la carte, liseré sable pour
   le détacher du doré ; bande sous les onglets (classes de la bande de la Carte). */
.tc-flip.tp-new { position: relative; }
.tp-new-dot { position: absolute; top: -7px; right: -7px; z-index: 5; width: 16px; height: 16px; border-radius: 50%; background: var(--ochre); box-shadow: 0 0 0 3px var(--sand); animation: tp-new-pulse 2s ease-out infinite; pointer-events: none; }
@keyframes tp-new-pulse { 0% { box-shadow: 0 0 0 3px var(--sand), 0 0 0 3px rgba(192, 138, 46, 0.7); } 100% { box-shadow: 0 0 0 3px var(--sand), 0 0 0 14px rgba(192, 138, 46, 0); } }
.tp-grid > .tc-flip.tp-flash { animation: tp-flash 2.6s ease-out; }
@keyframes tp-flash { 0%, 60% { box-shadow: 0 0 0 4px rgb(63, 107, 69), 0 0 0 12px rgba(63, 107, 69, 0.25); } 100% { box-shadow: 0 0 0 4px rgba(63, 107, 69, 0), 0 0 0 12px rgba(63, 107, 69, 0); } }
/* Carte ouverte depuis la Salle (16/11/2026) : anneau épais qui bat trois fois puis reste, 6 s en tout, pour la repérer d'un coup d'œil. */
.tp-grid > .tc-flip.tp-flash-long { z-index: 2; box-shadow: 0 0 0 5px rgb(63, 107, 69), 0 0 0 14px rgba(63, 107, 69, 0.3); animation: tp-flash-long 1.1s ease-in-out 3; }
@keyframes tp-flash-long { 0%, 100% { box-shadow: 0 0 0 5px rgb(63, 107, 69), 0 0 0 14px rgba(63, 107, 69, 0.3); transform: scale(1); } 50% { box-shadow: 0 0 0 7px rgb(63, 107, 69), 0 0 0 26px rgba(63, 107, 69, 0.18); transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) { .tp-grid > .tc-flip.tp-flash-long { animation: none; } }
@media (prefers-reduced-motion: reduce) { .tp-grid > .tc-flip.tp-flash { animation: none; box-shadow: 0 0 0 4px rgb(63, 107, 69), 0 0 0 12px rgba(63, 107, 69, 0.25); } }
.tp-new-icon { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ochre); }
.tp-new-band .tp-duo { margin-left: 2px; }
.tp-theirs { background: #f5eedf; border: 1px solid #e6d8b8; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 1.2rem; }
.tp-theirs h3 { margin: 0; font-size: 1.05rem; align-self: flex-start; }
.tp-theirs > .tc, .tp-theirs > .tc-flip { --w: 220px; }
.tp-account { margin: 0.2rem 0 0.8rem; }
.tp-list .avatar { width: 32px; height: 32px; flex: none; font-size: 0.7rem; }
.tp-arrive { font-size: 1.25rem; font-weight: 700; }
.tp-invite, .tp-invite-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
.tp-msg { align-self: stretch; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.75rem; font-size: 0.92rem; line-height: 1.45; overflow-wrap: anywhere; }
.tp-link { color: var(--moss-dark); font-weight: 700; }
.tp-chans { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tp-chan { font: inherit; font-size: 0.9rem; font-weight: 700; border-radius: 999px; padding: 0.4rem 0.9rem; border: 2px solid var(--moss); background: transparent; color: var(--moss-dark); text-decoration: none; cursor: pointer; }
.tp-chan:hover { background: #dfe9dd; }
/* Dashboard › Features › Tandems */
.dash-tlist { list-style: none; margin: 0.6rem 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dash-tlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 0.92rem; }
.dash-tnames { font-weight: 700; }
.dash-tpill { font-size: 0.75rem; font-weight: 700; padding: 0.05rem 0.55rem; border-radius: 99px; border: 1.5px solid; }
.dash-tpill.lit { color: #7a5410; border-color: #e3ac3c; background: #fbf1dc; }
.dash-tpill.wait { color: var(--muted); border-color: var(--line); }
.dash-tpill.link { color: #2f5334; border-color: #a9c4ad; background: #eef4ee; }
.dash-topen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.dash-tconfirm { margin-top: 10px; background: #fbf1dc; border: 1.5px solid #e5c98f; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.dash-tconfirm p { margin: 0; }
.dash-tbtns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* Mur des binômes sur fond sable (variante B validée le 07/11/2026) ; « Ton binôme est-il déjà sur le site ? ». */
.tp-wall { background: var(--sand); border: 1px solid var(--sand-line); border-radius: 16px; padding: 4px 16px 18px; margin-top: 1.2rem; }
.tp-wall .tp-counter { margin-top: 0.8rem; }
.tp-pick { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.tp-pick-panel:empty { display: none; }

/* Dashboard › Find a member (maquette validée le 08/11/2026) */
.dash-find { position: relative; margin: 0 0 0.9rem; }
.dash-find input { width: 100%; font: inherit; font-size: 0.95rem; padding: 0.5rem 0.8rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.dash-find-res { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 0.3rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(30, 42, 34, 0.12); }
.dash-find-res li { display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; align-items: baseline; padding: 0.4rem 0.5rem; border-radius: 8px; }
.dash-find-res li:has(a):hover { background: #e6ece2; }
/* Toute la ligne ouvre la fiche (08/11/2026), pas seulement le nom : le lien couvre la ligne. */
.dash-find-res li:has(a) { position: relative; cursor: pointer; }
.dash-find-res li a.dash-who::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.dash-find-res .dash-sub { display: inline; }
.dash-tag.never { color: #9b2f22; border-color: currentColor; }
.dash-tag.pending { color: #8a5a10; border-color: currentColor; }
/* Fiche : appareils ; Live et fiche : boutons de jour */
.dash-devs { list-style: none; margin: 0; padding: 0; text-align: right; }
.dash-devs li { line-height: 1.35; }
.dash-daynav { align-items: center; }
.dash-day-pick { font: inherit; font-size: 0.85rem; padding: 0.15rem 0.5rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); }
.chip:disabled { opacity: 0.4; cursor: default; }

/* Questions et commentaires : après « Publier » (maquette validée le 08/11/2026) */
.qa-posted { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.6rem; color: var(--moss-dark); font-weight: 700; }
.qa-posted svg { width: 1.1em; height: 1.1em; }

/* « View as » (maquette validée le 08/11/2026) : bandeau sombre en tête de toutes les pages, message « Lecture seule ». */
.view-as-band { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem max(16px, env(safe-area-inset-left, 0px)); background: var(--ink); color: #fff; font-size: 0.9rem; outline: 2.5px solid var(--ochre); outline-offset: -2.5px; }
.view-as-band p { margin: 0; flex: 1; min-width: 0; }
.view-as-band small { display: block; opacity: 0.75; font-size: 0.78rem; }
.view-as-band button { font: inherit; font-weight: 700; font-size: 0.85rem; min-height: 36px; padding: 0.3rem 0.9rem; border-radius: 999px; border: 1.5px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.view-as-band .avatar { flex: none; width: 30px; height: 30px; font-size: 0.75rem; }
.view-as-toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1000; margin: 0; max-width: calc(100% - 32px); padding: 0.65rem 1rem; border-radius: 10px; background: var(--ink); color: #fff; font-size: 0.92rem; box-shadow: 0 0 0 2.5px var(--ochre), 0 6px 20px rgba(0,0,0,.25); }
.dash-viewas { display: flex; align-items: center; gap: 0.4rem 0.8rem; flex-wrap: wrap; margin: 0.4rem 0 0.8rem; }
.dash-viewas .dash-sub { margin: 0; }

/* Dashboard › Features › Tab dots (08/11/2026). */
.td-scroll { overflow-x: auto; }
.td-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.td-table th { text-align: left; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 0 0.4rem 0.4rem; }
.td-table td { padding: 0.5rem 0.4rem; border-top: 1px solid var(--line); vertical-align: middle; }
.td-tab { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; }
.td-tab .tab-dot { margin: 0; }
.td-tab .tab-dot.is-off { background: #a9b2a6; animation: none; }
.td-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.td-bar { width: 28%; }
.td-bar-track { display: block; height: 8px; min-width: 60px; border-radius: 999px; background: #e7d4ad; overflow: hidden; }
.td-bar-track i { display: block; height: 100%; background: var(--moss); }
.td-names td { border-top: 0; padding-top: 0; font-size: 0.85rem; }
.td-table .hint-last { display: block; }

/* Dashboard › fiche › Sign-ins (maquette validée le 08/11/2026) : une ligne par connexion, pastilles des faits. */
.dash-si { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.dash-si li { border-top: 1px solid var(--line); padding-top: 0.55rem; display: grid; gap: 0.25rem; }
.dash-si p { margin: 0; }
.dash-si-facts { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.dash-si-facts span { font-size: 0.78rem; padding: 0.12rem 0.55rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.dash-si-facts .ok { background: #e3ece0; border-color: #b9cfb4; color: var(--moss-dark); }
.dash-si-facts .warn { background: #f7ead2; border-color: #e3c38b; color: #9a5b0b; font-weight: 700; }
.dash-si-facts .bad { background: #f6e1dd; border-color: #e3b1a8; color: var(--error); font-weight: 700; }
.dash-si-note { font-size: 0.85rem; }
.dash-si-note b { color: #9a5b0b; }

/* Journal du navigateur (maquette validée le 10/11/2026) : erreurs, vitesse, frustration, retours. */
.dash-err-msg { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 0.78rem; color: var(--muted); overflow-wrap: anywhere; }
.dash-sub-i { font-size: 0.85rem; color: var(--muted); }
.cl-speed th small, .cl-speed td small, .cl-returns td small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.cl-speed td, .cl-returns td { text-align: right; }
.cl-good { color: var(--moss-dark); font-weight: 700; }
.cl-mid { color: #8a520a; font-weight: 700; }
.cl-bad { color: var(--error); font-weight: 700; }
.cl-tag { font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.cl-dead { background: #e6eef7; color: #1f4a7a; border-color: #b9cde4; }
.cl-rage { background: #f7ead2; color: #8a520a; border-color: #e3c38b; }
.cl-back { background: #ece8f3; color: #4b3a72; border-color: #cdc3e0; }
.cl-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; font-size: 0.82rem; color: var(--muted); }
.cl-c80 { background: #c9dcc4; } .cl-c60 { background: #d9e6d5; } .cl-c40 { background: #e7efe4; }
.cl-na { color: #8a948c; }

/* « Show on the page » (maquette validée le 10/11/2026) : onglet ?spot=<id>. */
.spot-band { position: sticky; top: 0; z-index: 1001; display: grid; gap: 0.35rem; padding: 0.6rem max(16px, env(safe-area-inset-left, 0px)); background: var(--ink); color: #fff; font-size: 0.9rem; }
.spot-band p, .spot-band ul { margin: 0; }
.spot-band ul { padding-left: 1.1rem; }
.spot-sub { color: #c9d1cb; font-size: 0.82rem; }
.spot-why { color: #f3dfb8; font-size: 0.85rem; }
.spot-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.55rem; border-radius: 999px; background: #3a4a3f; color: #fff; }
.spot-badge.ok { background: #e3ece0; color: var(--moss-dark); }
.spot-badge.warn { background: #f7ead2; color: #8a520a; }
.spot-badge.bad { background: #f6e1dd; color: var(--error); }
.spot-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.spot-btns a, .spot-btns button { font: inherit; font-size: 0.82rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid #8a948c; background: transparent; color: #fff; text-decoration: none; cursor: pointer; }
.spot-btns button { margin-left: auto; background: #fff; color: var(--ink); font-weight: 700; border: 0; }
/* Anneau et point de « Show on the page » : noms à part (11/11/2026). Du 10 au 11/11, .spot-ring et .spot-dot ici
   écrasaient ceux des conseils guidés (plus haut) : anneau et point placés par rapport à la page, voile parti dès que la
   page avait défilé, seuls le trait et la bulle restaient. */
.spot-veil { position: fixed; inset: 0; z-index: 999; }
.spot-at-ring { position: absolute; z-index: 1000; pointer-events: none; border-radius: 10px; outline: 3px solid var(--ochre); box-shadow: 0 0 0 4000px rgba(30, 42, 34, 0.4); }
.spot-at-dot { position: absolute; z-index: 1000; pointer-events: none; width: 16px; height: 16px; border-radius: 50%; background: #c0392b; border: 2px solid #fff; box-shadow: 0 0 0 6px rgba(192, 57, 43, 0.3); box-sizing: border-box; }
.spot-list { list-style: none; margin: 0.3rem 0 0; padding: 0; display: grid; gap: 0.25rem; font-size: 0.88rem; }
.spot-list .dash-tag.ok { background: #e3ece0; color: var(--moss-dark); border-color: #b9cfb4; }
.spot-list .dash-tag.warn { background: #f7ead2; color: #8a520a; border-color: #e3c38b; }
.spot-list .dash-tag.bad { background: #f6e1dd; color: var(--error); border-color: #e3b1a8; }
/* Titres des colonnes de chiffres alignés à droite, comme leurs valeurs (10/11/2026). */
.cl-speed thead th:not(:first-child), .cl-returns thead th:not(:first-child) { text-align: right; }

/* Évènements sur la Carte (maquette validée le 10/11/2026) : repère vert avec la date (les membres sont en ocre),
   puces Membres / Évènements, fiche en bas de la carte, aperçu du formulaire, bandeau « près de chez toi ». */
.ev-pin { background: none; border: 0; }
.ev-pin-in { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 8px)); display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 8px; background: var(--moss); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; border: 2px solid var(--card); box-shadow: 0 1px 4px rgba(30, 42, 34, 0.4); cursor: pointer; }
.ev-pin-in svg { width: 13px; height: 13px; }
.ev-pin-in::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--moss); border-bottom: 0; }
.map-layers { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.map-layer { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.map-layer[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.map-layer[aria-pressed="true"]::before { content: "✓"; }
.map-wrap { position: relative; }
.ev-card { position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; z-index: 500; max-height: 60%; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: 0 6px 24px rgba(30, 42, 34, 0.2); padding: 0.8rem 2.6rem 0.8rem 0.8rem; display: grid; gap: 0.7rem; }
.ev-card-x { position: absolute; top: 0.2rem; right: 0.2rem; width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.3rem; color: var(--muted); cursor: pointer; }
.ev-card-here { margin: 0; font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.ev-card-one { display: flex; gap: 0.75rem; }
.ev-card-date { flex: none; width: 3.4rem; border-radius: 10px; background: #e7d4ad; color: #6b4a12; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.3rem 0; line-height: 1.1; font-size: 0.7rem; font-weight: 700; }
.ev-card-date b { font-size: 1.4rem; }
.ev-card-body { min-width: 0; display: grid; gap: 0.15rem; }
.ev-card-body p { margin: 0; }
.ev-card-title { font-weight: 700; }
.ev-card-sub { font-size: 0.88rem; color: var(--muted); }
.ev-card-go { justify-self: start; margin-top: 0.3rem; display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; background: var(--moss); color: #fff; font-weight: 700; text-decoration: none; }
.ev-geo .label { font-weight: 700; margin: 0 0 0.3rem; }
.ev-geo-map { cursor: crosshair; }
.ev-geo-note { margin-top: 0.4rem; }
.ev-geo-warn { color: #8a520a; }
.invite.near { display: flex; gap: 0.7rem; border-left-color: var(--ochre); background: #fbefd5; }
.near-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--ochre); color: #fff; display: flex; align-items: center; justify-content: center; }
.near-text { min-width: 0; }
.near-text p { margin: 0 0 0.25rem; }
.near-title { font-weight: 700; }
.near-text a { font-weight: 700; }
/* Évènement à la une (maquette validée le 10/11/2026) : couleur de l'eau, queue de baleine animée deux fois. */
/* Bandeau du jour (maquette validée le 15/11/2026) : habillage de « À la une », bouton « Rejoindre la visio ». */
.today-band { margin: 0 0 1rem; }
.feat-text a.feat-go { margin-top: 0.35rem; background: var(--moss); color: #fff; border-radius: 999px; padding: 0.45rem 1rem; font-weight: 800; text-decoration: none; }
/* Formulaire d'un évènement en ligne (15/11/2026) : début et fin obligatoires. */
.time-req { display: none; }
.is-online .time-req { display: inline; }
.is-online .time-opt, .is-online .times-remove { display: none; }
.invite.feat { display: flex; gap: 0.75rem; background: #eaf2f3; border-color: #b8d0d6; border-left-color: #2c5562; }
.feat-tile { flex: none; width: 56px; height: 56px; border-radius: 12px; background: #d5e5ea; overflow: hidden; }
.feat-tile svg { display: block; }
.feat-date { flex: none; align-self: flex-start; width: 56px; border-radius: 12px; background: #d5e5ea; color: #1e3a44; text-align: center; padding: 6px 0; display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-size: 0.7rem; font-weight: 700; }
.feat-date b { font-size: 1.4rem; }
.feat-text { min-width: 0; }
.feat-text p { margin: 0 0 0.2rem; }
.feat-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #2c5562; }
.feat-title { font-weight: 700; line-height: 1.25; }
.feat-sub { font-size: 0.9rem; color: #4a5a50; }
.feat-text a { display: inline-block; margin-top: 0.2rem; font-weight: 700; }
.invite.feat .close { color: #2c5562; }
/* Bannière des binômes (maquette validée le 18/11/2026) : habillage de « À la une » aux couleurs des cartes ; tuile de
   56 px avec le médaillon des cartes ; petit bouton vert, à droite du texte sur ordinateur. */
.invite.tbn { display: flex; gap: 0.75rem; background: #fbf4e3; border-color: #ecd9ae; border-left-color: #e3ac3c; }
.tbn-tile { flex: none; width: 56px; height: 56px; border-radius: 12px; background: #f3e3bd; display: grid; place-items: center; font-size: 19px; }
.tbn-tile .tc-ring { position: relative; left: auto; top: auto; transform: none; }
.tbn-text { min-width: 0; flex: 1; }
.tbn-text p { margin: 0 0 0.2rem; }
.tbn-k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9a6a12; }
.tbn-title { font-weight: 700; line-height: 1.25; }
.tbn-title.tbn-plain { font-weight: 400; }
.tbn-sub { font-size: 0.9rem; color: #4a5a50; }
/* Jamais sur deux lignes (18/11/2026 : « Unser Band im Raum ansehen » coupé en deux sur téléphone ; intitulés raccourcis). */
.tbn-text a.tbn-btn { display: inline-block; white-space: nowrap; margin-top: 0.4rem; background: var(--moss); color: #fff; border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.invite.tbn .close { color: #9a6a12; }
@media (min-width: 40rem) {
  .tbn-text { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; }
  .tbn-text > p { grid-column: 1; }
  .tbn-text a.tbn-btn { grid-column: 2; grid-row: 1 / 4; margin-top: 0; white-space: nowrap; }
}
.tbn-preview { display: flex; flex-direction: column; }
.feat-tail { transform-box: fill-box; transform-origin: 50% 100%; }
.feat-drop { fill: #4f8496; opacity: 0; transform-box: fill-box; transform-origin: center; }
.feat-tile.play .feat-tail { animation: feat-tail 2.4s ease-in-out 2; }
.feat-tile.play .d1 { animation: feat-drop1 2.4s ease-out 2; }
.feat-tile.play .d2 { animation: feat-drop2 2.4s ease-out 2; }
.feat-tile.play .d3 { animation: feat-drop3 2.4s ease-out 2; }
.feat-tile.play .d4 { animation: feat-drop4 2.4s ease-out 2; }
@keyframes feat-tail { 0% { transform: translateY(22px) rotate(0); } 30% { transform: translateY(0) rotate(-7deg); } 55% { transform: translateY(0) rotate(6deg); } 78% { transform: translateY(0) rotate(-2deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes feat-drop1 { 0%, 22% { opacity: 0; transform: translate(0, 0); } 35% { opacity: 1; } 70% { opacity: 0; transform: translate(-9px, -15px); } 100% { opacity: 0; } }
@keyframes feat-drop2 { 0%, 24% { opacity: 0; transform: translate(0, 0); } 37% { opacity: 1; } 74% { opacity: 0; transform: translate(9px, -17px); } 100% { opacity: 0; } }
@keyframes feat-drop3 { 0%, 26% { opacity: 0; transform: translate(0, 0); } 40% { opacity: 1; } 78% { opacity: 0; transform: translate(-4px, -22px); } 100% { opacity: 0; } }
@keyframes feat-drop4 { 0%, 28% { opacity: 0; transform: translate(0, 0); } 42% { opacity: 1; } 80% { opacity: 0; transform: translate(5px, -12px); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .feat-tile.play .feat-tail, .feat-tile.play .feat-drop { animation: none; } }
/* Pages de chaque bandeau (Dashboard, 10/11/2026). */
.banner-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.9rem; margin: 0.4rem 0; }
.banner-pages-name { font-size: 0.85rem; color: var(--muted); }
.banner-page { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; cursor: pointer; }
.banner-page input { width: 20px; height: 20px; margin: 0; accent-color: var(--moss); }
.feat-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin: 0.4rem 0; }
.feat-pick label { font-size: 0.85rem; color: var(--muted); }
.feat-pick select { font: inherit; font-size: 0.9rem; max-width: 100%; }
.feat-pick input[type=number] { font: inherit; font-size: 0.9rem; width: 7.5rem; }
.ev-map-link { margin: 0.2rem 0 0.8rem; }
.ev-map-link a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }

/* Défilement des listes (Dashboard › Features et Live, maquette validée le 13/11/2026) : jauge de profondeur au bout de
   la ligne « Opened … », barres dans les tableaux, sections de Treffen et trait là où les visites baissent le plus. */
.dash-gauge { display: inline-block; width: 3rem; height: 0.5rem; border-radius: 999px; background: #e3e8df; overflow: hidden; vertical-align: middle; }
.dash-gauge i { display: block; height: 100%; background: var(--moss); border-radius: 999px; }
.dash-cellbar { display: block; height: 0.6rem; min-width: 4rem; border-radius: 999px; background: #e3e8df; overflow: hidden; margin-top: 0.3rem; }
.dash-cellbar i { display: block; height: 100%; background: var(--moss); border-radius: 999px; }
.dash-scrolltab td, .dash-scrolltab th { vertical-align: top; }
.dash-scrolltab tbody th a { overflow-wrap: anywhere; }
.dash-scrolltab tr.dash-sec td { background: #eef1ea; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dash-scrolltab tr.dash-fold > * { border-bottom: 2px dashed var(--ochre); }
.dash-foldkey { display: inline-block; width: 1.6rem; border-top: 2px dashed var(--ochre); vertical-align: middle; }

/* Nouveaux évènements (maquette validée le 13/11/2026) : bande de la Carte, une ligne entière par évènement (titres
   longs) ; carte bordée de vert avec « Nouveau » ; éclairée un instant quand on touche sa ligne. */
.ev-new-band { margin-top: 0.8rem; }
.ev-new-band .map-new-list { flex-direction: column; align-items: stretch; }
.ev-new-icon { flex: none; display: inline-flex; color: var(--ochre); }
.ev-new-icon svg { width: 18px; height: 18px; }
.ev-new-chip { display: flex; align-items: center; gap: 0.6rem; width: 100%; min-height: 44px; padding: 4px 12px 4px 4px; border: 1px solid #b8cdb9; border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 0.85rem; text-align: left; cursor: pointer; }
.ev-new-chip:hover { border-color: var(--moss); }
.ev-new-date { flex: none; width: 2.6rem; padding: 3px 0; border-radius: 8px; background: #dfe9dd; color: var(--moss-dark); font-weight: 700; font-size: 0.62rem; line-height: 1.05; text-align: center; text-transform: uppercase; }
.ev-new-date b { display: block; font-size: 1rem; }
.ev-new-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ev-new-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-new-who > span { font-size: 0.75rem; color: var(--muted); }
.event-card.ev-fresh { border-color: var(--moss); }
.ev-new-tag { font-size: 0.72rem; font-weight: 700; color: var(--card); background: var(--moss); border-radius: 999px; padding: 1px 8px; }
.ev-new-band .map-new-more, .ev-new-band .map-new-less { align-self: flex-start; }
.event-card.ev-flash { animation: ev-flash 1.4s ease-out; }
@keyframes ev-flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(63, 107, 69, 0.35); } 100% { box-shadow: 0 0 0 4px rgba(63, 107, 69, 0); } }
@media (prefers-reduced-motion: reduce) { .event-card.ev-flash { animation: none; box-shadow: 0 0 0 4px rgba(63, 107, 69, 0.35); } }
/* Tab dots : point après un nom de la liste dépliée (ce membre voit encore le point de l'onglet), 13/11/2026. */
.td-name-dot { display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--ochre); vertical-align: middle; }

/* Nouvelles personnes dans l'Annuaire (maquette validée le 13/11/2026) : prénom, nom dessous, sans ville ; deux par
   ligne sur téléphone, quatre sur ordinateur ; un prénom très long finit par « … ». Anneau vert et « Nouveau » dans la liste. */
.dir-new-band .map-new-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.dir-new-band .map-new-more { justify-self: start; }
.dir-new-band .map-new-less { justify-self: start; }
.dir-new-chip { min-width: 0; }
.dir-new-who { min-width: 0; }
.dir-new-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.85rem; }
.person.dir-fresh .avatar { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--moss); }
.dir-new-tag { align-self: flex-start; margin: 0.15rem 0 0; }

/* Dashboard › System › Site version (14/11/2026) : une barre par jour, trait du seuil, détail du jour au clic. */
.sv-chart svg { width: 100%; height: auto; display: block; }
.sv-chart text { font-size: 11px; fill: var(--muted); }
.sv-chart .bar { fill: var(--moss); }
.sv-chart .bar.bad { fill: var(--error); }
.sv-chart .zero { fill: var(--moss); opacity: 0.45; }
.sv-chart .axis { stroke: var(--line); }
.sv-chart .limit { stroke: var(--error); stroke-width: 1; stroke-dasharray: 4 3; }
.sv-chart .limit-t { fill: var(--error); }
.sv-chart .val { fill: var(--ink); font-weight: 700; }
.sv-chart .hit { fill: transparent; cursor: pointer; }
.sv-chart .hit:hover { fill: rgba(63, 107, 69, 0.08); }
.sv-chart .hit.on { fill: rgba(63, 107, 69, 0.14); }
.sv-chart .hit:focus-visible { outline: 2px solid var(--ochre); }
.sv-day { margin: 0.2rem 0 1rem; border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem; background: var(--card); }
.sv-day h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.sv-day .num { white-space: nowrap; vertical-align: top; }
.sv-why { display: block; font-size: 0.88rem; margin-top: 0.15rem; }
.sv-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 0.05rem 0.5rem; margin-right: 0.35rem; background: #dfe9dd; color: var(--moss-dark); }
.sv-tag.bad { background: #f6dcd6; color: var(--error); }
/* Page « Je choisis cette session » (lien de l'e-mail « deux dates », 15/11/2026). */
.session-pick { text-align: center; max-width: 30rem; margin: 1.5rem auto; }
.session-pick p { margin: 0 0 0.8rem; }
.session-ok { font-size: 1.5rem; font-weight: 800; color: var(--moss-dark); }
.session-title { font-weight: 700; }
.session-when { font-size: 1.2rem; font-weight: 800; line-height: 1.35; text-wrap: balance; }
.session-langs { display: inline-block; background: #eef3ea; border-radius: 4px; padding: 0.05rem 0.5rem; }
.session-alt { margin-top: 1.4rem !important; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }

.session-visio { font-size: 0.92rem; }
/* Liste « À faire » de l'organisateur après le choix de la date, aperçu de l'e-mail, rappel du lien de la visio (15/11/2026). */
.dv-todo { margin: 0.2rem 0 0.9rem; }
.dv-todo h3 { font-size: 1rem; margin: 0 0 0.15rem; }
.dv-todo-hint { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.5rem; }
.dv-todo-sess { border-top: 1px solid var(--line); padding: 0.55rem 0 0.2rem; }
.dv-todo-sess > strong { display: block; font-size: 0.92rem; margin-bottom: 0.3rem; }
.dv-todo-it { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; font-size: 0.95rem; }
.dv-todo-box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #9aa398; flex: none; display: grid; place-items: center; color: #fff; }
.dv-todo-box svg { width: 14px; height: 14px; }
.dv-todo-it.ok .dv-todo-box { background: var(--moss); border-color: var(--moss); }
.dv-todo-it.ok .dv-todo-label { color: var(--muted); }
.dv-todo-label { flex: 1; min-width: 0; }
.dv-todo-ed { margin: 0.2rem 0 0.6rem 1.75rem; }
.dv-todo-ed input, .dv-todo-ed textarea { display: block; width: 100%; box-sizing: border-box; border: 2px solid var(--moss); border-radius: 8px; padding: 0.5rem 0.6rem; font: inherit; font-size: 1rem; background: #fff; color: inherit; }
.dv-todo-ed textarea { height: 17rem; resize: vertical; line-height: 1.4; }
.dv-todo-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.45rem; }
.dv-mail { margin: 0.6rem 0 0; }
.dv-mail-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.6rem; }
.dv-mail-subject { font-size: 0.88rem; margin: 0 0 0.5rem; overflow-wrap: anywhere; }
.dv-mail-body { background: #fff; border: 1px solid #ccc; border-radius: 8px; padding: 0.7rem 0.75rem; margin: 0 0 0.6rem; overflow-wrap: anywhere; }
.dv-mail-body img { max-width: 100%; }
.visio-missing { border: 1px solid #e3c38b; background: #fbefd5; color: #6b4a12; border-radius: 10px; padding: 0.6rem 0.75rem; margin: 0.6rem 0 1rem; font-size: 0.95rem; }
.visio-missing-row { display: flex; align-items: center; gap: 0.5rem; }
.visio-missing-row span { flex: 1; }
.visio-missing .link-button { min-height: 44px; padding: 0 0.2rem; background: none; border: 0; font: inherit; font-weight: 800; color: #6b4a12; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.visio-missing .dv-todo-ed { margin-left: 0; }
.visio-missing .dv-todo-btns button { min-height: 44px; padding: 0.3rem 1rem; }
/* Préparation du choix de la date : page en étapes, bandeau de l'organisateur (15/11/2026). */
.prep-page h1 { margin-bottom: 0.1rem; }
.prep-event { color: var(--muted); margin: 0 0 0.8rem; }
.prep { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem; max-width: 34rem; }
.prep h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.prep-steps { display: flex; align-items: flex-start; list-style: none; margin: 0 0 0.8rem; padding: 0; }
.prep-steps li { flex: 1; position: relative; }
.prep-steps li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: #c9cfc6; }
.prep-steps li:first-child::before { display: none; }
.prep-steps li.done::before, .prep-steps li.on::before { background: var(--moss); }
.prep-steps button { display: block; width: 100%; background: none; border: 0; padding: 0; font: inherit; font-size: 0.76rem; font-weight: 700; line-height: 1.25; color: var(--muted); cursor: pointer; position: relative; }
.prep-steps button[disabled] { cursor: default; }
.prep-dot { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 0.25rem; border-radius: 50%; border: 2px solid #9aa398; background: #fff; font-size: 0.85rem; color: #6b736a; }
.prep-dot svg { width: 16px; height: 16px; }
.prep-steps li.done .prep-dot { background: var(--moss); border-color: var(--moss); color: #fff; }
.prep-steps li.on .prep-dot { border-color: var(--moss); color: var(--moss-dark); box-shadow: 0 0 0 3px #dfe9dd; }
.prep-steps li.on button { color: var(--moss-dark); }
.prep-keep { font-size: 0.86rem; color: #4d5a50; background: #f1f3ee; border-radius: 8px; padding: 0.4rem 0.6rem; margin: 0 0 0.8rem; }
.prep-sess { border-top: 1px solid var(--line); padding: 0.6rem 0 0.4rem; }
.prep-sess > strong { display: block; margin-bottom: 0.35rem; }
.prep-sess select { width: 100%; margin: 0 0 0.4rem; }
.prep-said { font-size: 0.92rem; margin: 0.3rem 0 0; }
.prep-warn { border: 1px solid #e3c38b; background: #fbefd5; color: #6b4a12; border-radius: 8px; padding: 0.45rem 0.6rem; font-size: 0.9rem; margin: 0.6rem 0 0; }
.prep .dv2-check { margin: 0.5rem 0; }
.prep-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.prep-nav > * { flex: 1 1 8rem; }
.prep-nav-col { flex-direction: column; }
.prep-nav-col > * { flex: none; width: 100%; }
.prep-line { display: flex; gap: 0.5rem; margin: 0.25rem 0; }
.prep-line span { color: var(--moss); font-weight: 800; flex: none; width: 1rem; text-align: center; }
.prep-line.no span { color: #b0721a; }
.prep .link-button { min-height: 44px; padding: 0 0.2rem; background: none; border: 0; font: inherit; font-weight: 700; color: var(--moss-dark); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.prep .dv-todo-btns button { min-height: 44px; padding: 0.3rem 1rem; }
.prep .dv-mail-tab { min-height: 40px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.2rem 0.8rem; font: inherit; font-size: 0.88rem; font-weight: 700; background: none; color: inherit; cursor: pointer; }
.prep .dv-mail-tab[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: #fff; }
.prep-band { border: 1px solid #e3c38b; background: #fbefd5; color: #6b4a12; border-radius: 10px; padding: 0.7rem 0.8rem; margin: 0.6rem 0 1rem; }
.prep-band p { margin: 0 0 0.6rem; }
.prep-band-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.prep-band-btns > * { flex: 1 1 8rem; }

/* Dashboard › System › PocketBase version (16/11/2026) : état en un mot, versions sorties depuis, deux actions. */
.pbv-state { display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; align-items: baseline; margin: 0 0 0.6rem; }
.pbv-state b { font-size: 1.05rem; }
.pbv-newer { margin: 0.8rem 0 0; }
.pbv-notes { margin: 0.2rem 0 0; padding-left: 1.1rem; font-size: 0.92rem; }
.pbv-notes li { margin: 0.15rem 0; }
.pbv-reviews { list-style: none; padding-left: 0; }
.pbv-reviews li { display: flex; flex-wrap: wrap; gap: 0 0.8rem; }
.pbv-act { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 0.8rem; }
.pbv-act .secondary { min-height: 40px; padding: 0.3rem 0.95rem; font-size: 0.92rem; border-width: 1.5px; }

/* Parcours de l'évènement, organisateur seul (maquette validée le 20/11/2026) : « Où en est ton évènement », schéma
   des étapes (ce que tu peux faire à gauche, e-mails envoyés automatiquement à droite), FAQ, question à l'administrateur.
   Sur téléphone, les trois colonnes s'empilent sous chaque étape. */
.jr { margin: 1.6rem 0 0; --jr-mail: #2f5f8a; --jr-note: #fff4d6; --jr-note-line: #d9b45a; }
/* Carte « Où en est ton évènement » = le bouton (maquette EVENEMENTS-carte-parcours-maquette.html validée le 20/11/2026). */
.jr-card { display: block; list-style: none; cursor: pointer; background: #eef3ec; border: 1.5px solid #b9cdb5; border-radius: 14px; padding: 0.85rem 0.95rem 0.95rem; transition: box-shadow .15s, border-color .15s; }
.jr-card::-webkit-details-marker { display: none; }
.jr-card:hover { border-color: var(--moss); box-shadow: 0 2px 10px rgba(63, 107, 69, .15); }
.jr-card:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; }
.jr-card.is-past { background: #f1f2ef; border-color: var(--line); }
.jr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; }
.jr-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.jr-count { font-size: 0.82rem; color: var(--moss-dark); font-weight: 700; white-space: nowrap; }
.jr-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0.6rem 0 0.7rem; }
.jr-st { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.jr-st::before { content: ""; position: absolute; top: 0.6rem; left: -50%; right: 50%; border-top: 2px solid var(--moss); }
.jr-st:first-child::before { display: none; }
.jr-st.is-dashed::before { border-top: 2px dashed #a9b3ab; }
.jr-pt { position: relative; z-index: 1; width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; color: #fff; background: var(--moss); border: 2px solid var(--moss); }
.jr-st.is-cur .jr-pt { background: #fff; box-shadow: 0 0 0 4px #cfe0cb; }
.jr-st.is-cur .jr-pt::after { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--moss); }
.jr-st.is-todo .jr-pt { background: var(--card); border-color: #a9b3ab; }
.jr-st-name { margin-top: 0.25rem; font-size: 0.72rem; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.jr-st.is-cur .jr-st-name { color: var(--moss-dark); font-weight: 700; }
.jr-card p { margin: 0; }
.jr-now { font-weight: 700; }
.jr-next { margin-top: 0.1rem !important; font-size: 0.93rem; color: var(--muted); }
.jr-cta { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.75rem; padding: 0.45rem 1rem; border-radius: 999px; background: var(--moss); color: #fff; font-weight: 700; font-size: 0.93rem; }
.jr-cta-close { display: none; }
.jr-all[open] > .jr-card .jr-cta { background: var(--card); color: var(--moss-dark); box-shadow: inset 0 0 0 2px var(--moss); }
.jr-all[open] > .jr-card .jr-cta-open { display: none; }
.jr-all[open] > .jr-card .jr-cta-close { display: inline; }
@media (max-width: 30rem) { .jr-st-name { display: none; } }
.jr-flow { margin: 1rem 0 0; }
.jr-row, .jr-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 14rem) minmax(0, 1fr); gap: 0 1.2rem; }
.jr-row { align-items: center; }
.jr-mid { align-self: stretch; display: flex; flex-direction: column; }
.jr-line { flex: 1 1 0.6rem; min-height: 0.6rem; position: relative; }
/* Trait de 2 px centré sur la pointe (left: 50% - 1 px), sinon la pointe est décalée (signalé le 20/11/2026). */
.jr-line::before { content: ""; position: absolute; left: calc(50% - 1px); top: 0; bottom: 0; border-left: 2px solid var(--ink); }
.jr-line.is-todo::before { border-left-style: dashed; border-color: #9aa59c; }
.jr-line.is-none::before { display: none; }
.jr-line.has-head { min-height: 1rem; }
.jr-line.has-head::before { bottom: 0.45rem; }
.jr-line.has-head::after { content: ""; position: absolute; left: calc(50% - 0.4rem); bottom: 0; border: 0.4rem solid transparent; border-top: 0.5rem solid var(--ink); border-bottom: 0; }
.jr-line.has-head.is-todo::after { border-top-color: #9aa59c; }
.jr-heads { margin-bottom: 0.6rem; font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; align-items: end; }
.jr-h-opt { text-align: right; }
.jr-h-step { text-align: center; }
.jr-h-mail { color: var(--jr-mail); }
.jr-opt { justify-self: end; position: relative; background: var(--jr-note); border: 1.5px dashed var(--jr-note-line); border-radius: 8px; padding: 0.45rem 0.65rem; font-size: 0.82rem; line-height: 1.4; max-width: 15rem; }
.jr-opt strong { color: #7a5514; }
.jr-opt::after { content: ""; position: absolute; right: -1.25rem; top: 50%; width: 1.2rem; border-top: 1.5px dashed var(--jr-note-line); }
.jr-box { position: relative; border: 2px solid var(--ink); border-radius: 8px; background: #fff; padding: 0.5rem 0.75rem; }
.jr-n { font-weight: 700; }
.jr-sub { font-size: 0.84rem; color: var(--muted); }
.jr-box.is-done { border-color: var(--moss); }
.jr-check { color: var(--moss); }
.jr-box.is-todo { border-color: #9aa59c; border-style: dashed; background: var(--card); }
.jr-box.is-todo .jr-n { color: var(--muted); }
/* Étape en cours : le halo de 5 px masquait la pointe de la flèche ; la boîte s'écarte d'autant. */
.jr-box.is-cur { border-color: var(--moss); border-width: 3px; box-shadow: 0 0 0 5px #d4e3d1; margin: 6px 0; }
.jr-here { position: absolute; top: -0.75rem; right: 0.6rem; font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--moss); border-radius: 999px; padding: 0 0.5rem; white-space: nowrap; }
.jr-msgs { display: flex; flex-direction: column; gap: 0.3rem; position: relative; }
.jr-msgs::before { content: ""; position: absolute; left: -1.25rem; top: 50%; width: 1.1rem; border-top: 1.5px dotted #9aa59c; }
.jr-msg { display: flex; gap: 0.45rem; align-items: baseline; font-size: 0.86rem; line-height: 1.35; }
.jr-tag { flex: none; display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.3rem; padding: 0 0.3rem; border-radius: 4px; color: #fff; font-size: 0.72rem; font-weight: 700; }
.jr-tag.is-mail { background: var(--jr-mail); }
.jr-tag.is-none { background: #9aa59c; }
.jr-arrow { position: relative; height: 1.6rem; }
.jr-link.is-tall .jr-arrow { height: 4rem; }
/* Entre deux lignes : le trait seul (la pointe est au-dessus de la boîte suivante, .jr-line.has-head). */
.jr-arrow::before { content: ""; position: absolute; left: calc(50% - 1px); top: 0; bottom: 0; border-left: 2px solid var(--ink); }
.jr-link.is-todo .jr-arrow::before { border-left-style: dashed; border-color: #9aa59c; }
.jr-arrow-label { position: absolute; left: calc(50% + 0.6rem); top: 0.6rem; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.jr-link-msg { align-self: center; }
.jr-cancel { margin: 1.4rem 0 0; display: flex; gap: 0.7rem; align-items: flex-start; background: #fbeeee; border: 1.5px dashed #c99a95; border-radius: 10px; padding: 0.6rem 0.8rem; font-size: 0.88rem; }
.jr-cancel strong { color: #8a2f25; }
.jr-legend { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.8rem; color: var(--muted); margin: 0.8rem 0 0; }
.jr-legend > span { display: inline-flex; gap: 0.35rem; align-items: center; }
.jr-faq { margin: 1.4rem 0 0; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.jr-faq h3 { font-size: 1rem; margin: 0 0 0.4rem; }
.jr-faq details { border-bottom: 1px solid var(--line); }
.jr-faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 0.95rem; padding: 0.55rem 1.6rem 0.55rem 0; position: relative; }
.jr-faq summary::-webkit-details-marker { display: none; }
.jr-faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.45rem; color: var(--moss); font-size: 1.1rem; }
.jr-faq details[open] > summary::after { content: "−"; }
.jr-faq p { margin: 0 0 0.7rem; font-size: 0.93rem; }
.jr-ask { margin: 1rem 0 0; display: flex; flex-direction: column; gap: 0.5rem; }
.jr-ask label { font-size: 0.93rem; }
.jr-ask textarea { width: 100%; min-height: 84px; padding: 0.6rem 0.75rem; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--card); font: inherit; color: var(--ink); resize: vertical; }
.jr-ask p { margin: 0; }
.jr-ask-sent { margin-top: 1rem; }
@media (max-width: 40rem) {
  .jr-row, .jr-link { grid-template-columns: minmax(0, 1fr); }
  .jr-row { gap: 0.4rem; }
  .jr-heads { display: none; }
  .jr-opt { justify-self: stretch; max-width: none; order: 3; }
  .jr-opt::after, .jr-msgs::before { display: none; }
  .jr-msgs { padding-left: 0.6rem; border-left: 2px dotted #9aa59c; }
  .jr-link > div:not(.jr-arrow):not(.jr-link-msg) { display: none; }
  .jr-link-msg { padding: 0.2rem 0 0.2rem 2rem; }
  .jr-line { display: none; }
  .jr-arrow { height: 2.4rem; }
  .jr-arrow::before { left: calc(1.2rem - 1px); bottom: 0.45rem; }
  .jr-arrow::after { content: ""; position: absolute; left: 0.8rem; bottom: 0; border: 0.4rem solid transparent; border-top: 0.5rem solid var(--ink); border-bottom: 0; }
  .jr-link.is-todo .jr-arrow::after { border-top-color: #9aa59c; }
  .jr-arrow-label { left: 2rem; }
}
