/* ============================================================
   style.css — Feuille de style partagée
   Album Photo · modifiez les variables :root pour personnaliser
   ============================================================ */

/* ── Variables globales ───────────────────────────────────── */
:root {
  --bg:        #fefaf2;
  --surface:   #f7f1e3;
  --card:      #f0e8d0;
  --border:    #e0d3b8;
  --accent:    #c8a96e;
  --accent2:   #b08040;
  --text:      #2c1f0e;
  --muted:     #8a7560;
  --danger:    #c94040;
  --success:   #3d8a5a;
  --radius:    16px;
  --radius-sm: 10px;
  --radius-pill: 50px;
  --font-d: 'Pinyon Script', Georgia, serif;
  --font-b: 'Montserrat', sans-serif;
  --content-w: 480px;

  /* Échelle typographique */
  --fs-xs:   11px;
  --fs-sm:   12px;
  --fs-hint: 13px;
  --fs-base: 14px;
  --fs-md:   15px;
  --fs-lg:   16px;

  /* Échelle d'espacement */
  --sp-xs:   4px;
  --sp-sm:   8px;
  --sp-md:   16px;
  --sp-lg:   24px;
  --sp-xl:   32px;
  --sp-2xl:  48px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  min-height: 100dvh;
}

/* ── Typographie ──────────────────────────────────────────── */
h1 { font-family: var(--font-d); font-weight: 1500; line-height: 1.15; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent2); }
.event-label {
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
  display: block;
}
.card-note { font-size: var(--fs-sm); color: var(--muted); margin-top: 10px; }
.card-note a { color: var(--accent); text-decoration: none; }
.pin-strong { color: var(--accent); }

/* ── Boutons partagés ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius-pill);
  font-family: var(--font-b); font-size: var(--fs-base); font-weight: 500;
  cursor: pointer; border: none; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { background: var(--muted) !important; cursor: not-allowed; transform: none; }

.btn-accent { background: var(--accent); color: #0d0d0d; }
.btn-accent:hover { background: var(--accent2); }

.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary { background: var(--accent); color: #0d0d0d; border: none; }
.btn-primary:hover { background: var(--accent2); }

.btn-danger-outline { background: transparent; border: 1.5px solid var(--danger); color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }

.btn-muted { background: var(--border); color: var(--text); }
.btn-muted:hover { opacity: .8; }

.btn-sm { padding: 7px 16px; font-size: var(--fs-hint); }
.btn-lg { padding: 16px 32px; font-size: var(--fs-lg); width: 100%; display: block; text-align: center; }

/* Bouton login pleine largeur */
.btn-login {
  width: 100%; padding: 14px;
  background: var(--accent); color: #0d0d0d;
  border: none; border-radius: var(--radius-pill);
  font-family: var(--font-b); font-size: var(--fs-md); font-weight: 500;
  cursor: pointer; transition: background .2s;
  display: block;
}
.btn-login:hover { background: var(--accent2); }

