/* ==========================================================================
   DELEKY'S — Design system (tokens + composants de base)
   v0.1 — 2026-09-29 — deleky-design
   Identité propre : « Vert lagune » + « Or ocre » sur fond « Sable ».
   Polices locales uniquement (zéro CDN). Mobile-first. Cibles tactiles >= 44 px.
   ========================================================================== */

/* ---------- 1. Polices embarquées ---------- */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Marque */
  --dk-lagune-900: #06362C;
  --dk-lagune-800: #084A3C;
  --dk-lagune-700: #0B5D4B;   /* primaire : boutons, liens, en-têtes */
  --dk-lagune-600: #11775F;
  --dk-lagune-100: #DCEFE8;
  --dk-lagune-50:  #EEF7F3;

  --dk-ocre-700: #8A5A0F;     /* texte ocre sur clair (AA) */
  --dk-ocre-500: #D99A2B;     /* accent : sceau, surlignage, étoiles */
  --dk-ocre-100: #F8EAD0;
  --dk-ocre-50:  #FCF6EA;

  /* Neutres chauds */
  --dk-ink:     #13212B;      /* texte principal */
  --dk-ink-2:   #3A4A53;
  --dk-muted:   #5E6D74;      /* texte secondaire (AA sur blanc et sable) */
  --dk-line:    #E3DDD1;
  --dk-line-2:  #EFEBE3;
  --dk-sable:   #FAF7F1;      /* fond de page */
  --dk-surface: #FFFFFF;
  --dk-nuit:    #0E1B22;      /* pied de page, back-office sombre */

  /* États (badges, alertes) */
  --dk-ok:        #1E7F4F;  --dk-ok-bg:      #E4F4EA;
  --dk-attente:   #9A5B00;  --dk-attente-bg: #FDF0D8;
  --dk-alerte:    #B42318;  --dk-alerte-bg:  #FDE8E6;
  --dk-info:      #1F5FA8;  --dk-info-bg:    #E5EEF9;
  --dk-neutre:    #4B5A61;  --dk-neutre-bg:  #EEF0F0;
  --dk-violet:    #5B3FA6;  --dk-violet-bg:  #EEE9F9;

  /* Typographie */
  --dk-font-titre: "Sora", "Segoe UI", system-ui, sans-serif;
  --dk-font-texte: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --dk-fs-xs: .8125rem;   /* 13 */
  --dk-fs-sm: .875rem;    /* 14 */
  --dk-fs-md: 1rem;       /* 16 — jamais moins pour les champs (zoom iOS) */
  --dk-fs-lg: 1.125rem;   /* 18 */
  --dk-fs-xl: 1.375rem;   /* 22 */
  --dk-fs-2xl: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  --dk-fs-3xl: clamp(1.9rem, 1.4rem + 2.6vw, 3.1rem);

  /* Espacements (base 4) */
  --dk-s1: 4px; --dk-s2: 8px; --dk-s3: 12px; --dk-s4: 16px; --dk-s5: 20px;
  --dk-s6: 24px; --dk-s8: 32px; --dk-s10: 40px; --dk-s12: 48px; --dk-s16: 64px;

  /* Formes */
  --dk-r-sm: 8px; --dk-r-md: 12px; --dk-r-lg: 18px; --dk-r-pill: 999px;
  --dk-shadow-1: 0 1px 2px rgba(19,33,43,.06), 0 1px 3px rgba(19,33,43,.08);
  --dk-shadow-2: 0 6px 20px rgba(19,33,43,.08), 0 2px 6px rgba(19,33,43,.05);
  --dk-shadow-3: 0 18px 44px rgba(8,74,60,.16);
  --dk-focus: 0 0 0 3px #fff, 0 0 0 5px var(--dk-ocre-500);

  --dk-tap: 44px;          /* cible tactile minimale */
  --dk-max: 1180px;        /* largeur de contenu site */
  --dk-sidebar: 256px;     /* back-office / espace gestion */
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *{ transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--dk-font-texte); font-size: var(--dk-fs-md); line-height: 1.55;
  color: var(--dk-ink); background: var(--dk-sable);
}
h1, h2, h3, h4 { font-family: var(--dk-font-titre); line-height: 1.18; margin: 0 0 var(--dk-s3); letter-spacing: -.01em; }
h1 { font-size: var(--dk-fs-3xl); font-weight: 700; }
h2 { font-size: var(--dk-fs-2xl); font-weight: 700; }
h3 { font-size: var(--dk-fs-lg); font-weight: 600; }
p { margin: 0 0 var(--dk-s4); }
a { color: var(--dk-lagune-700); text-underline-offset: 3px; }
a:hover { color: var(--dk-lagune-900); }
img, svg { max-width: 100%; }
:focus-visible { outline: none; box-shadow: var(--dk-focus); border-radius: 6px; }
.dk-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dk-muted { color: var(--dk-muted); }
.dk-small { font-size: var(--dk-fs-sm); }
.dk-xs { font-size: var(--dk-fs-xs); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dk-skip { position: absolute; left: -9999px; top: 8px; background: var(--dk-ink); color: #fff; padding: 10px 14px; border-radius: var(--dk-r-sm); z-index: 100; }
.dk-skip:focus { left: 8px; }

/* ---------- 4. Mise en page ---------- */
.dk-wrap { width: 100%; max-width: var(--dk-max); margin: 0 auto; padding: 0 var(--dk-s4); }
@media (min-width: 768px) { .dk-wrap { padding: 0 var(--dk-s6); } }
.dk-section { padding: var(--dk-s12) 0; }
@media (min-width: 1024px) { .dk-section { padding: var(--dk-s16) 0; } }
.dk-stack > * + * { margin-top: var(--dk-s4); }
.dk-row { display: flex; gap: var(--dk-s3); align-items: center; flex-wrap: wrap; }
.dk-between { justify-content: space-between; }
.dk-grid { display: grid; gap: var(--dk-s4); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .dk-grid-2, .dk-grid-3, .dk-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dk-grid-3 { grid-template-columns: repeat(3, 1fr); } .dk-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.dk-eyebrow { font-family: var(--dk-font-titre); font-size: var(--dk-fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dk-ocre-700); margin-bottom: var(--dk-s2); display: inline-block; }

/* ---------- 5. Marque (logo) ---------- */
.dk-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dk-ink); min-height: var(--dk-tap); }
.dk-logo svg { width: 34px; height: 34px; flex: none; }
.dk-logo b { font-family: var(--dk-font-titre); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; }
.dk-logo b i { font-style: normal; color: var(--dk-ocre-500); }
.dk-logo--clair { color: #fff; }

/* ---------- 6. Boutons ---------- */
.dk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--dk-tap); padding: 10px 20px; border-radius: var(--dk-r-pill);
  font: 600 var(--dk-fs-md)/1.2 var(--dk-font-texte); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.dk-btn:active { transform: translateY(1px); }
.dk-btn--primaire { background: var(--dk-lagune-700); color: #fff; }
.dk-btn--primaire:hover { background: var(--dk-lagune-800); color: #fff; }
.dk-btn--or { background: var(--dk-ocre-500); color: var(--dk-ink); }
.dk-btn--or:hover { background: #C88A1F; color: var(--dk-ink); }
.dk-btn--contour { background: transparent; color: var(--dk-lagune-700); border-color: var(--dk-lagune-700); }
.dk-btn--contour:hover { background: var(--dk-lagune-50); }
.dk-btn--fantome { background: transparent; color: var(--dk-ink); }
.dk-btn--fantome:hover { background: var(--dk-line-2); }
.dk-btn--danger { background: var(--dk-surface); color: var(--dk-alerte); border-color: #F2C3BE; }
.dk-btn--lg { min-height: 52px; padding: 12px 26px; font-size: var(--dk-fs-lg); }
.dk-btn--sm { min-height: 36px; padding: 6px 14px; font-size: var(--dk-fs-sm); } /* bureau uniquement, jamais seul sur mobile */
.dk-btn--bloc { width: 100%; }
.dk-btn[disabled] { opacity: .5; cursor: not-allowed; }
.dk-lien-retour { display: inline-flex; align-items: center; gap: 6px; min-height: var(--dk-tap); font-weight: 600; text-decoration: none; }

/* ---------- 7. Cartes ---------- */
.dk-card { background: var(--dk-surface); border: 1px solid var(--dk-line); border-radius: var(--dk-r-lg); padding: var(--dk-s5); box-shadow: var(--dk-shadow-1); }
@media (min-width: 768px) { .dk-card { padding: var(--dk-s6); } }
.dk-card--lien { display: flex; flex-direction: column; gap: var(--dk-s2); text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s, transform .15s; }
.dk-card--lien:hover { border-color: var(--dk-lagune-600); box-shadow: var(--dk-shadow-2); transform: translateY(-2px); color: inherit; }
.dk-card__prix { margin-top: auto; padding-top: var(--dk-s3); border-top: 1px dashed var(--dk-line); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dk-card__prix strong { font-family: var(--dk-font-titre); color: var(--dk-lagune-700); font-size: var(--dk-fs-lg); }
.dk-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--dk-lagune-50); color: var(--dk-lagune-700); flex: none; }
.dk-ico svg { width: 22px; height: 22px; }
.dk-ico--or { background: var(--dk-ocre-50); color: var(--dk-ocre-700); }

/* ---------- 8. Badges de statut ---------- */
.dk-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--dk-r-pill); font-size: var(--dk-fs-xs); font-weight: 600; line-height: 1.5; white-space: nowrap; }
.dk-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dk-badge--ok      { color: var(--dk-ok);      background: var(--dk-ok-bg); }
.dk-badge--attente { color: var(--dk-attente); background: var(--dk-attente-bg); }
.dk-badge--alerte  { color: var(--dk-alerte);  background: var(--dk-alerte-bg); }
.dk-badge--info    { color: var(--dk-info);    background: var(--dk-info-bg); }
.dk-badge--neutre  { color: var(--dk-neutre);  background: var(--dk-neutre-bg); }
.dk-badge--violet  { color: var(--dk-violet);  background: var(--dk-violet-bg); }
.dk-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: var(--dk-fs-xs); font-weight: 600; background: var(--dk-ocre-100); color: var(--dk-ocre-700); }

/* ---------- 9. Formulaires ---------- */
.dk-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--dk-s4); }
.dk-label { font-weight: 600; font-size: var(--dk-fs-sm); display: flex; align-items: center; gap: 6px; }
.dk-label .req { color: var(--dk-alerte); }
.dk-input, .dk-select, .dk-textarea {
  width: 100%; min-height: var(--dk-tap); padding: 10px 14px; font: 400 var(--dk-fs-md)/1.4 var(--dk-font-texte);
  color: var(--dk-ink); background: var(--dk-surface); border: 1.5px solid #CFC8BA; border-radius: var(--dk-r-md);
}
.dk-textarea { min-height: 96px; resize: vertical; }
.dk-input:focus, .dk-select:focus, .dk-textarea:focus { outline: none; border-color: var(--dk-lagune-700); box-shadow: 0 0 0 3px var(--dk-lagune-100); }
.dk-input[aria-invalid="true"] { border-color: var(--dk-alerte); }
.dk-hint { font-size: var(--dk-fs-xs); color: var(--dk-muted); }
.dk-error { font-size: var(--dk-fs-xs); color: var(--dk-alerte); font-weight: 600; }
.dk-help { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--dk-muted); color: var(--dk-muted); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; cursor: help; position: relative; }
.dk-help:hover::after, .dk-help:focus::after { content: attr(data-aide); position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); width: 240px; background: var(--dk-ink); color: #fff; font-weight: 400; font-size: var(--dk-fs-xs); line-height: 1.4; padding: 8px 10px; border-radius: 8px; z-index: 20; }
.dk-input-group { display: flex; }
.dk-input-group .dk-input { border-radius: var(--dk-r-md) 0 0 var(--dk-r-md); }
.dk-input-group span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid #CFC8BA; border-left: 0; border-radius: 0 var(--dk-r-md) var(--dk-r-md) 0; background: var(--dk-line-2); font-weight: 600; font-size: var(--dk-fs-sm); }

