@charset "UTF-8";
/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
/* 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);
}

/* Core components */
/* 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;
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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);
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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));
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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);
}

.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;
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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);
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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);
}

.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);
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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;
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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;
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
/* 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);
  }
}
.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;
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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));
}

/* 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);
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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);
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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;
}

.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;
}

.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;
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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);
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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;
}

.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;
}

.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);
}

.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;
}

/* Overlays & popups */
/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
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);
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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;
  }
}
.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;
  }
}
/* 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;
}

.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);
}

.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);
  }
}
/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
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);
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
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;
}

/* Navigation */
/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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);
}

.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;
}

.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;
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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;
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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;
}

.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;
}

/* Advanced inputs */
/* 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;
}

.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;
}

.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;
}

/* Media & interactive */
.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;
}

/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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;
}

.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;
}

/* Actions */
/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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;
}

.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;
}

.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;
}

/* Misc */
/* ==========================================================================
   0) DESIGN SYSTEM IMPORTS
   ========================================================================== */
.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;
}

.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;
}

.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;
}

/* ==========================================================================
   1) THEME (Turquoise / White / Gray)
   ========================================================================== */
:root {
  --primary: #14b8a6;
  --ds-primary: #14b8a6;
  --ds-on-primary: #fff;
  --primary-600: #0d9488;
  --primary-700: #0f766e;
  --bg: #fff;
  --surface: #fff;
  --surface-2: #f9fafb;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #4b5563;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

/* ==========================================================================
   2) BASE / GLOBAL
   ========================================================================== */
html,
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--surface-2);
  color: var(--text);
}

h2 {
  color: var(--text);
}

/* ==========================================================================
   3) UTILITIES / HELPERS
   ========================================================================== */
.container {
  width: min(1100px, 100% - 32px);
  margin: 0 auto;
}

/* ==========================================================================
   4) INTERACTIONS (Ripple)
   ========================================================================== */
.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;
  }
}
/* ==========================================================================
   5) SITE COMPONENTS (shared)
   ========================================================================== */
/* Titles */
.h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.h2 {
  margin: 0;
  color: var(--text);
}

/* Buttons (only if DS doesn't handle these variants) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-600);
}

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--outline:hover {
  background: var(--surface-2);
}

/* Typography helpers */
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Small UI helpers */
.actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* ==========================================================================
   6) SITE HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand__logo {
  height: 100px;
  width: auto;
  display: block;
}

.brand__name {
  font-size: 16px;
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav__link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav__link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Header responsive */
@media (max-width: 980px) {
  .nav {
    display: none;
  }
}
@media (max-width: 520px) {
  .nav__actions .btn {
    padding: 10px 12px;
    border-radius: 12px;
  }
  .brand__name {
    display: none;
  }
  .brand__logo {
    height: 32px;
  }
}
/* ==========================================================================
   7) PAGES — HOME
   ========================================================================== */
.home-section {
  padding: 28px 0;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
}

/* Images */
.home-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-hero__media,
.trust__media,
.why__media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(15, 118, 110, 0.08));
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.06);
}

/* Bloc 1 (Présentation) */
.home-hero__grid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.home-hero__media {
  min-height: 320px;
}

@media (max-width: 900px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
  }
  .home-hero__media {
    min-height: 240px;
  }
}
/* Bloc 2 (Trust) */
.trust__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: stretch;
}

.trust__media {
  min-height: 220px;
}

@media (max-width: 900px) {
  .trust__grid {
    grid-template-columns: 1fr;
  }
  .trust__media {
    min-height: 200px;
  }
}
/* Bandeaux logos clients */
.logo-bands {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-content: start;
}

.logo-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.05);
}

.logo-band__img {
  max-height: 46px;
  max-width: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .logo-band__img {
    max-width: 220px;
    max-height: 42px;
  }
}
/* Bloc 3 (Why) */
.why__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.why__media {
  min-height: 280px;
}