/* ── Champs de formulaire ─────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; text-align: left; }
.field label,
.form-group label {
  font-size: var(--fs-xs); color: var(--muted);
  letter-spacing: .5px; text-transform: uppercase;
}
.field input,
.form-group input,
.form-group select {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-b); font-size: var(--fs-base);
  padding: 10px 14px; outline: none; transition: border-color .2s; width: 100%;
}
.field input:focus,
.form-group input:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group select { cursor: pointer; appearance: auto; }
.form-group .hint { font-size: var(--fs-xs); color: var(--muted); margin-top: 3px; }

/* ── Écran de login ───────────────────────────────────────── */
.login-wrap {
  min-height: 100dvh; display: flex;
  align-items: center; justify-content: center; padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 40px 32px; text-align: center;
}
.login-card h2 { font-family: var(--font-d); font-size: 26px; margin-bottom: 8px; }
.login-card > p { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.lock-icon { font-size: 48px; margin-bottom: 20px; display: block; }

/* ── Champ PIN ────────────────────────────────────────────── */
.pin-field-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
.pin-field {
  background: var(--bg); border: 2px solid var(--border); border-radius: 14px;
  color: var(--text); font-size: 28px; font-weight: 700;
  letter-spacing: 8px; text-align: center; padding: 14px 20px;
  outline: none; width: 100%; max-width: 320px;
  transition: border-color .2s;
  -webkit-text-security: disc;
  font-family: monospace;
}
.pin-field:focus { border-color: var(--accent); }
.pin-length-hint { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 16px; }

/* ── Messages ─────────────────────────────────────────────── */
.error-msg { color: var(--danger); font-size: var(--fs-base); margin-top: 14px; display: none; }
.error-msg.visible { display: block; }
.err-msg { color: var(--danger); font-size: var(--fs-hint); margin-top: 14px; }

.msg {
  padding: 14px 18px; border-radius: 12px;
  font-size: var(--fs-base); line-height: 1.5; margin-bottom: 8px;
}
.msg.success { background: rgba(110,203,138,.12); border: 1px solid rgba(110,203,138,.3); color: var(--success); }
.msg.error   { background: rgba(224,92,92,.12);   border: 1px solid rgba(224,92,92,.3);  color: var(--danger); }

.feedback { padding: 12px 16px; border-radius: var(--radius-sm); font-size: var(--fs-hint); margin-bottom: 20px; }
.feedback.ok   { background: rgba(110,203,138,.1); border: 1px solid rgba(110,203,138,.3); color: var(--success); }
.feedback.err  { background: rgba(224,92,92,.1);   border: 1px solid rgba(224,92,92,.3);  color: var(--danger); }
.feedback.warn { background: rgba(224,168,40,.1);  border: 1px solid rgba(224,168,40,.35); color: #9a6e00; }

/* ── Modale de confirmation ───────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.8); z-index: 2000;
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  max-width: 320px; width: 100%; text-align: center;
}
.modal-card h3 { font-family: var(--font-d); font-size: 20px; margin-bottom: 10px; }
.modal-card p  { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn-cancel {
  flex: 1; padding: 12px; border-radius: var(--radius-pill);
  font-family: var(--font-b); font-size: 14px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--border); color: var(--text);
}
.modal-actions .btn-confirm-delete {
  flex: 1; padding: 12px; border-radius: var(--radius-pill);
  font-family: var(--font-b); font-size: 14px; cursor: pointer;
  background: var(--danger); border: none; color: #fff;
}

/* ── Bouton de langue ─────────────────────────────────────── */
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 8px; border-radius: var(--radius-pill);
  text-decoration: none; border: 1.5px solid var(--accent);
  transition: background .2s, opacity .2s;
  line-height: 1;
}
.lang-btn img { display: block; border-radius: 2px; }
.lang-btn:hover { background: rgba(200,169,110,.15); }

/* Texte accessible masqué visuellement */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Séparateur floral ────────────────────────────────────── */
.floral-separator {
  display: block;
  width: 100%; max-width: 460px;
  margin: 0 auto;
  opacity: .9; pointer-events: none;
  user-select: none;
}

/* ── Spinner ──────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.2); border-top-color: var(--text);
  border-radius: 50%; animation: spin .7s linear infinite;
  vertical-align: middle; margin-right: 8px;
}

/* ── Barre de progression globale ────────────────────────── */
.progress-bar-wrap {
  width: calc(100% - 48px); max-width: var(--content-w);
  margin: 12px auto 0; height: 4px;
  background: var(--border); border-radius: 4px;
  display: none; overflow: hidden;
}
.progress-bar-wrap.visible { display: block; }
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 4px; width: 0%; transition: width .3s;
}

/* ── Scroll to top ────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 22px; right: 22px;
  width: 42px; height: 42px;
  background: var(--accent); border: none; border-radius: 50%;
  color: #0d0d0d; font-size: 20px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(200,169,110,.3); z-index: 100;
}
.scroll-top.visible { display: flex; }

/* ── Bouton "Charger plus" (fallback infinite scroll) ─────── */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 24px;
}
.load-more-wrap .btn {
  min-width: 180px;
}

/* ── Spinner de chargement (infinite scroll) ──────────────── */
.load-more-spinner {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px 0 8px;
}
.load-more-spinner.visible { display: flex; }
.load-more-spinner .spinner {
  width: 28px; height: 28px;
  border-width: 3px;
}

/* ── Barre de pagination ──────────────────────────────────── */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0 32px;
}
.pg-indicator {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.03em;
  min-width: 100px;
  text-align: center;
}

