/* ========================================================================
   METOD · Portail Citoyen — Differdange
   Design system — Sobriété éditoriale (héritage commune)
   ======================================================================== */

/* Tokens chargés via <link href="../metod-tokens.css"> dans chaque HTML */

/* ---------- Token bridges (anciens noms → metod tokens) ---------- */
:root {
  /* ── Couleurs neutres ── */
  --cream:          var(--metod-bone);       /* #FAFAF8 — background principal */
  --cream-warm:     var(--metod-paper);      /* #F4F3EF — surface secondaire */
  --paper:          #FFFFFF;                 /* Blanc pur — inputs, topbar, cartes */
  --ink:            var(--metod-ink);        /* #0A0A0A */
  --ink-70:         var(--metod-ash);        /* #6B6B68 */
  --ink-55:         var(--metod-ash);        /* #6B6B68 */
  --ink-40:         var(--metod-stone);      /* #A8A6A0 */
  --ink-25:         var(--metod-fog);        /* #D9D7D1 */
  --ink-10:         var(--metod-mist);       /* #E8E6E0 */
  --ink-06:         rgba(10, 10, 10, 0.06);

  /* ── Couleurs brand ── */
  --orange:         var(--metod-orange);       /* #E85A10 */
  --orange-hover:   var(--metod-orange-deep);  /* #B8440A */
  --orange-soft:    var(--metod-orange-glow);  /* rgba(232,90,16,0.08) */

  /* ── Couleurs sémantiques ── */
  --green:          var(--metod-forest);       /* #3D6B4A */
  --green-soft:     var(--metod-forest-soft);  /* #DDE8DE */
  --yellow-soft:    var(--metod-caramel-soft); /* #F2E6D6 */

  /* ── Polices ── */
  --font-ui:        var(--font-body);    /* General Sans */
  --font-editorial: var(--font-display); /* General Sans (plus de serif) */
  /* --font-mono : déjà défini dans metod-tokens.css — JetBrains Mono */

  /* ── Bordures & radius ── */
  --radius:          var(--radius-sm);        /* 4px */
  --hairline:        var(--border-hairline);  /* 1px solid --metod-mist */
  --hairline-strong: var(--border-soft);      /* 1px solid --metod-fog */

  /* ── Dimensions shell ── */
  --header-h:   var(--shell-topbar-height);  /* 52px */
  --progress-h: 72px;
  --footer-h:   80px;
}


/* =====================================================================
   COMPOSANTS COMMUNS
   ===================================================================== */


/* =====================================================================
   EN-TÊTE PUBLIC
   ===================================================================== */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--cream);
  border-bottom: var(--hairline);
}
.pub-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pub-header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pub-header__city-logo {
  height: 18px;
  width: auto;
  display: block;
  fill: var(--metod-ink);
}
.pub-header__sep {
  width: 1px;
  height: 28px;
  background: var(--ink-25);
}
.pub-header__metod {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.pub-header__service {
  font-size: 12px;
  color: var(--ink-55);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-left: 4px;
}
.pub-header__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pub-nav__lang {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-55);
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 100ms ease;
  font-family: var(--font-mono);
}
.pub-nav__lang:hover { color: var(--ink); border-color: var(--ink-25); }
.pub-nav__lang.is-active { color: var(--ink); border-color: var(--ink-25); background: var(--paper); }

/* =====================================================================
   PAGE D'ACCUEIL — HERO
   ===================================================================== */
.pub-body {
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pub-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pub-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 64px;
  width: 100%;
}
.pub-hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-55);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pub-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--orange);
}
.pub-hero__title {
  font-family: var(--font-editorial);
  font-weight: 300;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.pub-hero__title em {
  font-style: italic;
  color: var(--ink-70);
}
.pub-hero__subtitle {
  font-size: 17px;
  color: var(--ink-70);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 40px;
}
.pub-hero__ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Process 4 étapes */
.pub-process-section {
  background: var(--paper);
  border-top: var(--hairline);
  padding: 48px 32px;
  margin-top: auto;
}
.pub-process-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.pub-process-section__title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-55);
  margin-bottom: 32px;
}
.pub-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.pub-process__step {
  padding: 24px 28px;
  border-right: var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pub-process__step:last-child { border-right: 0; }
.pub-process__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pub-process__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-55);
}
.pub-process__icon svg { width: 24px; height: 24px; stroke: currentColor; }
.pub-process__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.pub-process__desc {
  font-size: 13px;
  color: var(--ink-55);
  line-height: 1.4;
}

/* Footer */
.pub-footer {
  border-top: var(--hairline);
  padding: 24px 32px;
  background: var(--cream);
}
.pub-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pub-footer p {
  font-size: 12px;
  color: var(--ink-55);
  font-family: var(--font-mono);
}

/* =====================================================================
   WIZARD — BARRE DE PROGRESSION
   ===================================================================== */
