/* =============================================================================
   WEB06 — Design system (V4)
   Agence web & IA. Thème sombre, ambiance "tech", sans dépendance externe.
   Pensé pour être édité facilement par un agent IA :
   - variables en haut, composants réutilisables en dessous.
   - IMPORTANT : les boutons sont en aplat (aucun dégradé).
   - V3 : canvas particules, aurores animées, marquee, mockups, spotlight, compteurs.
   - V4 : fonds enrichis (mesh, pointillé, halo, balayages), bordure conique
     animée, tilt 3D, boutons magnétiques, cascade de révélations, curseur.
   ========================================================================== */

/* --- 1. Tokens de design --------------------------------------------------- */
:root {
  /* Fonds & surfaces (thème sombre) */
  --bg: #05070e;
  --bg-2: #080b15;
  --surface: #0d1220;
  --surface-2: #121a2e;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);

  /* Texte */
  --text: #e8edf7;
  --muted: #97a4bd;
  --muted-2: #6f7d99;

  /* Couleurs de marque */
  --primary: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --accent: #22d3ee;
  --ai: #a78bfa;
  --ai-600: #8b5cf6;
  --ai-700: #7c3aed;
  --ok: #34d399;

  /* Typo & rythme */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .04), 0 2px 8px rgba(0, 0, 0, .35);
  --shadow: 0 14px 40px rgba(0, 0, 0, .45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .55);
  --glow-primary: 0 0 0 1px rgba(59, 130, 246, .35), 0 12px 40px rgba(37, 99, 235, .22);
  --glow-accent: 0 0 24px rgba(34, 211, 238, .35);

  --maxw: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

/* --- 2. Reset moderne ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: #fff; letter-spacing: -.025em; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
strong { color: #fff; }
::selection { background: rgba(34, 211, 238, .28); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* --- 3. Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.section { padding-block: var(--section-y); position: relative; }
.section--panel { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: #03050b; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.stack > * + * { margin-top: 1rem; }

/* Motif grille "tech" en fond de section (décor, jamais sur un bouton) */
.section--grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 80%);
}

