:root{
  --bg:#0A0A0A;
  --surface:#141414;
  --surface-2:#191919;
  --line:#262626;
  --line-soft:#1c1c1c;
  --text:#FAFAFA;
  --text-dim:#9A9A9A;
  --text-faint:#5C5C5C;
  --accent:#39FF88;
  --accent-dim:#2BD873;
  --accent-glow:rgba(57,255,136,0.35);
  --font-display:'Space Grotesk','Arial Black',sans-serif;
  --font-body:'Inter',system-ui,-apple-system,sans-serif;
  --font-mono:'Space Mono','Courier New',monospace;
  --maxw:1120px;
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-padding-top:88px;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block;max-width:100%;}
a{color:inherit;}
h1,h2,h3{font-family:var(--font-display);font-weight:700;margin:0;text-wrap:balance;}
p{margin:0;}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px;}

::selection{background:var(--accent);color:var(--bg);}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px;}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:0.001ms !important;animation-iteration-count:1 !important;transition-duration:0.001ms !important;scroll-behavior:auto !important;}
}

/* ---------- generic blur-to-reveal utility ---------- */
.blurred{
  filter:blur(20px) saturate(0.7);
  user-select:none;
  pointer-events:none;
  transition:filter .35s ease;
}
.blurred.is-unlocked{
  filter:none;
  user-select:auto;
  pointer-events:auto;
}

/* ---------- nav ---------- */
header{
  position:sticky;top:0;z-index:50;
  background:rgba(10,10,10,0.82);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-soft);
}
nav.wrap{
  display:flex;align-items:center;justify-content:space-between;
  height:72px;
}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--font-display);font-weight:700;font-size:19px;letter-spacing:-0.01em;text-decoration:none;}
.tag-word{color:var(--accent);}
.nav-links{display:flex;align-items:center;gap:36px;font-size:14.5px;color:var(--text-dim);}
.nav-links a{text-decoration:none;transition:color .15s ease;}
.nav-links a:hover{color:var(--text);}
.nav-cta{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--accent);color:var(--bg);
  font-weight:600;font-size:14px;
  padding:10px 18px;border-radius:999px;
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover{transform:translateY(-1px);box-shadow:0 6px 20px var(--accent-glow);}
.cta-short{display:none;}
.login-btn-icon{display:none;width:19px;height:19px;}
@media (max-width:760px){ .nav-links{display:none;} }
/* Small phones only — the header gets tight with brand + CTA + "Se
   connecter" all on one line. Shorten the CTA and swap "Se connecter" for
   an icon-only button, same treatment as the mailbox/push icons. */
@media (max-width:420px){
  .cta-full{display:none;}
  .cta-short{display:inline;}
  .login-btn-text{display:none;}
  .login-btn-icon{display:block;}
  .nav-login-btn{width:20px;height:20px;display:flex;align-items:center;justify-content:center;}
}

.nav-actions{display:flex;align-items:center;gap:20px;}
.account-menu{position:relative;display:flex;align-items:center;gap:16px;}
/* Several pages declare a bare form{margin-top:...} for their own page
   form — same leakage as the button reset below, applied to the header's
   logout form specifically since it's the only <form> living in the header. */
.account-menu form{margin:0;}
.nav-account-link{
  font-family:var(--font-body);font-size:14px;color:var(--text-dim);
  background:none;border:0;cursor:pointer;padding:0;text-decoration:none;
  transition:color .15s ease;
}
.nav-account-link:hover{color:var(--text);}
/* Several pages (contact.css, reserve.css, mailbox.css...) style every
   button[type="submit"] as a big full-width pill for their own forms —
   that selector alone outranks .nav-account-link's specificity, so it was
   leaking into the header's logout button on those pages. Reset it back to
   a plain inline text link regardless of what any page-level stylesheet
   declares. */
.account-menu button[type="submit"].nav-account-link{
  all:unset;
  font-family:var(--font-body);font-size:14px;color:var(--text-dim);
  cursor:pointer;white-space:nowrap;
  transition:color .15s ease;
}
.account-menu button[type="submit"].nav-account-link:hover{color:var(--text);}

.logout-btn-icon{display:none;width:19px;height:19px;}
/* Same treatment as "Se connecter" (see the max-width:420px block above) —
   .account-menu button[type="submit"].nav-account-link's all:unset (above)
   would otherwise win the width/height/display tie on specificity+order, so
   this rule qualifies the full selector to outrank it regardless of where
   in the file it sits. */
@media (max-width:420px){
  .account-menu button[type="submit"].nav-account-link.nav-logout-btn{
    width:20px;height:20px;padding:0;
    display:flex;align-items:center;justify-content:center;
  }
  .logout-btn-text{display:none;}
  .logout-btn-icon{display:block;}
}

