/* ═══════════════════════════════════════════════════════════════
   Noël & Nouvel An 2026 — Illkirch
   Palette : nuit d'hiver alsacienne, sapin, cuivre, or pâle
   ═══════════════════════════════════════════════════════════════ */

:root {
  --nuit:        #0d1a17;
  --nuit-2:      #12241f;
  --nuit-3:      #1a3029;
  --sapin:       #1f4f3f;
  --sapin-clair: #2f7a5f;
  --rouge:       #a3313b;
  --rouge-clair: #c9505a;
  --or:          #d8b26a;
  --or-pale:     #f0dcae;
  --creme:       #f6f1e6;
  --texte:       #eae4d6;
  --texte-doux:  #a9b5ae;
  --bord:        rgba(216, 178, 106, .18);
  --bord-fort:   rgba(216, 178, 106, .38);
  --ombre:       0 10px 40px rgba(0, 0, 0, .45);
  --r:           14px;
  --serif:       "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Nos classes utilitaires posent display:grid/flex, ce qui écraserait le
   display:none que le navigateur applique à [hidden]. On le rétablit. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--texte);
  background:
    radial-gradient(1200px 600px at 15% -5%, rgba(47, 122, 95, .22), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(163, 49, 59, .16), transparent 55%),
    var(--nuit);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, legend { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }

a { color: var(--or); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Boutons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s;
  text-decoration: none;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary { background: linear-gradient(160deg, var(--rouge-clair), var(--rouge)); color: #fff; box-shadow: 0 6px 20px rgba(163, 49, 59, .35); }
.btn-primary:hover { background: linear-gradient(160deg, #d75c66, #b03a44); }

.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--or-pale); border-color: var(--bord-fort); }
.btn-ghost:hover { background: rgba(216, 178, 106, .12); }

.btn-full { width: 100%; }
.btn-lg   { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-sm   { padding: .45rem .95rem; font-size: .85rem; }

.lien-discret {
  background: none; border: 0; color: var(--texte-doux); font: inherit;
  font-size: .85rem; text-decoration: underline; cursor: pointer; margin-top: 1.2rem;
}
.lien-discret:hover { color: var(--or); }

/* ── Flocons ─────────────────────────────────────────────── */

.flocons { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.flocon {
  position: absolute; top: -10%;
  color: rgba(255, 255, 255, .55);
  animation: tomber linear infinite;
  user-select: none;
}
@keyframes tomber {
  to { transform: translateY(115vh) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .flocon { display: none; }
  html { scroll-behavior: auto; }
}

/* ── Écrans de connexion ─────────────────────────────────── */

.login-wrap {
  position: relative; min-height: 100vh;
  display: grid; place-items: center; padding: 2rem 1.25rem;
}

.login-card {
  position: relative; z-index: 1;
  width: min(440px, 100%);
  background: linear-gradient(165deg, rgba(26, 48, 41, .92), rgba(13, 26, 23, .96));
  border: 1px solid var(--bord);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--ombre);
  backdrop-filter: blur(6px);
}
.login-emoji { font-size: 3rem; line-height: 1; }
.login-card h1 { margin: .8rem 0 .2rem; font-size: 1.9rem; line-height: 1.15; }
.login-card h1 span { color: var(--or); font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; }
.login-intro { color: var(--texte-doux); font-size: .95rem; margin: 1rem 0 1.6rem; }

input, select, textarea {
  width: 100%; font: inherit; color: var(--texte);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--bord);
  border-radius: 10px;
  padding: .7rem .9rem;
  transition: border-color .2s, background .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--or); background: rgba(255, 255, 255, .08);
}
textarea { resize: vertical; }
select option { background: var(--nuit-3); color: var(--texte); }

#form-login input, #form-identite input { margin-bottom: .9rem; text-align: center; }

.erreur { color: var(--rouge-clair); font-size: .9rem; margin-top: 1rem; }

.fiches-existantes { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.4rem; }
.fiche-btn {
  background: rgba(255, 255, 255, .05); border: 1px solid var(--bord);
  color: var(--texte); border-radius: 999px; padding: .4rem 1rem;
  font: inherit; font-size: .9rem; cursor: pointer;
}
.fiche-btn:hover { border-color: var(--or); color: var(--or-pale); }
.separateur-ou {
  flex: 1 0 100%; margin: .2rem 0;
  color: var(--texte-doux); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em;
}

/* ── En-tête ─────────────────────────────────────────────── */

.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 26, 23, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bord);
}
.entete-inner {
  max-width: 1120px; margin: 0 auto; padding: .8rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.marque { display: flex; align-items: center; gap: .7rem; }
.marque-emoji { font-size: 1.6rem; }
.marque strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.marque small { color: var(--texte-doux); font-size: .78rem; }
.entete-actions { display: flex; align-items: center; gap: .6rem; }

.badge {
  background: rgba(216, 178, 106, .14); color: var(--or-pale);
  border: 1px solid var(--bord); border-radius: 999px;
  padding: .25rem .8rem; font-size: .8rem; font-weight: 600;
}

.onglets {
  max-width: 1120px; margin: 0 auto; padding: 0 1.25rem .5rem;
  display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none;
}
.onglets::-webkit-scrollbar { display: none; }
.onglet {
  flex: 0 0 auto; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--texte-doux); font: inherit; font-size: .92rem; font-weight: 600;
  padding: .55rem .85rem; cursor: pointer; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.onglet:hover { color: var(--texte); }
.onglet.actif { color: var(--or); border-bottom-color: var(--or); }

/* ── Contenu ─────────────────────────────────────────────── */

.contenu { max-width: 1120px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.titre-vue { font-size: 2rem; margin: 0 0 .3rem; }
.chapo { color: var(--texte-doux); margin: 0 0 1.8rem; max-width: 60ch; }

.avertissement {
  background: rgba(216, 178, 106, .08); border: 1px solid var(--bord);
  border-radius: 10px; padding: .7rem 1rem; font-size: .88rem;
  color: var(--or-pale); margin: 0 0 1.5rem;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--bord);
  background:
    radial-gradient(700px 350px at 70% 110%, rgba(47, 122, 95, .35), transparent 65%),
    linear-gradient(160deg, var(--nuit-3), var(--nuit));
  padding: 3.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--ombre);
}
.hero-texte { position: relative; z-index: 1; max-width: 34rem; }
.hero-sur {
  color: var(--or); font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .8rem;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; margin: 0 0 1rem; }
