/* ==========================================================================
   Snapdesk — thème « premium » (maquettes novembre 2026)
   Charte : vert sauge #A9BCB7 · rose #E590A1 · bleu nuit #0B1826 · fond #FCF7F5
   Typos  : DM Serif Display (titres) · Manrope (interface)
   Chargé en dernier : il surcharge Bootstrap 4 et les restes de QuillPro.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Jetons
   -------------------------------------------------------------------------- */
:root {
  /* Encres */
  --sd-navy:       #0B1826;
  --sd-ink:        #0B1826;   /* texte principal */
  --sd-ink-2:      #5B6470;   /* texte secondaire */
  --sd-ink-3:      #9AA1A9;   /* texte discret */

  /* Surfaces */
  --sd-bg:         #FCF7F5;   /* fond de page */
  --sd-white:      #FFFFFF;
  --sd-zebra:      #FCFAF9;   /* une ligne sur deux */
  --sd-hover:      #F6EEEB;   /* survol chaud */
  --sd-line:       rgba(11, 24, 38, 0.07);
  --sd-line-2:     rgba(11, 24, 38, 0.12);
  --sd-line-3:     rgba(11, 24, 38, 0.14);

  /* Sauge */
  --sd-sage:       #A9BCB7;   /* sidebar, surfaces fortes */
  --sd-sage-deep:  #56716A;   /* petits libellés, pictos */
  --sd-sage-ink:   #3F5650;   /* texte sur sauge clair */
  --sd-sage-soft:  #E4ECE9;   /* état actif, surfaces douces */

  /* Rose */
  --sd-rose:       #E590A1;   /* boutons d'action */
  --sd-rose-ink:   #8E3A4E;   /* texte sur rose pâle */
  --sd-rose-soft:  #FBE4E9;   /* filtres actifs, tags */
  --sd-rose-line:  #F2C4D0;

  /* Sable, gris, rouge */
  --sd-sand:       #F1DED6;
  --sd-sand-ink:   #8A5A3C;
  --sd-grey:       #EAEDF2;
  --sd-grey-ink:   #3D4650;
  --sd-neutral:    #F3F0EE;
  --sd-red:        #B83232;
  --sd-red-soft:   #FDECEC;
  --sd-alert:      #D64545;

  /* Typographie */
  --sd-font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sd-font-ui:      'Manrope', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Rayons */
  --sd-radius-card:    20px;
  --sd-radius-control: 12px;
  --sd-radius-pill:    999px;

  /* Gabarit */
  --sd-sidebar-w: 272px;
  --sd-topbar-h:  72px;
  --sd-page-pad:  52px 40px 72px;

  --sd-shadow-pop: 0 20px 50px -20px rgba(11, 24, 38, 0.25), 0 1px 2px rgba(11, 24, 38, 0.06);
  --sd-focus: 0 0 0 3px rgba(169, 188, 183, 0.35);
}

/* --------------------------------------------------------------------------
   1. Base & typographie
   -------------------------------------------------------------------------- */
html { font-size: 16px; }

/* Densité d'affichage : sur écran large, l'interface est rendue à 80 %
   (équivalent du zoom navigateur 80 %). Ajuster --sd-zoom si besoin. */
:root { --sd-zoom: .8; --sd-vh: 100vh; }
@media (min-width: 992px) {
  html { zoom: var(--sd-zoom); }
  /* Sous zoom, 100vh ne couvre plus que 80 % de l'écran : on compense pour les blocs pleine hauteur */
  :root { --sd-vh: calc(100vh / var(--sd-zoom)); }
}

body {
  font-family: var(--sd-font-ui);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--sd-ink);
  background: var(--sd-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--sd-font-display);
  font-weight: 400;
  color: var(--sd-ink);
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: .5rem;
}
h1, .h1 { font-size: 40px; }
h2, .h2 { font-size: 28px; }
h3, .h3 { font-size: 24px; }
h4, .h4 { font-size: 21px; }
h5, .h5 { font-size: 18px; }
h6, .h6 { font-size: 16px; }

.display-1, .display-2, .display-3, .display-4 {
  font-family: var(--sd-font-display);
  font-weight: 400;
  color: var(--sd-ink);
}
.display-1 { font-size: 72px; }
.display-4 { font-size: 34px; }
.lead { font-size: 16.5px; font-weight: 400; color: var(--sd-ink-2); line-height: 1.6; }

p { margin-bottom: 1rem; }
small, .small { font-size: 12.5px; }

a { color: var(--sd-ink); text-decoration: none; }
a:hover, a:focus { color: var(--sd-sage-deep); text-decoration: none; }

hr { border-top: 1px solid var(--sd-line); }
strong, b { font-weight: 700; }

:focus-visible { outline: 2px solid var(--sd-navy); outline-offset: 2px; }
::selection { background: var(--sd-rose-soft); color: var(--sd-ink); }

/* Pictogrammes (police Batch Icons) : jamais en italique, même dans une balise <i> */
.batch-icon, .fa {
  font-style: normal !important;
  font-variant: normal;
  text-transform: none;
  speak: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Chiffres alignés */
.table, .tile-number, .price-block, .num, .sd-num { font-variant-numeric: tabular-nums; }

/* Petits libellés en capitales (« eyebrow ») */
.sd-eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sd-sage-deep);
}

/* --------------------------------------------------------------------------
   2. Shell : application, sidebar, barre haute, contenu
   -------------------------------------------------------------------------- */
.sd-app { min-height: var(--sd-vh); }

/* Sidebar ---------------------------------------------------------------- */
.sd-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sd-sidebar-w);
  background: var(--sd-sage);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 1030;
  transition: transform .22s ease;
}

.sd-brand {
  display: flex;
  align-items: center;
  justify-content: center;   /* logo centré dans la barre latérale */
  padding: 30px 30px 20px;
}
.sd-brand img {
  display: block;
  height: 30px;
  width: auto;
}

.sd-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 18px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .35) transparent;
}
.sd-nav::-webkit-scrollbar { width: 6px; }
.sd-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .35); border-radius: 6px; }

.sd-nav-group { display: block; }
.sd-nav-group + .sd-nav-group { margin-top: 22px; }

.sd-nav-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sd-font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  padding: 0 12px 8px;
  margin: 0;
  list-style: none;
}
/* Groupes repliables (<details>) */
details.sd-nav-group > summary.sd-nav-title { cursor: pointer; }
details.sd-nav-group > summary.sd-nav-title::-webkit-details-marker { display: none; }
details.sd-nav-group > summary.sd-nav-title::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
  opacity: .9;
}
details.sd-nav-group[open] > summary.sd-nav-title::after { transform: translateY(2px) rotate(-135deg); }
details.sd-nav-group > summary.sd-nav-title:hover { color: #fff; }

.sd-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  transition: background-color .15s ease, color .15s ease;
}
.sd-nav-link .batch-icon,
.sd-nav-link .fa {
  width: 20px;
  font-size: 18px;
  text-align: center;
  color: currentColor;
  flex: 0 0 20px;
  opacity: .95;
}
.sd-nav-link:hover,
.sd-nav-link:focus {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}
.sd-nav-link.is-active,
.sd-nav-link.is-active:hover {
  background: var(--sd-sage-soft);
  color: var(--sd-ink);
  font-weight: 600;
}

.sd-sidebar-foot {
  margin: auto 18px 0;
  padding: 18px 12px 24px;
  font-size: 12px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .85);
  border-top: 1px solid rgba(255, 255, 255, .3);
}
.sd-sidebar-foot .sd-heart { color: #fff; }

/* Zone principale ---------------------------------------------------------- */
.sd-main {
  margin-left: var(--sd-sidebar-w);
  min-height: var(--sd-vh);
  display: flex;
  flex-direction: column;
  background: var(--sd-bg);
}

/* Barre haute -------------------------------------------------------------- */
.sd-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: var(--sd-topbar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  background: var(--sd-white);
  border-bottom: 1px solid var(--sd-line);
}

.sd-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
.sd-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sd-menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--sd-line-2);
  background: var(--sd-white);
  border-radius: 50%;
  color: var(--sd-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.sd-menu-toggle:hover { background: var(--sd-hover); }
.sd-burger,
.sd-burger::before,
.sd-burger::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  margin: 0 auto;
}
.sd-burger::before, .sd-burger::after { content: ""; position: absolute; left: 0; }
.sd-burger::before { top: -6px; }
.sd-burger::after  { top: 6px; }

.sd-topbar-brand { display: none; }
.sd-topbar-brand img { height: 22px; width: auto; }

/* Boutons de la barre haute (orga, cloche, profil) : pilules blanches */
.sd-topbar .dropdown { position: relative; }

.sd-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--sd-line-2);
  border-radius: var(--sd-radius-pill);
  background: var(--sd-white);
  color: var(--sd-ink);
  font-family: var(--sd-font-ui);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  transition: background-color .15s ease;
}
.sd-topbar-btn:hover,
.sd-topbar-btn:focus,
.show > .sd-topbar-btn {
  background: var(--sd-hover);
  color: var(--sd-ink);
  text-decoration: none;
  outline: 0;
}
.sd-topbar-btn:focus-visible { box-shadow: var(--sd-focus); outline: 0; }
.sd-topbar-btn .batch-icon { font-size: 17px; color: var(--sd-ink); opacity: .7; }
.sd-topbar-btn .sd-label { overflow: hidden; text-overflow: ellipsis; }
.sd-topbar-btn.dropdown-toggle::after {
  margin-left: 2px;
  border-top-color: var(--sd-ink);
  opacity: .55;
  vertical-align: 2px;
}
.sd-topbar-btn.sd-topbar-icon {
  width: 44px;
  padding: 0;
  justify-content: center;
}
.sd-topbar-btn.sd-topbar-icon .batch-icon { opacity: 1; }
.sd-topbar-btn.sd-topbar-icon.dropdown-toggle::after { display: none; }
.sd-topbar-btn.sd-profile { padding-left: 6px; }

.sd-orga-name {
  font-family: var(--sd-font-ui);
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
  padding: 0 14px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--sd-line-2);
  border-radius: var(--sd-radius-pill);
  color: var(--sd-ink);
}

.sd-notif-count {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: var(--sd-radius-pill);
  background: var(--sd-alert);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: 2px solid #fff;
  box-sizing: border-box;
}

.sd-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sd-sage-soft);
  flex: 0 0 32px;
}
/* Avatar à initiales (fallback sans photo) */
.sd-avatar-ini {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sd-sage-soft);
  color: var(--sd-sage-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
}

/* Menus déroulants de la barre haute : positionnés en CSS (indépendants de Popper,
   dont le calcul se décale lorsque la page est rendue à 80 %) */
.sd-topbar .dropdown-menu {
  min-width: 250px;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none !important;
  will-change: auto !important;
}
.sd-topbar .dropdown-menu:not(.dropdown-menu-right) { left: 0 !important; right: auto !important; }
.sd-topbar .dropdown-menu-right { right: 0 !important; left: auto !important; }
.sd-dropdown-search { padding: 6px 8px 8px; }
.sd-dropdown-search .form-control { height: 40px; }
.sd-dropdown-scroll { max-height: 320px; overflow-y: auto; }

/* Notifications */
.sd-notif-menu { width: 350px; padding: 6px; }
.sd-notif-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  color: var(--sd-ink);
}
.sd-notif-item:hover { background: var(--sd-hover); color: var(--sd-ink); }
.sd-notif-item .batch-icon {
  flex: 0 0 38px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sd-sage-soft);
  color: var(--sd-sage-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px !important;
}
.sd-notif-item .notification-heading { font-size: 14px; font-weight: 700; margin: 0 0 1px; color: var(--sd-ink); }
.sd-notif-item .notification-text { font-size: 13px; color: var(--sd-ink-2); }
.sd-notif-item .notification-time { font-size: 12px; color: var(--sd-ink-3); display: block; margin-top: 2px; }
.sd-notif-empty { padding: 18px 14px; text-align: center; color: var(--sd-ink-3); font-size: 13px; }