.wizard-progress-bar {
  background: var(--paper);
  border-bottom: var(--hairline);
  padding: 0 32px;
  position: sticky;
  top: var(--header-h);
  z-index: 90;
}
.wizard-progress-bar__inner {
  max-width: 720px;
  margin: 0 auto;
  height: var(--progress-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wstep__bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink-25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-55);
  font-family: var(--font-mono);
  transition: all 200ms ease;
  background: var(--paper);
}
.wstep__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-55);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.wstep--active .wstep__bubble {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.wstep--active .wstep__label {
  color: var(--ink);
  font-weight: 600;
}
.wstep--done .wstep__bubble {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.wstep--done .wstep__label { color: var(--green); }
.wstep__line {
  flex: 1;
  height: 1px;
  background: var(--ink-10);
  align-self: center;
  margin: 0 8px;
  margin-bottom: 14px;
}

/* =====================================================================
   WIZARD — CONTENU PRINCIPAL
   ===================================================================== */
.wizard-main {
  padding: 48px 32px;
  padding-bottom: calc(var(--footer-h) + 40px);
  min-height: calc(100vh - var(--header-h) - var(--progress-h));
}
.wizard-content {
  max-width: 920px;
  margin: 0 auto;
}

.wizard-question {
  margin-bottom: 52px;
}
.wizard-question__title {
  font-family: var(--font-editorial);
  font-weight: 300;
  font-style: italic;
  font-size: 42px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 12px;
}
.wizard-question__sub {
  font-size: 15px;
  color: var(--metod-ash);
  max-width: 500px;
  line-height: 1.55;
}

/* =====================================================================
   GROUPES DE TYPES
   ===================================================================== */
.type-group {
  margin-bottom: 52px;
}
.type-group__head {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: var(--border-hairline);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.type-group__name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--metod-ash);
}
.type-group__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--metod-ash);
}
.type-group__hint--energy {
  color: var(--metod-orange);
  font-weight: 600;
}

/* Grille de cartes */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

/* =====================================================================
   CARTES TYPE DE TRAVAUX
   ===================================================================== */
.type-card {
  position: relative;
  background: var(--metod-bone);
  border: 1px solid var(--metod-fog);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: left;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 148px;
}
.type-card:hover {
  border-color: var(--metod-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.type-card.is-selected {
  border-color: var(--metod-orange);
  border-width: 2px;
  background: var(--metod-orange-soft);
  box-shadow: 0 0 0 4px var(--metod-orange-glow);
}

/* Icône */
.type-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--metod-mist);
  color: var(--metod-ash);
  transition: background var(--duration-fast) var(--ease-out);
}
.type-card__icon svg { width: 22px; height: 22px; stroke: currentColor; }
.type-card__icon--energy { background: var(--metod-orange-soft); color: var(--metod-orange-deep); }
.type-card__icon--green { background: var(--metod-forest-soft); color: var(--metod-forest); }
.type-card__icon--yellow { background: var(--metod-caramel-soft); color: var(--metod-caramel); }
.type-card.is-selected .type-card__icon { background: var(--metod-orange-soft); color: var(--metod-orange); }

/* Texte */
.type-card__body { flex: 1; }
.type-card__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--metod-ink);
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.type-card__sub {
  font-size: 12px;
  color: var(--metod-ash);
  line-height: 1.4;
}

/* Badge "Fréquent" */
.type-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  background: var(--metod-orange-soft);
  color: var(--metod-orange-deep);
  border: 1px solid rgba(232, 90, 16, 0.2);
}
.type-card.is-selected .type-card__badge {
  background: var(--metod-orange);
  color: var(--metod-bone);
  border-color: var(--metod-orange);
}

/* Check mark (visible seulement quand sélectionné) */
.type-card__check {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 150ms ease, transform 150ms ease;
}
.type-card__check svg { width: 11px; height: 11px; stroke: white; stroke-width: 2.5; }
.type-card.is-selected .type-card__check {
  opacity: 1;
  transform: scale(1);
}

/* =====================================================================
   WIZARD — PIED DE PAGE STICKY
   ===================================================================== */
.wizard-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-h);
  background: var(--paper);
  border-top: var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 200;
  gap: 16px;
}
.wizard-footer__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.wizard-footer__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-55);
}
.wizard-footer__sel {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.wizard-footer__sel.is-empty {
  font-size: 13px;
  color: var(--ink-40);
  font-style: italic;
  font-weight: 400;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --progress-h: 60px;
    --footer-h: 72px;
  }

  .pub-header__service { display: none; }
  .pub-header__inner { padding: 0 20px; }

  .pub-hero__inner { padding: 48px 20px 40px; }
  .pub-hero__ctas { flex-direction: column; align-items: stretch; }

  .pub-process { grid-template-columns: 1fr 1fr; }
  .pub-process__step { border-right: 0; border-bottom: var(--hairline); padding: 16px 20px; }
  .pub-process__step:nth-child(1),
  .pub-process__step:nth-child(2) { border-right: var(--hairline); }

  .wizard-progress-bar { padding: 0 20px; }
  .wstep__label { display: none; }

  .wizard-main { padding: 32px 20px; }
  .wizard-question__title { font-size: 30px; }

  .type-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .type-card { min-height: 120px; padding: 16px; }
  .type-card__icon { width: 36px; height: 36px; border-radius: 8px; }
  .type-card__icon svg { width: 18px; height: 18px; }
  .type-card__title { font-size: 13px; }

  .wizard-footer { padding: 0 20px; }
  .wizard-footer__info { align-items: flex-start; }
}

@media (max-width: 480px) {
  .type-grid { grid-template-columns: 1fr; }
  .type-card { flex-direction: row; min-height: unset; align-items: center; padding: 14px 16px; }
  .type-card__icon { flex-shrink: 0; }
  .type-card__check { position: static; margin-left: auto; opacity: 1; transform: none; background: none; }
  .type-card__check svg { stroke: var(--ink-25); }
  .type-card.is-selected .type-card__check { background: var(--orange); }
  .type-card.is-selected .type-card__check svg { stroke: white; }
}


/* =====================================================================
   COMMUNE CHIP (topbar)
   ===================================================================== */
.commune-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--ink-06);
  border: var(--hairline);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-70);
  letter-spacing: 0.02em;
}
.commune-chip::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* =====================================================================
   LUX SELECTOR — commune selector layout
   ===================================================================== */