/* Choix en tuiles (radio / case) — cible tactile large */
.dk-choix { display: grid; gap: var(--dk-s3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .dk-choix--2 { grid-template-columns: repeat(2, 1fr); } .dk-choix--3 { grid-template-columns: repeat(3, 1fr); } }
.dk-tuile { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; min-height: 56px; border: 1.5px solid var(--dk-line); border-radius: var(--dk-r-md); background: var(--dk-surface); cursor: pointer; transition: border-color .15s, background .15s; }
.dk-tuile input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--dk-lagune-700); flex: none; }
.dk-tuile:hover { border-color: var(--dk-lagune-600); }
.dk-tuile:has(input:checked) { border-color: var(--dk-lagune-700); background: var(--dk-lagune-50); box-shadow: inset 0 0 0 1px var(--dk-lagune-700); }
.dk-tuile__prix { margin-left: auto; font-weight: 700; color: var(--dk-lagune-700); white-space: nowrap; }
.dk-tuile__reco { position: absolute; top: -10px; right: 12px; }

/* Répéteur « ➕ Ajouter une ligne » */
.dk-repeteur__ligne { border: 1px solid var(--dk-line); border-radius: var(--dk-r-md); padding: var(--dk-s4); background: var(--dk-surface); margin-bottom: var(--dk-s3); }
.dk-ajouter { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: var(--dk-tap); border: 1.5px dashed var(--dk-lagune-600); border-radius: var(--dk-r-md); background: var(--dk-lagune-50); color: var(--dk-lagune-700); font: 600 var(--dk-fs-md) var(--dk-font-texte); cursor: pointer; }
.dk-ajouter:hover { background: var(--dk-lagune-100); }
.dk-suppr { min-width: var(--dk-tap); min-height: var(--dk-tap); border: 0; background: transparent; color: var(--dk-alerte); border-radius: 10px; cursor: pointer; font-size: 1.1rem; }
.dk-suppr:hover { background: var(--dk-alerte-bg); }