/* ── Boîte URL copiable ───────────────────────────────────── */
.url-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: var(--fs-sm); color: var(--muted); word-break: break-all;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.url-box span { flex: 1; }
.url-box + .card-note { margin-top: 10px; }
.copy-btn {
  padding: 5px 12px; background: var(--border); color: var(--text);
  border: none; border-radius: 6px; font-size: var(--fs-xs);
  cursor: pointer; white-space: nowrap; font-family: var(--font-b);
}
.copy-btn:hover { background: var(--accent); color: #0d0d0d; }

/* ── Page d'erreur d'accès restreint ─────────────────────── */
.error-page {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.error-page .icon { font-size: 64px; margin-bottom: 24px; display: block; }
.error-page h1 { font-size: 24px; margin-bottom: 12px; font-family: var(--font-b); font-weight: 600; }
.error-page p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  margin-top: var(--sp-2xl); padding-bottom: var(--sp-xl);
  font-size: var(--fs-sm); color: var(--muted); text-align: center;
}

/* ============================================================
   PAGE DÉPÔT (index.php)
   ============================================================ */
body.page-upload {
  display: flex; flex-direction: column;
  align-items: center; padding: 0 0 80px; overflow-x: hidden;
}
.page-upload header {
  width: 100%; text-align: center; padding: 56px 24px 16px;
  background-image: url('../img/banner.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
}
.page-upload header::after { display: none; }
.page-upload h1 { font-size: clamp(26px, 7vw, 40px); }
.subtitle { font-size: var(--fs-base); color: var(--muted); margin-top: 12px; font-weight: 300; }

/* ── Carte de dépôt ───────────────────────────────────────── */
.upload-card {
  width: calc(100% - 48px); max-width: var(--content-w);
  margin: 20px auto 0; padding: 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
/* Réinitialisation des largeurs/marges des éléments à l'intérieur de la carte */
.upload-card .action-row,
.upload-card .drop-zone,
.upload-card .preview-section,
.upload-card .author-wrap,
.upload-card .upload-btn,
.upload-card .progress-bar-wrap,
.upload-card .message-area {
  width: 100%; max-width: none; margin-left: 0; margin-right: 0;
}
.upload-card .action-row    { margin-top: 16px; }
.upload-card .drop-zone:not(.drop-zone-inline) { margin-top: 12px; }
.upload-card .preview-section { margin-top: 16px; }
.upload-card .upload-btn    { margin-top: 16px; }
.upload-card .progress-bar-wrap { margin-top: 10px; }
.upload-card .message-area  { margin-top: 12px; }
.upload-limits {
  margin-top: 14px;
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

/* Boutons galerie / appareil photo */
.action-row {
  width: calc(100% - 48px); max-width: var(--content-w);
  margin: 8px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.action-btn {
  padding: 18px 12px; border-radius: var(--radius);
  background: var(--surface); border: 1.5px dashed var(--border);
  color: var(--text); font-family: var(--font-b); font-size: var(--fs-base); font-weight: 500;
  cursor: pointer; text-align: center; transition: border-color .2s, background .2s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; overflow: hidden;
}
.action-btn input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.action-btn:hover { border-color: var(--accent); background: rgba(200,169,110,.06); }
.action-btn .btn-icon  { font-size: 30px; }
.action-btn .btn-label { font-size: var(--fs-hint); }

/* Drop zone desktop */
.drop-zone {
  width: calc(100% - 48px); max-width: var(--content-w); margin: 12px auto 0;
  border: 1.5px dashed var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; cursor: pointer;
  transition: border-color .25s, background .25s;
  position: relative; background: var(--surface); display: none;
}
.drop-zone.show      { display: block; }
.drop-zone.drag-over { border-color: var(--accent); background: rgba(200,169,110,.07); }
/* Drop zone intégrée dans la grille action-row (4ème case, vidéo activée) */
.drop-zone-inline {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center;
  width: auto; max-width: none; margin: 0; padding: 18px 12px;
}
.drop-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.drop-hint { font-size: var(--fs-hint); color: var(--muted); }

/* Prévisualisation */
.preview-section { width: calc(100% - 48px); max-width: var(--content-w); margin: 20px auto 0; display: none; }
.preview-section.visible { display: block; }
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.preview-count { font-size: var(--fs-hint); color: var(--muted); }
.btn-clear {
  background: none; border: none; color: var(--danger);
  font-size: var(--fs-hint); cursor: pointer; font-family: var(--font-b); padding: 4px 8px;
}
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* Vignette individuelle */
.preview-item {
  position: relative; aspect-ratio: 1;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--border);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bouton retirer */
.remove-btn {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,.7); border: none; border-radius: 50%;
  color: #fff; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 2;
}
.remove-btn:hover { background: var(--danger); }

/* Overlay de statut (⏳ ✅ ❌) */
.status-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: rgba(0,0,0,.5);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.preview-item.uploading .status-overlay { opacity: 1; }
.preview-item.uploading .status-overlay::after { content: '⏳'; }
.preview-item.done      { opacity: .5; }
.preview-item.done .status-overlay      { opacity: 1; }
.preview-item.done .status-overlay::after      { content: '✅'; }
.preview-item.error .status-overlay     { opacity: 1; }
.preview-item.error .status-overlay::after     { content: '❌'; }

/* Barre de progression par vignette */
.item-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.15); }
.item-progress-bar { height: 100%; background: var(--accent); width: 0%; transition: width .2s; }

/* Champ auteur */
.author-wrap {
  width: calc(100% - 48px); max-width: var(--content-w);
  margin: 16px auto 0;
}
.author-wrap + .action-row { margin-top: 16px; }
.author-label {
  display: block; font-size: var(--fs-xs); color: var(--muted);
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 6px;
}
.author-input {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-b); font-size: var(--fs-base);
  padding: 11px 14px; outline: none; transition: border-color .2s;
}
.author-input:focus { border-color: var(--accent); }

/* Bouton d'envoi principal */
.upload-btn {
  display: none; width: calc(100% - 48px); max-width: var(--content-w);
  margin: 20px auto 0; padding: 16px;
  background: var(--accent); color: #0d0d0d; border: none;
  border-radius: var(--radius-pill); font-family: var(--font-b);
  font-size: var(--fs-lg); font-weight: 500; cursor: pointer;
  transition: background .2s, transform .1s;
}
.upload-btn.visible { display: block; }
.upload-btn:active  { transform: scale(.98); }
.upload-btn:disabled { background: var(--muted); cursor: not-allowed; transform: none; }

/* Zone de messages */
.message-area { width: calc(100% - 48px); max-width: var(--content-w); margin: 16px auto 0; }

/* Encart lien album */
.album-link-section {
  width: calc(100% - 48px); max-width: var(--content-w); margin: 32px auto 0;
  padding: 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center;
}
.album-link-section h3 { font-family: var(--font-d); font-size: 18px; margin-bottom: 8px; }
.album-link-section p  { font-size: var(--fs-hint); color: var(--muted); margin-bottom: 16px; }
.btn-album {
  display: inline-block; padding: 12px 28px; background: transparent;
  color: var(--accent); border: 1.5px solid var(--accent); border-radius: var(--radius-pill);
  font-weight: 500; font-size: var(--fs-base); text-decoration: none; transition: background .2s, color .2s;
}
.btn-album:hover { background: var(--accent); color: #0d0d0d; }

/* ============================================================
   PAGE ALBUM (album.php)
   ============================================================ */
.album-header {
  padding: 56px 24px 20px; text-align: center;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  background-image: url('../img/banner.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
}
.album-header h1 { font-size: clamp(20px, 5vw, 30px); }
.album-meta { font-size: var(--fs-hint); color: var(--muted); margin-top: 6px; }
.header-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }

.album-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2px; padding: 2px;
}
@media (max-width: 480px) { .album-grid { grid-template-columns: repeat(3, 1fr); } }

.photo-item {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--surface); cursor: pointer;
}
.photo-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s, filter .3s;
}
.photo-item:hover img { transform: scale(1.05); filter: brightness(1.1); }
.photo-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 8px; gap: 4px;
}
.photo-item:hover .overlay { opacity: 1; }
.photo-date { font-size: 10px; color: rgba(255,255,255,.8); }
.exif-badge {
  font-size: 9px; background: rgba(200,169,110,.3); color: var(--accent);
  border-radius: 4px; padding: 1px 4px;
}