.lux-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--metod-bone);
  min-height: 520px;
}

.lux-selector__left {
  display: flex;
  flex-direction: column;
  border-right: var(--hairline);
}

.lux-selector__right {
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Search input */
.commune-search-wrap {
  padding: 16px;
  border-bottom: var(--hairline);
  position: relative;
}
.commune-search-wrap svg {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--ink-40);
  pointer-events: none;
}
.commune-search-input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  background: var(--cream);
  border: var(--hairline);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 120ms ease;
}
.commune-search-input::placeholder { color: var(--ink-40); }
.commune-search-input:focus { border-color: var(--ink-40); outline: none; }

/* Commune list */
.commune-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  max-height: 420px;
}
.commune-list::-webkit-scrollbar { width: 4px; }
.commune-list::-webkit-scrollbar-track { background: transparent; }
.commune-list::-webkit-scrollbar-thumb { background: var(--ink-10); border-radius: 4px; }

.commune-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-55);
  cursor: default;
  transition: background 80ms ease;
  gap: 12px;
}
.commune-item--active {
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}
.commune-item--active:hover {
  background: var(--orange-soft);
  color: var(--orange);
}
.commune-item--active:hover .commune-item__arrow {
  opacity: 1;
  transform: translateX(2px);
}
.commune-item--active.is-highlighted {
  background: var(--orange-soft);
}
.commune-item--soon {
  color: var(--ink-40);
}
.commune-item__name { flex: 1; }
.commune-item__arrow {
  opacity: 0;
  transition: opacity 100ms ease, transform 100ms ease;
  stroke: var(--orange);
}
.commune-item__arrow svg { width: 14px; height: 14px; stroke: inherit; }

.commune-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--metod-mist);
  color: var(--metod-stone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* SVG Map */
.lux-map-wrap {
  width: 100%;
  max-width: 380px;
  position: relative;
}
.lux-map-container {
  position: relative;
  width: 100%;
}
.lux-map-img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) brightness(1.12) contrast(0.65);
  opacity: 0.82;
  border-radius: var(--radius);
}
.lux-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.lux-map {
  width: 100%;
  height: auto;
  display: block;
}
.map-border {
  fill: var(--cream);
  stroke: var(--ink-25);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.map-dot {
  fill: var(--ink-25);
  cursor: pointer;
  transition: fill 120ms ease, r 120ms ease;
}
.map-dot--active {
  fill: var(--orange);
  cursor: pointer;
}
.map-dot--soon {
  fill: var(--ink-25);
  cursor: default;
}
.map-dot--active:hover { fill: var(--orange-hover); }
.map-label {
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 600;
  fill: var(--ink-55);
  pointer-events: none;
  user-select: none;
}
.map-label--active {
  fill: var(--orange);
  font-weight: 700;
  font-size: 9px;
}

/* Rivière intérieure */
.map-river {
  stroke: var(--ink-25);
  stroke-width: 1.2;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 3 3;
}

/* Labels pays voisins */
.map-country-label {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  fill: var(--ink-25);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

/* Indicateur Nord */
.map-north-arrow { fill: var(--ink-40); }
.map-north-text {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  fill: var(--ink-40);
  text-anchor: middle;
}

/* Label capitale */
.map-label--capital {
  fill: var(--ink-70);
  font-weight: 700;
  font-size: 8.5px;
}

/* Pulse animation for active dot */
@keyframes pulse-ring {
  0%   { r: 22; opacity: 0.5; }
  100% { r: 54; opacity: 0; }
}
.map-dot-pulse {
  fill: var(--orange);
  animation: pulse-ring 2s ease-out infinite;
  pointer-events: none;
}

/* Map tooltip */
.map-tooltip {
  position: absolute;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  margin-top: -8px;
  transition: opacity 100ms ease;
  z-index: 50;
}
.map-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--ink);
}
.map-tooltip.is-visible { opacity: 1; }

/* =====================================================================
   AUTH SHELL — login / signup 2-col layout
   ===================================================================== */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 45% 1fr;
}

.auth-brand {
  background: var(--ink);
  padding: 48px 48px 40px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: calc(100vh / 1.08);
}
.auth-brand__logo {
  margin-bottom: 48px;
}
.auth-brand__logo svg {
  height: 28px;
  width: auto;
  display: block;
  fill: var(--metod-bone);
}
.auth-brand__title {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 20px;
}
.auth-brand__desc {
  font-size: 14px;
  color: rgba(250,250,245,0.55);
  line-height: 1.6;
  max-width: 280px;
  flex: 1;
}
.auth-brand__commune {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid rgba(250,250,245,0.12);
}
.auth-brand__commune-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,250,245,0.4);
  margin-bottom: 8px;
}
.auth-brand__commune-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
}

.auth-form-side {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  min-height: 100vh;
}
.auth-form-inner {
  width: 100%;
  max-width: 400px;
}
.auth-form-side__back {
  align-self: flex-start;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-55);
  font-weight: 500;
  transition: color 100ms ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.auth-form-side__back:hover { color: var(--ink); }
.auth-form-side__back svg { width: 16px; height: 16px; stroke: currentColor; }

.auth-form-title {
  font-family: var(--font-editorial);
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 8px;
}
.auth-form-sub {
  font-size: 14px;
  color: var(--ink-55);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Form groups */
.form-group {
  margin-bottom: 20px;
}
.form-group--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--metod-ink);
  margin-bottom: var(--space-2);
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--metod-bone);
  border: 1px solid var(--metod-fog);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--metod-ink);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.form-input::placeholder { color: var(--metod-stone); }
