/* ============================================================
   MENO — Refonte B « Hospitalité chaleureuse »
   Tokens + composants du socle. Source de vérité :
   .claude/ui-references/*.dc.html  +  CLAUDE-CODE-DESIGN.md
   Toute couleur/taille/radius provient des maquettes — ne rien
   ajouter hors de cette liste.
   ============================================================ */

:root {
  /* Couleurs */
  --bg-page: #f7f3ec;
  --bg-hover: #faf6ef;
  --surface: #ffffff;
  --border-card: #ece4d6;
  --border-row: #f3ede2;
  --border-input: #e0d5c3;
  --border-input-hover: #c9baa2;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: #fdeee1;
  --on-accent: #ffffff;
  --danger: #b91c1c;
  --danger-soft: #fde8e8;
  --text-1: #2b2118;
  --text-2: #5c5245;
  --text-3: #8d7f6e;
  --text-muted: #a89a8a;
  --sidebar-bg: #28201a;
  --sidebar-text: #cfc4b4;
  --sidebar-text-active: #f5efe6;
  --sidebar-icon: #8d7f6e;
  --sidebar-group: #7d7060;
  --sidebar-hover: rgba(255, 255, 255, .06);
  --pill-dark-bg: #2b2118;
  --pill-dark-text: #f5efe6;
  --toggle-off: #e0d5c3;
  --thumb-bg: #f3ede2;
  --thumb-icon: #d8cbb5;
  --pagehead-bg: rgba(247, 243, 236, .92);
  --pagehead-border: #e9e1d4;
  --ring: rgba(249, 115, 22, .14);
  --shadow-accent: 0 8px 18px -8px rgba(249, 115, 22, .6);
  --shadow-knob: 0 1px 3px rgba(43, 33, 24, .25);
  /* Formes */
  --radius-pill: 999px;
  --radius-card: 18px;
  --radius-thumb: 12px;
  --radius-item: 10px;
  --radius-selector: 12px;
}

/* Mode nuit — fonction conservée sur décision utilisateur (03/07/2026).
   Palette sombre héritée de l'app d'avant-refonte (layouts/base). */