/* Contenu des pages --------------------------------------------------------- */
.main-content,
.main-content.p-5 {
  padding: var(--sd-page-pad) !important;
  width: 100%;
}

/* En-tête de page (hero serif) */
.sd-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.sd-page-head > div:first-child { max-width: 660px; }
.sd-page-head .sd-eyebrow { margin-bottom: 14px; }
.sd-page-title {
  font-family: var(--sd-font-display);
  font-size: 54px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--sd-ink);
  margin: 0 0 14px;
}
.sd-page-title em,
.sd-accent {
  font-style: italic;
  color: var(--sd-sage);
}
.sd-page-sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--sd-ink-2);
  margin: 0;
  max-width: 560px;
}
.sd-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Lien retour */
.sd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sd-sage-deep);
  margin-bottom: 28px;
}
.sd-back:hover { color: var(--sd-ink); }

/* --------------------------------------------------------------------------
   3. Composants Bootstrap 4 — restylage
   -------------------------------------------------------------------------- */

/* Boutons ----------------------------------------------------------------- */
.btn {
  font-family: var(--sd-font-ui);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--sd-radius-pill);
  border: 1px solid transparent;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.btn .batch-icon, .btn .fa { font-size: 16px; line-height: 1; }
.btn:focus { box-shadow: var(--sd-focus) !important; outline: 0; }

/* Bouton ne contenant qu'une icône : rond (ajouter la classe .btn-icon) */
.btn.btn-icon { width: 44px; padding: 0; }
.btn.btn-icon .batch-icon, .btn.btn-icon .fa { font-size: 17px; }
.btn-sm.btn-icon { width: 40px; }

button:focus { outline: 0; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--sd-navy); outline-offset: 2px; }
.btn-sm, .btn-group-sm > .btn { font-size: 13px; height: 40px; padding: 0 16px; }
.btn-lg, .btn-group-lg > .btn { font-size: 14.5px; height: 52px; padding: 0 24px; }
.btn-block { display: flex; width: 100%; }

/* "btn-gradient" et "waves" (MDB / QuillPro) : neutralisés */
.btn-gradient, .bg-gradient, .gradient { background-image: none !important; }
.waves-effect { overflow: visible; }
.waves-ripple { display: none !important; }

/* Action principale : rose, texte blanc, survol bleu nuit */
.btn-primary,
.btn-primary.dropdown-toggle,
.btn-dark,
.btn-info,
.btn-success {
  background: var(--sd-rose);
  border-color: var(--sd-rose);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle,
.btn-dark:hover, .btn-dark:focus,
.btn-info:hover, .btn-info:focus,
.btn-success:hover, .btn-success:focus,
.btn-success:not(:disabled):not(.disabled):active {
  background: var(--sd-navy);
  border-color: var(--sd-navy);
  color: #fff;
}
.btn-primary.disabled, .btn-primary:disabled {
  background: var(--sd-rose);
  border-color: var(--sd-rose);
  opacity: .5;
}

/* Secondaire : blanc, fin contour */
.btn-secondary, .btn-light, .btn-default,
.btn-outline-secondary, .btn-outline-primary, .btn-outline-dark, .btn-outline-success, .btn-outline-info {
  background: var(--sd-white);
  border-color: var(--sd-line-2);
  color: var(--sd-ink);
}
.btn-secondary:hover, .btn-light:hover, .btn-default:hover,
.btn-outline-secondary:hover, .btn-outline-primary:hover, .btn-outline-dark:hover, .btn-outline-success:hover, .btn-outline-info:hover,
.btn-secondary:focus, .btn-light:focus, .btn-outline-secondary:focus, .btn-outline-primary:focus,
.btn-secondary:not(:disabled):not(.disabled):active, .btn-light:not(:disabled):not(.disabled):active,
.show > .btn-secondary.dropdown-toggle, .show > .btn-light.dropdown-toggle {
  background: var(--sd-hover);
  border-color: var(--sd-line-2);
  color: var(--sd-ink);
}

/* Contour blanc (sur bloc coloré) */
.btn-outline-light {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}
.btn-outline-light:hover, .btn-outline-light:focus { background: #fff; color: var(--sd-ink); border-color: #fff; }

/* Blanc plein (sur bloc coloré) */
.btn-white {
  background: #fff;
  border-color: #fff;
  color: var(--sd-ink);
}
.btn-white:hover, .btn-white:focus { background: var(--sd-navy); border-color: var(--sd-navy); color: #fff; }

.btn-warning { background: var(--sd-sand); border-color: var(--sd-sand); color: var(--sd-sand-ink); }
.btn-warning:hover, .btn-warning:focus { background: #E8CFC3; border-color: #E8CFC3; color: var(--sd-sand-ink); }

.btn-danger { background: var(--sd-red); border-color: var(--sd-red); color: #fff; }
.btn-danger:hover, .btn-danger:focus, .btn-danger:not(:disabled):not(.disabled):active { background: #8E2626; border-color: #8E2626; color: #fff; }
.btn-outline-danger { color: var(--sd-red); border-color: rgba(184, 50, 50, .35); background: #fff; }
.btn-outline-danger:hover { background: var(--sd-red-soft); color: var(--sd-red); border-color: rgba(184, 50, 50, .5); }

.btn-link { color: var(--sd-sage-deep); font-weight: 600; padding-left: 6px; padding-right: 6px; height: auto; }
.btn-link:hover { color: var(--sd-ink); text-decoration: underline; }

/* Badges / pastilles ------------------------------------------------------ */
.badge {
  font-family: var(--sd-font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 0 10px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--sd-radius-pill);
  letter-spacing: 0;
  vertical-align: middle;
  white-space: nowrap;
}
.badge-primary   { background: var(--sd-rose-soft); color: var(--sd-rose-ink); }
.badge-success   { background: var(--sd-sage);      color: #fff; }
.badge-info      { background: var(--sd-sage-soft); color: var(--sd-sage-ink); }
.badge-warning   { background: var(--sd-sand);      color: var(--sd-sand-ink); }
.badge-danger    { background: var(--sd-rose-soft); color: var(--sd-rose-ink); }
.badge-secondary, .badge-default, .badge-light { background: var(--sd-neutral); color: var(--sd-grey-ink); }
.badge-dark      { background: var(--sd-navy); color: #fff; }
.badge-pill      { border-radius: var(--sd-radius-pill); }
a.badge:hover { filter: brightness(.97); }

/* Pastille avec point d'état */
.sd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--sd-radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--sd-neutral);
  color: var(--sd-grey-ink);
}
.sd-chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .85;
}
.sd-chip--plain::before { display: none; }
.sd-chip--ok      { background: var(--sd-sage);      color: #fff; }
.sd-chip--soft    { background: var(--sd-sage-soft); color: var(--sd-sage-ink); }
.sd-chip--warn    { background: var(--sd-sand);      color: var(--sd-sand-ink); }
.sd-chip--bad     { background: var(--sd-rose-soft); color: var(--sd-rose-ink); }
.sd-chip--navy    { background: var(--sd-navy);      color: #fff; }
.sd-chip--grey    { background: var(--sd-grey);      color: var(--sd-grey-ink); }
.sd-chip--rose    { background: var(--sd-rose-soft); color: var(--sd-rose-ink); }
.sd-chip--sand    { background: var(--sd-sand);      color: var(--sd-sand-ink); }
.sd-code {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--sd-grey);
  color: var(--sd-grey-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: .04em;
}

/* Cartes ------------------------------------------------------------------ */
.card {
  background: var(--sd-white);
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-card);
  box-shadow: none;
  color: var(--sd-ink);
}
.card-header {
  position: relative;
  background: transparent;
  border-bottom: 1px solid var(--sd-line);
  padding: 22px 28px;
  font-family: var(--sd-font-display);
  font-size: 24px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--sd-ink);
  border-radius: var(--sd-radius-card) var(--sd-radius-card) 0 0 !important;
  min-height: 72px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.card-header .header-btn-block {
  position: static;
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.card-header .header-btn-block .btn { margin: 0; }
.card-header .header-btn-block .btn .batch-icon { color: inherit; }

.card-body { padding: 28px; }
.card-footer {
  background: var(--sd-zebra);
  border-top: 1px solid var(--sd-line);
  padding: 18px 28px;
  border-radius: 0 0 var(--sd-radius-card) var(--sd-radius-card) !important;
}
.card-title {
  font-family: var(--sd-font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
}
.card-text { color: var(--sd-ink-2); }
.card-img-top { border-radius: var(--sd-radius-card) var(--sd-radius-card) 0 0; }
.card > a:not(.btn) { color: inherit; }

/* Blocs de couleur (texte blanc) */
.sd-block { border-radius: var(--sd-radius-card); padding: 28px; color: #fff; }
.sd-block--sage { background: var(--sd-sage); }
.sd-block--rose { background: var(--sd-rose); }
.sd-block--navy { background: var(--sd-navy); }
.sd-block--grey { background: var(--sd-grey); color: var(--sd-ink); }
.sd-block--sand { background: var(--sd-sand); color: var(--sd-ink); }
.sd-block h1, .sd-block h2, .sd-block h3, .sd-block h4 { color: inherit; }
.sd-block .sd-eyebrow { color: rgba(255, 255, 255, .85); }
.sd-block--grey .sd-eyebrow, .sd-block--sand .sd-eyebrow { color: var(--sd-sage-deep); }
.sd-block p { color: inherit; opacity: .88; }

/* Tableaux ---------------------------------------------------------------- */
.table { color: var(--sd-ink); margin-bottom: 0; }
.table th, .table td {
  padding: 16px 16px;
  border-top: 1px solid var(--sd-line);
  vertical-align: middle;
}
.table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sd-sage-deep);
  border-top: 0;
  border-bottom: 1px solid var(--sd-line);
  background: transparent;
  white-space: nowrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.table .thead-light th { background: var(--sd-zebra); color: var(--sd-sage-deep); border-color: var(--sd-line); }
.table tbody tr:nth-child(even) > td,
.table-striped tbody tr:nth-of-type(odd) > td { background-color: transparent; }
.table tbody tr:nth-child(even) { background-color: var(--sd-zebra); }
.table-hover tbody tr:hover { background-color: var(--sd-hover); color: var(--sd-ink); }
.table-bordered, .table-bordered th, .table-bordered td { border-color: var(--sd-line); }
.table tbody tr:first-child td { border-top: 0; }
.table td .btn + .btn { margin-left: 6px; }
.table a:not(.btn):not(.badge) { color: var(--sd-ink); font-weight: 600; }
.table a:not(.btn):not(.badge):hover { color: var(--sd-sage-deep); }

/* Tableau bord à bord dans une carte */
.card .card-table { padding: 0; }
.card .card-table .table thead th:first-child,
.card .card-table .table tbody td:first-child,
.card .card-table .table tbody th:first-child { padding-left: 28px; }
.card .card-table .table thead th:last-child,
.card .card-table .table tbody td:last-child { padding-right: 28px; }
.card .card-table .table-responsive { border-radius: 0; }

/* Cellule « identité » : avatar + nom + sous-ligne */
.sd-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.sd-cell-avatar {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--sd-sage-soft);
  color: var(--sd-sage-ink);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--sd-sage-soft);
}
.sd-cell-avatar--rose { background: var(--sd-rose-soft); color: var(--sd-rose-ink); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--sd-rose-soft); }
.sd-cell-avatar--sand { background: var(--sd-sand); color: var(--sd-sand-ink); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--sd-sand); }
.sd-cell-avatar--grey { background: var(--sd-grey); color: var(--sd-grey-ink); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--sd-grey); }
.sd-cell-avatar--navy { background: var(--sd-navy); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--sd-rose); }
.sd-cell-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sd-cell-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sd-cell-title { font-size: 14.5px; font-weight: 600; color: var(--sd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-cell-sub { font-size: 12.5px; color: var(--sd-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Vignette carrée (document, produit) */
.sd-thumb {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sd-sage-soft);
  color: var(--sd-sage-ink);
  font-size: 19px;
  overflow: hidden;
}
.sd-thumb img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; display: block; }
.sd-thumb--rose { background: var(--sd-rose-soft); color: var(--sd-rose-ink); }
.sd-thumb--sand { background: var(--sd-sand); color: var(--sd-sand-ink); }
.sd-thumb--grey { background: var(--sd-grey); color: var(--sd-grey-ink); }
.sd-thumb--sage { background: var(--sd-sage); color: #fff; }
.sd-qr-thumb {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 12px;
  border: 1px solid var(--sd-line-2);
  background: #fff;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sd-qr-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sd-cell-sub a, a.sd-cell-sub { color: var(--sd-ink-2); }
a.sd-cell-sub:hover { color: var(--sd-ink); }

/* Boutons d'action ronds dans les lignes */
.sd-icon-btn {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sd-line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--sd-ink);
  font-size: 16px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.sd-icon-btn:hover, .sd-icon-btn:focus { background: var(--sd-hover); border-color: rgba(11, 24, 38, .22); color: var(--sd-ink); }
.sd-icon-btn .sd-svg, .btn .sd-svg { width: 18px; height: 18px; flex: none; }
.btn-sm .sd-svg { width: 16px; height: 16px; }
.sd-icon-btn--danger { color: var(--sd-red); border-color: rgba(184, 50, 50, .3); }
.sd-icon-btn--danger:hover { background: var(--sd-red-soft); border-color: rgba(184, 50, 50, .45); color: var(--sd-red); }

/* Formulaires ------------------------------------------------------------- */
label, .col-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sd-ink);
  margin-bottom: 8px;
}
label .sd-req, .sd-req { color: var(--sd-rose-ink); }
.form-group > label, .form-group > .sd-field-title { display: block; }
.custom-select { display: block; }
.form-control, .custom-select {
  height: 48px;
  padding: 10px 16px;
  font-family: var(--sd-font-ui);
  font-size: 14.5px;
  color: var(--sd-ink);
  background-color: var(--sd-white);
  border: 1px solid var(--sd-line-3);
  border-radius: var(--sd-radius-control);
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.form-control { height: auto; min-height: 120px; padding: 14px 16px; line-height: 1.5; }
.form-control:focus, .custom-select:focus {
  border-color: var(--sd-navy);
  box-shadow: var(--sd-focus);
  background-color: #fff;
  color: var(--sd-ink);
}
.form-control::placeholder { color: var(--sd-ink-3); }
.form-control:disabled, .form-control[readonly] { background: var(--sd-zebra); color: var(--sd-ink-2); }
.form-control-sm { height: 40px; padding: 6px 12px; font-size: 13.5px; }
.form-control-lg { height: 52px; font-size: 15.5px; }
.form-group { margin-bottom: 22px; }
.form-text { color: var(--sd-ink-3); font-size: 12.5px; }
.input-group-text {
  background: var(--sd-zebra);
  border: 1px solid var(--sd-line-3);
  color: var(--sd-ink-2);
  border-radius: var(--sd-radius-control);
  font-size: 13.5px;
}
.custom-select {
  background: var(--sd-white) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3e%3cpath fill='none' stroke='%230B1826' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='.55' d='M6 9l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 14px center;
  padding-right: 40px;
}
.custom-control-label { position: relative; font-weight: 500; color: var(--sd-ink); padding-top: 2px; }
.custom-control-label::before { border: 1.5px solid rgba(11, 24, 38, .3); background: #fff; width: 20px; height: 20px; top: 2px; left: -26px; }
.custom-control-label::after { width: 20px; height: 20px; top: 2px; left: -26px; }
.custom-control { padding-left: 26px; min-height: 24px; }
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--sd-navy);
  border-color: var(--sd-navy);
}
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: var(--sd-focus); }
.custom-checkbox .custom-control-label::before { border-radius: 6px; }
.custom-radio .custom-control-label::before { border-radius: 50%; }
.custom-switch .custom-control-label::before { border-radius: var(--sd-radius-pill); }
.custom-file-label { border-color: var(--sd-line-3); border-radius: var(--sd-radius-control); height: 48px; line-height: 32px; }
.custom-file-label::after { background: var(--sd-zebra); color: var(--sd-ink-2); border-radius: 0 var(--sd-radius-control) var(--sd-radius-control) 0; height: 46px; line-height: 32px; }
.was-validated .form-control:invalid, .form-control.is-invalid { border-color: var(--sd-red); }
.invalid-feedback { color: var(--sd-red); }
.help-block { font-size: 12.5px; color: var(--sd-ink-3); }

/* Pied de formulaire (Annuler / Enregistrer) */
.sd-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px;
  background: var(--sd-zebra);
  border-top: 1px solid var(--sd-line);
  border-radius: 0 0 var(--sd-radius-card) var(--sd-radius-card);
}
.sd-form-foot .sd-form-status { font-size: 13px; color: var(--sd-ink-2); }
.sd-form-foot .sd-form-status.is-dirty { color: var(--sd-rose-ink); font-weight: 600; }
.sd-form-foot .sd-form-actions { display: flex; gap: 10px; margin-left: auto; }

/* Sections de formulaire dans une carte */
.sd-form-card { max-width: 900px; }
.sd-form-section { padding: 26px 28px 8px; }
.sd-form-section + .sd-form-section { border-top: 1px solid var(--sd-line); }
.sd-form-section .sd-eyebrow { font-size: 11px; letter-spacing: .14em; margin-bottom: 4px; }
.sd-form-section h2 { font-size: 24px; margin: 0 0 20px; }
.sd-form-section h2.sd-h-sm { font-size: 22px; }
.sd-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.sd-form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sd-form-grid > .form-group { min-width: 0; }
.sd-form-grid .span-2 { grid-column: span 2; }
.sd-field-help { display: block; margin-top: 6px; font-size: 12.5px; color: var(--sd-ink-3); }
label .sd-opt { font-weight: 500; color: var(--sd-ink-3); }
.sd-input-wrap { position: relative; }
.sd-input-wrap .form-control { padding-right: 44px; }
.sd-input-suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 600; color: var(--sd-ink-3); pointer-events: none; }
@media (max-width: 767.98px) {
  .sd-form-grid, .sd-form-grid--3 { grid-template-columns: 1fr; }
  .sd-form-grid .span-2 { grid-column: auto; }
  .sd-form-section { padding: 20px 20px 4px; }
  .sd-form-foot { padding: 16px 20px; }
}

/* Menus déroulants -------------------------------------------------------- */
.dropdown-menu {
  border: 1px solid var(--sd-line);
  border-radius: 14px;
  box-shadow: var(--sd-shadow-pop);
  padding: 6px;
  font-size: 14px;
  color: var(--sd-ink);
}
.dropdown-item { padding: 9px 12px; border-radius: 9px; color: var(--sd-ink); font-weight: 500; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--sd-hover); color: var(--sd-ink); }
.dropdown-item.active, .dropdown-item:active { background: var(--sd-sage-soft); color: var(--sd-ink); }
.dropdown-divider { border-top-color: var(--sd-line); margin: 6px 4px; }
.dropdown-header { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sd-sage-deep); padding: 8px 12px; }

