/* PRIISM — site vitrine (one-pager), sans framework, sans build. */

:root{
  --ink:#111827;
  --ink-soft:#374151;
  --muted:#6b7280;
  --line:#e5e7eb;
  --bg:#fdfdfc;
  --bg-alt:#f7f6f3;
  --violet:#7c3aed;
  --violet-dark:#5b21b6;
  --violet-light:#a78bfa;
  --red:#ef4444;
  --green:#22c55e;
  --blue:#3b82f6;
  --radius:.6rem;
  --radius-lg:1rem;
  --shadow-sm:0 1px 2px rgba(17,24,39,.06);
  --shadow-md:0 8px 24px rgba(17,24,39,.08);
  --shadow-lg:0 24px 60px rgba(17,24,39,.16);
  --maxw:1180px;
  font-size:16px;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 1.5rem;
}

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--ink); color:#fff; padding:.6rem 1rem; border-radius:0 0 .4rem 0;
}
.skip-link:focus{ left:0; }

h1,h2,h3{ margin:0 0 .6rem; line-height:1.15; font-weight:700; letter-spacing:-.01em; }
h1{ font-size:clamp(2rem, 4vw, 3rem); }
h2{ font-size:clamp(1.6rem, 3vw, 2.2rem); max-width:34ch; }
h3{ font-size:1.1rem; }
p{ margin:0 0 1rem; color:var(--ink-soft); }
em{ font-style:normal; color:var(--ink); }
strong{ color:var(--ink); }

/* ---------- header ---------- */

.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(253,253,252,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; gap:1.5rem;
  height:64px;
}
.brand{
  display:inline-flex; align-items:center; gap:.5rem;
  text-decoration:none; color:var(--ink); font-weight:700; letter-spacing:.02em;
  margin-right:auto;
}
.brand-mark{ flex:none; }
.brand-word{ font-size:1.05rem; }
.accent{ color:var(--violet); }

.main-nav{ display:flex; align-items:center; gap:.4rem; }
/* Pastilles calées sur la même hauteur que le CTA d'à côté
   (.btn-sm : padding .45rem .9rem, font-size .88rem) — même boîte, juste
   plus arrondie (999px, "bulle") pour rester des liens de nav, pas des
   boutons d'action. */
.main-nav a{
  display:inline-flex; align-items:center; gap:.4rem;
  color:var(--ink-soft); text-decoration:none; font-size:.88rem; font-weight:600;
  padding:.45rem .9rem; border-radius:999px; border:1px solid transparent;
  white-space:nowrap;
  transition:color .15s, background-color .15s, border-color .15s;
}
.main-nav a:hover{
  color:var(--violet); background:rgba(124,58,237,.08); border-color:rgba(124,58,237,.16);
}
.nav-ico{
  width:16px; height:16px; flex:none;
  fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
}

.header-actions{ display:flex; align-items:center; gap:.75rem; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:4px;
  width:44px; height:44px; border:1px solid var(--line); border-radius:.4rem;
  background:#fff; cursor:pointer; flex:none;
}
.nav-toggle span{ display:block; height:2px; background:var(--ink); margin:0 10px; border-radius:1px; }

/* CTA dupliqué dans le tiroir mobile — masqué en nav desktop, où le bouton
   d'en-tête suffit déjà (pas deux CTA visibles en même temps).
   Sélecteur `.main-nav .nav-cta` (et non `.nav-cta` seul) délibérément :
   il doit battre en spécificité `.main-nav a` (classe+type) qui fixe déjà
   `color`, sinon le texte du bouton hérite du gris des liens plutôt que du
   blanc voulu sur fond violet. */
.main-nav .nav-cta{ display:none; }

/* ---------- buttons ---------- */

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  text-decoration:none; font-weight:600; border-radius:.5rem;
  border:1px solid transparent; cursor:pointer; white-space:nowrap;
  transition:transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease, color .12s ease;
}
.btn-sm{ padding:.45rem .9rem; font-size:.88rem; }
.btn-lg{ padding:.8rem 1.5rem; font-size:1rem; }