.form-input:focus {
  border-color: var(--metod-ink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}
.form-input:read-only {
  background: var(--metod-mist);
  color: var(--metod-ash);
  cursor: default;
}
.form-input--error { border-color: var(--metod-brick) !important; }
.form-input-wrap {
  position: relative;
}
.form-input-wrap .form-input { padding-right: 44px; }
.form-input-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--ink-40);
  display: flex;
  align-items: center;
}
.form-input-toggle:hover { color: var(--ink); }
.form-input-toggle svg { width: 16px; height: 16px; stroke: currentColor; }
.form-input-icon-left {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-40);
  display: flex;
  align-items: center;
}
.form-input-icon-left svg { width: 16px; height: 16px; stroke: currentColor; }
.form-input-wrap--icon .form-input { padding-left: 40px; }

textarea.form-input {
  height: auto;
  padding: 10px 14px;
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.form-hint {
  font-size: 12px;
  color: var(--metod-ash);
  margin-top: 5px;
  line-height: 1.4;
}
.form-error {
  font-size: 12px;
  color: var(--metod-brick);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Password strength */
.pwd-strength {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pwd-strength__bars {
  display: flex;
  gap: 4px;
  flex: 1;
}
.pwd-strength__bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--ink-10);
  transition: background 200ms ease;
}
.pwd-strength__bar.is-filled-weak   { background: var(--metod-brick); }
.pwd-strength__bar.is-filled-medium { background: var(--metod-caramel); }
.pwd-strength__bar.is-filled-strong { background: var(--green); }
.pwd-strength__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-40);
  min-width: 40px;
  text-align: right;
}

/* Form divider */
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--ink-40);
  font-size: 12px;
  font-weight: 500;
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink-10);
}

/* Checkbox */
.form-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 20px;
}
.form-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--orange);
  flex-shrink: 0;
  cursor: pointer;
}
.form-checkbox-label {
  font-size: 13px;
  color: var(--ink-70);
  line-height: 1.4;
}
.form-checkbox-label a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Auth footer text */
.auth-link-row {
  text-align: center;
  font-size: 13px;
  color: var(--ink-55);
  margin-top: 20px;
}
.auth-link-row a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-secure {
  text-align: center;
  font-size: 11px;
  color: var(--ink-40);
  margin-top: 16px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.auth-secure svg { width: 12px; height: 12px; stroke: currentColor; }

/* Alert / error box */
.form-alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}
.form-alert--error {
  background: rgba(192,40,40,0.08);
  color: var(--metod-brick);
  border: 1px solid rgba(192,40,40,0.2);
}
.form-alert.is-visible { display: flex; align-items: center; gap: 8px; }
.form-alert svg { width: 16px; height: 16px; stroke: currentColor; flex-shrink: 0; }

/* =====================================================================
   DASHBOARD SHELL
   ===================================================================== */
.dash-shell {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

/* Topbar */
.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: var(--hairline);
}
.dash-topbar__inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.dash-topbar__logo {
  height: 28px;
  width: auto;
  margin-right: 4px;
}
.dash-topbar__logo img { height: 100%; }
.dash-topbar__spacer { flex: 1; }
.dash-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.dash-topbar__username {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.dash-topbar__logout {
  font-size: 13px;
  color: var(--ink-55);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: background 100ms, color 100ms;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.dash-topbar__logout:hover { background: var(--ink-06); color: var(--ink); }

/* Dashboard content */
.dash-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  width: 100%;
  flex: 1;
}

.dash-hero {
  margin-bottom: 48px;
}
.dash-hero__greeting {
  font-family: var(--font-editorial);
  font-weight: 300;
  font-style: italic;
  font-size: 40px;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 8px;
}
.dash-hero__sub {
  font-size: 15px;
  color: var(--metod-ash);
  margin-bottom: var(--space-6);
}

.dash-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--metod-ash);
  margin-bottom: var(--space-4);
  margin-top: var(--space-12);
}

/* Dossier cards */
.dossier-card {
  background: var(--metod-bone);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-3);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.dossier-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.dossier-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  gap: var(--space-3);
  flex-wrap: wrap;
}
.dossier-card__type {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--metod-ink);
  letter-spacing: -0.02em;
}
.dossier-card__address {
  font-size: 13px;
  color: var(--metod-ash);
  margin-bottom: var(--space-4);
}
.dossier-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--metod-ash);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.dossier-card__meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--metod-fog);
}

/* Timeline progress bar */
.dossier-card__timeline {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-4);
}

.dossier-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: var(--border-hairline);
}
.dossier-card__action {
  font-size: 13px;
  font-weight: 500;
  color: var(--metod-ink);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--duration-fast) var(--ease-out);
}
.dossier-card__action:hover { color: var(--metod-orange); }
.dossier-card__action svg { width: 14px; height: 14px; stroke: currentColor; }

.action-needed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--metod-orange);
  font-family: var(--font-mono);
}
.action-needed::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--metod-orange);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--metod-stone);
}
.empty-state__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--metod-fog);
}
.empty-state__icon svg { width: 100%; height: 100%; stroke: currentColor; }
.empty-state__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--metod-ash);
  margin-bottom: 6px;
}
.empty-state__sub { font-size: 13px; }

/* Dashboard footer */
.dash-footer {
  padding: 24px 32px;
  border-top: var(--hairline);
  background: var(--paper);
}
.dash-footer p {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-40);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-footer a { color: var(--ink-55); transition: color 100ms; }
.dash-footer a:hover { color: var(--ink); }
.dash-footer__sep { color: var(--ink-25); }

