﻿/* ═══════════════════════════════════════════════════════════
   DEVNOVA — Feuille de style principale
   Palette dérivée du logo : nuit profonde + dégradé bleu → violet
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:        #05060d;
  --bg-2:      #090b16;
  /* Panneaux assombris depuis l'ajout du fond vidéo : translucides pour laisser
     deviner le maillage, mais assez denses pour que le petit texte reste net. */
  --panel:     rgba(10,12,24,.66);
  --panel-2:   rgba(16,19,34,.78);
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.18);

  --txt:       #f3f5fa;
  --mut:       #99a1b8;
  --dim:       #616a83;

  --blue:      #2f86ff;
  --indigo:    #5c6cff;
  --violet:    #a855f7;
  --grad:      linear-gradient(115deg, var(--blue), var(--indigo) 52%, var(--violet));
  --grad-soft: linear-gradient(115deg, rgba(47,134,255,.16), rgba(168,85,247,.16));
  --green:     #3ddc97;

  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --ease: cubic-bezier(.22,1,.36,1);
  --pad: clamp(20px, 5vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: rgba(92,108,255,.35); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #05060d; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.13); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.25); }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

/* ═══════ DÉCOR DE FOND ═══════ */

/* Vidéo de fond, fixe sur toute la page.
   `inset: 0` plutôt que 100vh : sur mobile, vh inclut la barre d'adresse et
   laisse une bande vide quand elle se rétracte. */
/* L'image fixe est portée par le conteneur, pas par l'attribut poster de la vidéo :
   la vidéo peut ainsi rester totalement invisible tant qu'elle n'a pas démarré. */
.bg-video {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: #05060d url("assets/bg-mesh.jpg") center/cover no-repeat;
}
@media (max-width: 820px) {
  .bg-video { background-image: url("assets/bg-mesh-mobile.jpg"); }
}

.bg-video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  pointer-events: none;
  /* Invisible par défaut. iOS superpose son bouton de lecture quand il refuse
     l'autoplay ; masquer les commandes en CSS ne suffit pas, alors on masque
     l'élément entier jusqu'à ce que la lecture soit réellement lancée.
     Le visiteur voit l'image fixe entre-temps, sans aucun bouton. */
  opacity: 0;
  transition: opacity .7s var(--ease);
}
.bg-video video.playing { opacity: 1; }
/* iOS affiche un gros bouton de lecture par-dessus la vidéo dès que la lecture
   automatique est refusée (mode économie d'énergie notamment). On le masque :
   c'est un décor, il ne doit jamais proposer de commandes. */
.bg-video video::-webkit-media-controls,
.bg-video video::-webkit-media-controls-enclosure,
.bg-video video::-webkit-media-controls-panel,
.bg-video video::-webkit-media-controls-overlay-play-button,
.bg-video video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  height: 0 !important;
}
/* Voile : laisse le maillage bien présent au centre, assombrit les bords pour
   que le texte reste lisible partout. */
.bg-veil {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 110% 80% at 50% 48%,
              rgba(5,6,13,.46) 0%, rgba(5,6,13,.74) 58%, rgba(5,6,13,.92) 100%);
}

.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(100px);
  animation: drift 30s var(--ease) infinite alternate;
}
.aurora .a1 { width: 52vw; height: 52vw; left: -12vw; top: -14vh;
  background: radial-gradient(circle, rgba(47,134,255,.20), transparent 66%); }
.aurora .a2 { width: 46vw; height: 46vw; right: -10vw; top: 4vh;
  background: radial-gradient(circle, rgba(168,85,247,.18), transparent 66%); animation-delay: -10s; }
.aurora .a3 { width: 58vw; height: 58vw; left: 24vw; top: 62vh;
  background: radial-gradient(circle, rgba(92,108,255,.13), transparent 66%); animation-delay: -18s; }
@keyframes drift { to { transform: translate3d(5vw, 5vh, 0) scale(1.15); } }

/* Grille discrète : très atténuée depuis l'ajout de la vidéo, dont le maillage
   assure déjà la texture — les deux ensemble surchargeaient l'image. */
.mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .18;
  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: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Barre de progression de lecture */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 100;
  background: var(--grad); box-shadow: 0 0 14px rgba(92,108,255,.8);
}

