@charset "UTF-8";
/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
/* Design tokens (couleurs, typographie, rayons, espacements, ombres) */
:root {
  /* Couleurs “Material-like” */
  --ds-primary: #0ea5e9;
  --ds-on-primary: #fff;
  --ds-surface: #ffffff;
  --ds-on-surface: #111111;
  --ds-outline: rgba(0,0,0,.14);
  --ds-muted: rgba(0,0,0,.60);
  --ds-state: rgba(14,165,233,.10); /* couche d’état (hover/press) */
  --ds-error: #d32f2f;
  /* Typo */
  --ds-font: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  /* Rayons & spacing */
  --ds-radius-sm: 8px;
  --ds-radius-md: 12px;
  --ds-radius-lg: 16px;
  /* Ombres (élévations) */
  --ds-elev-1: 0 1px 2px rgba(0,0,0,.07), 0 1px 1px rgba(0,0,0,.06);
  --ds-elev-2: 0 2px 6px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --ds-elev-3: 0 6px 18px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.08);
}

html, body {
  background: var(--ds-surface);
  color: var(--ds-on-surface);
  font-family: var(--ds-font);
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.95rem;
  height: 40px;
  border-radius: var(--ds-radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ds-on-surface);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--ds-state);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.btn--filled {
  background: var(--ds-primary);
  color: var(--ds-on-primary);
}
.btn--filled:hover {
  background: color-mix(in oklab, var(--ds-primary) 92%, white);
}

.btn--outlined {
  border-color: var(--ds-outline);
}

