/* Design « Cristal » de Shorts · Built Backwards.
   Jetons et composants repris de shorts-studio/app/web/css (tokens.css, base.css, components.css).
   Police Inter (licence OFL, assets/fonts/OFL-Inter.txt), réduite aux caractères du français. */

@font-face { font-family: "Studio Sans"; src: url("assets/fonts/shorts-inter-medium.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Studio Sans"; src: url("assets/fonts/shorts-inter-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Studio Sans"; src: url("assets/fonts/shorts-inter-extrabold.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Studio Display"; src: url("assets/fonts/shorts-interdisplay-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Fond et lumière */
  --bg: #f6f8fb;
  --bg-aurora-1: rgba(46, 143, 120, 0.16);
  --bg-aurora-2: rgba(245, 197, 66, 0.20);
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --surface-3: #e8edf3;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --line: rgba(16, 36, 31, 0.09);
  --line-strong: rgba(16, 36, 31, 0.16);

  /* Texte */
  --ink: #0f1f1b;
  --ink-2: #4c5c57;
  --ink-3: #5d6c67;  /* un peu plus sombre que dans le logiciel (#7b8a85) : contraste de 4,5 au moins sur le fond clair */

  /* Action et magie */
  --brand: #1f6b59;
  --brand-2: #2e8f78;
  --brand-ink: #ffffff;
  --brand-soft: #e3f2ed;
  --spark: #f5c542;
  --spark-2: #f0a92d;
  --spark-soft: #fff6dc;
  --spark-ink: #3a2700;

  /* États */
  --ok: #18865f;
  --ok-ink: #137553; /* texte vert sur fond vert pâle, contraste de 5 */
  --ok-soft: #e1f5ec;

  /* Texte */
  --font: "Studio Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Studio Display", "Studio Sans", "Segoe UI", system-ui, sans-serif;
  --fs-xs: 13px;
  --fs-s: 15px;
  --fs: 17px;
  --fs-l: 20px;
  --fs-xl: 26px;
  --lh: 1.55;

  /* Formes */
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Ombres : posé, survol, flottant, halo */
  --shadow-1: 0 1px 2px rgba(16, 36, 31, 0.05), 0 4px 14px rgba(16, 36, 31, 0.05);
  --shadow-2: 0 2px 4px rgba(16, 36, 31, 0.06), 0 14px 34px rgba(16, 36, 31, 0.10);
  --shadow-3: 0 6px 12px rgba(16, 36, 31, 0.08), 0 28px 70px rgba(16, 36, 31, 0.16);
  --glow-spark: 0 0 0 4px rgba(245, 197, 66, 0.28), 0 10px 30px rgba(240, 169, 45, 0.30);
  --glow-brand: 0 0 0 4px rgba(46, 143, 120, 0.18);
  --focus: 0 0 0 3px #ffffff, 0 0 0 6px rgba(31, 107, 89, 0.55);

  /* Mouvement */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t: 240ms;
  --t-slow: 480ms;

  /* Mise en page */
  --content: 1180px;
  --gutter: 32px;
  --topbar-h: 72px;
}
@media (prefers-reduced-motion: reduce) { :root { --t-fast: 0ms; --t: 0ms; --t-slow: 0ms; } }
@media (max-width: 980px) { :root { --gutter: 20px; } }
@media (max-width: 360px) { :root { --gutter: 16px; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: var(--fs); line-height: var(--lh);
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-weight: 800; }
h3 { font-size: var(--fs-l); font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-s); }
::selection { background: var(--spark-soft); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* La lumière du fond : une aurore pâle qui respire lentement, en haut de la page. */
.aurora { position: absolute; inset: 0 0 auto 0; height: 1100px; pointer-events: none; z-index: 0; overflow: hidden; opacity: 0.8;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent); }
.aurora::before, .aurora::after {
  content: ""; position: absolute; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px; border-radius: 50%; filter: blur(80px);
  animation: aurora-drift 22s var(--ease) infinite alternate;
}
.aurora::before { background: var(--bg-aurora-1); top: -30vw; left: -14vw; }
.aurora::after { background: var(--bg-aurora-2); top: -34vw; right: -18vw; animation-delay: -9s; }
@keyframes aurora-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, 3vw, 0) scale(1.12); } }

/* La marque : le nom court en grand, la signature en petites capitales dessous. */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { position: relative; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, #173a32, #0f241f); box-shadow: var(--shadow-1); color: #f4f1ea; }
.brand-mark svg { width: 18px; height: 18px; fill: currentColor; stroke: none; margin-left: 2px; }
.lockup { display: flex; flex-direction: column; line-height: 1; }
.lockup strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.lockup small { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); line-height: 1.2; white-space: nowrap; }

/* ---------------------------------------------------------------- boutons */
.btn {
  --b-bg: var(--surface); --b-ink: var(--ink); --b-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border-radius: var(--r-m); border: 1px solid var(--b-line); background: var(--b-bg); color: var(--b-ink);
  font-weight: 700; font-size: var(--fs-s); text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none;
  box-shadow: var(--shadow-1); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.btn:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); color: var(--b-ink); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .ico { width: 20px; height: 20px; }
.btn.primary { --b-ink: var(--brand-ink); --b-line: transparent;
  background: linear-gradient(160deg, #27806b, var(--brand)); box-shadow: 0 1px 2px rgba(15, 60, 50, 0.25), 0 8px 22px rgba(31, 107, 89, 0.28); }
.btn.primary:hover { box-shadow: 0 2px 4px rgba(15, 60, 50, 0.25), 0 14px 34px rgba(31, 107, 89, 0.34); }
.btn.spark { --b-ink: var(--spark-ink); --b-line: transparent; background: linear-gradient(160deg, #ffd96b, var(--spark) 55%, var(--spark-2));
  box-shadow: 0 1px 2px rgba(120, 80, 0, 0.2), 0 8px 24px rgba(240, 169, 45, 0.35); }
.btn.big { min-height: 60px; padding: 0 28px; font-size: 18px; border-radius: var(--r-l); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--r-s); gap: 7px; }
.btn.block { width: 100%; }

/* ---------------------------------------------------------------- icônes */
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.filled { fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------- pastilles */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.tag .ico { width: 15px; height: 15px; }
.tag.ok { background: var(--ok-soft); color: var(--ok-ink); }
.tag.spark { background: var(--spark-soft); color: #7a4f00; }
.tag.brand { background: var(--brand-soft); color: var(--brand); }

/* ---------------------------------------------------------------- cartes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); padding: 24px; }
.card.glass { background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }

/* ---------------------------------------------------------------- tuile vidéo verticale */
.vtile { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--r-l); overflow: hidden; background: #12232a;
  box-shadow: var(--shadow-2); isolation: isolate; }
.vtile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vtile .vt-chip { position: absolute; z-index: 2; top: 12px; right: 12px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.9); color: var(--ink);
  font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- le parcours magique */
.magic { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.magic li { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 12px; min-height: 38px; color: var(--ink-2); font-weight: 600; font-size: var(--fs-s); line-height: 1.3; }
.magic .m-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.magic .m-dot .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.bar { height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-2), var(--spark)); transform-origin: left; }

/* ---------------------------------------------------------------- champs */
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > label { font-weight: 700; font-size: var(--fs-s); }
.field > label span { color: var(--ink-3); font-weight: 600; font-size: var(--fs-xs); margin-left: 6px; }
input[type="text"], input[type="email"] {
  width: 100%; min-width: 0; min-height: 52px; padding: 13px 16px; border-radius: var(--r-m); border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-size: 16px; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
input:focus { outline: none; border-color: var(--brand-2); box-shadow: var(--glow-brand); }
input::placeholder { color: var(--ink-3); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: var(--fs-s); line-height: 1.5; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); margin: 1px 0 0; flex: none; }