/* =====================================================================
   WIZARD ADDITIONS — progress bar + back link + step indicator
   ===================================================================== */
.progress-bar-top {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--metod-orange);
  z-index: 500;
  transition: width 400ms ease;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--metod-ash);
  margin-bottom: var(--space-8);
  transition: color var(--duration-fast) var(--ease-out);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.back-link:hover { color: var(--metod-ink); }
.back-link svg { width: 16px; height: 16px; stroke: currentColor; }

.wizard-step-indicator {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--metod-stone);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

/* =====================================================================
   UPLOAD ZONE
   ===================================================================== */
.upload-zone {
  border: 1.5px dashed var(--metod-fog);
  border-radius: var(--radius-md);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  background: var(--metod-bone);
  margin-bottom: var(--space-6);
}
.upload-zone:hover {
  border-color: var(--metod-ink);
  background: var(--metod-paper);
}
.upload-zone.is-dragging {
  border-color: var(--metod-orange);
  background: var(--metod-orange-soft);
}
.upload-zone__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-3);
  color: var(--metod-stone);
}
.upload-zone__icon svg { width: 100%; height: 100%; stroke: currentColor; }
.upload-zone__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--metod-ash);
  margin-bottom: 4px;
}
.upload-zone__hint {
  font-size: 12px;
  color: var(--metod-stone);
  font-family: var(--font-mono);
}

/* File list */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--space-6);
}
.file-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--metod-bone);
  border: var(--border-hairline);
  border-radius: var(--radius-sm);
}
.file-item__status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.file-item__status--done {
  background: var(--metod-forest-soft);
  color: var(--metod-forest);
}
.file-item__status--pending {
  background: var(--metod-mist);
  color: var(--metod-stone);
}
.file-item__status svg { width: 14px; height: 14px; stroke: currentColor; }
.file-item__name {
  flex: 1;
  font-size: 13px;
  font-weight: 400;
  color: var(--metod-ink);
}
.file-item__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.file-item__badge--required {
  background: var(--metod-brick-soft);
  color: var(--metod-brick);
}
.file-item__badge--optional {
  background: var(--metod-mist);
  color: var(--metod-ash);
}
.file-item__btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--metod-ash);
  padding: 5px 12px;
  border: var(--border-hairline);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.file-item__btn:hover { border-color: var(--metod-ink); color: var(--metod-ink); }
.file-item__btn--done { color: var(--metod-forest); border-color: var(--metod-forest-soft); background: var(--metod-forest-soft); }

/* Uploaded file chips */
.uploaded-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.uploaded-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--metod-mist);
  border: var(--border-hairline);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 400;
  color: var(--metod-ash);
}
.uploaded-file-chip__remove {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--metod-stone);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
}
.uploaded-file-chip__remove:hover { color: var(--metod-brick); }

/* =====================================================================
   CONFIRMATION PAGE
   ===================================================================== */
.confirmation-card {
  background: var(--metod-bone);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}
.confirm-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--metod-forest-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  animation: scale-in 300ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.confirm-check svg { width: 32px; height: 32px; stroke: var(--metod-forest); stroke-width: 2.5; }
@keyframes scale-in {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.confirm-ref {
  background: var(--metod-bone);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  text-align: center;
  margin-bottom: var(--space-6);
}
.confirm-ref__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--metod-ash);
  margin-bottom: var(--space-2);
}
.confirm-ref__num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--metod-ink);
  letter-spacing: 0.04em;
}
.confirm-summary {
  background: var(--metod-bone);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
}
.confirm-summary__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: 13px;
  border-bottom: var(--border-hairline);
}
.confirm-summary__row:last-child { border-bottom: 0; }
.confirm-summary__key { color: var(--metod-ash); font-weight: 400; }
.confirm-summary__val { color: var(--metod-ink); font-weight: 500; font-family: var(--font-mono); font-size: 12px; }
.confirm-info-box {
  background: var(--metod-forest-soft);
  border: 1px solid rgba(61, 107, 74, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: 13px;
  color: var(--metod-forest);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: var(--space-8);
}
.confirm-info-box svg { width: 16px; height: 16px; stroke: currentColor; flex-shrink: 0; margin-top: 1px; }
.confirm-delay {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--metod-paper);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--metod-ash);
  margin-bottom: var(--space-4);
}
.confirm-delay__icon { color: var(--metod-orange); flex-shrink: 0; }
.confirm-delay__icon svg { width: 18px; height: 18px; stroke: currentColor; }
.confirm-delay strong { color: var(--metod-ink); }

/* =====================================================================
   TRACKING PAGE
   ===================================================================== */
.suivi-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.suivi-main-col {}
.suivi-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.tracking-timeline {
  position: relative;
  padding-left: 28px;
}
.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 1.5px;
  background: var(--metod-mist);
}

.tracking-step {
  position: relative;
  padding-bottom: 28px;
}
.tracking-step:last-child { padding-bottom: 0; }

.tracking-step__dot {
  position: absolute;
  left: -24px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--metod-fog);
  background: var(--metod-bone);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.tracking-step__dot svg { width: 8px; height: 8px; stroke: currentColor; }

.tracking-step--done .tracking-step__dot {
  background: var(--metod-forest);
  border-color: var(--metod-forest);
  color: var(--metod-bone);
}
.tracking-step--active .tracking-step__dot {
  background: var(--metod-orange);
  border-color: var(--metod-orange);
  width: 18px;
  height: 18px;
  left: -25px;
  top: 2px;
}
.tracking-step--active .tracking-step__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--metod-orange-glow);
}
.tracking-step--pending .tracking-step__dot { background: var(--metod-bone); border-color: var(--metod-mist); }

