/* OCD Live : administration. Même identité que le site public (logo, orange, fond ivoire, police). */
:root {
  --orange: #f56600; --orange-fonce: #c84f00; --orange-doux: #fff0df; --orange-trait: #ffd9b8;
  --encre: #171715; --texte: #2b2925; --gris: #78766f; --gris-clair: #a29e96;
  --papier: #fffaf4; --surface: #ffffff; --surface-2: #faf5ee; --ligne: #ece4d8; --ligne-forte: #ddd2c3;
  --ok: #1f7a46; --ok-doux: #e6f5ec; --attente: #a35a00; --attente-doux: #fff3dc;
  --refus: #b3261e; --refus-doux: #fdebe9; --info: #33507a; --info-doux: #edf2f9;
  --r: 14px; --r-petit: 9px;
  --ombre: 0 1px 2px #2a1d0a0d, 0 6px 20px #2a1d0a08;
  --menu: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--texte); font: 14px/1.5 Arial, Helvetica, sans-serif; }
a { color: var(--orange-fonce); }
h1, h2, h3 { color: var(--encre); letter-spacing: -.025em; }
h1 { font-size: 26px; font-weight: 800; line-height: 1.2; margin: 0; }
h2 { font-size: 16px; font-weight: 700; margin: 0 0 14px; }
h3 { font-size: 14px; margin: 18px 0 8px; }
small, .muted { color: var(--gris); }
svg.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Logo (identique au site public) ---------- */
.brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--encre); font-weight: 800; font-size: 21px; letter-spacing: -1px; white-space: nowrap; }
.brand-mark { color: var(--orange); font-size: 27px; font-weight: 900; font-style: italic; letter-spacing: -3.5px; margin-right: 3px; }
.brand .point { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); display: inline-block; }
.brand small { margin-left: 6px; padding: 2px 7px; border-radius: 6px; background: var(--orange-doux); color: var(--orange-fonce); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Structure ---------- */
.layout { display: grid; grid-template-columns: var(--menu) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px 16px; background: var(--surface); border-right: 1px solid var(--ligne); }
.sidebar > .brand { padding: 0 10px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-groupe { margin: 14px 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-clair); }
.nav-groupe:first-child { margin-top: 0; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-petit); color: var(--texte); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.nav a svg.ic { color: var(--gris); }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--orange-doux); color: var(--orange-fonce); }
.nav a[aria-current="page"] svg.ic { color: var(--orange); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); }
.nav .count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.compte { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--ligne); border-radius: var(--r); background: var(--surface-2); }
.avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: 14px; }
.compte-infos { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.compte-infos a { color: var(--encre); font-weight: 700; font-size: 12.5px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte-infos a:hover { color: var(--orange-fonce); }
.compte-infos span { font-size: 11px; color: var(--gris); }
.compte form { margin: 0; }
.btn-icone { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--gris); cursor: pointer; }
.btn-icone:hover { background: var(--surface); color: var(--refus); }
.content { width: 100%; max-width: 1180px; padding: 28px 34px 64px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.page-head p { margin: 4px 0 0; }
.retour { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--gris); text-decoration: none; font-size: 13px; font-weight: 600; }
.retour:hover { color: var(--orange-fonce); }

/* ---------- Bouton menu (hamburger) ---------- */
.hamburger { position: fixed; z-index: 45; top: 16px; left: calc(var(--menu) + 18px); width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--ligne); border-radius: 10px; background: var(--surface); color: var(--encre); box-shadow: var(--ombre); cursor: pointer; transition: left .2s; }
.hamburger:hover { border-color: var(--orange); color: var(--orange-fonce); }
.content { padding-top: 70px; }
body.menu-masque .layout { grid-template-columns: minmax(0, 1fr); }
body.menu-masque .sidebar { display: none; }
body.menu-masque .hamburger { left: 18px; }
.voile { display: none; }