/* --- 4. En-tête / navigation ---------------------------------------------- */
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--surface-2); color: #fff; padding: .6rem 1rem; border-radius: 8px; box-shadow: var(--shadow); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 14, .78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: #fff; letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 36px; height: 36px; flex: none; border-radius: 10px; }
.nav__toggle { display: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: .5rem .6rem; font-size: 1.2rem; cursor: pointer; color: var(--text); }
.nav__links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--muted); padding: .5rem .8rem; border-radius: 8px; font-size: .95rem; font-weight: 550; }
.nav__links a:hover { background: var(--surface-2); text-decoration: none; color: #fff; }
.nav__links a.is-active { color: var(--accent); }
.nav__cta a { background: var(--primary-600); color: #fff !important; padding: .6rem 1.1rem; border-radius: 10px; }
.nav__cta a:hover { background: var(--primary-700); }

@media (max-width: 900px) {
  .nav__toggle { display: inline-block; }
  .nav__links {
    position: absolute; inset: 70px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: .75rem var(--gutter) 1.25rem;
    gap: .15rem; box-shadow: var(--shadow); display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .8rem .6rem; }
  .nav__cta a { text-align: center; }
}

/* --- 5. Boutons (APLAT — aucun dégradé) ----------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 650; font-size: 1rem; line-height: 1;
  padding: .9rem 1.45rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary-600); color: #fff; }
.btn--primary:hover { background: var(--primary-700); }
.btn--ai { background: var(--ai-600); color: #fff; }
.btn--ai:hover { background: var(--ai-700); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(34, 211, 238, .06); }
.btn--light { background: rgba(255, 255, 255, .08); color: #fff; border-color: var(--line-strong); }
.btn--light:hover { background: rgba(255, 255, 255, .15); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* --- 6. Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(55% 45% at 12% 0%, rgba(59, 130, 246, .22) 0%, transparent 60%),
  radial-gradient(45% 40% at 92% 8%, rgba(139, 92, 246, .16) 0%, transparent 62%),
  var(--bg); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(75% 65% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 30%, #000 0%, transparent 78%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero__eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .25); border-radius: 999px; padding: .4rem .85rem;
}
.hero__eyebrow::before { content: "//"; color: var(--muted-2); }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 58ch; }
.hero__status { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.25rem; }
.hero__status .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); } 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* Fenêtre "terminal" — visuel tech sans image externe */
.terminal { border: 1px solid var(--line-strong); border-radius: var(--radius); background: #070a12; box-shadow: var(--shadow-lg); overflow: hidden; }
.terminal__bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.terminal__bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3550; }
.terminal__bar .dot--r { background: #ff5f57; } .terminal__bar .dot--y { background: #febc2e; } .terminal__bar .dot--g { background: #28c840; }
.terminal__title { margin-left: .6rem; font-family: var(--font-mono); font-size: .78rem; color: var(--muted-2); }
.terminal__body { margin: 0; padding: 1.15rem 1.25rem; font-family: var(--font-mono); font-size: .84rem; line-height: 1.85; color: #c7d2e5; overflow-x: auto; }
.terminal__body .c-k { color: #7aa2ff; } .terminal__body .c-s { color: #7ee0c0; } .terminal__body .c-f { color: var(--accent); } .terminal__body .c-c { color: var(--muted-2); } .terminal__body .c-t { color: var(--ai); }
.terminal__foot { display: flex; align-items: center; gap: .6rem; padding: .75rem 1.25rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.terminal__foot .ok { color: var(--ok); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}

/* --- 7. Bandeau de chiffres ------------------------------------------------ */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.trust__item { text-align: center; }
.trust__num { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: #fff; font-family: var(--font-mono); letter-spacing: -.02em; }
.trust__num em { color: var(--accent); font-style: normal; }
.trust__label { font-size: .85rem; color: var(--muted); }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem; }
.badge svg { width: 15px; height: 15px; color: var(--ok); }

/* --- 8. Titre de section --------------------------------------------------- */
.section-head { max-width: 780px; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }
.section-head .kicker { margin-bottom: .9rem; }
.section-head h2 { margin-bottom: .6rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--ink .section-head p { color: var(--muted); }

/* --- 9. Cartes ------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .5), transparent); opacity: 0; transition: opacity .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card:hover::after { opacity: 1; }
.card__icon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: rgba(59, 130, 246, .12); color: #7aa2ff; border: 1px solid rgba(59, 130, 246, .25); margin-bottom: 1rem; }
.card__icon svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card__link { margin-top: auto; font-weight: 650; color: var(--accent); font-size: .95rem; }
.card--ai .card__icon { background: rgba(139, 92, 246, .14); color: var(--ai); border-color: rgba(139, 92, 246, .3); }
.card--ai:hover { border-color: rgba(139, 92, 246, .45); }
.card--ai::after { background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .6), transparent); }

/* --- 10. Bandeau IA -------------------------------------------------------- */
.ai-band { border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3rem); background: #0a0f1d; border: 1px solid rgba(139, 92, 246, .35); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.ai-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(60% 90% at 100% 0%, rgba(139, 92, 246, .25), transparent 60%),
  radial-gradient(50% 80% at 0% 100%, rgba(34, 211, 238, .14), transparent 60%); }
.ai-band > * { position: relative; }
.ai-band__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 2.75rem); align-items: center; }
@media (max-width: 900px) { .ai-band__grid { grid-template-columns: 1fr; } }
.ai-band h2, .ai-band h3 { color: #fff; }
.ai-band p { color: var(--muted); }
.ai-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.5rem; }
.ai-chip { font-family: var(--font-mono); font-size: .82rem; font-weight: 500; padding: .45rem .85rem; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong); color: #d7deec; }

/* --- 11. Étapes (méthode) -------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.35rem 1.35rem; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: -16px; left: 1.35rem; padding: 0 .5rem; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--bg); color: var(--accent); font-family: var(--font-mono); font-weight: 700; border: 1px solid var(--line-strong); }
.step h3 { margin-top: .35rem; font-size: 1.08rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* --- 12. Packs ------------------------------------------------------------- */
.pack { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.85rem; display: flex; flex-direction: column; }
.pack--featured { border-color: rgba(59, 130, 246, .55); box-shadow: var(--glow-primary); background: var(--surface-2); }
.pack__tag { position: absolute; top: -13px; left: 1.85rem; background: var(--primary-600); color: #fff; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .32rem .7rem; border-radius: 8px; }
.pack h3 { margin-bottom: .25rem; }
.pack .pack__for { color: var(--muted); font-size: .95rem; min-height: 2.5em; }
.pack ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.pack li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; color: var(--text); }
.pack li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 6px; background: rgba(34, 211, 238, .14); border: 1px solid rgba(34, 211, 238, .3); color: var(--accent); font-size: .7rem; display: grid; place-items: center; font-weight: 800; }
.pack .btn { margin-top: auto; }

/* --- 13. Bande CTA (remplace les témoignages fictifs) ----------------------- */
.cta-band { position: relative; overflow: hidden; border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); background: var(--surface-2); padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.cta-band__actions { justify-content: center; margin-top: 1.4rem; }
.cta-band__glow { position: absolute; inset: -40% -20%; pointer-events: none; background:
  radial-gradient(45% 60% at 50% 0%, rgba(59, 130, 246, .18), transparent 65%),
  radial-gradient(35% 50% at 85% 100%, rgba(139, 92, 246, .14), transparent 65%);
  animation: cta-glow 9s ease-in-out infinite alternate; }
@keyframes cta-glow {
  0%   { transform: translateX(-2%); opacity: .85; }
  100% { transform: translateX(2%); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .cta-band__glow { animation: none; } }

/* --- 14. Réassurance ------------------------------------------------------- */
.assure { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.assure__item { display: flex; gap: .8rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.assure__item svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: .15rem; }
.assure__item strong { color: #fff; display: block; margin-bottom: .15rem; }
.assure__item span { color: var(--muted); font-size: .92rem; }

/* --- 15. FAQ (accordéon natif) -------------------------------------------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 3rem 1.2rem 1.35rem; font-weight: 650; color: #fff; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.35rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding: 0 1.35rem 1.2rem; margin: 0; color: var(--muted); }

/* --- 16. Contact / formulaire --------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: inherit; color: var(--text); background: var(--bg-2); transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); outline: none; }
.field select option { background: var(--bg-2); }
.field--half { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__note { font-size: .82rem; color: var(--muted-2); margin-top: .85rem; }
.form__status { margin-top: 1rem; font-weight: 600; color: var(--ok); display: none; }
.form__status.is-visible { display: block; }
.form__status.is-error { color: #f87171; }
.form__captcha { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1.1rem; padding: .9rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02); }
.form__captcha .field { margin-bottom: 0; flex: 1 1 220px; }
.form__captcha-visual { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
.form__captcha-visual img { border-radius: var(--radius-sm); display: block; max-width: 100%; height: auto; }
.btn--small { padding: .5rem .85rem; font-size: .82rem; }
.contact-info { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.contact-info li { display: flex; gap: .8rem; align-items: flex-start; color: var(--muted); }
.contact-info svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: .2rem; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } .field--half { grid-template-columns: 1fr; } }

/* --- 17. Pied de page ------------------------------------------------------ */
.site-footer { background: #03050b; color: var(--muted); padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; font-size: .94rem; border-top: 1px solid var(--line); }
.site-footer a { color: #c3cde0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .82rem; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-brand .brand { color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; color: var(--muted-2); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- 18. Utilitaires ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-2 { margin-top: 2rem; }

/* --- 19. Page interne (services IA, légal) -------------------------------- */
.page-hero { background: radial-gradient(55% 45% at 85% 0%, rgba(139, 92, 246, .2) 0%, transparent 62%), radial-gradient(45% 40% at 10% 0%, rgba(59, 130, 246, .18) 0%, transparent 60%), var(--bg); padding-block: clamp(2.75rem, 6vw, 5rem); border-bottom: 1px solid var(--line); position: relative; }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--muted); max-width: 65ch; font-size: 1.1rem; }
.breadcrumbs { font-family: var(--font-mono); font-size: .82rem; color: var(--muted-2); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--muted); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose li { color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface); color: #fff; font-family: var(--font-mono); font-size: .85rem; }

/* =============================================================================
   V3 — Effets graphiques & visuels
   ========================================================================== */

/* --- V3.1 Titres à texte dégradé (décor : jamais sur un bouton) ------------ */
.grad-text {
  background: linear-gradient(92deg, #6ee7ff 0%, #22d3ee 32%, #a78bfa 70%, #7aa2ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-reduced-motion: reduce) { .grad-text { background: none; color: var(--accent); } }

/* --- V3.2 Aurores / orbes lumineuses animées (décor de fond) --------------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora__orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: orb-drift 22s ease-in-out infinite alternate;
}
.aurora__orb--1 { width: 520px; height: 520px; top: -220px; left: -120px; background: radial-gradient(circle at 35% 35%, rgba(59,130,246,.34), transparent 65%); }
.aurora__orb--2 { width: 460px; height: 460px; top: -160px; right: -140px; background: radial-gradient(circle at 60% 40%, rgba(139,92,246,.3), transparent 65%); animation-delay: -7s; animation-duration: 27s; }
.aurora__orb--3 { width: 380px; height: 380px; bottom: -220px; left: 34%; background: radial-gradient(circle at 50% 50%, rgba(34,211,238,.2), transparent 65%); animation-delay: -14s; animation-duration: 31s; }
@keyframes orb-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(46px, 30px, 0) scale(1.12); }
  100% { transform: translate3d(-38px, 14px, 0) scale(.95); }
}
@media (prefers-reduced-motion: reduce) { .aurora__orb { animation: none; } }

/* --- V3.3 Canvas réseau de particules (hero) ------------------------------- */
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .8; }

/* --- V3.4 Barre de progression de scroll ----------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 60; box-shadow: 0 0 12px rgba(34, 211, 238, .7);
  transition: width .08s linear; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }

/* --- V3.5 Marquee défilant -------------------------------------------------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2); padding: .85rem 0; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono);
  font-size: .9rem; color: var(--muted); white-space: nowrap; }
.marquee__item strong { color: var(--text); font-weight: 600; }
.marquee__item .sep { color: var(--accent); font-weight: 700; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* --- V3.6 Spotlight sur les cartes (suivi du curseur, via JS) -------------- */
.card[data-spotlight]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .12), transparent 65%);
  transition: opacity .25s ease;
}
.card[data-spotlight]:hover::before { opacity: 1; }

/* --- V3.7 Compteurs animés -------------------------------------------------- */
.trust__num em { font-variant-numeric: tabular-nums; }

/* --- V3.8 Mockups « Réalisations » (fenêtres navigateur en pur CSS/SVG) ---- */
.shots { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.shot { position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.shot__screen { aspect-ratio: 16 / 10; display: block; width: 100%; }
.shot__body { padding: 1.25rem 1.4rem 1.4rem; }
.shot__body h3 { margin-bottom: .25rem; }
.shot__body p { color: var(--muted); margin: 0; font-size: .95rem; }
.shot__tag { position: absolute; top: .9rem; left: .9rem; z-index: 2; font-family: var(--font-mono);
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: rgba(5, 7, 14, .8); border: 1px solid var(--line-strong); color: var(--accent);
  border-radius: 999px; padding: .3rem .7rem; backdrop-filter: blur(6px); }

/* animations internes des mockups */
.shot__screen .draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw-line 2.8s ease forwards 0.4s; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.shot__screen .bar-grow { transform-origin: bottom; animation: bar-grow 1.6s cubic-bezier(.2,.8,.2,1) forwards; transform: scaleY(0); }
@keyframes bar-grow { to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .shot__screen .draw { animation: none; stroke-dashoffset: 0; }
  .shot__screen .bar-grow { animation: none; transform: scaleY(1); }
}

/* --- V3.9 Mockup conversation chatbot --------------------------------------- */
.chat { display: flex; flex-direction: column; gap: .7rem; }
.chat__row { display: flex; gap: .6rem; align-items: flex-end; max-width: 92%; }
.chat__row--me { align-self: flex-end; flex-direction: row-reverse; }
.chat__avatar { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: rgba(139, 92, 246, .16); border: 1px solid rgba(139, 92, 246, .35); color: var(--ai); }
.chat__avatar svg { width: 16px; height: 16px; }
.chat__bubble { padding: .65rem .9rem; border-radius: 14px; font-size: .9rem; line-height: 1.5;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.chat__row--me .chat__bubble { background: rgba(34, 211, 238, .12); border-color: rgba(34, 211, 238, .35); color: #e9fbff; }
.chat__bubble--typing { display: inline-flex; gap: .3rem; align-items: center; padding: .8rem .9rem; }
.chat__bubble--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ai); opacity: .35; animation: chat-blink 1.2s infinite; }
.chat__bubble--typing i:nth-child(2) { animation-delay: .2s; }
.chat__bubble--typing i:nth-child(3) { animation-delay: .4s; }
@keyframes chat-blink { 0%, 70%, 100% { opacity: .25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chat__bubble--typing i { animation: none; opacity: .7; } }

/* --- V3.10 Visual IA : constellation (SVG animé) ---------------------------- */
.ai-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(139, 92, 246, .35);
  background: #0a0e1c; box-shadow: var(--shadow-lg); }
.ai-visual svg { width: 100%; height: auto; display: block; }
.ai-visual__node { animation: node-pulse 3.2s ease-in-out infinite; transform-origin: center; }
.ai-visual__node:nth-of-type(odd) { animation-delay: 1.1s; }
@keyframes node-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.ai-visual__beam { stroke-dasharray: 6 10; animation: beam-flow 2.4s linear infinite; }
@keyframes beam-flow { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { .ai-visual__node, .ai-visual__beam { animation: none; } }

/* --- V3.11 Chip flottante sur le terminal ---------------------------------- */
.hero__media { position: relative; }
.float-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(10, 15, 29, .92); border: 1px solid rgba(34, 211, 238, .4); border-radius: 12px;
  padding: .55rem .85rem; font-size: .82rem; font-weight: 650; color: #fff;
  box-shadow: var(--shadow); backdrop-filter: blur(8px); animation: float-chip 5.5s ease-in-out infinite;
}
.float-chip em { font-style: normal; color: var(--ok); font-family: var(--font-mono); }
.float-chip--a { top: 8%; right: -10px; }
.float-chip--b { bottom: 14%; left: -14px; animation-delay: -2.7s; border-color: rgba(139, 92, 246, .45); }
@keyframes float-chip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) { .float-chip { display: none; } }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } }

/* =============================================================================
   V4 — Fonds enrichis & animations supplémentaires
   (aucun dégradé sur les boutons ; tout le décor est aria-hidden / pointer-events none)
   ========================================================================== */

/* --- V4.1 Fonds de section : mesh lumineux --------------------------------- */
.bg-mesh { position: relative; overflow: hidden; }
.bg-mesh::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(42% 55% at 8% 12%, rgba(59, 130, 246, .13), transparent 62%),
  radial-gradient(38% 50% at 95% 20%, rgba(139, 92, 246, .11), transparent 60%),
  radial-gradient(45% 60% at 50% 105%, rgba(34, 211, 238, .08), transparent 65%); }

/* --- V4.2 Fonds de section : pointillé ------------------------------------- */
.bg-dots { position: relative; overflow: hidden; }
.bg-dots::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .075) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(75% 60% at 50% 25%, #000 0%, transparent 82%);
  -webkit-mask-image: radial-gradient(75% 60% at 50% 25%, #000 0%, transparent 82%); }

/* --- V4.3 Fonds de section : halo central ---------------------------------- */
.bg-glow { position: relative; overflow: hidden; }
.bg-glow::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(50% 65% at 50% 35%, rgba(59, 130, 246, .12), transparent 70%); }

/* --- V4.4 Fonds de section : balayages lumineux diagonaux ------------------ */
.bg-beams { position: relative; overflow: hidden; }
.bg-beams::before, .bg-beams::after {
  content: ""; position: absolute; top: -25%; width: 34vw; height: 150%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(34, 211, 238, .055), transparent);
  transform: rotate(8deg); animation: beam-sweep 14s linear infinite;
}
.bg-beams::before { left: -40vw; }
.bg-beams::after { background: linear-gradient(100deg, transparent, rgba(139, 92, 246, .05), transparent);
  animation-delay: -7s; animation-duration: 19s; left: -60vw; }
@keyframes beam-sweep { to { transform: rotate(8deg) translateX(200vw); } }
@media (prefers-reduced-motion: reduce) { .bg-beams::before, .bg-beams::after { animation: none; display: none; } }

/* --- V4.5 Aurores « soft » réutilisables dans les sections ----------------- */
.aurora--soft .aurora__orb { opacity: .3; }
.aurora--soft .aurora__orb--1 { width: 380px; height: 380px; top: -160px; left: -100px; }
.aurora--soft .aurora__orb--2 { width: 340px; height: 340px; top: -120px; right: -120px; }
.aurora--soft .aurora__orb--3 { width: 300px; height: 300px; bottom: -180px; left: 55%; }

/* --- V4.6 Curseur clignotant du terminal ----------------------------------- */
.c-cursor { display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px;
  background: var(--accent); animation: cursor-blink 1.1s steps(1) infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .c-cursor { animation: none; } }

/* --- V4.7 Lueur animée sur le texte dégradé -------------------------------- */
.grad-text { background-size: 200% 100%; animation: grad-drift 8s ease-in-out infinite alternate; }
@keyframes grad-drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .grad-text { animation: none; } }

/* --- V4.8 Balayage lumineux sur les « kicker » ----------------------------- */
.kicker { position: relative; overflow: hidden; }
.kicker::after { content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: skewX(-18deg); animation: kicker-shine 6.5s ease-in-out infinite; }
@keyframes kicker-shine { 0%, 55% { left: -80%; } 85%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .kicker::after { display: none; } }

/* --- V4.9 Bordure conique animée sur le pack mis en avant (décor) ---------- */
.pack--featured { overflow: hidden; }
.pack--featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin, 0deg), transparent 0deg, rgba(59, 130, 246, .9) 40deg, rgba(139, 92, 246, .7) 80deg, transparent 130deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 6s linear infinite; }
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --spin: 360deg; } }
@media (prefers-reduced-motion: reduce) { .pack--featured::before { animation: none; } }

/* --- V4.10 Inclinaison 3D des cartes « réalisations » (via JS) -------------- */
.shot { transform-style: preserve-3d; will-change: transform; }
.shot.tilting { transition: box-shadow .2s ease, border-color .2s ease; }
.shot .shot__screen { transition: transform .25s ease; }

/* --- V4.11 Boutons « magnétiques » (via JS) --------------------------------- */
.btn.magnetic { transition: transform .18s cubic-bezier(.2, .8, .2, 1), background-color .15s ease, border-color .15s ease, color .15s ease; }

/* --- V4.12 Révélation en cascade (délais appliqués via JS) ------------------ */
.staggered > .reveal { transition-delay: calc(var(--stagger-i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) { .staggered > .reveal { transition-delay: 0ms; } }