@media (max-width: 900px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
  .why__media {
    min-height: 220px;
  }
}
/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.05);
}
.card h3 {
  margin: 0;
}
.card p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* CTA */
.cta {
  margin-top: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.cta__title {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.cta__text {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.85);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* CTA button variants */
.btn--cta-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--cta-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--cta-solid {
  background: #fff;
  border: 1px solid #fff;
  color: var(--text);
}
.btn--cta-solid:hover {
  background: rgba(255, 255, 255, 0.92);
}

/* ==========================================================================
   ANIMATIONS (CSS only)
   ========================================================================== */
/* Respect accessibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero polish */
.home-hero__grid {
  position: relative;
  overflow: hidden;
}

.home-hero__grid::before {
  content: "";
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.18), transparent 60%), radial-gradient(circle at 80% 30%, rgba(20, 184, 166, 0.12), transparent 55%);
  pointer-events: none;
}

/* Image micro-motion */
.home-hero__media .home-img,
.trust__media .home-img,
.why__media .home-img {
  transition: transform 0.8s ease, filter 0.8s ease;
}

.home-hero__media:hover .home-img,
.trust__media:hover .home-img,
.why__media:hover .home-img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

/* Cards hover */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.1);
}

/* Logo bands hover */
.logo-band {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.logo-band:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

/* Buttons hover subtle */
.btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary:hover {
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.22);
}

.nav__link--disabled {
  cursor: default;
  opacity: 0.6;
  user-select: none;
}

.btn--disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none; /* empêche tout clic */
}

/* ======================================================================
   CONTACT PAGE (layout + form + map)
   ====================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-card {
  display: grid;
  gap: 14px;
}

/* Form */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 650px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}
.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
}

.field input,
.field textarea {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(20, 184, 166, 0.65);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(31, 41, 55, 0.22);
}

.field-error {
  margin: 0;
  color: #b91c1c;
  font-size: 12.5px;
}

/* Alerts */
.alert {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--surface);
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.05);
}

.alert--success {
  border-color: rgba(20, 184, 166, 0.35);
  background: rgba(20, 184, 166, 0.08);
}

.alert--error {
  border-color: rgba(185, 28, 28, 0.35);
  background: rgba(185, 28, 28, 0.08);
}

/* Address */
.contact-address {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Map */
.map {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  height: 280px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Honeypot hidden */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ======================================================================
   ANIMATIONS (reveal on scroll)
   ====================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ======================================================================
   JOBS
   ====================================================================== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .jobs-grid {
    grid-template-columns: 1fr;
  }
}
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
  display: grid;
}

.job-card__media {
  margin: 0;
  height: 210px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(15, 118, 110, 0.08));
}

.job-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.job-card__body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.job-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.job-card__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.job-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* ======================================================================
   SERVICES PAGE
   ====================================================================== */
.services-hero {
  padding: 28px 0;
}

.services-hero__grid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 900px) {
  .services-hero__grid {
    grid-template-columns: 1fr;
  }
}
.services-hero__media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(15, 118, 110, 0.08));
  min-height: 300px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.services-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Grid cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
  display: grid;
}

.service-card__media {
  margin: 0;
  height: 200px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(15, 118, 110, 0.08));
}

.service-card__body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.service-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.service-card__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-card__list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.service-card__actions {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* CTA */
.services-cta {
  margin: 18px 0 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.services-cta__title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.services-cta__text {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.85);
}

.services-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ======================================================================
   REALIZATION
   ====================================================================== */
.real-hero {
  padding: 28px 0;
}

.real-hero__grid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 900px) {
  .real-hero__grid {
    grid-template-columns: 1fr;
  }
}
.real-hero__media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(15, 118, 110, 0.08));
  min-height: 300px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.real-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Case container */
.real-case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
  padding: 18px;
}

.real-case__top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.real-case__subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.real-case__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Grid */
.real-case__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .real-case__grid {
    grid-template-columns: 1fr;
  }
}
.real-case__media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  min-height: 260px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

/* Content blocks */
.real-case__content {
  display: grid;
  gap: 14px;
}

.real-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
}

.real-block--impact {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(15, 118, 110, 0.06));
  border-color: rgba(20, 184, 166, 0.25);
}

.real-h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}

.real-p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.real-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.6;
}

.real-list--impact li {
  color: var(--text);
}

/* Bottom actions */
.real-case__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ======================================================================
   APPLY / POSTULER
   ====================================================================== */
.apply-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .apply-grid {
    grid-template-columns: 1fr;
  }
}
.apply-card {
  display: grid;
  gap: 14px;
}