.btn-primary{ background:var(--violet); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--violet-dark); transform:translateY(-1px); box-shadow:var(--shadow-md); }

.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--ink); transform:translateY(-1px); }

/* on dark sections, ghost buttons need light borders */
.section-dark .btn-ghost{ color:#f9fafb; border-color:rgba(249,250,251,.35); }
.section-dark .btn-ghost:hover{ border-color:#f9fafb; }

/* ---------- hero ---------- */

.hero{
  position:relative; overflow:hidden;
  padding:5.5rem 0 6rem;
}
.hero-blob{
  position:absolute; inset:-20% -10% auto auto; width:60vw; height:60vw; max-width:900px; max-height:900px;
  background:radial-gradient(circle at 30% 30%, rgba(124,58,237,.16), transparent 60%),
             radial-gradient(circle at 70% 70%, rgba(59,130,246,.12), transparent 55%),
             radial-gradient(circle at 50% 90%, rgba(34,197,94,.10), transparent 55%);
  filter:blur(10px);
  pointer-events:none;
  z-index:0;
}
.hero-inner{
  position:relative; z-index:1;
  display:grid; grid-template-columns:1.05fr 1fr; gap:3.5rem; align-items:center;
}

.eyebrow{
  display:inline-block; text-transform:uppercase; letter-spacing:.08em; font-size:.78rem;
  font-weight:700; color:var(--violet); margin-bottom:1rem;
}
.lede{ font-size:1.1rem; max-width:46ch; }

.hero-cta{ display:flex; flex-wrap:wrap; gap:.9rem; margin:1.6rem 0 2rem; }
.cta-center{ justify-content:center; }

.trust-line{
  list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:1.4rem;
  border-top:1px solid var(--line); padding-top:1.2rem;
}
.trust-line li{
  display:flex; align-items:center; gap:.5rem; font-size:.85rem; color:var(--muted); font-weight:500;
}
.ico{ width:18px; height:18px; flex:none; fill:none; stroke:var(--violet); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.ico-sm{ width:15px; height:15px; }

.hero-visual{ position:relative; }
.browser-frame{
  background:#fff; border-radius:var(--radius-lg); border:1px solid var(--line);
  box-shadow:var(--shadow-lg); overflow:hidden;
  transform:perspective(1200px) rotateY(-3deg) rotateX(1deg);
}
.browser-bar{
  display:flex; align-items:center; gap:6px; padding:.6rem .8rem;
  background:var(--bg-alt); border-bottom:1px solid var(--line);
}
.dot{ width:9px; height:9px; border-radius:50%; }
.dot-r{ background:#f87171; } .dot-y{ background:#fbbf24; } .dot-g{ background:#34d399; }
.browser-frame img{ display:block; width:100%; height:auto; }

.badge-float{
  position:absolute; display:flex; align-items:center; gap:.4rem;
  background:#fff; border:1px solid var(--line); border-radius:2rem;
  padding:.5rem .9rem; font-size:.82rem; font-weight:600; color:var(--ink-soft);
  box-shadow:var(--shadow-md);
  z-index:2;
}
.badge-float .ico{ stroke:var(--green); }
.badge-float-1{ top:-1rem; left:-1rem; }
.badge-float-2{ bottom:-1rem; right:-1rem; }
.badge-float-2 .ico{ stroke:var(--blue); }

/* ---------- sections ---------- */

.section{ padding:5.5rem 0; }
.section-alt{ background:var(--bg-alt); }
.section-dark{
  background:linear-gradient(180deg, #111827, #1f2333);
  color:#f9fafb;
}
.section-dark p{ color:#cbd1dc; }

.section-eyebrow{
  text-transform:uppercase; letter-spacing:.08em; font-size:.78rem; font-weight:700;
  color:var(--violet); margin:0 0 .7rem;
}
.section-eyebrow-light{ color:var(--violet-light); }
.h-light{ color:#f9fafb; }
.lede-sm{ font-size:1.02rem; max-width:52ch; }
.lede-light{ color:#cbd1dc; }

/* card grid */

.grid-3{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:1.6rem; margin-top:2.6rem;
}
.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:1.6rem; box-shadow:var(--shadow-sm);
  transition:transform .15s ease, box-shadow .15s ease;
}
.card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); }
.card-icon{
  width:42px; height:42px; border-radius:.6rem; margin-bottom:1rem;
  background:linear-gradient(135deg, rgba(124,58,237,.12), rgba(59,130,246,.1));
  display:flex; align-items:center; justify-content:center;
}
.card-icon svg{ width:22px; height:22px; fill:none; stroke:var(--violet); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.card p{ font-size:.94rem; margin-bottom:0; }
.grid-features .card{ background:var(--bg); }

/* text + visual band */

.band{
  display:grid; grid-template-columns:1fr 1fr; gap:3.5rem; align-items:center;
}
.band-reverse .band-copy{ order:1; }
.band-reverse .band-visual{ order:2; }

.check-list{ list-style:none; margin:1.4rem 0 0; padding:0; display:grid; gap:.85rem; }
.check-list li{
  position:relative; padding-left:1.6rem; font-size:.96rem; color:var(--ink-soft);
}
.check-list li::before{
  content:""; position:absolute; left:0; top:.35rem; width:16px; height:16px;
  background:var(--violet); border-radius:50%;
  -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="m5 13 4 4L19 7"/></svg>') center/70% no-repeat;
  mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="m5 13 4 4L19 7"/></svg>') center/70% no-repeat;
}
.check-list-light li{ color:#dfe3ea; }

.browser-frame-sm{ transform:none; max-width:520px; margin-inline:auto; }
.caption{ text-align:center; font-size:.85rem; color:var(--muted); margin-top:.9rem; }

/* steps */

.steps{
  list-style:none; margin:2.8rem 0 0; padding:0;
  display:grid; grid-template-columns:repeat(4, 1fr); gap:1.8rem;
}
.steps li{ display:flex; flex-direction:column; gap:.8rem; }
.step-n{
  display:inline-flex; align-items:center; justify-content:center;
  width:2.4rem; height:2.4rem; border-radius:50%;
  background:var(--ink); color:#fff; font-weight:700; font-size:1rem;
}
.steps h3{ margin-bottom:.35rem; }
.steps p{ font-size:.92rem; }

/* sovereignty diagram */

.sov-diagram{ display:grid; gap:1rem; }
.sov-node{
  display:flex; flex-direction:column; gap:.15rem; position:relative;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius); padding:1.1rem 1.2rem 1.1rem 2.4rem;
}
.sov-node strong{ color:#f9fafb; font-size:.98rem; }
.sov-node span:not(.sov-dot){ color:#9aa2b1; font-size:.84rem; }
.sov-dot{
  position:absolute; left:1.1rem; top:1.35rem; width:10px; height:10px; border-radius:50%;
  background:var(--green); box-shadow:0 0 0 4px rgba(34,197,94,.18);
}
.sov-dot-eu{ background:var(--blue); box-shadow:0 0 0 4px rgba(59,130,246,.18); }
.sov-dot-blocked{ background:#f87171; box-shadow:0 0 0 4px rgba(248,113,113,.18); }
.sov-node-blocked{ opacity:.85; }

/* status band */

.status-band{
  display:flex; align-items:flex-start; gap:1.1rem;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:1.6rem 1.8rem; box-shadow:var(--shadow-sm);
}
.status-icon{
  flex:none; width:2.4rem; height:2.4rem; border-radius:50%;
  background:rgba(34,197,94,.12); display:flex; align-items:center; justify-content:center;
}
.status-icon svg{ width:20px; height:20px; fill:none; stroke:#16a34a; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.status-band p{ margin:0; font-size:.98rem; }

/* CTA final */

.cta-section{
  background:linear-gradient(135deg, #f5f3ff, #eef2ff 60%, #f7f6f3);
  text-align:center;
}
.cta-inner{ max-width:640px; }
.cta-inner .lede-sm{ margin-inline:auto; }

/* ---------- footer ---------- */

.site-footer{ background:var(--ink); color:#cbd1dc; padding:3rem 0 2rem; }
.footer-inner{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:.9rem; }
.brand-footer{ color:#f9fafb; }
.brand-word-dark{ color:#f9fafb; }
.footer-tagline{ color:#9aa2b1; font-size:.9rem; max-width:36ch; margin:0; }
.footer-nav{ display:flex; flex-wrap:wrap; justify-content:center; gap:1.3rem; margin:.4rem 0; }
.footer-nav a{ color:#cbd1dc; text-decoration:none; font-size:.86rem; }
.footer-nav a:hover{ color:#fff; }
.footer-copy{ color:#6b7280; font-size:.8rem; margin:.6rem 0 0; }

/* ---------- reveal-on-scroll ---------- */

.reveal{
  opacity:0; transform:translateY(14px);
  transition:opacity .6s ease, transform .6s ease;
  transition-delay:var(--delay, 0s);
}
.reveal.is-visible{ opacity:1; transform:none; }

/* ---------- responsive ---------- */

/* Nav desktop (5 liens + logo + CTA) a besoin d'environ 950-990px sur une
   ligne — un point de bascule séparé du reflow de contenu ci-dessous, sinon
   toute la plage tablette (iPad portrait 768-834px compris) tombe entre les
   deux : ni assez large pour la nav complète, ni encore repliée. */
@media (max-width:1040px){
  .main-nav{
    position:absolute; top:64px; left:0; right:0;
    background:#fff; border-bottom:1px solid var(--line);
    flex-direction:column; align-items:stretch; gap:0;
    padding:.5rem 1.5rem 1rem;
    display:none;
    max-height:calc(100vh - 64px); overflow-y:auto;
  }
  .main-nav.is-open{ display:flex; }
  /* Dans le tiroir mobile, la pastille du header (bulle arrondie, padding
     horizontal) redevient une ligne de liste pleine largeur — sinon un
     rayon de 999px sur une boîte de 100% de large donnerait une forme en
     stade plutôt qu'une ligne franche. */
  .main-nav a{
    padding:.75rem 0; width:100%; border-radius:0; border-color:transparent;
    border-bottom:1px solid var(--line);
  }
  .main-nav a:hover{ background:transparent; border-bottom-color:var(--line); }
  .main-nav a:last-child{ border-bottom:0; }
  .main-nav .nav-cta{
    display:block; text-align:center; margin-top:.75rem;
    background:var(--violet); color:#fff; border-radius:.5rem; padding:.75rem 0;
  }
  /* Sans ce override, `.main-nav a:hover{color:var(--violet)}` (même
     spécificité, défini avant) reprendrait la main au survol — texte
     violet sur fond violet, illisible. */
  .main-nav .nav-cta:hover{ color:#fff; background:var(--violet-dark); }
  .nav-toggle{ display:flex; }
  .header-actions .btn-sm{ display:none; }
}

@media (max-width:960px){
  .hero-inner, .band, .band-reverse{ grid-template-columns:1fr; }
  .band-reverse .band-copy, .band-reverse .band-visual{ order:initial; }
  .hero-visual{ order:-1; }
  .steps{ grid-template-columns:repeat(2, 1fr); }
  .grid-3{ grid-template-columns:1fr 1fr; }
  /* Dès que le hero passe en une colonne, l'image est déjà pleine largeur
     au-dessus du texte — l'inclinaison 3D n'a plus de mise en scène à
     accompagner, elle ne fait plus que couper les coins de l'image. */
  .browser-frame{ transform:none; }
}

@media (max-width:760px){
  .steps{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
  .badge-float{ display:none; }
  .hero{ padding:3rem 0 3.5rem; }
  .section{ padding:3.5rem 0; }
}

@media (max-width:560px){
  /* Icône + paragraphe côte à côte devient trop serré sous ~560px ;
     empilé, le texte respire et l'icône reste lisible. */
  .status-band{ flex-direction:column; }
}

@media (max-width:480px){
  /* Boutons en pleine largeur plutôt que deux pastilles étroites
     côte à côte — plus sûr (le texte en `white-space:nowrap` ne peut
     jamais se retrouver à l'étroit) et plus facile à toucher. */
  .hero-cta .btn{ flex:1 1 100%; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .card, .btn{ transition:none; }
}