/* Alertes ----------------------------------------------------------------- */
.alert { border: 0; border-radius: 14px; padding: 14px 18px; font-size: 14px; }
.alert-success { background: var(--sd-sage-soft); color: var(--sd-sage-ink); }
.alert-info    { background: var(--sd-sage-soft); color: var(--sd-sage-ink); }
.alert-warning { background: var(--sd-sand);      color: var(--sd-sand-ink); }
.alert-danger  { background: var(--sd-red-soft);  color: var(--sd-red); }
.alert-primary { background: var(--sd-rose-soft); color: var(--sd-rose-ink); }
.alert-secondary, .alert-light { background: var(--sd-neutral); color: var(--sd-ink-2); }
.alert .close { color: inherit; text-shadow: none; opacity: .6; }

/* Modales ----------------------------------------------------------------- */
.modal-content {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 40px 80px -30px rgba(11, 24, 38, .5);
}
.modal-header { border-bottom: 0; padding: 28px 28px 8px; align-items: flex-start; }
.modal-title { font-family: var(--sd-font-display); font-size: 26px; font-weight: 400; line-height: 1.15; }
.modal-body { padding: 16px 28px 20px; }
.modal-footer { border-top: 0; padding: 0 28px 26px; gap: 10px; }
.modal-footer > * { margin: 0; }
.modal-header .close {
  width: 40px; height: 40px;
  padding: 0; margin: -6px -6px 0 auto;
  border: 1px solid var(--sd-line-2);
  border-radius: 50%;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--sd-ink);
  text-shadow: none;
  opacity: 1;
}
.modal-header .close:hover { background: var(--sd-hover); color: var(--sd-ink); }
.modal-backdrop { background: var(--sd-navy); }
.modal-backdrop.show { opacity: .5; }

/* Onglets ----------------------------------------------------------------- */
.nav-tabs { border-bottom: 1px solid var(--sd-line); gap: 4px; }
.nav-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--sd-ink-2);
  font-weight: 600;
  padding: 10px 14px;
  margin-bottom: -1px;
}
.nav-tabs .nav-link:hover { color: var(--sd-ink); border-color: var(--sd-line-2); }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link { color: var(--sd-ink); background: transparent; border-color: var(--sd-rose); }

/* Filtres en pilules (nav-pills) : actif rose pâle */
.nav-pills { gap: 8px; }
.nav-pills .nav-link {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--sd-radius-pill);
  border: 1px solid var(--sd-line-2);
  background: #fff;
  color: var(--sd-ink);
  font-size: 13.5px;
  font-weight: 600;
}
.nav-pills .nav-link:hover { border-color: rgba(11, 24, 38, .4); }
.nav-pills .nav-link.active { background: var(--sd-rose-soft); color: var(--sd-rose-ink); border-color: var(--sd-rose-line); }
.sd-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px; height: 22px;
  padding: 0 7px;
  border-radius: var(--sd-radius-pill);
  font-size: 11px;
  font-weight: 700;
  background: #F1EBE8;
  color: var(--sd-sage-deep);
}
.nav-pills .nav-link.active .sd-pill-count { background: rgba(142, 58, 78, .14); color: var(--sd-rose-ink); }

/* Pagination -------------------------------------------------------------- */
.pagination { gap: 4px; }
.page-link { border: 1px solid transparent; border-radius: 10px !important; color: var(--sd-ink-2); font-weight: 600; padding: 7px 12px; margin: 0; background: transparent; }
.page-link:hover { background: var(--sd-hover); color: var(--sd-ink); border-color: transparent; }
.page-item.active .page-link { background: var(--sd-rose-soft); border-color: var(--sd-rose-line); color: var(--sd-rose-ink); }
.page-item.disabled .page-link { color: var(--sd-ink-3); background: transparent; }

/* Listes ------------------------------------------------------------------ */
.list-group-item { border-color: var(--sd-line); padding: 14px 18px; color: var(--sd-ink); }
.list-group-item.active { background: var(--sd-sage-soft); border-color: var(--sd-line); color: var(--sd-ink); }
.list-group-item-action:hover { background: var(--sd-hover); color: var(--sd-ink); }

/* Barres de progression --------------------------------------------------- */
.progress { height: 6px; border-radius: var(--sd-radius-pill); background: #F1EBE8; }
.progress-bar { background: var(--sd-sage); }

/* Tooltips / popovers ----------------------------------------------------- */
.tooltip-inner { background: var(--sd-navy); border-radius: 8px; font-size: 12.5px; padding: 6px 10px; }

/* Infobulle maison (app.js) : position fixe calculée en coordonnées écran, immune au zoom */
.sd-tooltip {
  position: fixed;
  z-index: 1080;
  max-width: 260px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--sd-navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 10px));
  transition: opacity .12s ease;
}
.sd-tooltip.is-visible { opacity: 1; }
.sd-tooltip.is-below { transform: translate(-50%, 10px); }
.sd-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--sd-tip-arrow, 50%);
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--sd-navy);
  border-bottom: 0;
}
.sd-tooltip.is-below::after { top: auto; bottom: 100%; border-top: 0; border-bottom: 6px solid var(--sd-navy); }
[data-toggle="tooltip"] { cursor: default; outline: 0; }
.popover { border: 1px solid var(--sd-line); border-radius: 14px; box-shadow: var(--sd-shadow-pop); }
.popover-header { background: var(--sd-zebra); border-bottom-color: var(--sd-line); font-family: var(--sd-font-display); }

