/* ─── Maintenance banner ─── */
.maintenance-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 16px; height: 31px;
  background: rgba(255, 184, 108, .15);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 184, 108, .3);
  font-size: .76rem; font-weight: 500; color: #c47a1e;
  letter-spacing: .01em;
}
.maintenance-banner svg { width: 14px; height: 14px; stroke: #c47a1e; fill: none; stroke-width: 1.8; flex-shrink: 0; }
body:has(.maintenance-banner) .navbar { top: 31px; }
body:has(.maintenance-banner) main { padding-top: 95px; }

/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Variables are in variables.css */

/* ── Required asterisk ── */
.required { color: var(--required); font-weight: 500; }

.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; }
.sr-only-focusable:focus { position: static; width: auto; height: auto; padding: 8px 16px; margin: 0; overflow: visible; clip: auto; white-space: normal; background: var(--accent); color: #fff; z-index: 99999; border-radius: 0 0 8px 8px; font-size: .85rem; text-decoration: none; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-top: 64px;
}

/* ─── BLOBS ─── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
  z-index: 0;
}
.blob-1 { width: 500px; height: 500px; background: radial-gradient(circle, #c5d0fc, #e8e4ff); top: -130px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 360px; height: 360px; background: radial-gradient(circle, #fce4f3, #f5d0f8); bottom: 100px; right: -80px; animation-delay: -3.5s; }
.blob-3 { width: 260px; height: 260px; background: radial-gradient(circle, #c8f0e8, #d0f5d8); top: 45%; left: 50%; animation-delay: -6s; }

@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-24px) scale(1.04); }
}

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 2px 24px rgba(120,130,180,0.08);
  transition: background 0.3s, box-shadow 0.3s;
  animation: navIn 0.5s cubic-bezier(.22,.68,0,1.1) both;
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.navbar.scrolled {
  background: rgba(255,255,255,0.82);
  box-shadow: 0 4px 32px rgba(120,130,180,0.14);
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  flex: 1;
}
.nav-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(124,158,255,0.3);
  flex-shrink: 0;
}
.nav-logo-icon svg { width: 16px; height: 16px; fill: #fff; }
.nav-logo-icon:has(img) { background: none; box-shadow: none; }
.nav-logo-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.nav-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); background: rgba(124,158,255,0.08); }
.nav-links a.active { color: var(--accent); font-weight: 500; background: rgba(124,158,255,0.1); pointer-events: none; }



/* Nav actions */
.nav-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  flex: 1;
}
.btn-ghost {
  padding: 8px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover { color: var(--text); background: rgba(0,0,0,0.04); }
.btn-ghost.active {
  color: var(--accent); font-weight: 500;
  background: rgba(124,158,255,0.1);
  border-color: rgba(124,158,255,0.3);
  pointer-events: none;
}

.btn-nav-cta {
  padding: 8px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(124,158,255,0.32);
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  display: inline-block;
}
.btn-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,158,255,0.4); }
.btn-nav-cta.active {
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.15);
  transform: none;
  opacity: .85;
  pointer-events: none;
}

.nav-sep {
  width: 1px; height: 20px;
  background: rgba(180,190,220,0.5);
  margin: 0 4px;
}

/* ─── AVATAR & DROPDOWN ─── */
.nav-dropdown-wrap {
  position: relative;
}

.nav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 2px 8px rgba(94,207,174,0.3);
  transition: transform 0.18s;
  font-family: 'DM Sans', sans-serif;
}
.nav-avatar:hover { transform: scale(1.07); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: rgba(255,255,255,0.82);
  border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(120,130,160,0.18), inset 0 1px 0 rgba(255,255,255,0.9);
  padding: 8px;
  z-index: 200;
  animation: dropdownIn 0.2s cubic-bezier(.22,.68,0,1.2) both;
}
.nav-dropdown.open { display: block; }

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-dropdown-header {
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}
.nav-dropdown-email {
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 300;
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(180,190,220,0.35);
  margin: 4px 0;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item svg {
  width: 15px; height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.nav-dropdown-item:hover {
  background: rgba(124,158,255,0.08);
  color: var(--text);
}

.nav-dropdown-item--admin {
  color: var(--accent);
}
.nav-dropdown-item--admin:hover {
  background: rgba(124,158,255,0.1);
  color: var(--accent);
}

.nav-dropdown-item--logout:hover {
  background: rgba(255,107,138,0.08);
  color: #d44d70;
}

/* ─── BURGER ─── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-burger:hover { background: rgba(124,158,255,0.1); }
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

/* Burger animé → croix */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay mobile */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,20,40,0.25);
  backdrop-filter: blur(2px);
  z-index: 99;
}
.nav-mobile-overlay.active { display: block; }