.tracking-step__content {}
.tracking-step__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--metod-ink);
  margin-bottom: 2px;
}
.tracking-step--pending .tracking-step__title { color: var(--metod-stone); }
.tracking-step__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--metod-stone);
}
.tracking-step--active .tracking-step__date { color: var(--metod-orange); }
.tracking-step__note {
  font-size: 12px;
  color: var(--metod-ash);
  margin-top: 4px;
  line-height: 1.4;
}

/* Side cards */
.suivi-card {
  background: var(--metod-bone);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.suivi-card__title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--metod-ash);
  margin-bottom: var(--space-3);
}
.suivi-card__body {
  font-size: 13px;
  color: var(--metod-ash);
  line-height: 1.5;
}
.suivi-card__body strong { color: var(--metod-ink); }
.suivi-card__contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--metod-ash);
}
.suivi-card__contact-row svg { width: 14px; height: 14px; stroke: currentColor; flex-shrink: 0; }

/* QR placeholder */
.qr-placeholder {
  width: 80px;
  height: 80px;
  background: var(--ink-06);
  border: var(--hairline);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-40);
  font-weight: 600;
  margin-bottom: 10px;
}

/* Status message box */
.status-message-box {
  background: var(--metod-orange-soft);
  border: 1px solid rgba(232, 90, 16, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: 13px;
  color: var(--metod-ash);
  line-height: 1.5;
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
}

/* Title row with status chip */
.suivi-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.suivi-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--metod-stone);
  margin-bottom: 4px;
}
.suivi-address {
  font-size: 14px;
  color: var(--metod-ash);
  margin-bottom: var(--space-8);
}

/* Select input */
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--metod-fog);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.radio-item:hover { border-color: var(--metod-ink); background: var(--metod-bone); }
.radio-item input[type="radio"] { accent-color: var(--metod-orange); cursor: pointer; }
.radio-item.is-selected { border-color: var(--metod-orange); background: var(--metod-orange-soft); }
.radio-item__label { font-size: 14px; font-weight: 400; color: var(--metod-ink); }

/* Input with unit */
.input-unit-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.input-unit-wrap .form-input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: 0;
}
.input-unit {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--metod-mist);
  border: 1px solid var(--metod-fog);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--metod-ash);
  white-space: nowrap;
}

/* Textarea char counter */
.textarea-counter {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--metod-stone);
  margin-top: 4px;
}

/* Type chip in project step */
.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--metod-orange-soft);
  border: 1px solid rgba(232, 90, 16, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--metod-orange-deep);
  margin-bottom: var(--space-6);
}

/* =====================================================================
   RESPONSIVE ADDITIONS
   ===================================================================== */
@media (max-width: 768px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    position: static;
    height: auto;
    padding: 32px 24px;
    min-height: unset;
  }
  .auth-brand__title { font-size: 28px; }
  .auth-brand__desc { display: none; }
  .auth-brand__commune { padding-top: 20px; }
  .auth-form-side {
    padding: 40px 24px;
    min-height: unset;
    justify-content: flex-start;
  }

  .lux-selector {
    grid-template-columns: 1fr;
  }
  .lux-selector__left { border-right: 0; border-bottom: var(--hairline); }
  .lux-selector__right { display: none; }

  .dash-topbar__inner { padding: 0 20px; }
  .dash-topbar__username { display: none; }
  .dash-content { padding: 32px 20px 60px; }
  .dash-hero__greeting { font-size: 28px; }

  .suivi-layout { grid-template-columns: 1fr; }
  .suivi-side-col { position: static; }

  .form-group--row { grid-template-columns: 1fr; gap: 8px; }
}


/* ═══════════════════════════════════════════════════════════
   APP SHELL v3 — Design System v3.2 aligned
   ═══════════════════════════════════════════════════════════ */

html { height: 100%; }


/* Dashboard header unifié : voir .dash-* dans metod_shared.css */

/* ── Wizard Steps Bar ─────────────────────────────────────── */
.app-wizard-steps {
  flex-shrink: 0;
  height: 48px;
  background: var(--metod-bone);
  border-bottom: var(--border-hairline);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
}
.wstep2 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--metod-ash);
  white-space: nowrap;
}
.wstep2 + .wstep2::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--metod-fog);
  margin-right: var(--space-2);
}
.wstep2.is-active { color: var(--metod-ink); font-weight: 500; }
.wstep2.is-done   { color: var(--metod-ash); }
.wstep2__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--metod-mist);
  color: var(--metod-ash);
  flex-shrink: 0;
}
.wstep2.is-active .wstep2__num {
  background: var(--metod-orange);
  color: var(--metod-bone);
  box-shadow: 0 0 0 4px var(--metod-orange-glow);
}
.wstep2.is-done .wstep2__num {
  background: var(--metod-forest);
  color: var(--metod-bone);
}

/* ── Wizard Footer Bar ────────────────────────────────────── */
.app-wizard-footer {
  flex-shrink: 0;
  height: 60px;
  background: var(--metod-bone);
  border-top: var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}
.app-wizard-footer__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.app-wizard-footer__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--metod-ash);
}
.app-wizard-footer__sel {
  font-size: 13px;
  font-weight: 500;
  color: var(--metod-ink);
}
.app-wizard-footer__sel.is-empty {
  font-size: 13px;
  font-weight: 400;
  color: var(--metod-stone);
}


