/* ===== Canoë Montana — design épuré clair & sombre ===== */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}

/* ---- Tokens : mode clair (par défaut) ---- */
:root {
  --fond: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --texte: #0f172a;
  --texte-doux: #64748b;
  --bord: #e2e8f0;
  --bord-fort: #cbd5e1;

  --accent: #2563eb;
  --accent-fort: #1d4ed8;
  --accent-pale: #eff6ff;
  --sur-accent: #ffffff;

  --vert: #16a34a;
  --vert-fort: #15803d;
  --vert-pale: #f0fdf4;
  --vert-bord: #bbf7d0;

  --rouge: #dc2626;
  --rouge-pale: #fef2f2;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --ombre-1: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --ombre-2: 0 4px 14px rgba(15, 23, 42, 0.08);
  --ombre-3: 0 16px 40px rgba(15, 23, 42, 0.18);
  --t: 160ms cubic-bezier(0.22, 1, 0.36, 1);
  --police-titre: "Fraunces", Georgia, "Times New Roman", serif;
  --police-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---- Tokens : mode sombre ---- */
html[data-theme="sombre"] {
  --fond: #0b1220;
  --surface: #1e293b;
  --surface-2: #172033;
  --texte: #e2e8f0;
  --texte-doux: #94a3b8;
  --bord: #334155;
  --bord-fort: #475569;

  --accent: #3b82f6;
  --accent-fort: #60a5fa;
  --accent-pale: #18243c;
  --sur-accent: #ffffff;

  --vert: #22c55e;
  --vert-fort: #4ade80;
  --vert-pale: #14271d;
  --vert-bord: #2f5138;

  --rouge: #f87171;
  --rouge-pale: #2a1718;

  --ombre-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --ombre-2: 0 4px 14px rgba(0, 0, 0, 0.45);
  --ombre-3: 0 16px 40px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--police-ui);
  color: var(--texte);
  background:
    radial-gradient(115% 60% at 100% 0%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 55%),
    radial-gradient(115% 60% at 0% 100%, color-mix(in srgb, #06b6d4 9%, transparent), transparent 52%),
    var(--fond);
  background-attachment: fixed;
  font-size: 17px;
  line-height: 1.5;
  min-height: 100dvh;
  transition: color var(--t);
}

.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;
}

/* ---- En-tête (léger) ---- */
header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--bord);
  padding: calc(env(safe-area-inset-top) + 11px) 16px 11px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
}
.barre-titre { display: flex; align-items: center; gap: 10px; }
.logo { border-radius: 9px; flex-shrink: 0; box-shadow: var(--ombre-1); }
header h1 {
  margin: 0;
  font-family: var(--police-titre);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(19px, 4vw, 23px);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--texte);
}
.version {
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--texte-doux);
  background: var(--surface-2); border: 1px solid var(--bord);
  padding: 3px 9px; border-radius: 999px;
}
.btn-theme {
  width: 40px; height: 40px; flex-shrink: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--bord); border-radius: 999px;
  background: var(--surface-2); color: var(--texte-doux);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn-theme:hover { color: var(--accent); border-color: var(--accent); }
.btn-theme:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-theme svg { width: 20px; height: 20px; }
.btn-theme .i-soleil { display: none; }
html[data-theme="sombre"] .btn-theme .i-soleil { display: block; }
html[data-theme="sombre"] .btn-theme .i-lune { display: none; }