/* Dépôt de fichier */
.dk-depot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 120px; padding: var(--dk-s4); border: 2px dashed #CFC8BA; border-radius: var(--dk-r-md); background: var(--dk-sable); cursor: pointer; }
.dk-depot:hover { border-color: var(--dk-lagune-600); background: var(--dk-lagune-50); }

/* ---------- 10. Barre de progression / étapes du tunnel ---------- */
.dk-progress { height: 8px; border-radius: var(--dk-r-pill); background: var(--dk-line); overflow: hidden; }
.dk-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--dk-lagune-700), var(--dk-lagune-600)); border-radius: inherit; transition: width .3s; }
.dk-steps { display: flex; gap: 4px; list-style: none; padding: 0; margin: var(--dk-s3) 0 0; overflow-x: auto; }
.dk-steps li { flex: 1 0 auto; font-size: var(--dk-fs-xs); color: var(--dk-muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.dk-steps li b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--dk-line); color: var(--dk-ink-2); font-size: 12px; }
.dk-steps li[aria-current="step"] { color: var(--dk-ink); font-weight: 700; }
.dk-steps li[aria-current="step"] b { background: var(--dk-lagune-700); color: #fff; }
.dk-steps li.fait b { background: var(--dk-ok); color: #fff; }
@media (max-width: 767px) { .dk-steps li span { display: none; } .dk-steps li[aria-current="step"] span { display: inline; } }

/* ---------- 11. Timeline (suivi de dossier) ---------- */
.dk-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.dk-timeline li { position: relative; padding: 0 0 var(--dk-s6) 44px; }
.dk-timeline li::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--dk-line); }
.dk-timeline li:last-child::before { display: none; }
.dk-timeline li.fait::before { background: var(--dk-ok); }
.dk-tl-pastille { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--dk-surface); border: 2px solid var(--dk-line); color: var(--dk-muted); font-size: 14px; font-weight: 700; }
.fait .dk-tl-pastille { background: var(--dk-ok); border-color: var(--dk-ok); color: #fff; }
.encours .dk-tl-pastille { background: var(--dk-ocre-500); border-color: var(--dk-ocre-500); color: var(--dk-ink); box-shadow: 0 0 0 5px var(--dk-ocre-100); }
.dk-timeline h3 { margin: 4px 0 2px; font-size: var(--dk-fs-md); }
.a-venir h3 { color: var(--dk-muted); font-weight: 500; }

/* ---------- 12. Tableaux ---------- */
.dk-table-wrap { overflow-x: auto; border: 1px solid var(--dk-line); border-radius: var(--dk-r-lg); background: var(--dk-surface); }
.dk-table { width: 100%; border-collapse: collapse; font-size: var(--dk-fs-sm); }
.dk-table th { text-align: left; font-weight: 600; color: var(--dk-muted); font-size: var(--dk-fs-xs); text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px; background: var(--dk-sable); border-bottom: 1px solid var(--dk-line); white-space: nowrap; }
.dk-table td { padding: 12px 14px; border-bottom: 1px solid var(--dk-line-2); vertical-align: middle; }
.dk-table tr:last-child td { border-bottom: 0; }
.dk-table tbody tr:hover { background: var(--dk-lagune-50); }
.dk-table .dk-right { text-align: right; }
/* Mobile : tableau -> cartes empilées (data-label sur chaque td) */
@media (max-width: 767px) {
  .dk-table--cartes thead { display: none; }
  .dk-table--cartes, .dk-table--cartes tbody, .dk-table--cartes tr, .dk-table--cartes td { display: block; width: 100%; }
  .dk-table--cartes tr { padding: 12px 14px; border-bottom: 1px solid var(--dk-line); }
  .dk-table--cartes td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; }
  .dk-table--cartes td::before { content: attr(data-label); color: var(--dk-muted); font-size: var(--dk-fs-xs); font-weight: 600; }
  .dk-table--cartes td.dk-td-titre { font-size: var(--dk-fs-md); display: block; margin-bottom: 6px; }
  .dk-table--cartes td.dk-td-titre::before { display: none; }
}

