/* ═══════════════════════════════════════════════
   SUPRADRAMA — Réservation : surcouche design system V2
   Chargé APRÈS style.css. Ne touche pas à la logique,
   remappe uniquement tokens, typos et formes.
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wdth,wght@0,62..125,100..900;1,62..125,100..900&family=Spline+Sans+Mono:wght@400;500&display=swap');

:root {
  --g1: #FFAFC0;
  --g2: #FF4D6D;
  --g3: #14111A;
  --text: #F4EFE6;
  --muted: rgba(244, 239, 230, 0.6);
  --muted-2: rgba(244, 239, 230, 0.45);
  --accent: #FF4D6D;
  --accent-hover: #FFAFC0;
  --glass: rgba(244, 239, 230, 0.04);
  --glass-2: rgba(244, 239, 230, 0.08);
  --border: rgba(244, 239, 230, 0.16);
  --border-2: rgba(244, 239, 230, 0.3);
  --radius-md: 0;
  --radius-sm: 0;
}

html, body { background-color: #14111A; }

/* Halo radial subtil unique (à la place des dégradés multiples) */
body::before {
  background:
    radial-gradient(900px 600px at 85% 110%, rgba(255, 77, 109, 0.12), transparent 70%) !important;
}

body {
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 100;
}

/* Titres façon carton de générique */
h1, h2, h3,
.editorial-title,
.login-title,
.page-title {
  font-family: 'Archivo', sans-serif;
  font-variation-settings: 'wdth' 125;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.login-title {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--text);
}

/* Méta en mono (numéros, timecodes) */
.section-num,
.editorial-tagline,
.avatar,
.month-summary,
.legend-item {
  font-family: 'Spline Sans Mono', monospace;
}
.section-num { color: var(--accent); letter-spacing: 0.08em; }

/* Boutons : angles droits, aplat rose */
.btn,
.btn-primary,
.btn-icon,
.page-tab,
.admin-tab,
.view-toggle-btn {
  border-radius: 0 !important;
}
.btn-primary {
  background: var(--accent);
  color: #14111A;
  font-weight: 600;
}
.btn-primary:hover {
  transform: none;
  box-shadow: none;
  background: var(--accent-hover);
  filter: none;
}

/* ── Masthead commun du site (subset de v2.css) ── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
header.masthead-bar { border-bottom: 1px solid var(--border); }
.masthead { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 24px; }
.masthead > a img { height: 26px; width: auto; display: block; }
.masthead nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.masthead nav a {
  font-family: 'Spline Sans Mono', monospace; font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: border-color 0.2s, color 0.2s;
}
.masthead nav a:hover { border-color: var(--accent); color: var(--accent-hover); }
.masthead nav a[aria-current="page"] { color: var(--accent-hover); border-color: var(--accent); }
.masthead #nav-auth { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.masthead #nav-auth .nav-email { font-family: 'Spline Sans Mono', monospace; font-size: 0.7rem; }

/* ── Colophon commun du site ── */
footer.colophon-bar { padding: 56px 0 40px; border-top: 1px solid var(--border); margin-top: 56px; }
.colophon { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.colophon h4 { font-size: 0.95rem; margin: 0 0 12px; letter-spacing: 0.04em; }
.colophon p, .colophon a { font-size: 0.85rem; color: var(--muted); line-height: 1.7; text-decoration: none; margin: 0; }
.colophon a { display: block; }
.colophon a:hover { color: var(--accent-hover); }
.legal {
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--border); padding-top: 20px; color: var(--muted); flex-wrap: wrap;
  font-family: 'Spline Sans Mono', monospace; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
}
/* Burger mobile (injecté par v2.js) */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--text); transition: transform 0.25s; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
  .colophon { grid-template-columns: 1fr; }
  .masthead { padding: 14px 0; gap: 14px; }
  .masthead nav { gap: 14px; }
}
@media (max-width: 768px) {
  header.masthead-bar { position: relative; }
  .nav-toggle { display: flex; }
  .masthead nav[aria-label="Menu principal"] { display: none; }
  .nav-open .masthead nav[aria-label="Menu principal"] {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    background: #14111A; border-bottom: 1px solid var(--border);
    padding: 4px 24px 20px;
  }
  .nav-open .masthead nav[aria-label="Menu principal"] a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
  .nav-open .masthead nav[aria-label="Menu principal"] a[aria-current="page"] { border-color: var(--accent); }
  .masthead #nav-auth .nav-email { display: none; }
}

/* Cartes et surfaces : angles droits */
.login-card,
.calendar,
.my-section,
.admin-section,
.month-summary,
.profile-card,
.gallery-item,
.meeting-calendar-section {
  border-radius: 0 !important;
}

/* ── Sticky "Let's talk" (injecté par v2.js, subset de v2.css) ── */
.sticky-talk {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.35s, visibility 0.35s, transform 0.35s;
}
.sticky-talk.is-visible { opacity: 1; visibility: visible; transform: none; }
.st-btn {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 17, 26, 0.72); backdrop-filter: blur(8px);
  border: 1px solid var(--border); transition: border-color 0.25s;
}
.st-btn:hover { border-color: var(--accent); }
.st-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.7);
  animation: st-pulse 3s ease-in-out infinite;
}
@keyframes st-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.st-panel {
  position: absolute; right: 0; bottom: calc(100% + 10px); min-width: 280px;
  background: #1C1722; border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.st-panel[hidden] { display: none; }
.st-head {
  font-family: 'Spline Sans Mono', monospace; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.st-panel a { padding: 12px 14px; font-size: 0.85rem; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; color: var(--text); text-decoration: none; }
.st-panel a:last-child { border-bottom: 0; }
.st-panel a:hover { background: #14111A; color: var(--accent-hover); }
.st-panel a .st-label { font-family: 'Spline Sans Mono', monospace; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

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