/* ═══════ STRUCTURE ═══════ */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
main { position: relative; z-index: 2; }

.section { padding: clamp(74px, 11vh, 130px) 0; position: relative; }
.section.tight { padding-top: clamp(44px, 6vh, 70px); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--mut);
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--grad); }

h1, h2, h3 { margin: 0; letter-spacing: -.033em; font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(30px, 4.6vw, 52px); }
h3 { font-size: 19px; letter-spacing: -.02em; }

.sec-sub {
  margin: 20px 0 0; max-width: 62ch; color: var(--mut);
  font-size: clamp(15px, 1.6vw, 17.5px); line-height: 1.68;
}
.grad-txt {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Textes posés directement sur la vidéo : halo sombre invisible à l'œil qui
   garantit la lisibilité sur les zones claires du maillage. Préférable à un
   voile plus opaque, qui ferait perdre l'effet immersif. */
.hero-sub, .sec-sub, .plans-note, .steps-note, .final p,
.kicker, .hero-trust span, h1, h2 {
  text-shadow: 0 1px 14px rgba(5,6,13,.92), 0 0 36px rgba(5,6,13,.75);
}

/* ═══════ BOUTONS ═══════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -12px rgba(92,108,255,.9), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(92,108,255,1); }
.btn-ghost { border-color: var(--line-2); background: rgba(255,255,255,.03); color: var(--txt); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }

/* WhatsApp : sobre pour ne pas voler la vedette au bouton principal, mais avec le
   vert de la marque sur le logo, qui est ce qui rend le canal identifiable. */
.btn-wa {
  border-color: rgba(37,211,102,.35); background: rgba(37,211,102,.10); color: var(--txt);
}
.btn-wa:hover {
  background: rgba(37,211,102,.18); border-color: rgba(37,211,102,.65);
  transform: translateY(-2px); box-shadow: 0 12px 30px -14px rgba(37,211,102,.8);
}
.btn svg.wa { width: 18px; height: 18px; fill: #25d366; stroke: none; }
.btn-big svg.wa { width: 20px; height: 20px; }
.btn-big { padding: 17px 34px; font-size: 16px; }

/* ═══════ NAVIGATION ═══════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px var(--pad);
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
#nav.stuck {
  background: rgba(5,6,13,.78); backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line); padding-top: 11px; padding-bottom: 11px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .word { font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.brand .word b { font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 9px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--mut);
  transition: color .3s, background .3s;
}
.nav-links a:hover { color: var(--txt); background: rgba(255,255,255,.06); }
.nav-right { display: flex; align-items: center; gap: 12px; }

#burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  cursor: pointer; padding: 0; place-content: center;
}
#burger i { display: block; width: 17px; height: 1.8px; background: var(--txt); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s; }
#burger i + i { margin-top: 5px; }
#burger.open i:first-child { transform: translateY(3.4px) rotate(45deg); }
#burger.open i:last-child  { transform: translateY(-3.4px) rotate(-45deg); }

#mobileMenu {
  position: fixed; inset: 68px 0 auto 0; z-index: 59;
  background: rgba(5,6,13,.97); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: grid; gap: 2px; padding: 14px var(--pad) 26px;
  transform: translateY(-115%); transition: transform .5s var(--ease); visibility: hidden;
}
#mobileMenu.open { transform: none; visibility: visible; }
#mobileMenu a { padding: 14px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
#mobileMenu a:last-of-type { border-bottom: 0; }
#mobileMenu .btn { margin-top: 16px; }
#mobileMenu .btn + .btn { margin-top: 10px; }

@media (max-width: 940px) {
  .nav-links, .nav-right .btn { display: none; }
  #burger { display: grid; }
}

/* ═══════ HERO ═══════ */
.hero { padding: clamp(112px, 15vh, 168px) 0 clamp(60px, 8vh, 96px); position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(34px, 5vw, 66px); align-items: center;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 46px; } }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  font-size: 12.5px; color: var(--mut); font-weight: 500; margin-bottom: 26px;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(61,220,151,.7); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); }
}
.pill b { color: var(--txt); font-weight: 600; }