.apply-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 650px) {
  .apply-form .form-row {
    grid-template-columns: 1fr;
  }
}
.apply-tips {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.6;
}

.apply-note {
  border: 1px solid rgba(20, 184, 166, 0.25);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(15, 118, 110, 0.06));
  border-radius: 18px;
  padding: 14px;
}

.apply-note__title {
  margin: 0;
  font-weight: 900;
  color: var(--text);
}

.apply-note__text {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.apply-form input:not([type="file"]),
.apply-form select {
  height: 46px;
  box-sizing: border-box;
}

/* Select styling (si ton design system ne le fait pas) */
.apply-form select {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.apply-form select:focus {
  border-color: rgba(20, 184, 166, 0.65);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.apply-form .field-error {
  min-height: 1.1rem;
}

.apply-form .field-error:empty {
  visibility: hidden;
}

/* ======================================================================
   DEVIS
   ====================================================================== */
.devis-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .devis-grid {
    grid-template-columns: 1fr;
  }
}
.devis-card {
  display: grid;
  gap: 14px;
}

.devis-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 650px) {
  .devis-form .form-row {
    grid-template-columns: 1fr;
  }
}
.devis-points {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.6;
}

.devis-note {
  border: 1px solid rgba(20, 184, 166, 0.25);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(15, 118, 110, 0.06));
  border-radius: 18px;
  padding: 14px;
}

.devis-note__title {
  margin: 0;
  font-weight: 900;
  color: var(--text);
}

.devis-note__text {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Select (design cohérent) */
.devis-form .field {
  position: relative;
}

.devis-form select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 44px 12px 12px; /* place pour la flèche */
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  /* flèche custom */
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.devis-form select:hover {
  border-color: rgba(31, 41, 55, 0.22);
}

.devis-form select:focus {
  border-color: rgba(20, 184, 166, 0.65);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

/* ======================================================================
   DEVIS — ACTIONS: boutons proportionnels (même hauteur)
   ====================================================================== */
.devis-form .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.devis-form .actions > a.btn,
.devis-form .actions > button.btn {
  height: 44px;
  padding: 0 16px;
  line-height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .devis-form .actions > a.btn,
  .devis-form .actions > button.btn {
    width: 100%;
  }
}
/* ======================================================================
   JOBS (LIST + DETAIL + RECRUITMENT PAGE)
   ====================================================================== */
/* ---------- Tokens / Helpers ---------- */
/* ======================================================================
   LISTE EMPLOIS
   ====================================================================== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px) {
  .jobs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .jobs-grid {
    grid-template-columns: 1fr;
  }
}

.job-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.job-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.28);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.1);
}
.job-card__media {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(15, 118, 110, 0.06));
  overflow: hidden;
}
.job-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.25s ease;
}
.job-card:hover .job-card__img {
  transform: scale(1.06);
}
.job-card__body {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.job-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}
.job-card__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.job-card__actions {
  margin-top: 4px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.job-card__actions .btn {
  height: 42px;
  padding: 0 14px;
  line-height: 42px;
}

/* ======================================================================
   DETAIL CLASSIQUE (hero + cards)
   ====================================================================== */
.job-hero {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
}
@media (max-width: 900px) {
  .job-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}
.job-hero__copy {
  display: grid;
  gap: 10px;
}
.job-hero__media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(15, 118, 110, 0.08));
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.06);
  min-height: 280px;
}
@media (max-width: 900px) {
  .job-hero__media {
    min-height: 220px;
  }
}
.job-hero .actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.job-hero .actions > a.btn,
.job-hero .actions > button.btn {
  height: 44px;
  padding: 0 16px;
  line-height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .job-hero .actions > a.btn,
  .job-hero .actions > button.btn {
    width: 100%;
  }
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.job-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.job-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.job-list li {
  color: var(--muted);
}
.job-list li::marker {
  color: rgba(20, 184, 166, 0.9);
}

/* ======================================================================
   PAGE DETAIL EMPLOI — PREMIUM
   Design système éditorial / professionnel
   Inspiré WTTJ : typographie serif, layout bicolonne, sidebar sticky,
   navigation de section ancrée, timeline process, FAQ accordion.
   ====================================================================== */
.jobpage {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px 80px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #0d1117;
}
@media (max-width: 1020px) {
  .jobpage {
    padding: 0 20px 60px;
  }
}

.jp-hero {
  padding: 40px 0 0;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1020px) {
  .jp-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0 0;
  }
}

