/* ==========================================================================
   OCD Live — tableau de bord de l'équipe (/gestion/)
   Complète ocd.css (système de design commun) : seules les classes « g-* »
   propres à la gestion sont définies ici. Mobile d'abord (360 px).
   ========================================================================== */

.page-gestion { background: var(--bg-soft); }
.page-gestion main { min-height: 60vh; }
.page-gestion .messages { margin-top: 20px; }
.page-gestion .messages .alert { margin-bottom: 10px; }

.g-m0 { margin: 0; }
.g-mt { margin-top: 10px; }
.g-mt-neg { margin: -8px 0 16px; }
.g-break { overflow-wrap: anywhere; }
.g-hide-sm { display: none; }
@media (min-width: 480px) { .g-hide-sm { display: inline; } }

/* ---------- En-tête : barre du haut + onglets ---------- */
.g-topbar { background: var(--ink); color: #f3f3f3; }
.g-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.g-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-height: 44px; }
.g-brand:hover { color: #fff; }
.g-brand img { height: 26px; width: auto; }
.g-brand span { font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.g-user { display: flex; align-items: center; gap: 6px; min-width: 0; }
.g-user-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 8px; color: #f3f3f3; font-weight: 600; font-size: .9rem; text-decoration: none; border-radius: 999px; }
.g-user-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.g-user-link > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g-username { display: none; align-items: center; gap: 6px; color: #cfcfcf; font-size: .9rem; max-width: 220px; }
.g-username span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-logout { margin: 0; }
.g-btn-on-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255,255,255,.45); min-height: 44px; }
.g-btn-on-dark:hover { --btn-bg: #fff; --btn-fg: var(--ink); }
@media (min-width: 640px) {
  .g-user { gap: 12px; }
  .g-user-link > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .g-username { display: inline-flex; }
  .g-btn-on-dark { min-height: 36px; }
}

.g-nav { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.g-nav .container { padding-right: 0; }
.g-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.g-nav-list li { flex: 0 0 auto; scroll-snap-align: start; }
.g-nav-list a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.g-nav-list a:hover { color: var(--ink); background: var(--bg-soft); }
.g-nav-list a[aria-current="page"] { color: var(--ink); font-weight: 800; border-bottom-color: var(--orange); }
.g-nav-list a:focus-visible { box-shadow: inset var(--focus); border-radius: 0; }
@media (min-width: 768px) { .g-nav .container { padding-right: var(--gutter); } }

/* ---------- Mise en page des pages ---------- */
.g-page { padding: 20px var(--gutter) 56px; }
@media (min-width: 768px) { .g-page { padding-top: 28px; } }
.g-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 20px; }
.g-page-head > div:first-child { min-width: 0; flex: 1 1 320px; }
.g-title { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: 0 0 6px; overflow-wrap: anywhere; }
.g-h2 { font-size: 1.15rem; margin: 0 0 14px; }
.g-h3 { font-size: 1.05rem; margin: 0; }
.g-breadcrumb { margin: 0 0 6px; font-size: .925rem; font-weight: 600; }
.g-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

.g-footer { border-top: 1px solid var(--line); background: #fff; padding: 18px 0; font-size: .85rem; color: var(--muted); }
.g-footer .container { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }

/* ---------- Tableau de bord ---------- */
.g-stats { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .g-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.g-stat > a, .g-stat > div { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.g-stat > a:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--ink); }
.g-stat-attente > a { border-left-color: var(--warning); }
.g-stat-confirmee > a { border-left-color: var(--success); }
.g-stat-value { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.g-stat-label { font-size: .875rem; color: var(--muted); font-weight: 600; line-height: 1.35; }

.g-dashboard-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .g-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.g-panel { padding: 18px; }
@media (min-width: 640px) { .g-panel { padding: 22px; } }
.g-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.g-panel-head .g-h2 { margin: 0; }
.g-panel-foot { margin: 12px 0 0; font-weight: 600; }

.g-list { list-style: none; margin: 0; padding: 0; }
.g-list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.g-list-item:first-child { border-top: 0; }
.g-list-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.g-list-title { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.g-list-title:hover { color: var(--orange-700); text-decoration: underline; }
.g-list-action { margin: 0; flex: 0 0 auto; }
.g-when { font-weight: 600; color: var(--ink-2); }
.g-when-past { color: var(--danger); }
.g-date-chip { flex: 0 0 52px; display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 10px; background: var(--orange-50); color: var(--orange-700); font-size: .7rem; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.g-date-chip strong { font-size: 1.25rem; color: var(--ink); }
.g-list-item .badge { flex: 0 0 auto; }

/* ---------- Liste des réservations ---------- */
.g-filters { padding: 16px; margin-bottom: 18px; }
.g-filters .field { margin-bottom: 0; }
.g-filters-main { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 720px) { .g-filters-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; } }
.g-filters-submit .btn { width: 100%; min-height: 46px; }
.g-filters-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.g-filters-more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--ink-2); }
.g-filters-more[open] > summary { margin-bottom: 8px; }
.g-filters-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); margin-bottom: 12px; }

.g-strong-link { font-weight: 700; color: var(--ink); text-decoration: none; }
.g-strong-link:hover { color: var(--orange-700); text-decoration: underline; }
.g-ref { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; color: var(--muted); }
.g-sub { display: block; font-size: .85rem; color: var(--muted); }

/* Sur mobile, chaque ligne du tableau devient une carte (libellés issus de data-label). */
@media (max-width: 767.98px) {
  .g-table-responsive { border: 0; background: transparent; overflow: visible; }
  .g-table-responsive table, .g-table-responsive tbody, .g-table-responsive tr, .g-table-responsive td { display: block; width: 100%; }
  .g-table-responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .g-table-responsive tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
  .g-table-responsive tbody tr:hover { background: #fff; }
  .g-table-responsive td { border: 0; padding: 6px 0; }
  .g-table-responsive td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .g-table-responsive td a { overflow-wrap: anywhere; }
}

.g-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.g-pagination .btn { min-height: 44px; }

/* ---------- Fiche réservation ---------- */
.g-detail { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
/* Sur mobile, les actions (statut, contact) passent avant les informations détaillées. */
.g-detail-side { order: -1; }
@media (min-width: 960px) {
  .g-detail { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
  .g-detail-side { order: 0; }
}
.g-detail .card { padding: 18px; }
@media (min-width: 640px) { .g-detail .card { padding: 22px; } }
.g-dl { display: grid; gap: 14px 24px; grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 640px) { .g-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-dl > div { min-width: 0; }
.g-dl dt { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.g-dl dd { margin: 0; overflow-wrap: anywhere; }
.g-dl-wide { grid-column: 1 / -1; }
.g-dl-compact { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.g-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.g-links { list-style: none; margin: 0; padding: 0; }
.g-links li + li { margin-top: 4px; }
.g-status-actions { display: grid; gap: 8px; margin-top: 14px; }
.g-status-actions form { margin: 0; }
.g-status-actions .btn, .g-contact-actions .btn { min-height: 44px; }
.g-contact-actions { display: grid; gap: 8px; }
.g-email-status { list-style: none; margin: 0 0 14px; padding: 0; }
.g-email-status li { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 8px; padding: 4px 0; }
.g-ok, .g-ko { margin-top: 2px; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: .75rem; font-weight: 800; flex: 0 0 auto; }
.g-ok { background: var(--success-bg); color: var(--success); }
.g-ko { background: var(--danger-bg); color: var(--danger); }

/* ---------- Calendrier ---------- */
.g-week-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.g-week-nav .btn { min-height: 44px; }
.g-cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.g-cal-toolbar > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.g-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--ink-2); }
.g-legend li { display: inline-flex; align-items: center; gap: 6px; }
.g-legend-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0,0,0,.12); }
.g-legend-swatch.g-evt-en_attente { background: #f2c46d; }
.g-legend-swatch.g-evt-confirmee { background: #6cc28d; }
.g-legend-swatch.g-evt-terminee { background: #b5b5b5; }
.g-legend-swatch.g-evt-annulee { background: #ec9a9e; }

/* Couleurs par statut (grille, agenda et légende) */
.g-evt-en_attente { background: var(--warning-bg); color: #5c3600; border-left-color: var(--warning) !important; }
.g-evt-confirmee { background: var(--success-bg); color: #0c4d24; border-left-color: var(--success) !important; }
.g-evt-terminee { background: #ececec; color: #333; border-left-color: #7a7a7a !important; }
.g-evt-annulee { background: var(--danger-bg); color: #7a171c; border-left-color: var(--danger) !important; text-decoration: line-through; }
.g-indispo, .g-indispo-block { background: repeating-linear-gradient(45deg, rgba(60,60,60,.16) 0 6px, rgba(60,60,60,.05) 6px 12px); }

.g-cal { display: none; }
@media (min-width: 768px) {
  .g-cal { display: block; --g-heure-h: 56px; --g-gouttiere: 54px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
  .g-cal-head, .g-cal-body { display: grid; grid-template-columns: var(--g-gouttiere) repeat(7, minmax(0, 1fr)); }
  .g-cal-head { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
  .g-cal-dayhead { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-left: 1px solid var(--line); text-align: center; line-height: 1.2; }
  .g-cal-dayname { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .g-cal-daynum { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
  .g-cal-daymonth { font-size: .75rem; color: var(--muted); }
  .g-cal-dayhead.is-today { background: var(--orange-50); box-shadow: inset 0 -3px 0 var(--orange); }
  .g-cal-dayhead.is-today .g-cal-daynum { color: var(--orange-700); }
  .g-cal-flag { margin-top: 4px; font-size: .7rem; font-weight: 700; color: var(--ink-2); background: #e9e9e9; border-radius: 999px; padding: 1px 8px; }
  .g-cal-body { position: relative; height: calc(var(--nb-heures) * var(--g-heure-h)); }
  .g-cal-hours { position: relative; border-right: 1px solid var(--line); }
  .g-cal-hours span { position: absolute; right: 6px; margin-top: 2px; font-size: .72rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
  .g-cal-col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--g-heure-h)); }
  .g-cal-col.is-today { background-color: #fffaf5; }
  .g-cal-col.is-past { background-color: #fbfbfb; }
  .g-cal-col.is-closed { background-color: #f3f3f3; }
  .g-evt, .g-indispo-block { position: absolute; box-sizing: border-box; overflow: hidden; padding: 2px 6px; border: 1px solid #fff; border-left: 3px solid transparent; border-radius: 6px; font-size: .74rem; line-height: 1.25; min-height: 18px; }
  .g-evt { z-index: 2; text-decoration: none; }
  .g-evt:hover, .g-evt:focus-visible { z-index: 5; box-shadow: var(--shadow); min-height: max-content; }
  .g-evt:focus-visible { box-shadow: var(--focus), var(--shadow); }
  .g-evt-time { display: block; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .g-evt-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .g-evt.is-short { display: flex; gap: 4px; align-items: baseline; }
  .g-evt.is-short .g-evt-time, .g-evt.is-short .g-evt-title { display: inline; }
  .g-indispo-block { z-index: 1; color: var(--ink-2); border: 1px dashed var(--line-strong); }
  .g-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 6; pointer-events: none; }
  .g-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
}

.g-agenda { margin-top: 28px; }
.g-agenda-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .g-agenda-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.g-day { padding: 16px; }
.g-day.is-today { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; }
.g-day.is-muted { background: #f7f7f7; }
.g-day-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 8px; }
.g-day-title { font-size: 1rem; margin: 0; }
.g-day-sub { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
.g-day-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.g-day-evt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 44px; padding: 8px 10px; border-radius: 8px; border-left: 4px solid transparent; text-decoration: none; }
.g-day-evt:hover { filter: brightness(.97); }
.g-day-evt .g-evt-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.g-day-evt .g-evt-title { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.g-day-evt .badge { text-decoration: none; }
.g-day-indispo { padding: 8px 10px; border-radius: 8px; font-size: .9rem; background: repeating-linear-gradient(45deg, rgba(60,60,60,.12) 0 6px, rgba(60,60,60,.04) 6px 12px); border: 1px dashed var(--line-strong); }
.g-free-list { list-style: none; margin: 0; padding: 0; }
.g-free-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.g-free-list li:first-child { border-top: 0; }
.g-free-list li.is-short { color: var(--muted); }
.g-free-block { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-weight: 700; font-size: .875rem; white-space: nowrap; }
.g-day-foot { margin: 8px 0 0; font-size: .875rem; font-weight: 600; }
.g-day-foot a { display: inline-flex; align-items: center; min-height: 44px; }
/* Grand écran : la grille affiche déjà les émissions, l'agenda ne garde que les plages libres. */
@media (min-width: 768px) { .g-agenda-events { display: none; } }

/* ---------- Indisponibilités ---------- */
.g-split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .g-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.g-split > .card { padding: 18px; }
@media (min-width: 640px) { .g-split > .card { padding: 22px; } }
[data-heures].is-hidden { display: none; }
.g-indispo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.g-indispo-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.g-indispo-item > div { min-width: 0; }
.g-indispo-item form { margin: 0; flex: 0 0 auto; }
.g-indispo-item.is-past { background: #f7f7f7; }
.g-indispo-period { font-weight: 700; margin: 0; color: var(--ink); }
.g-conflicts { margin: 6px 0 0; padding-left: 18px; }
.g-btn-danger-text { --btn-fg: var(--danger); min-height: 44px; }
.g-btn-danger-text:hover { --btn-bg: var(--danger-bg); }
.g-past { margin-top: 20px; }
.g-past > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.g-confirm { max-width: 560px; }

/* ---------- Forfaits ---------- */
.g-forfaits { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.g-forfait { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.g-forfait > p { margin: 0; }
.g-forfait.is-inactive { background: #f7f7f7; }
.g-forfait.is-inactive .g-h3, .g-forfait.is-inactive .g-forfait-price { color: var(--muted); }
.g-forfait-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.g-forfait-badges { --cluster-gap: 6px; }
.g-forfait-price { font-size: 1.05rem; }
.g-forfait-list { margin: 0; padding-left: 18px; color: var(--ink-2); }
.g-forfait-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.g-forfait-actions form { margin: 0; }
.g-forfait-actions .btn { min-height: 44px; }

/* ---------- Formulaires ---------- */
.g-form-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .g-form-layout { grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); } }
.g-form-layout > .card { padding: 18px; }
@media (min-width: 640px) { .g-form-layout > .card { padding: 24px; } }
.g-form-actions { margin-top: 8px; }
.g-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--ink); }
.g-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; }
.g-field-check .help { margin-left: 30px; margin-top: -6px; }

.g-settings { display: grid; gap: 16px; }
.g-settings > .card { padding: 18px; }
@media (min-width: 640px) { .g-settings > .card { padding: 24px; } }
.g-fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.g-fieldset > legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .925rem; color: var(--ink); }
.g-days { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); }
.g-day-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; font-weight: 600; }
.g-day-choice input { position: static; opacity: 1; pointer-events: auto; flex: 0 0 auto; width: 18px; height: 18px; margin: 0; }
.g-settings-note { margin: 0; }
.g-sticky-actions { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; padding: 12px 0; background: rgba(250, 247, 244, .96); border-top: 1px solid var(--line); }
.g-form-submit { margin-top: 8px; }

/* ---------- Connexion / accès refusé ---------- */
.page-connexion { background: radial-gradient(1200px 500px at 50% -10%, var(--orange-100), transparent 60%), var(--bg-soft); }
.g-login-header { padding: 8px 0; }
.g-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.g-back:hover { color: var(--ink); text-decoration: underline; }
.g-login { display: grid; place-items: center; padding: 16px var(--gutter) 48px; min-height: min(calc(100vh - 160px), 760px); }
.g-login-card { width: 100%; max-width: 420px; padding: 28px 20px; box-shadow: var(--shadow-lg); }
@media (min-width: 480px) { .g-login-card { padding: 36px 32px; } }
.g-login-logo { height: 52px; width: auto; margin: 0 auto 18px; }
.g-login-card .eyebrow { display: block; text-align: center; }
.g-login-title { text-align: center; font-size: 1.75rem; margin-bottom: 6px; }
.g-login-lead { text-align: center; margin-bottom: 22px; }
.g-login-note { margin: 18px 0 0; text-align: center; }
.g-footer-login { background: transparent; border-top: 0; }

@media print {
  .g-header, .g-footer, .g-filters, .g-status-actions, .g-contact-actions, .g-sticky-actions { display: none !important; }
  .page-gestion { background: #fff; }
}