/* ---------- 13. KPI ---------- */
.dk-kpi { background: var(--dk-surface); border: 1px solid var(--dk-line); border-radius: var(--dk-r-lg); padding: var(--dk-s4) var(--dk-s5); }
.dk-kpi__label { font-size: var(--dk-fs-xs); color: var(--dk-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.dk-kpi__val { font-family: var(--dk-font-titre); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 700; margin: 4px 0; font-variant-numeric: tabular-nums; }
.dk-kpi__delta { font-size: var(--dk-fs-xs); font-weight: 600; }
.dk-up { color: var(--dk-ok); } .dk-down { color: var(--dk-alerte); }

/* ---------- 14. Alertes / réassurance ---------- */
.dk-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--dk-r-md); border: 1px solid; font-size: var(--dk-fs-sm); }
.dk-alert--info { background: var(--dk-info-bg); border-color: #BFD3EE; color: #173F6E; }
.dk-alert--attente { background: var(--dk-attente-bg); border-color: #F0D29E; color: #6B3F00; }
.dk-alert--ok { background: var(--dk-ok-bg); border-color: #B8DEC7; color: #145535; }
.dk-reassure { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dk-reassure li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--dk-fs-sm); }
.dk-reassure li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--dk-ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%231E7F4F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* ---------- 15. En-tête site + menu mobile sans JS ---------- */
.dk-header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,241,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--dk-line); }
.dk-header .dk-wrap { display: flex; align-items: center; gap: var(--dk-s4); min-height: 68px; }
.dk-nav { display: none; }
.dk-nav a { display: inline-flex; align-items: center; min-height: var(--dk-tap); padding: 0 12px; color: var(--dk-ink); text-decoration: none; font-weight: 500; border-radius: 10px; }
.dk-nav a:hover { background: var(--dk-line-2); }
.dk-header__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.dk-burger { list-style: none; }
.dk-burger > summary { list-style: none; width: var(--dk-tap); height: var(--dk-tap); display: grid; place-items: center; border-radius: 12px; cursor: pointer; border: 1px solid var(--dk-line); background: var(--dk-surface); }
.dk-burger > summary::-webkit-details-marker { display: none; }
.dk-burger__panneau { position: absolute; left: 0; right: 0; top: 68px; background: var(--dk-surface); border-bottom: 1px solid var(--dk-line); box-shadow: var(--dk-shadow-2); padding: var(--dk-s3) var(--dk-s4) var(--dk-s5); }
.dk-burger__panneau a { display: flex; min-height: 48px; align-items: center; border-bottom: 1px solid var(--dk-line-2); color: var(--dk-ink); text-decoration: none; font-weight: 600; }
.dk-cache-mobile { display: none; }
@media (min-width: 1024px) {
  .dk-nav { display: flex; gap: 2px; margin-left: var(--dk-s4); }
  .dk-burger { display: none; }
  .dk-cache-mobile { display: inline-flex; }
}