/* Couleurs utilitaires remappées sur la charte ----------------------------- */
.text-primary   { color: var(--sd-rose-ink) !important; }
.text-secondary { color: var(--sd-ink-2) !important; }
.text-muted     { color: var(--sd-ink-3) !important; }
.text-success   { color: var(--sd-sage-deep) !important; }
.text-info      { color: var(--sd-sage-deep) !important; }
.text-warning   { color: var(--sd-sand-ink) !important; }
.text-danger    { color: var(--sd-red) !important; }
.text-dark      { color: var(--sd-ink) !important; }

.bg-primary   { background-color: var(--sd-rose) !important; }
.bg-secondary { background-color: var(--sd-sage-deep) !important; }
.bg-success   { background-color: var(--sd-sage) !important; }
.bg-info      { background-color: var(--sd-sage-soft) !important; }
.bg-warning   { background-color: var(--sd-sand) !important; }
.bg-danger    { background-color: var(--sd-red) !important; }
.bg-light     { background-color: var(--sd-bg) !important; }
.bg-dark      { background-color: var(--sd-navy) !important; }

.border { border-color: var(--sd-line) !important; }
.rounded { border-radius: var(--sd-radius-control) !important; }

/* --------------------------------------------------------------------------
   4. Classes héritées de QuillPro encore utilisées par les pages
   -------------------------------------------------------------------------- */
.heading, .boldness-medium { font-weight: 600 !important; }
.boldness-light { font-weight: 400 !important; }
.subtext { font-size: 13px; color: var(--sd-ink-2); }

.batch-icon-lg  { font-size: 2.2rem !important; }
.batch-icon-xl  { font-size: 2.8rem !important; }
.batch-icon-xxl { font-size: 3.6rem !important; }

.profile-picture { width: 44px; height: 44px; border-radius: 50%; position: relative; overflow: hidden; flex: 0 0 auto; }
.profile-picture img, img.list-thumbnail { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-picture.profile-picture-lg { width: 140px; height: 140px; margin: 0 auto; }
.profile-picture.profile-picture-lg img { border: 4px solid #fff; }

.clickable { cursor: pointer; transition: background-color .15s ease; }
.clickable:hover, .clickable:focus { background-color: var(--sd-hover); }

.card.card-xs, .card.card-md { height: auto; min-height: 0; overflow: visible; }

.card .card-media-list { padding: 8px 0 16px; }
.card .card-media-list .media { padding: 10px 28px; }
.card .card-media-list .media .heading { font-weight: 600; }

/* Liste de tâches (QuillPro) */
.card .card-task-list { padding: 8px 0 16px; }
.card .card-task-list .task-list { padding: 0; overflow: hidden; }
.card .card-task-list .task-list .task-list-item { padding: 0; position: relative; }
.card .card-task-list .task-list .task-list-item .custom-control { margin: 0; padding: 0; }
.card .card-task-list .task-list .task-list-item .custom-control label.custom-control-label { display: block; padding: 12px 28px 12px 60px; margin: 0; font-weight: 500; color: var(--sd-ink); }
.card .card-task-list .task-list .task-list-item .custom-control label.custom-control-label::before,
.card .card-task-list .task-list .task-list-item .custom-control label.custom-control-label::after { top: 14px; left: 28px; }
.card .card-task-list .task-list .task-list-item .custom-control.active .custom-control-wrap { opacity: .5; text-decoration: line-through; }
.card .card-task-list .task-list .task-list-item .task-item-details { padding: 12px 28px 14px 60px; display: none; color: var(--sd-ink-2); }
.card .card-task-list .task-list .task-list-item .task-item-details:empty { display: none; }
.card .card-task-list .task-list .task-list-item .task-item-controls { position: absolute; right: 28px; top: 6px; opacity: 0; transition: opacity .15s ease; }
.card .card-task-list .task-list .task-list-item:hover .task-item-controls { opacity: 1; }
.card .card-task-list .task-list .task-list-item .task-item-users { position: absolute; right: 84px; top: 6px; }
.card .card-task-list .task-list .task-list-item .task-item-users .assigned-user { display: inline-block; }
.card .card-task-list .task-list .task-list-item .task-item-users .assigned-user .profile-picture { width: 30px; height: 30px; }
.card .card-header .task-list-stats { font-family: var(--sd-font-ui); font-size: 13px; font-weight: 500; color: var(--sd-ink-2); }

/* Légendes (calendrier) */
.legend-block-item { padding: 2px 0; }
.legend-block-item .legend-block-color { display: inline-block; vertical-align: middle; }
.legend-block-item .legend-block-text { display: inline-block; margin-left: 8px; font-size: 13px; color: var(--sd-ink-2); vertical-align: middle; }
.legend-block-color .legend-block-color-box { width: 36px; height: 36px; border-radius: 10px; border: 2px solid #fff; display: inline-flex; align-items: center; justify-content: center; }
.legend-block-color .legend-block-color-box i { color: #fff; }

/* Prix (marketplace) */
.price-block { font-size: 2rem; }
.price-block .price-new { font-weight: 400; font-family: var(--sd-font-display); }
.price-block .price-old { font-size: 60%; color: var(--sd-red); text-decoration: line-through; margin-left: 10px; }
.price-block .price-discount { font-size: 1rem; color: var(--sd-sage-deep); }

.highlight-color-blue { color: #fff !important; background-color: var(--sd-rose) !important; }

.card.lightbox { transition: transform .15s ease; }
.card.lightbox:hover { transform: translateY(-2px); }
.card .card-body .card-chart, .card .card-body .card-chart canvas { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   5. Tuiles & cartes du tableau de bord
   -------------------------------------------------------------------------- */
/* Tuile indicateur : picto rond à gauche, chiffre serif à droite */
.sd-tiles > [class*="col-"] { display: flex; }
.sd-tiles .sd-tile, .sd-tiles > [class*="col-"] > .card { flex: 1 1 auto; }
.card.sd-stat { flex-direction: row; border-radius: var(--sd-radius-card); }
.sd-tile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: var(--sd-radius-card);
  background: var(--sd-sage);
  color: #fff;
  min-height: 112px;
}
.sd-tile--sage { background: var(--sd-sage); color: #fff; }
.sd-tile--rose { background: var(--sd-rose); color: #fff; }
.sd-tile--sand { background: var(--sd-sand); color: var(--sd-ink); }
.sd-tile--grey { background: var(--sd-grey); color: var(--sd-ink); }
.sd-tile-icon {
  flex: none;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: inherit;
}
.sd-tile--sand .sd-tile-icon,
.sd-tile--grey .sd-tile-icon { background: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .95); color: var(--sd-ink); }
.sd-tile--grey .sd-tile-icon { border-color: rgba(229, 144, 161, .45); color: var(--sd-rose); }
.sd-tile-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sd-tile-number { font-family: var(--sd-font-display); font-size: 42px; line-height: 1; color: inherit; }
.sd-tile-label { font-size: 14px; font-weight: 600; line-height: 1.25; color: inherit; }
.sd-tile-sub { font-size: 12.5px; font-weight: 500; color: inherit; opacity: .85; }
.sd-tile--sand .sd-tile-sub, .sd-tile--grey .sd-tile-sub { color: var(--sd-ink-2); opacity: 1; }

/* Tuile cliquable (ex. tickets → page Tickets) */
a.sd-tile, a.sd-tile:hover, a.sd-tile:focus { text-decoration: none; }
a.sd-tile { transition: transform .15s ease, box-shadow .15s ease; }
a.sd-tile:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11, 24, 38, .08); }
a.sd-tile:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(229, 144, 161, .45); }

/* Valeur en cours de chargement (compteur Notion chargé après la page) */
.sd-tile-number.is-loading { display: inline-block; min-width: 1.2em; color: transparent; border-radius: 8px; background: rgba(11, 24, 38, .08); animation: sd-pulse 1.2s ease-in-out infinite; }
.sd-tile--sage .sd-tile-number.is-loading, .sd-tile--rose .sd-tile-number.is-loading { background: rgba(255, 255, 255, .35); }
@keyframes sd-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Compatibilité : anciennes tuiles .card-tile des pages non encore refaites */
.card.card-tile { background: var(--sd-sage) !important; color: #fff; border: 0; }
.card.card-tile > .card-body { display: flex; align-items: center; gap: 18px; padding: 24px !important; text-align: left; }
.card.card-tile .tile-left { position: static; flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.6); display: inline-flex; align-items: center; justify-content: center; }
.card.card-tile .tile-left .batch-icon, .card.card-tile .tile-left .batch-icon.batch-icon-xxl { font-size: 26px !important; color: #fff; opacity: 1; }
.card.card-tile.bg-warning { background: var(--sd-rose) !important; }
.card.card-tile.bg-primary { background: var(--sd-sand) !important; color: var(--sd-ink); }
.card.card-tile.bg-primary .tile-left { background: rgba(255,255,255,.7); }
.card.card-tile.bg-primary .tile-left .batch-icon { color: var(--sd-ink); }
.card.card-tile .tile-right { text-align: left; line-height: 1.25; min-width: 0; }
.card.card-tile .tile-right .tile-number { font-family: var(--sd-font-display); font-size: 42px; font-weight: 400; color: inherit; margin-bottom: 2px; line-height: 1; }
.card.card-tile .tile-right .tile-description { font-size: 14px; font-weight: 600; color: inherit; }

/* Bandeau de 3 indicateurs (pages admin) */
.sd-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-card);
  overflow: hidden;
  margin-bottom: 28px;
}
.sd-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  min-width: 0;
}
.sd-stat + .sd-stat { border-left: 1px solid var(--sd-line); }
.sd-stat-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--sd-sage-soft);
  color: var(--sd-sage-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.sd-stat-icon--rose { background: var(--sd-rose-soft); color: var(--sd-rose-ink); }
.sd-stat-icon--sand { background: var(--sd-sand); color: var(--sd-sand-ink); }
.sd-stat-icon--navy { background: var(--sd-navy); color: var(--sd-sage); }
.sd-stat-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sd-sage-deep); }
.sd-stat-value { font-family: var(--sd-font-display); font-size: 28px; line-height: 1; color: var(--sd-ink); }
.sd-stat-value--text { font-size: 22px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Carte d'accueil : photo + message */
.sd-welcome { display: flex; flex-direction: row; flex-wrap: wrap; overflow: hidden; }
.sd-welcome-photo {
  flex: 1 1 260px;
  max-width: 320px;
  min-height: 280px;
  position: relative;
  background: var(--sd-sand);
}
.sd-welcome-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-welcome-body { flex: 1 1 320px; min-width: 0; padding: 32px 34px; display: flex; flex-direction: column; gap: 12px; }
.sd-welcome-body .sd-eyebrow { margin-bottom: 4px; }
.sd-welcome-body h2 { font-size: 28px; margin: 0 0 4px; }
.sd-welcome-body p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--sd-ink-2); max-width: 520px; }
.sd-welcome-sign {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--sd-line);
  font-size: 14px;
  font-weight: 600;
  color: var(--sd-ink);
}
.sd-welcome-sign .sd-cell-avatar { width: 36px; height: 36px; font-size: 11px; }
.sd-welcome-sign .sd-cell-sub { font-weight: 400; }