.hero-sous { color: var(--texte-doux); font-size: 1.05rem; margin: 0 0 1.8rem; }

/* ── Cartes ──────────────────────────────────────────────── */

.carte {
  background: linear-gradient(165deg, rgba(26, 48, 41, .55), rgba(18, 36, 31, .75));
  border: 1px solid var(--bord); border-radius: var(--r);
  padding: 1.6rem; margin-bottom: 1.25rem;
}
.carte h2 { font-size: 1.2rem; margin: 0 0 1rem; }
.carte-large { grid-column: 1 / -1; }
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.25rem; align-items: start; }
.grille-2 .carte { margin-bottom: 0; }
.note { color: var(--texte-doux); font-size: .86rem; margin: .6rem 0 0; }

.etapes { margin: 0; padding-left: 1.2rem; }
.etapes li { margin-bottom: .7rem; }
.etapes li::marker { color: var(--or); font-weight: 700; }

.liste-puces { margin: 0; padding-left: 1.2rem; }
.liste-puces li { margin-bottom: .6rem; }
.liste-puces li::marker { color: var(--or); }

.temps-forts { list-style: none; margin: 0; padding: 0; }
.temps-forts li {
  display: flex; align-items: center; gap: .8rem;
  padding: .65rem 0; border-bottom: 1px dashed var(--bord);
}
.temps-forts li:last-child { border-bottom: 0; }
.temps-forts .tf-emoji { font-size: 1.4rem; }
.temps-forts .tf-nom { font-weight: 600; }
.temps-forts .tf-date { color: var(--texte-doux); font-size: .84rem; }
.temps-forts .tf-nb { margin-left: auto; color: var(--or); font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* ── Statistiques ────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; margin-bottom: 1.8rem; }
.stat {
  background: rgba(255, 255, 255, .035); border: 1px solid var(--bord);
  border-radius: var(--r); padding: 1.1rem 1.2rem; text-align: center;
}
.stat-nb { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--or); }
.stat-lb { color: var(--texte-doux); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .4rem; }