.hero h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
@media (max-width: 1000px) { .hero h1 { font-size: clamp(38px, 6.4vw, 66px); } }
.hero-sub { margin: 26px 0 0; max-width: 54ch; color: var(--mut); font-size: clamp(15.5px, 1.7vw, 18px); line-height: 1.7; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 44px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-trust div { line-height: 1.25; }
.hero-trust b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.hero-trust span { font-size: 12.5px; color: var(--dim); }

/* ─── Maquette navigateur ─── */
.mock-holder { position: relative; perspective: 1400px; }
.mock {
  position: relative; border-radius: var(--r-l); overflow: hidden;
  border: 1px solid var(--line-2); background: #0b0d18;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03);
  transform: rotateY(-7deg) rotateX(3deg) translateZ(0);
  transition: transform .8s var(--ease);
}
.mock-holder:hover .mock { transform: rotateY(-3deg) rotateX(1deg); }
@media (max-width: 1000px) { .mock { transform: none; } }

.mock-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.mock-bar span {
  margin-left: 10px; flex: 1; text-align: center; font-size: 11px; color: var(--dim);
  font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .02em;
  background: rgba(0,0,0,.35); border-radius: 7px; padding: 4px 10px;
}
.mock-body { position: relative; aspect-ratio: 4/3.1; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, #131735, #07080f 62%); container-type: inline-size; }

.mm-nav { position: absolute; top: 5cqw; left: 5cqw; right: 5cqw; display: flex; align-items: center; gap: 2cqw; }
.mm-logo { width: 4cqw; height: 4cqw; border-radius: 1.2cqw; background: var(--grad); margin-right: auto; }
.mm-line { height: 1.1cqw; border-radius: 2px; background: rgba(255,255,255,.16); }
.mm-nav .mm-line { width: 6cqw; }
.mm-btn { width: 12cqw; height: 4cqw; border-radius: 999px; background: var(--grad); }

.mm-hero { position: absolute; left: 5cqw; right: 5cqw; top: 18cqw; }
.mm-h1 { height: 4.4cqw; border-radius: 3px; background: linear-gradient(90deg, #fff, rgba(255,255,255,.45)); margin-bottom: 2.4cqw; }
.mm-h1.w2 { width: 62%; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.mm-p { height: 1.5cqw; border-radius: 2px; background: rgba(255,255,255,.13); margin-bottom: 1.6cqw; }
.mm-p.w1 { width: 88%; } .mm-p.w2 { width: 66%; }
.mm-cta { width: 22cqw; height: 6cqw; border-radius: 999px; background: var(--grad); margin-top: 3cqw;
  box-shadow: 0 6px 22px -8px rgba(92,108,255,.9); }

.mm-cards { position: absolute; left: 5cqw; right: 5cqw; bottom: 5cqw; display: flex; gap: 2.6cqw; }
.mm-card { flex: 1; height: 17cqw; border-radius: 2.4cqw; border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04); position: relative; overflow: hidden; }
.mm-card::before { content: ""; position: absolute; left: 2.2cqw; top: 2.2cqw;
  width: 5cqw; height: 5cqw; border-radius: 1.4cqw; background: var(--grad-soft); border: 1px solid rgba(255,255,255,.12); }
.mm-card::after { content: ""; position: absolute; left: 2.2cqw; right: 2.2cqw; bottom: 3.4cqw;
  height: 1.2cqw; border-radius: 2px; background: rgba(255,255,255,.14); }

/* Balayage lumineux sur la maquette */
.mock-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.09) 48%, transparent 58%);
  transform: translateX(-120%); animation: sheen 6.5s var(--ease) 1.6s infinite;
}
@keyframes sheen { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }

/* Étiquettes flottantes */
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 14px;
  background: rgba(12,14,26,.9); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); box-shadow: 0 22px 44px -20px rgba(0,0,0,.95);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  animation: bob 5.5s ease-in-out infinite;
}
.chip small { display: block; font-size: 10.5px; font-weight: 500; color: var(--dim); letter-spacing: .04em; }
.chip .ring {
  width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  background: conic-gradient(var(--green) calc(var(--v) * 1%), rgba(255,255,255,.1) 0);
  position: relative;
}
.chip .ring::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #0c0e1a; }
.chip .ring span { position: relative; }
.chip.c1 { left: -22px; bottom: 16%; }
.chip.c2 { right: -18px; top: 12%; animation-delay: -2.6s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 560px) { .chip.c1 { left: -8px; } .chip.c2 { right: -6px; } }