/* ════════════════════════════════
   FOOTER (sticky bas de page)
════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  padding: 36px 44px 28px;
  background: rgba(255,255,255,0.62);
  border-top: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  box-shadow: 0 -2px 24px rgba(120,130,180,0.07);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 32px;
}
.footer-top > .footer-brand { justify-self: end; }
.footer-top > .footer-col:nth-child(2) { justify-self: center; }
.footer-top > .footer-col:nth-child(3) { justify-self: start; }

.footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}
.footer-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(124,158,255,0.28);
}
.footer-logo-icon svg { width: 14px; height: 14px; fill: #fff; }
.footer-logo-icon:has(img) { background: none; box-shadow: none; }
.footer-logo-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.footer-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 500;
  color: var(--text); letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 220px;
}

.footer-newsletter {
  display: flex; gap: 8px;
}
.footer-newsletter input {
  flex: 1;
  padding: 9px 13px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--text);
  background: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(200,210,240,0.6);
  border-radius: 10px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(6px);
}
.footer-newsletter input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,158,255,0.1);
}
.footer-newsletter input::placeholder { color: var(--muted); }
.footer-newsletter button {
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(124,158,255,0.28);
  transition: transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.footer-newsletter button:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(124,158,255,0.38); }

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.footer-col ul a:hover { color: var(--accent); }
.footer-col ul a.active { pointer-events: none; }
.footer-col ul a span {
  padding: 4px 10px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.footer-col ul a:hover span { color: var(--accent); background: rgba(124,158,255,0.08); }
.footer-col ul a.active span { color: var(--accent); font-weight: 500; background: rgba(124,158,255,0.1); }

.pill-status {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 20px;
  background: rgba(94,207,174,0.15);
  color: var(--green);
  border: 1px solid rgba(94,207,174,0.3);
}

.footer-divider {
  height: 1px;
  background: rgba(180,190,220,0.35);
  margin-bottom: 22px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-bottom > .footer-copy { flex: 1; }
.footer-bottom > .social-links { flex: 1; justify-content: center; }
.footer-bottom > .footer-legal { flex: 1; justify-content: flex-end; }
.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
}
.footer-copy span { color: var(--accent); }

.social-links { display: flex; gap: 8px; justify-content: center; }
.social-btn {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(200,210,240,0.6);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border 0.2s, transform 0.18s;
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.social-btn:hover { background: rgba(124,158,255,0.1); border-color: var(--accent); transform: translateY(-2px); }
.social-btn svg { width: 14px; height: 14px; fill: color-mix(in srgb, var(--accent) 35%, var(--muted)); transition: fill 0.2s; }
.social-btn:hover svg { fill: var(--accent); }
.social-btn img { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; filter: grayscale(.6) opacity(.55); transition: filter 0.2s; }
.social-btn:hover img { filter: grayscale(0) opacity(1); }

.footer-legal { display: flex; gap: 16px; }
.footer-legal a {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--accent); }
.footer-legal a.active { pointer-events: none; }
.footer-legal a span {
  padding: 4px 10px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.footer-legal a:hover span { color: var(--accent); background: rgba(124,158,255,0.08); }
.footer-legal a.active span { color: var(--accent); font-weight: 500; background: rgba(124,158,255,0.1); }

/* ════════════════════════════════
   RESPONSIVE — menu burger
════════════════════════════════ */
@media (max-width: 768px) {

  .navbar { padding: 0 20px; }

  .nav-burger { display: flex; }

  .nav-links,
  .nav-actions {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: rgba(240,242,251,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 32px rgba(120,130,180,0.12);
    z-index: 100;
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-links { border-radius: 0; }

  .nav-links.open,
  .nav-actions.open {
    display: flex;
  }

  .nav-actions {
    top: auto;
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 20px 20px;
    box-shadow: none;
    border: none;
    background: rgba(240,242,251,0.97);
    backdrop-filter: blur(20px);
  }

  .nav-links a {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .nav-sep { display: none; }

  /* Footer responsive */
  .footer {
    padding: 28px 20px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-top > .footer-brand,
  .footer-top > .footer-col:nth-child(2),
  .footer-top > .footer-col:nth-child(3) { justify-self: center; }
  .footer-top > .footer-col ul { align-items: center; }

  .footer-tagline { max-width: 100%; margin-left: auto; margin-right: auto; }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .footer-bottom > .social-links { order: 1; }
  .footer-bottom > .footer-legal { order: 2; flex-wrap: wrap; justify-content: center; }
  .footer-bottom > .footer-copy { order: 3; }
}

/* ─── LOADING BUTTON STATE ─── */
.btn--loading { cursor: wait !important; opacity: 0.75; }
.btn-icon-spin.spinning {
  display: inline-block !important;
  animation: spin 0.75s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── INLINE FORM ERRORS ─── */
.form-errors { list-style: none; margin: 4px 0 0; padding: 0; }
.form-errors li { font-size: 0.78rem; color: #e55; margin-top: 2px; }
.input--error { border-color: #e55 !important; box-shadow: 0 0 0 3px rgba(220,80,80,.12) !important; }

@media (max-width: 480px) {
  .footer-newsletter {
    flex-direction: column;
  }
  .footer-newsletter button {
    width: 100%;
  }
}
