/*
 * Rencontrer Lucas — reprise fidèle du système visuel de lburdier.fr :
 * jetons de couleur, Archivo (titres, capitales larges) + Instrument Sans, surfaces sans bordure,
 * libellés en capitales espacées, boutons pilules qui s'inversent au survol, curseur rond,
 * animations rise / wipe / fade sur cubic-bezier(0.2, 0.8, 0.2, 1).
 */
:root {
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-deep: #080808;
  --surface-2: #17171b;
  --surface-3: #1c1c22;
  --hover: #24242c;
  --accent: #ffffff;
  --on-accent: #000000;
  --header-bg: rgba(0, 0, 0, 0.82);
  --scroll-track: #060607;
  --scroll-thumb: #2c2c34;
  --ink: #ffffff;
  --ink-92: rgba(255, 255, 255, 0.92);
  --ink-9: rgba(255, 255, 255, 0.9);
  --ink-86: rgba(255, 255, 255, 0.86);
  --ink-8: rgba(255, 255, 255, 0.8);
  --ink-78: rgba(255, 255, 255, 0.78);
  --ink-62: rgba(255, 255, 255, 0.62);
  --ink-6: rgba(255, 255, 255, 0.6);
  --ink-45: rgba(255, 255, 255, 0.45);
  --ink-28: rgba(255, 255, 255, 0.28);
  --ink-18: rgba(255, 255, 255, 0.18);
  --ink-12: rgba(255, 255, 255, 0.12);
  --ink-08: rgba(255, 255, 255, 0.08);
  --danger: #f0776c;
  --warn: #f2c26b;
  --live: #3fb950;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-lift: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-press: 0 4px 12px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f2f2ef;
  --surface: #ffffff;
  --surface-deep: #e8e8e3;
  --surface-2: #eaeae5;
  --surface-3: #e2e2dc;
  --hover: #d8d8d1;
  --accent: #0c0c0e;
  --on-accent: #ffffff;
  --header-bg: #f2f2ef;
  --scroll-track: #e6e6e1;
  --scroll-thumb: #b9b9b1;
  --ink: #0c0c0e;
  --ink-92: rgba(12, 12, 14, 0.92);
  --ink-9: rgba(12, 12, 14, 0.9);
  --ink-86: rgba(12, 12, 14, 0.86);
  --ink-8: rgba(12, 12, 14, 0.8);
  --ink-78: rgba(12, 12, 14, 0.78);
  --ink-62: rgba(12, 12, 14, 0.62);
  --ink-6: rgba(12, 12, 14, 0.6);
  --ink-45: rgba(12, 12, 14, 0.45);
  --ink-28: rgba(12, 12, 14, 0.28);
  --ink-18: rgba(12, 12, 14, 0.18);
  --ink-12: rgba(12, 12, 14, 0.12);
  --ink-08: rgba(12, 12, 14, 0.08);
  --danger: #b3261e;
  --warn: #8a5a00;
  --shadow-lift: 0 12px 30px rgba(12, 12, 14, 0.16);
  --shadow-press: 0 4px 12px rgba(12, 12, 14, 0.14);
  color-scheme: light;
}

/* ---------------------------------------------------------------- Base (identique au portfolio) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
@media (pointer: fine) { body.has-cursor, body.has-cursor * { cursor: none !important; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-62); }
::selection { background: var(--accent); color: var(--on-accent); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; border: 3px solid var(--scroll-track); transition: background 0.2s; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background: var(--accent); }
::-webkit-scrollbar-corner { background: var(--scroll-track); }
input, textarea, button, select { font: inherit; color: inherit; }
input:focus, textarea:focus, select:focus { outline: none; }
[hidden] { display: none !important; }
code { font-size: 0.9em; padding: 2px 7px; border-radius: 8px; background: var(--surface-2); }
/* Focus clavier discret mais visible (le portfolio le supprime ; on le garde pour l'accessibilité). */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }

@keyframes rise { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: none } }
@keyframes wipe { from { opacity: 0; clip-path: inset(0 0 100% 0) } to { opacity: 1; clip-path: inset(0 0 0 0) } }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 4px rgba(126, 231, 135, 0.18) } 50% { box-shadow: 0 0 0 8px rgba(126, 231, 135, 0.04) } }
@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(0.982); filter: blur(6px) } to { opacity: 1; transform: none; filter: blur(0) } }
@keyframes sheen { from { background-position: 120% 0 } to { background-position: -60% 0 } }

/* ---------------------------------------------------------------- Curseur */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 95; display: grid; place-items: center;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 999px;
  background: #ffffff; color: #000000; mix-blend-mode: difference;
  font-size: 0; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: width 0.28s var(--ease), height 0.28s var(--ease), margin 0.28s var(--ease), font-size 0.2s, opacity 0.25s;
  will-change: transform;
}
.cursor.is-hover { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------------------------------------------------------------- En-tête */
.header {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 26px; background: var(--header-bg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.brand {
  font-family: Archivo, sans-serif; font-variation-settings: 'wdth' 118, 'wght' 700;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
}
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.wipe-link {
  color: var(--ink-78);
  background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat;
  background-position: 0 100%; background-size: 0% 100%;
  padding: 2px 5px; margin: -2px -5px;
  transition: background-size 0.34s var(--ease), color 0.18s, transform 0.28s var(--ease);
}
.wipe-link:hover, .wipe-link[aria-current="page"]:hover { background-size: 100% 100%; color: var(--on-accent); }
.wipe-link[aria-current="page"] { color: var(--ink); }
.round-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 999px;
  background: var(--surface-2); color: var(--ink); cursor: pointer;
  transition: background 0.28s, color 0.28s, transform 0.18s var(--ease);
}
.round-btn:hover { background: var(--accent); color: var(--on-accent); }
.round-btn:active { transform: scale(0.92); }
.round-btn:disabled { opacity: 0.3; pointer-events: none; }
.round-btn svg { display: block; }
.round-btn .theme-sun { display: none; }
html[data-theme="light"] .round-btn .theme-sun { display: block; }
html[data-theme="light"] .round-btn .theme-moon { display: none; }

/* ---------------------------------------------------------------- Sélecteur de langue (identique au portfolio) */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 0; border-radius: 999px;
  background: var(--surface-2); color: var(--ink); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.18s var(--ease), box-shadow 0.3s var(--ease);
}
.lang-btn:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.lang-btn:active { transform: translateY(0) scale(0.965); box-shadow: var(--shadow-press); }
/* Drapeaux PNG (flagcdn) dans un cadre arrondi, comme sur le portfolio. */
.flag { display: block; flex: none; width: 20px; height: 14px; border-radius: 3px; overflow: hidden; background: var(--surface-3); }
.flag-lg { width: 22px; height: 16px; }
.flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lang-short { display: none; }
.lang-caret { font-size: 9px; opacity: 0.7; transition: transform 0.25s; }
.lang.is-open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 80; min-width: 190px; padding: 8px;
  border-radius: 20px; background: var(--surface); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  animation: rise 0.22s var(--ease) both;
}
html[data-theme="light"] .lang-menu { box-shadow: 0 24px 60px rgba(12, 12, 14, 0.18); }
.lang-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 12px 14px; border-radius: 13px; font-size: 14px; color: var(--ink-86);
  letter-spacing: normal; text-transform: none; transition: background 0.18s, transform 0.18s var(--ease);
}
.lang-opt:hover, .lang-opt:focus-visible { background: var(--hover); color: var(--ink); outline: none; border-radius: 13px; }
.lang-opt:active { transform: scale(0.95); }
.lang-opt.is-current { background: var(--surface-3); color: var(--ink); }
.lang-opt-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lang-opt-short { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }

/* ---------------------------------------------------------------- Mise en page */
.page { flex: 1; width: 100%; }
.section { padding: 60px 26px 0; animation: fade 0.5s ease both; }
.eyebrow { font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-78); }
.title {
  margin: 16px 0 0; font-family: Archivo, sans-serif; font-weight: 500; font-variation-settings: 'wdth' 125, 'wght' 500;
  font-size: clamp(38px, 10vw, 148px); line-height: 0.84; letter-spacing: -0.035em; text-transform: uppercase;
  animation: wipe 0.8s var(--ease) both;
}
.title-sm { font-size: clamp(34px, 7vw, 96px); }
.pill-status {
  display: flex; align-items: center; gap: 11px; width: fit-content; margin-top: 24px;
  padding: 10px 18px 10px 16px; border-radius: 999px; background: var(--surface-2);
  font-size: 13px; color: var(--ink-92); animation: rise 0.7s var(--ease) 0.08s both;
}
.dot { flex: none; width: 7px; height: 7px; border-radius: 999px; background: var(--live); box-shadow: 0 0 0 4px rgba(126, 231, 135, 0.18); animation: pulseDot 2.4s ease-in-out infinite; }
.dot-off { background: var(--warn); box-shadow: none; animation: none; }
.lang-notice {
  display: flex; align-items: flex-start; gap: 12px; max-width: 760px; margin-top: 14px;
  padding: 14px 18px; border-radius: 22px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--danger);
  font-size: 14px; line-height: 1.5; color: var(--ink-92); animation: rise 0.7s var(--ease) 0.12s both;
}
.lang-notice svg { flex: none; margin-top: 1px; color: var(--danger); }
.lang-notice strong { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-78); }
.grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px;
  margin-top: 44px; max-width: 1180px;
}
.col { display: grid; gap: 26px; align-content: start; min-width: 0; animation: rise 0.7s var(--ease) 0.1s both; }
.lede { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-9); text-wrap: pretty; max-width: 52ch; }
.muted { color: var(--ink-62); }
.small { font-size: 13px; }
.label { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-62); }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Lignes clé / valeur (comme « E-mail / Basé à / Délai de réponse ») */
.rows { display: grid; gap: 2px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid var(--ink-08); }
.row-k { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-62); flex: none; padding-top: 2px; }
.row-v { font-size: 15px; text-align: right; overflow-wrap: anywhere; }
.recap { display: grid; gap: 1px; }
.recap-row { display: grid; gap: 5px; padding: 13px 0; border-top: 1px solid var(--ink-08); }
.recap-row .label { color: var(--ink-6); }
.recap-v { font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }

/* Encadré de conseils */
.tips { padding: 22px 24px; border-radius: 22px; background: var(--surface); }
.tips .label { color: var(--ink-6); }
.tips-list { display: grid; gap: 11px; margin: 16px 0 0; padding: 0; list-style: none; }
.tips-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--ink-9); }
.tips-list li::before { content: ""; margin-top: 7px; width: 5px; height: 5px; border-radius: 999px; background: var(--ink-45); }

/* Carte-formulaire (comme le formulaire de contact) */
.panel {
  position: sticky; top: 96px; align-self: start; min-width: 0;
  padding: 30px; border-radius: 30px; background: var(--surface);
  animation: rise 0.7s var(--ease) 0.2s both;
}
.card { padding: 26px; border-radius: 22px; background: var(--surface); min-width: 0; }
.stack { display: grid; gap: 14px; }
.step { display: grid; gap: 14px; }
.step + .step { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--ink-08); }
.step-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.step-title { margin: 0; font-size: 11.5px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-78); }
.step-sub { font-size: 12.5px; color: var(--ink-62); margin: -4px 0 0; }