@media (max-width: 900px) {
  .layout, body.menu-masque .layout { grid-template-columns: 1fr; }
  .sidebar, body.menu-masque .sidebar { display: flex; position: fixed; z-index: 50; inset: 0 auto 0 0; width: min(280px, 86vw); height: 100vh; overflow-y: auto; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 0 0 40px #0000002e; }
  body.menu-ouvert .sidebar { transform: none; }
  .hamburger, body.menu-masque .hamburger { left: 14px; top: 12px; }
  .voile { position: fixed; inset: 0; z-index: 48; background: #1715154d; }
  body.menu-ouvert .voile { display: block; }
  .content { padding: 64px 16px 48px; }
  h1 { font-size: 22px; }
}

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); box-shadow: var(--ombre); padding: 20px 22px; margin-bottom: 18px; }
.card > h2:first-child { display: flex; align-items: center; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Tableau de bord ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); box-shadow: var(--ombre); text-decoration: none; color: var(--texte); transition: border-color .15s, transform .15s; }
a.stat:hover { border-color: var(--orange-trait); transform: translateY(-1px); }
.stat-icone { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--orange-doux); color: var(--orange); margin-bottom: 6px; }
.stat-valeur { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--encre); }
.stat.important .stat-valeur { color: var(--orange-fonce); }
.stat-libelle { font-size: 12.5px; color: var(--gris); }
.jauge { display: block; height: 6px; margin-top: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.jauge span { display: block; height: 100%; border-radius: 6px; background: var(--orange); }
.liste-simple { list-style: none; margin: 0; padding: 0; }
.liste-simple li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ligne); }
.liste-simple li:last-child { border-bottom: 0; }
.liste-simple a { min-width: 0; display: flex; flex-direction: column; gap: 1px; color: var(--texte); text-decoration: none; }
.liste-simple a:hover strong { color: var(--orange-fonce); }
.liste-simple .quand { font-size: 12px; color: var(--gris); }
.vide { padding: 22px 10px; text-align: center; color: var(--gris); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--ligne); }
th { padding-top: 0; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gris-clair); }
tbody tr:hover td { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td a.ref { color: var(--encre); font-weight: 800; text-decoration: none; }
td a.ref:hover { color: var(--orange-fonce); }
td small { display: block; }
.empty { padding: 30px 10px; text-align: center; color: var(--gris); }
@media (max-width: 700px) {
  table.responsive thead { display: none; }
  table.responsive tr { display: block; margin-bottom: 10px; padding: 6px 4px; border: 1px solid var(--ligne); border-radius: var(--r-petit); background: var(--surface); }
  table.responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border: 0; text-align: right; }
  table.responsive td::before { content: attr(data-label); flex: none; color: var(--gris); font-size: 12px; text-align: left; }
  tbody tr:hover td { background: transparent; }
}

