/* furyo.fr — feuille de style unique. Polices auto-hébergées (aucun appel à un service tiers). */

@font-face { font-family: "Syne"; src: url("../fonts/syne-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/syne-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/syne-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/syne-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/syne-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --fond: #050A1C;
  --panneau: #0B1433;
  --panneau-2: #0E1A40;
  --texte: #EAF0FF;
  --texte-2: #C2CCE6;
  --discret: #9AA6C7;
  --bleu: #4D8BFF;
  --bleu-clair: #9CC0FF;
  --rouge: #FF4D5E;
  --rouge-clair: #FFB3BA;
  --vert: #4CC38A;
  --trait: rgba(156, 192, 255, 0.18);
  --trait-fort: rgba(156, 192, 255, 0.45);
  --titre: "Syne", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --large: 1280px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--titre); font-size: 18px; line-height: 1.6; overflow-x: clip; }
img, svg, canvas { max-width: 100%; }
a { color: var(--texte); text-underline-offset: 4px; }
a:hover { color: var(--bleu-clair); }
:focus-visible { outline: 2px solid var(--bleu-clair); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--titre); text-wrap: balance; }
p { margin: 0; }

.evitement { position: absolute; left: -9999px; top: 12px; z-index: 50; padding: 10px 18px; border-radius: 999px; background: var(--texte); color: var(--fond); font-weight: 700; text-decoration: none; }
.evitement:focus { left: 16px; }
.conteneur { max-width: var(--large); margin: 0 auto; padding-inline: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(5, 10, 28, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(156, 192, 255, 0.08); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 16px; }
.logo { display: block; color: var(--texte); padding-block: 10px; margin-block: -10px; }
.logo svg { display: block; width: 112px; height: auto; overflow: visible; }
.nav { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav a { color: var(--texte-2); text-decoration: none; }
.nav a:hover { color: var(--texte); }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.bouton-principal { background: var(--bleu); color: var(--fond); box-shadow: 0 0 40px rgba(77, 139, 255, 0.35); }
.bouton-clair { background: var(--texte); color: var(--fond); min-height: 44px; padding: 0 22px; font-size: 15px; }
.bouton:hover { color: var(--fond); }
@media (hover: hover) { .bouton:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(156, 192, 255, 0.6), 0 0 44px rgba(77, 139, 255, 0.55); } }
.nav .bouton-clair, .nav .bouton-clair:hover { color: var(--fond); }

/* ---------- Haut de page ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-block: 24px 72px; min-height: min(760px, 92vh); }
.hero-texte { position: relative; z-index: 2; flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.pastille { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(156, 192, 255, 0.25); font-family: var(--mono); font-size: 13px; color: var(--discret); }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--vert); flex: 0 0 auto; }
.hero h1 { font-size: clamp(42px, 5.6vw, 82px); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; }
.chapeau { font-size: 20px; color: var(--discret); max-width: 34ch; }
.actions { display: flex; gap: 16px 22px; flex-wrap: wrap; align-items: center; }
.lien-discret { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--texte-2); }

.hero-scene { position: relative; flex: 1 1 560px; min-width: 0; height: clamp(380px, 56vw, 620px); }
.hero-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; display: flex; flex-direction: column; gap: 2px; max-width: 46%; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--discret); pointer-events: none; text-shadow: 0 0 6px var(--fond), 0 0 2px var(--fond); }
.hud strong { font-weight: 500; color: var(--texte); display: flex; align-items: center; gap: 8px; }
.hud-1 { left: 4%; top: 8%; }
.hud-2 { right: 4%; top: 14%; text-align: right; align-items: flex-end; }
.hud-3 { left: 4%; bottom: 12%; }
.hud-4 { right: 4%; bottom: 10%; text-align: right; align-items: flex-end; }
.hud-chiffre { font-size: 20px; color: var(--texte); }
.hud-bouton { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(156, 192, 255, 0.25); background: rgba(5, 10, 28, 0.7); color: var(--discret); font-family: var(--mono); font-size: 12px; cursor: pointer; }
.hud-bouton:hover { color: var(--texte); border-color: var(--trait-fort); }

/* ---------- Sections ---------- */
.section { padding-block: 96px; display: flex; flex-direction: column; gap: 48px; }
.section-tete { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-end; }
.section-tete h2 { flex: 1 1 520px; min-width: 0; font-size: clamp(34px, 4vw, 56px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
.section-tete p { flex: 1 1 420px; min-width: 0; color: var(--discret); max-width: 52ch; }

/* Modules en verre */
.modules { perspective: 1400px; display: flex; flex-wrap: wrap; gap: 20px; }
.verre { flex: 1 1 250px; min-width: 0; min-height: 250px; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(156, 192, 255, 0.16); backdrop-filter: blur(12px); transform: rotateY(var(--angle, 0deg)); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease; }
@media (hover: hover) { .verre:hover { transform: rotateY(0deg) translateZ(30px); border-color: rgba(156, 192, 255, 0.5); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(77, 139, 255, 0.18); } }
.verre-1 { --angle: 10deg; background: linear-gradient(160deg, rgba(77, 139, 255, 0.22), rgba(77, 139, 255, 0.04)); border-color: var(--trait-fort); box-shadow: 0 0 60px rgba(77, 139, 255, 0.18); }
.verre-2 { --angle: 4deg; }
.verre-3 { --angle: -4deg; }
.verre-4 { --angle: -10deg; }
.verre h3 { font-size: 30px; font-weight: 700; }
.verre p { font-size: 16px; color: var(--discret); }
.verre-1 p { color: var(--texte-2); }
.etat { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--discret); }
.etat-actif { color: #8FE3B8; }
.etat-actif .led { width: 8px; height: 8px; box-shadow: 0 0 12px var(--vert); }
.etat-attente::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--discret); }

/* Scanner anti-fraude */
.analyse { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 72px 96px; }
.analyse-texte { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.analyse-texte h2 { font-size: clamp(34px, 4vw, 56px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
.analyse-texte p { color: var(--discret); }
.analyse-demo { flex: 1 1 620px; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.mail-scanne { position: relative; flex: 3 1 340px; min-width: 0; overflow: hidden; border-radius: 22px; background: var(--panneau); border: 1px solid var(--trait); padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.mail-scanne .de { font-family: var(--mono); font-size: 13px; color: var(--discret); overflow-wrap: anywhere; }
.mail-scanne strong { font-size: 20px; }
.mail-scanne p { font-size: 16px; color: var(--texte-2); }
.repere { color: #FF8A95; background: rgba(255, 77, 94, 0.16); padding: 0 4px; border-radius: 4px; }
.balayage { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--bleu); box-shadow: 0 0 24px 6px rgba(77, 139, 255, 0.55); }
.constats { flex: 2 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 13px; }
.constat { padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 77, 94, 0.4); color: var(--rouge-clair); }
.verdict { padding: 12px 14px; border-radius: 12px; background: var(--rouge); color: var(--fond); font-family: var(--titre); font-size: 15px; font-weight: 700; }

/* Paris */
.reseau { display: flex; flex-wrap: wrap; align-items: center; }
.noeud { flex: 1 1 220px; min-width: 0; border-radius: 22px; border: 1px solid var(--trait); background: var(--panneau); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.noeud-paris { border-color: rgba(255, 255, 255, 0.45); background: var(--panneau-2); box-shadow: 0 0 50px rgba(255, 255, 255, 0.08); }
.noeud-mistral { border-color: rgba(255, 77, 94, 0.4); }
.noeud .petit { font-family: var(--mono); font-size: 12px; color: var(--discret); }
.noeud-paris .petit { color: var(--texte-2); }
.noeud strong { font-size: 22px; }
.noeud span:last-child { font-size: 15px; color: var(--discret); }
.faisceau { flex: 1 1 60px; min-width: 40px; height: 3px; background-size: 200% 100%; }
.faisceau-1 { background-image: linear-gradient(90deg, rgba(77, 139, 255, 0.15) 0%, var(--bleu) 45%, #FFFFFF 50%, rgba(77, 139, 255, 0.15) 55%); }
.faisceau-2 { background-image: linear-gradient(90deg, rgba(255, 77, 94, 0.15) 0%, #FFFFFF 45%, var(--rouge) 50%, rgba(255, 77, 94, 0.15) 55%); animation-delay: -1.4s; }

/* Demande d'essai */
.essai { padding: 0 16px 16px; }
.essai-carte { max-width: var(--large); margin: 0 auto; border-radius: 36px; overflow: hidden; border: 1px solid var(--trait); background: radial-gradient(ellipse at 85% 0%, rgba(77, 139, 255, 0.28), rgba(5, 10, 28, 0) 60%), var(--panneau); padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.essai-texte { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.essai-texte h2 { font-size: clamp(38px, 4.8vw, 66px); font-weight: 700; line-height: 1.0; letter-spacing: -0.035em; }
.essai-texte p { color: var(--discret); max-width: 42ch; }
.formulaire { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.champs { display: flex; flex-wrap: wrap; gap: 16px; }
.champ { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--texte-2); }
.champ-large { flex-basis: 100%; }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(156, 192, 255, 0.28); background: rgba(5, 10, 28, 0.6); color: var(--texte); font: inherit; font-size: 16px; font-weight: 400; }
.champ textarea { min-height: 96px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--bleu-clair); outline-offset: 1px; border-color: transparent; }
.facultatif { font-weight: 400; color: var(--discret); }
.accord { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--texte-2); }
.accord input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: var(--bleu); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.statut { min-height: 1.6em; font-size: 15px; }
.statut-ok { color: #8FE3B8; }
.statut-erreur { color: var(--rouge-clair); }
.note { font-size: 13px; color: var(--discret); }
.formulaire .bouton { align-self: flex-start; }
.formulaire .bouton[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Pied de page ---------- */
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px 32px; font-size: 14px; color: var(--discret); }
.pied a { color: var(--discret); }
.pied a:hover { color: var(--texte); }
.pied nav { display: flex; gap: 0 22px; flex-wrap: wrap; }
.pied nav a { display: inline-flex; align-items: center; min-height: 44px; }
.liseret { display: inline-flex; width: 18px; height: 6px; border-radius: 3px; overflow: hidden; vertical-align: middle; margin-right: 10px; }
.liseret span { flex: 1 1 0; }
.liseret span:nth-child(1) { background: var(--bleu); }
.liseret span:nth-child(2) { background: #FFFFFF; }
.liseret span:nth-child(3) { background: var(--rouge); }

/* ---------- Pages de texte (mentions, confidentialité, 404) ---------- */
.page-texte { max-width: 820px; margin: 0 auto; padding: 64px 24px 96px; display: flex; flex-direction: column; gap: 22px; }
.page-texte h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.page-texte h2 { font-size: 24px; font-weight: 700; margin-top: 18px; }
.page-texte p, .page-texte li { color: var(--texte-2); }
.page-texte ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.a-completer { color: #FFD48A; }

/* ---------- Animations ---------- */
@keyframes clignote { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes balaye { 0% { top: 0%; opacity: 0; } 6% { opacity: 1; } 70% { top: 100%; opacity: 1; } 76%, 100% { top: 100%; opacity: 0; } }
@keyframes repere1 { 0%, 18% { opacity: 0; } 23%, 93% { opacity: 1; } 100% { opacity: 0; } }
@keyframes repere2 { 0%, 38% { opacity: 0; } 43%, 93% { opacity: 1; } 100% { opacity: 0; } }
@keyframes repere3 { 0%, 55% { opacity: 0; } 60%, 93% { opacity: 1; } 100% { opacity: 0; } }
@keyframes verdict { 0%, 72% { opacity: 0; transform: scale(1.05); } 78%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes faisceau { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes faisceau-v { from { background-position: 0 -200%; } to { background-position: 0 200%; } }
@keyframes monte { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.led, .etat-actif .led { animation: clignote 2s ease-in-out infinite; }
.balayage { animation: balaye 6.5s cubic-bezier(0.45, 0, 0.35, 1) infinite; }
.r1 { animation: repere1 6.5s linear infinite; }
.r2 { animation: repere2 6.5s linear infinite; }
.r3 { animation: repere3 6.5s linear infinite; }
.verdict { animation: verdict 6.5s cubic-bezier(0.3, 0.8, 0.3, 1.2) infinite; }
.faisceau { animation: faisceau 2.8s linear infinite; }
.monte { animation: monte 0.9s cubic-bezier(0.2, 0.75, 0.15, 1) both; }
.monte-2 { animation-delay: 120ms; }
.monte-3 { animation-delay: 240ms; }
.monte-4 { animation-delay: 360ms; }

/* Visiteurs qui ont demandé moins d'animations : on garde le sens, sans les boucles. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .led, .etat-actif .led, .faisceau, .monte, .verre { animation: none; transition: none; }
  .balayage { display: none; }
  .r1, .r2, .r3, .verdict { animation: none; opacity: 1; }
}

/* ---------- Petits écrans ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .verre { --angle: 0deg; }
  .reseau { flex-direction: column; align-items: stretch; }
  .faisceau { flex: 0 0 36px; width: 3px; min-width: 0; height: 36px; align-self: center; background-size: 100% 200%; animation-name: faisceau-v; }
  .faisceau-1 { background-image: linear-gradient(180deg, rgba(77, 139, 255, 0.15) 0%, var(--bleu) 45%, #FFFFFF 50%, rgba(77, 139, 255, 0.15) 55%); }
  .faisceau-2 { background-image: linear-gradient(180deg, rgba(255, 77, 94, 0.15) 0%, #FFFFFF 45%, var(--rouge) 50%, rgba(255, 77, 94, 0.15) 55%); }
  .section { padding-block: 56px; gap: 32px; }
  .hero { min-height: 0; padding-block: 20px 8px; }
  .analyse { padding-block: 56px; gap: 32px; }
  /* Cartes à la hauteur de leur contenu (en colonne, la base flex devenait une hauteur). */
  .noeud { flex: 0 0 auto; }
  .verre { min-height: 0; backdrop-filter: none; }
}
@media (max-width: 600px) {
  .hud-2, .hud-4 { display: none; }
  .entete .conteneur { flex-wrap: nowrap; padding-block: 12px; }
  .nav a:not(.bouton) { display: none; }
  .nav .bouton-clair { min-height: 42px; padding: 0 16px; font-size: 14px; }
  .logo svg { width: 96px; }
  .hero-texte { gap: 20px; }
  .chapeau { font-size: 18px; }
  .hero-scene { height: 360px; }
  .verre { padding: 24px; gap: 10px; }
  .verre h3 { font-size: 26px; }
  .noeud { padding: 20px; }
}
@media (max-width: 360px) {
  .entete .conteneur { gap: 12px; }
  .logo svg { width: 84px; }
  .nav .bouton-clair { padding: 0 14px; font-size: 13px; }
}