.empty-state { text-align: center; padding: 80px 24px; color: var(--muted); }
.empty-state .icon { font-size: 64px; display: block; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-d); font-size: 22px; color: var(--text); margin-bottom: 8px; }

/* Mode sélection */
.album-grid.select-mode .photo-item { cursor: pointer; }
.album-grid.select-mode .photo-item:hover img { filter: brightness(.8); }

.select-check {
  display: none;
  position: absolute; top: 8px; left: 8px;
  width: 22px; height: 22px;
  border: 2px solid rgba(255,255,255,.8); border-radius: 50%;
  background: rgba(0,0,0,.4);
  pointer-events: none; z-index: 2;
}
.album-grid.select-mode .select-check { display: block; }
.photo-item.selected .select-check {
  background: var(--accent); border-color: var(--accent);
}
.photo-item.selected .select-check::after {
  content: '✓'; display: block; text-align: center;
  font-size: 13px; line-height: 18px; color: #0d0d0d; font-weight: 700;
}
.photo-item.selected img { filter: brightness(.7); }
.photo-item.selected { outline: 3px solid var(--accent); outline-offset: -3px; }

/* Barre flottante de sélection */
.select-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 14px 20px; z-index: 200;
  flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
}
.select-bar.open { display: flex; }
.select-bar-count { font-size: var(--fs-base); color: var(--muted); }
.select-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.96); z-index: 1000;
  flex-direction: column; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img  { max-width: 96vw; max-height: 85vh; object-fit: contain; border-radius: 6px; }
.lb-controls {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: space-between;
  padding: 0 10px; pointer-events: none;
}
.lb-btn {
  width: 44px; height: 44px; background: rgba(255,255,255,.1);
  border: none; border-radius: 50%; color: #fff; font-size: 22px;
  cursor: pointer; pointer-events: all;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; background: rgba(255,255,255,.1);
  border: none; border-radius: 50%; color: #fff; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lb-bar {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  display: flex; align-items: center; justify-content: space-between;
}
.lb-info { font-size: var(--fs-sm); color: rgba(255,255,255,.65); }
.lb-download {
  padding: 7px 16px; background: var(--accent); color: #0d0d0d;
  border: none; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 500; cursor: pointer; text-decoration: none;
}