/* ---------- Pastilles de statut ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; background: var(--surface-2); color: var(--gris); font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.EN_ATTENTE { background: var(--attente-doux); color: var(--attente); }
.badge.VALIDEE, .badge.ok { background: var(--ok-doux); color: var(--ok); }
.badge.REFUSEE, .badge.ANNULEE, .badge.bad { background: var(--refus-doux); color: var(--refus); }
.badge.REALISEE { background: var(--info-doux); color: var(--info); }

/* ---------- Formulaires ---------- */
label { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 700; color: var(--encre); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid var(--ligne-forte); border-radius: var(--r-petit); background: #fff; color: var(--encre); font: inherit; }
input::placeholder, textarea::placeholder { color: var(--gris-clair); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px #f5660024; }
textarea { min-height: 92px; resize: vertical; }
.field { margin-bottom: 14px; }
.field .error, .error-text { display: block; margin-top: 4px; color: var(--refus); font-size: 12px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--refus); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-weight: 600; }
input[type=checkbox], input[type=radio] { accent-color: var(--orange); width: 16px; height: 16px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; padding: 11px 13px; border: 1px solid var(--ligne); border-radius: var(--r-petit); cursor: pointer; font-weight: 600; }
.radio-card:has(input:checked) { border-color: var(--orange); background: var(--orange-doux); }
.radio-card input { margin-top: 2px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: var(--r-petit); font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-fonce); }
.btn-outline { background: #fff; border-color: var(--ligne-forte); color: var(--encre); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange-fonce); }
.btn-danger { background: #fff; border-color: #ecc0bb; color: var(--refus); }
.btn-danger:hover { background: var(--refus-doux); }
.btn-small { min-height: 32px; padding: 6px 11px; font-size: 12.5px; }
.btn-link { padding: 0; border: 0; background: none; color: var(--orange-fonce); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.inline { display: inline; }

/* ---------- Messages ---------- */
.flash { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 14px; padding: 12px 16px; border-radius: var(--r-petit); border: 1px solid transparent; font-weight: 600; }
.flash a { color: inherit; font-weight: 800; }
.flash.ok { background: var(--ok-doux); border-color: #c4e6d1; color: var(--ok); }
.flash.bad { background: var(--refus-doux); border-color: #f2c6c1; color: var(--refus); }
.flash.warn { background: var(--attente-doux); border-color: #f6dca8; color: var(--attente); }
.note { margin: 12px 0 0; padding: 11px 14px; border-radius: var(--r-petit); background: var(--orange-doux); font-size: 13px; }
.note.info { background: var(--surface-2); color: var(--gris); }

/* ---------- Détail d'une demande ---------- */
.dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.dl dt { color: var(--gris); font-size: 13px; }
.dl dd { margin: 0; font-weight: 600; color: var(--encre); overflow-wrap: anywhere; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }
.slot-change { display: grid; gap: 10px; margin: 10px 0 4px 26px; }
.slot-change[hidden] { display: none; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px var(--orange-doux); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--ligne); }
.timeline li:last-child::after { display: none; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details.danger summary { color: var(--refus); font-weight: 700; }
details.danger[open] { padding: 14px; border: 1px solid #f2c6c1; border-radius: var(--r-petit); background: #fffafa; }

/* ---------- Connexion ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-visuel { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; overflow: hidden; background: radial-gradient(ellipse at 70% 40%, #fff3d6 0, transparent 60%), var(--surface-2); border-right: 1px solid var(--ligne); }
.login-visuel :is(svg,img).afrique { position: absolute; left: 50%; top: 50%; width: 62%; max-width: 420px; max-height: 62%; transform: translate(-50%, -54%); }
.login-visuel .glow { fill: none; stroke: #ffe078; stroke-width: 16; filter: url(#halo); opacity: .9; }
.login-visuel .mur { fill: #fffdf7; stroke: #fff2bf; stroke-width: 3; }
.login-visuel h2 { position: relative; max-width: 300px; font-size: 30px; line-height: 1.1; font-weight: 800; margin: 0; }
.login-visuel h2 em { font-style: normal; color: var(--orange); }
.login-visuel p { position: relative; max-width: 290px; margin: 12px 0 0; color: var(--gris); }
.login-form { display: grid; place-items: center; padding: 32px 20px; }
.login-form .card { width: 100%; max-width: 380px; padding: 30px; }
.login-form h1 { font-size: 24px; margin: 0 0 4px; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-visuel { display: none; } }

/* Logo officiel (SVG) */
.brand img { display: block; height: 40px; width: auto; }
.login-visuel .brand img { height: 52px; }

/* ---------- Fenêtre modale (ajout / modification) ---------- */
dialog.modale { width: min(480px, calc(100% - 32px)); padding: 0; border: 1px solid var(--ligne); border-radius: 16px; background: var(--surface); color: var(--texte); box-shadow: 0 24px 60px #2a1d0a33; }
dialog.modale::backdrop { background: #17151566; backdrop-filter: blur(2px); }
dialog.modale[open] { animation: modale-entree .16s ease-out; }
@keyframes modale-entree { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modale-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.modale-tete h2 { margin: 0; font-size: 18px; }
.modale-corps { padding: 10px 20px 6px; }
.modale-pied { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; margin-top: 8px; border-top: 1px solid var(--ligne); background: var(--surface-2); border-radius: 0 0 16px 16px; }
@media (prefers-reduced-motion: reduce) { dialog.modale[open] { animation: none; } }

/* ---------- Recherche et pagination ---------- */
.barre-liste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.recherche { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 240px; max-width: 520px; position: relative; }
.recherche svg.ic { position: absolute; left: 12px; color: var(--gris-clair); pointer-events: none; }
.recherche input[type=search] { padding-left: 38px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ligne); font-size: 13px; }
.pages { display: flex; align-items: center; gap: 4px; }
.page-lien { min-width: 32px; height: 32px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--ligne); border-radius: 8px; background: #fff; color: var(--encre); font-weight: 700; text-decoration: none; }
.page-lien:hover { border-color: var(--orange); color: var(--orange-fonce); }
.page-lien.courant { background: var(--orange); border-color: var(--orange); color: #fff; }
.page-trous { padding: 0 4px; color: var(--gris-clair); }

/* Logo : « OCD » dessiné, « Live » en texte. */
.brand img.ocd { display: block; height: .95em; width: auto; margin-right: 2px; }
.login-visuel .brand { font-size: 28px; }

/* Champ de recherche des listes : pleine largeur, même hauteur que le bouton */
.recherche input[type=search] { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; }
.recherche input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
.recherche .btn { min-height: 40px; flex: none; }

/* ---------- Cartes de chiffres du tableau de bord (version retravaillée) ---------- */
.stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; min-height: 148px; padding: 16px 18px 14px; overflow: hidden; }
.stat-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stat-libelle { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gris); line-height: 1.35; }
.stat-icone { width: 34px; height: 34px; margin: 0; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--gris); }
.stat-valeur { align-self: end; font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--encre); }
.stat-pied { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gris); }
a.stat .stat-pied { color: var(--orange-fonce); font-weight: 700; }
a.stat { position: relative; }
.stat .stat-fleche { position: absolute; right: 16px; bottom: 15px; width: 16px; height: 16px; color: var(--orange); transition: transform .15s; }
a.stat:hover .stat-fleche { transform: translateX(3px); }
.stat .jauge { margin-top: 0; }
.stat.important { background: linear-gradient(135deg, #fff3e6, #fff); border-color: var(--orange-trait); box-shadow: inset 4px 0 0 var(--orange), var(--ombre); }
.stat.important .stat-icone { background: var(--orange); color: #fff; }
.stat.important .stat-valeur { color: var(--orange-fonce); }

/* ---------- Cartes de chiffres compactes : icône à gauche, chiffre / libellé / action à droite ---------- */
.stats { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icone valeur" "icone libelle" "icone jauge" "icone pied"; column-gap: 12px; row-gap: 2px; align-items: center; min-height: 0; padding: 12px 14px; }
.stat-tete { display: contents; }
.stat-icone { grid-area: icone; align-self: center; width: 38px; height: 38px; border-radius: 11px; }
.stat-valeur { grid-area: valeur; align-self: end; font-size: 26px; }
.stat-libelle { grid-area: libelle; font-size: 11px; letter-spacing: .05em; line-height: 1.3; }
.stat .jauge { grid-area: jauge; height: 5px; margin-top: 3px; }
.stat-pied { grid-area: pied; font-size: 12px; padding-right: 18px; }
.stat .stat-fleche { right: 12px; bottom: auto; top: 50%; margin-top: -8px; }
/* Textes des cartes sur une seule ligne, flèche juste après l'action */
.stat-libelle, .stat-pied { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-pied { padding-right: 0; }
.stat .stat-fleche { position: static; margin: 0; width: 14px; height: 14px; grid-area: pied; justify-self: end; }
/* Carte répartition présentiel / à distance : jauge bicolore */
.stat-valeur .separe { color: var(--gris-clair); font-weight: 600; }
.jauge.repartition { display: flex; gap: 2px; background: var(--ligne); }
.jauge.repartition span { border-radius: 0; }
.jauge.repartition .part-0 { background: var(--orange); }
.jauge.repartition .part-1 { background: var(--encre); }
.jauge.repartition .part-2 { background: var(--gris); }

/* ---------- Traitement des réservations ---------- */
tr.cliquable { cursor: default; }
tr.cliquable:hover td { background: var(--orange-doux); }
.badge.ABSENTE { background: var(--refus-doux); color: var(--refus); }
.card-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-tete h2 { margin: 0; }
.card.etape { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-doux); }
.dl.compacte { grid-template-columns: 120px minmax(0, 1fr); gap: 6px 12px; margin-bottom: 12px; }
.sessions { list-style: none; margin: 0; padding: 0; }
.sessions li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.sessions li:last-child { border-bottom: 0; }
.sessions li.barre .quand { text-decoration: line-through; color: var(--gris); }
.sessions .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--orange-doux); color: var(--orange); font-weight: 800; font-size: 13px; flex: none; }
.sessions .quand { display: flex; flex-direction: column; flex: 1; min-width: 120px; }
.sessions .quand small { color: var(--gris); }
.session-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.note-form { display: grid; gap: 8px; justify-items: end; }
.note-form textarea { width: 100%; }
.notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.notes li { padding: 10px 12px; border-radius: var(--r-petit); background: var(--surface-2); font-size: 14px; }
.notes li small { display: block; margin-top: 4px; }
dialog.modale .slot-change { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 8px; }
@media (max-width: 480px) { dialog.modale .slot-change { grid-template-columns: 1fr; } }

/* ---------- Afficher / masquer le mot de passe ---------- */
.mdp { position: relative; }
.mdp input { padding-right: 44px; }
.mdp-oeil { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--gris); cursor: pointer; }
.mdp-oeil:hover { color: var(--encre); background: var(--surface-2); }
.mdp-oeil:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.mdp-oeil .ic { width: 18px; height: 18px; }

/* ---------- Clients et réservation saisie par l'équipe ---------- */
dialog.modale.large { width: min(660px, calc(100% - 32px)); }
.choix-type { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-bottom: 12px; }
.choix-type .radio-card { margin: 0; }
.radio-card:has(input:disabled) { opacity: .55; cursor: not-allowed; }
#bloc-existant[hidden], #bloc-nouveau[hidden] { display: none; }

/* ---------- Sélecteur avec recherche (combobox) ---------- */
.combo { position: relative; }
.combo input[role=combobox] { padding-right: 42px; }
.combo-vider { position: absolute; top: 3px; right: 4px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--gris); cursor: pointer; }
.combo-vider:hover { background: var(--surface-2); color: var(--encre); }
.combo-vider[hidden], .combo-liste[hidden], .combo-liste li[hidden] { display: none; }
.combo-liste { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 264px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--ligne-forte); border-radius: var(--r-petit); box-shadow: 0 14px 34px #2a1d0a24; }
.combo-liste li[role=option] { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.combo-liste li[role=option] span { color: var(--gris); font-size: 12.5px; }
.combo-liste li.actif, .combo-liste li[role=option]:hover { background: var(--orange-doux); }
.combo-liste li[aria-selected=true] strong::after { content: " ✓"; color: var(--orange); }
.combo-vide { padding: 10px; color: var(--gris); font-size: 13px; }

/* ---------- Téléphone : drapeau + indicatif (même principe que le site public) ---------- */
.phone-field { position: relative; display: flex; gap: 8px; }
.phone-field .tel-saisie { flex: 1; min-width: 0; }
.cc-trigger { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 10px; background: #fff; border: 1px solid var(--ligne-forte); border-radius: var(--r-petit); font: inherit; font-size: 13px; font-weight: 700; color: var(--encre); cursor: pointer; }
.cc-trigger:hover, .phone-field.open .cc-trigger { border-color: var(--orange); }
.cc-flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px #0000001f; object-fit: cover; }
.cc-caret { width: 13px; height: 13px; fill: none; stroke: var(--gris); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.phone-field.open .cc-caret { transform: rotate(180deg); }
.cc-menu { display: none; position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; min-width: 260px; background: var(--surface); border: 1px solid var(--ligne-forte); border-radius: var(--r-petit); box-shadow: 0 14px 34px #2a1d0a24; overflow: hidden; }
.phone-field.open .cc-menu { display: block; }
.cc-menu .cc-search { border: 0; border-bottom: 1px solid var(--ligne); border-radius: 0; box-shadow: none; }
.cc-menu .cc-search:focus { box-shadow: none; border-bottom-color: var(--orange); }
.cc-list { list-style: none; margin: 0; padding: 4px; max-height: 240px; overflow-y: auto; }
.cc-list li[data-cc-code] { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.cc-list li[data-cc-code]:hover, .cc-list li[aria-selected=true] { background: var(--orange-doux); }
.cc-list img { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px #0000001f; }
.cc-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-code { color: var(--gris); font-variant-numeric: tabular-nums; }
.cc-sep { height: 1px; background: var(--ligne); margin: 4px 6px; }
.cc-vide { padding: 10px; font-size: 13px; color: var(--gris); }
.field.invalid .cc-trigger { border-color: var(--refus); }

/* ---------- Versions anglaises des contenus ---------- */
details.version-en { margin: 4px 0 16px; padding: 12px 14px; border: 1px dashed var(--ligne-forte); border-radius: var(--r-petit); background: var(--surface-2); }
details.version-en summary { cursor: pointer; font-weight: 700; color: var(--encre); }
details.version-en[open] summary { margin-bottom: 8px; }
/* Une ligne masquée par la recherche reste masquée (la règle display:flex ci-dessus l'emportait) */
.combo-liste li[role=option][hidden] { display: none; }

/* Même carte épurée que l’accueil. */
.login-visuel{background:radial-gradient(ellipse at 55% 43%,#fff7ed 0,transparent 65%),var(--surface-2)}
.login-visuel img.afrique{object-fit:contain;width:76%;max-width:460px;height:auto}
.login-visuel img.afrique{z-index:2;pointer-events:none;animation:login-africa-hover 7s ease-in-out infinite}
@keyframes login-africa-hover{0%,100%{transform:translate(-50%,-54%) translateY(3px) rotate(-.6deg)}50%{transform:translate(-50%,-54%) translateY(-9px) rotate(.6deg)}}
@media(prefers-reduced-motion:reduce){.login-visuel img.afrique{animation:none}}
@media(min-width:861px){.login-visuel img.afrique{width:68%;max-width:410px}}

/* Messages du formulaire de contact */
.message-contact { border: 1px solid var(--ligne); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; background: #fff; }
.message-contact.traite { background: var(--surface-2); opacity: .85; }
.message-contact header, .message-contact footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.message-contact header > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.message-contact .message-texte { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0; line-height: 1.6; }
.message-contact .message-coord { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.message-contact .message-coord a:not(.btn) { color: var(--orange); font-weight: 600; }
.message-contact .message-etat { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* En-têtes de colonnes triables */
th a.tri { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; text-transform: inherit; letter-spacing: inherit; white-space: nowrap; }
th a.tri:hover { color: var(--encre); }
th a.tri .tri-icone { font-size: 12px; opacity: .35; letter-spacing: 0; }
th a.tri:hover .tri-icone { opacity: .7; }
th a.tri.actif { color: var(--encre); }
th a.tri.actif .tri-icone { opacity: 1; color: var(--orange); }