.jp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf9;
  border: 1px solid rgba(13, 148, 136, 0.2);
  color: #0d9488;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.jp-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #14b8a6;
  border-radius: 50%;
  display: block;
}

.jp-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 1.08;
  color: #0d1117;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 400;
}
.jp-title em {
  font-style: italic;
  color: #0d9488;
}

.jp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.jp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: #4a5568;
  font-weight: 500;
}

.jp-lead {
  font-size: 16px;
  line-height: 1.75;
  color: #4a5568;
  max-width: 560px;
  margin-bottom: 28px;
}

.jp-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.jp-sidecard {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(13, 17, 23, 0.06), 0 2px 10px rgba(13, 17, 23, 0.04);
  overflow: hidden;
  position: sticky;
  top: 76px;
}
@media (max-width: 1020px) {
  .jp-sidecard {
    position: relative;
    top: 0;
  }
}
.jp-sidecard__head {
  padding: 22px 22px 18px;
  border-bottom: 1px solid #e8ecf0;
}
.jp-sidecard__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a0aec0;
  margin-bottom: 6px;
}
.jp-sidecard__title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 20px;
  color: #0d1117;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.jp-sidecard__sub {
  display: none;
}

.jp-sidelist {
  padding: 16px 22px;
  list-style: none;
  margin: 0;
  display: grid;
  gap: 0;
}
.jp-sidelist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e8ecf0;
  font-size: 13.5px;
  color: #1e2633;
  line-height: 1.45;
}
.jp-sidelist li:last-child {
  border-bottom: none;
}
.jp-sidelist li::before {
  content: "→";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  background: #f0fdf9;
  border: 1px solid rgba(13, 148, 136, 0.14);
  color: #0d9488;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.jp-sideactions {
  padding: 16px 22px 22px;
  display: grid;
  gap: 10px;
}

.jp-nav {
  display: none;
}

.jp-section-nav {
  margin-top: 40px;
  border-top: 1px solid #e8ecf0;
  border-bottom: 1px solid #e8ecf0;
  background: #ffffff;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 60px;
  z-index: 90;
}
.jp-section-nav::-webkit-scrollbar {
  display: none;
}
.jp-section-nav a {
  flex-shrink: 0;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #718096;
  padding: 14px 20px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.jp-section-nav a:hover {
  color: #0d1117;
  border-bottom-color: #14b8a6;
}
.jp-section-nav a.active {
  color: #0d9488;
  border-bottom-color: #0d9488;
}

.jp-company-strip {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(13, 17, 23, 0.06), 0 2px 10px rgba(13, 17, 23, 0.04);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.jp-company-strip__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #0d9488;
  display: grid;
  place-items: center;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.jp-company-strip__name {
  font-size: 15px;
  font-weight: 700;
  color: #0d1117;
}
.jp-company-strip__sub {
  font-size: 12.5px;
  color: #718096;
  margin-top: 1px;
}
.jp-company-strip__actions {
  margin-left: auto;
}

.jp-body {
  padding: 40px 0 0;
}

.jp-grid {
  display: block;
}

.jp-main {
  max-width: 720px;
}

.jp-section {
  margin-bottom: 52px;
}
.jp-section:last-child {
  margin-bottom: 0;
}

.jp-head {
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: none;
}

.jp-kicker-section {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.jp-kicker-section::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(13, 148, 136, 0.12);
}

.jp-h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(22px, 2.5vw, 28px);
  color: #0d1117;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.2;
  font-weight: 400;
}

.jp-sub {
  font-size: 14.5px;
  color: #718096;
  margin: 0 0 24px;
  line-height: 1.65;
}

.jp-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 480px) {
  .jp-tiles {
    grid-template-columns: 1fr;
  }
}