/* ═══════ BANDEAU DÉFILANT ═══════ */
.marquee {
  position: relative; z-index: 2; overflow: hidden; padding: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > div { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee span {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--dim);
  text-transform: uppercase; white-space: nowrap;
}
.marquee span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--indigo); opacity: .8; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ═══════ CARTES GÉNÉRIQUES ═══════ */
.card-base {
  position: relative; border-radius: var(--r-l); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  transition: border-color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card-base:hover { border-color: var(--line-2); transform: translateY(-4px);
  box-shadow: 0 40px 80px -44px rgba(0,0,0,.95); }
/* Halo qui suit le curseur */
.card-base::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity .45s var(--ease);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(92,108,255,.14), transparent 70%);
}
.card-base:hover::before { opacity: 1; }

/* ═══════ SERVICES ═══════ */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); margin-top: 52px;
}
@media (max-width: 940px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

.svc { padding: 30px 28px 32px; }
.svc .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-content: center;
  background: var(--grad-soft); border: 1px solid rgba(255,255,255,.12); margin-bottom: 22px;
  position: relative;
}
.svc .ico svg { width: 22px; height: 22px; fill: none; stroke: url(#icoGrad); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { margin-bottom: 10px; }
.svc p { margin: 0; color: var(--mut); font-size: 14.5px; line-height: 1.62; }
.svc ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 7px; }
.svc li { font-size: 13px; color: var(--dim); display: flex; align-items: flex-start; gap: 8px; }
.svc li::before { content: "✓"; color: var(--indigo); font-weight: 700; font-size: 12px; line-height: 1.5; }

/* ═══════ RÉALISATIONS ═══════ */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.2vw, 26px); margin-top: 52px; }
@media (max-width: 860px) { .works { grid-template-columns: 1fr; } }

.work { display: block; }
/* Vignette = capture réelle du site, en 16/10 comme les fichiers source */
.thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #0b0d18; }
.thumb .scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .9s var(--ease);
}
.work:hover .thumb .scene { transform: scale(1.045); }
/* Fond le haut de la capture dans la carte, sans masquer le contenu */
.thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(5,6,13,.55) 100%);
}

.work-body { padding: 22px 24px 26px; position: relative; }
.work-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .17em; color: var(--dim); font-weight: 600; margin: 0; }
.work-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.work-name { font-size: clamp(19px, 2.3vw, 24px); font-weight: 800; letter-spacing: -.025em; }
.work-arrow {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-content: center;
  transition: transform .45s var(--ease), background .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease);
}
.work:hover .work-arrow { background: var(--grad); border-color: transparent; color: #fff; transform: rotate(-45deg); }
.work-arrow svg { width: 17px; height: 17px; }
.work-desc { margin: 12px 0 0; color: var(--mut); font-size: 14px; line-height: 1.6; max-width: 46ch; }
.work-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12.5px; color: var(--dim); }
.work-foot .live { display: inline-flex; align-items: center; gap: 7px; color: var(--mut); }
.work-foot .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.work-foot .url { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; }
.work-foot .sep { opacity: .4; }

.more-works { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.more-works span {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 12.5px; color: var(--mut); background: rgba(255,255,255,.02);
}
.more-works span b { color: var(--txt); font-weight: 600; }


/* ═══════ MÉTHODE ═══════ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 22px); margin-top: 56px; position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px 24px 30px; }
.step .num {
  display: inline-grid; place-content: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 20px; box-shadow: 0 10px 26px -12px rgba(92,108,255,.9);
}
.step h3 { margin-bottom: 9px; }
.step p { margin: 0; color: var(--mut); font-size: 14px; line-height: 1.6; }
.step .when { display: block; margin-top: 14px; font-size: 11.5px; color: var(--dim);
  font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .02em; }
.steps-note { margin: 26px 0 0; font-size: 13.5px; color: var(--dim); max-width: 70ch; line-height: 1.6; }

/* ═══════ COMPARATIF ═══════ */
.compare-wrap { margin-top: 52px; overflow-x: auto; border-radius: var(--r-l); border: 1px solid var(--line); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--panel); }
.compare th, .compare td { padding: 17px 22px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-weight: 600;
  background: rgba(255,255,255,.02); }