/* Sport & bien-être (maquette Sport.dc.html) */
.sd-sport { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.sd-sport-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sd-sport-side { flex: 1 1 320px; max-width: 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 1199.98px) { .sd-sport-side { max-width: none; } }

/* Pastille d'état dans l'en-tête */
.sd-status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 14px; border-radius: var(--sd-radius-pill);
  background: var(--sd-sage-soft); color: #3F5650; font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
.sd-status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sd-sage-deep); box-shadow: 0 0 0 3px #fff; }
.sd-status-pill--off { background: var(--sd-grey-soft, #EAEDF2); color: var(--sd-ink-2); }
.sd-status-pill--off .sd-status-dot { background: #9AA3AF; }

/* Carte promo sauge */
.sd-promo { display: flex; flex-wrap: wrap; overflow: hidden; background: var(--sd-sage); color: #fff; border-radius: var(--sd-radius); }
.sd-promo-body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 36px 36px 34px; }
.sd-promo-body .sd-eyebrow { color: rgba(255, 255, 255, .85); }
.sd-promo-body h2 { margin: 0; font-size: 34px; line-height: 1.1; color: #fff; }
.sd-promo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sd-promo-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--sd-radius-pill); background: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 600; color: var(--sd-ink); }
.sd-promo-chip--more { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.sd-promo-photo { flex: 1 1 300px; max-width: 360px; min-height: 260px; position: relative; background: var(--sd-sage-soft); }
.sd-promo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% center; display: block; }
@media (max-width: 767.98px) { .sd-promo-photo { max-width: none; min-height: 200px; } }

/* Mode d'emploi */
.sd-howto { display: flex; flex-direction: column; gap: 26px; padding: 34px 40px 36px; }
.sd-howto .sd-section-head { margin: 0; }
.sd-howto-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.sd-howto-steps li { display: flex; gap: 18px; align-items: flex-start; }
.sd-howto-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sd-navy); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sd-howto-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.sd-howto-text strong { font-size: 16px; font-weight: 600; color: var(--sd-ink); }
.sd-howto-text > span { font-size: 14px; line-height: 1.55; color: var(--sd-ink-2); }
.sd-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 520px; margin-top: 10px; }
.sd-store { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 18px 16px; background: #fff; border: 1px solid rgba(11, 24, 38, .08); border-radius: 16px; transition: border-color .15s ease; }
.sd-store:hover, .sd-store:focus { border-color: var(--sd-sage); text-decoration: none; }
.sd-store-qr { width: 140px; height: 140px; display: block; object-fit: contain; }
.sd-store-badge { height: 44px; width: auto; display: block; }
@media (max-width: 575.98px) { .sd-howto { padding: 26px 22px 28px; } .sd-stores { grid-template-columns: 1fr; } }

/* Carte compte (rose) et gestion */
.sd-account { display: flex; flex-direction: column; gap: 22px; padding: 30px 28px 28px; background: var(--sd-rose); color: #fff; border-radius: var(--sd-radius); }
.sd-account .sd-eyebrow { color: rgba(255, 255, 255, .85); }
.sd-account h2 { margin: 4px 0 0; font-size: 28px; line-height: 1.15; color: #fff; }
.sd-account-facts { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.sd-account-facts > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.sd-account-facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.sd-account-facts dt { margin: 0; font-weight: 400; color: rgba(255, 255, 255, .85); }
.sd-account-facts dd { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.sd-account-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.sd-account-note { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.sd-account .btn-white { align-self: stretch; }
.sd-manage { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px; }
.sd-manage p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--sd-ink-2); }
.sd-manage .btn { align-self: flex-start; }

/* Accès rapides */
.sd-quick-card { padding: 28px 20px 20px; }
.sd-quick-card .sd-eyebrow { padding: 0 12px 12px; font-size: 11px; letter-spacing: .14em; }
.sd-quick { display: flex; flex-direction: column; gap: 2px; }
.sd-quick-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sd-ink);
  transition: background-color .15s ease;
}
.sd-quick-link:hover { background: var(--sd-hover); color: var(--sd-ink); }
.sd-quick-icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sd-sage-soft);
  color: var(--sd-sage-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.sd-quick-link > span:nth-child(2) { flex: 1; }
.sd-quick-arrow { color: var(--sd-ink-3); font-size: 16px; transition: transform .15s ease, color .15s ease; }
.sd-quick-link:hover .sd-quick-arrow { color: var(--sd-ink); transform: translateX(3px); }

/* Welcome Kit : carte cliquable (ancienne version, conservée) */
a.sd-kit { display: block; color: var(--sd-ink); transition: border-color .15s ease, background-color .15s ease; }
a.sd-kit:hover, a.sd-kit:focus { border-color: var(--sd-sage); background: var(--sd-zebra); color: var(--sd-ink); }
.sd-kit .card-body { display: flex; align-items: center; gap: 18px; padding: 20px 24px; }
.sd-kit-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; background: var(--sd-sage-soft); color: var(--sd-sage-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.sd-kit-text { flex: 1 1 auto; min-width: 0; }
.sd-kit-text h4 { margin: 0 0 2px; font-size: 20px; }
.sd-kit-text p { margin: 0; color: var(--sd-ink-2); font-size: 13.5px; }
.sd-kit-arrow { font-size: 18px; color: var(--sd-ink-3); transition: transform .15s ease, color .15s ease; }
a.sd-kit:hover .sd-kit-arrow { color: var(--sd-ink); transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. DataTables
   -------------------------------------------------------------------------- */
.dataTables_wrapper { padding: 0; }
.dataTables_wrapper .row { margin: 0; }
.dataTables_wrapper .row > [class*="col-"] { padding: 0; }
.dataTables_wrapper .row:first-child { padding: 18px 28px; align-items: center; border-bottom: 1px solid var(--sd-line); }
.dataTables_wrapper .row:last-child { padding: 16px 28px; align-items: center; }
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--sd-ink-2);
}
.dataTables_wrapper .dataTables_length select { width: auto; height: 44px; padding: 4px 36px 4px 14px; border-radius: var(--sd-radius-pill); }
.dataTables_wrapper .dataTables_filter { text-align: right; }
.dataTables_wrapper .dataTables_filter input {
  height: 46px;
  width: 320px;
  max-width: 100%;
  margin-left: 0 !important;
  border-radius: var(--sd-radius-control);
  padding-left: 16px;
}
.dataTables_wrapper .dataTables_info { font-size: 13px; color: var(--sd-ink-2); padding-top: 0; }
.dataTables_wrapper .dataTables_paginate { justify-content: flex-end; display: flex; }
table.dataTable { border-collapse: collapse !important; margin: 0 !important; }
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc { background-image: none; padding-right: 22px; position: relative; }
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--sd-sage-deep);
  border-bottom: 1.5px solid var(--sd-sage-deep);
  transform: translateY(-70%) rotate(45deg);
  opacity: .45;
}
table.dataTable thead .sorting_asc::after { transform: translateY(-30%) rotate(-135deg); opacity: 1; border-color: var(--sd-ink); }
table.dataTable thead .sorting_desc::after { opacity: 1; border-color: var(--sd-ink); }
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before { background: var(--sd-sage-deep); border: 0; box-shadow: none; }
table.dataTable tbody tr.odd, table.dataTable tbody tr.even { background-color: transparent; }
table.dataTable tbody tr.even { background-color: var(--sd-zebra); }

/* DataTables — habillage « sd » (dom personnalisé des pages admin) */
.sd-dt-top, .sd-dt-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px;
}
.sd-dt-top { border-bottom: 1px solid var(--sd-line); }
.sd-dt-bottom { border-top: 1px solid var(--sd-line); font-size: 13px; color: var(--sd-ink-2); }
.sd-dt-top .dataTables_filter label, .sd-dt-top .dataTables_length label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 600; color: var(--sd-ink-2); }
.sd-dt-top .dataTables_filter input { height: 44px; width: 300px; max-width: 100%; margin: 0 !important; border-radius: var(--sd-radius-pill); padding: 0 18px; }
.sd-dt-top .dataTables_length select { height: 40px; padding: 4px 34px 4px 14px; border-radius: var(--sd-radius-pill); }
.sd-dt-bottom .dataTables_paginate { margin: 0; }
.sd-dt-bottom .dataTables_paginate .paginate_button { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; margin: 0 2px; border: 1px solid transparent !important; border-radius: 10px !important; background: transparent !important; color: var(--sd-ink-2) !important; font-weight: 600; font-size: 13px; cursor: pointer; }
.sd-dt-bottom .dataTables_paginate .paginate_button:hover { background: var(--sd-hover) !important; color: var(--sd-ink) !important; box-shadow: none; }
.sd-dt-bottom .dataTables_paginate .paginate_button.current { background: var(--sd-rose-soft) !important; border-color: var(--sd-rose-line) !important; color: var(--sd-rose-ink) !important; }
.sd-dt-bottom .dataTables_paginate .paginate_button.disabled { opacity: .4; cursor: default; }
.sd-filter-cell, th[data-filter-col] { display: none !important; }
.table-datatable th, .table-datatable td { padding-left: 12px; padding-right: 12px; }
.table-datatable thead th { white-space: normal; }
.card .card-table .table-datatable thead th:first-child, .card .card-table .table-datatable tbody td:first-child { padding-left: 24px; }
.card .card-table .table-datatable thead th:last-child, .card .card-table .table-datatable tbody td:last-child { padding-right: 24px; }
.sd-has-pills .sd-dt-top .dataTables_filter { display: none; }
@media (max-width: 767.98px) {
  .sd-dt-top, .sd-dt-bottom { padding: 14px 20px; }
  .sd-dt-top .dataTables_filter input { width: 100%; }
  .sd-dt-top .dataTables_filter, .sd-dt-top .dataTables_filter label { width: 100%; }
}

/* --------------------------------------------------------------------------
   7. Pages d'authentification (connexion, mot de passe oublié)
   -------------------------------------------------------------------------- */
.sd-auth { display: flex; min-height: var(--sd-vh); background: #fff; }
.sd-auth-pane {
  flex: 0 1 600px;
  max-width: 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 88px;
  background: #fff;
}
.sd-auth-inner { display: flex; flex-direction: column; gap: 40px; width: 100%; max-width: 400px; margin: 0 auto; }
.sd-auth-logo img { height: 40px; width: auto; display: block; }
.sd-auth-title { font-size: 44px; margin: 0; }
.sd-auth-lead { font-size: 15px; line-height: 1.6; color: var(--sd-ink-2); margin: 0; }
.sd-auth form { display: flex; flex-direction: column; gap: 20px; }
.sd-auth .form-group { margin: 0; }
.sd-auth .form-control { height: 52px; font-size: 15px; }
.sd-auth .sd-field-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sd-auth .sd-field-head label { margin: 0; }
.sd-auth .sd-field-head a { font-size: 12.5px; font-weight: 600; color: var(--sd-sage-deep); }
.sd-auth .sd-field-head a:hover { color: var(--sd-ink); }
.sd-auth .mb-3 { margin-bottom: 14px !important; }
.sd-pw-wrap { position: relative; }
.sd-pw-wrap .form-control { padding-right: 52px; }
.sd-pw-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sd-sage-deep);
  font-size: 18px;
  cursor: pointer;
}
.sd-pw-toggle:hover { background: var(--sd-hover); color: var(--sd-ink); }
.sd-pw-toggle[aria-pressed="true"] { color: var(--sd-ink); }
.sd-auth .custom-control { margin: 2px 0; }
.sd-auth-done { display: flex; flex-direction: column; gap: 20px; }
.sd-auth-done .sd-auth-done-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sd-sage-soft);
  color: var(--sd-sage-deep);
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sd-auth-done h2 { font-size: 28px; margin: 0; }
.sd-auth-done p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--sd-ink-2); }
.sd-auth-done .sd-auth-done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-auth .btn-auth {
  height: 54px;
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--sd-rose);
  border-color: var(--sd-rose);
  color: #fff;
}
.sd-auth .btn-auth:hover, .sd-auth .btn-auth:focus { background: var(--sd-navy); border-color: var(--sd-navy); color: #fff; }
.sd-auth .sd-auth-alt { margin: 4px 0 0; font-size: 14px; color: var(--sd-ink-2); text-align: center; }
.sd-auth .sd-auth-alt a { font-weight: 600; color: var(--sd-sage-deep); }
.sd-auth .sd-auth-alt a:hover { color: var(--sd-ink); }
.sd-auth .alert { margin: 0; }

.sd-auth-photo {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 72px 80px;
  background: var(--sd-navy);
  overflow: hidden;
  color: #fff;
}
.sd-auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.sd-auth-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 24, 38, .04) 0%, rgba(11, 24, 38, .3) 42%, rgba(11, 24, 38, .9) 100%);
}
.sd-auth-photo-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; max-width: 620px; }
.sd-auth-photo-text .sd-eyebrow { color: var(--sd-sage); }
.sd-auth-photo-text h2 { font-size: 50px; line-height: 1.08; color: #fff; margin: 0; }
.sd-auth-photo-text h2 em { font-style: italic; color: var(--sd-sage); }
.sd-auth-photo-text p { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .78); max-width: 520px; margin: 0; }
.sd-auth-foot { margin-top: 18px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; letter-spacing: .02em; color: rgba(255, 255, 255, .6); }