/* ── Formulaire ──────────────────────────────────────────── */

.formulaire fieldset { border: 1px solid var(--bord); }
.formulaire legend {
  font-size: 1.05rem; color: var(--or); padding: 0 .6rem;
}
.formulaire label { display: block; margin-bottom: 1rem; font-size: .9rem; font-weight: 600; color: var(--texte-doux); }
.formulaire label input, .formulaire label select, .formulaire label textarea {
  margin-top: .35rem; font-weight: 400; color: var(--texte);
}
.formulaire label.sans-label { margin-bottom: 0; }
.champs-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.mi-largeur { max-width: 26rem; }

.choix-statut, .choix-heberg { display: flex; flex-wrap: wrap; gap: .6rem; }
.pastille { position: relative; margin: 0 !important; cursor: pointer; }
/* Le radio est masqué mais doit rester focusable. Sans width/height explicites
   il hériterait du « input { width: 100% } » et déborderait de la page. */
.pastille input {
  position: absolute; inset: 0 auto auto 0;
  width: 1px; height: 1px; margin: 0; padding: 0;
  opacity: 0; pointer-events: none;
}
.pastille span {
  display: inline-block; padding: .6rem 1.1rem;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--bord);
  border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--texte);
  transition: all .18s;
}
.pastille:hover span { border-color: var(--bord-fort); }
.pastille input:checked + span {
  background: rgba(216, 178, 106, .16); border-color: var(--or); color: var(--or-pale);
}
.pastille input:focus-visible + span { outline: 2px solid var(--or); outline-offset: 2px; }

