/* Stéph & les machines : page d'attente et inscription à la newsletter */

@font-face { font-family: "Sora"; src: url("fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --fond: #050506;
  --fond-carte: rgba(14, 14, 16, .78);
  --jaune: #ffd60a;
  --jaune-clair: #ffe45c;
  --jaune-sombre: #f5b700;
  --texte: #f5f5f4;
  --texte-doux: #a8a29e;
  --trait: rgba(255, 214, 10, .55);
  --rayon: 18px;
  --mx: 0;
  --my: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(1200px 800px at 75% 35%, rgba(255, 190, 0, .10), transparent 60%), var(--fond);
  color: var(--texte);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- fond animé */
.particules { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.grille {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(255, 214, 10, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 214, 10, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  animation: grille 24s linear infinite;
}
@keyframes grille { to { background-position: 64px 64px, 64px 64px; } }

/* ---------------------------------------------------------------- en-tête */
.entete {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 28px;
  padding: 26px clamp(20px, 5vw, 76px) 0;
  animation: descente .9s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes descente { from { opacity: 0; transform: translateY(-14px); } }
.logo { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.75rem); letter-spacing: -.035em; white-space: nowrap; }
.esperluette { color: var(--jaune); display: inline-block; animation: esperluette 6s ease-in-out infinite; }
@keyframes esperluette { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-12deg) scale(1.15); } 94% { transform: rotate(8deg) scale(1.05); } }
.entete-ligne {
  flex: 1; height: 1px; min-width: 20px;
  background: linear-gradient(90deg, var(--trait), rgba(255, 214, 10, .08));
  transform-origin: left; animation: trait 1.4s .3s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes trait { from { transform: scaleX(0); } }
.entete-liens { display: flex; align-items: center; gap: 28px; }
.lien-youtube { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: .95rem; transition: color .25s; }
.lien-youtube:hover { color: var(--jaune); }
.rond-lecture {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--jaune);
  display: grid; place-items: center; flex: none; transition: background .25s, transform .25s;
}
.rond-lecture svg { width: 16px; height: 16px; fill: var(--jaune); margin-left: 2px; transition: fill .25s; }
.lien-youtube:hover .rond-lecture, .lien-decouvrir:hover .rond-lecture { background: var(--jaune); transform: scale(1.08); }
.lien-youtube:hover .rond-lecture svg, .lien-decouvrir:hover .rond-lecture svg { fill: #111; }
.bouton-contour {
  font-family: "Sora", sans-serif; font-weight: 700; font-size: .92rem; color: var(--jaune);
  padding: 11px 26px; border: 2px solid var(--jaune); border-radius: 10px; white-space: nowrap;
  transition: background .25s, color .25s, box-shadow .25s;
}
.bouton-contour:hover { background: var(--jaune); color: #111; box-shadow: 0 0 28px rgba(255, 214, 10, .45); }

/* ---------------------------------------------------------------- scène */
.scene {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center;
  gap: clamp(10px, 3vw, 40px);
  padding: clamp(28px, 5vh, 70px) clamp(20px, 5vw, 76px) 30px;
  max-width: 1600px; width: 100%; margin: 0 auto;
}
.texte { position: relative; z-index: 2; }

.apparition { animation: apparition .9s var(--d, 0s) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes apparition { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }

.badge {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 26px;
  padding: 8px 20px 8px 14px; border: 1.5px solid var(--jaune); border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(255, 214, 10, .04);
}
.badge-point { width: 12px; height: 12px; border-radius: 50%; background: var(--jaune); box-shadow: 0 0 0 0 rgba(255, 214, 10, .7); animation: pouls 2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 10px rgba(255, 214, 10, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 214, 10, 0); } }

.titre {
  margin: 0; font-family: "Sora", sans-serif; font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 5.6rem); line-height: .98; letter-spacing: -.055em;
}
@media (min-width: 901px) { .titre .ligne { white-space: nowrap; } }
.ligne { display: block; overflow: hidden; padding: .04em .06em .1em 0; margin-bottom: -.06em; }
.mot { display: inline-block; animation: mot 1s var(--d) cubic-bezier(.16, 1, .3, 1) both; }
@keyframes mot { from { transform: translateY(110%) rotate(4deg); opacity: 0; } }
.titre .ligne:first-child .mot { background: linear-gradient(180deg, #fff 30%, #d6d3d1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jaune {
  background: linear-gradient(100deg, var(--jaune-sombre) 0%, var(--jaune) 35%, #fff6b0 50%, var(--jaune) 65%, var(--jaune-sombre) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: mot 1s var(--d) cubic-bezier(.16, 1, .3, 1) both, reflet 5s 2s ease-in-out infinite;
}
@keyframes reflet { 0% { background-position: 100% 0; } 50%, 100% { background-position: -50% 0; } }

.accroche { margin: 22px 0 34px; max-width: 30em; font-size: clamp(1.1rem, 1.8vw, 1.6rem); line-height: 1.35; color: #d6d3d1; }

/* ---------------------------------------------------------------- carte d'inscription */
.carte {
  position: relative; max-width: 680px; border-radius: var(--rayon); padding: 1.5px; overflow: hidden;
  background: rgba(255, 214, 10, .35);
  box-shadow: 0 0 40px rgba(255, 190, 0, .12), 0 30px 60px rgba(0, 0, 0, .5);
}
.carte::before {
  content: ""; position: absolute; inset: -150%;
  background: conic-gradient(from 0deg, transparent 0 60%, var(--jaune) 75%, #fff8c4 80%, var(--jaune) 85%, transparent 100%);
  animation: tour 6s linear infinite;
}
@keyframes tour { to { transform: rotate(1turn); } }
.carte-interieur {
  position: relative; border-radius: calc(var(--rayon) - 1.5px);
  background: linear-gradient(160deg, rgba(24, 22, 14, .96), rgba(10, 10, 12, .97));
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 38px) 24px;
  backdrop-filter: blur(10px);
}
.carte h2 { margin: 0 0 6px; font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(1.45rem, 2.4vw, 2rem); letter-spacing: -.035em; }
.carte-sous { margin: 0 0 22px; color: #d6d3d1; font-size: 1.05rem; }

.formulaire { display: flex; gap: 12px; }
.champ { position: relative; flex: 1; min-width: 0; }
.champ-icone { position: absolute; left: 18px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); fill: none; stroke: #a8a29e; stroke-width: 1.6; transition: stroke .25s; pointer-events: none; }
.champ input {
  width: 100%; height: 60px; padding: 0 18px 0 56px;
  background: rgba(255, 255, 255, .035); color: var(--texte);
  border: 1.5px solid rgba(255, 255, 255, .22); border-radius: 12px;
  font: inherit; font-size: 1.05rem; outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.champ input::placeholder { color: #8a8580; }
.champ input:focus { border-color: var(--jaune); background: rgba(255, 214, 10, .04); box-shadow: 0 0 0 4px rgba(255, 214, 10, .14); }
.champ:focus-within .champ-icone { stroke: var(--jaune); }
.formulaire.erreur .champ input { border-color: #f87171; animation: secousse .4s; }
@keyframes secousse { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.bouton-plein {
  position: relative; overflow: hidden; flex: none;
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 28px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, var(--jaune-clair), var(--jaune));
  color: #111; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em;
  box-shadow: 0 8px 28px rgba(255, 200, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .2s, box-shadow .25s, filter .25s;
}
.bouton-plein:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(255, 200, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }
.bouton-plein:active { transform: translateY(0) scale(.98); }
.bouton-plein:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.bouton-fleche { width: 22px; height: 22px; fill: none; stroke: #111; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.bouton-plein:hover .bouton-fleche { transform: translateX(4px); }
.bouton-reflet {
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg); animation: eclat 4.5s 2.5s ease-in-out infinite;
}
@keyframes eclat { 0% { left: -60%; } 30%, 100% { left: 140%; } }
.bouton-plein[disabled] { cursor: progress; filter: saturate(.7) brightness(.9); }
.bouton-plein[disabled] .bouton-fleche { animation: rotation .8s linear infinite; }
@keyframes rotation { to { transform: rotate(1turn); } }

.message { min-height: 0; margin: 0; font-weight: 600; font-size: .98rem; transition: margin .3s; }
.message:not(:empty) { margin-top: 14px; }
.message.ok { color: var(--jaune); animation: apparition .5s both; }
.message.ko { color: #fca5a5; animation: apparition .5s both; }
.mention { margin: 16px 0 0; font-size: .85rem; color: #8a8580; }

.formulaire.reussi { animation: reussi .6s both; }
@keyframes reussi { 40% { transform: scale(1.02); } }

/* ---------------------------------------------------------------- lien YouTube */
.reseaux { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; margin-top: 30px; }
.lien-decouvrir { display: inline-flex; align-items: center; gap: 22px; font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.12rem; }
.rond-lecture .icone-fb { margin-left: 0; }
.rond-lecture.grand { width: 50px; height: 50px; }
.rond-lecture.grand svg { width: 22px; height: 22px; }
.lien-decouvrir-texte { position: relative; display: inline-flex; align-items: center; gap: 12px; padding-bottom: 8px; }
.lien-decouvrir-texte::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--jaune); transform-origin: left; transition: transform .35s; }
.lien-decouvrir:hover .lien-decouvrir-texte::after { transform: scaleX(.3); }
.lien-decouvrir-texte svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.lien-decouvrir:hover .lien-decouvrir-texte svg { transform: translateX(5px); }

/* ---------------------------------------------------------------- portrait */
.visuel { position: relative; perspective: 1200px; animation: entree-visuel 1.6s .2s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes entree-visuel { from { opacity: 0; transform: scale(.92) translateX(30px); filter: blur(12px) brightness(2); } }
.visuel-profondeur {
  position: relative; width: min(100%, 760px); margin-left: auto; aspect-ratio: 774 / 710;
  transform: rotateY(calc(var(--mx) * -5deg)) rotateX(calc(var(--my) * 4deg));
  transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.halo {
  position: absolute; left: 50%; top: 45%; width: 95%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 196, 0, .32), rgba(255, 170, 0, .1) 40%, transparent 68%);
  filter: blur(20px); animation: respiration 5s ease-in-out infinite;
}
@keyframes respiration { 50% { opacity: .65; transform: translate(-50%, -50%) scale(1.06); } }

.photo {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 52% 54% at 50% 48%, #000 64%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 54% at 50% 48%, #000 64%, transparent 100%);
  transform: translateZ(30px);
}
.photo img { width: 100%; height: 100%; object-fit: cover; animation: vie 9s ease-in-out infinite; }
@keyframes vie { 50% { transform: scale(1.025) translateY(-4px); } }

.balayage {
  position: absolute; left: 0; right: 0; top: 0; height: 22%;
  background: linear-gradient(180deg, transparent, rgba(255, 214, 10, .14) 70%, rgba(255, 240, 150, .55) 98%, transparent);
  mix-blend-mode: screen; animation: balayage 5.5s 1.8s cubic-bezier(.45, 0, .55, 1) infinite;
  opacity: 0;
}
@keyframes balayage { 0% { transform: translateY(-110%); opacity: 0; } 10% { opacity: 1; } 55% { transform: translateY(470%); opacity: .9; } 60%, 100% { transform: translateY(470%); opacity: 0; } }

.oeil {
  position: absolute; left: 46.8%; top: 39.4%; width: 14%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 250, 200, .95) 0 8%, rgba(255, 214, 10, .8) 16%, rgba(255, 180, 0, .3) 36%, transparent 66%);
  animation: oeil 3.2s ease-in-out infinite;
}
@keyframes oeil { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.85); } 45% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 50% { opacity: .35; } 55% { opacity: 1; } }

.parasite {
  position: absolute; inset: 0;
  background: url("steph.webp") no-repeat center / 100% 100%;
  mix-blend-mode: screen; opacity: 0; filter: hue-rotate(-20deg) saturate(2);
  animation: parasite 7s 3s steps(1) infinite;
}
@keyframes parasite {
  0%, 92%, 100% { opacity: 0; transform: none; }
  93% { opacity: .55; transform: translateX(6px); clip-path: inset(18% 0 62% 0); }
  95% { opacity: .5; transform: translateX(-5px); clip-path: inset(48% 0 30% 0); }
  97% { opacity: .4; transform: translateX(3px); clip-path: inset(66% 0 12% 0); }
}

.anneaux { position: absolute; left: 50%; top: 45%; width: 96%; transform: translate(-50%, -50%) translateZ(-20px); overflow: visible; }
.anneau { fill: none; stroke: var(--jaune); transform-origin: 300px 300px; }
.a1 { stroke-width: 2.5; stroke-dasharray: 380 60 40 60 520 120; opacity: .85; filter: drop-shadow(0 0 6px rgba(255, 214, 10, .8)); animation: tour 40s linear infinite; }
.a2 { stroke-width: 1.2; stroke-dasharray: 2 10; opacity: .7; animation: tour 60s linear infinite reverse; }
.a3 { stroke-width: 1; stroke-dasharray: 120 40 8 40; opacity: .35; animation: tour 28s linear infinite; }
.orbite { transform-origin: 300px 300px; animation: tour 12s linear infinite; fill: var(--jaune); filter: drop-shadow(0 0 8px var(--jaune)); }
.orbite.lente { animation-duration: 22s; animation-direction: reverse; }

.hud { position: absolute; inset: 0; pointer-events: none; transform: translateZ(60px); }
.hud-ligne { position: absolute; height: 1.5px; background: linear-gradient(90deg, transparent, var(--jaune)); transform-origin: right; animation: hud-ligne 4s ease-in-out infinite; }
.h1 { right: -2%; top: 58%; width: 26%; }
.h2 { right: 6%; top: 18%; width: 14%; animation-delay: 1.4s; }
@keyframes hud-ligne { 0%, 100% { transform: scaleX(.2); opacity: .3; } 50% { transform: scaleX(1); opacity: 1; } }
.hud-carre { position: absolute; width: 10px; height: 10px; background: var(--jaune); box-shadow: 0 0 14px var(--jaune); animation: clignote 2.4s steps(2) infinite; }
.c1 { right: 9%; top: 27%; }
.c2 { right: 26%; top: 8%; width: 7px; height: 7px; animation-delay: .8s; }
@keyframes clignote { 50% { opacity: .15; } }
.hud-texte { position: absolute; font: 600 .68rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .2em; color: rgba(255, 214, 10, .75); animation: clignote 3s steps(2) infinite; }
.t1 { left: 4%; top: 10%; }
.t2 { right: 2%; bottom: 14%; animation-delay: 1.2s; }

/* ---------------------------------------------------------------- pied */
.pied { position: relative; z-index: 2; display: flex; align-items: center; gap: 28px; padding: 18px clamp(20px, 5vw, 76px) 28px; }
.pied-ligne { flex: 1; height: 1px; background: rgba(255, 255, 255, .14); }
.pied-nom { font-size: .8rem; letter-spacing: .4em; color: #a8a29e; white-space: nowrap; }

/* ---------------------------------------------------------------- tablettes et mobiles */
@media (max-width: 1100px) {
  .lien-youtube:not(.lien-facebook) span:last-child { display: none; }
  .entete-liens { gap: 14px; }
}
@media (min-width: 901px) and (max-width: 1250px) {
  .formulaire { flex-direction: column; }
  .bouton-plein { justify-content: center; }
}
@media (max-width: 900px) {
  .entete { gap: 16px; padding-top: 18px; }
  .entete-ligne { display: none; }
  .entete-liens { margin-left: auto; gap: 14px; }
  .bouton-contour { padding: 9px 16px; font-size: .85rem; }
  .scene { grid-template-columns: 1fr; align-content: start; padding-top: 10px; gap: 0; }
  .visuel { order: -1; margin: -6px -10px -6%; }
  .visuel-profondeur { margin: 0 auto; width: min(100%, 520px); }
  .texte { text-align: left; }
  .badge { margin-bottom: 18px; }
}
@media (max-width: 560px) {
  .logo { font-size: 1.15rem; }
  .bouton-contour { display: none; }
  .formulaire { flex-direction: column; }
  .bouton-plein { justify-content: center; width: 100%; }
  .accroche { margin: 18px 0 26px; }
  .pied-nom { letter-spacing: .25em; }
  .lien-decouvrir { gap: 16px; font-size: 1rem; white-space: nowrap; }
  .rond-lecture.grand { width: 44px; height: 44px; }
  .hud-texte { display: none; }
}

/* Mouvements réduits : la page reste lisible, sans animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .balayage, .parasite { display: none; }
  .visuel-profondeur { transform: none !important; }
}