/* ---------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 20px; border: 0; border-radius: 999px;
  background: var(--surface-2); color: var(--ink); font-size: 13.5px; cursor: pointer; text-align: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.18s var(--ease), box-shadow 0.3s var(--ease), opacity 0.2s;
}
.btn:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0) scale(0.965); box-shadow: var(--shadow-press); }
.btn-primary { padding: 16px 24px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px var(--ink-18); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #ffffff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 12.5px; }
.btn:disabled, .btn.is-loading { opacity: 0.45; pointer-events: none; transform: none; box-shadow: none; }
.btn-arrow { font-size: 17px; line-height: 1; }
.text-btn {
  border: 0; background: none; padding: 2px 5px; margin: -2px -5px; cursor: pointer;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-62);
  background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat;
  background-position: 0 100%; background-size: 0% 100%;
  transition: background-size 0.34s var(--ease), color 0.18s;
}
.text-btn:hover { background-size: 100% 100%; color: var(--on-accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Grande carte-lien pleine (comme le lien e-mail du portfolio) */
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-radius: 22px; background: var(--accent); color: var(--on-accent);
  transition: transform 0.22s var(--ease), box-shadow 0.3s var(--ease);
}
.cta-card:hover { color: var(--on-accent); transform: translateY(-3px); box-shadow: 0 14px 34px var(--ink-18); }
.cta-card:active { transform: translateY(0) scale(0.965); }
.cta-card .label { color: var(--on-accent); }
.cta-card strong { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- Calendrier & créneaux */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-title { font-family: Archivo, sans-serif; font-variation-settings: 'wdth' 118, 'wght' 600; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { padding: 6px 0; text-align: center; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-45); }
.cal-day {
  justify-self: center; width: 100%; max-width: 46px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-28); font-size: 14px; font-variant-numeric: tabular-nums;
  transition: background 0.2s, color 0.2s, transform 0.18s var(--ease);
}
.cal-day.is-available { background: var(--surface-2); color: var(--ink); cursor: pointer; font-weight: 600; }
.cal-day.is-available:hover { background: var(--hover); transform: translateY(-2px); }
.cal-day.is-available:active { transform: scale(0.95); }
.cal-day.is-selected, .cal-day.is-selected:hover { background: var(--accent); color: var(--on-accent); }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--ink-28); }
.cal-loading, .cal-empty { grid-column: 1 / -1; padding: 30px 0; text-align: center; font-size: 14px; color: var(--ink-62); }
.cal-loading {
  background: linear-gradient(90deg, transparent 0%, var(--ink-08) 50%, transparent 100%) no-repeat;
  background-size: 40% 100%; animation: sheen 1.4s linear infinite; border-radius: 16px;
}
.tz-hint { margin: 0; font-size: 12.5px; color: var(--ink-62); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px; min-width: 88px;
  padding: 11px 17px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink);
  font-size: 13.5px; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.18s var(--ease);
}
.slot:hover { transform: translateY(-2px); }
.slot:active { transform: translateY(0) scale(0.95); }
.slot.is-selected { background: var(--accent); color: var(--on-accent); }
.slot-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.slot-local { font-size: 11px; opacity: 0.7; }
.chosen { padding: 15px 18px; border-radius: 16px; background: var(--surface-2); font-size: 14.5px; line-height: 1.5; }
.chosen strong { display: block; font-weight: 600; }

/* ---------------------------------------------------------------- Champs */
.field { display: grid; gap: 7px; min-width: 0; }
.field-label { display: flex; justify-content: space-between; gap: 12px; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-62); }
.field-label .req { color: var(--ink-45); letter-spacing: 0.06em; text-transform: none; }
.field-label .opt { letter-spacing: 0.06em; text-transform: none; }
.input, .field input:not([type="hidden"]), .field textarea, .field select {
  width: 100%; padding: 15px 18px; border: 0; border-radius: 16px;
  background: var(--surface-2); color: var(--ink); font-size: 15px;
  transition: background 0.25s, box-shadow 0.25s;
}
.rule input {
  width: 100%; padding: 13px 16px; border: 0; border-radius: 16px;
  background: var(--surface-2); color: var(--ink); font-size: 15px; transition: background 0.25s, box-shadow 0.25s;
}
.field > label { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-62); }
.field input::placeholder, .field textarea::placeholder, .rule input::placeholder { color: var(--ink-45); }
.field input:focus, .field textarea:focus, .field select:focus, .rule input:focus { background: var(--surface-3); box-shadow: inset 0 0 0 1.5px var(--ink-45); }
input[type="date"], input[type="time"] { color-scheme: inherit; }
.field textarea { resize: vertical; min-height: 110px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--danger); }
.field-error { margin: 0; font-size: 12.5px; color: var(--danger); }
.field-error:empty { display: none; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.legal { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-62); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.form-status { padding: 14px 18px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--danger); font-size: 14px; color: var(--ink-9); }
.form-status:empty { display: none; }

