/* Enezig : feuille de styles unique. Thème sombre assumé, jetons de couleur sur :root. */

@font-face { font-family: 'Space Grotesk'; font-weight: 300 700; font-display: swap; src: url(/fonts/space-grotesk.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url(/fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 100 800; font-display: swap; src: url(/fonts/jetbrains-mono.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --surface: rgb(255 255 255 / 4%);
  --surface-2: rgb(255 255 255 / 7%);
  --border: rgb(255 255 255 / 10%);
  --border-strong: rgb(255 255 255 / 18%);
  --text: #eef1f8;
  --muted: #a3adc2;
  --faint: #6f7a92;
  --aqua: #2de2c4;
  --blue: #5b8cff;
  --violet: #a77bff;
  --grad: linear-gradient(120deg, var(--aqua) 0%, var(--blue) 50%, var(--violet) 100%);
  --radius: 20px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Halo d'ambiance fixe, derrière tout le contenu */
body::before {
  content: '';
  position: fixed;
  inset: -20vh -10vw auto;
  height: 90vh;
  z-index: -1;
  background:
    radial-gradient(40vw 30vh at 20% 20%, rgb(45 226 196 / 13%), transparent 70%),
    radial-gradient(45vw 35vh at 80% 10%, rgb(167 123 255 / 16%), transparent 70%),
    radial-gradient(35vw 30vh at 55% 60%, rgb(91 140 255 / 10%), transparent 70%);
  pointer-events: none;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--aqua); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(91 140 255 / 45%); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0 0 1em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg-2); color: var(--text); padding: .6em 1em; border-radius: 10px; }
.label { font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--aqua); display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.2rem; }
.label::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40em; }

/* Navigation */
.nav-bar { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav-bar.is-scrolled { background: rgb(5 7 13 / 72%); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--border); }
.nav-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 1.4rem/1 var(--display); letter-spacing: -.03em; }
.brand svg { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: var(--text); }
@media (max-width: 820px) { .nav-links a:not(.btn) { display: none; } }

