/* Pellicœur — papier beige, polaroïds et écriture à la main */
/* Polices hébergées sur le site (aucune requête vers Google, plus rapide et conforme RGPD) — licence SIL OFL */
@font-face { font-family: 'Gloock'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/gloock-latin-400-normal.woff2') format('woff2'); 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: 'Gloock'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/gloock-latin-ext-400-normal.woff2') format('woff2'); 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: 'Karla'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/karla-latin-400-normal.woff2') format('woff2'); 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: 'Karla'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/karla-latin-ext-400-normal.woff2') format('woff2'); 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: 'Karla'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/karla-latin-500-normal.woff2') format('woff2'); 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: 'Karla'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/karla-latin-ext-500-normal.woff2') format('woff2'); 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: 'Karla'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/karla-latin-700-normal.woff2') format('woff2'); 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: 'Karla'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/karla-latin-ext-700-normal.woff2') format('woff2'); 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: 'Reenie Beanie'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/reenie-beanie-latin-400-normal.woff2') format('woff2'); 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; }
:root {
  --bg: #EDE3D3;
  --paper: #FBF7F0;
  --paper-2: #F4ECDF;
  --ink: #3B3128;
  --muted: #6B5A45;
  --line: rgba(59, 49, 40, 0.16);
  --sage: #B9C2A3;
  --sage-ink: #4E5B3C;
  --red: #C8323A;
  --gold: #D9A514;
  --ok: #56703F;
  --danger: #A33A2E;
  --shadow: 0 10px 28px rgba(59, 49, 40, 0.14);
  --f-display: 'Gloock', Georgia, 'Times New Roman', serif;
  --f-body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Reenie Beanie', 'Bradley Hand', cursive;
  --r: 6px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-body);
  min-height: 100vh;
}
body.noscroll { overflow: hidden; }
img, video { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
code { font-size: .85em; background: var(--paper-2); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.script { font-family: var(--f-hand); font-size: 1.9rem; line-height: 1; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ic { vertical-align: -3px; flex-shrink: 0; }

/* ---------- Mise en page ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 80px; }
.wrap-wide { max-width: 1280px; }
.narrow { max-width: 460px; margin: 0 auto; padding: 48px 16px 60px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 16px;
}
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between p { margin: 0; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 12px 0; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ---------- Formulaires ---------- */
.form label { display: block; font-weight: 500; font-size: .92rem; margin: 14px 0 6px; }
.form label.switch, .form label.choice { font-weight: 400; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(59, 49, 40, 0.28);
  border-radius: var(--r);
  padding: 11px 12px;
  min-height: 44px;
}
textarea { resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--ink); margin: 0; flex-shrink: 0; }
.form .btn { margin-top: 18px; }
.form h2, .form h3 { margin-top: 22px; }
.form > h2:first-child, .form input[type="hidden"] + h2 { margin-top: 0; }
.switch, .choice { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.switch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 16px; }
.choice-row { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.choice-col { display: flex; flex-direction: column; }
.error { color: var(--danger); font-weight: 500; }
.notice { background: var(--paper-2); border: 1px dashed var(--line); padding: 12px 14px; border-radius: var(--r); font-size: .95rem; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: auto; min-width: 180px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: var(--r);
  font: 500 1rem var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.btn:hover { background: #2A221B; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(163, 58, 46, .4); }
.btn-danger:hover { background: rgba(163, 58, 46, .08); }
.btn-open { background: var(--ok); border-color: var(--ok); }
.btn-open:hover { background: #475D34; }
.btn-closed { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-closed:hover { background: var(--paper-2); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted);
  border-radius: 50%; cursor: pointer;
}
.icon-btn:hover { background: rgba(59, 49, 40, .08); color: var(--ink); }
.icon-btn.danger:hover { color: var(--danger); }

.badge { display: inline-block; font: 700 .7rem var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 20px; background: var(--ink); color: var(--paper); vertical-align: 2px; }
.badge-gold { background: var(--gold); color: var(--ink); }
.pill { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 20px; background: var(--paper-2); border: 1px solid var(--line); white-space: nowrap; }
.pill-ok { background: #E3E9D6; border-color: #C3CFAC; color: var(--sage-ink); }

/* ---------- Messages flash ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 100; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: var(--r); box-shadow: var(--shadow);
  animation: toast-in .25s ease;
}
.toast-err { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Accueil ---------- */
.home { max-width: 720px; margin: 0 auto; padding: 48px 16px 60px; text-align: center; }
.home-brand { display: inline-block; font-family: var(--f-display); font-size: 1.6rem; margin-bottom: 18px; text-decoration: none; }
.narrow .home-brand { display: block; text-align: center; }
.home h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.home-polas { position: relative; height: 190px; margin: 28px auto 32px; width: 300px; }
.pola { position: absolute; width: 130px; height: 150px; background: var(--paper); box-shadow: var(--shadow); padding: 10px 10px 34px; }
.pola::after { content: ''; display: block; height: 100%; background: var(--paper-2); }
.pola.p1 { left: 0; top: 20px; transform: rotate(-8deg); }
.pola.p1::after { background: #D8C7AE; }
.pola.p2 { left: 85px; top: 0; transform: rotate(3deg); z-index: 1; }
.pola.p2::after { background: #CDBBA0; }
.pola.p3 { left: 170px; top: 26px; transform: rotate(9deg); }
.pola.p3::after { background: var(--sage); }
.home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; text-align: left; }
@media (max-width: 640px) { .home-actions { grid-template-columns: minmax(0, 1fr); } }

.join-head { text-align: center; margin-bottom: 20px; }
.join-head h1 { margin-top: 8px; }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; }
.checklist li { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.checklist .ok { color: var(--ok); }
.checklist .ko { color: var(--danger); }

/* ---------- Barre du haut et onglets ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(237, 227, 211, .96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: 1280px; margin: 0 auto; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar-names { font-family: var(--f-display); font-size: 1.35rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar-me { display: flex; gap: 14px; align-items: center; font-size: .88rem; flex-wrap: wrap; justify-content: flex-end; }
.me-name { color: var(--muted); }
.link-small { font-size: .88rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) {
  .me-name { display: none; }
  .topbar-in { gap: 8px; }
  .topbar-me { gap: 12px; flex-wrap: nowrap; }
  .topbar-names { font-size: 1.2rem; }
}

.preview-bar { background: var(--sage); color: var(--ink); text-align: center; font-size: .88rem; padding: 6px 16px; }
.tabs {
  max-width: 1100px; margin: 0 auto; padding: 0 12px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex-shrink: 0; padding: 10px 12px 12px; text-decoration: none; color: var(--muted);
  border-bottom: 2px solid transparent; font-weight: 500; font-size: .95rem;
}
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; margin: 12px 0 16px; }
.section-head h1 { margin: 0; }
.section-head p { flex-basis: 100%; margin: 0; }
.host-links { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-family: var(--f-hand); font-size: 1.8rem; }

/* ---------- Invitation ---------- */
.invite { max-width: 640px; margin: 0 auto; }
.invite-card {
  background: var(--paper); text-align: center; padding: 44px 28px; margin: 12px 0 24px;
  box-shadow: var(--shadow); position: relative;
  border: 1px solid var(--line);
  outline: 1px solid var(--line); outline-offset: -12px;
}
.invite-card h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); margin: 10px 0 14px; }
.invite-date { font-size: 1.15rem; font-weight: 500; margin-bottom: 4px; }
.invite-venue { color: var(--muted); }
.invite-text { margin: 22px auto 0; max-width: 46ch; }
.program { list-style: none; padding: 18px 0 0; margin: 22px auto 0; max-width: 360px; border-top: 1px solid var(--line); text-align: left; }
.program li { padding: 6px 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stats > div { background: var(--paper-2); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; }
.stats strong { font-family: var(--f-display); font-size: 1.8rem; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { font-size: .85rem; color: var(--muted); }
.stats-big > div { background: var(--paper); border: 1px solid var(--line); }

.map-card h2 { margin-bottom: 12px; }
.map-frame { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; }
.map-consent p { margin: 0; max-width: 32ch; }
.map-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Album ---------- */
.upload-big {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 64px; margin: 4px 0 14px; padding: 14px;
  background: var(--ink); color: var(--paper); border: 0; border-radius: var(--r);
  font: 500 1.1rem var(--f-body); cursor: pointer; box-shadow: var(--shadow);
}
.upload-big:hover { background: #2A221B; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; flex-wrap: wrap; }
.chip {
  flex-shrink: 0; min-height: 38px; padding: 7px 14px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: 500 .92rem var(--f-body); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-select select { min-height: 38px; padding: 6px 12px; border-radius: 20px; font-size: .92rem; background: var(--paper); width: auto; }
.legend { color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.legend .h { margin-left: 8px; }
.legend .h:first-child { margin-left: 0; }
.h { display: inline-flex; align-items: center; gap: 3px; }
.h-red { color: var(--red); }
.h-gold { color: var(--gold); }
.legend .ic { fill: currentColor; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } }
.tile {
  position: relative; aspect-ratio: 1 / 1; max-width: 100%; padding: 0; border: 0; border-radius: 3px; overflow: hidden;
  background: var(--paper-2); cursor: pointer; display: block;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.tile:hover img { transform: scale(1.03); }
.tile-noposter { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; }
.tile-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); pointer-events: none; }
.tile-hearts { position: absolute; right: 5px; bottom: 5px; display: flex; gap: 4px; pointer-events: none; }
.tile-hearts .h { background: rgba(251, 247, 240, .94); border-radius: 20px; padding: 2px 7px 2px 5px; font-size: .78rem; font-weight: 700; }
.tile-hearts .h-gold { padding: 3px 5px; }
.new-pill {
  position: sticky; top: 118px; z-index: 5; display: block; margin: 0 auto 12px;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 20px; padding: 9px 18px;
  font: 500 .92rem var(--f-body); cursor: pointer; box-shadow: var(--shadow);
}
.more-wrap { text-align: center; padding: 20px 0; }

/* ---------- Visionneuse ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: #16110D; color: #F5EFE6; display: flex; flex-direction: column; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px 18px; }
.lb-top .icon-btn, .lb-bottom .icon-btn { color: #F5EFE6; }
.lb-author { font-family: var(--f-hand); font-size: 1.9rem; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 8px; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(251,247,240,.12); color: #F5EFE6; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
@media (max-width: 640px) { .lb-nav { display: none; } }
.lb-bottom { padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
.lb-caption { margin: 0 0 8px; text-align: center; }
.lb-caption:empty { display: none; }
.lb-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.lb-like { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 30px; border: 1px solid rgba(245,239,230,.35); background: transparent; color: #F5EFE6; font: 700 1rem var(--f-body); cursor: pointer; }
.lb-like.red.on { color: var(--red); border-color: var(--red); }
.lb-like.red.on .ic { fill: var(--red); }
.lb-like.gold.on { color: var(--gold); border-color: var(--gold); }
.lb-like.gold.on .ic { fill: var(--gold); }
.lb-couple { color: var(--gold); display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; }
.lb-couple .ic { fill: var(--gold); }
.lightbox .btn-ghost { color: #F5EFE6; border-color: rgba(245,239,230,.35); }
.lightbox .btn-ghost:hover { background: rgba(245,239,230,.1); }
.vote-menu { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.vote-menu p { flex-basis: 100%; text-align: center; margin: 0; }

/* ---------- Fenêtres (envoi, choix) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(28, 22, 17, .5); display: flex; align-items: flex-end; justify-content: center; }
.sheet-box {
  position: relative; background: var(--paper); width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  border-radius: 14px 14px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  animation: sheet-in .22s ease;
}
.sheet-wide { max-width: 900px; }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-box { border-radius: 10px; } }
@keyframes sheet-in { from { transform: translateY(30px); opacity: .5; } }
.sheet-close { position: absolute; right: 10px; top: 10px; }
.sheet-box label { display: block; font-weight: 500; font-size: .92rem; margin: 14px 0 6px; }
.sheet-box .btn { width: 100%; margin-top: 18px; }
.up-previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.up-prev { aspect-ratio: 1; background: var(--paper-2); border-radius: 3px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.up-prev img { width: 100%; height: 100%; object-fit: cover; }
.up-more { font-weight: 700; }
.up-progress { margin-top: 14px; }
.up-bar { height: 8px; background: var(--paper-2); border-radius: 8px; overflow: hidden; }
.up-bar span { display: block; height: 100%; width: 0; background: var(--sage-ink); transition: width .2s ease; }
.up-status { margin: 6px 0 0; }

/* ---------- Défis ---------- */
.challenges { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.challenge {
  background: var(--paper); padding: 20px; box-shadow: var(--shadow); position: relative;
  display: flex; flex-direction: column;
}
.challenge:nth-child(3n+1) { transform: rotate(-.6deg); }
.challenge:nth-child(3n+2) { transform: rotate(.5deg); }
.challenge::before { content: ''; position: absolute; top: -10px; left: 50%; width: 80px; height: 22px; margin-left: -40px; background: var(--sage); opacity: .8; transform: rotate(-2deg); }
.challenge h2 { font-size: 1.3rem; }
.challenge.locked { text-align: center; background: var(--paper-2); }
.challenge .lock { color: var(--muted); margin-bottom: 8px; }
.mini-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 6px 0 12px; }
.mini-thumbs img, .mini-video { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 2px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; }
.challenge-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.challenge-btns { display: flex; gap: 6px; }

/* ---------- Votes ---------- */
.vote-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.podium { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.podium li { display: flex; align-items: center; gap: 12px; }
.podium img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; }
.podium .rank { font-family: var(--f-display); font-size: 1.5rem; width: 22px; text-align: center; }
.podium li:first-child .rank { color: var(--gold); }
.podium-meta { display: flex; flex-direction: column; }
.vote-mine { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; flex-wrap: wrap; }
.vote-mine img { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; }
.vote-mine .btn { margin-left: auto; }
.pick-grid .tile { outline: 0; }
.pick-grid .tile:hover { box-shadow: 0 0 0 3px var(--ink) inset; }

/* ---------- Playlist ---------- */
.songs { list-style: none; padding: 0; margin: 16px 0 0; }
.song { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.song-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.song-vote {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  width: 52px; min-height: 52px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper);
  color: var(--muted); font: 700 .85rem var(--f-body); cursor: pointer; flex-shrink: 0;
}
.song-vote.on { color: var(--red); border-color: var(--red); }
.song-vote.on .ic { fill: var(--red); }
.song-form { margin-bottom: 12px; }

/* ---------- Mur de messages ---------- */
.wall { columns: 280px; column-gap: 16px; }
.note { break-inside: avoid; background: #FFFCF4; padding: 18px 18px 12px; margin: 0 0 16px; box-shadow: var(--shadow); display: inline-block; width: 100%; overflow-wrap: anywhere; }
.note-1 { background: #F4F1E4; transform: rotate(.6deg); }
.note-2 { background: #F7ECE4; transform: rotate(-.5deg); }
.note-3 { background: #EEF0E4; }
.note footer { display: flex; justify-content: space-between; align-items: center; }
.note .script { font-size: 1.7rem; color: var(--ink); }

/* Messages des mariés et de l'organisation, éléments épinglés */
.note-host { background: var(--ink); color: var(--paper); box-shadow: 0 12px 30px rgba(59, 49, 40, .28); }
.note-host .script { color: var(--paper); }
.note-host .icon-btn { color: rgba(251, 247, 240, .7); }
.note-host .icon-btn:hover { color: var(--paper); background: rgba(251, 247, 240, .12); }
.note-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.badge-host { background: var(--gold); color: var(--ink); }
.tag-pin { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.note-host .tag-pin { color: rgba(251, 247, 240, .75); }
.note.is-pinned:not(.note-host) { outline: 2px solid var(--gold); outline-offset: -2px; }
.note-btns { display: inline-flex; }
.icon-btn.on { color: var(--gold); }
.pinned-msgs { display: grid; gap: 12px; margin: 0 0 16px; }
.pinned-msgs .note { margin: 0; transform: none; padding: 14px 16px 8px; }
.pinned-msgs .note p { font-size: .95rem; margin-bottom: .4em; }
.pinned-msgs .note .script { font-size: 1.4rem; }
.pinned-strip { margin: 0 0 16px; }
.pinned-title { display: flex; align-items: center; gap: 6px; font-size: 1.15rem; margin-bottom: 8px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 34%); gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.strip::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .strip { grid-auto-columns: 180px; } }
.tile-pin { position: absolute; left: 5px; top: 5px; background: rgba(251, 247, 240, .94); color: var(--ink); border-radius: 20px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.lb-pin.on { color: var(--gold); border-color: var(--gold); }

/* ---------- Pronostics ---------- */
.preds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pred .btn { margin-top: 12px; }
.answer { font-size: 1.05rem; }
.bars { list-style: none; padding: 0; margin: 0 0 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 46px; align-items: center; gap: 10px; padding: 4px 0; font-size: .92rem; }
.bar { height: 10px; background: var(--paper-2); border-radius: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--muted); }
.bars li.right { font-weight: 700; }
.bars li.right .bar span { background: var(--gold); }
.bar-n { text-align: right; font-variant-numeric: tabular-nums; }
.bar-label { overflow-wrap: anywhere; }

.winners { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 20px; }
.winners li { padding: 1px 0; }
.winners li:first-child { font-weight: 700; color: var(--ink); }
.pa-title { font-size: 1rem; margin: 18px 0 8px; }
.row-ok td { background: #EEF3E4; }
.card.is-editing { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 165, 20, .25); }
#edit-form { scroll-margin-top: 16px; }
@media (min-width: 641px) {
  .table td.actions { display: table-cell; }
  .table td.actions form, .table td.actions > a { display: inline-block; margin: 2px 4px 2px 0; }
}

/* ---------- Tableaux (admin) ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { white-space: nowrap; }
.actions { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.actions form { display: inline; }
.row-banned td { opacity: .5; }
/* Tableaux transformés en fiches sur téléphone */
@media (max-width: 640px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { border-bottom: 1px solid var(--line); padding: 12px 14px; }
  .table-cards tr:last-child { border-bottom: 0; }
  .table-cards td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table-cards td::before { content: attr(data-label); color: var(--muted); font-size: .82rem; text-align: left; flex-shrink: 0; }
  .table-cards td.cell-main { display: block; text-align: left; padding-bottom: 6px; }
  .table-cards td.cell-main::before { content: none; }
  .table-cards td.num { text-align: right; }
  .table-cards td.actions { justify-content: flex-start; padding-top: 8px; }
  .table-cards td.actions::before { content: none; }
  .table-cards td.note-empty { display: none; }
  .table-cards .stat-row { display: flex; flex-wrap: wrap; gap: 4px 14px; }
}
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 4px 0; }

/* ---------- Admin ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 8px 0 16px; }
.admin-head h1 { margin: 4px 0 2px; }
.admin-head p { margin: 0; }
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.subnav { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; scrollbar-width: none; }
.subnav a { flex-shrink: 0; padding: 10px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 500; font-size: .95rem; }
.subnav a.on { color: var(--ink); border-bottom-color: var(--ink); }
.wed-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 24px; }
.wed-item { display: flex; flex-direction: column; gap: 4px; text-decoration: none; margin: 0; transition: box-shadow .15s ease; }
.wed-item:hover { box-shadow: var(--shadow); }
.wed-names { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; }
.wed-item .pill { align-self: flex-start; margin-top: 6px; }
.narrow-form { max-width: 460px; margin-left: auto; margin-right: auto; }
.page-title-center { text-align: center; }
.danger-zone { border-color: rgba(163, 58, 46, .35); }
.danger-zone h2 { color: var(--danger); }
.qr-card { text-align: center; max-width: 560px; }
.qr { display: inline-block; background: #fff; padding: 16px; border: 1px solid var(--line); margin: 8px 0; }
.qr img, .qr canvas { display: block; }
.qr-link { margin: 8px 0; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
@media (max-width: 480px) { .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.admin-tile { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.admin-tile > a { position: relative; display: block; aspect-ratio: 1; background: var(--paper-2); }
.admin-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-tile figcaption { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-tile figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-actions { display: flex; justify-content: flex-end; gap: 2px; }
.tile-actions form { display: inline; }
.admin-tile.is-hidden { opacity: .55; }
.admin-tile.is-hidden > a::after { content: 'Masquée'; position: absolute; top: 6px; left: 6px; background: var(--ink); color: var(--paper); font-size: .75rem; padding: 2px 8px; border-radius: 12px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 20px 0; }
details.card summary { cursor: pointer; min-height: 32px; }

.admin-head .admin-head-actions .btn-open, .admin-head .admin-head-actions .btn-closed { min-width: 0; }

.fairepart { margin: 12px 0 20px; }
.fp-img { display: block; background: var(--paper); padding: 12px; box-shadow: var(--shadow); }
.fp-img img { display: block; width: 100%; height: auto; }
.fp-pdf { text-align: center; }
.fp-preview { margin: 8px 0 12px; max-width: 320px; }
.fp-preview img { display: block; width: 100%; border: 1px solid var(--line); }

/* ---------- Pages légales et pied de page ---------- */
.site-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .82rem; }
.site-foot a { color: var(--muted); }
.page-app .site-foot { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
.legal { max-width: 780px; margin: 0 auto; padding: 32px 16px 20px; }
.legal .home-brand { display: block; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.legal-nav a { font-size: .9rem; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line); text-decoration: none; background: var(--paper); }
.legal-nav a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.legal-text h2 { margin-top: 1.4em; font-size: 1.2rem; }
.legal-text p, .legal-text li { max-width: 68ch; overflow-wrap: anywhere; }
.legal-text ul { padding-left: 1.2em; }
.legal-form { background: var(--paper-2); padding: 14px 16px; border-radius: var(--r); font-size: .92rem; }
mark.todo { background: #F6D9A8; color: var(--ink); padding: 0 4px; border-radius: 3px; }
.pill-warn { background: #F6E3C0; border-color: #E2C38A; color: #6A4A12; }
.wed-item .pill-warn { white-space: normal; }

/* ---------- Diaporama ---------- */
.page-slideshow { background: #16110D; color: #F5EFE6; overflow: hidden; }
.show { position: fixed; inset: 0; }
.show-stage { position: absolute; inset: 0; }
.show-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.1s ease; }
.show-media.in { opacity: 1; }
.show-caption { position: absolute; left: 32px; bottom: 28px; }
.show-author { color: #F5EFE6; font-size: 3rem; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.show-brand { position: absolute; right: 32px; bottom: 30px; text-align: right; display: flex; flex-direction: column; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.show-names { font-family: var(--f-display); font-size: 2rem; }
.show-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.show-empty .script { color: #F5EFE6; font-size: 3.5rem; }
.show-fs { position: absolute; top: 16px; right: 16px; color: #F5EFE6; border-color: rgba(245,239,230,.3); opacity: .4; }
.show-fs:hover { opacity: 1; background: transparent; }

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

/* Sur téléphone : tous les onglets visibles d'un coup, en pastilles sur plusieurs lignes */
@media (max-width: 760px) {
  .topbar { position: relative; top: auto; }
  .tabs, .subnav { flex-wrap: wrap; overflow: visible; gap: 6px; padding: 4px 12px 12px; }
  .subnav { padding: 0 0 12px; border-bottom: 0; }
  .tabs a, .subnav a {
    padding: 7px 12px; font-size: .88rem; border: 1px solid var(--line); border-radius: 20px;
    background: var(--paper); border-bottom-width: 1px;
  }
  .tabs a.on, .subnav a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}

/* Pied de page toujours tout en bas, même quand la page est courte */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { width: 100%; flex: 1 0 auto; }
body > header, body > .site-foot { flex-shrink: 0; }
.site-foot { margin-top: auto; }

/* Entrée invité : email OU téléphone */
.contact-or { border: 1px dashed var(--line); border-radius: var(--r); padding: 4px 14px 14px; margin: 16px 0 4px; min-width: 0; }
.contact-or legend { font-size: .9rem; padding: 0 6px; color: var(--muted); }
.contact-or legend strong { color: var(--ink, inherit); }
.contact-or label:first-of-type { margin-top: 6px; }
/* Fiche des mariés dans l'admin */
.contact-line { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: .9rem; }
.contact-line a { text-decoration: none; }
.client-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 10px; }
.client-edit input { width: auto; flex: 1 1 140px; }
.contact-tools p { margin: 0 0 10px; }
.contact-tools p:last-child { margin: 10px 0 0; }
.home-lead { max-width: 560px; margin: 14px auto 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

/* Personnes (résumé admin) */
.avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .92rem; letter-spacing: .02em; color: #3B3128; }
.av-0 { background: #E9D5C3; } .av-1 { background: #CFDCC6; } .av-2 { background: #E8CFCF; }
.av-3 { background: #D6D3E6; } .av-4 { background: #F0E1B8; } .av-5 { background: #CBDCDC; }
.people { display: grid; gap: 8px; margin-top: 8px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.person.is-banned { opacity: .6; }
.person-main { flex: 1 1 auto; min-width: 0; }
.person-main strong { margin-right: 6px; }
.person-main .small { overflow-wrap: anywhere; }
.person-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.person-actions form { margin: 0; }
.person-inline { display: flex; align-items: center; gap: 10px; }
.person-inline .avatar { width: 34px; height: 34px; font-size: .82rem; }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #5B8C51; box-shadow: 0 0 0 4px rgba(91,140,81,.18); vertical-align: middle; margin-right: 4px; }
@media (max-width: 560px) {
  .person { flex-wrap: wrap; }
  .person-actions { width: 100%; justify-content: flex-start; padding-left: 52px; }
}

/* Barre de l'admin : tous les onglets sur une seule ligne sur ordinateur */
@media (min-width: 761px) {
  .wrap-wide { max-width: 1360px; }
  .subnav { justify-content: space-between; gap: 0; }
  .subnav a { padding: 10px 9px; font-size: .92rem; white-space: nowrap; }
}
.person-couple { border-color: var(--gold); }
.person-couple .avatar { box-shadow: 0 0 0 2px var(--gold); }
.podium-thumb { position: relative; display: block; flex: 0 0 auto; border-radius: 6px; overflow: hidden; }
.podium-thumb img { display: block; }
.podium-thumb:hover img { opacity: .85; }
.podium-thumb .tile-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.podium-meta a { text-decoration: underline; text-underline-offset: 2px; }
tr:target, tr:target td { background: #F6E9C8 !important; }
/* Album filtré sur un défi */
.defi-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--gold); border-left: 4px solid var(--gold); border-radius: var(--r); padding: 12px 16px; margin: 4px 0 14px; }
.defi-banner h2 { margin: 2px 0; font-size: 1.3rem; }
.defi-banner-btns { display: flex; gap: 8px; flex-wrap: wrap; }
/* Galerie d'un défi (dans l'onglet Défis) */
.back-link { display: inline-block; margin-bottom: 6px; }
.defi-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.defi-head h1 { margin: 2px 0 6px; }
.defi-head p { margin: 0 0 6px; }
a.mini-thumbs { text-decoration: none; }
button.podium-thumb { border: 0; padding: 0; background: none; cursor: zoom-in; }
.vote-mine .podium-thumb img { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; }
.tile-defi { position: absolute; top: 6px; right: 6px; font-size: .7rem; font-weight: 600; letter-spacing: .03em; padding: 2px 7px; border-radius: 10px; background: rgba(250,246,240,.92); color: var(--ink); pointer-events: none; }

/* ---------- Tableau de bord admin ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.disk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; }
.disk-head strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 400; }
.meter { height: 14px; background: var(--paper-2); border-radius: 7px; overflow: hidden; border: 1px solid var(--line); }
.meter > span { display: block; height: 100%; background: var(--ink); border-radius: 0 4px 4px 0; }
.meter-warn > span { background: #B7791F; }
.meter-crit > span { background: #A63A2B; }
.meter-scale { display: flex; justify-content: space-between; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.pill-crit { background: #F5D9D3; border-color: #E2A99C; color: #7A2416; }
.pill-today { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.hbars { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.hbars li { display: grid; grid-template-columns: minmax(90px, 32%) minmax(0, 1fr) 72px; align-items: center; gap: 10px; font-size: .9rem; }
.hbar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.hbar-name:hover { text-decoration: underline; }
.hbar-track { display: block; height: 12px; }
.hbar { display: block; height: 100%; background: var(--ink); border-radius: 0 4px 4px 0; opacity: .82; }
.hbars li:hover .hbar { opacity: 1; }
.hbar-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.tl-date { flex: 0 0 52px; text-align: center; line-height: 1.1; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.tl-date strong { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 400; color: var(--ink); text-transform: none; }
.tl-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tl-main a { text-decoration: none; }
.create-wed > summary { cursor: pointer; padding: 4px 0; list-style: none; }
.create-wed > summary::-webkit-details-marker { display: none; }
.create-wed[open] > summary { margin-bottom: 8px; }
#nettoyage select { width: 100%; }
@media (max-width: 560px) { .hbars li { grid-template-columns: minmax(0, 1fr) 64px; } .hbar-track { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Choix de la langue (FR / EN / TR) ---------- */
.lang-switch { position: relative; font-size: .88rem; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  color: var(--muted); white-space: nowrap; padding: 4px 9px; border: 1px solid var(--line);
  border-radius: 20px; background: var(--paper); user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--ink); border-color: var(--muted); }
.lang-switch summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; margin: 0; padding: 4px; list-style: none;
  min-width: 140px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.lang-switch li a { display: block; padding: 8px 12px; border-radius: 4px; color: var(--ink); text-decoration: none; }
.lang-switch li a:hover { background: var(--paper-2); }
.lang-switch li a.on { font-weight: 700; background: var(--paper-2); }
.lang-float { position: absolute; top: 12px; right: 12px; z-index: 30; }