/* =====================================================================
   INDEX (LANDING) · extracted from index.html inline <style>
   ===================================================================== */
    html, body { height: 100%; }

    .page {
      height: calc(100vh / 1.08);
      display: flex;
      flex-direction: column;
      background: var(--metod-bone);
      overflow: hidden;
    }

    /* ── HEADER — tout aligné à gauche ── */
    .site-header {
      flex-shrink: 0;
      height: 56px;
      padding: 0 40px;
      display: flex;
      align-items: center;
      gap: 0;
      border-bottom: 1px solid var(--metod-fog);
      background: var(--metod-bone);
    }
    .site-header__logo {
      height: 16px;
      width: auto;
      display: block;
      fill: var(--metod-ink);
      flex-shrink: 0;
    }
    .site-header__sep {
      width: 1px;
      height: 20px;
      background: var(--metod-fog);
      margin: 0 16px;
      flex-shrink: 0;
    }
    .site-header__label {
      font-size: 12px;
      font-weight: 500;
      color: var(--metod-ash);
      letter-spacing: 0.01em;
      margin-right: 20px;
      flex-shrink: 0;
      white-space: nowrap;
    }
    .site-header__langs {
      display: flex;
      align-items: center;
      gap: 2px;
    }
    .lang-btn {
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.08em;
      padding: 4px 8px;
      border-radius: var(--radius-sm);
      border: 1px solid transparent;
      color: var(--metod-stone);
      background: transparent;
      cursor: pointer;
      transition: all 100ms ease;
      line-height: 1;
    }
    .lang-btn:hover { color: var(--metod-ink); border-color: var(--metod-fog); }
    .lang-btn.is-active {
      color: var(--metod-ink);
      border-color: var(--metod-fog);
      background: var(--metod-paper);
    }

    /* ── MAIN — héros centré ── */
    .page-main {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 32px 40px 24px;
    }

    /* Eyebrow */
    .hero-eyebrow {
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--metod-stone);
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .hero-eyebrow::before {
      content: '';
      width: 18px;
      height: 1.5px;
      background: var(--metod-orange);
      flex-shrink: 0;
    }

    /* Grand titre */
    .hero-title {
      font-family: var(--font-editorial);
      font-weight: 300;
      font-size: clamp(40px, 5.5vw, 68px);
      letter-spacing: -0.035em;
      line-height: 1;
      color: var(--metod-ink);
      text-align: center;
      margin-bottom: 10px;
    }

    /* Sous-titre instruction */
    .hero-instruction {
      font-size: 15px;
      color: var(--metod-ash);
      text-align: center;
      margin-bottom: 36px;
      line-height: 1.5;
    }

    /* ── CHAMP DE RECHERCHE ── */
    .search-zone {
      width: 100%;
      max-width: 560px;
      position: relative;
      margin-bottom: 20px;
      flex-shrink: 0;
    }
    .search-zone__icon {
      position: absolute;
      left: 18px;
      top: 50%;
      transform: translateY(-50%);
      width: 20px;
      height: 20px;
      stroke: var(--metod-stone);
      pointer-events: none;
    }
    .search-input {
      width: 100%;
      height: 60px;
      padding: 0 20px 0 54px;
      background: var(--metod-paper);
      border: 1.5px solid var(--metod-fog);
      border-radius: var(--radius-md);
      font-family: var(--font-body);
      font-size: 17px;
      color: var(--metod-ink);
      box-shadow: 0 2px 12px rgba(10,10,10,0.05);
      transition: border-color 150ms ease, box-shadow 150ms ease;
    }
    .search-input::placeholder { color: var(--metod-stone); }
    .search-input:focus {
      outline: none;
      border-color: var(--metod-ink);
      box-shadow: 0 0 0 3px rgba(10,10,10,0.06), 0 2px 12px rgba(10,10,10,0.05);
    }

    /* ── COMMUNE DISPONIBLE mise en avant ── */
    .commune-featured {
      width: 100%;
      max-width: 560px;
      flex-shrink: 0;
      margin-bottom: 20px;
      display: none; /* shown by JS when search is empty */
    }
    .commune-featured.is-visible { display: block; }
    .commune-featured__label {
      font-family: var(--font-mono);
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--metod-orange);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .commune-featured__label::before {
      content: '';
      width: 12px;
      height: 1.5px;
      background: var(--metod-orange);
    }
    .commune-featured__card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 22px;
      background: var(--metod-ink);
      color: var(--metod-bone);
      border-radius: var(--radius-md);
      cursor: pointer;
      transition: background 120ms ease, transform 120ms ease;
      text-decoration: none;
    }
    .commune-featured__card:hover {
      background: #1a1a18;
      transform: translateY(-1px);
    }
    .commune-featured__name {
      font-family: var(--font-editorial);
      font-size: 22px;
      font-weight: 300;
      letter-spacing: -0.02em;
    }
    .commune-featured__action {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 500;
      color: var(--metod-bone);
      opacity: 0.7;
    }
    .commune-featured__action svg {
      width: 16px;
      height: 16px;
      stroke: var(--metod-bone);
    }

    /* ── LISTE DES COMMUNES ── */
    .commune-list-wrap {
      width: 100%;
      max-width: 560px;
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      border: 1px solid var(--metod-fog);
      border-radius: var(--radius-md);
      background: var(--metod-paper);
    }
    .commune-list-wrap::-webkit-scrollbar { width: 4px; }
    .commune-list-wrap::-webkit-scrollbar-thumb { background: var(--metod-fog); border-radius: 2px; }
    .commune-list-wrap::-webkit-scrollbar-track { background: transparent; }

    .commune-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 13px 18px;
      border-bottom: 1px solid var(--metod-mist);
      transition: background 80ms ease;
      gap: 12px;
    }
    .commune-row:last-child { border-bottom: none; }
    .commune-row--active {
      cursor: pointer;
    }
    .commune-row--active:hover {
      background: var(--metod-bone);
    }
    .commune-row--active:hover .commune-row__arrow { opacity: 1; transform: translateX(2px); }
    .commune-row--soon {
      cursor: default;
    }
    .commune-row__name {
      font-size: 15px;
      font-weight: 500;
      color: var(--metod-ash);
      flex: 1;
    }
    .commune-row--active .commune-row__name {
      color: var(--metod-ink);
    }
    .commune-row__arrow {
      opacity: 0;
      transition: opacity 100ms ease, transform 100ms ease;
      flex-shrink: 0;
    }
    .commune-row__arrow svg {
      width: 14px;
      height: 14px;
      stroke: var(--metod-orange);
    }
    .commune-row__badge {
      font-family: var(--font-mono);
      font-size: 9px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--metod-stone);
      background: var(--metod-mist);
      padding: 3px 7px;
      border-radius: var(--radius-sm);
      flex-shrink: 0;
    }

    .commune-empty {
      padding: 24px 18px;
      font-size: 14px;
      color: var(--metod-ash);
      text-align: center;
    }

    /* Notice bientôt */
    .soon-notice {
      display: none;
      width: 100%;
      max-width: 560px;
      margin-top: 10px;
      padding: 10px 16px;
      background: var(--metod-paper);
      border: 1px solid var(--metod-fog);
      border-radius: var(--radius-sm);
      font-size: 13px;
      color: var(--metod-ash);
      text-align: center;
      flex-shrink: 0;
    }
    .soon-notice.is-visible { display: block; }

    /* ── FOOTER ── */
    .site-footer {
      flex-shrink: 0;
      padding: 10px 40px;
      border-top: 1px solid var(--metod-fog);
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .site-footer p {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--metod-stone);
      letter-spacing: 0.04em;
    }

    @media (max-width: 768px) {
      .site-header { padding: 0 20px; height: 52px; }
      .page-main { padding: 24px 20px 20px; }
      .hero-title { font-size: clamp(32px, 8vw, 48px); }
      .hero-instruction { font-size: 14px; margin-bottom: 24px; }
      .site-footer { padding: 10px 20px; }
    }