/* --------------------------------------------------------------------------
   8. Divers
   -------------------------------------------------------------------------- */
.sd-empty { padding: 56px 28px; text-align: center; color: var(--sd-ink-2); }
.sd-empty > .batch-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #F3EEE6;
  color: var(--sd-ink);
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.sd-empty-title { font-family: var(--sd-font-display); font-size: 26px; color: var(--sd-ink); margin: 0 0 6px; }
.sd-empty p { max-width: 380px; margin: 0 auto 16px; font-size: 14.5px; line-height: 1.55; }

.main-content .display-1 { margin: 8px 0 0; }

@media print {
  .noprint, .sd-sidebar, .sd-topbar, .sd-backdrop { display: none !important; }
  .sd-main { margin-left: 0; background: #fff; }
  body { background: #fff; }
  .main-content, .main-content.p-5 { padding: 0 !important; max-width: none; }
  .card, .sd-doc { border: 0; padding: 0; max-width: none; }
  .sd-doc-grand { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* --------------------------------------------------------------------------
   8b. Sections de carte, marketplace, panier
   -------------------------------------------------------------------------- */
/* En-tête de section dans une carte : eyebrow + titre serif + méta à droite */
.sd-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--sd-line);
}
.sd-section-head .sd-eyebrow { font-size: 11px; letter-spacing: .14em; margin-bottom: 4px; }
.sd-section-head h2 { font-size: 26px; margin: 0; }
.sd-section-meta { font-size: 13px; color: var(--sd-ink-2); display: flex; align-items: center; gap: 10px; }

/* Grille produits ------------------------------------------------------- */
.sd-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 24px;
}
.sd-product {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-card);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.sd-product:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -26px rgba(11, 24, 38, .4); }
.sd-product-media {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #F3EEE6;
}
.sd-product-media img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; display: block; }
.sd-product-media--photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.sd-mode {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 11px;
  border-radius: var(--sd-radius-pill);
  background: rgba(255, 255, 255, .88);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sd-ink);
}
.sd-product-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.sd-product-body .sd-eyebrow { font-size: 11px; letter-spacing: .14em; }
.sd-product-title { margin: 0; font-family: var(--sd-font-ui); font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--sd-ink); }
.sd-product-title a { color: inherit; }
.sd-product-title a:hover { color: var(--sd-sage-deep); }
.sd-product-desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--sd-ink-2); }
.sd-product-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: auto; padding-top: 16px; }   /* prix sur sa ligne, bouton dessous, à sa taille */

.sd-price { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.sd-price-amount { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--sd-ink); }
.sd-price-unit { font-size: 12.5px; font-weight: 500; color: var(--sd-ink-2); }
.sd-price--lg .sd-price-amount { font-size: 30px; }
.sd-price--lg .sd-price-unit { font-size: 14px; }
.sd-price--sm .sd-price-amount { font-size: 16px; }
.sd-price--sm .sd-price-unit { font-size: 12px; }

/* Bloc « Sur mesure » dans la grille */
.sd-product-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  background: var(--sd-sage);
  color: #fff;
  border-radius: var(--sd-radius-card);
  min-height: 400px;
}
.sd-product-cta .sd-eyebrow { color: rgba(255, 255, 255, .85); font-size: 11px; letter-spacing: .14em; }
.sd-product-cta h2 { font-size: 31px; line-height: 1.15; color: #fff; margin: 14px 0; }
.sd-product-cta p { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .88); margin: 0; }
.sd-product-cta .btn { align-self: flex-start; }

/* Filtres (pilules) au-dessus de la grille */
.sd-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sd-filters .sd-filters-count { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--sd-ink-2); }
.sd-pill {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--sd-radius-pill);
  border: 1px solid var(--sd-line-2);
  background: #fff;
  color: var(--sd-ink);
  font-family: var(--sd-font-ui);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.sd-pill:hover { border-color: rgba(11, 24, 38, .4); color: var(--sd-ink); text-decoration: none; }
.sd-pill.is-active, .sd-pill[aria-pressed="true"] { background: var(--sd-rose-soft); color: var(--sd-rose-ink); border-color: var(--sd-rose-line); }

/* Champ de recherche en pilule (dans .sd-filters) */
.sd-search {
  flex: 1 1 240px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--sd-line-2);
  border-radius: var(--sd-radius-pill);
  background: #fff;
  font-weight: 400;
}
.sd-search:focus-within { border-color: var(--sd-navy); box-shadow: var(--sd-focus); }
.sd-search .batch-icon { color: var(--sd-ink-2); font-size: 17px; }
.sd-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--sd-ink); outline: 0; padding: 0; }
.sd-search input::placeholder { color: var(--sd-ink-3); }
.sd-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Groupe de pastilles dans une cellule */
.sd-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sd-chip .batch-icon { font-size: 14px; line-height: 1; }
.sd-chip--plain .batch-icon { margin-left: -3px; }

/* Pied de tableau */
.sd-table-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px;
  font-size: 13px;
  color: var(--sd-ink-2);
  border-top: 1px solid var(--sd-line);
}

/* Titre dans une barre de filtres */
.sd-filters-title { font-size: 28px; margin: 0 8px 0 0; }

/* Tuiles documents essentiels */
.sd-doc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.sd-doc-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 16px 16px 16px 20px;
  border-radius: var(--sd-radius-card);
  background: var(--sd-grey);
  color: var(--sd-ink);
}
.sd-doc-tile--sage { background: var(--sd-sage); color: #fff; }
.sd-doc-tile--rose { background: var(--sd-rose); color: #fff; }
.sd-doc-tile-icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: inherit;
}
.sd-doc-tile--grey .sd-doc-tile-icon { background: #fff; border-color: rgba(169, 188, 183, .7); color: var(--sd-sage-deep); }
.sd-doc-tile-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sd-doc-tile-body h2 { font-size: 22px; line-height: 1.12; margin: 0; color: inherit; }
.sd-doc-tile-body span { font-size: 12.5px; color: var(--sd-ink-2); }
.sd-doc-tile--sage .sd-doc-tile-body span, .sd-doc-tile--rose .sd-doc-tile-body span { color: rgba(255, 255, 255, .85); }
.sd-doc-tile-actions { display: flex; align-items: center; gap: 4px; }
.sd-doc-tile-actions .btn-icon { width: 42px; height: 42px; }
.sd-doc-tile .btn-outline-dark { border: 1.5px solid var(--sd-ink); background: transparent; color: var(--sd-ink); }
.sd-doc-tile .btn-outline-dark:hover { background: var(--sd-ink); color: #fff; }

/* Bouton icône discret (suppression) */
.sd-icon-btn--ghost { border-color: transparent; background: transparent; color: var(--sd-ink-3); width: 36px; height: 36px; }
.sd-icon-btn--ghost:hover { border-color: rgba(184, 50, 50, .35); background: var(--sd-red-soft); color: var(--sd-red); }
.sd-icon-btn--on-color { color: rgba(255, 255, 255, .75); }
.sd-icon-btn--on-color:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .18); color: #fff; }

/* Sélecteur de porte dans le hero */
.sd-door-pick { display: flex; flex-direction: column; gap: 8px; min-width: 260px; }
.sd-door-pick .sd-eyebrow { font-size: 11px; letter-spacing: .14em; padding-left: 4px; }
.sd-door-pick .custom-select { height: 48px; border-radius: var(--sd-radius-pill); padding-left: 18px; font-weight: 600; }

/* Journal (événements groupés par jour) */
.sd-log-day-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: #FCF9F8;
  border-bottom: 1px solid var(--sd-line);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sd-ink);
}
.sd-log-day-head .text-muted { font-weight: 500; letter-spacing: 0; text-transform: none; }
.sd-log-row {
  display: grid;
  grid-template-columns: 64px 24px minmax(220px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  min-height: 60px;
  border-bottom: 1px solid var(--sd-line);
  background: #fff;
}
.sd-log-row:hover { background: var(--sd-hover); }
.sd-log-time { font-size: 14px; font-weight: 600; color: var(--sd-ink); font-variant-numeric: tabular-nums; }
.sd-log-dot { justify-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--sd-sage-deep); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--sd-sage-soft); }
.sd-log-dot--ok   { background: var(--sd-sage-deep); }
.sd-log-dot--bad  { background: var(--sd-rose); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--sd-rose-soft); }
.sd-log-dot--warn { background: #D9B8A8; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--sd-sand); }
.sd-log-dot--grey { background: #C9D3D0; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--sd-neutral); }
.sd-log-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; padding: 10px 0; }
.sd-log-person { font-size: 14.5px; font-weight: 600; color: var(--sd-ink); }
.sd-log-note { font-size: 13px; color: var(--sd-ink-3); }

/* Portes ------------------------------------------------------------------ */
.sd-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 1000px; }
.sd-door {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 28px 22px;
  border-radius: var(--sd-radius-card);
  background: #fff;
  color: var(--sd-ink);
  border: 1px solid var(--sd-line);
}
.sd-door--dark { background: var(--sd-navy); color: #fff; border-color: var(--sd-navy); }
.sd-door-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sd-door-head .sd-eyebrow { font-size: 11px; letter-spacing: .14em; margin-bottom: 6px; }
.sd-door--dark .sd-eyebrow { color: var(--sd-sage); }
.sd-door-head h2 { font-size: 28px; line-height: 1.12; margin: 0; color: inherit; }
.sd-door-sub { display: block; margin-top: 6px; font-size: 13px; color: var(--sd-ink-2); }
.sd-door--dark .sd-door-sub { color: rgba(255, 255, 255, .72); }
.sd-door-center { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 26px 0 10px; }
.sd-door-btn {
  width: 132px; height: 132px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: var(--sd-navy);
  color: #fff;
  box-shadow: 0 18px 36px -22px rgba(11, 24, 38, .5);
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.sd-door-btn:hover { transform: scale(1.04); color: #fff; }
.sd-door--dark .sd-door-btn { background: #fff; color: var(--sd-navy); }
.sd-door--dark .sd-door-btn:hover { color: var(--sd-navy); }
.sd-door.is-opening .sd-door-btn { background: #F3F5F4; color: var(--sd-ink); pointer-events: none; }
.sd-door--dark.is-opening .sd-door-btn { background: rgba(255, 255, 255, .18); color: #fff; }
.sd-door.is-open .sd-door-btn { background: var(--sd-sage); color: var(--sd-ink); }
.sd-door-state { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.sd-door-state-label { font-size: 16px; font-weight: 600; }
.sd-door.is-open .sd-door-state-label { color: var(--sd-sage-ink); }
.sd-door--dark.is-open .sd-door-state-label { color: var(--sd-sage); }
.sd-door-hint { font-size: 13px; color: var(--sd-ink-2); }
.sd-door--dark .sd-door-hint { color: rgba(255, 255, 255, .72); }
.sd-door-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--sd-line-2);
  font-size: 12.5px;
  color: var(--sd-ink-2);
}
.sd-door-foot span { display: flex; align-items: center; gap: 8px; }
.sd-door-foot a { font-weight: 600; color: var(--sd-sage-deep); }
.sd-door--dark .sd-door-foot { border-top-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .72); }
.sd-door--dark .sd-door-foot a { color: var(--sd-sage); }

@keyframes sd-spin { to { transform: rotate(360deg); } }
.sd-spin { display: inline-block; animation: sd-spin 1s linear infinite; }

/* Encart d'appel à l'action (fond vert clair) */
.sd-callout {
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: var(--sd-sage-soft);
  border-radius: var(--sd-radius-card);
}
.sd-callout-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sd-callout-icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--sd-sage-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.sd-callout-title { font-size: 14.5px; font-weight: 600; color: var(--sd-ink); }
.sd-callout-text { font-size: 13px; line-height: 1.5; color: var(--sd-sage-ink); }
.sd-callout .btn { flex: none; }

/* Sélecteur de vue (cartes / liste) */
.sd-seg { display: inline-flex; align-items: center; height: 46px; padding: 4px; border: 1px solid var(--sd-line-2); border-radius: var(--sd-radius-pill); background: #fff; }
.sd-seg-btn { width: 40px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--sd-radius-pill); color: var(--sd-ink-2); font-size: 17px; }
.sd-seg-btn:hover { color: var(--sd-ink); }
.sd-seg-btn.is-active { background: var(--sd-rose-soft); color: var(--sd-rose-ink); }

/* Intervenants : cartes « personne » */
.sd-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 24px; }
.sd-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-card);
  overflow: hidden;
}
.sd-person-band { width: 100%; height: 96px; background: var(--sd-sage-soft); }
.sd-person-ring {
  display: inline-flex;
  margin-top: -60px;
  padding: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px -14px rgba(11, 24, 38, .35);
}
.sd-person-ring img, .sd-person-ring .sd-initials {
  width: 112px; height: 112px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sd-sage-soft);
  color: var(--sd-sage-ink);
  font-size: 30px;
  font-weight: 700;
}
.sd-person-body { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 24px 26px; }
.sd-person-body h2 { font-size: 23px; line-height: 1.15; margin: 0; }
.sd-person-tagline { font-size: 13.5px; line-height: 1.45; color: var(--sd-ink-2); margin-top: -9px; }
.sd-staff-avatar { overflow: hidden; }
.sd-staff-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Fiche produit ----------------------------------------------------------- */
.sd-detail { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.sd-gallery { flex: 1 1 400px; max-width: 560px; min-width: 0; }
.sd-gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--sd-radius-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3EEE6;
}
.sd-gallery-main img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; display: block; }
.sd-gallery-main--photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.sd-detail-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.sd-detail-info h1 { font-size: 48px; margin: 0; line-height: 1.08; }
.sd-detail-head { display: flex; flex-direction: column; gap: 12px; }
.sd-detail-desc { font-size: 15.5px; line-height: 1.65; color: var(--sd-ink-2); }
.sd-detail-desc p { margin: 0 0 12px; }
.sd-detail-desc p:last-child { margin-bottom: 0; }
.sd-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sd-features li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--sd-ink); }
.sd-feature-icon {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sd-sage-soft);
  color: var(--sd-sage-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.sd-field-title { font-size: 13px; font-weight: 600; color: var(--sd-ink); margin: 0 0 10px; }

/* Options sous forme de cartes radio */
.sd-options { display: flex; flex-direction: column; gap: 8px; }
.sd-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin: 0;
  border: 1px solid var(--sd-line-2);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 400;
  transition: border-color .15s ease, background-color .15s ease;
}
.sd-option:hover { border-color: rgba(11, 24, 38, .4); }
.sd-option input { position: absolute; opacity: 0; pointer-events: none; }
.sd-option-dot {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(11, 24, 38, .3);
  background: #fff;
  position: relative;
  transition: border-color .15s ease, background-color .15s ease;
}
.sd-option-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; opacity: 0; }
.sd-option input:checked ~ .sd-option-dot { border-color: var(--sd-navy); background: var(--sd-navy); }
.sd-option input:checked ~ .sd-option-dot::after { opacity: 1; }
.sd-option input:focus-visible ~ .sd-option-dot { box-shadow: var(--sd-focus); }
.sd-option.is-active { border-color: var(--sd-navy); background: var(--sd-zebra); }
.sd-option-text { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; min-width: 0; }
.sd-option-label { font-size: 14.5px; font-weight: 600; color: var(--sd-ink); }
.sd-option-sub { font-size: 12.5px; color: var(--sd-ink-2); }
.sd-option-price { font-size: 14px; font-weight: 700; color: var(--sd-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Encart récapitulatif (fiche produit) */
.sd-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--sd-line);
  border-radius: 16px;
}
.sd-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--sd-ink-2); }
.sd-summary-row strong { color: var(--sd-ink); font-weight: 600; text-align: right; }
.sd-summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--sd-line-2); }
.sd-summary-total .sd-eyebrow { font-size: 13px; letter-spacing: .1em; }
.sd-summary .btn { height: 50px; width: 100%; }
.sd-summary-note { font-size: 12.5px; line-height: 1.5; color: var(--sd-ink-2); }