.btn--text {
  padding-inline: 0.5rem;
  height: auto;
}
.btn--text:hover {
  background: transparent;
  text-decoration: underline;
  color: var(--ds-primary);
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.field {
  display: grid;
  gap: 6px;
  color: var(--ds-on-surface);
}
.field label {
  font-size: 0.85rem;
  color: var(--ds-muted);
}
.field .control {
  position: relative;
  display: grid;
  align-items: center;
}
.field .control input, .field .control textarea {
  width: 100%;
  border-radius: var(--ds-radius-sm);
  border: 1px solid var(--ds-outline);
  padding: 0.65rem 0.8rem;
  background: var(--ds-surface);
  color: var(--ds-on-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field .control input:focus, .field .control textarea:focus {
  border-color: var(--ds-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}
.field .control input::placeholder, .field .control textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}
.field .hint {
  font-size: 0.8rem;
  color: var(--ds-muted);
}
.field.error .hint {
  color: var(--ds-error);
}
.field.error input {
  border-color: var(--ds-error);
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.card {
  display: block;
  border-radius: var(--ds-radius-md, 12px);
  background: var(--ds-surface, #fff);
  color: var(--ds-on-surface, #1f2937);
  border: 1px solid var(--ds-outline, rgba(0, 0, 0, 0.08));
  padding: 16px;
  /* élévation 1 + fallback direct si tes tokens ne sont pas encore chargés */
  box-shadow: var(--ds-elev-1);
  box-shadow: var(--ds-elev-1, 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06));
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  box-shadow: var(--ds-elev-2);
  box-shadow: var(--ds-elev-2, 0 6px 12px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08));
}

.card-title {
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.25;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* variantes utiles */
.card--outlined {
  box-shadow: none !important;
  border: 1px solid var(--ds-outline, rgba(0, 0, 0, 0.12));
}

.card--elevated {
  box-shadow: var(--ds-elev-3);
  box-shadow: var(--ds-elev-3, 0 10px 18px rgba(0, 0, 0, 0.14), 0 6px 10px rgba(0, 0, 0, 0.1));
}

.switch {
  --h: 20px;
  --w: 34px;
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0.5rem;
  align-items: center;
  user-select: none;
}
.switch input {
  display: none;
}
.switch .track {
  width: var(--w);
  height: var(--h);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  transition: background 0.15s;
}
.switch .thumb {
  width: calc(var(--h) - 4px);
  height: calc(var(--h) - 4px);
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: var(--ds-elev-1);
  transition: transform 0.15s ease, background 0.15s ease;
}
.switch input:checked + .track {
  background: color-mix(in oklab, var(--ds-primary) 55%, white);
}
.switch input:checked + .track .thumb {
  background: var(--ds-primary);
  transform: translateX(14px);
}

.menu-surface {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-outline);
  border-radius: var(--ds-radius-sm);
  box-shadow: var(--ds-elev-3);
  padding: 6px 0;
  margin-top: 6px;
  display: none;
  z-index: 2000;
}
.menu-surface .item {
  padding: 8px 12px;
  cursor: pointer;
}
.menu-surface .item:hover {
  background: var(--ds-state);
}

.menu-anchor {
  position: relative;
}

.menu-open > .menu-surface {
  display: block;
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
dialog.md-dialog {
  border: none;
  border-radius: var(--ds-radius-md);
  padding: 0;
  width: min(92vw, 560px);
  background: var(--ds-surface);
  color: var(--ds-on-surface);
  box-shadow: var(--ds-elev-3);
}
dialog.md-dialog .md-dialog__heading {
  font-weight: 600;
  padding: 16px 20px 0;
}
dialog.md-dialog .md-dialog__body {
  padding: 12px 20px 20px;
  line-height: 1.6;
}
dialog.md-dialog .md-dialog__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 16px 16px;
}
dialog.md-dialog:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

dialog.md-dialog::backdrop {
  background: rgba(0, 0, 0, 0.32);
}

@media (max-width: 520px) {
  dialog.md-dialog {
    width: 92vw;
  }
}
/* Ripple : que ce soit .btn OU [data-ripple], on force le conteneur */
.btn, [data-ripple] {
  position: relative;
  overflow: hidden; /* indispensable pour éviter l’agrandissement du parent */
}

/* Fallback cross-browser pour <dialog> (si showModal indispo) */
dialog[open] {
  position: fixed; /* hors flux -> ne pousse rien */
  inset: 0; /* centré */
  margin: auto;
  max-width: min(92vw, 560px);
  border: none;
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  color: var(--ds-on-surface);
  box-shadow: var(--ds-elev-3);
}

dialog[open]::backdrop {
  background: rgba(0, 0, 0, 0.32);
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.tabs .tablist {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--ds-outline);
}
.tabs [role=tab] {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 10px 14px;
  border-radius: var(--ds-radius-sm) var(--ds-radius-sm) 0 0;
  cursor: pointer;
  color: var(--ds-on-surface);
  position: relative;
}
.tabs [role=tab][aria-selected=true] {
  color: var(--ds-primary);
  box-shadow: inset 0 -2px 0 var(--ds-primary);
}
.tabs .panels {
  padding: 12px 0;
}
.tabs [role=tabpanel] {
  display: none;
}
.tabs [role=tabpanel].is-active {
  display: block;
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.snackbar-host {
  position: fixed;
  inset: auto 0 18px 0;
  display: grid;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  z-index: 3000;
}

.snackbar {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #222;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: var(--ds-elev-2);
  transform: translateY(8px);
  opacity: 0;
  animation: sb-in 0.18s ease-out forwards;
}

.snackbar__action {
  background: transparent;
  border: 0;
  color: var(--ds-primary);
  cursor: pointer;
}

@keyframes sb-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Tooltip simple via data-tip */
[data-tip] {
  position: relative;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 8px);
  white-space: nowrap;
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 4000; /* passe au-dessus des voisins */
}

[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 4px);
}

/* IMPORTANT :
   Si l’élément a aussi un ripple, on laisse dépasser le tooltip
   tout en “clipsant” le ripple au rayon du bouton. */
.btn[data-tip],
[data-ripple][data-tip] {
  overflow: visible; /* pour le tooltip */
  clip-path: inset(0 round var(--ds-radius-sm, 8px)); /* le ripple reste confiné */
}

/* Option WRAPPER (si un parent a overflow:hidden) :
   <span class="tip" data-tip="..."><button class="btn" data-ripple>…</button></span>
   —> le tooltip est porté par le wrapper, le ripple reste confiné dans le bouton. */
.tip[data-tip] {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.tip[data-tip] .btn {
  overflow: hidden;
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.check, .radio {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0.55rem;
  align-items: center;
  user-select: none;
}
.check input, .radio input {
  appearance: none;
  width: 0;
  height: 0;
  position: absolute;
  pointer-events: none;
}
.check .box, .check .dot, .radio .box, .radio .dot {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ds-outline);
  border-radius: 4px;
  background: var(--ds-surface);
  display: grid;
  place-content: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.check .dot, .radio .dot {
  border-radius: 50%;
}
.check .mark, .radio .mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  transform: scale(0);
  background: var(--ds-primary);
  transition: transform 0.12s ease;
}
.check .dot .mark, .radio .dot .mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.check input:checked + .box, .check input:checked + .dot, .radio input:checked + .box, .radio input:checked + .dot {
  border-color: var(--ds-primary);
  background: color-mix(in oklab, var(--ds-primary) 18%, white);
}
.check input:checked + .box .mark, .check input:checked + .dot .mark, .radio input:checked + .box .mark, .radio input:checked + .dot .mark {
  transform: scale(1);
}

.check:focus-within .box, .radio:focus-within .dot {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 5000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 28px;
  background: var(--ds-primary, #0ea5e9);
  color: var(--ds-on-primary, #fff);
  box-shadow: var(--ds-elev-3, 0 10px 18px rgba(0, 0, 0, 0.14), 0 6px 10px rgba(0, 0, 0, 0.1));
  cursor: pointer;
  /* pour le ripple (ton système l’exige sur [data-ripple]) */
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.fab:hover {
  box-shadow: var(--ds-elev-4, 0 14px 24px rgba(0, 0, 0, 0.16), 0 8px 12px rgba(0, 0, 0, 0.12));
}

.fab--sm {
  height: 40px;
  border-radius: 20px;
  padding: 0 14px;
}

.fab__icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
}

/* état caché utilisable par le JS */
.fab--hidden {
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  pointer-events: none;
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ds-outline);
  background: var(--ds-surface);
  color: var(--ds-on-surface);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.chip:hover {
  background: var(--ds-state);
}

.chip[data-selected=true] {
  border-color: var(--ds-primary);
  background: color-mix(in oklab, var(--ds-primary) 18%, white);
  color: var(--ds-primary);
}

.chip__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ccc;
}

.chip__remove {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.badge {
  position: relative;
  display: inline-block;
}

.badge__dot, .badge__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--ds-primary);
  color: var(--ds-on-primary);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  box-shadow: var(--ds-elev-2);
}

.badge__dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  padding: 0;
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
/* Linéaire */
.progress {
  --value: 0; /* 0..100 */
  height: 4px;
  width: 100%;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress__bar {
  width: calc(var(--value) * 1%);
  height: 100%;
  background: var(--ds-primary);
  transition: width 0.2s ease;
}

.progress[aria-busy=true] .progress__bar {
  position: absolute;
  left: 0;
  width: 40%;
  animation: indet 1.2s ease-in-out infinite;
}

@keyframes indet {
  0% {
    left: -40%;
  }
  50% {
    left: 60%;
  }
  100% {
    left: 100%;
  }
}
/* Circulaire (spinner) */
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--ds-primary);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.slider {
  /* tailles paramétrables */
  --track-h: 4px;
  --thumb: 18px;
  --track-bg: rgba(0,0,0,.12);
  display: grid;
  gap: 8px;
}

.slider input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  height: var(--thumb);
  margin: 0;
  padding: 0;
  cursor: pointer;
}

/* ===== WebKit / Chromium / Edge ===== */
.slider input[type=range]::-webkit-slider-runnable-track {
  height: var(--track-h);
  background: var(--track-bg);
  border-radius: 999px;
}

.slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  border-radius: 50%;
  background: var(--ds-primary);
  border: 2px solid #fff;
  box-shadow: var(--ds-elev-2, 0 2px 6px rgba(0, 0, 0, 0.2));
  /* centrage : (rail - pouce)/2 */
  margin-top: calc((var(--track-h) - var(--thumb)) / 2);
}

/* ===== Firefox ===== */
.slider input[type=range]::-moz-range-track {
  height: var(--track-h);
  background: var(--track-bg);
  border-radius: 999px;
}

.slider input[type=range]::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  border-radius: 50%;
  background: var(--ds-primary);
  border: 2px solid #fff;
  box-shadow: var(--ds-elev-2, 0 2px 6px rgba(0, 0, 0, 0.2));
}

/* valeur à côté */
.slider__value {
  font-size: 0.9rem;
  color: var(--ds-muted, #6b7280);
}

/* focus ring optionnel */
.slider input[type=range]:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 0.25rem rgba(14, 165, 233, 0.4));
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
body.no-scroll {
  overflow: hidden;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2100;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 320px);
  background: var(--ds-surface);
  color: var(--ds-on-surface);
  box-shadow: var(--ds-elev-3);
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  z-index: 2200;
  display: flex;
  flex-direction: column;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__header {
  padding: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--ds-outline);
}