.compare thead th.hi { color: var(--txt); }
.compare tbody th { font-weight: 600; color: var(--txt); }
.compare td { color: var(--mut); }
.compare .col-us { background: linear-gradient(180deg, rgba(92,108,255,.10), rgba(168,85,247,.06)); color: var(--txt); font-weight: 600; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: #6f7789; }

/* ═══════ TARIFS ═══════ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); margin-top: 54px; align-items: start; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.plan { padding: 32px 30px 34px; display: flex; flex-direction: column; height: 100%; }
.plan.featured { border-color: rgba(92,108,255,.45);
  background: linear-gradient(180deg, rgba(30,34,72,.78), rgba(10,12,24,.7)); }
.plan.featured::after {
  content: "Le plus choisi"; position: absolute; top: 18px; right: 18px;
  padding: 5px 12px; border-radius: 999px; background: var(--grad); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.plan .p-name { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.plan .p-devis {
  display: inline-flex; align-items: center; gap: 9px; margin: 18px 0 16px;
  align-self: flex-start; /* sans quoi l'étirement flex transforme la pastille en barre */
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(92,108,255,.4); background: var(--grad-soft);
  font-size: 15px; font-weight: 700; letter-spacing: -.015em; color: var(--txt);
}
.plan .p-devis::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 10px rgba(92,108,255,.9);
}
.plan .p-note { margin: 0 0 22px; font-size: 13px; color: var(--dim); }
.plan ul { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--mut); line-height: 1.5; }
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; stroke: var(--indigo); stroke-width: 2.4; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }
.plan .btn { margin-top: auto; width: 100%; }
.plans-note { margin: 26px 0 0; font-size: 13px; color: var(--dim); text-align: center; }

/* ═══════ GARANTIES ═══════ */
.guards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 20px); margin-top: 50px; }
@media (max-width: 900px) { .guards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .guards { grid-template-columns: 1fr; } }
.guard { padding: 26px 22px 28px; }
.guard svg { width: 26px; height: 26px; stroke: url(#icoGrad); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.guard h3 { font-size: 16px; margin-bottom: 8px; }
.guard p { margin: 0; font-size: 13.5px; color: var(--mut); line-height: 1.55; }

/* ═══════ FAQ ═══════ */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-size: clamp(16px, 1.9vw, 18px); font-weight: 600; letter-spacing: -.015em;
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 13px;
  border-right: 2px solid var(--mut); border-bottom: 2px solid var(--mut); border-radius: 2px;
  transform: translateY(-70%) rotate(45deg); transition: transform .4s var(--ease), border-color .3s;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); border-color: var(--indigo); }
.faq .answer { padding: 0 60px 26px 0; color: var(--mut); font-size: 15px; line-height: 1.7; margin: 0; }
.faq .answer a { color: var(--txt); border-bottom: 1px solid var(--line-2); }