/* ============================================================
   PAGE ADMINISTRATION (admin.php)
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100dvh; }
.admin-layout h1 { font-family: 'Josefin Sans', sans-serif; font-weight: 400; letter-spacing: .04em; }
.admin-layout h1 em { font-style: normal; }
@media (max-width: 700px) { .admin-layout { grid-template-columns: 1fr; } }

.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 24px 0; display: flex; flex-direction: column;
  /* Fixe le bandeau à droite sur grand écran */
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
}
@media (max-width: 700px) {
  .sidebar { position: static; height: auto; overflow-y: visible; }
}
.sidebar-title {
  padding: 0 20px 20px; font-family: 'Josefin Sans', sans-serif; font-size: 18px;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
}
.sidebar-title em { font-style: normal; color: var(--accent); }
.sidebar-title small {
  display: block; font-family: var(--font-b); font-size: var(--fs-xs);
  color: var(--muted); margin-top: 4px; font-style: normal;
}
nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; font-size: var(--fs-base); color: var(--muted);
  text-decoration: none; transition: color .2s, background .2s;
}
nav a:hover  { color: var(--text); background: rgba(255,255,255,.03); }
nav a.active { color: var(--accent); background: rgba(200,169,110,.07); border-right: 2px solid var(--accent); }

.sidebar-footer {
  padding: 16px 20px 0; margin-top: auto; border-top: 1px solid var(--border);
}
.sidebar-footer a {
  font-size: var(--fs-sm); color: var(--muted); text-decoration: none;
  display: block; margin-bottom: 8px;
}
.sidebar-footer a:hover { color: var(--danger); }

