/* KINOENGINE — LA COUCHE « FUTUR » (26/09/2026).
   Paul : « fais beaucoup plus design et futuriste, on est un site de ouf ».
   Posée PAR-DESSUS le système clair de la vitrine, sans le remplacer : la
   règle du 13/09 tient toujours — AUCUN FOND NOIR. Le futur ici, c'est la
   lumière : aurores qui dérivent, verre dépoli, bordures en dégradé qui
   brillent, halo qui suit la souris, grille de précision en filigrane.
   Tout mouvement s'éteint avec prefers-reduced-motion. */

:root {
  --f-verre: rgba(255, 255, 255, .62);
  --f-verre-fort: rgba(255, 255, 255, .8);
  --f-bord: rgba(255, 255, 255, .9);
  --f-lueur: 0 1px 0 rgba(255,255,255,.9) inset, 0 1px 2px rgba(11,11,16,.04), 0 18px 50px -12px rgba(229,48,107,.18), 0 30px 80px -30px rgba(255,106,43,.22);
  --f-cyan: #6ee7ff;
  --f-violet: #a78bfa;
  --f-degrade-anime: linear-gradient(110deg, #ff6a2b 0%, #e5306b 35%, #a855f7 60%, #ff6a2b 100%);
}

/* ─── LE FOND : aurore + grille ─────────────────────────────────────────── */
.f-fond { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.f-fond::before { /* la grille de précision, fondue vers les bords */
  content: ""; position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(11,11,16,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,16,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 30%, transparent 100%);
          mask-image: radial-gradient(70% 55% at 50% 0%, #000 30%, transparent 100%);
}
.f-fond i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.f-fond i:nth-child(1) { width: 46vw; height: 46vw; left: -8vw; top: -18vw; background: radial-gradient(circle, #ff8a4c, transparent 65%); animation: f-derive1 22s ease-in-out infinite alternate; }
.f-fond i:nth-child(2) { width: 40vw; height: 40vw; right: -10vw; top: -12vw; background: radial-gradient(circle, #ff4f8b, transparent 65%); animation: f-derive2 26s ease-in-out infinite alternate; }
.f-fond i:nth-child(3) { width: 34vw; height: 34vw; left: 38vw; top: 8vw; background: radial-gradient(circle, rgba(167,139,250,.9), transparent 65%); opacity: .35; animation: f-derive3 30s ease-in-out infinite alternate; }
.f-fond i:nth-child(4) { width: 28vw; height: 28vw; right: 12vw; top: 30vw; background: radial-gradient(circle, rgba(110,231,255,.9), transparent 65%); opacity: .22; animation: f-derive1 34s ease-in-out infinite alternate-reverse; }
@keyframes f-derive1 { to { transform: translate3d(8vw, 6vw, 0) scale(1.15); } }
@keyframes f-derive2 { to { transform: translate3d(-10vw, 8vw, 0) scale(.9); } }
@keyframes f-derive3 { to { transform: translate3d(-6vw, -4vw, 0) scale(1.25); } }
/* le grain : casse l'aplat numérique des dégradés */
.f-fond::after { content: ""; position: absolute; inset: 0; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* les anciens halos statiques cèdent la place à l'aurore */
body.f .halo { display: none; }
body.f { background: #f6f6fb; }
body.f > *:not(.f-fond):not(.barre-mobile):not(nav) { position: relative; z-index: 1; }

/* ─── LE VERRE ───────────────────────────────────────────────────────────── */
.f-verre, body.f .carte, body.f .etape, body.f .q, body.f .final, body.f .qui-bloc,
body.f .tuile, body.f .commande, body.f .valider, body.f .calendrier, body.f .a-venir,
body.f .commander, body.f .messages, body.f .vide, body.f .gains li, body.f .bienvenue {
  background: var(--f-verre) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--f-bord) !important;
  box-shadow: var(--f-lueur) !important;
  position: relative;
}
/* la bordure en dégradé qui s'allume au survol */
.f-lumiere { position: relative; isolation: isolate; }
.f-lumiere::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,106,43,.95), rgba(229,48,107,.7) 25%, rgba(167,139,250,.35) 45%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.f-lumiere::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,138,76,.10), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.f-lumiere:hover::after, .f-lumiere:hover::before { opacity: 1; }

/* ─── LA TYPO ────────────────────────────────────────────────────────────── */
body.f h1 { letter-spacing: -.045em !important; }
body.f h1 em, body.f .f-grad {
  background: var(--f-degrade-anime) !important; background-size: 220% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important;
  animation: f-reflet 7s ease-in-out infinite;
}
@keyframes f-reflet { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
body.f .sur-titre { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .14em; }
body.f .sur-titre::before { content: ""; width: 14px; height: 1.5px; background: var(--f-degrade-anime); border-radius: 2px; }

/* ─── LES BOUTONS : dégradé vivant + reflet qui passe ────────────────────── */
body.f .btn.plein, body.f button.btn:not(.second) {
  background: var(--f-degrade-anime) !important; background-size: 200% 100% !important;
  box-shadow: 0 10px 30px -8px rgba(229,48,107,.55), 0 0 0 1px rgba(255,255,255,.25) inset !important;
  position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s, background-position .6s;
}
body.f .btn.plein:hover, body.f button.btn:not(.second):hover { background-position: 100% 0 !important; transform: translateY(-1px);
  box-shadow: 0 16px 40px -10px rgba(229,48,107,.7), 0 0 0 1px rgba(255,255,255,.3) inset !important; }
body.f .btn.plein::after, body.f button.btn:not(.second)::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); animation: f-balaye 4.5s ease-in-out infinite;
}
@keyframes f-balaye { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
body.f .btn:not(.plein) { background: var(--f-verre-fort); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ─── LES PUCES « EN DIRECT » ────────────────────────────────────────────── */
.f-direct { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #0b0b10; background: var(--f-verre-fort); border: 1px solid var(--f-bord); box-shadow: 0 6px 20px -8px rgba(229,48,107,.35); }
.f-direct i { width: 7px; height: 7px; border-radius: 50%; background: #1fd07a; box-shadow: 0 0 0 0 rgba(31,208,122,.6); animation: f-bip 1.8s infinite; }
@keyframes f-bip { 70% { box-shadow: 0 0 0 8px rgba(31,208,122,0); } 100% { box-shadow: 0 0 0 0 rgba(31,208,122,0); } }

/* ─── L'APPARITION AU DÉFILEMENT ─────────────────────────────────────────── */
.f-revele { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), filter .8s; }
.f-revele.vu { opacity: 1; transform: none; filter: none; }

/* ─── L'ONDE : barres d'égaliseur (IA au travail) ─────────────────────────── */
.f-onde { display: inline-flex; align-items: end; gap: 3px; height: 18px; }
.f-onde b { width: 3px; border-radius: 2px; background: var(--f-degrade-anime); animation: f-onde 1.1s ease-in-out infinite; }
.f-onde b:nth-child(1) { animation-delay: -.2s; } .f-onde b:nth-child(2) { animation-delay: -.5s; }
.f-onde b:nth-child(3) { animation-delay: -.1s; } .f-onde b:nth-child(4) { animation-delay: -.7s; } .f-onde b:nth-child(5) { animation-delay: -.35s; }
@keyframes f-onde { 0%, 100% { height: 4px; } 50% { height: 18px; } }

@media (prefers-reduced-motion: reduce) {
  .f-fond i, body.f h1 em, body.f .f-grad, body.f .btn.plein::after, body.f button.btn::after, .f-direct i, .f-onde b { animation: none !important; }
  .f-revele { opacity: 1; transform: none; filter: none; transition: none; }
}
@media (max-width: 900px) {
  .f-fond i { filter: blur(50px); }
  .f-fond::before { background-size: 32px 32px; }
}

/* ─── BLOCS PARTAGÉS DE LA VITRINE (26/09) ───────────────────────────────
   Accueil, /editeur et /inscription racontent la même chose : pourquoi
   YouTube construit l'autorité sur une thématique, et ce que le client
   reçoit dans son espace. Un seul jeu de styles pour les trois pages. */
.f-autorite { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.f-pilier { border-radius: 20px; padding: 24px; }
.f-pilier .ico { width: 44px; height: 44px; border-radius: 12px; background: #fdefe9; display: grid; place-items: center; }
.f-pilier .ico svg { width: 22px; height: 22px; stroke: #df4317; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f-pilier h3 { font-size: 18px; letter-spacing: -.02em; margin-top: 16px; line-height: 1.3; }
.f-pilier p { font-size: 14.5px; color: #3a3a45; margin-top: 8px; line-height: 1.6; }
.f-grappe { margin-top: 18px; border-radius: 24px; padding: 30px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: center; }
.f-grappe h3 { font-size: 26px; letter-spacing: -.03em; line-height: 1.15; margin-top: 10px; }
.f-grappe p { font-size: 15.5px; color: #3a3a45; margin-top: 12px; line-height: 1.65; }
.f-schema { width: 100%; max-width: 440px; margin: 0 auto; }
.f-schema svg { width: 100%; height: auto; display: block; }
.f-noeud { animation: f-pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes f-pulse { 50% { transform: scale(1.06); } }

/* la vitrine de l'espace client : une commande en route, une vidéo livrée */
.f-espace { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.f-espace h2 { font-size: 40px; line-height: 1.08; letter-spacing: -.035em; font-weight: 760; margin-top: 12px; }
.f-espace > div > p { font-size: 16.5px; color: #3a3a45; margin-top: 14px; line-height: 1.6; }
.f-espace ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.f-espace li { display: flex; gap: 10px; font-size: 15px; color: #3a3a45; line-height: 1.5; }
.f-espace li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: #1f9d55; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.f-maquette { border-radius: 26px; padding: 16px; display: grid; gap: 12px; transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.f-maquette:hover { transform: none; }
.f-maquette .m-barre { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; font-size: 13px; font-weight: 700; }
.f-maquette .m-barre span { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; letter-spacing: .12em; color: #df4317; background: #fdefe9; padding: 4px 9px; border-radius: 999px; font-weight: 600; }
.f-maquette .m-colis, .f-maquette .m-livree { background: rgba(255,255,255,.85); border: 1px solid #ecebf1; border-radius: 16px; padding: 14px 16px; }
.f-maquette .m-colis b { font-size: 14.5px; } .f-maquette .m-colis .l { display: flex; justify-content: space-between; font-size: 12.5px; color: #71717d; margin-top: 8px; }
.f-maquette .m-colis .l em { font-style: normal; font-family: ui-monospace, Menlo, monospace; color: #df4317; font-weight: 600; }
.f-maquette .m-trajet { height: 6px; border-radius: 6px; background: rgba(11,11,16,.07); margin-top: 8px; position: relative; }
.f-maquette .m-trajet i { position: absolute; inset: 0 30% 0 0; border-radius: 6px; background: var(--f-degrade-anime); background-size: 200% 100%; animation: f-reflet 3s linear infinite; }
.f-maquette .m-livree { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.f-maquette .m-livree img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.f-maquette .m-livree small { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; letter-spacing: .1em; color: #1f9d55; text-transform: uppercase; }
.f-maquette .m-livree b { display: block; font-size: 14px; margin-top: 4px; line-height: 1.3; }
.f-maquette .m-livree .t { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(135deg,#ff6a2b,#e5306b); padding: 6px 10px; border-radius: 8px; }
.f-appel { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .f-autorite, .f-grappe, .f-espace { grid-template-columns: 1fr; }
  .f-grappe { padding: 22px 18px; gap: 20px; }
  .f-espace h2 { font-size: 30px; }
  .f-maquette { transform: none; }
  .f-maquette .m-livree { grid-template-columns: 110px 1fr; }
}
@media (prefers-reduced-motion: reduce) { .f-noeud, .f-maquette .m-trajet i { animation: none; } }

/* ─── LE FILM DE PRÉSENTATION (26/09) ─────────────────────────────────────
   24 s, muet, en boucle, en haut de l'accueil, de /editeur et de /entreprise.
   Monté dans remotion-demo/src/kino-reel. Le cadre est en verre, la vidéo ne
   joue que lorsqu'elle est à l'écran (futur.js). */
.f-film { margin: 44px auto 0; max-width: 1060px; border-radius: 28px; padding: 10px; position: relative; }
.f-film video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 19px; background: #ece9f2; object-fit: cover; }
.f-film::before { content: ""; position: absolute; inset: -40px -60px -60px; z-index: -1; border-radius: 60px; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 55%, rgba(229,48,107,.22), transparent 70%); filter: blur(20px); }
@media (max-width: 900px) { .f-film { margin-top: 30px; padding: 6px; border-radius: 20px; } .f-film video { border-radius: 15px; } }