/* « Vous aimerez aussi » */
.sd-also-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sd-also-head h2 { font-size: 28px; margin: 0; }
.sd-also-head a { font-size: 13px; font-weight: 600; color: var(--sd-ink-2); }
.sd-also-head a:hover { color: var(--sd-ink); }
.sd-also { grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); }
.sd-also .sd-product-media { height: 180px; }
.sd-also .sd-product-body { padding: 18px 20px 20px; gap: 8px; }
.sd-also .sd-product-title { font-size: 17px; }

/* Panier ------------------------------------------------------------------ */
.sd-cart { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.sd-cart-main { flex: 1 1 520px; min-width: 0; }
.sd-cart-side { flex: 1 1 300px; max-width: 400px; min-width: 0; }
.sd-cart-thumb {
  flex: none;
  width: 72px; height: 72px;
  border-radius: 16px;
  background: #F3EEE6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sd-cart-thumb img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; display: block; }
.sd-cart-foot { padding: 14px 28px; font-size: 13px; color: var(--sd-ink-2); }
.sd-recap { padding: 28px 28px 26px; }
.sd-recap .sd-eyebrow { font-size: 11px; letter-spacing: .14em; }
.sd-recap h2 { font-size: 28px; margin: 6px 0 18px; }
.sd-recap-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; font-size: 14px; color: var(--sd-ink-2); font-variant-numeric: tabular-nums; }
.sd-recap-row strong { color: var(--sd-ink); font-weight: 600; }
.sd-recap-row--line { border-bottom: 1px solid var(--sd-line-2); }
.sd-recap-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 4px; }
.sd-recap-total .sd-eyebrow { font-size: 12px; letter-spacing: .14em; }
.sd-recap-total .sd-price-amount { font-size: 28px; }
.sd-recap .btn-block { height: 50px; margin-top: 22px; }
.sd-recap-notes { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--sd-line); font-size: 13px; line-height: 1.5; color: var(--sd-ink-2); }
.sd-recap-notes span { display: flex; align-items: flex-start; gap: 10px; }
.sd-recap-notes .batch-icon { flex: none; margin-top: 2px; font-size: 15px; color: var(--sd-sage-deep); }

/* Document (facture, quittance) ------------------------------------------ */
.sd-doc {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-card);
  padding: 52px 56px 44px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.sd-doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.sd-doc-sender { display: flex; flex-direction: column; gap: 18px; }
.sd-doc-sender img { height: 34px; width: auto; display: block; }
.sd-doc-address { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.5; color: var(--sd-ink-2); }
.sd-doc-strong { font-weight: 700; color: var(--sd-ink); }
.sd-doc-company { font-family: var(--sd-font-display); font-size: 22px; color: var(--sd-ink); margin-bottom: 4px; }
.sd-doc-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.sd-doc-kicker { font-family: var(--sd-font-display); font-size: 48px; line-height: 1; color: var(--sd-ink); }
.sd-doc-meta dl, .sd-doc-dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 6px 16px; font-size: 13.5px; line-height: 1.4; }
.sd-doc-meta dt, .sd-doc-dl dt { margin: 0; color: var(--sd-ink-2); font-weight: 400; }
.sd-doc-meta dd, .sd-doc-dl dd { margin: 0; font-weight: 600; color: var(--sd-ink); font-variant-numeric: tabular-nums; }
.sd-doc-dl { grid-template-columns: auto 1fr; font-size: 14px; line-height: 1.5; }
.sd-doc-parties { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 32px 0; border-top: 1px solid var(--sd-line-2); border-bottom: 1px solid var(--sd-line-2); }
.sd-doc-parties > div { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.sd-doc-parties .sd-eyebrow { font-size: 11px; letter-spacing: .14em; }
.sd-doc-billto { align-items: flex-end; text-align: right; }
.sd-doc-billto .sd-doc-address { font-size: 14px; }
.sd-doc-table th:first-child, .sd-doc-table td:first-child { padding-left: 0; }
.sd-doc-table th:last-child, .sd-doc-table td:last-child { padding-right: 0; }
.sd-doc-table thead th { padding-top: 0; }
.sd-doc-table tbody tr:nth-child(even) { background: transparent; }
.sd-doc-table td { vertical-align: top; padding-top: 18px; padding-bottom: 18px; }
.sd-doc-line-title { font-size: 14.5px; font-weight: 600; color: var(--sd-ink); }
.sd-doc-totals { display: flex; justify-content: flex-end; }
.sd-doc-totals > div { width: 100%; max-width: 380px; }
.sd-doc-totals .sd-recap-row { padding: 12px 20px; }
.sd-doc-grand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--sd-navy);
  color: #fff;
  font-family: var(--sd-font-display);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.sd-doc-grand .sd-eyebrow { font-family: var(--sd-font-ui); color: rgba(255, 255, 255, .8); font-size: 12px; letter-spacing: .14em; }
.sd-doc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--sd-line-2); font-size: 12px; line-height: 1.5; color: var(--sd-ink-2); }

