/* Hallmark · macrostructure: split-studio · theme: custom (Sortline workshop) */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5 */

/* Jetons issus du jeu : la page et le jeu partagent exactement la meme palette,
   pour qu'un joueur venu de TikTok reconnaisse l'un dans l'autre. */
:root {
  --wall-top:   #6E8F8A;
  --wall-bot:   #94ADA6;
  --paper:      #F2EDE0;
  --paper-warm: #E7DFCC;
  --ink:        #23302F;
  --ink-soft:   #526663;
  --rule:       #BFD6CD;
  --signal:     #D8503C;
  --prussian:   #3C7BD8;
  --brass:      #E8A63A;
  --slate:      #3A4A4B;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body:    "Barlow", system-ui, sans-serif;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
  --step-3: clamp(2.4rem, 1.7rem + 3.2vw, 4.6rem);
  --step-4: clamp(3.2rem, 2rem + 5.4vw, 7rem);

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --stack:  clamp(3.5rem, 8vw, 7.5rem);
}

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

body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--wall-top) 0%, var(--wall-bot) 100%);
}
html, body { overflow-x: clip; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* Le degrade est peint par un calque fixe plutot que par
     background-attachment, qui laisse des zones non repeintes au defilement. */
  background: var(--wall-top);
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.005em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

p { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }

.shell { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* --- barre de tete ------------------------------------------------------- */
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: clamp(1.1rem, 3vw, 2rem);
}
.masthead img { width: clamp(148px, 22vw, 232px); }
.masthead .status {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.82rem; color: var(--paper);
  border: 1.5px solid rgba(242, 237, 224, 0.55);
  padding: 0.4rem 0.8rem; border-radius: 2px; white-space: nowrap;
}

/* --- diptyque ------------------------------------------------------------ */
.dip {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: center;
  padding-block: var(--stack);
}
@media (min-width: 880px) {
  .dip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .dip--flip .dip__text { order: 2; }
  .dip--flip .dip__proof { order: 1; }
}

.dip__proof { display: flex; justify-content: center; }

/* Le cadre reprend le panneau creme du jeu, sans imiter un telephone :
   une fausse coque serait du decor redessine. */
.frame {
  background: var(--paper);
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(20, 34, 32, 0.22);
  width: min(320px, 78vw);
}
.frame video, .frame img { border-radius: 2px; width: 100%; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.78rem; color: var(--paper);
  margin-bottom: 0.9rem;
}

.lede { color: var(--paper); font-size: var(--step-1); max-width: 34ch; margin-top: 1.1rem; }
.lede strong { color: var(--brass); font-weight: 600; }

h1 { font-size: var(--step-4); color: var(--paper); }
h2 { font-size: var(--step-3); color: var(--paper); }
h1 .dim, h2 .dim { color: rgba(242, 237, 224, 0.52); display: block; }

/* --- formulaire ---------------------------------------------------------- */
.signup { margin-top: clamp(1.6rem, 3vw, 2.4rem); max-width: 30rem; }
.signup__row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.signup input[type="email"] {
  flex: 1 1 14rem; min-width: 0;
  font: inherit; color: var(--ink);
  background: var(--paper);
  border: 2px solid transparent; border-radius: 3px;
  padding: 0.82rem 0.95rem;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.signup input::placeholder { color: var(--ink-soft); }
.signup input:focus-visible { outline: none; border-color: var(--brass); }

.btn {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.05rem;
  color: var(--paper); background: var(--signal);
  border: none; border-radius: 3px; padding: 0.86rem 1.5rem;
  cursor: pointer;
  transition: background-color 140ms ease, transform 90ms ease;
}
.btn:hover { background: #C24631; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.btn[disabled] { background: var(--slate); cursor: default; }

.note { color: rgba(242, 237, 224, 0.72); font-size: 0.9rem; margin-top: 0.7rem; }
.status-msg { margin-top: 0.8rem; font-size: 0.95rem; color: var(--brass); min-height: 1.4em; }
.status-msg[data-error="1"] { color: #FFD3C9; }

/* --- regles du jeu ------------------------------------------------------- */
.rules { padding-block: var(--stack); border-top: 1px solid rgba(242, 237, 224, 0.22); }
.rules__grid {
  display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); margin-top: 2.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .rules__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rule-item { color: var(--paper); }
.rule-item h3 {
  font-size: var(--step-2); color: var(--paper);
  padding-bottom: 0.55rem; margin-bottom: 0.7rem;
  border-bottom: 1px solid rgba(242, 237, 224, 0.28);
}
.rule-item p { color: rgba(242, 237, 224, 0.82); max-width: 46ch; }
.rule-item--red h3 { border-bottom-color: var(--signal); }
.rule-item--blue h3 { border-bottom-color: var(--prussian); }
.rule-item--brass h3 { border-bottom-color: var(--brass); }

/* --- pied --------------------------------------------------------------- */
footer {
  border-top: 1px solid rgba(242, 237, 224, 0.22);
  padding-block: clamp(2rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  color: rgba(242, 237, 224, 0.7); font-size: 0.92rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; justify-content: space-between;
}
footer a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--brass); }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); }
  .reveal.is-in { opacity: 1; transform: none; transition: opacity 620ms ease-out, transform 620ms ease-out; }
}