/* ---------- 16. Pied de page ---------- */
.dk-footer { background: var(--dk-nuit); color: #C9D3D6; padding: var(--dk-s12) 0 var(--dk-s6); font-size: var(--dk-fs-sm); }
.dk-footer a { color: #E8EEF0; text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.dk-footer a:hover { color: var(--dk-ocre-500); }
.dk-footer h4 { color: #fff; font-size: var(--dk-fs-sm); margin-bottom: var(--dk-s2); }
.dk-footer ul { list-style: none; padding: 0; margin: 0; }

/* ---------- 17. Application (back-office + espace gestion) ---------- */
.dk-app { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.dk-side { display: none; background: var(--dk-nuit); color: #C9D3D6; padding: var(--dk-s4); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dk-side nav a { display: flex; align-items: center; gap: 10px; min-height: var(--dk-tap); padding: 0 12px; border-radius: 10px; color: #C9D3D6; text-decoration: none; font-weight: 500; font-size: var(--dk-fs-sm); }
.dk-side nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.dk-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.dk-side nav a[aria-current="page"] { background: var(--dk-lagune-700); color: #fff; }
.dk-side__titre { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #7F9197; margin: var(--dk-s5) 12px var(--dk-s2); font-weight: 700; }
.dk-side .dk-compteur { margin-left: auto; background: rgba(255,255,255,.12); padding: 1px 8px; border-radius: 999px; font-size: 11px; }
.dk-main { min-width: 0; }
.dk-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--dk-s3); min-height: 64px; padding: 0 var(--dk-s4); background: var(--dk-surface); border-bottom: 1px solid var(--dk-line); }
.dk-content { padding: var(--dk-s5) var(--dk-s4) var(--dk-s16); max-width: 1400px; }
@media (min-width: 768px) { .dk-content { padding: var(--dk-s6) var(--dk-s8) var(--dk-s16); } }
@media (min-width: 1024px) {
  .dk-app { grid-template-columns: var(--dk-sidebar) 1fr; }
  .dk-side { display: block; }
  .dk-burger--app { display: none; }
}
/* Barre d'onglets en bas (mobile) pour l'espace gestion */
.dk-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--dk-surface); border-top: 1px solid var(--dk-line); padding-bottom: env(safe-area-inset-bottom); }
.dk-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; font-size: 11px; font-weight: 600; color: var(--dk-muted); text-decoration: none; }
.dk-tabbar a svg { width: 22px; height: 22px; }
.dk-tabbar a[aria-current="page"] { color: var(--dk-lagune-700); }
.dk-tabbar .dk-tab-plus span { width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; background: var(--dk-ocre-500); color: var(--dk-ink); display: grid; place-items: center; box-shadow: var(--dk-shadow-2); font-size: 26px; font-weight: 700; }
@media (min-width: 1024px) { .dk-tabbar { display: none; } }

/* Filtres en puces */
.dk-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.dk-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--dk-r-pill); border: 1px solid var(--dk-line); background: var(--dk-surface); color: var(--dk-ink); font-weight: 600; font-size: var(--dk-fs-sm); text-decoration: none; white-space: nowrap; }
.dk-chip b { font-weight: 700; color: var(--dk-muted); }
.dk-chip[aria-pressed="true"], .dk-chip[aria-current="true"] { background: var(--dk-ink); color: #fff; border-color: var(--dk-ink); }
.dk-chip[aria-pressed="true"] b, .dk-chip[aria-current="true"] b { color: var(--dk-ocre-500); }

/* Onglets (liens d'ancre, sans JS) */
.dk-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--dk-line); overflow-x: auto; }
.dk-tabs a { display: inline-flex; align-items: center; min-height: var(--dk-tap); padding: 0 16px; font-weight: 600; color: var(--dk-muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.dk-tabs a[aria-current="page"] { color: var(--dk-lagune-700); border-bottom-color: var(--dk-lagune-700); }

/* Avatar */
.dk-avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--dk-ocre-100); color: var(--dk-ocre-700); font-weight: 700; font-size: 13px; flex: none; }

/* Bandeau maquette (à retirer en implémentation) */
.dk-maquette { background: repeating-linear-gradient(45deg, #13212B, #13212B 10px, #1b2d38 10px, #1b2d38 20px); color: #fff; font-size: 12px; text-align: center; padding: 6px; }
.dk-maquette a { color: var(--dk-ocre-500); }