.jp-tile {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(13, 17, 23, 0.06), 0 2px 10px rgba(13, 17, 23, 0.04);
  padding: 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.jp-tile:hover {
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: 0 4px 24px rgba(13, 17, 23, 0.08);
}
.jp-tile--accent {
  border-color: rgba(13, 148, 136, 0.2);
  background: #f0fdf9;
}
.jp-tile__t {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 10px;
}
.jp-tile__k {
  font-size: 15px;
  font-weight: 700;
  color: #1e2633;
  margin-bottom: 8px;
}
.jp-tile__p {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
}

.jp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.jp-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #4a5568;
  line-height: 1.6;
}
.jp-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background: #f0fdf9 url("data:image/svg+xml,%3Csvg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3L3 5L7 1' stroke='%230d9488' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  border: 1.5px solid rgba(13, 148, 136, 0.3);
  margin-top: 3px;
}

.jp-list--cols {
  columns: 2;
  column-gap: 18px;
  display: block;
}
.jp-list--cols li {
  break-inside: avoid;
  margin-bottom: 8px;
}
@media (max-width: 1020px) {
  .jp-list--cols {
    columns: 1;
  }
}

.jp-card {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(13, 17, 23, 0.06), 0 2px 10px rgba(13, 17, 23, 0.04);
  padding: 24px;
  margin-top: 14px;
}
.jp-card--wide {
  margin-top: 14px;
}

/* ─── LONG ANNOUNCE (rendered from JobsCatalog.detail) ─────────────────── */
.jobpage--annonce {
  padding-top: 24px;
}

.jp-hero--annonce {
  padding-top: 12px;
  align-items: start;
}

.jp-cta--annonce {
  margin-bottom: 12px;
}
.jp-cta--annonce .btn {
  height: 42px;
  padding: 0 14px;
  line-height: 42px;
  border-radius: 14px;
}

.jp-card--annonce {
  margin-top: 0;
  padding: 34px;
  background: linear-gradient(180deg, rgba(240, 253, 249, 0.55), #fff 60%);
}
@media (max-width: 650px) {
  .jp-card--annonce {
    padding: 22px;
  }
}

@media (max-width: 1020px) {
  .jp-annonce-aside {
    order: 2;
  }
}

.jp-sidekey {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a0aec0;
  display: block;
  margin-bottom: 2px;
}

.jp-toc {
  padding: 16px 22px 0;
  border-top: 1px solid #e8ecf0;
}

.jp-toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a0aec0;
  margin-bottom: 10px;
}

.jp-toc__nav {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
}

.jp-toc__link {
  text-decoration: none;
  color: #4a5568;
  font-size: 13.5px;
  line-height: 1.35;
  padding-left: 12px;
  border-left: 2px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.jp-toc__link:hover {
  color: #0d1117;
  border-left-color: rgba(13, 148, 136, 0.45);
  transform: translateX(2px);
}

.jp-toc__link--h3 {
  font-size: 12.5px;
  color: #718096;
  padding-left: 22px;
}

.jp-kvgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 18px;
}
@media (max-width: 700px) {
  .jp-kvgrid {
    grid-template-columns: 1fr;
  }
}

.jp-kv {
  border: 1px solid #e8ecf0;
  background: #f7f8fa;
  border-radius: 12px;
  padding: 12px 12px;
  box-shadow: 0 1px 6px rgba(13, 17, 23, 0.04);
}

.jp-kv__k {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 4px;
}

.jp-kv__v {
  font-size: 14px;
  color: #1e2633;
  line-height: 1.55;
}

.jp-richtext {
  max-width: 760px;
}
.jp-richtext h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: #0d1117;
}
.jp-richtext h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.25;
  margin: 26px 0 10px;
  color: #0d1117;
  letter-spacing: -0.01em;
  scroll-margin-top: 90px;
}
.jp-richtext h3 {
  margin: 18px 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d9488;
  scroll-margin-top: 90px;
}
.jp-richtext p {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.85;
  color: #4a5568;
}
.jp-richtext strong {
  color: #0d1117;
  font-weight: 800;
}
.jp-richtext ul {
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #4a5568;
  line-height: 1.75;
}
.jp-richtext ul li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}
.jp-richtext ul li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f0fdf9 url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4 7L9 1' stroke='%230d9488' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  border: 1.5px solid rgba(13, 148, 136, 0.3);
  margin-top: 4px;
}