.drawer__content {
  padding: 12px 8px;
  overflow: auto;
}

.drawer__item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.drawer__item:hover {
  background: var(--ds-state);
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.expansion {
  border: 1px solid var(--ds-outline);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  overflow: hidden;
}

.expansion + .expansion {
  margin-top: 10px;
}

.expansion > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  position: relative;
}

.expansion > summary::-webkit-details-marker {
  display: none;
}

.expansion > summary::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transition: transform 0.2s ease;
}

.expansion[open] > summary::after {
  transform: translateY(-50%) rotate(0);
}

.expansion__body {
  padding: 10px 14px 14px;
  line-height: 1.6;
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.select {
  position: relative;
  display: inline-grid;
  gap: 6px;
  min-width: 220px;
}

.select label {
  font-size: 0.85rem;
  color: var(--ds-muted);
}

.select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--ds-outline);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-surface);
  cursor: pointer;
}

.select__trigger:hover {
  background: var(--ds-state);
}

.select__icon {
  margin-left: 10px;
}

.select__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--ds-surface);
  border: 1px solid var(--ds-outline);
  border-radius: 8px;
  box-shadow: var(--ds-elev-3);
  padding: 6px 0;
  display: none;
  z-index: 2100;
}

.select.is-open .select__menu {
  display: block;
}

.select__option {
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.select__option:hover {
  background: var(--ds-state);
}

.select__option[aria-selected=true] {
  color: var(--ds-primary);
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--ds-radius-md);
  border: 1px solid var(--ds-outline);
  background: color-mix(in oklab, var(--ds-primary) 6%, white);
}

.alert__icon {
  font-weight: 700;
}

.alert__title {
  font-weight: 600;
  margin-bottom: 4px;
}

.alert__close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.alert--success {
  border-color: rgba(34, 197, 94, 0.3333333333);
  background: rgba(34, 197, 94, 0.0823529412);
}

.alert--warning {
  border-color: rgba(245, 158, 11, 0.3333333333);
  background: rgba(245, 158, 11, 0.0823529412);
}

.alert--error {
  border-color: rgba(239, 68, 68, 0.3333333333);
  background: rgba(239, 68, 68, 0.0823529412);
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.pagination {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--ds-outline);
  border-radius: 999px;
  padding: 4px;
}

.page, .page-nav {
  appearance: none;
  background: transparent;
  border: 0;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  padding: 0 10px;
  color: var(--ds-on-surface);
}

.page:hover, .page-nav:hover {
  background: var(--ds-state);
}

.page[aria-current=page] {
  background: color-mix(in oklab, var(--ds-primary) 18%, white);
  color: var(--ds-primary);
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--ds-muted, #666);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .sep {
  opacity: 0.6;
}