/* Boutons */
.btn { position: relative; display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.4em; border-radius: 999px; font: 600 .98rem/1 var(--font); text-decoration: none; border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .3s; }
.btn:hover { transform: translateY(-1px); border-color: rgb(255 255 255 / 35%); background: var(--surface-2); }
.btn-primary { border: 0; color: #05070d; background: var(--grad); box-shadow: 0 8px 32px -8px rgb(91 140 255 / 60%); }
.btn-primary:hover { background: var(--grad); box-shadow: 0 10px 40px -6px rgb(45 226 196 / 55%); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn .fleche { transition: transform .2s var(--ease); }
.btn:hover .fleche { transform: translateX(3px); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2.2rem; }

/* Hero */
.hero { position: relative; padding: clamp(56px, 12vh, 140px) 0 clamp(64px, 12vh, 120px); isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; -webkit-mask-image: radial-gradient(ellipse 80% 75% at 60% 45%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 80% 75% at 60% 45%, #000 40%, transparent 100%); }
.pill { display: inline-flex; align-items: center; gap: .6em; padding: .45em 1em .45em .7em; border: 1px solid var(--border); border-radius: 999px; background: rgb(255 255 255 / 3%); font-size: .88rem; color: var(--muted); margin-bottom: 2rem; backdrop-filter: blur(6px); }
.pill .point { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 0 rgb(45 226 196 / 60%); animation: pouls 2.4s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgb(45 226 196 / 55%); } 70%, 100% { box-shadow: 0 0 0 10px rgb(45 226 196 / 0%); } }
.hero h1 { max-width: 13em; }
.hero h1 .grad { display: inline; }

/* Bandeau défilant */
.defile { border-block: 1px solid var(--border); overflow: hidden; padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.defile ul { display: flex; gap: 48px; width: max-content; margin: 0; padding: 0; list-style: none; animation: defile 38s linear infinite; font: 500 .95rem/1 var(--mono); color: var(--muted); }
.defile li { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.defile li::after { content: '◆'; font-size: .6rem; color: var(--violet); }
@keyframes defile { to { transform: translateX(-50%); } }

section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 46em; margin-bottom: clamp(36px, 5vw, 64px); }

/* Savoir-faire : grille en mosaïque */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.tuile { position: relative; grid-column: span 2; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 2%)); border: 1px solid var(--border); overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.tuile:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.tuile::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgb(91 140 255 / 14%), transparent 65%); pointer-events: none; }
.tuile-large { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; }
.tuile p { color: var(--muted); margin: 0; }
.tuile .icone { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgb(255 255 255 / 6%); border: 1px solid var(--border); margin-bottom: 20px; color: var(--aqua); }
.tuile .icone svg { width: 22px; height: 22px; }
.tuile h3 { margin-bottom: .45em; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .tuile, .tuile-large { grid-column: span 1; grid-row: auto; } .tuile-large { grid-column: span 2; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tuile-large { grid-column: span 1; } }

/* Illustration de tableau de bord (tuile SaaS) */
.dash { margin-top: auto; padding-top: 28px; }
.dash-cadre { border: 1px solid var(--border); border-radius: 14px; background: rgb(5 7 13 / 60%); padding: 18px; }
.dash-haut { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font: 500 .78rem/1.2 var(--mono); color: var(--faint); }
.dash-valeur { font: 600 1.6rem/1 var(--display); color: var(--text); letter-spacing: -.02em; }
.dash-valeur small { font: 500 .8rem var(--mono); color: var(--aqua); margin-left: .5em; }
.barres { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.barres span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--blue), rgb(91 140 255 / 15%)); transform-origin: bottom; }
.barres span:last-child { background: linear-gradient(180deg, var(--aqua), rgb(45 226 196 / 15%)); }
.js .reveal.is-visible .barres span { animation: monte .9s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
@keyframes monte { from { transform: scaleY(0); } }
.dash-legende { margin-top: 10px; font: 400 .72rem var(--mono); color: var(--faint); }

/* Produits */
.vitrine { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 28px; border: 1px solid var(--border); background: linear-gradient(135deg, rgb(45 226 196 / 6%), rgb(167 123 255 / 6%)); }
@media (min-width: 960px) { .vitrine { grid-template-columns: .95fr 1.05fr; } }
.produit-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.produit-tete svg { width: 52px; height: 52px; flex: none; border-radius: 14px; }
.produit-tete h3 { font-size: 1.8rem; margin: 0; }
.produit-tete .domaine { font: 500 .85rem var(--mono); color: var(--muted); }
.statut { display: inline-flex; align-items: center; gap: .5em; font: 500 .78rem/1 var(--mono); padding: .55em .9em; border-radius: 999px; border: 1px solid rgb(45 226 196 / 35%); color: var(--aqua); background: rgb(45 226 196 / 8%); }
.statut::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.liste-coches { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .7em; }
.liste-coches li { display: flex; gap: .7em; color: var(--muted); }
.liste-coches li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: .2em; border-radius: 50%; background: rgb(45 226 196 / 14%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%232de2c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* Maquette navigateur de Faites valoir (aux couleurs de ce site) */
.navigateur { border-radius: 16px; overflow: hidden; background: #f6f7f9; color: #0f1b2d; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 10%); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease); }
.navigateur:hover { transform: none; }
@media (max-width: 959px) { .navigateur { transform: none; } }
.nav-chrome { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #e9ecf1; border-bottom: 1px solid #dfe4eb; }
.nav-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #c7cfdb; }
.nav-chrome span { margin-left: 10px; flex: 1; font: 500 .74rem var(--mono); color: #4d5b70; background: #fff; border-radius: 6px; padding: 6px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv { padding: 22px; font-family: var(--font); }
.fv-titre { font: 700 1.15rem/1.25 var(--font); margin-bottom: 4px; letter-spacing: -.01em; }
.fv-sous { font-size: .82rem; color: #4d5b70; margin-bottom: 16px; }
.fv-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.fv-champ { background: #fff; border: 1px solid #dfe4eb; border-radius: 8px; padding: 8px 10px; }
.fv-champ b { display: block; font-size: .68rem; font-weight: 500; color: #6f7c8f; }
.fv-champ span { font-weight: 600; font-size: .92rem; }
.fv-resultat { background: #e7eef8; border-radius: 10px; padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fv-resultat .montant { font: 700 1.5rem/1 var(--font); color: #173d6f; }
.fv-resultat small { display: block; font-size: .75rem; color: #4d5b70; margin-top: 4px; }
.fv-bouton { background: #1f4e8c; color: #fff; font-weight: 600; font-size: .82rem; padding: .7em 1em; border-radius: 8px; }
.illustration { font: 400 .72rem var(--mono); color: var(--faint); margin-top: 12px; text-align: right; }


/* Mesures en direct */
.mesures { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.mesure { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.mesure output { display: block; font: 600 clamp(2.2rem, 4vw, 3rem)/1 var(--display); letter-spacing: -.03em; margin-bottom: 10px; }
.mesure output .unite { font-size: .45em; color: var(--muted); margin-left: .2em; letter-spacing: 0; }
.mesure span { color: var(--muted); font-size: .95rem; }
.note-mesures { margin-top: 20px; font: 400 .8rem/1.6 var(--mono); color: var(--faint); }

/* Méthode */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: etape; }
.etapes li { position: relative; padding: 28px 24px 24px; border-top: 1px solid var(--border-strong); }
.etapes li::before { counter-increment: etape; content: '0' counter(etape); font: 500 .85rem var(--mono); color: var(--aqua); display: block; margin-bottom: 18px; }
.etapes li::after { content: ''; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--grad); transition: width 1.2s var(--ease); }
.js .reveal.is-visible .etapes li::after, .js .etapes.reveal.is-visible li::after { width: 100%; }
.etapes li p { color: var(--muted); margin: 0; }

/* Engagements et technologies */
.engagements { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .engagements { grid-template-columns: 1fr 1fr; } }
.puces { display: flex; flex-wrap: wrap; align-content: flex-start; align-self: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.puces li { white-space: nowrap; font: 500 .88rem/1 var(--mono); padding: .7em 1em; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); }

/* Contact */
.contact { position: relative; padding: clamp(40px, 7vw, 88px); border-radius: 32px; text-align: center; background: radial-gradient(80% 120% at 50% 0%, rgb(91 140 255 / 22%), transparent 70%), var(--bg-2); overflow: hidden; }
.contact::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.contact h2 { max-width: 14em; margin-inline: auto; }
.contact .lead { margin-inline: auto; }
.contact .actions { justify-content: center; }

/* Pied de page */
.pied { border-top: 1px solid var(--border); padding: 40px 0 56px; font-size: .92rem; color: var(--muted); }
.pied .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: center; }
.pied nav { display: flex; gap: 24px; flex-wrap: wrap; }
.pied a { color: var(--muted); }
.pied a:hover { color: var(--text); }

/* Apparition au défilement (uniquement si JavaScript est actif) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .etapes li::after { width: 100%; }
}

/* Pages de texte */
.page { padding: clamp(32px, 6vw, 72px) 0 96px; }
.page .container { max-width: 780px; }
.page h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.page h2 { font-size: 1.5rem; margin-top: 2.2em; }
.page dl { display: grid; grid-template-columns: minmax(0, 13em) 1fr; gap: .6em 1.5em; margin: 0; }
@media (max-width: 560px) { .page dl { grid-template-columns: 1fr; } .page dd { margin-bottom: .6em; } }
.page dt { font-weight: 600; }
.page dd { margin: 0; color: var(--muted); }
.page li { color: var(--muted); margin-bottom: .5em; }
.page li strong { color: var(--text); }
.a-completer { background: rgb(255 196 64 / 16%); color: #ffd27a; padding: .05em .4em; border-radius: 6px; font-style: italic; }
.note { border-left: 2px solid var(--aqua); padding: .7em 1.1em; background: var(--surface); border-radius: 0 10px 10px 0; color: var(--muted); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Hauteurs des barres de l'illustration (pas d'attribut style : CSP stricte) */
.barres span:nth-child(1) { height: 38%; --i: 1; }
.barres span:nth-child(2) { height: 44%; --i: 2; }
.barres span:nth-child(3) { height: 41%; --i: 3; }
.barres span:nth-child(4) { height: 52%; --i: 4; }
.barres span:nth-child(5) { height: 49%; --i: 5; }
.barres span:nth-child(6) { height: 58%; --i: 6; }
.barres span:nth-child(7) { height: 63%; --i: 7; }
.barres span:nth-child(8) { height: 60%; --i: 8; }
.barres span:nth-child(9) { height: 71%; --i: 9; }
.barres span:nth-child(10) { height: 77%; --i: 10; }
.barres span:nth-child(11) { height: 84%; --i: 11; }
.barres span:nth-child(12) { height: 96%; --i: 12; }