.jp-h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d1117;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.jp-h3::before {
  content: "";
  width: 3px;
  height: 14px;
  background: #0d9488;
  border-radius: 2px;
  display: block;
}

.jp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .jp-split {
    grid-template-columns: 1fr;
  }
}

.jp-note {
  border-left: 3px solid #0d9488;
  background: #f0fdf9;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #4a5568;
  line-height: 1.7;
  margin-top: 14px;
}
.jp-note strong {
  color: #0d9488;
  font-weight: 700;
}

.jp-stack {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(13, 17, 23, 0.06), 0 2px 10px rgba(13, 17, 23, 0.04);
  padding: 24px;
  display: grid;
  gap: 20px;
}
.jp-stack__t {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #718096;
  margin-bottom: 8px;
}

.jp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jp-badge {
  background: #f7f8fa;
  border: 1px solid #e8ecf0;
  color: #4a5568;
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.12s;
}
.jp-badge:hover {
  border-color: #14b8a6;
  color: #0d9488;
  background: #f0fdf9;
}

.jp-process {
  display: grid;
  gap: 0;
}

.jp-proc {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 16px;
  position: relative;
}
.jp-proc:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(#e8ecf0 60%, transparent);
}
.jp-proc__n {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e8ecf0;
  display: grid;
  place-items: center;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 15px;
  color: #0d9488;
  position: relative;
  z-index: 1;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.jp-proc:hover .jp-proc__n {
  border-color: #14b8a6;
  background: #f0fdf9;
}
.jp-proc__t {
  font-size: 15px;
  font-weight: 700;
  color: #1e2633;
  margin-bottom: 4px;
  padding-top: 8px;
}

.jp-proc__desc {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  padding-bottom: 28px;
}

.jp-faq {
  display: grid;
  gap: 8px;
}

.jp-faq__item {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(13, 17, 23, 0.06), 0 2px 10px rgba(13, 17, 23, 0.04);
  overflow: hidden;
  transition: border-color 0.15s;
}
.jp-faq__item[open] {
  border-color: rgba(13, 148, 136, 0.25);
}
.jp-faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #0d1117;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.jp-faq__item summary::-webkit-details-marker {
  display: none;
}
.jp-faq__item summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #e8ecf0;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 300;
  color: #0d9488;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.15s, border-color 0.15s;
  line-height: 1;
}
.jp-faq__item[open] summary::after {
  transform: rotate(45deg);
  background: #f0fdf9;
  border-color: #14b8a6;
}

.jp-faq__a {
  padding: 0 20px 18px;
  padding-top: 14px;
  border-top: 1px solid #e8ecf0;
  font-size: 14.5px;
  color: #718096;
  line-height: 1.75;
}

.jp-bottomcta {
  background: #0d1117;
  border-radius: 20px;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.jp-bottomcta::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.16) 0%, transparent 65%);
  pointer-events: none;
}
.jp-bottomcta::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 40%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 65%);
  pointer-events: none;
}
.jp-bottomcta__t {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(22px, 2.5vw, 30px);
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
  font-weight: 400;
}
.jp-bottomcta__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #14b8a6;
  margin-bottom: 10px;
}
.jp-bottomcta__d {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  max-width: 400px;
}
.jp-bottomcta__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
@media (max-width: 1020px) {
  .jp-bottomcta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
}

.btn--white {
  background: #fff;
  color: #0d1117;
  border-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.btn--white:hover {
  background: #f0fdf9;
  color: #0d9488;
  transform: translateY(-1px);
}

.jp-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 640px) {
  .jp-benefits {
    grid-template-columns: 1fr;
  }
}

.jp-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(13, 17, 23, 0.06), 0 2px 10px rgba(13, 17, 23, 0.04);
  padding: 14px;
  font-size: 13.5px;
  color: #4a5568;
  transition: border-color 0.15s;
}
.jp-benefit:hover {
  border-color: rgba(13, 148, 136, 0.22);
}
.jp-benefit::before {
  content: "✦";
  color: #0d9488;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}

.jp-divider {
  border: none;
  border-top: 1px solid #e8ecf0;
  margin: 36px 0;
}

.services-separator {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 6px;
  color: rgba(15, 23, 42, 0.45);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.services-separator::before,
.services-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, 0.1);
}