/* Moyens de paiement --------------------------------------------------- */
.sd-pm-card { padding: 30px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.sd-pm-card .sd-eyebrow { font-size: 11px; letter-spacing: .14em; }
.sd-pm-card h2 { font-size: 28px; margin: 0; }
.sd-pm-intro { font-size: 13.5px; line-height: 1.55; color: var(--sd-ink-2); margin: 4px 0 14px; }
.sd-pm-list { display: flex; flex-direction: column; gap: 10px; }
.sd-pm {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--sd-line-2);
  border-radius: 16px;
  background: #fff;
}
.sd-pm.is-default { border-color: var(--sd-sage); background: var(--sd-zebra); }
.sd-pm-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--sd-sage-soft);
  color: var(--sd-sage-deep);
}
.sd-pm-icon--card { background: var(--sd-grey); color: var(--sd-ink); }
.sd-pm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sd-pm-title { font-size: 15px; font-weight: 700; color: var(--sd-ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.sd-pm-sub { font-size: 12.5px; color: var(--sd-ink-2); }
.sd-pm-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.sd-pm-empty { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border: 1px dashed var(--sd-line-3); border-radius: 16px; font-size: 13.5px; color: var(--sd-ink-2); }
.sd-pm-empty .batch-icon { font-size: 22px; color: var(--sd-sage); }
.sd-pm-note { display: block; margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--sd-ink-3); }

/* Formulaires Stripe (ajout de moyen de paiement) */
.sd-pay-forms { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.sd-pay-form { flex: 1 1 420px; min-width: 0; padding: 32px 36px; display: flex; flex-direction: column; gap: 20px; }
.sd-pay-form--card { max-width: 520px; }
.sd-pay-form .sd-eyebrow { font-size: 11px; letter-spacing: .14em; }
.sd-pay-form h2 { font-size: 28px; margin: 4px 0 0; }
.sd-pay-form .form-group { margin: 0; }
.sd-pay-form .btn { height: 50px; }
.sd-pay-legal { font-size: 12px; line-height: 1.55; color: var(--sd-ink-3); margin: 0; }
.sd-stripe-el {
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid var(--sd-line-3);
  border-radius: var(--sd-radius-control);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sd-stripe-el.StripeElement--focus { border-color: var(--sd-navy); box-shadow: var(--sd-focus); }
.sd-stripe-el.StripeElement--invalid { border-color: var(--sd-red); }
.sd-stripe-error { display: none; margin-top: 6px; font-size: 12.5px; color: var(--sd-red); }
.sd-stripe-error:not(:empty) { display: block; }
@media (max-width: 575.98px) {
  .sd-pm { flex-wrap: wrap; }
  .sd-pm-actions { width: 100%; justify-content: flex-end; }
  .sd-pay-form { padding: 22px 20px; }
}

/* Tickets ------------------------------------------------------------------ */
.sd-tickets { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.sd-tickets-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sd-tickets-side { flex: 1 1 320px; max-width: 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
/* Rangée au niveau des filtres : le bouton s'aligne sur les pilules, le bloc vert sur la carte */
.sd-tickets-side-top { justify-content: flex-end; margin-bottom: 0 !important; }
.sd-tickets-side-top .btn { height: 44px; }
.sd-tickets-main .sd-filters { margin-bottom: 0 !important; }
.sd-tickets-main { gap: 24px; }
.sd-ticket-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--sd-line);
  transition: background-color .15s ease;
}
.sd-ticket-row:nth-child(even) { background: var(--sd-zebra); }
.sd-ticket-row:hover { background: var(--sd-hover); }
.sd-ticket-tile {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: var(--sd-neutral);
  color: var(--sd-ink-3);
}
.sd-ticket-tile--progress { background: var(--sd-sage); color: #fff; }
.sd-ticket-tile--todo     { background: var(--sd-sand); color: var(--sd-sand-ink); }
.sd-ticket-tile--done     { background: var(--sd-sage-soft); color: var(--sd-sage-ink); }
.sd-ticket-tile--dropped  { background: var(--sd-neutral); color: var(--sd-ink-3); }
.sd-ticket-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sd-ticket-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sd-ticket-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--sd-ink); }
.sd-ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--sd-ink-2); }
.sd-ticket-date { flex: none; min-width: 64px; text-align: right; font-size: 13px; color: var(--sd-ink-2); font-variant-numeric: tabular-nums; }
.sd-ticket-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--sd-sage); }
.sd-ticket-avatar--none {
  background: #F3F5F4;
  border: 1px dashed rgba(11, 24, 38, .2);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sd-ink-3);
  font-size: 15px;
}
.sd-ticket-toggle[aria-expanded="true"] .batch-icon { transform: rotate(180deg); }
.sd-ticket-toggle .batch-icon { transition: transform .2s ease; }
.sd-ticket-details {
  display: none;
  padding: 4px 26px 18px 86px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sd-ink-2);
  border-bottom: 1px solid var(--sd-line);
  background: var(--sd-zebra);
}
.sd-ticket-details.is-open { display: block; }
.sd-ticket-loading { display: inline-block; color: var(--sd-ink-2); font-size: 13px; animation: sd-pulse 1.2s ease-in-out infinite; }
.sd-ticket-details p { margin: 0 0 8px; }
.sd-ticket-details p:last-child { margin: 0; }
.sd-urgent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--sd-radius-pill);
  background: var(--sd-rose-soft);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sd-rose-ink);
}
.sd-urgent::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sd-rose); }

/* Formulaire « Nouvelle demande » sur fond sauge */
.sd-ticket-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px 28px;
  background: var(--sd-sage);
  color: #fff;
  border-radius: var(--sd-radius-card);
  box-shadow: 0 30px 60px -40px rgba(11, 24, 38, .45);
}
.sd-ticket-form .sd-eyebrow { color: rgba(255, 255, 255, .85); font-size: 11px; letter-spacing: .14em; }
.sd-ticket-form h2 { font-size: 28px; line-height: 1.12; color: #fff; margin: 4px 0 0; }
.sd-ticket-form label { color: #fff; }
.sd-ticket-form label .sd-req { color: var(--sd-rose-soft); }
.sd-ticket-form .form-group { margin: 0; }
.sd-ticket-form .form-control { border-color: transparent; }
.sd-ticket-form .form-control:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.sd-ticket-form .btn-white { height: 50px; }
.sd-ticket-form .sd-form-hint { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.sd-ticket-form .sd-form-hint .batch-icon { margin-right: 6px; }

/* Segment de priorité du formulaire ticket (vert pastel, multi-lignes) */
.sd-prio { display: flex; gap: 4px; padding: 4px; border-radius: var(--sd-radius-pill); background: rgba(255, 255, 255, .22); }
.sd-prio label { position: relative; flex: 1 1 0; min-width: 0; margin: 0; cursor: pointer; }
.sd-prio input { position: absolute; opacity: 0; pointer-events: none; }
.sd-prio span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--sd-radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.sd-prio input:checked + span { background: var(--sd-sage-soft); color: var(--sd-ink); }
.sd-prio input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }

/* Encart conseil */
.sd-hint-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--sd-sage-soft);
  border-radius: var(--sd-radius-card);
  color: var(--sd-ink);
}
.sd-hint-card .sd-hint-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--sd-sage-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.sd-hint-card strong { display: block; font-size: 15px; margin-bottom: 2px; }
.sd-hint-card span { font-size: 13px; color: var(--sd-ink-2); }

@media (max-width: 575.98px) {
  .sd-ticket-row { flex-wrap: wrap; padding: 14px 18px; }
  .sd-ticket-details { padding: 4px 18px 16px; }
  .sd-ticket-date { min-width: 0; }
  .sd-ticket-form { padding: 24px 20px; }
}

/* Édition produit (visuel + champs) */
.sd-product-edit { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.sd-product-edit-media { flex: 0 1 260px; min-width: 200px; display: flex; flex-direction: column; }
.sd-product-edit-media .sd-gallery-main { aspect-ratio: 1 / 1; }
.sd-product-edit-media .sd-field-help { display: block; }
.sd-product-edit-fields { flex: 1 1 380px; min-width: 0; }
.sd-form-card.sd-form-card--wide { max-width: 1000px; }

/* Fiche membre ------------------------------------------------------------- */
.sd-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--sd-line);
  background: var(--sd-zebra);
  border-radius: var(--sd-radius-card) var(--sd-radius-card) 0 0;
}
.sd-identity-name { font-family: var(--sd-font-display); font-size: 24px; line-height: 1.15; color: var(--sd-ink); }
.sd-identity-sub { font-size: 13px; color: var(--sd-ink-2); margin-top: 2px; }
.sd-cell-avatar--lg { width: 56px; height: 56px; font-size: 16px; }
.sd-roles .sd-option { padding: 14px 18px; }
.sd-option.is-disabled { opacity: .55; cursor: not-allowed; }
.sd-option.is-disabled:hover { border-color: var(--sd-line-2); }
.sd-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  margin-left: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sd-sage-soft);
  color: var(--sd-sage-deep);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  cursor: help;
  vertical-align: 1px;
}
.sd-danger-zone { padding: 24px 32px 26px; display: flex; flex-direction: column; gap: 18px; }
.sd-danger-zone .sd-eyebrow { font-size: 11px; letter-spacing: .14em; color: var(--sd-rose-ink); }
.sd-danger-zone h2 { font-size: 22px; margin: 4px 0 6px; }
.sd-danger-zone p { margin: 0; font-size: 13.5px; color: var(--sd-ink-2); }
.sd-danger-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Tableaux : colonnes numériques et sous-ligne */
.table .sd-num-cell { text-align: right; font-variant-numeric: tabular-nums; }
.table .sd-num-cell .sd-sub { display: block; font-size: 11.5px; color: var(--sd-ink-3); }
.table .sd-strong { font-weight: 700; color: var(--sd-ink); font-size: 15px; }

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  :root { --sd-page-pad: 40px 28px 56px; }
  .sd-topbar { padding: 0 28px; }
  .sd-page-title { font-size: 46px; }
  .sd-auth-pane { padding: 56px 48px; }
  .sd-auth-photo { padding: 56px 48px; }
  .sd-auth-photo-text h2 { font-size: 46px; }
}

@media (max-width: 991.98px) {
  :root { --sd-page-pad: 28px 18px 48px; }
  .sd-sidebar { transform: translateX(-100%); box-shadow: none; }
  .sd-app.is-nav-open .sd-sidebar { transform: translateX(0); box-shadow: 0 0 40px rgba(11, 24, 38, 0.25); }
  .sd-backdrop { position: fixed; inset: 0; background: rgba(11, 24, 38, 0.4); z-index: 1025; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .sd-app.is-nav-open .sd-backdrop { opacity: 1; pointer-events: auto; }
  .sd-main { margin-left: 0; }
  .sd-topbar { padding: 0 14px; gap: 6px; }
  .sd-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .sd-topbar-brand { display: inline-block; margin-right: 6px; }
  .sd-topbar-btn .sd-label { max-width: 160px; }
  .sd-topbar .sd-profile-name { display: none; }
  .sd-notif-menu { width: calc(100vw - 28px); }
  .sd-page-title { font-size: 38px; }
  .sd-detail-info h1 { font-size: 36px; }
  .sd-section-head { padding: 20px 20px 16px; }
  .sd-recap { padding: 22px 20px; }
  .sd-doc { padding: 28px 20px; }
  .sd-doc-kicker { font-size: 36px; }
  .sd-doc-parties > div { min-width: 0; }
  .card-header { padding: 18px 20px; font-size: 21px; }
  .card-body { padding: 20px; }
  .card .card-table .table thead th:first-child,
  .card .card-table .table tbody td:first-child { padding-left: 20px; }
  .card .card-table .table thead th:last-child,
  .card .card-table .table tbody td:last-child { padding-right: 20px; }
  .dataTables_wrapper .row:first-child, .dataTables_wrapper .row:last-child { padding-left: 20px; padding-right: 20px; }
  .dataTables_wrapper .dataTables_filter { text-align: left; margin-top: 10px; }
  .dataTables_wrapper .dataTables_filter input { width: 100%; }
  .dataTables_wrapper .dataTables_paginate { justify-content: flex-start; margin-top: 8px; }
  .sd-stats { grid-template-columns: 1fr; }
  .sd-stat + .sd-stat { border-left: 0; border-top: 1px solid var(--sd-line); }
  .sd-auth-photo { display: none; }
  .sd-auth-pane { max-width: none; flex: 1 1 auto; padding: 48px 24px; }
}

@media (max-width: 767.98px) {
  .sd-welcome-photo { max-width: none; flex-basis: 100%; min-height: 220px; }
  .sd-welcome-body { padding: 24px 22px; }
  .sd-page-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 575.98px) {
  .card-header .header-btn-block { width: 100%; margin-left: 0; }
  .card-header .header-btn-block .btn { flex: 1 1 auto; }
  .sd-orga-name { display: none; }
  .sd-topbar-left .sd-topbar-btn { width: 44px; padding: 0; justify-content: center; }
  .sd-topbar-left .sd-topbar-btn .sd-label,
  .sd-topbar-left .sd-topbar-btn.dropdown-toggle::after { display: none; }
  .sd-topbar-right .sd-topbar-btn.dropdown-toggle::after { display: none; }
  .sd-topbar-right .sd-topbar-btn.sd-profile { width: 44px; padding: 0; justify-content: center; }
  .sd-topbar .dropdown-menu { min-width: 220px; }
  .dataTables_wrapper .dataTables_filter label { flex-wrap: wrap; width: 100%; }
  .dataTables_wrapper .dataTables_filter input { flex: 1 1 100%; }
  .sd-page-title { font-size: 34px; }
  .sd-tile-number { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Marketplace : cases à cocher (tags) et date de livraison ---------- */
.sd-check .sd-option-dot { border-radius: 6px; }
.sd-check .sd-option-dot::after {
  inset: auto; left: 5px; top: 1.5px; width: 5px; height: 10px;
  border-radius: 0; background: transparent;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.sd-delivery { display: grid; grid-template-columns: minmax(0, 240px) 130px; gap: 12px; }
.sd-delivery--date { grid-template-columns: minmax(0, 240px); }
.sd-delivery .form-control, .sd-delivery .custom-select { height: 48px; }
.sd-delivery-help { display: block; margin-top: 8px; font-size: 12.5px; color: var(--sd-ink-3); }
.sd-delivery-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sd-sage-deep); font-weight: 600; margin-top: 3px; }
.sd-product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 575px) { .sd-delivery { grid-template-columns: 1fr; } }