.tabs {
  display: flex; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--bord);
  padding: 4px; border-radius: 999px; max-width: 520px;
}
.tab {
  flex: 1; padding: 8px 8px; min-height: 44px;
  font-family: var(--police-ui); font-size: 14px; font-weight: 600;
  border: none; background: transparent; color: var(--texte-doux);
  border-radius: 999px; cursor: pointer;
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.tab.active { background: var(--surface); color: var(--accent); box-shadow: var(--ombre-1); }
.tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---- Panneaux ---- */
.panel { display: none; padding: 22px 16px calc(env(safe-area-inset-bottom) + 32px); max-width: 980px; margin: 0 auto; }
.panel.active { display: block; }

@keyframes lever { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel.active > * { animation: lever 400ms var(--t) backwards; }
.panel.active > *:nth-child(1) { animation-delay: 30ms; }
.panel.active > *:nth-child(2) { animation-delay: 80ms; }
.panel.active > *:nth-child(3) { animation-delay: 130ms; }
.panel.active > *:nth-child(4) { animation-delay: 180ms; }

/* ---- Carte générique ---- */
#form-inscription, .cal, .cal-resume, .table-scroll, .carte-total {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--r-lg);
  box-shadow: var(--ombre-1);
}
#form-inscription { padding: 20px; }

/* ---- Formulaire ---- */
.champs { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
label { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; gap: 7px; color: var(--texte-doux); text-transform: uppercase; letter-spacing: 0.04em; }
.champs label { white-space: nowrap; }
input {
  font-family: var(--police-ui); font-size: 17px;
  padding: 12px 14px; min-height: 50px;
  border: 1.5px solid var(--bord); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--texte);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
input::placeholder { color: var(--texte-doux); opacity: 0.7; font-weight: 400; }
input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.facultatif { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--texte-doux); }

.bloc-choix { margin-top: 24px; }
.bloc-titre {
  font-family: var(--police-ui); font-weight: 700;
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--texte-doux); display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.bloc-titre::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.liste-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 16px; min-height: 46px;
  border: 1.5px solid var(--bord); border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface)); color: var(--texte);
  font-family: var(--police-ui); font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(0.96); }
.chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip.selectionne { background: var(--accent); color: var(--sur-accent); border-color: var(--accent); }