.service-page-hero {
  margin: 10px 0 48px;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.service-page-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.service-page-hero__eyebrow,
.service-section-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.52);
}

.service-page-hero__title {
  margin: 0;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.02;
  color: #0f172a;
}

.service-page-hero__lead {
  margin: 20px 0 0;
  max-width: 720px;
  font-size: 20px;
  line-height: 1.65;
  color: rgba(15, 23, 42, 0.78);
}

.service-page-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(33, 186, 179, 0.1);
  border: 1px solid rgba(33, 186, 179, 0.18);
  color: #0f172a;
  font-weight: 600;
  font-size: 14px;
}

.service-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.service-page-hero__media {
  margin: 0;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.service-page-hero__media img {
  display: block;
  width: 100%;
  height: auto;
}

.service-intro {
  margin: 0 0 48px;
}

.service-intro__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: start;
}

.service-intro__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  color: #0f172a;
}

.service-intro__text {
  margin: 0;
  max-width: 820px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(15, 23, 42, 0.8);
}

.service-mini-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.service-mini-card__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55);
}

.service-mini-card__text {
  margin: 0;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.78);
}

.service-band {
  margin: 0 0 52px;
}

.service-band__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.service-panel {
  padding: 28px;
  border-radius: 26px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.service-panel--soft {
  background: rgba(255, 255, 255, 0.92);
}

.service-panel--accent {
  background: linear-gradient(180deg, rgba(33, 186, 179, 0.11), rgba(33, 186, 179, 0.04));
  border-color: rgba(33, 186, 179, 0.2);
}

.service-panel__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.52);
}

.service-panel__title {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.2;
  color: #0f172a;
}

.service-feature-list,
.service-benefit-list,
.service-value-card__list {
  margin: 0;
  padding-left: 20px;
}

.service-feature-list li,
.service-benefit-list li,
.service-value-card__list li {
  margin-bottom: 12px;
  line-height: 1.65;
  color: rgba(15, 23, 42, 0.82);
}

/* SECTION METHODE - VERSION MISE A JOUR */
.service-method {
  margin: 0 0 44px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.028), rgba(15, 23, 42, 0.012));
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.service-method__header {
  margin-bottom: 20px;
}

.service-method__title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.12;
  color: #0f172a;
}

.service-steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-step-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  border-color: rgba(33, 186, 179, 0.18);
}

.service-step-card__top {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.service-step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(33, 186, 179, 0.1);
  border: 1px solid rgba(33, 186, 179, 0.18);
  color: #0f172a;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.service-step-card__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.84);
  max-width: 36ch;
}

.service-step-card:first-child {
  background: linear-gradient(180deg, rgba(33, 186, 179, 0.09), rgba(255, 255, 255, 0.96));
  border-color: rgba(33, 186, 179, 0.18);
}

.service-step-card:nth-child(2n) {
  transform: translateY(8px);
}

.service-step-card:nth-child(2n):hover {
  transform: translateY(6px);
}

.service-value {
  margin: 0 0 52px;
}

.service-value__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-value-card {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.service-value-card__title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.2;
  color: #0f172a;
}

.service-value-card--quote {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
  border-color: transparent;
}

.service-value-card__quote {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
  color: #ffffff;
}

.service-final-cta {
  margin: 0 0 24px;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(33, 186, 179, 0.12), rgba(33, 186, 179, 0.05));
  border: 1px solid rgba(33, 186, 179, 0.18);
}

.service-final-cta__content {
  max-width: 880px;
}

.service-final-cta__title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  color: #0f172a;
}

.service-final-cta__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(15, 23, 42, 0.8);
}

@media (max-width: 980px) {
  .service-page-hero__grid,
  .service-intro__grid,
  .service-band__grid,
  .service-value__grid,
  .service-steps-grid {
    grid-template-columns: 1fr;
  }
  .service-page-hero,
  .service-method,
  .service-final-cta {
    padding: 22px;
  }
  .service-page-hero__title {
    font-size: clamp(34px, 9vw, 48px);
  }
  .service-method__title {
    font-size: 28px;
  }
  .service-step-card {
    min-height: 0;
  }
  .service-step-card:nth-child(2n),
  .service-step-card:nth-child(2n):hover {
    transform: none;
  }
}