/* ═══════ CONTACT ═══════ */
.contact-panel {
  position: relative; z-index: 2; margin-top: 10px;
  border-radius: clamp(22px, 3vw, 34px); border: 1px solid var(--line-2); overflow: hidden;
  background: linear-gradient(150deg, rgba(20,40,86,.72), rgba(45,24,80,.68) 55%, rgba(10,12,24,.7));
  box-shadow: 0 60px 120px -60px rgba(0,0,0,.95);
}
.contact-grid { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-left { padding: clamp(34px, 4.4vw, 56px); border-right: 1px solid var(--line); }
@media (max-width: 900px) { .contact-left { border-right: 0; border-bottom: 1px solid var(--line); } }
.contact-left h2 { font-size: clamp(28px, 3.6vw, 42px); }
.contact-left p { color: var(--mut); font-size: 15.5px; line-height: 1.7; margin: 18px 0 0; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 14.5px; }
.contact-list svg { width: 19px; height: 19px; flex: none; margin-top: 3px; stroke: url(#icoGrad); fill: none; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; }
/* Le logo WhatsApp est une forme pleine, pas un tracé : il faut inverser fill et stroke */
.contact-list svg.plein { fill: url(#icoGrad); stroke: none; }
.contact-list b { display: block; font-weight: 600; }
.contact-list span { color: var(--dim); font-size: 13px; }
/* Bloc, pas inline-block : sinon la légende qui suit remonte sur la même ligne
   que le numéro ou l'adresse. */
.contact-list a { display: block; transition: color .3s; }
.contact-list a:hover b { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.contact-right { padding: clamp(34px, 4.4vw, 56px); background: rgba(5,6,13,.72); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--mut); margin-bottom: 9px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: var(--r-s);
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--txt);
  font-family: inherit; font-size: 15px; transition: border-color .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input::placeholder, .field textarea::placeholder { color: #59627a; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: rgba(92,108,255,.7); background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 4px rgba(92,108,255,.12);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2399a1b8' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.field select option { background: #0b0d18; color: var(--txt); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.form-foot .btn { flex: 1; min-width: 200px; }
.form-note { font-size: 12px; color: var(--dim); line-height: 1.5; }

/* ═══════ CTA FINAL ═══════ */
.final { text-align: center; padding: clamp(70px, 10vh, 120px) 0 clamp(50px, 7vh, 90px); }
.final h2 { font-size: clamp(30px, 5.2vw, 58px); }
.final p { margin: 20px auto 0; max-width: 52ch; color: var(--mut); font-size: 16.5px; }
.final .btns { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 36px; }

/* ═══════ PIED DE PAGE ═══════ */
footer { position: relative; z-index: 2; border-top: 1px solid var(--line); background: rgba(5,6,13,.6); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding: clamp(46px, 6vh, 70px) 0 44px; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; gap: 26px; } }
.foot-brand p { margin: 18px 0 0; color: var(--mut); font-size: 14px; line-height: 1.65; max-width: 34ch; }
.foot-col h4 { margin: 0 0 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.foot-col a, .foot-col span { display: block; font-size: 14px; color: var(--mut); padding: 5px 0; transition: color .3s; }
.foot-col a:hover { color: var(--txt); }
/* Ligne d'identification légale (obligatoire, doit rester lisible) */
.foot-legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0;
  padding: 20px 0 4px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--mut); line-height: 1.5;
}
/* Surtout pas d'inline-flex ici : chaque mot deviendrait un élément flex
   et les espaces entre eux seraient supprimés (« SIREN839 511 169 »). */
.foot-legal span + span::before {
  content: "·"; margin: 0 12px; color: var(--dim); opacity: .7;
}
.foot-legal b { color: var(--txt); font-weight: 600; }
.foot-legal a { transition: color .3s; }
.foot-legal a:hover { color: var(--txt); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .foot-legal { display: grid; gap: 6px; }
  .foot-legal span + span::before { content: none; }
}

.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 0 34px; border-top: 0; font-size: 12.5px; color: var(--dim);
}
.foot-bottom a:hover { color: var(--txt); }
.to-top { display: inline-flex; align-items: center; gap: 8px; }

/* ═══════ PAGE MENTIONS LÉGALES ═══════ */
.legal-page { position: relative; z-index: 2; padding: clamp(110px, 16vh, 160px) 0 90px; }
.legal-page .wrap { max-width: 780px; }
.legal-page h1 { font-size: clamp(32px, 5vw, 52px); }
.legal-page h2 { font-size: clamp(19px, 2.2vw, 23px); margin: 46px 0 14px; }
.legal-page p { color: var(--mut); font-size: 15.5px; line-height: 1.75; margin: 0 0 16px; }
.legal-page a { color: var(--txt); border-bottom: 1px solid var(--line-2); }
.legal-date { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px !important;
  color: var(--dim) !important; margin-top: 16px !important; }
.legal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.legal-list li { font-size: 15px; color: var(--mut); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.legal-list li:last-child { border-bottom: 0; }
.legal-list b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); font-weight: 600; margin-bottom: 4px; }
.legal-back { margin-top: 54px !important; }
.legal-back a { border-bottom: 0; }

/* ═══════ ANIMATIONS D'APPARITION ═══════ */
.reveal {
  opacity: 0; transform: translateY(26px); filter: blur(5px);
  transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .mock { transform: none; }
  /* Le visiteur a demandé moins de mouvement : l'image fixe du conteneur suffit */
  .bg-video video { display: none; }
}