/* ---- Compteurs (steppers) ---- */
.steppers { display: grid; grid-template-columns: 1fr; gap: 10px; }
.stepper {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--bord); border-radius: var(--r-md);
  background: var(--surface-2);
  transition: border-color var(--t), box-shadow var(--t);
}
.stepper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.stepper-info { display: flex; align-items: center; gap: 11px; color: var(--accent); }
.stepper-info strong { font-size: 16px; color: var(--texte); }
.stepper-info small { color: var(--texte-doux); font-size: 12px; }
.stepper-ctrl { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pas {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--bord); background: var(--surface); color: var(--accent);
  font-size: 24px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.pas:hover { border-color: var(--accent); background: var(--accent-pale); }
.pas:active { transform: scale(0.9); }
.pas:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pas:disabled { opacity: 0.4; cursor: not-allowed; }
.pas:disabled:hover { background: var(--surface); border-color: var(--bord); }
.stepper.desactive { opacity: 0.55; }
.qte { min-width: 30px; text-align: center; font-family: var(--police-titre); font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- Récapitulatif & actions ---- */
.recap {
  margin-top: 24px; padding: 16px 18px; border-radius: var(--r-md);
  background: var(--accent-pale);
  border: 1px solid var(--bord); color: var(--texte); font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.recap-info { display: flex; flex-direction: column; gap: 5px; }
.recap-alerte { color: var(--rouge); font-weight: 700; font-size: 13px; }
.recap-prix { font-family: var(--police-titre); font-size: 26px; font-weight: 600; color: var(--vert-fort); font-variant-numeric: tabular-nums; }
.recap:not(.rempli) { background: var(--surface-2); color: var(--texte-doux); justify-content: flex-start; font-weight: 500; }
.recap.alerte { background: var(--rouge-pale); border-color: var(--rouge); color: var(--rouge); }
.recap.alerte .recap-prix { color: var(--rouge); }

.actions-resa { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-top: 20px; }
.btn-valider, .btn-recommencer {
  min-height: 56px; border: none; border-radius: var(--r-md); cursor: pointer;
  font-family: var(--police-ui); font-size: 17px; font-weight: 700;
  transition: transform var(--t), box-shadow var(--t), filter var(--t), background var(--t);
}
.btn-valider { background: var(--accent); color: var(--sur-accent); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-valider:hover { background: var(--accent-fort); }
.btn-recommencer { background: var(--surface-2); color: var(--texte); border: 1px solid var(--bord); }
.btn-valider:active, .btn-recommencer:active { transform: translateY(1px) scale(0.99); }
.btn-valider:focus-visible, .btn-recommencer:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.message { text-align: center; min-height: 24px; font-weight: 700; margin: 16px 0 0; }
.message.ok { color: var(--vert-fort); }
.message.erreur { color: var(--rouge); }

/* ---- Totaux ---- */
.totaux { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.carte-total { position: relative; overflow: hidden; padding: 18px 12px 14px; text-align: center; border-radius: var(--r-md); }
.carte-total::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--cc, var(--accent)); }
.carte-total .valeur { display: block; font-family: var(--police-titre); font-size: 32px; font-weight: 600; color: var(--texte); font-variant-numeric: tabular-nums; line-height: 1.1; }
.carte-total .etiquette { font-size: 11px; color: var(--texte-doux); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
/* Couleurs distinctes par type de carte */
.carte-total.t-personnes { --cc: #3b82f6; }
.carte-total.t-canoe { --cc: #06b6d4; }
.carte-total.t-kayak { --cc: #f59e0b; }
.carte-total.t-personnes, .carte-total.t-canoe, .carte-total.t-kayak {
  background: color-mix(in srgb, var(--cc) 9%, var(--surface));
  border-color: color-mix(in srgb, var(--cc) 30%, var(--bord));
}
.carte-total.t-personnes .valeur, .carte-total.t-canoe .valeur, .carte-total.t-kayak .valeur { color: var(--cc); }
.carte-total.recette { --cc: var(--vert); background: var(--vert-pale); border-color: var(--vert-bord); }
.carte-total.recette .valeur { color: var(--vert-fort); }

/* Bateaux par point de départ (logistique) */
.section-titre { font-family: var(--police-titre); font-weight: 600; font-size: 17px; color: var(--texte); margin: 4px 0 12px; }
.departs { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
.depart-carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--r-md); box-shadow: var(--ombre-1); padding: 14px 16px; }
.depart-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.depart-titre { font-family: var(--police-titre); font-weight: 600; font-size: 16px; color: var(--texte); }
.depart-sous { font-size: 11px; color: var(--texte-doux); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.depart-gros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gros-bloc { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 16px 8px; border-radius: var(--r-sm); border: 1px solid var(--bord); }
.gros-canoe { background: color-mix(in srgb, #06b6d4 12%, var(--surface)); border-color: color-mix(in srgb, #06b6d4 35%, var(--bord)); }
.gros-kayak { background: color-mix(in srgb, #f59e0b 14%, var(--surface)); border-color: color-mix(in srgb, #f59e0b 35%, var(--bord)); }
.gros-num { font-family: var(--police-titre); font-size: 46px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.gros-canoe .gros-num { color: #06b6d4; }
.gros-kayak .gros-num { color: #f59e0b; }
.gros-lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-doux); }
.remorques { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bord); font-size: 16px; color: var(--accent); }
.remorques small { color: var(--texte-doux); font-weight: 500; font-size: 12px; }

.barre-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.btn-secondaire {
  padding: 12px 16px; min-height: 48px; border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--police-ui); font-size: 15px; font-weight: 700;
  background: var(--surface); color: var(--texte); border: 1px solid var(--bord);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.btn-secondaire:hover { border-color: var(--accent); color: var(--accent); }
.btn-secondaire:active { transform: scale(0.97); }
.btn-secondaire:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---- Recherche ---- */
.recherche-barre {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 0 14px;
  background: var(--surface); border: 1.5px solid var(--bord); border-radius: var(--r-sm); color: var(--texte-doux);
  transition: border-color var(--t), box-shadow var(--t);
}
.recherche-barre:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.recherche-barre svg { flex-shrink: 0; }
.recherche-barre input { flex: 1; min-width: 0; border: none; background: transparent; min-height: 50px; padding: 12px 0; font-size: 16px; color: var(--texte); }
.recherche-barre input:focus { outline: none; box-shadow: none; }

/* ---- Tableau ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); }
.tableau { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 680px; }
.tableau th, .tableau td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--bord); font-size: 16px; white-space: nowrap; }
.tableau td:nth-child(2), .tableau td:nth-child(3) { font-weight: 700; color: var(--texte); }
.tableau th { background: var(--surface-2); color: var(--texte-doux); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.tableau th.triable { cursor: pointer; user-select: none; }
.tableau th.triable:hover { color: var(--accent); }
.tableau th.tri-actif { color: var(--accent); }
.tableau th.triable[data-sens="asc"]::after { content: "▲"; font-size: 8px; margin-left: 5px; }
.tableau th.triable[data-sens="desc"]::after { content: "▼"; font-size: 8px; margin-left: 5px; }
.tableau tbody tr:last-child td { border-bottom: none; }
.tableau td:nth-child(9) { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--vert-fort); }
.btn-suppr {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--rouge); font-size: 22px; cursor: pointer; border-radius: 50%;
  transition: background var(--t);
}
.btn-suppr:hover { background: var(--rouge-pale); }
.btn-suppr:focus-visible { outline: 3px solid var(--rouge); outline-offset: 1px; }
.vide { text-align: center; color: var(--texte-doux); padding: 48px 16px; font-size: 16px; }

/* ---- Dialog tarifs ---- */
dialog {
  border: 1px solid var(--bord); border-radius: var(--r-lg); padding: 24px; width: min(92vw, 380px);
  box-shadow: var(--ombre-3); color: var(--texte); background: var(--surface);
}
dialog::backdrop { background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(2px); }
dialog h2 { margin: 0 0 18px; font-family: var(--police-titre); font-weight: 600; font-size: 22px; color: var(--texte); }
dialog label { margin-bottom: 14px; }
dialog menu { display: flex; gap: 10px; justify-content: flex-end; padding: 0; margin: 8px 0 0; }
.note-dialog { font-size: 13px; color: var(--texte-doux); margin: 0 0 10px; }

/* ---- Sélecteur de date (formulaire) ---- */
.bloc-date {
  background: var(--surface-2); border: 1px solid var(--bord); border-radius: var(--r-md);
  padding: 14px 16px; margin-bottom: 22px;
}
.bloc-date-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-doux); margin-bottom: 8px; }
.champ-date-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; min-height: 50px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--bord); border-radius: var(--r-sm);
  color: var(--accent);
  transition: border-color var(--t), box-shadow var(--t);
}
.champ-date-btn:hover { border-color: var(--accent); }
.champ-date-btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.bloc-date-aide { font-family: var(--police-titre); font-weight: 600; font-size: 17px; color: var(--texte); text-align: left; }

/* ---- Popup calendrier (choix du jour) ---- */
.dialog-cal { width: min(94vw, 360px); padding: 18px; }
.dialog-cal .cal-tete { margin-bottom: 14px; }
.dialog-cal .cal-grille { margin-top: 0; }
.dp-pied { margin: 16px 0 0; }
.dp-pied .btn-secondaire { width: 100%; }

/* ---- Bandeau de date (Liste) ---- */
.bandeau-date {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--bord); border-radius: var(--r-md);
  padding: 13px 16px; margin-bottom: 20px;
}
.bandeau-date-jour { font-family: var(--police-titre); font-weight: 600; font-size: 18px; color: var(--texte); line-height: 1.2; }
.bandeau-date-btn {
  flex-shrink: 0; border: 1px solid var(--bord); background: var(--surface); color: var(--accent);
  font-family: var(--police-ui); font-weight: 700; font-size: 14px;
  padding: 9px 16px; min-height: 44px; border-radius: 999px; cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.bandeau-date-btn:hover { border-color: var(--accent); background: var(--accent-pale); }
.bandeau-date-btn:active { transform: scale(0.96); }
.bandeau-date-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---- Verrou (écran de code) ---- */
.verrou {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: var(--fond);
}
.verrou-boite {
  width: min(92vw, 340px); background: var(--surface);
  border: 1px solid var(--bord); border-radius: var(--r-lg); box-shadow: var(--ombre-2);
  padding: 32px 26px; text-align: center;
}
.verrou-logo { border-radius: var(--r-sm); box-shadow: var(--ombre-1); }
.verrou-titre { margin: 14px 0 4px; font-family: var(--police-titre); font-weight: 600; font-size: 24px; color: var(--texte); }
.verrou-sous { margin: 0 0 18px; color: var(--texte-doux); font-size: 15px; }
.verrou-input {
  width: 100%; text-align: center; font-size: 28px; letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums; padding: 14px; margin-bottom: 4px;
}
.verrou-erreur { min-height: 20px; margin: 6px 0 10px; color: var(--rouge); font-weight: 700; font-size: 14px; }
.verrou-btn {
  width: 100%; min-height: 54px; border: none; border-radius: var(--r-md); cursor: pointer;
  font-family: var(--police-ui); font-size: 18px; font-weight: 700; color: var(--sur-accent);
  background: var(--accent);
  transition: background var(--t), transform var(--t);
}
.verrou-btn:hover { background: var(--accent-fort); }
.verrou-btn:active { transform: translateY(1px) scale(0.99); }
.verrou-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---- Bande 7 jours ---- */
.bande7 { display: flex; align-items: stretch; gap: 8px; margin-bottom: 20px; }
.bande7-nav {
  flex-shrink: 0; width: 40px; border: 1px solid var(--bord); border-radius: var(--r-sm);
  background: var(--surface); color: var(--accent); font-size: 22px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.bande7-nav:hover { border-color: var(--accent); background: var(--accent-pale); }
.bande7-nav:active { transform: scale(0.92); }
.bande7-nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bande7-jours { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.bande7-jour {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 2px 7px; border: 1.5px solid var(--bord); border-radius: var(--r-sm);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 72%);
  cursor: pointer; min-width: 0;
  transition: border-color var(--t), background var(--t), transform var(--t), box-shadow var(--t);
}
.bande7-jour:hover { border-color: var(--accent); }
.bande7-jour:active { transform: scale(0.95); }
.bande7-jour:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.b7-sem { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--texte-doux); }
.b7-num { font-family: var(--police-titre); font-weight: 600; font-size: 20px; line-height: 1; color: var(--texte); font-variant-numeric: tabular-nums; }
.b7-mois { font-size: 11px; color: var(--texte-doux); }
.b7-pers { font-size: 11px; font-weight: 700; color: var(--vert-fort); min-height: 14px; line-height: 1.2; }
.bande7-jour.a-resa { background: var(--vert-pale); border-color: var(--vert-bord); }
.bande7-jour.aujourdhui { border-color: var(--accent); }
.bande7-jour.selectionne { background: var(--accent); border-color: var(--accent); box-shadow: var(--ombre-1); }
.bande7-jour.selectionne .b7-sem, .bande7-jour.selectionne .b7-num, .bande7-jour.selectionne .b7-mois, .bande7-jour.selectionne .b7-pers { color: var(--sur-accent); }

/* ---- Calendrier ---- */
.cal { padding: 18px; }
.cal-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-mois { margin: 0; font-family: var(--police-titre); font-weight: 600; font-size: 22px; color: var(--texte); }
.cal-nav {
  width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--bord);
  background: var(--surface); color: var(--accent); font-size: 24px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.cal-nav:hover { border-color: var(--accent); background: var(--accent-pale); }
.cal-nav:active { transform: scale(0.9); }
.cal-nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.cal-jours-noms { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 8px; }
.cal-jours-noms span { text-align: center; font-size: 12px; font-weight: 700; color: var(--texte-doux); text-transform: uppercase; letter-spacing: 0.02em; }

.cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-vide { aspect-ratio: 1; }
.cal-jour {
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1.5px solid var(--bord); border-radius: var(--r-sm);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 72%);
  font-family: var(--police-ui); cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}
.cal-jour:hover { border-color: var(--accent); }
.cal-jour:active { transform: scale(0.94); }
.cal-jour:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cal-num { font-size: 17px; font-weight: 600; color: var(--texte); font-variant-numeric: tabular-nums; line-height: 1; }
.cal-jour.a-resa { background: var(--vert-pale); border-color: var(--vert-bord); }
.cal-jour.aujourdhui { border-color: var(--accent); border-width: 2px; }
.cal-pastille {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--vert); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.cal-pastille-vide { height: 20px; }
.cal-jour.selectionne { background: var(--accent); border-color: var(--accent); box-shadow: var(--ombre-1); }
.cal-jour.selectionne .cal-num { color: var(--sur-accent); }
.cal-jour.selectionne .cal-pastille { background: #fff; color: var(--vert-fort); }

.cal-legende { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bord); }
.cal-legende .lg { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--texte-doux); }
.cal-legende .lg::before { content: ""; width: 14px; height: 14px; border-radius: 5px; flex-shrink: 0; }
.lg-auj::before { background: var(--surface); border: 2px solid var(--accent); }
.lg-sel::before { background: var(--accent); }
.lg-resa::before { background: var(--vert-pale); border: 1px solid var(--vert-bord); }

.cal-resume { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-md); }
.cal-resume-tete { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.cal-resume-jour { font-family: var(--police-titre); font-weight: 600; font-size: 19px; color: var(--texte); }
.cal-resume-stat { font-size: 14px; color: var(--texte-doux); font-weight: 600; }

.cal-liste { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cal-ligne {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: baseline;
  padding: 11px 14px; border: 1px solid var(--bord); border-radius: var(--r-sm); background: var(--surface-2);
}
.cal-ligne-heure { font-family: var(--police-titre); font-weight: 600; font-size: 17px; color: var(--accent); font-variant-numeric: tabular-nums; }
.cal-ligne-nom { font-weight: 700; color: var(--texte); }
.cal-ligne-meta { grid-column: 2; font-size: 13px; color: var(--texte-doux); }
.cal-vide-jour { margin: 0 0 16px; color: var(--texte-doux); font-size: 14px; }

.cal-resume-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cal-resume-actions .btn-secondaire { min-height: 52px; }
.cal-btn-reserver {
  min-height: 52px; font-size: 16px; font-weight: 700; cursor: pointer;
  border: none; border-radius: var(--r-md); background: var(--accent); color: var(--sur-accent);
  font-family: var(--police-ui);
  transition: background var(--t), transform var(--t);
}
.cal-btn-reserver:hover { background: var(--accent-fort); }
.cal-btn-reserver:active { transform: translateY(1px) scale(0.99); }
.cal-btn-reserver:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---- Responsive ---- */
@media (min-width: 600px) {
  .champs { grid-template-columns: 1fr 1fr; gap: 16px; }
  .totaux { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .departs { grid-template-columns: 1fr 1fr; }
  .steppers { grid-template-columns: 1fr 1fr; }
  #form-inscription { padding: 28px; }
}
@media (min-width: 700px) {
  header { gap: 12px 16px; }
  .barre-titre { margin-bottom: 0; }
  .tabs { margin-left: auto; flex: 0 0 auto; }
}
@media (min-width: 1024px) {
  body { font-size: 18px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  header { padding-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, .panel.active > * { transition: none !important; animation: none !important; }
}
