/* =========================================================
   lauratrainer.fr — page d'attente
   Direction : affiche de salle de sport, photo N&B plein cadre,
   typo condensée façon panneau/chrono, un seul accent "effort".
   ========================================================= */

:root {
  --ink: #f6f4ef;
  --ink-muted: #b9b4a8;
  --void: #0a0a0a;
  --accent: #ff4b1f;
  --accent-dim: rgba(255, 75, 31, 0.16);
  --line: rgba(246, 244, 239, 0.18);
  --panel: #121212;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--void);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ---------- Fond plein écran ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.08);
  z-index: -2;
}

.hero__overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to top,
      rgba(6, 6, 6, 0.92) 0%,
      rgba(6, 6, 6, 0.62) 32%,
      rgba(6, 6, 6, 0.18) 60%,
      rgba(6, 6, 6, 0.38) 100%
    );
}

/* grain léger pour renforcer le côté "tirage argentique" */
.hero__grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 4vw, 40px) clamp(20px, 5vw, 56px) 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 100px;
  text-decoration: none;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.socials a:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.socials svg {
  width: 16px;
  height: 16px;
  fill: var(--ink);
}

/* ---------- Contenu principal ---------- */

.content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 5vw, 56px) clamp(28px, 5vw, 56px);
  max-width: 920px;
}

.headline {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
  font-size: clamp(48px, 9vw, 108px);
  margin: 0 0 14px;
}

.headline em {
  font-style: normal;
  color: var(--accent);
}

.subhead {
  font-size: clamp(16px, 2.1vw, 20px);
  color: var(--ink-muted);
  max-width: 46ch;
  margin: 0 0 28px;
  line-height: 1.5;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0 0 32px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.credentials span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.credentials span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.btn-primary {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--ink);
  border: none;
  padding: 17px 30px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.cta-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.link-secondary {
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
}

.link-secondary--below {
  display: inline-block;
  margin-top: 22px;
  text-align: center;
}

.link-secondary:hover {
  color: var(--ink);
  text-decoration-color: var(--accent);
}

.footnote {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 5vw, 56px) clamp(20px, 4vw, 32px);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Texte de présentation (SEO) sous le hero ---------- */

.seo-text {
  position: relative;
  z-index: 2;
  background: var(--void);
  border-top: 1px solid var(--line);
  padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 56px);
}

.seo-text__inner {
  max-width: 62ch;
  margin: 0 auto;
}

.seo-text p {
  margin: 0;
  color: var(--ink-muted);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.7;
}

/* ---------- Modal / layer formulaire ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 6, 0.78);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px) 16px;
  overflow-y: auto;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  /* Layer en fond blanc : on surcharge localement les variables de
     couleur (tout le contenu du modal les utilise déjà), donc pas besoin
     de retoucher chaque règle une par une. */
  --ink: #1a1a1a;
  --ink-muted: #6b6b6b;
  --line: rgba(0, 0, 0, 0.12);
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  width: 100%;
  max-width: 640px;
  padding: clamp(24px, 4vw, 40px);
  position: relative;
  animation: modal-in 0.25s ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.modal__close:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.modal__eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.modal__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.02;
  margin: 0 0 10px;
}

.modal__intro {
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 12px;
  max-width: 52ch;
}

.modal__required-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  margin: 0 0 24px;
}

.form-section {
  margin-bottom: 26px;
}

.form-section__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 7px;
}

.field .optional {
  color: var(--ink-muted);
  font-weight: 400;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea {
  width: 100%;
  background: rgba(246, 244, 239, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.modal .field input[type="text"],
.modal .field input[type="email"],
.modal .field input[type="number"],
.modal .field textarea {
  background: #f6f6f4;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(246, 244, 239, 0.07);
}

.modal .field input:focus,
.modal .field textarea:focus {
  background: #ffffff;
}

.field textarea {
  resize: vertical;
  min-height: 70px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  position: relative;
}

.pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.pill span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  color: var(--ink-muted);
  transition: all 0.15s ease;
}

.pill input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--void);
  font-weight: 600;
}

.pill input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.modal .btn-primary {
  color: #ffffff;
  background: #0a0a0a;
}

.modal .btn-primary:hover {
  background: var(--accent);
  color: #ffffff;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.modal__submit {
  width: 100%;
  margin-top: 8px;
}

.form-msg {
  margin-top: 16px;
  font-size: 13.5px;
  padding: 12px 14px;
  border-radius: 8px;
  display: none;
}

.form-msg.is-visible {
  display: block;
}

.form-msg.success {
  background: rgba(90, 200, 120, 0.12);
  border: 1px solid rgba(90, 200, 120, 0.35);
  color: #bdeecb;
}

.modal .form-msg.success {
  color: #1e7a3f;
}

.form-msg.error {
  background: rgba(255, 75, 31, 0.1);
  border: 1px solid rgba(255, 75, 31, 0.4);
  color: #ffcfc0;
}

.modal .form-msg.error {
  color: #b8380f;
}

/* ---------- Accessibilité : focus clavier ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Réduction de mouvement ---------- */

@media (prefers-reduced-motion: reduce) {
  .modal {
    animation: none;
  }
  .btn-primary,
  .pill span,
  .socials a {
    transition: none;
  }
}