/* =====================================================================
   DEMANDE-BIEN · extracted from demande-bien.html inline <style>
   ===================================================================== */
    .address-wrap { position: relative; }
    .address-suggestions {
      position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 200;
      background: var(--paper); border: var(--hairline); border-radius: var(--radius);
      box-shadow: 0 8px 24px rgba(0,0,0,0.10); display: none; overflow: hidden;
    }
    .address-suggestions.is-open { display: block; }
    .address-suggestion {
      padding: 10px 14px; cursor: pointer;
      border-bottom: 1px solid var(--ink-10);
      display: flex; align-items: center; gap: 10px;
    }
    .address-suggestion:last-child { border-bottom: none; }
    .address-suggestion:hover { background: var(--cream-warm); }
    .address-suggestion__icon { flex-shrink:0; color: var(--ink-40); }
    .address-suggestion__text { flex:1; min-width:0; }
    .address-suggestion__main { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.3; }
    .address-suggestion__cp { font-size: 11px; color: var(--ink-40); margin-top: 1px; }
    .address-loading {
      padding: 12px 14px; font-size: 13px; color: var(--ink-40);
      display: flex; align-items: center; gap: 8px;
    }
    .spin { animation: spin .6s linear infinite; display: inline-block; }
    @keyframes spin { to { transform: rotate(360deg); } }

    .parcelle-found {
      display: none; align-items: center; gap: 6px;
      font-size: 12px; color: #2a7a2a; margin-top: 5px;
      padding: 6px 10px; background: #f0faf0;
      border-radius: 6px; border: 1px solid #b8e0b8;
    }
    .parcelle-found.is-visible { display: flex; }
    .parcelle-searching {
      display: none; align-items: center; gap: 6px;
      font-size: 12px; color: var(--ink-55); margin-top: 5px;
    }
    .parcelle-searching.is-visible { display: flex; }


/* ─────────────────────────────────────────────────────────────────────
   PROFIL · Form grid (pattern réutilisé depuis architecte/differdange)
   ───────────────────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--metod-paper);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.form-section {
  padding: var(--space-6) var(--space-8);
  border-right: var(--border-hairline);
  border-bottom: var(--border-hairline);
}
.form-section:nth-child(2n) { border-right: 0; }
.form-section--full {
  grid-column: 1 / -1;
  border-right: 0;
}
.form-section__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--metod-orange);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: var(--border-hairline);
}
.form-field {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  font-size: 13px;
  align-items: baseline;
}
.form-field__label { color: var(--metod-ash); font-size: var(--font-size-caption); }
.form-field__value { color: var(--metod-ink); font-weight: 500; }
.form-field__value.mono { font-family: var(--font-mono); }

/* Profil header */
.profile-head {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: var(--border-hairline);
}
.profile-head__avatar {
  width: 72px; height: 72px;
  border-radius: var(--radius-full);
  background: var(--metod-orange);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.profile-head__text { flex: 1; min-width: 0; }
.profile-head__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--metod-ink);
  margin: 0;
}
.profile-head__role { font-size: 14px; color: var(--metod-ash); margin-top: 4px; }
.profile-head__chips { display: flex; gap: var(--space-2); margin-top: var(--space-2); flex-wrap: wrap; }