.breadcrumbs .current {
  color: var(--ds-on-surface, #111);
  font-weight: 600;
}

.divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 16px 0;
  border: 0;
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.list {
  display: grid;
  gap: 4px;
  background: var(--ds-surface, #fff);
  border-radius: var(--ds-radius-md, 12px);
  box-shadow: var(--ds-elev-1, 0 1px 2px rgba(0, 0, 0, 0.08));
  padding: 4px;
}

.list__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.list__item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.list__icon {
  width: 24px;
  height: 24px;
  opacity: 0.72;
}

.list__title {
  font-weight: 500;
  color: var(--ds-on-surface, #111);
}

.list__meta {
  font-size: 0.85rem;
  color: var(--ds-muted, #666);
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--ds-radius-md, 12px);
  box-shadow: var(--ds-elev-1, 0 1px 2px rgba(0, 0, 0, 0.08));
  background: var(--ds-surface, #fff);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.data-table thead th {
  font-weight: 600;
  color: var(--ds-muted, #666);
  position: sticky;
  top: 0;
  background: var(--ds-surface, #fff);
  z-index: 1;
}

.data-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.03);
}

.data-table th[data-sort] {
  cursor: pointer;
  user-select: none;
}

.data-table th[data-sort] .sort {
  margin-left: 6px;
  opacity: 0.5;
  font-size: 0.9em;
}

.data-table th[aria-sort=asc] .sort::after {
  content: "▲";
}

.data-table th[aria-sort=desc] .sort::after {
  content: "▼";
}

.data-table th[aria-sort] .sort {
  opacity: 1;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #e9ecef;
  border-radius: 8px;
  min-height: 12px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-100%);
  animation: skel 1.2s infinite;
}

@keyframes skel {
  to {
    transform: translateX(100%);
  }
}
.skeleton--text {
  height: 14px;
}

.skeleton--avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton--rect {
  height: 120px;
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 8px 0 16px;
  background: color-mix(in srgb, var(--ds-primary, #0ea5e9) 12%, white);
  color: #0b3a4a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--ds-radius-md, 12px);
}

.banner__msg {
  line-height: 1.4;
}

.banner__close {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  opacity: 0.7;
}

.banner__close:hover {
  opacity: 1;
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.appbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  display: grid;
  align-items: center;
  background: var(--ds-surface, #fff);
  color: var(--ds-on-surface, #111);
  padding: 0 clamp(12px, 4vw, 20px);
  transition: box-shadow 0.18s ease, backdrop-filter 0.18s ease;
}

.appbar__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.appbar__title {
  font-weight: 600;
  font-size: 1.05rem;
}

.appbar__actions {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
}

.appbar.is-scrolled {
  box-shadow: var(--ds-elev-2, 0 4px 12px rgba(0, 0, 0, 0.08));
  backdrop-filter: saturate(1.2) blur(6px);
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--ds-surface, #fff);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav__row {
  display: grid;
  grid-auto-flow: column;
  justify-content: space-around;
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 10px;
}

.bottom-nav__item {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 64px;
  font-size: 0.8rem;
  color: var(--ds-muted, #666);
}

.bottom-nav__item[aria-current=page] {
  color: var(--ds-primary, #0ea5e9);
  font-weight: 600;
}

.bottom-nav__icon {
  width: 24px;
  height: 24px;
}

/* ======================================================================
   assets/scss/app.scss
   ====================================================================== */
dialog.bottom-sheet {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 720px;
  inset: auto 0 0 0;
  background: var(--ds-surface, #fff);
  color: var(--ds-on-surface, #111);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--ds-elev-3, 0 18px 48px rgba(0, 0, 0, 0.24));
  transform: translateY(100%);
  transition: transform 0.24s ease;
}

dialog.bottom-sheet[open] {
  transform: translateY(0);
}

dialog.bottom-sheet::backdrop {
  background: rgba(0, 0, 0, 0.36);
}

.bottom-sheet__handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  margin: 8px auto 6px;
}

.bottom-sheet__body {
  padding: 10px 16px 16px;
}

.dropzone {
  border: 2px dashed rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: color-mix(in srgb, var(--ds-primary, #0ea5e9) 4%, #fff);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone.is-dragover {
  border-color: var(--ds-primary, #0ea5e9);
  background: color-mix(in srgb, var(--ds-primary, #0ea5e9) 10%, #fff);
}

.dropzone__hint {
  color: var(--ds-muted, #666);
  font-size: 0.95rem;
}

.dropzone__list {
  margin-top: 10px;
  text-align: left;
  font-size: 0.9rem;
}

.dropzone__list li {
  margin: 4px 0;
}

.toast-host {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0));
  display: grid;
  gap: 8px;
  z-index: 2000;
}

.toast {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  box-shadow: var(--ds-elev-3, 0 18px 48px rgba(0, 0, 0, 0.24));
  animation: toast-in 0.18s ease-out;
}

.toast__action {
  background: none;
  border: 0;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
}

.toast--info {
  background: #1e88e5;
}

.toast--success {
  background: #2e7d32;
}

.toast--warn {
  background: #ed6c02;
}

.toast--error {
  background: #d32f2f;
}

@keyframes toast-in {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.popover-anchor {
  position: relative;
  display: inline-block;
}

.popover {
  position: fixed;
  min-width: 200px;
  max-width: min(92vw, 420px);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ds-surface, #fff);
  color: var(--ds-on-surface, #111);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--ds-elev-3, 0 18px 48px rgba(0, 0, 0, 0.24));
  transform-origin: top left;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
  z-index: 1500;
}

.popover.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s;
}

.popover__item {
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.popover__item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.textarea {
  display: grid;
  gap: 6px;
}

.textarea textarea {
  width: 100%;
  min-height: 76px;
  resize: none;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  font: inherit;
  line-height: 1.5;
}

.textarea textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--ds-primary, #0ea5e9) 26%, transparent);
}

.textarea__count {
  font-size: 0.85rem;
  color: var(--ds-muted, #666);
  text-align: right;
}

.textarea--error textarea {
  border-color: #d32f2f;
}

.textarea--error .textarea__count {
  color: #d32f2f;
}

.toggle {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.06);
  padding: 6px;
  border-radius: 12px;
}

.toggle .btn {
  border-radius: 8px;
  padding: 6px 12px;
  background: transparent;
}

.toggle .btn[aria-pressed=true] {
  background: var(--ds-primary, #0ea5e9);
  color: var(--ds-on-primary, #fff);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.avatar--lg {
  width: 48px;
  height: 48px;
}

.avatar__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.72);
  display: none;
  place-items: center;
}

.loading-overlay.is-open {
  display: grid;
}

.loading-overlay__spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--ds-primary, #0ea5e9);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form-field {
  display: grid;
  gap: 6px;
}

.form-field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  font: inherit;
  background: #fff;
}

.form-field--ok input {
  border-color: #2e7d32;
}

.form-field--error input {
  border-color: #d32f2f;
}

.form-msg {
  font-size: 0.85rem;
  color: var(--ds-muted, #666);
}

.form-field--ok .form-msg {
  color: #2e7d32;
}

.form-field--error .form-msg {
  color: #d32f2f;
}

.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px;
  border-radius: 16px;
  background: var(--ds-surface, #fff);
  color: var(--ds-on-surface, #111);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--ds-elev-1, 0 6px 16px rgba(0, 0, 0, 0.12));
}

.empty__icon {
  font-size: 42px;
  line-height: 1;
}

.empty__title {
  font-weight: 700;
  font-size: 1.1rem;
}

.empty__msg {
  color: var(--ds-muted, #666);
}

/* Thème clair par défaut via variables déjà utilisées */
:root {
  --ds-surface: #fff;
  --ds-on-surface: #111;
  --ds-muted: #666;
}

/* Thème sombre */
:root[data-theme=dark] {
  --ds-surface: #121212;
  --ds-on-surface: #f5f7fa;
  --ds-muted: #a9b0b8;
  --ds-elev-1: 0 1px 2px rgba(0,0,0,.5);
  --ds-elev-2: 0 4px 12px rgba(0,0,0,.6);
  --ds-elev-3: 0 12px 32px rgba(0,0,0,.65);
  color-scheme: dark;
  background: #0d0f12;
}

.stepper {
  display: grid;
  gap: 16px;
}

.stepper__track {
  display: grid;
  gap: 14px;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
}

.stepper__item {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  color: var(--ds-muted, #666);
}

.stepper__bullet {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e7e7e9;
  color: #333;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.stepper__label {
  font-size: 0.9rem;
}

.stepper__item--active .stepper__bullet {
  background: var(--ds-primary, #0ea5e9);
  color: var(--ds-on-primary, #fff);
}

.stepper__item--done .stepper__bullet {
  background: #17c964;
  color: #fff;
}

.stepper__controls {
  display: flex;
  gap: 8px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.1333333333);
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 0.35s ease;
}

.carousel__slide {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.carousel__slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.carousel__nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.carousel__btn {
  pointer-events: auto;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  margin: 0 8px;
}

.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5333333333);
  border: 1px solid rgba(0, 0, 0, 0.2666666667);
  cursor: pointer;
}

.carousel__dot[aria-current=true] {
  background: #fff;
}

.progress-circular {
  --size: 64px;
  --thickness: 8px;
  --value: 0; /* 0..100 */
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(var(--ds-primary, #0ea5e9) calc(var(--value) * 1%), #e7e7e9 0);
  mask: radial-gradient(farthest-side, transparent calc(50% - var(--thickness)), #000 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(50% - var(--thickness)), #000 0);
  display: grid;
  place-items: center;
  color: var(--ds-on-surface, #111);
}

.progress-circular__label {
  font-size: 0.8rem;
}

/* Base */
.rating {
  --size: 26px;
  --gap: 8px;
  --active: var(--ds-primary, #0ea5e9);
  --inactive: #c9c9ce;
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
}

.rating__value {
  font-size: 0.9rem;
  color: var(--ds-muted, #666);
  min-width: 2.2em;
  text-align: right;
}

.rating--stars {
  gap: var(--gap);
}

.rating--stars .rating__star {
  width: var(--size);
  height: var(--size);
  color: var(--inactive);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, color 0.12s ease;
  outline: none;
}

.rating--stars .rating__star svg {
  width: calc(var(--size) + 2px);
  height: calc(var(--size) + 2px);
  display: block;
}

.rating--stars .rating__star[data-active=true] {
  color: var(--active);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.05));
}

.rating--stars .rating__star:is(:hover, :focus-visible) {
  transform: scale(1.12);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ds-elev-1, 0 6px 16px rgba(0, 0, 0, 0.06));
}

.table thead th {
  text-align: left;
  padding: 12px;
  background: #f7f7f8;
  position: sticky;
  top: 0;
  z-index: 1;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.table td {
  padding: 12px;
  border-top: 1px solid #f0f0f2;
}

.table tbody tr:nth-child(even) {
  background: #fafafb;
}

th[data-sort] {
  cursor: pointer;
  user-select: none;
}

th[data-sort]::after {
  content: attr(data-order);
  margin-left: 6px;
  font-size: 0.8rem;
  color: #9aa0a6;
}

/* Date Picker (single & range) */
[data-date-picker] {
  position: relative;
  display: inline-block;
  font: inherit;
}

/* Champ déclencheur */
[data-date-picker] .dp__input {
  width: 220px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  line-height: 40px;
  cursor: pointer;
}

[data-date-picker] .dp__input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
  border-color: #93c5fd;
}

/* Popover (masqué par défaut) */
[data-date-picker] .dp__popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1500;
  width: 288px;
  background: var(--ds-surface, #fff);
  color: var(--ds-on-surface, #111);
  border-radius: 12px;
  box-shadow: var(--ds-elev-3, 0 14px 38px rgba(0, 0, 0, 0.18));
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
}

/* Ouvert */
[data-date-picker].is-open .dp__popover {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

/* Header */
.dp__header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 8px;
}

.dp__month {
  font-weight: 600;
}

.dp__nav {
  display: flex;
  gap: 6px;
}

.dp__btn {
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.dp__btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Jours de semaine */
.dp__weekgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 4px 6px;
  color: var(--ds-muted, #6b7280);
  font-size: 0.85rem;
}

.dp__dow {
  text-align: center;
}

/* Grille jours */
.dp__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 4px 6px;
}

.dp__cell {
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.dp__cell:hover {
  background: rgba(0, 0, 0, 0.06);
}

.dp__cell:focus-visible {
  outline: 2px solid rgba(14, 165, 233, 0.45);
  outline-offset: 2px;
}

.dp__cell.is-outside {
  color: var(--ds-muted, #94a3b8);
}

.dp__cell.is-disabled {
  color: var(--ds-muted, #94a3b8);
  opacity: 0.6;
  cursor: not-allowed;
}

.dp__cell.is-today {
  box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.35);
  border-radius: 8px;
}

.dp__cell.is-selected {
  background: var(--ds-primary, #0ea5e9);
  color: var(--ds-on-primary, #fff);
}

.dp__cell.is-in-range {
  background: rgba(14, 165, 233, 0.12);
}

.dp__cell.is-range-edge {
  background: var(--ds-primary, #0ea5e9);
  color: var(--ds-on-primary, #fff);
}

/* Footer */
.dp__footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 4px 0;
}

.dp__action {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  font: inherit;
}

.dp__action:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Time Picker — 100% data-attributes */
[data-time-picker] {
  position: relative;
  display: inline-block;
}

/* Champ */
[data-time-picker] .tp__input {
  width: 140px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  line-height: 40px;
  cursor: pointer;
}

[data-time-picker] .tp__input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
  border-color: #93c5fd;
}

/* Menu (popover) — masqué par défaut */
[data-time-picker] .tp__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1600;
  background: var(--ds-surface, #fff);
  color: var(--ds-on-surface, #111);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-columns: 1fr 16px 1fr; /* heures | : | minutes */
  gap: 8px;
  padding: 8px;
  /* caché par défaut mais sans casser la mise en page du container */
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
}

/* Ouvert */
[data-time-picker].is-open .tp__menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

[data-time-picker] .tp__col {
  max-height: 220px;
  overflow: auto;
  padding: 4px;
  width: 80px;
}

[data-time-picker] .tp__sep {
  display: grid;
  place-items: center;
  width: 16px;
  font-weight: 700;
  color: var(--ds-muted, #6b7280);
}

[data-time-picker] .tp__opt {
  display: grid;
  place-items: center;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

[data-time-picker] .tp__opt:hover,
[data-time-picker] .tp__opt.is-active {
  background: rgba(0, 0, 0, 0.06);
}

.ac {
  position: relative;
  display: inline-block;
  width: 280px;
}

.ac__input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.ac__input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
  border-color: #93c5fd;
}

.ac__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1600;
  background: var(--ds-surface, #fff);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
  padding: 6px;
  display: none;
  max-height: 260px;
  overflow: auto;
}

.ac.is-open .ac__menu {
  display: block;
}

.ac__option {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: block;
}

.ac__option[aria-selected=true], .ac__option:hover {
  background: rgba(0, 0, 0, 0.06);
}

.ac__empty {
  padding: 10px;
  color: var(--ds-muted, #6b7280);
}

.ac__mark mark {
  background: #fde68a;
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

.tag-input {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 44px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  width: 100%;
  max-width: 520px;
}

.tag-input:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0f172a;
  font-size: 0.92rem;
}

.tag-chip__remove {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.7;
}

.tag-chip__remove:hover {
  opacity: 1;
}

.tag-input__field {
  flex: 1 1 120px;
  min-width: 120px;
  border: 0;
  outline: none;
  padding: 6px;
  font: inherit;
  background: transparent;
}

.fab-dial {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
}

.fab-dial__actions {
  display: grid;
  gap: 10px;
  position: absolute;
  right: 0;
  bottom: 56px; /* empilé au-dessus du FAB principal */
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.fab-dial.is-open .fab-dial__actions {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* réutilise .fab existant */
.fab--mini {
  height: 40px;
  border-radius: 20px;
  padding: 0 12px;
}

.nav-rail {
  position: sticky;
  top: 0;
  width: 88px;
  min-height: 100vh;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  gap: 6px;
}

.rail-item {
  width: 72px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  grid-template-rows: 24px auto;
  place-items: center;
  color: #334155;
  text-decoration: none;
}

.rail-item:hover {
  background: rgba(14, 165, 233, 0.1);
}

.rail-item.is-active {
  background: rgba(14, 165, 233, 0.18);
  color: #0ea5e9;
}

.rail-item .icon {
  width: 24px;
  height: 24px;
}

.rail-item .label {
  font-size: 0.72rem;
}

.color-picker {
  display: grid;
  grid-template-columns: repeat(6, 28px);
  gap: 10px;
}

.color-picker .swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  background: var(--c, #000);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.color-picker .swatch.is-selected {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

.tree {
  --indent: 16px;
  display: grid;
  gap: 4px;
}

.tree__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: default;
}

.tree__item:hover {
  background: rgba(14, 165, 233, 0.08);
}

.tree__toggle {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

.tree__children {
  display: grid;
  gap: 4px;
  margin-left: var(--indent);
}

.tree__children[hidden] {
  display: none;
}

.tree__label {
  flex: 1;
}

.range-dual {
  width: 320px;
  position: relative;
}

.range-dual__track {
  position: relative;
  height: 4px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  margin: 10px 0 18px;
}

.range-dual__fill {
  position: absolute;
  height: 100%;
  background: var(--ds-primary);
  border-radius: 999px;
}

.range-dual input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  background: none;
  pointer-events: none; /* on n’attrape que le pouce */
}

.range-dual input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ds-primary);
  border: 2px solid #fff;
  box-shadow: var(--ds-elev-2);
}

.range-dual input[type=range]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ds-primary);
  border: 2px solid #fff;
  box-shadow: var(--ds-elev-2);
}

.range-dual__values {
  display: flex;
  justify-content: space-between;
  color: #475569;
  font-size: 0.92rem;
}

.table-select {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--ds-elev-1);
  border-radius: 12px;
  overflow: hidden;
}

.table-select thead th {
  text-align: left;
  font-weight: 600;
  color: #334155;
  padding: 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.table-select tbody td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.table-select tbody tr:hover {
  background: #f8fafc;
}

.bulkbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 10px 0;
  border: 1px dashed #93c5fd;
  border-radius: 10px;
  background: #eff6ff;
  color: #0f172a;
}

.bulkbar.is-visible {
  display: flex;
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 1500;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.appbar__title {
  font-weight: 600;
  color: #0f172a;
}

.appbar__spacer {
  flex: 1;
}

.appbar__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.appbar--searching .appbar__title,
.appbar--searching [data-appbar-search-open] {
  display: none;
}

.appbar__search {
  display: none;
  flex: 1;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 6px 10px;
}

.appbar--searching .appbar__search {
  display: flex;
}

.appbar__search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font: inherit;
}

/* ======================================================================
   assets/scss/builder.scss
   ====================================================================== */
.builder {
  max-width: 1200px;
  margin: 1.75rem auto 3rem;
  padding: 0 1rem;
}

.builder__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 12px;
  z-index: 30;
}

.builder__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.builder__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn-secondary:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.builder__layout {
  display: grid;
  grid-template-columns: 250px 1fr 320px;
  gap: 16px;
  margin-top: 14px;
}

/* Panels */
.builder__palette,
.builder__props,
.builder__canvas {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.builder__palette,
.builder__props {
  padding: 14px;
}

.builder__canvas {
  padding: 14px;
}

/* Titles inside panels */
.builder__palette h2,
.builder__props h2 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Palette buttons */
.builder__palette .builderAdd {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgb(226, 232, 240);
  background: rgba(248, 250, 252, 0.95);
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
  margin-bottom: 10px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.15s ease;
}
.builder__palette .builderAdd:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}
.builder__palette .builderAdd:active {
  transform: translateY(0);
}

/* Canvas list */
#builderBlocks {
  display: grid;
  gap: 12px;
}

/* Block card */
.builder-block {
  border: 1px solid rgb(226, 232, 240);
  border-radius: 16px;
  padding: 12px 12px 10px;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.15s ease;
}
.builder-block:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.builder-block.is-selected {
  border-color: rgba(14, 165, 233, 0.75);
  box-shadow: 0 18px 45px rgba(14, 165, 233, 0.12);
}

.builder-block__title {
  font-weight: 950;
  color: #0f172a;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.builder-block__preview {
  margin-top: 6px;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.4;
}

.builder-block__actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.builder-block__actions button {
  width: 40px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgb(226, 232, 240);
  background: rgba(248, 250, 252, 0.95);
  cursor: pointer;
  font-weight: 950;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.builder-block__actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

/* Props */
#builderPropsEmpty {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  color: #475569;
  font-weight: 800;
}

.builder-field {
  margin-bottom: 12px;
}
.builder-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 950;
  color: #334155;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.builder-field input,
.builder-field select,
.builder-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgb(226, 232, 240);
  background: #fff;
  font-size: 0.95rem;
  outline: none;
}
.builder-field input:focus,
.builder-field select:focus,
.builder-field textarea:focus {
  border-color: rgba(14, 165, 233, 0.7);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}
.builder-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.builder-hint {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.18);
  color: #075985;
  font-weight: 850;
  font-size: 0.88rem;
}

#builderDelete {
  width: 100%;
  margin-top: 10px;
  border-radius: 14px;
  padding: 0.75rem 1rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .builder__layout {
    grid-template-columns: 240px 1fr;
    grid-template-areas: "top top" "palette canvas" "props props";
  }
  .builder__palette {
    grid-area: palette;
  }
  .builder__canvas {
    grid-area: canvas;
  }
  .builder__props {
    grid-area: props;
  }
}
@media (max-width: 780px) {
  .builder__layout {
    grid-template-columns: 1fr;
    grid-template-areas: "palette" "canvas" "props";
  }
  .builder__top {
    flex-direction: column;
    align-items: stretch;
  }
  .builder__actions {
    justify-content: flex-end;
  }
}
/* ===========================
   Thème / variables
   =========================== */
:root {
  --primary: #0ea5e9;
  --ds-primary: #0ea5e9;
  --ds-on-primary: #fff;
}

/* ===========================
   Global
   =========================== */
html,
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1100px 520px at 20% -10%, rgba(14, 165, 233, 0.16), transparent 55%), radial-gradient(900px 420px at 110% 10%, rgba(13, 110, 253, 0.12), transparent 55%), #f6f7fb;
  color: #111827;
}

h1, h2, h3 {
  color: #111827;
  font-family: "Libre Baskerville", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

/* ===========================
   Ripple générique
   =========================== */
.btn,
[data-ripple] {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: currentColor;
  opacity: 0.2;
  pointer-events: none;
  animation: ripple 0.45s ease-out forwards;
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}
/* ===========================
   Header
   =========================== */
.site-header {
  margin-bottom: 1.5rem;
}

.header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: linear-gradient(90deg, #0d6efd 0%, #0ea5e9 100%);
  padding: 1.2rem 1.5rem;
  box-sizing: border-box;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
}

.header-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.page-heading {
  margin: 1rem auto 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 850;
  transition: transform 0.12s ease, background 0.15s ease;
}
.header-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.header-btn--primary {
  background: #ffffff;
  color: #0d6efd;
}
.header-btn--primary:hover {
  background: rgba(255, 255, 255, 0.92);
}

.logout-form {
  margin: 0;
}

/* ===========================
   Modals
   =========================== */
.modal {
  display: none;
}

.modal--open {
  display: block;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}

.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 1.5rem;
  max-width: 420px;
  width: 92%;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.25);
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.85rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===========================
   Formulaires
   =========================== */
.form-group {
  margin-bottom: 0.9rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 850;
  color: #334155;
}
.form-group input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
}
.form-group input:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.65);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
}

.form-footer--right {
  justify-content: flex-end;
}

.link-forgot {
  font-size: 0.85rem;
}

/* ===========================
   Boutons (base unifiée)
   =========================== */
.btn-back,
.btn-primary,
.btn-secondary,
.btn-danger,
.header-btn {
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-back:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-danger:focus-visible,
.header-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18), 0 14px 30px rgba(15, 23, 42, 0.1);
}

/* back */
.btn-back {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.22);
  color: #0369a1;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.1);
}
.btn-back:hover {
  transform: translateY(-1px);
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.16);
}
.btn-back:active {
  transform: translateY(0);
}

/* primary */
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border-color: rgba(37, 99, 235, 0.18);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.28);
  filter: saturate(1.05);
}
.btn-primary:active {
  transform: translateY(0);
}

/* danger */
.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-color: rgba(185, 28, 28, 0.2);
  color: #fff;
  box-shadow: 0 16px 36px rgba(185, 28, 28, 0.18);
}
.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(185, 28, 28, 0.24);
  filter: saturate(1.05);
}
.btn-danger:active {
  transform: translateY(0);
}

.badge-warning {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.85rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #92400e;
  font-weight: 900;
  font-size: 0.86rem;
  box-shadow: 0 10px 26px rgba(251, 191, 36, 0.12);
}

/* ===========================
   Erreurs & alertes
   =========================== */
.form-error {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #ffe5e8;
  border: 1px solid #ffb3bf;
}
.form-error__text {
  margin: 0;
  font-size: 0.88rem;
  color: #8b1a2b;
  font-weight: 800;
}

.alert {
  margin: 0.75rem 1rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
}

.alert-error {
  background-color: #f8d7da;
  color: #842029;
}

/* ===========================
   Container
   =========================== */
.container {
  max-width: 980px;
  margin: 2.25rem auto 3rem;
  padding: 0 1rem;
}

/* ===========================
   Search bar (home)
   =========================== */
.article-search {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.65);
}

.article-search__input {
  width: min(620px, 92%);
  padding: 13px 46px 13px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  outline: none;
  background: #fff;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.article-search__input:focus {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.article-search__clear {
  margin-left: -44px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: #6b7280;
}
.article-search__clear:hover {
  background: rgba(17, 24, 39, 0.06);
  color: #111827;
}

/* ===========================
   CTA (home)
   =========================== */
.article-actions {
  margin-bottom: 1.75rem;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, rgb(255, 255, 255) 70%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.article-actions__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
}

.article-actions__text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #475569;
}

/* ===========================
   Home cards (IMPORTANT: seulement sur <a>)
   =========================== */
a.article-card {
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
a.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}
a.article-card:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.35);
  outline-offset: 3px;
}

.article-thumb {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f2f2f2;
  display: block;
}

.article-thumb--left {
  flex: 0 0 220px;
  height: 140px;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

a.article-card .article-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.article-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.article-meta {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #6b7280;
}

a.article-card .article-text {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #1f2937;
}

.article-readmore {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 900;
  font-size: 0.92rem;
  color: #0ea5e9;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  background: rgba(14, 165, 233, 0.08);
  transition: transform 0.12s ease, background 0.15s ease;
}
a.article-card:hover .article-readmore {
  transform: translateY(-1px);
  background: rgba(14, 165, 233, 0.14);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.article-author__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.35);
}

.article-author__name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #374151;
}
.article-author__name::before {
  content: "par ";
  font-weight: 500;
  color: #6b7280;
}

/* ===========================
   Page article (NEW template)
   =========================== */
.article-page {
  max-width: 980px;
  margin: 2.2rem auto 3rem;
  padding: 0 1rem;
}

/* topbar */
.article-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.article-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.article-topbar form {
  margin: 0;
}

/* hero */
.article-hero {
  margin: 14px 0 16px;
  padding: 18px 18px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: radial-gradient(900px 220px at 10% 0%, rgba(14, 165, 233, 0.16), transparent 60%), radial-gradient(800px 220px at 95% 20%, rgba(37, 99, 235, 0.12), transparent 60%), rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.article-hero__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  line-height: 1.15;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.article-hero__subtitle {
  margin: 10px 0 0;
  color: #475569;
  font-weight: 650;
  line-height: 1.5;
}

/* generic cards in article page */
.article-page .article-card {
  display: block;
  margin: 14px 0;
  padding: 16px 16px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.article-card--media {
  padding: 12px;
}

.article-card--content {
  padding: 18px 18px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.muted {
  color: #64748b;
  margin: 0;
  font-weight: 650;
}

/* article content */
.article-page .article-content {
  font-size: 1rem;
  line-height: 1.85;
  color: #0f172a;
}
.article-page .article-content h1, .article-page .article-content h2, .article-page .article-content h3 {
  margin-top: 1.1em;
  margin-bottom: 0.35em;
}
.article-page .article-content a {
  color: #0ea5e9;
  font-weight: 800;
}

/* Blocs générés par le builder (BlockRenderer) */
.article-h1, .article-h2, .article-h3 {
  letter-spacing: 0.01em;
}

.article-h1 {
  font-size: 1.9rem;
  font-weight: 950;
}

.article-h2 {
  font-size: 1.55rem;
  font-weight: 950;
}

.article-h3 {
  font-size: 1.25rem;
  font-weight: 950;
}

.article-page .article-text {
  margin: 0.9rem 0;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.85;
}

.article-figure {
  margin: 1.2rem 0;
}

.article-img {
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  display: block;
}

/* vidéo */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #000;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  margin: 1.2rem 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.article-video-error {
  margin: 1rem 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-weight: 900;
}

/* divider */
.article-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.18), transparent);
  margin: 1.6rem 0;
}

/* comments list */
.comments-list {
  display: flex;
  flex-direction: column;
}

.comment {
  padding: 14px 0;
}
.comment + .comment {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.comment-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #1f2937;
}

.comment-meta {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #64748b;
}
.comment-meta strong {
  font-weight: 950;
  color: #0f172a;
}

/* textarea (article comment form) */
.article-page .form-group textarea {
  width: 100%;
  min-height: 130px;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgb(226, 232, 240);
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
  font-family: inherit;
  background: #fff;
}
.article-page .form-group textarea:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.65);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

/* login hint */
.comment-login-hint {
  margin: 0;
  font-size: 0.95rem;
  padding: 1rem 1.1rem;
  background: rgba(14, 165, 233, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ===========================
   Page création / édition
   =========================== */
.article-new {
  max-width: 760px;
  margin: 2.5rem auto 3rem;
  padding: 2rem 1.85rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.1);
}

.article-new h2 {
  margin: 0 0 1.5rem;
  font-size: 1.6rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  color: #0f172a;
}

.article-new__form .form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.article-new__form input,
.article-new__form textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgb(226, 232, 240);
  font-size: 0.95rem;
  line-height: 1.4;
  font-family: inherit;
  background-color: #ffffff;
}
.article-new__form input:focus,
.article-new__form textarea:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.65);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.article-new__form textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 720px) {
  a.article-card {
    flex-direction: column;
  }
  .article-thumb--left {
    width: 100%;
    height: 180px;
    flex: 0 0 auto;
  }
}
@media (max-width: 600px) {
  .container {
    margin-top: 1.5rem;
    padding: 0 0.75rem;
  }
  .article-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .article-topbar__actions {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 520px) {
  .article-topbar__actions .btn-back,
  .article-topbar__actions .btn-primary,
  .article-topbar__actions .btn-danger,
  .article-topbar .btn-back,
  .badge-warning {
    width: 100%;
    justify-content: center;
  }
  .comment-login-hint {
    flex-direction: column;
    align-items: stretch;
  }
  .comment-login-hint .header-btn {
    width: 100%;
    justify-content: center;
  }
}
/* Centre le titre dans le bandeau (horizontal + vertical) */
.header-banner {
  position: relative;
  justify-content: center; /* centre le contenu */
  text-align: center;
}

.header-title {
  margin: 0;
}

/* Si tu gardes quand même un bloc .header-actions dans le HTML, on le met à droite sans casser le centrage */
.header-actions {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