html.night-mode {
  --bg-page: #181a1b;
  --bg-hover: #222426;
  --surface: #23272b;
  --border-card: #333;
  --border-row: #2e3235;
  --border-input: #3a3f44;
  --border-input-hover: #4a5056;
  --accent-soft: #3a2a1c;
  --danger-soft: #3a1f1f;
  --text-1: #f1f1f1;
  --text-2: #cfcfcf;
  --text-3: #9aa0a6;
  --text-muted: #7d848b;
  --pill-dark-bg: #f5efe6;
  --pill-dark-text: #2b2118;
  --toggle-off: #3a3f44;
  --thumb-bg: #2e3235;
  --thumb-icon: #55606a;
  --pagehead-bg: rgba(24, 26, 27, .92);
  --pagehead-border: #2e3235;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-page);
  color: var(--text-1);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3, .r-serif { font-family: 'Lora', serif; }
a { color: inherit; }
.r-muted { color: var(--text-muted); }
.d-none { display: none !important; }

/* ---------- Structure app (sidebar + contenu) ---------- */
.r-app { display: flex; align-items: stretch; min-height: 100vh; background: var(--bg-page); color: var(--text-1); }
.r-app__sidebar { width: 250px; flex: 0 0 250px; position: sticky; top: 0; max-height: 100vh; }
.r-app__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.r-content { padding: 26px 36px 48px; max-width: 1160px; width: 100%; }

/* ---------- Sidebar (B Sidebar.dc.html) ---------- */
.r-sidebar {
  width: 250px; height: 100%; min-height: 100vh; background: var(--sidebar-bg);
  display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none;
  font-family: 'Inter', system-ui, sans-serif;
}
.r-sidebar::-webkit-scrollbar { display: none; }
.r-sidebar__brand { display: flex; align-items: center; gap: 11px; padding: 24px 22px 20px; text-decoration: none; }
.r-sidebar__brand-mark {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; font-family: 'Lora', serif;
}
.r-sidebar__brand-name { font-family: 'Lora', serif; font-weight: 600; font-size: 1.2rem; letter-spacing: .06em; color: var(--sidebar-text-active); }
.r-sidebar__resto {
  margin: 0 18px 14px; padding: 11px 13px; border-radius: var(--radius-selector);
  background: rgba(255, 255, 255, .06); display: flex; align-items: center; gap: 10px;
  cursor: pointer; border: 0; width: calc(100% - 36px); text-align: left; font-family: inherit;
  position: relative;
}
.r-sidebar__resto-info { flex: 1; min-width: 0; }
.r-sidebar__resto-name { display: block; font-size: .83rem; font-weight: 600; color: var(--sidebar-text-active); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-sidebar__resto-sub { display: block; font-size: .7rem; color: #a89a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-sidebar__resto > .bx { color: #a89a8a; }
.r-sidebar__resto-wrap { position: relative; }
.r-sidebar__resto-wrap.is-open .r-sidebar__resto { border-radius: var(--radius-selector) var(--radius-selector) 0 0; background: rgba(255, 255, 255, .1); }
.r-sidebar__resto-wrap.is-open .r-sidebar__resto > .bx { transform: rotate(180deg); }
.r-sidebar__resto-menu {
  display: none; margin: 0 18px; background: #fdfbf7; border-radius: 0 0 14px 14px;
  overflow: hidden; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55);
}
.r-sidebar__resto-wrap.is-open .r-sidebar__resto-menu { display: block; }
.r-resto-item {
  display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: transparent;
  padding: 12px 14px; font-family: inherit; cursor: pointer; text-align: left;
  border-top: 1px solid #f3ede2; text-decoration: none; box-sizing: border-box;
}
.r-resto-item:first-child { border-top: 0; }
.r-resto-item:hover { background: #faf6ef; }
.r-resto-item.is-current { background: #fdeee1; }
.r-resto-item__tile {
  width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: 'Lora', serif; font-size: .8rem;
}
.r-resto-item__tile--add { border: 1.5px dashed #d8cbb5; color: #a89a8a; background: transparent; }
.r-resto-item__info { flex: 1; min-width: 0; }
.r-resto-item__name { display: block; font-size: .82rem; font-weight: 600; color: #2b2118; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-resto-item.is-current .r-resto-item__name { font-weight: 700; }
.r-resto-item__sub { display: block; font-size: .68rem; color: #a89a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-resto-item.is-current .r-resto-item__sub { color: #c2410c; }
.r-resto-item__add-label { font-size: .8rem; font-weight: 600; color: #8d7f6e; }
.r-sidebar__nav { flex: 1; padding: 4px 14px 24px; display: flex; flex-direction: column; gap: 2px; font-size: .875rem; }
.r-sidebar__group {
  font-size: .66rem; font-weight: 600; letter-spacing: .12em; color: var(--sidebar-group);
  text-transform: uppercase; padding: 18px 13px 7px;
}
.r-sidebar__link {
  display: flex; align-items: center; gap: 11px; padding: 9px 13px; border-radius: var(--radius-item);
  background: transparent; color: var(--sidebar-text); font-weight: 500; text-decoration: none;
}
.r-sidebar__link .bx { font-size: 18px; color: var(--sidebar-icon); }
.r-sidebar__link:hover { background: var(--sidebar-hover); }
.r-sidebar__link.is-active, .r-sidebar__link.is-active:hover { background: var(--accent); color: #fff; font-weight: 600; }
.r-sidebar__link.is-active .bx { color: #fff; }
.r-sidebar__footer {
  padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; align-items: center; gap: 10px;
}
.r-sidebar__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.r-sidebar__avatar--initial {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
  flex: 0 0 auto;
}
.r-sidebar__user { flex: 1; min-width: 0; }
.r-sidebar__user-name { display: block; font-size: .82rem; font-weight: 600; color: var(--sidebar-text-active); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-sidebar__user-role { display: block; font-size: .7rem; color: #a89a8a; }
.r-sidebar__logout { background: none; border: 0; padding: 0; cursor: pointer; color: var(--sidebar-icon); font-size: 18px; display: inline-flex; }
.r-sidebar__logout:hover { color: var(--sidebar-text-active); }

/* ---------- En-tête de page (sticky, Recettes.dc.html) ---------- */
.r-pagehead {
  display: flex; align-items: center; gap: 14px; padding: 16px 36px;
  position: sticky; top: 0; z-index: 40;
  background: var(--pagehead-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pagehead-border);
}
.r-pagehead__title { margin: 0; font-family: 'Lora', serif; font-size: 1.45rem; font-weight: 600; color: var(--text-1); }
.r-pagehead__subtitle { margin: 2px 0 0; font-size: .8rem; color: var(--text-3); }
.r-pagehead__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- Boutons ---------- */
.r-btn {
  display: inline-flex; align-items: center; gap: 7px; border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: none;
  font-family: inherit; border: 1px solid transparent; white-space: nowrap;
}
.r-btn .bx { font-size: 16px; }
.r-btn--primary { background: var(--accent); color: var(--on-accent); padding: 9px 17px; border: 0; box-shadow: var(--shadow-accent); }
.r-btn--primary:hover { background: var(--accent-hover); }
.r-btn--secondary { background: var(--surface); border-color: var(--border-input); color: var(--text-2); padding: 9px 15px; }
.r-btn--secondary:hover { border-color: var(--border-input-hover); }
.r-btn--secondary .bx { font-size: 15px; }
.r-btn--danger { background: var(--danger); color: #fff; padding: 9px 17px; border: 0; }
.r-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Pills de filtre ---------- */
.r-pill {
  border-radius: var(--radius-pill); padding: 7px 15px; border: 1px solid var(--border-input);
  background: var(--surface); color: var(--text-2); font-size: .8rem; font-weight: 500;
  cursor: pointer; font-family: inherit; white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.r-pill:hover { border-color: var(--border-input-hover); }
.r-pill.is-active { background: var(--pill-dark-bg); color: var(--pill-dark-text); border-color: var(--pill-dark-bg); font-weight: 600; }
.r-pill .bx { font-size: 15px; }

/* ---------- Recherche ---------- */
.r-search { position: relative; }
.r-search .bx {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 15px; pointer-events: none;
}
.r-search input {
  width: 100%; padding: 9px 13px 9px 36px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-input); background: var(--surface);
  font-size: .82rem; font-family: inherit; outline: none; color: var(--text-1);
}
.r-search input::placeholder { color: var(--text-muted); }
.r-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }

/* ---------- Formulaires ---------- */
.r-label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-2); margin: 0 0 6px; }
.r-input, .r-select {
  width: 100%; padding: 9px 15px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-input); background: var(--surface);
  font-size: .84rem; font-family: inherit; outline: none; color: var(--text-1);
}
.r-textarea {
  width: 100%; padding: 11px 15px; border-radius: var(--radius-thumb);
  border: 1px solid var(--border-input); background: var(--surface);
  font-size: .84rem; font-family: inherit; outline: none; color: var(--text-1); resize: vertical;
}
.r-input::placeholder, .r-textarea::placeholder { color: var(--text-muted); }
.r-input:focus, .r-select:focus, .r-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.r-field { margin-bottom: 14px; }
.r-field__error { display: block; margin-top: 5px; font-size: .74rem; color: var(--danger); }
.r-required { color: var(--accent-hover); }

/* ---------- Carte / conteneur de tableau ---------- */
.r-card { background: var(--surface); border: 1px solid var(--border-card); border-radius: var(--radius-card); overflow: hidden; }
.r-card__scroll { overflow-x: auto; }
.r-card__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 20px; }
.r-card__footer-info { color: var(--text-muted); font-size: .8rem; }
.r-card--pad { padding: 20px; overflow: visible; }

/* ---------- Tableau ---------- */
.r-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.r-table th {
  padding: 13px 16px; font-size: .68rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); text-align: left;
  border-bottom: 1px solid var(--border-card);
}
.r-table th:first-child { padding-left: 20px; }
.r-table th:last-child { padding-right: 20px; }
.r-table th.r-right, .r-table td.r-right { text-align: right; }
.r-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-row); font-size: .82rem; color: var(--text-2); }
.r-table td:first-child { padding-left: 20px; }
.r-table td:last-child { padding-right: 20px; }
.r-table tbody tr:hover { background: var(--bg-hover); }
.r-table tbody tr:last-child td { border-bottom: 0; }
.r-table .r-cell-main { font-size: .86rem; font-weight: 600; color: var(--text-1); }
.r-table .r-cell-sub { display: block; font-size: .72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.r-table .r-cell-strong { font-size: .84rem; font-weight: 700; color: var(--text-1); white-space: nowrap; }
.r-table .r-cell-dim { font-size: .8rem; color: var(--text-3); white-space: nowrap; }

/* Vignette d'entité dans un tableau */
.r-entity { display: flex; align-items: center; gap: 12px; }
.r-thumb {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: var(--radius-thumb);
  background: var(--thumb-bg); display: inline-flex; align-items: center; justify-content: center;
  color: var(--thumb-icon); overflow: hidden;
}
.r-thumb img { width: 100%; height: 100%; object-fit: cover; }
.r-thumb .bx { font-size: 20px; }

/* ---------- Badges ---------- */
.r-badge { background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; border-radius: var(--radius-pill); padding: 1px 7px; }
.r-chip {
  display: inline-flex; padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 600; background: var(--bg-hover); color: var(--text-2);
  border: 1px solid var(--border-card); white-space: nowrap;
}
.r-chip--accent { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent-soft); }
.r-chip--danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); }

/* ---------- Toggle 42×24 ---------- */
.r-toggle { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.r-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.r-toggle__track { position: absolute; inset: 0; background: var(--toggle-off); border-radius: 9999px; transition: background .15s ease; pointer-events: none; }
.r-toggle__knob {
  position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; box-shadow: var(--shadow-knob);
  transition: transform .15s ease; pointer-events: none;
}
.r-toggle input:checked ~ .r-toggle__track { background: var(--accent); }
.r-toggle input:checked ~ .r-toggle__knob { transform: translateX(18px); }

/* ---------- Icônes d'action rondes 32px ---------- */
.r-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-pill);
  color: var(--text-3); text-decoration: none; border: 0; background: transparent;
  cursor: pointer; font-family: inherit;
}
.r-action .bx { font-size: 15px; }
.r-action--edit:hover { background: var(--accent-soft); color: var(--accent-hover); }
.r-action--info:hover { background: var(--bg-hover); color: var(--text-1); }
.r-action--danger:hover { background: var(--danger-soft); color: var(--danger); }
.r-actions { display: inline-flex; gap: 4px; }

/* ---------- Pagination ---------- */
.r-pagination { display: flex; gap: 4px; align-items: center; }
.r-pagination a, .r-pagination button, .r-pagination span {
  width: 32px; height: 32px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-input); color: var(--text-2); background: var(--surface);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: .82rem; text-decoration: none;
}
.r-pagination .is-active { background: var(--accent); color: #fff; border: 0; font-weight: 700; }
.r-pagination .is-disabled { color: var(--text-muted); cursor: default; pointer-events: none; }

/* ---------- État vide ---------- */
.r-empty { padding: 48px 24px; text-align: center; }
.r-empty .bx { font-size: 34px; color: var(--thumb-icon); }
.r-empty__title { margin: 10px 0 4px; font-size: .95rem; font-weight: 600; color: var(--text-1); font-family: 'Lora', serif; }
.r-empty__text { margin: 0 0 16px; font-size: .82rem; color: var(--text-muted); }

/* ---------- Barre d'outils au-dessus des tableaux ---------- */
.r-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.r-toolbar__group { display: flex; gap: 6px; }
.r-toolbar .r-search { margin-left: auto; flex: 0 1 260px; min-width: 180px; }

/* ============================================================
   Modals — compatibles avec le JS Bootstrap 5 existant
   (data-bs-toggle / .modal('show')), re-thémés Refonte B.
   ============================================================ */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1055; display: none; overflow-x: hidden; overflow-y: auto; outline: 0; }
.modal.show { display: block; }
.fade { transition: opacity .15s linear; }
.fade:not(.show) { opacity: 0; }
.modal.fade .modal-dialog { transition: transform .2s ease-out; transform: translateY(-12px); }
.modal.show .modal-dialog { transform: none; }
.modal-dialog { position: relative; width: auto; margin: 1.75rem auto; max-width: 540px; pointer-events: none; padding: 0 12px; }
.modal-sm { max-width: 380px; }
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1000px; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 3.5rem); }
.modal-content {
  position: relative; display: flex; flex-direction: column; width: 100%; pointer-events: auto;
  background: var(--surface); border: 1px solid var(--border-card); border-radius: var(--radius-card); outline: 0;
}
.modal-header { display: flex; align-items: center; gap: 10px; padding: 18px 22px 0; border: 0; }
.modal-title { margin: 0; font-family: 'Lora', serif; font-size: 1.05rem; font-weight: 600; color: var(--text-1); }
.modal-body { position: relative; flex: 1 1 auto; padding: 16px 22px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; border: 0; background: transparent; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: #2b2118; }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: .5; }
.r-modal-close {
  margin-left: auto; width: 32px; height: 32px; border-radius: var(--radius-pill);
  border: 0; background: transparent; color: var(--text-3); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.r-modal-close:hover { background: var(--bg-hover); color: var(--text-1); }
.r-modal-close .bx { font-size: 18px; }

/* ============================================================
   Écrans d'authentification (Connexion.dc.html, Inscription,
   Mot de passe, Acces Refuse) — valeurs exactes des maquettes.
   ============================================================ */
:root {
  --auth-bg: #efe9de;
  --auth-card: #fdfbf7;
  --auth-shadow: 0 30px 70px -25px rgba(43, 33, 24, .4);
}
html.night-mode { --auth-bg: #181a1b; --auth-card: #23272b; }

.rauth-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; background: var(--auth-bg); color: var(--text-1);
}
.rauth-card {
  width: 100%; max-width: 940px; background: var(--auth-card); border-radius: 24px;
  box-shadow: var(--auth-shadow); overflow: hidden;
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .rauth-card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.rauth-card--single { max-width: 480px; display: block; }
.rauth-aside { position: relative; background: var(--sidebar-bg); overflow: hidden; min-height: 580px; display: none; }
@media (min-width: 900px) { .rauth-aside { display: block; } }
.rauth-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.rauth-aside__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 32, 26, .15) 0%, rgba(40, 32, 26, .88) 100%); }
.rauth-aside__brand { position: absolute; top: 24px; left: 28px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.rauth-aside__brand .rauth-mark { width: 32px; height: 32px; font-size: .95rem; }
.rauth-aside__tagline { position: absolute; left: 28px; right: 28px; bottom: 28px; color: #f5efe6; }
.rauth-aside__tagline-title { margin: 0; font-family: 'Lora', serif; font-size: 1.35rem; font-weight: 600; line-height: 1.35; }
.rauth-aside__tagline-text { margin: 8px 0 0; font-size: .85rem; color: #cfc4b4; line-height: 1.55; }
.rauth-mark {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; font-family: 'Lora', serif; flex: 0 0 auto;
}
.rauth-brand-name { font-family: 'Lora', serif; font-weight: 600; font-size: 1.1rem; letter-spacing: .06em; color: #f5efe6; }
.rauth-form { padding: 48px 52px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 600px) { .rauth-form { padding: 34px 24px; } }
.rauth-title { margin: 0 0 6px; font-family: 'Lora', serif; font-size: 1.65rem; font-weight: 600; color: var(--text-1); }
.rauth-subtitle { margin: 0 0 30px; font-size: .9rem; color: var(--text-3); }
.rauth-label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.rauth-input {
  width: 100%; padding: 13px 16px; font-size: .92rem; color: var(--text-1);
  background: var(--surface); border: 1px solid var(--border-input); border-radius: 12px;
  outline: none; font-family: inherit;
}
.rauth-input::placeholder { color: var(--text-muted); }
.rauth-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.rauth-input.is-invalid { border-color: var(--danger); background: var(--danger-soft); }
.rauth-field { margin-bottom: 18px; }
.rauth-error { margin-top: 6px; font-size: .8rem; color: var(--danger); }
.rauth-alert {
  margin: 0 0 20px; padding: 12px 14px; border-radius: 12px;
  background: var(--danger-soft); border: 1px solid var(--danger-soft); color: var(--danger); font-size: .86rem;
}
.rauth-alert--success { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-hover); }
.rauth-forgot { display: block; text-align: right; margin: 0 0 26px; font-size: .82rem; color: var(--text-3); text-decoration: none; }
.rauth-forgot:hover { color: var(--accent-hover); }
.rauth-submit {
  display: block; width: 100%; padding: 14px 18px; font-size: .95rem; font-weight: 700;
  color: #fff; background: var(--accent); border: 0; border-radius: var(--radius-pill);
  cursor: pointer; font-family: inherit; box-shadow: 0 12px 24px -10px rgba(249, 115, 22, .6);
}
.rauth-submit:hover { background: var(--accent-hover); }
.rauth-submit:disabled { opacity: .6; cursor: wait; }
.rauth-divider { margin: 28px 0 18px; display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: .8rem; }
.rauth-divider::before, .rauth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-card); }
.rauth-socials { display: flex; gap: 12px; justify-content: center; }
.rauth-social {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border-input);
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.rauth-social:hover { border-color: var(--border-input-hover); background: var(--bg-hover); }
.rauth-alt { margin: 30px 0 0; text-align: center; font-size: .88rem; color: var(--text-3); }
.rauth-alt a, .rauth-alt button {
  color: var(--accent-hover); font-weight: 700; text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; font-size: inherit;
}
.rauth-alt a:hover, .rauth-alt button:hover { text-decoration: underline; }

/* Aside « étapes » de l'inscription (Inscription.dc.html) */
.rauth-steps-aside { background: var(--sidebar-bg); padding: 40px 36px; display: none; flex-direction: column; color: #f5efe6; }
@media (min-width: 900px) { .rauth-steps-aside { display: flex; } }
.rauth-steps-aside__body { margin: auto 0; padding: 32px 0; }
.rauth-steps-aside__title { margin: 0 0 26px; font-family: 'Lora', serif; font-size: 1.4rem; font-weight: 600; line-height: 1.35; }
.rauth-steps { display: flex; flex-direction: column; gap: 18px; }
.rauth-step { display: flex; gap: 13px; align-items: flex-start; }
.rauth-step__num {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 9px;
  background: rgba(255, 255, 255, .1); color: #a89a8a;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Lora', serif; font-weight: 700; font-size: .85rem;
}
.rauth-step__num.is-active { background: var(--accent); color: #fff; }
.rauth-step__text { font-size: .85rem; color: #a89a8a; line-height: 1.55; padding-top: 3px; }
.rauth-step__text.is-active { color: #cfc4b4; }
.rauth-steps-aside__foot { margin: 0; font-size: .74rem; color: #7d7060; }
.rauth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 600px) { .rauth-grid { grid-template-columns: 1fr; } }
.rauth-grid .rauth-col-full { grid-column: 1 / -1; }
.rauth-consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 22px; font-size: .78rem; color: var(--text-3); line-height: 1.5; cursor: pointer; }
.rauth-consent input { margin-top: 2px; accent-color: var(--accent); width: 15px; height: 15px; }
.rauth-consent a { color: var(--accent-hover); text-decoration: none; }
.rauth-consent a:hover { text-decoration: underline; }

/* ---------- Listes à cocher (modals CRUD) ---------- */
.r-checklist {
  max-height: 220px; overflow: auto; border: 1px solid var(--border-input);
  padding: 12px; border-radius: 14px; background: var(--bg-hover);
}
.r-check { display: flex; align-items: center; gap: 9px; padding: 6px 4px; font-size: .84rem; color: var(--text-2); cursor: pointer; }
.r-check input { accent-color: var(--accent); width: 15px; height: 15px; flex: 0 0 auto; margin: 0; }
.r-check-inline { display: inline-flex; margin-right: 10px; }
.r-file {
  width: 100%; font-size: .82rem; color: var(--text-2); font-family: inherit;
  border: 1px dashed var(--border-input); border-radius: var(--radius-thumb);
  padding: 12px 14px; background: var(--surface); cursor: pointer;
}
.r-hint { display: block; margin-top: 5px; font-size: .72rem; color: var(--text-muted); }

/* Menu déroulant simple (export, filtres) */
.r-dropdown { position: relative; display: inline-block; }
.r-dropdown__menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 170px;
  background: var(--surface); border: 1px solid var(--border-card); border-radius: 14px; padding: 6px; overflow: hidden;
}
.r-dropdown.is-open .r-dropdown__menu { display: block; }
.r-dropdown__item {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px; border: 0;
  background: transparent; border-radius: 9px; font-family: inherit; font-size: .82rem; font-weight: 500;
  color: var(--text-2); cursor: pointer; text-align: left; text-decoration: none;
}
.r-dropdown__item:hover { background: var(--bg-hover); }
.r-dropdown__item .bx { font-size: 15px; color: var(--text-3); }

/* Masquer l'UI résiduelle de DataTables (le moteur reste actif) */
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate,
.dt-buttons { display: none !important; }
table.dataTable { width: 100% !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .r-app__sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; transform: translateX(-100%); transition: transform .2s ease; }
  .r-app.sidebar-open .r-app__sidebar { transform: translateX(0); }
  .r-app__main { width: 100%; }
  .r-pagehead { padding: 14px 18px; }
  .r-content { padding: 20px 18px 40px; }
  .r-sidebar-toggle { display: inline-flex !important; }
}
.r-sidebar-toggle {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-input); background: var(--surface); color: var(--text-2); cursor: pointer;
}
