/* Coke Boys Eyewear — la page « bientôt » de cokeboyseyewear.com : le logo en grand, des points qui suivent ses
   contours à l'infini, une inscription par e-mail.
   Les règles du site (coke-boys-eyewear/css/style.css) : General Sans en minuscules serrée à -0.04em, Space Mono pour
   les petites mentions, une seule étincelle de couleur (#000aff) sur moins de 3 % de l'écran (ici, le bouton) ; le
   monogramme en ivoire sur l'encre, comme le logo officiel. */

@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/space-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --encre: #111111;
  --ivoire: #d2c5b4;
  --blanc: #ffffff;
  --cobalt: #000aff;
  --cendre: #8c8f96;
  --trait: rgba(210, 197, 180, 0.28);
  --sans: 'General Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--encre); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background: var(--encre); color: var(--blanc);
  font-family: var(--sans); font-weight: 500; letter-spacing: -0.018em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.cache {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* la toile des points : tout l'écran, derrière le texte, sans arrêter les clics */
.toile { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ——————————————— la barre du haut ——————————————— */
.haut {
  position: fixed; z-index: 2; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 18px max(22px, env(safe-area-inset-left));
}
.haut__marque { font-weight: 600; font-size: 15px; letter-spacing: -0.04em; color: var(--ivoire); }
.langues { display: flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 12px; color: var(--cendre); }
.langues__choix {
  background: none; border: 0; padding: 8px 6px; cursor: pointer; color: var(--cendre); text-transform: lowercase;
  text-decoration: none; transition: color .3s var(--ease);
}
.langues__choix[aria-pressed='true'], .langues__choix[aria-current='page'] { color: var(--blanc); }
.langues__choix:hover { color: var(--blanc); }
.langues__choix:focus-visible { outline: 1px solid var(--ivoire); outline-offset: 2px; border-radius: 4px; }

/* ——————————————— la scène : le logo, puis l'inscription ——————————————— */
.scene {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 92px 22px 76px;
  text-align: center;
}
/* le logo en grand : la plus grande taille qui laisse la place au texte dessous */
.logo {
  width: min(74vw, calc((100svh - 330px) * 1.56), 1040px);
  min-width: 260px;
  aspect-ratio: 786 / 504;
  position: relative;
}
.logo__svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* au doigt : glisser sur le logo joue avec les points au lieu de faire défiler la page ; le reste de la page défile
   comme d'habitude */
.logo { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.logo__fond { fill: var(--ivoire); opacity: 0.045; animation: apparaitre 2.4s var(--ease) 0.6s both; }
/* les pointillés : seulement sans animation (mouvement réduit, pas de toile, pas de script) */
.logo__points {
  fill: none; stroke: var(--ivoire); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 0 9; opacity: 0.9;
}
@media (scripting: enabled) { .logo__points { opacity: 0; } }
.anime .logo__points { opacity: 0; }
.sans-anime .logo__points { opacity: 0.9; }

.bientot {
  margin: clamp(26px, 4.4vh, 44px) 0 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ivoire);
  padding-left: 0.32em;   /* l'espace de la dernière lettre : le mot reste centré */
}

/* l'inscription : un champ et un bouton en pastille, comme le site */
.lettre { width: min(100%, 440px); margin-top: 22px; }
.lettre__ligne {
  display: flex; align-items: center; gap: 6px;
  padding: 5px; border-radius: 30px;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--trait);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.lettre__ligne:focus-within { background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(210, 197, 180, 0.6); }
.lettre__champ {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px 0 16px;
  background: transparent; border: 0; outline: 0;
  font-size: 16px; letter-spacing: -0.02em; color: var(--blanc);
}
.lettre__champ::placeholder { color: rgba(255, 255, 255, 0.46); }
.lettre__bouton {
  flex: none; height: 42px; padding: 0 20px; border: 0; border-radius: 30px; cursor: pointer;
  background: var(--cobalt); color: var(--blanc);
  font-size: 15px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.lettre__bouton:hover { background: var(--blanc); color: var(--encre); }
.lettre__bouton:active { transform: scale(0.97); }
.lettre__bouton:focus-visible { outline: 2px solid var(--blanc); outline-offset: 2px; }
.lettre__bouton[disabled] { opacity: 0.6; cursor: default; }
.lettre__message {
  min-height: 20px; margin: 12px 0 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ivoire);
}
.lettre__message.is-erreur { color: #ff8a80; }
.lettre.is-faite .lettre__ligne { opacity: 0.55; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mentions { margin: 6px 0 0; max-width: 440px; font-size: 13px; line-height: 1.5; color: var(--cendre); }
.mentions a { color: var(--cendre); text-underline-offset: 3px; transition: color .3s var(--ease); }
.mentions a:hover { color: var(--blanc); }

.pied {
  position: relative; z-index: 1; text-align: center;
  padding: 0 22px max(22px, env(safe-area-inset-bottom));
  margin-top: -54px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: #5d6068;
}

/* l'arrivée du texte, quand les points ont pris place (en CSS : le texte arrive même sans script) */
@keyframes monter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes apparaitre { from { opacity: 0; } }
.bientot { animation: monter 1.1s var(--ease) 1.9s both; }
.lettre { animation: monter 1.1s var(--ease) 2.05s both; }
.mentions { animation: monter 1.1s var(--ease) 2.2s both; }
.haut, .pied { animation: apparaitre 1.4s var(--ease) 2.2s both; }

/* ——————————————— la page « confidentialité » ——————————————— */
.page-texte .haut { position: sticky; background: linear-gradient(var(--encre) 70%, rgba(17, 17, 17, 0)); animation: none; }
.page-texte .haut__marque { text-decoration: none; }
.texte { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 40px 22px 96px; }
.texte h1 { margin: 0; font-weight: 600; font-size: clamp(40px, 7vw, 64px); letter-spacing: -0.04em; line-height: 1; color: var(--ivoire); }
.texte__date { margin: 14px 0 34px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--cendre); }
.texte h2 { margin: 32px 0 8px; font-weight: 600; font-size: 19px; letter-spacing: -0.03em; color: var(--blanc); }
.texte p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: #c9cbd0; }
.texte a { color: var(--ivoire); text-underline-offset: 3px; }
.texte__retour { margin-top: 44px !important; font-family: var(--mono); font-size: 13px !important; }
.texte__retour a { color: var(--cendre); text-decoration: none; }
.texte__retour a:hover { color: var(--blanc); }
.pied--texte { margin-top: 0; animation: none; }

/* ——————————————— la page 404 : le logo vivant, pour ne pas perdre le visiteur ———————————————
   « error 404 » en petites capitales, le logo vivant un peu plus petit, une phrase, l'inscription (l'étincelle cobalt,
   le but de la page), le retour à l'accueil en pastille fine ; le texte arrive tout de suite, sans attendre les points. */
.scene--erreur { padding-top: 84px; }
.scene--erreur .erreur__code { margin: 0 0 clamp(16px, 2.6vh, 26px); animation-delay: .15s; }
.logo.logo--erreur { width: min(64vw, calc((100svh - 600px) * 1.56), 560px); min-width: 230px; }
a.haut__marque { text-decoration: none; }
@media (min-width: 900px) { .erreur__titre { max-width: none; } }
.erreur__titre {
  margin: clamp(20px, 3.4vh, 34px) 0 0; max-width: 16ch;
  font-weight: 600; font-size: clamp(32px, 5.4vw, 56px); line-height: 1; letter-spacing: -0.05em; color: var(--blanc);
  text-wrap: balance; animation: monter 1s var(--ease) .3s both;
}
.erreur__texte {
  margin: 14px 0 0; max-width: 420px; font-size: 16px; line-height: 1.5; color: #c9cbd0;
  text-wrap: balance; animation: monter 1s var(--ease) .42s both;
}
.scene--erreur .lettre { margin-top: 26px; animation-delay: .55s; }
.erreur__retour { margin: 4px 0 0; animation: monter 1s var(--ease) .68s both; }
.erreur__bouton {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 30px;
  box-shadow: inset 0 0 0 1px var(--trait); color: var(--ivoire); text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: -0.03em;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.erreur__bouton svg { transition: transform .3s var(--ease); }
.erreur__bouton:hover { background: var(--ivoire); color: var(--encre); box-shadow: inset 0 0 0 1px var(--ivoire); }
.erreur__bouton:hover svg { transform: translateX(3px); }
.erreur__bouton:focus-visible { outline: 2px solid var(--blanc); outline-offset: 2px; }
.scene--erreur .mentions { margin-top: 18px; animation-delay: .8s; }
.page-erreur .haut, .page-erreur .pied { animation-delay: .3s; }

/* téléphone : le logo prend la largeur */
@media (max-width: 599px) {
  .logo { width: min(94vw, calc((100svh - 330px) * 1.56)); }
  .haut__marque { font-size: 14px; }
  .lettre__bouton { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .bientot, .lettre, .mentions, .haut, .pied, .logo__fond, .erreur__titre, .erreur__texte, .erreur__retour { animation: none; }
  .logo__points { opacity: 0.9; }
}
