/* ==========================================================================
   Page d'attente — melinaterrier.fr
   Reprend les tokens du portfolio (couleurs, typo Fraunces/Inter/JetBrains Mono)
   Desktop : 2 colonnes (texte / contact) pour tenir sur un seul écran.
   Mobile  : colonne unique centrée.
   ========================================================================== */

:root {
  --paper: #fbf9f4;
  --bg-warm: #efeae0;
  --ink: #1a1a18;
  --ink-2: #3a3a36;
  --ink-muted: #6b6b66;
  --ink-subtle: #9a9a95;
  --blue: #1a3dc1;
  --blue-hover: #152aa8;
  --warm: #c8704e;
  --line: rgba(26, 26, 24, 0.12);
  --line-soft: rgba(26, 26, 24, 0.06);
  --green: #22c55e;

  --f-display: 'Fraunces', Georgia, serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--f-body);
  color: var(--ink);
  background-color: var(--paper);
  /* Léger dégradé + grille discrète, comme la home */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(26, 61, 193, 0.05), transparent 42%),
    radial-gradient(circle at 85% 88%, rgba(200, 112, 78, 0.06), transparent 45%),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  position: relative;
  overflow-x: hidden;
}

/* Grain subtil */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

/* ==========================================================================
   Formes décoratives géométriques (clin d'œil au hero)
   ========================================================================== */
.deco {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  color: var(--blue);
  opacity: 0.14;
  animation: float 9s var(--ease-out) infinite alternate;
}
.deco svg { display: block; width: 100%; height: 100%; }

.deco-circle   { top: 14%; left: 8%;  width: 90px;  height: 90px; }
.deco-cross    { top: 22%; right: 12%; width: 38px; height: 38px; color: var(--warm); opacity: 0.22; animation-delay: -2s; }
.deco-arc      { bottom: 16%; left: 11%; width: 120px; height: 120px; opacity: 0.1; animation-delay: -4s; }
.deco-triangle { bottom: 24%; right: 9%; width: 44px; height: 44px; color: var(--warm); opacity: 0.2; animation-delay: -1s; }
.deco-square   { top: 50%; left: 4%; width: 16px; height: 16px; background: var(--blue); opacity: 0.16; animation-delay: -3s; }
.deco-dot      { top: 70%; right: 18%; width: 12px; height: 12px; border-radius: 50%; background: var(--warm); opacity: 0.3; animation-delay: -5s; }

.deco svg circle,
.deco svg line,
.deco svg path { stroke: currentColor; stroke-width: 2; fill: none; }
.deco svg polygon { stroke: currentColor; stroke-width: 2; fill: none; }

@keyframes float {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-18px) rotate(6deg); }
}

/* ==========================================================================
   Layout — mobile (par défaut) : colonne unique centrée
   ========================================================================== */
.page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(44px, 10vw, 60px);
  /* Padding-top dégagé pour le logo fixe ; respiration en bas (scroll autorisé sur mobile) */
  padding: clamp(104px, 26vw, 132px) 22px clamp(56px, 14vw, 80px);
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.logo {
  position: fixed;
  top: clamp(22px, 4vw, 36px);
  left: clamp(22px, 4vw, 44px);
  z-index: 2;
  color: var(--blue);
  width: 50px;
  height: auto;
  animation: rise 0.9s var(--ease-out) both;
}
.logo svg { display: block; width: 100%; height: auto; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 22px;
  animation: rise 0.9s var(--ease-out) 0.05s both;
}

.title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(42px, 12vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: 'opsz' 144;
  margin-bottom: clamp(22px, 5vw, 28px);
  animation: rise 1s var(--ease-out) 0.12s both;
}
.title em { font-style: italic; color: var(--blue); }

.lead {
  font-size: clamp(16px, 4.4vw, 18px);
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 42ch;
  margin: 0 0 clamp(34px, 7vw, 40px);
  animation: rise 1s var(--ease-out) 0.2s both;
}
.lead em { font-style: italic; color: var(--ink-2); }

/* Pastille de statut */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  font-family: var(--f-mono);
  font-size: clamp(10px, 2.8vw, 13px);
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  backdrop-filter: blur(4px);
  animation: rise 1s var(--ease-out) 0.28s both;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* Bloc contact */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: rise 1s var(--ease-out) 0.36s both;
}
.contact-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 16px;
}
.contact-email {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.contact-email:hover,
.contact-email:focus-visible {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
  margin-top: 22px;
}
.socials a {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.socials a:hover,
.socials a:focus-visible {
  color: var(--blue);
  background: rgba(26, 61, 193, 0.07);
}
.socials .sep { color: var(--line); align-self: center; }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-subtle);
}

/* ==========================================================================
   Layout — desktop : 2 colonnes, tout tient sur un écran
   ========================================================================== */
@media (min-width: 880px) {
  .page {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    column-gap: 0;
    text-align: left;
    max-width: 1080px;
    padding: 48px;
  }

  .intro {
    align-items: flex-start;
    padding-right: clamp(48px, 6vw, 80px);
  }
  .title { font-size: clamp(56px, 5.4vw, 84px); }
  .lead { margin-bottom: 30px; }
  .status { align-self: flex-start; }

  .contact {
    align-items: flex-start;
    padding-left: clamp(48px, 6vw, 80px);
  }
  .socials { justify-content: flex-start; }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.55; }
}

/* Accessibilité — focus visible */
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