.push-toggle-btn{
  display:flex;align-items:center;justify-content:center;
  width:20px;height:20px;padding:0;
  background:none;border:0;color:var(--text-dim);cursor:pointer;
  transition:color .15s ease;
}
.push-toggle-btn:hover{color:var(--text);}
.push-toggle-btn svg{width:19px;height:19px;}
.push-toggle-btn.active{color:var(--accent);}
.push-toggle-btn:disabled{opacity:.5;cursor:default;}

.tools-nav-link{
  display:flex;align-items:center;justify-content:center;
  width:20px;height:20px;color:var(--text-dim);
  transition:color .15s ease;
}
.tools-nav-link:hover{color:var(--text);}
.tools-nav-link svg{width:19px;height:19px;}

.mailbox-icon-link{
  position:relative;display:flex;align-items:center;justify-content:center;
  width:20px;height:20px;color:var(--text-dim);
  transition:color .15s ease;
}
.mailbox-icon-link:hover{color:var(--text);}
.mailbox-icon-link svg{width:19px;height:19px;}
.mailbox-badge{
  position:absolute;top:-7px;right:-9px;
  min-width:15px;height:15px;padding:0 3px;
  display:flex;align-items:center;justify-content:center;
  background:var(--accent);color:var(--bg);
  font-family:var(--font-mono);font-size:9.5px;font-weight:700;
  border-radius:999px;line-height:1;
}

.login-popover{
  position:absolute;top:calc(100% + 12px);right:0;z-index:60;
  background:var(--surface);border:1px solid var(--line);border-radius:12px;
  padding:14px;width:240px;box-shadow:0 12px 32px -8px rgba(0,0,0,0.5);
}
.login-popover form{display:flex;flex-direction:column;gap:8px;}
.login-popover input[type="text"]{
  width:100%;box-sizing:border-box;
  background:var(--surface-2);border:1px solid var(--line);border-radius:8px;
  padding:9px 10px;font-size:13.5px;color:var(--text);
}
.login-popover input[type="text"]::placeholder{color:var(--text-faint);}
.login-popover input[type="text"]:focus{outline:none;border-color:var(--accent);}
.login-popover button[type="submit"]{
  background:var(--accent);color:var(--bg);border:0;border-radius:999px;
  padding:9px 14px;font-weight:600;font-size:13px;cursor:pointer;
}
.login-message{margin-top:8px;font-size:12.5px;color:var(--text-dim);}
.login-message.error{color:#ff6b6b;}

.remembered-accounts{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;}
.remembered-accounts:empty{display:none;margin-bottom:0;}
.remembered-account-row{display:flex;align-items:center;gap:6px;}
.remembered-account-btn{
  flex:1;min-width:0;
  display:flex;align-items:center;gap:8px;
  background:var(--surface-2);border:1px solid var(--line);border-radius:8px;
  padding:8px 10px;font-family:var(--font-mono);font-size:13px;color:var(--text-dim);
  cursor:pointer;text-align:left;transition:border-color .15s ease,color .15s ease;
}
.remembered-account-btn:hover{color:var(--text);}
.remembered-account-btn.selected{border-color:var(--accent);color:var(--text);}
.remembered-account-btn::before{
  content:"";width:6px;height:6px;border-radius:50%;flex:none;
  background:var(--text-faint);
}
.remembered-account-btn.selected::before{background:var(--accent);box-shadow:0 0 6px var(--accent-glow);}
.remembered-account-forget{
  flex:none;width:24px;height:24px;
  background:none;border:0;color:var(--text-faint);font-size:12px;cursor:pointer;
  transition:color .15s ease;
}
.remembered-account-forget:hover{color:#ff6b6b;}

/* ---------- eyebrow ---------- */
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--font-mono);font-size:13px;color:var(--accent);
  background:rgba(57,255,136,0.08);
  border:1px solid rgba(57,255,136,0.25);
  padding:6px 12px;border-radius:999px;
}
.eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px var(--accent-glow);}

/* ---------- footer ---------- */
footer{border-top:1px solid var(--line-soft);padding:40px 0;}
.foot-row{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;}
.foot-brand{display:flex;align-items:center;gap:9px;font-family:var(--font-display);font-weight:700;font-size:15px;}
.foot-links{display:flex;gap:24px;font-size:13.5px;color:var(--text-faint);}
.foot-links a{text-decoration:none;}
.foot-links a:hover{color:var(--text-dim);}
.foot-copy{font-size:12.5px;color:var(--text-faint);font-family:var(--font-mono);}