.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; margin-bottom: 1.2rem; }
.cases-activites { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.case {
  display: flex; align-items: flex-start; gap: .6rem; margin: 0 !important;
  padding: .6rem .8rem; background: rgba(255, 255, 255, .03);
  border: 1px solid var(--bord); border-radius: 10px;
  font-weight: 500; color: var(--texte); cursor: pointer; transition: all .18s;
}
.case:hover { border-color: var(--bord-fort); }
.case input { width: auto; margin: .25rem 0 0; flex: 0 0 auto; accent-color: var(--rouge-clair); }
.case:has(input:checked) { background: rgba(216, 178, 106, .1); border-color: var(--or); }

.compteur-nuits {
  background: rgba(47, 122, 95, .16); border: 1px solid rgba(47, 122, 95, .4);
  border-radius: 10px; padding: .7rem 1rem; font-size: .92rem; color: var(--or-pale);
  margin: .2rem 0 1.2rem;
}

.liste-accompagnants { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .9rem; }
.ligne-accompagnant { display: flex; gap: .5rem; align-items: center; }
.ligne-accompagnant input { flex: 1 1 auto; }
.ligne-accompagnant select { flex: 0 0 9rem; }
.btn-suppr {
  flex: 0 0 auto; background: rgba(163, 49, 59, .16); border: 1px solid rgba(201, 80, 90, .4);
  color: var(--rouge-clair); border-radius: 8px; width: 2.3rem; height: 2.4rem;
  font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.btn-suppr:hover { background: rgba(163, 49, 59, .3); }

.barre-envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.retour { font-size: .92rem; font-weight: 600; }
.retour.ok { color: #6fd39a; }
.retour.ko { color: var(--rouge-clair); }

/* ── Chambres ────────────────────────────────────────────── */

.liste-chambres { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.chambre {
  text-align: left; background: rgba(255, 255, 255, .035);
  border: 1px solid var(--bord); border-radius: 12px; padding: .9rem 1rem;
  color: var(--texte); font: inherit; cursor: pointer; transition: all .18s;
}
.chambre[disabled] { opacity: .45; cursor: not-allowed; }
.chambre:not([disabled]):hover { border-color: var(--bord-fort); }
.chambre.choisie { background: rgba(216, 178, 106, .14); border-color: var(--or); }
.chambre-nom { font-weight: 700; font-family: var(--serif); }
.chambre-detail { color: var(--texte-doux); font-size: .82rem; }
.jauge { height: 6px; background: rgba(255, 255, 255, .1); border-radius: 999px; margin: .6rem 0 .35rem; overflow: hidden; }
.jauge > i { display: block; height: 100%; background: linear-gradient(90deg, var(--sapin-clair), var(--or)); border-radius: 999px; }
.jauge-pleine > i { background: linear-gradient(90deg, var(--rouge), var(--rouge-clair)); }
.chambre-places { font-size: .8rem; color: var(--texte-doux); }
.chambre-occupants { font-size: .8rem; color: var(--or-pale); margin-top: .3rem; }
.liste-chambres-large { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.liste-chambres-large .chambre { cursor: default; }

/* ── Invités ─────────────────────────────────────────────── */

.grille-invites { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.invite {
  background: linear-gradient(165deg, rgba(26, 48, 41, .55), rgba(18, 36, 31, .75));
  border: 1px solid var(--bord); border-radius: var(--r); padding: 1.2rem;
}
.invite.absent { opacity: .55; }
.invite-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.invite-nom { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.puce {
  flex: 0 0 auto; font-size: .72rem; font-weight: 700; border-radius: 999px;
  padding: .18rem .6rem; text-transform: uppercase; letter-spacing: .05em;
}
.puce-oui  { background: rgba(47, 122, 95, .3);  color: #8fe0b6; }
.puce-peut { background: rgba(216, 178, 106, .2); color: var(--or-pale); }
.puce-non  { background: rgba(163, 49, 59, .25);  color: var(--rouge-clair); }
.invite-lignes { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.invite-lignes li { display: flex; gap: .5rem; padding: .22rem 0; color: var(--texte-doux); }
.invite-lignes li b { color: var(--texte); font-weight: 600; }
.invite-message { margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed var(--bord); font-size: .88rem; font-style: italic; color: var(--or-pale); }
.etiquettes { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.etiquette {
  font-size: .74rem; background: rgba(255, 255, 255, .06);
  border: 1px solid var(--bord); border-radius: 999px; padding: .15rem .55rem; color: var(--texte-doux);
}
.etiquette-allerg { background: rgba(163, 49, 59, .18); border-color: rgba(201, 80, 90, .35); color: var(--rouge-clair); }
.vide { color: var(--texte-doux); text-align: center; padding: 3rem 1rem; }

/* ── Doodle / calendrier ─────────────────────────────────── */

.legende { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .84rem; color: var(--texte-doux); margin-bottom: .9rem; }
.legende span { display: flex; align-items: center; gap: .4rem; }
.pastille-legende { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.pl-oui  { background: var(--sapin-clair); }
.pl-peut { background: rgba(216, 178, 106, .55); }
.pl-fort { background: rgba(163, 49, 59, .5); }
.pl-marche { background: rgba(216, 178, 106, .5); }

.doodle-wrap {
  overflow-x: auto; border: 1px solid var(--bord); border-radius: var(--r);
  background: rgba(18, 36, 31, .6); margin-bottom: 2rem;
}
.doodle { border-collapse: collapse; width: 100%; font-size: .82rem; }
.doodle th, .doodle td { border: 1px solid rgba(255, 255, 255, .07); padding: .35rem .3rem; text-align: center; }
.doodle thead th { position: sticky; top: 0; background: var(--nuit-3); z-index: 2; font-weight: 600; }
.doodle .col-nom {
  position: sticky; left: 0; z-index: 3; background: var(--nuit-2);
  text-align: left; padding: .45rem .8rem; min-width: 10rem; font-weight: 600; white-space: nowrap;
}
.doodle thead .col-nom { z-index: 4; background: var(--nuit-3); }
.doodle .jour-num { display: block; font-size: 1rem; font-weight: 700; }
.doodle .jour-sem { display: block; font-size: .68rem; color: var(--texte-doux); text-transform: uppercase; }
.doodle .jour-mois { display: block; font-size: .62rem; color: var(--or); text-transform: uppercase; letter-spacing: .06em; }
.doodle th.fort { background: rgba(163, 49, 59, .35); }
.doodle td.present { background: rgba(47, 122, 95, .5); }
.doodle td.peut { background: rgba(216, 178, 106, .3); }
.doodle td.fort { box-shadow: inset 0 0 0 1px rgba(163, 49, 59, .5); }
.doodle tr.ligne-section th.col-nom,
.doodle tr.ligne-section td {
  background: var(--nuit-3);
  font-family: var(--serif); font-size: .88rem; font-weight: 700;
  color: var(--or); padding: .45rem .8rem;
  border-top: 2px solid var(--bord-fort);
}

/* Bandeaux des marchés de Noël, au-dessus des lignes d'invités. */
.doodle tbody.marches th.col-nom {
  font-weight: 600; font-size: .78rem; line-height: 1.25;
  padding-top: .3rem; padding-bottom: .3rem;
}
.doodle tbody.marches th.col-nom small {
  display: block; font-size: .68rem; font-weight: 400;
  color: var(--texte-doux); text-transform: none; letter-spacing: 0;
}
.doodle tbody.marches td { padding: .25rem .3rem; }
.doodle td.marche-ouvert { background: rgba(216, 178, 106, .32); }
.doodle td.marche-dernier {
  background: rgba(216, 178, 106, .55);
  box-shadow: inset -2px 0 0 var(--or);
  font-size: .8rem;
}
.doodle tbody.marches tr:last-child td,
.doodle tbody.marches tr:last-child th { border-bottom: 2px solid var(--bord-fort); }

.doodle tr.ligne-total td, .doodle tr.ligne-total th {
  background: var(--nuit-3); font-weight: 700; color: var(--or); border-top: 2px solid var(--bord-fort);
}
.doodle tr.ligne-total .col-nom { background: var(--nuit-3); }
.doodle td.moi { outline: 2px solid var(--or); outline-offset: -2px; }

/* ── Activités ───────────────────────────────────────────── */

.grille-activites { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.activite {
  background: linear-gradient(165deg, rgba(26, 48, 41, .55), rgba(18, 36, 31, .75));
  border: 1px solid var(--bord); border-radius: var(--r); padding: 1.3rem;
  display: flex; flex-direction: column;
}
.activite-tete { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: .6rem; }
.activite-emoji { font-size: 1.8rem; line-height: 1; }
.activite h3 { margin: 0; font-size: 1.08rem; }
.activite-meta { color: var(--or); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.activite p { font-size: .9rem; color: var(--texte-doux); margin: 0 0 1rem; flex: 1; }
.activite-pied { display: flex; align-items: center; justify-content: space-between; gap: .8rem; font-size: .82rem; border-top: 1px dashed var(--bord); padding-top: .8rem; }
.votes { color: var(--or-pale); font-weight: 700; white-space: nowrap; }
.periode { color: var(--texte-doux); font-size: .78rem; }
.barre-votes { height: 5px; background: rgba(255, 255, 255, .08); border-radius: 999px; margin-top: .6rem; overflow: hidden; }
.barre-votes > i { display: block; height: 100%; background: linear-gradient(90deg, var(--rouge), var(--or)); border-radius: 999px; }

/* ── Tableaux admin ──────────────────────────────────────── */

.tableau-wrap { overflow-x: auto; border: 1px solid var(--bord); border-radius: 10px; }
.tableau { border-collapse: collapse; width: 100%; font-size: .84rem; white-space: nowrap; }
.tableau th, .tableau td { padding: .55rem .7rem; border-bottom: 1px solid rgba(255, 255, 255, .07); text-align: left; }
.tableau thead th { background: var(--nuit-3); color: var(--or); position: sticky; top: 0; font-weight: 600; }
.tableau tbody tr:hover { background: rgba(255, 255, 255, .03); }
.regime-bloc { margin-bottom: 1rem; }
.regime-bloc h3 { font-size: .95rem; margin: 0 0 .3rem; color: var(--or); }
.regime-bloc p { margin: 0; font-size: .9rem; color: var(--texte-doux); }
/* ── Clans, hébergement attribué, attribution ─────────────── */

.titre-clan {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem;
  font-size: 1.25rem; margin: 2.2rem 0 .9rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--bord);
}
#liste-invites > .titre-clan:first-child { margin-top: 0; }
.titre-clan small {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  color: var(--texte-doux); text-transform: uppercase; letter-spacing: .06em;
}

.encart-reservation {
  background: rgba(47, 122, 95, .16); border: 1px solid rgba(47, 122, 95, .4);
  border-radius: 10px; padding: .8rem 1rem; margin: 1rem 0 0;
  font-size: .92rem; color: var(--or-pale);
}

.mon-heberg {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--bord);
  border-radius: 10px; padding: .8rem 1rem; margin: .8rem 0;
  font-size: 1rem; font-weight: 600; color: var(--texte-doux);
}
.mon-heberg.attribue {
  background: rgba(47, 122, 95, .18); border-color: rgba(47, 122, 95, .45);
  color: var(--or-pale);
}

.tableau-attrib { margin-top: 1.2rem; }
.tableau-attrib .tableau td { white-space: nowrap; vertical-align: middle; }
.sel-attrib {
  width: auto; min-width: 12rem; max-width: 20rem;
  padding: .35rem .6rem; font-size: .84rem;
}
.sel-clan { min-width: 11rem; }
.tableau tr.ligne-absent { opacity: .5; }
.tableau-attrib .retour { font-size: .8rem; }

/* ── Transport, hôtes, arrivées ───────────────────────────── */

.choix-transport { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .6rem; }

.fiche-hote { border-color: var(--bord-fort); color: var(--or-pale); }

.puce-hote {
  margin-left: .5rem; font-family: var(--sans); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; vertical-align: middle;
  background: rgba(216, 178, 106, .18); color: var(--or-pale);
  border: 1px solid var(--bord); border-radius: 999px; padding: .1rem .5rem;
}

.arrivees h3.jour-arrivee {
  font-size: .95rem; color: var(--or); margin: 1.1rem 0 .4rem;
  padding-bottom: .3rem; border-bottom: 1px dashed var(--bord);
}
.arrivees h3.jour-arrivee:first-child { margin-top: 0; }
.ligne-arrivee {
  display: grid; grid-template-columns: 4.2rem 1fr auto auto;
  gap: .8rem; align-items: baseline;
  padding: .35rem 0; font-size: .89rem;
}
.ligne-arrivee .heure { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--or-pale); }
.ligne-arrivee .qui { font-weight: 600; }
.ligne-arrivee .moyen, .ligne-arrivee .ou { color: var(--texte-doux); font-size: .84rem; }

.barre-ajout { margin-top: 0; margin-bottom: 1rem; }
.barre-ajout input { flex: 1 1 14rem; max-width: 22rem; }

@media (max-width: 640px) {
  .ligne-arrivee { grid-template-columns: 3.6rem 1fr; }
  .ligne-arrivee .moyen, .ligne-arrivee .ou { grid-column: 2; }
}

.etat-sauvegarde {
  background: rgba(47, 122, 95, .16); border: 1px solid rgba(47, 122, 95, .4);
  border-radius: 10px; padding: .7rem 1rem; font-size: .9rem;
  color: var(--or-pale); margin: .8rem 0 0;
}
.etat-sauvegarde.ko { background: rgba(163, 49, 59, .14); border-color: rgba(201, 80, 90, .4); color: var(--rouge-clair); }
.journal { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: var(--texte-doux); max-height: 18rem; overflow-y: auto; }
.journal div { padding: .18rem 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }

/* ── Pied ────────────────────────────────────────────────── */

.pied { text-align: center; color: var(--texte-doux); font-size: .82rem; padding: 2rem 1.25rem 3rem; border-top: 1px solid var(--bord); }

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 640px) {
  /* Les noms de marchés sont longs : sans plafond, la colonne figée mange
     l'écran et il ne reste que deux ou trois jours visibles. */
  .doodle .col-nom {
    min-width: 7.5rem; max-width: 8.5rem;
    white-space: normal; padding: .4rem .5rem;
  }
  .doodle tbody.marches th.col-nom { font-size: .72rem; }
  .doodle tbody.marches th.col-nom small { font-size: .64rem; }

  .hero { padding: 2.5rem 1.4rem; }
  .carte { padding: 1.2rem; }
  .entete-inner { flex-wrap: wrap; }
  .badge { display: none; }
  .ligne-accompagnant { flex-wrap: wrap; }
  .ligne-accompagnant select { flex: 1 1 auto; }
}