/* ---------------------------------------------------------------- Résultats & messages */
.result { display: grid; gap: 16px; padding: 14px 0; animation: cardIn 0.6s var(--ease) both; }
.result-title { margin: 0; font-family: Archivo, sans-serif; font-weight: 600; font-variation-settings: 'wdth' 120, 'wght' 600; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.result-body { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-8); }
.result .actions { margin-top: 6px; }
.notice { padding: 18px 20px; border-radius: 22px; background: var(--surface-2); font-size: 14.5px; line-height: 1.5; }
.notice strong { display: block; font-weight: 600; }
.notice p { margin: 6px 0 0; color: var(--ink-8); }
.notice .actions { margin-top: 14px; }
.notice-ok { box-shadow: inset 0 0 0 1.5px var(--live); }
.notice-warn { box-shadow: inset 0 0 0 1.5px var(--warn); }
.notice-danger { box-shadow: inset 0 0 0 1.5px var(--danger); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--ink-45); }
.badge-ok::before { background: var(--live); }
.badge-warn::before { background: var(--warn); }
.badge-danger::before { background: var(--danger); }
.narrow { max-width: 560px; }

/* ---------------------------------------------------------------- Pied de page (identique au portfolio) */
.footer { padding: 96px 26px 34px; }
.foot-top {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-bottom: 26px; border-bottom: 1px solid var(--ink-12);
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-78);
}
.foot-top > span { display: flex; align-items: center; gap: 9px; }
.foot-top a { display: flex; align-items: center; gap: 9px; transition: transform 0.24s var(--ease); }
.foot-top a:hover { color: var(--ink); transform: translateY(-3px); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 34px; padding-top: 38px; font-size: 14px; line-height: 1.7; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col .wipe-link { justify-self: start; color: var(--ink); }
.foot-col .wipe-link:hover { transform: translateX(4px); }
.foot-col > span:first-child { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-78); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--ink-12);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-6);
}

/* ---------------------------------------------------------------- Administration */
.admin { display: grid; gap: 18px; max-width: 1180px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tab { padding: 11px 17px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; transition: background 0.2s, color 0.2s, transform 0.18s var(--ease); }
.tab:hover { color: var(--ink); transform: translateY(-2px); }
.tab.is-active, .tab.is-active:hover { background: var(--accent); color: var(--on-accent); }
.card-title { margin: 0 0 14px; font-size: 11.5px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-78); }
details > summary.card-title { cursor: pointer; margin: 0; list-style: none; }
details > summary.card-title::after { content: " +"; }
details[open] > summary.card-title { margin-bottom: 16px; }
details[open] > summary.card-title::after { content: " −"; }
.card-alert { box-shadow: inset 0 0 0 1.5px var(--warn); }
.issue { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 0; border-top: 1px solid var(--ink-08); font-size: 14.5px; }
.issue:first-of-type { border-top: 0; }
.issue-actions { display: flex; gap: 8px; }
.inline-form { display: inline; margin: 0; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card > * + * { margin-top: 12px; }
.card > .card-title + * { margin-top: 0; }
.rules { display: grid; gap: 8px; }
.rule { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
.rule > span { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-62); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 10px; text-align: left; font-weight: 400; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-62); }
.table td { padding: 13px 10px; border-top: 1px solid var(--ink-08); vertical-align: top; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ink-08); }
.list li:first-child { border-top: 0; }
.journal { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.journal li { padding: 9px 0; border-top: 1px solid var(--ink-08); }
.journal .j-warn { color: var(--warn); }
.journal .j-error { color: var(--danger); }
.form-narrow { display: grid; gap: 14px; max-width: 420px; }

/* ---------------------------------------------------------------- Responsive (points de rupture du portfolio) */
@media (max-width: 940px) {
  .header { padding: 13px 20px; }
  .nav { gap: 14px; }
  .nav .wipe-link { display: none; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .lang-label { display: none; }
  .lang-short { display: inline; }
  .lang-btn { padding: 9px 13px; gap: 8px; }
  .nav { gap: 10px; }
  .section { padding: 40px 16px 0; }
  .footer { padding: 72px 16px 28px; }
  .header { padding: 13px 16px; }
  .panel { padding: 22px 18px; border-radius: 24px; }
  .field-row, .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .rule { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cal-grid { gap: 3px; }
  .row { flex-direction: column; gap: 4px; }
  .row-v { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