/* ── Toggle Oui / Non ────────────────────────────────────── */
.toggle-switch { display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.toggle-switch input { display: none; }
.toggle-track {
  position: relative; width: 72px; height: 28px;
  background: var(--border); border-radius: var(--radius-pill);
  transition: background .25s; flex-shrink: 0;
}
.toggle-track::before {
  content: 'Non'; position: absolute;
  right: 9px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 600; color: var(--muted);
  transition: opacity .2s; font-family: var(--font-b);
}
.toggle-track::after {
  content: 'Oui'; position: absolute;
  left: 9px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 600; color: #0d0d0d;
  opacity: 0; transition: opacity .2s; font-family: var(--font-b);
}
.toggle-thumb {
  position: absolute; left: 3px; top: 3px;
  width: 22px; height: 22px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .25s; z-index: 1;
}
.toggle-switch input:checked + .toggle-track               { background: var(--accent); }
.toggle-switch input:checked + .toggle-track::before       { opacity: 0; }
.toggle-switch input:checked + .toggle-track::after        { opacity: 1; }
.toggle-switch input:checked + .toggle-track .toggle-thumb { transform: translateX(44px); }
.sidebar-branding { display: block; margin-top: 12px; font-size: 11px; color: var(--muted); opacity: .45; letter-spacing: .04em; }

main { padding: 32px 28px; overflow-y: auto; }
@media (max-width: 700px) { main { padding: 20px 16px; } }

.page-title { font-family: var(--font-d); font-size: 26px; margin-bottom: 4px; }
.page-sub   { font-size: var(--fs-hint); color: var(--muted); margin-bottom: 28px; }
.section        { display: none; }
.section.active { display: block; }

/* Cards admin */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.card h3 { font-size: var(--fs-md); font-weight: 500; margin-bottom: 16px; }

/* ── Cards repliables ────────────────────────────────────── */
.card.collapsible > h3 {
  cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0; gap: 10px;
}
.card-chevron {
  font-size: 20px; line-height: 1; color: var(--muted); flex-shrink: 0;
  transition: transform .22s; margin-left: auto;
}
.card.collapsible:not(.collapsed) .card-chevron { transform: rotate(90deg); }
.card-body { padding-top: 16px; }
.card.collapsible.collapsed .card-body { display: none; }
.card-h3-badge {
  font-size: var(--fs-xs); font-weight: 500; padding: 2px 8px;
  border-radius: var(--radius-pill); white-space: nowrap;
  text-transform: none; letter-spacing: 0;
}

.card-subsection { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.card-subsection:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.card-subsection-title {
  font-size: var(--fs-hint); font-weight: 500; color: var(--muted);
  padding-left: 8px; border-left: 2px solid var(--accent);
  margin-bottom: 14px;
}
.card h3 .sub { font-size: var(--fs-sm); color: var(--muted); font-weight: 400; margin-left: 6px; }
.card-empty { text-align: center; padding: 48px; }
.card-empty .icon { font-size: 40px; margin-bottom: 12px; display: block; }
.card-empty p { color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .form-grid { grid-template-columns: 1fr; } }
.form-group      { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.actions-row     { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 500px) { .stats-row { grid-template-columns: 1fr 1fr; } }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat-val   { font-family: var(--font-d); font-size: 28px; color: var(--accent); }
.stat-label { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }

/* Grille photos admin */
.photos-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.photos-toolbar .count { font-size: var(--fs-hint); color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.admin-photo {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 1; background: var(--border);
  border: 2px solid transparent; transition: border-color .2s;
}
.admin-photo.selected { border-color: var(--accent); }
.admin-photo img      { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-photo .cb {
  position: absolute; top: 6px; left: 6px;
  width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer;
}
.admin-photo .del-btn {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px;
  background: rgba(224,92,92,.85); border: none; border-radius: 50%;
  color: #fff; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.admin-photo .meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  padding: 6px 6px 4px; font-size: 10px; color: rgba(255,255,255,.7);
}

/* ============================================================
   MODÉRATION ADMIN
   ============================================================ */

/* Badge dans la navigation */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff;
  border-radius: 10px; padding: 1px 7px; font-size: var(--fs-xs); font-weight: 700;
  margin-left: 6px; line-height: 1.4;
}
.nav-badge--neutral {
  background: var(--border); color: var(--muted);
}

/* Stat cards colorées */
.stat-card.stat-warning { border-color: #e0a800; }
.stat-card.stat-warning .stat-val { color: #e0a800; }
.stat-card.stat-danger  { border-color: var(--danger); }
.stat-card.stat-danger  .stat-val { color: var(--danger); }

/* Overlay d'actions sur les photos de modération */
.mod-photo { cursor: default; }
.mod-overlay {
  position: absolute; inset: 0; bottom: 28px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 8px;
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.admin-photo:hover .mod-overlay { opacity: 1; pointer-events: all; }
.mod-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.mod-btn:hover  { transform: scale(1.15); }
.mod-btn.mod-approve { background: rgba(61,138,90,.9);  color: #fff; }
.mod-btn.mod-reject  { background: rgba(201,64,64,.9);  color: #fff; }
.mod-btn.mod-delete  { background: rgba(40,40,40,.85);  color: #fff; font-size: 13px; }

/* Photo refusée — légèrement désaturée */
.mod-rejected-item img { filter: grayscale(40%); }

/* ============================================================
   PAGE REVIEW (review.php)
   ============================================================ */
.review-header {
  padding: 56px 24px 20px; text-align: center;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  background-image: url('../img/banner.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
  position: sticky; top: 0; z-index: 10;
}
.review-header h1 { font-size: clamp(20px, 5vw, 30px); }

/* Badges de statut dans l'en-tête */
.review-stats {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 12px;
}
.rstatus-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 500; gap: 5px;
}
.rstatus-badge.pending  { background: rgba(224,168,0,.15);  color: #b08000; border: 1px solid rgba(224,168,0,.3); }
.rstatus-badge.approved { background: rgba(61,138,90,.12);  color: var(--success); border: 1px solid rgba(61,138,90,.25); }
.rstatus-badge.rejected { background: rgba(201,64,64,.12);  color: var(--danger);  border: 1px solid rgba(201,64,64,.2); }

/* Badge sur chaque vignette dans la grille */
.review-item-badge {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 3;
  transition: opacity .2s;
}
.review-item-badge.approved { background: rgba(61,138,90,.85);  }
.review-item-badge.rejected { background: rgba(201,64,64,.85); color: #fff; font-size: 12px; font-weight: 700; }

/* Opacité réduite pour les photos déjà traitées */
.photo-item.review-approved { opacity: .55; }
.photo-item.review-rejected { opacity: .45; }
.photo-item.review-approved:hover,
.photo-item.review-rejected:hover { opacity: 1; }

/* Boutons Approuver / Refuser dans la lightbox */
.lb-review-actions {
  position: absolute; bottom: 52px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 16px;
  padding: 0 16px;
}
.lb-action-btn {
  padding: 11px 28px; border-radius: var(--radius-pill);
  font-family: var(--font-b); font-size: var(--fs-base); font-weight: 500;
  cursor: pointer; border: none; transition: background .2s, opacity .2s, transform .1s;
}
.lb-action-btn:disabled { opacity: .35; cursor: not-allowed; transform: none !important; }
.lb-action-btn:active   { transform: scale(.97); }
.lb-action-btn.lb-approve { background: var(--success); color: #fff; }
.lb-action-btn.lb-approve:hover:not(:disabled) { background: #2e6e45; }
.lb-action-btn.lb-reject  { background: var(--danger);  color: #fff; }
.lb-action-btn.lb-reject:hover:not(:disabled)  { background: #a03030; }

/* Pastille de statut dans la barre de la lightbox */
.lb-status-pill {
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
}
.lb-status-pill.pending  { background: rgba(224,168,0,.2);  color: #b08000; }
.lb-status-pill.approved { background: rgba(61,138,90,.2);  color: var(--success); }
.lb-status-pill.rejected { background: rgba(201,64,64,.2);  color: var(--danger); }

/* ============================================================
   DASHBOARD — Carte d'informations générales
   ============================================================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.info-cell {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 5px;
}
.info-cell-warning { border-color: #e0a80050; background: #e0a80008; }
.info-cell-danger  { border-color: rgba(201,64,64,.3); background: rgba(201,64,64,.04); }
.info-label {
  font-size: var(--fs-xs); color: var(--muted);
  letter-spacing: .4px; text-transform: uppercase;
}
.info-val {
  font-size: var(--fs-md); font-weight: 500; color: var(--text); line-height: 1.2;
}
.info-val.accent  { color: var(--accent2); font-family: var(--font-d); font-size: 17px; }
.info-val.success { color: var(--success); }
.info-val.warning { color: #c08000; }
.info-val.danger  { color: var(--danger); }
.info-sub { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }

/* ============================================================
   DASHBOARD — Espace disque
   ============================================================ */
.disk-usage-info {
  display: flex; justify-content: space-between;
  font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px;
}
.disk-bar-track {
  background: var(--border); border-radius: 20px; height: 14px; overflow: hidden;
}
.disk-bar-fill {
  height: 100%; border-radius: 20px; transition: width .5s ease;
}
.disk-bar-fill.green  { background: var(--success); }
.disk-bar-fill.yellow { background: #e0a800; }
.disk-bar-fill.red    { background: var(--danger); }
.disk-no-quota {
  font-size: var(--fs-base); color: var(--muted);
}
.disk-no-quota span { font-size: var(--fs-sm); }

/* ============================================================
   DASHBOARD — Graphique auteurs
   ============================================================ */
.author-chart { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.author-bar {
  display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px;
}
.author-name {
  font-size: var(--fs-sm); color: var(--muted);
  text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar-track {
  background: var(--border); border-radius: 20px; height: 24px; overflow: hidden;
}
.bar-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  height: 100%; border-radius: 20px; min-width: 40px;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 10px;
  transition: width .6s ease;
}
.bar-count { font-size: var(--fs-xs); font-weight: 600; color: #0d0d0d; white-space: nowrap; }

/* ============================================================
   PARAMÈTRES — Mode dépôt
   ============================================================ */
.deposit-mode-status { margin-bottom: 4px; }
.deposit-badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 500;
}

/* ============================================================
   ACCÈS & LIENS — QR codes
   ============================================================ */
.qr-section {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.qr-canvas {
  background: #f0e8d0; padding: 12px; border-radius: var(--radius-sm);
  display: inline-block; line-height: 0;
}
.qr-canvas img, .qr-canvas canvas { display: block; border-radius: 4px; }
.qr-actions { display: flex; gap: 8px; }

/* ============================================================
   DESIGN — Section personnalisation
   ============================================================ */
.design-hint {
  font-size: var(--fs-hint); color: var(--muted); margin-bottom: 16px; margin-top: -8px;
}

/* Swatches de palettes */
.scheme-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.scheme-swatch {
  cursor: pointer; border: 2px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; width: 108px;
  transition: border-color .2s, transform .15s; user-select: none;
}
.scheme-swatch:hover  { transform: translateY(-2px); border-color: var(--muted); }
.scheme-swatch.active { border-color: var(--accent); }
.scheme-swatch input  { display: none; }
.swatch-color  { height: 48px; position: relative; }
.swatch-accent { position: absolute; bottom: 0; left: 0; right: 0; height: 10px; }
.swatch-name   {
  padding: 6px 8px; font-size: var(--fs-xs); text-align: center;
  background: var(--surface); color: var(--text); line-height: 1.2;
}
.scheme-swatch.active .swatch-name { font-weight: 600; color: var(--accent); }

/* Typographie — disposition */
.design-font-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 600px) { .design-font-row { grid-template-columns: 1fr; } }
.design-font-group { display: flex; flex-direction: column; gap: 10px; }
.font-preview-wrap { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--bg); }
.font-preview-label { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .5px; text-transform: uppercase; display: block; margin-bottom: 6px; }
.font-preview-title { font-size: 24px; color: var(--accent); line-height: 1.2; min-height: 36px; }
.font-preview-body  { font-size: var(--fs-base); color: var(--text); line-height: 1.5; min-height: 24px; }

/* Images */
.design-img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .design-img-row { grid-template-columns: 1fr; } }
.design-img-group label:first-child {
  font-size: var(--fs-xs); color: var(--muted);
  letter-spacing: .5px; text-transform: uppercase; display: block; margin-bottom: 10px;
}
.design-img-preview {
  display: block; width: 100%; max-height: 80px; object-fit: contain;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px; margin-bottom: 12px;
}
.design-img-sep { max-height: 44px; padding: 12px; }
.design-file-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.design-file-btn  { cursor: pointer; }
.design-file-name { font-size: var(--fs-sm); color: var(--muted); }

/* ============================================================
   FILTRES — Liste déroulante auteur / lot
   ============================================================ */
.filter-select-bar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.filter-select-bar label {
  font-size: var(--fs-xs); color: var(--muted);
  letter-spacing: .5px; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
}
.filter-select {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-b); font-size: var(--fs-base);
  padding: 9px 14px; outline: none; transition: border-color .2s;
  cursor: pointer; appearance: auto; min-width: 220px; max-width: 100%;
}
.filter-select:focus { border-color: var(--accent); }

/* ============================================================
   VIDÉOS — Badge ▶ sur les vignettes + player lightbox
   ============================================================ */

/* Vignette vidéo — Option A : fond dégradé thématique + bouton play
   Le dégradé utilise --card, --accent et --accent2 afin de s'adapter
   automatiquement à la palette choisie par l'administrateur. */
.photo-item.is-video .vid-overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--card) 0%, var(--accent) 60%, var(--accent2) 100%);
  pointer-events: none; overflow: hidden;
}
.photo-item.is-video .vid-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,.18) 0%, transparent 60%);
}
.photo-item.is-video .vid-play {
  width: 44px; height: 44px;
  border: 2.5px solid rgba(255,255,255,.9); border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  transition: transform .2s, background .2s;
}
.photo-item.is-video .vid-play::after {
  content: '';
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent rgba(255,255,255,.95);
  margin-left: 3px;
}
.photo-item.is-video:hover .vid-play {
  transform: scale(1.1);
  background: rgba(255,255,255,.26);
}
.photo-item.is-video .vid-badge,
.photo-item.is-video .vid-duration {
  position: absolute; bottom: 6px; right: 7px; z-index: 1;
  font-size: .65rem; font-family: Arial, sans-serif; letter-spacing: .04em;
}
.photo-item.is-video .vid-badge {
  color: rgba(255,255,255,.72); text-transform: uppercase;
}
.photo-item.is-video .vid-duration {
  color: #fff; font-weight: 700;
  background: rgba(0,0,0,.45); border-radius: 4px; padding: 1px 5px;
}
/* Sélection : assombrir l'overlay vidéo comme pour les photos */
.photo-item.is-video.selected .vid-overlay { filter: brightness(.7); }

/* Player vidéo dans la lightbox */
#lbVideo {
  max-width: 96vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  background: #000;
  outline: none;
}

/* Placeholder vidéo dans la grille upload */
.preview-item.is-video .video-preview-ph {
  width: 100%;
  height: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  font-size: 32px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   Gestion des invités
   ═══════════════════════════════════════════════════════════ */

/* Barre d'outils */
.guest-toolbar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.guest-search {
  flex: 1; min-width: 200px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-family: var(--font-b); font-size: var(--fs-base);
  color: var(--text);
  outline: none; transition: border-color .2s;
}
.guest-search:focus { border-color: var(--accent); }
.guest-toolbar-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Barre de sélection en lot */
.guest-bulk-bar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(200,169,110,.12);
  border: 1px solid rgba(200,169,110,.35);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: var(--fs-sm);
  color: var(--text);
}
.guest-bulk-bar span { font-weight: 600; }
.guest-bulk-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* Table */
.guest-table-wrap { overflow-x: auto; }
.guest-table {
  width: 100%; border-collapse: collapse;
  font-size: var(--fs-base);
}
.guest-table th,
.guest-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.guest-table th {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}
.guest-table tr:hover td { background: rgba(200,169,110,.06); }
.guest-table tr.selected td { background: rgba(200,169,110,.14); }
.guest-table .col-cb { width: 36px; text-align: center; padding-left: 8px; }
.guest-table .col-actions { width: 90px; text-align: center; white-space: nowrap; }

/* Boutons icône */
.btn-icon {
  background: none; border: none; cursor: pointer;
  padding: 4px 6px; border-radius: var(--radius-sm);
  font-size: 15px; line-height: 1;
  transition: background .15s;
}
.btn-icon:hover { background: rgba(200,169,110,.18); }
.btn-icon--danger:hover { background: rgba(201,64,64,.12); }

/* Message vide */
.guest-empty {
  text-align: center; padding: 40px 20px;
  color: var(--muted); font-size: var(--fs-hint);
}

/* ── Modales ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  width: 100%; max-width: 440px;
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
}
.modal-box--sm { max-width: 360px; }
.modal-box h2 {
  font-family: var(--font-d); font-size: 26px;
  color: var(--text); margin-bottom: 16px;
}
.modal-hint {
  font-size: var(--fs-hint); color: var(--muted);
  margin-bottom: 18px; line-height: 1.5;
}
.modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 24px;
}
.req { color: var(--danger); }
