/* ==========================================================================
   RecOffensive — v2 « plaquette numérique »
   Reprend la mise en page de la plaquette commerciale : fond noir texturé,
   bande de circuit rouge à gauche, titres larges blancs cerclés de rouge,
   sous-titres soulignés rouges, texte justifié.
   ========================================================================== */

:root {
  --red: #ac1b1b;          /* rouge du logo */
  --red-bright: #e3262b;   /* rouge des liserés / halos */
  --bg: #030303;
  --text: #f1f1f1;
  --muted: #a8a8a8;
  --line: rgba(227, 38, 43, 0.4);
  /* Titres : Oxanium (OFL, libre) — grasse et anguleuse comme la police TESLA de
     la plaquette, mais lisible. Autres choix testés : propositions/polices-titres.html */
  --font-title: "Oxanium Variable", "Oxanium", "Bruno Ace SC", "Segoe UI", sans-serif;
  /* Menus, boutons, numéros : Bruno Ace SC (OFL, libre), plus lisible en petit */
  --font-ui: "Bruno Ace SC", "Segoe UI", sans-serif;
  /* Texte courant : Carlito = clone libre de Calibri (police de la plaquette) */
  --font-body: "Carlito", "Calibri", "Segoe UI", system-ui, sans-serif;
  --header-h: 78px;
  --strip-w: clamp(84px, 21vw, 330px);
  --sheet: 860px;
  --fade: clamp(140px, 22vh, 260px);   /* longueur des fondus entre sections */
  /* Couverture : hauteur des zones de circuit (haut / bas) et marge avec le logo */
  --band-h: clamp(130px, 19vh, 300px);
  /* Accueil : la bande du haut est abaissée pour laisser respirer le menu de navigation */
  --home-band-top: 40px;
  /* Logo de la couverture, nettement plus grand que le sous-titre */
  --logo-w: min(720px, 84vw);
  /* Circuits latéraux : largeur = place libre à côté du logo (jamais de chevauchement),
     limitée pour tenir entre les deux bandes */
  --side-w: min(calc((100vw - var(--logo-w)) / 2 - 40px), calc((100vh - 2 * var(--band-h)) * 0.8), 520px);
  --band-gap: clamp(18px, 3vh, 40px);
  /* Courant électrique : rouge soutenu mais sombre, jamais flashy */
  --volt-soft: rgba(120, 14, 18, 0.55);
  --volt: rgba(205, 34, 40, 0.95);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(120, 10, 10, 0.22), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.14rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: #ff5a5e; text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--red); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typographie « plaquette » ---------- */


/* Titres : blanc, fin liseré rouge + halo (comme « Audit de Reconnaissance ») */
.tt {
  font-family: var(--font-title);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 0 0.9em;
  text-shadow:
    1px 0 0 var(--red), -1px 0 0 var(--red), 0 1px 0 var(--red), 0 -1px 0 var(--red),
    0 0 6px rgba(227, 38, 43, 0.9),
    0 0 18px rgba(227, 38, 43, 0.45);
}
.tt--xl { font-size: clamp(1.8rem, 4.6vw, 3.1rem); }
.tt--l  { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.tt--m  { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.tt--left { text-align: left; }

/* Sous-titre : gras blanc, souligné rouge, halo rouge (« Cartographie de l'Infrastructure ») */
.sub {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.3;
  color: #fff;
  margin: 1.6em 0 0.35em 2.2em;
  padding-bottom: 1px;
  border-bottom: 2px solid var(--red-bright);
  text-shadow: 0 0 6px rgba(227, 38, 43, 0.85), 0 0 14px rgba(227, 38, 43, 0.4);
}

.sheet p,
.just { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.sheet p { margin: 0 0 0.9em; }

.lead { font-size: 1.25rem; color: #e6e6e6; }
.muted { color: var(--muted); }
.center { text-align: center !important; }

/* Puces de la plaquette */
.bullets { list-style: none; margin: 0; padding: 0 0 0 2.2em; }
.bullets li { position: relative; padding-left: 1.8em; margin-bottom: 0.55em; text-align: left; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(227, 38, 43, 0.35), 0 0 8px var(--red-bright);
}
.bullets strong { color: #fff; }

/* Séparateur façon piste de circuit */
.trace {
  position: relative; height: 14px; margin: 3.2rem auto; max-width: 520px;
  background: linear-gradient(var(--red-bright), var(--red-bright)) center / 100% 2px no-repeat;
  opacity: 0.85;
}
.trace::before,
.trace::after {
  content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; border: 2px solid var(--red-bright); background: var(--bg);
  box-shadow: 0 0 10px rgba(227, 38, 43, 0.8);
}
.trace::before { left: -6px; }
.trace::after { right: -6px; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red-bright);
  padding: 1em 1.7em;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.2s, filter 0.2s;
}
.btn:hover { color: #fff; background: var(--red-bright); filter: drop-shadow(0 0 12px rgba(227, 38, 43, 0.7)); }
.btn--ghost { background: rgba(0, 0, 0, 0.55); }
.btn--ghost:hover { background: rgba(172, 27, 27, 0.6); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 2rem; }

/* ---------- En-tête ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.7));
  border-bottom: 1px solid rgba(227, 38, 43, 0.35);
  transition: background 0.3s;
}
.site-header.is-scrolled { background: rgba(0, 0, 0, 0.96); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }

.brand img { height: 48px; width: auto; }
.brand { transition: opacity 0.35s, transform 0.35s, visibility 0.35s; }

/* Accueil : tant que le grand logo de la couverture est visible, le bandeau est
   transparent et sans logo (évite le doublon) ; il réapparaît au défilement. */
.home .site-header:not(.show-brand) { background: transparent; border-bottom-color: transparent; }
.home .site-header:not(.show-brand) .brand { opacity: 0; visibility: hidden; transform: translateY(-8px); }
.home.nav-open .site-header .brand { opacity: 1; visibility: visible; transform: none; }

.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav__link,
.nav__toggle {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--text);
  background: none; border: 0; cursor: pointer;
  padding: 10px 13px;
  position: relative;
}
.nav__link::after,
.nav__toggle::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px;
  background: var(--red-bright); box-shadow: 0 0 8px var(--red-bright);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.nav__link:hover, .nav__toggle:hover, .nav__link.is-active, .nav__toggle.is-active { color: #fff; }
.nav__link:hover::after, .nav__toggle:hover::after, .nav__link.is-active::after, .nav__toggle.is-active::after { transform: scaleX(1); }
.nav__toggle svg { width: 10px; height: 10px; transition: transform 0.2s; }
.nav__item--cta .nav__link { border: 1px solid var(--red-bright); margin-left: 10px; background: rgba(172, 27, 27, 0.35); }
.nav__item--cta .nav__link::after { display: none; }
.nav__item--cta .nav__link:hover { background: var(--red); }

.has-sub { position: relative; }
.subnav {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 300px;
  list-style: none; margin: 0; padding: 10px;
  background: rgba(5, 5, 5, 0.98);
  border: 1px solid var(--line); border-left: 3px solid var(--red-bright);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.subnav a { display: block; padding: 9px 12px; color: var(--text); font-size: 1.02rem; }
.subnav a:hover, .subnav a.is-active { background: rgba(172, 27, 27, 0.25); color: #fff; }
.subnav .subnav__ext { color: #ff5a5e; border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 4px; }
.subnav .subnav__all { font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.08em; color: #ff5a5e; }

@media (hover: hover) and (min-width: 1025px) {
  .has-sub:hover > .subnav { opacity: 1; visibility: visible; transform: none; }
}
.has-sub.is-open > .subnav { opacity: 1; visibility: visible; transform: none; }
.has-sub.is-open > .nav__toggle svg { transform: rotate(180deg); }

.burger { display: none; width: 46px; height: 46px; padding: 12px; background: none; border: 1px solid var(--line); cursor: pointer; }
.burger span { display: block; height: 2px; background: #fff; margin: 4px 0; transition: transform 0.25s, opacity 0.25s; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(3, 3, 3, 0.98); overflow-y: auto; padding: 20px 16px 40px;
    transform: translateX(100%); transition: transform 0.3s;
  }
  .nav-open .nav { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .nav__link, .nav__toggle { width: 100%; justify-content: space-between; padding: 16px 6px; font-size: 0.85rem; }
  .nav__link::after, .nav__toggle::after { display: none; }
  .subnav {
    position: static; min-width: 0; box-shadow: none; border: 0; border-left: 2px solid var(--red);
    background: transparent; padding: 0 0 10px 10px; display: none; opacity: 1; visibility: visible; transform: none;
  }
  .has-sub.is-open > .subnav { display: block; }
  .nav__item--cta { border-bottom: 0 !important; margin-top: 20px; }
  .nav__item--cta .nav__link { margin: 0; justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Couverture (accueil) : page 1 de la plaquette ---------- */

.cover {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  /* Logo et textes placés ENTRE les zones de circuit du haut et du bas : aucun chevauchement possible */
  padding: calc(var(--band-h) + var(--band-gap)) 16px;
  /* Bandes de circuit « rongé » de la plaquette, assombries, qui encadrent le logo en haut et en bas.
     Les pistes horizontales sont prolongées de part et d'autre : la bande couvre toute la largeur,
     même sur un écran très large (jusqu'à ~12 × la hauteur de bande). */
  background-color: var(--bg);
  background-image: url("../img/circuit-band-top.webp?v=2"), url("../img/circuit-band-bottom.webp");
  background-position: center top, center bottom;
  background-size: auto var(--band-h);
  background-repeat: no-repeat;
  isolation: isolate; overflow: hidden;
}
.cover__logo { width: var(--logo-w); height: auto; margin: 0 auto 1.2rem; }
.cover .btn-row { margin-top: 1.4rem; }
.cover__tagline { margin-bottom: 0.7rem; }
.cover .lead { max-width: 60ch; margin: 0 auto; text-align: center; }

.cover--home {
  padding-top: calc(var(--home-band-top) + var(--band-h) + var(--band-gap));
  background-position: center var(--home-band-top), center bottom;
}
.cover.cover--home .current {
  -webkit-mask-position: center var(--home-band-top), center bottom;
          mask-position: center var(--home-band-top), center bottom;
}
@media (min-width: 1000px) {
  .cover--home {
    background-image: url("../img/circuit-band-top.webp?v=2"), url("../img/circuit-band-bottom.webp"),
                      url("../img/circuit-side-left.webp"), url("../img/circuit-side-right.webp");
    background-position: center var(--home-band-top), center bottom, left center, right center;
    background-size: auto var(--band-h), auto var(--band-h), var(--side-w) auto, var(--side-w) auto;
  }
  .cover.cover--home .current {
    -webkit-mask-image: url("../img/circuit-band-top-mask.webp?v=2"), url("../img/circuit-band-bottom-mask.webp"),
                        url("../img/circuit-side-left-mask.webp"), url("../img/circuit-side-right-mask.webp");
            mask-image: url("../img/circuit-band-top-mask.webp?v=2"), url("../img/circuit-band-bottom-mask.webp"),
                        url("../img/circuit-side-left-mask.webp"), url("../img/circuit-side-right-mask.webp");
    -webkit-mask-position: center var(--home-band-top), center bottom, left center, right center;
            mask-position: center var(--home-band-top), center bottom, left center, right center;
    -webkit-mask-size: auto var(--band-h), auto var(--band-h), var(--side-w) auto, var(--side-w) auto;
            mask-size: auto var(--band-h), auto var(--band-h), var(--side-w) auto, var(--side-w) auto;
  }
}

/* Fiches service, pages Audits / Tests d'intrusion / OSINT : même en-tête que l'accueil,
   bandes de circuit en haut et en bas, titre encadré au centre */
.cover--page {
  --band-h: clamp(110px, 18vh, 230px);
  min-height: 0;
  /* la bande du haut démarre SOUS la barre de navigation : menu et logo restent sur fond noir */
  padding-top: calc(var(--header-h) + var(--band-h) + var(--band-gap));
  background-position: center var(--header-h), center bottom;
}
.cover.cover--page .current {
  -webkit-mask-position: center var(--header-h), center bottom;
          mask-position: center var(--header-h), center bottom;
}
/* page Contact : la puce de contact au centre de l'encadrement */
.cover--page .chip { width: min(380px, 86vw); margin: 1rem auto 0; }
.cover--page .breadcrumb { margin-bottom: 1rem; }
.cover--page h1 { margin: 0; }
.cover--page + .page .sheet { padding-top: 40px; }
/* menu posé directement sur le circuit, comme sur l'accueil */
.has-cover .site-header:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; }

/* ---------- Courant électrique dans les pistes ----------
   Une onde lumineuse se déplace derrière un masque découpé dans les pistes elles-mêmes
   (images *-mask.webp, calées exactement comme le décor) : la lumière n'apparaît que sur le cuivre. */

.current, .strip-current { position: absolute; overflow: hidden; pointer-events: none; }
.current::before, .current::after,
.strip-current::before, .strip-current::after { content: ""; position: absolute; will-change: transform; }

.cover .current {
  inset: 0; z-index: -1;
  -webkit-mask-image: url("../img/circuit-band-top-mask.webp?v=2"), url("../img/circuit-band-bottom-mask.webp");
          mask-image: url("../img/circuit-band-top-mask.webp?v=2"), url("../img/circuit-band-bottom-mask.webp");
  -webkit-mask-position: center top, center bottom; mask-position: center top, center bottom;
  -webkit-mask-size: auto var(--band-h); mask-size: auto var(--band-h);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.cover .current::before { /* onde principale, de gauche à droite : front net, traînée douce */
  top: 0; bottom: 0; left: -1400px; width: calc(100% + 1400px);
  background: repeating-linear-gradient(90deg, transparent 0 820px, var(--volt-soft) 1180px, var(--volt) 1290px, transparent 1320px, transparent 1400px);
  animation: flow-x 6.5s linear infinite;
}
.cover .current::after { /* onde secondaire, plus lente et plus faible, en sens inverse */
  top: 0; bottom: 0; left: 0; width: calc(100% + 1900px); opacity: 0.6;
  background: repeating-linear-gradient(270deg, transparent 0 1500px, var(--volt-soft) 1800px, var(--volt) 1880px, transparent 1900px);
  animation: flow-x-rev 11s linear infinite;
}
@keyframes flow-x { to { transform: translateX(1400px); } }
@keyframes flow-x-rev { to { transform: translateX(-1900px); } }
@keyframes flow-y { to { transform: translateY(1000px); } }
@keyframes flow-y-rev { to { transform: translateY(-1600px); } }
@keyframes flow-diag { to { transform: translateX(1980px); } } /* 1400 px × √2 : boucle sans saut */

/* ---------- Pages intérieures : page de plaquette avec bande de circuit ---------- */

.page { position: relative; isolation: isolate; }
.page::before,
.page > .strip-current { top: 0; bottom: 0; left: 0; width: calc(var(--strip-w) + 120px); }
.page::before {
  /* Bande de circuit de la plaquette, assombrie, répétée sans raccord sur toute la hauteur */
  content: ""; position: absolute; z-index: -2;
  background: url("../img/circuit-strip-dark.webp") left top / 100% auto repeat-y;
  /* Fondu vers la droite + apparition/disparition progressive en haut et en bas */
  -webkit-mask-image:
    linear-gradient(to right, #000 55%, transparent),
    linear-gradient(to bottom, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, #000 55%, transparent),
    linear-gradient(to bottom, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
          mask-composite: intersect;
}
.page > .strip-current {
  z-index: -1;
  /* pistes (calées sur la bande) × mêmes fondus que la bande */
  -webkit-mask-image:
    url("../img/circuit-strip-mask.webp"),
    linear-gradient(to right, #000 55%, transparent),
    linear-gradient(to bottom, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  -webkit-mask-size: 100% auto, 100% 100%, 100% 100%;
  -webkit-mask-repeat: repeat-y, no-repeat, no-repeat;
  -webkit-mask-composite: source-in;
          mask-image:
    url("../img/circuit-strip-mask.webp"),
    linear-gradient(to right, #000 55%, transparent),
    linear-gradient(to bottom, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
          mask-size: 100% auto, 100% 100%, 100% 100%;
          mask-repeat: repeat-y, no-repeat, no-repeat;
          mask-composite: intersect;
}
/* le courant descend le long des pistes ; période fixe => même vitesse quelle que soit la hauteur de page */
.page > .strip-current::before {
  left: 0; right: 0; top: -1000px; height: calc(100% + 1000px);
  background: repeating-linear-gradient(180deg, transparent 0 620px, var(--volt-soft) 880px, var(--volt) 975px, transparent 1000px);
  animation: flow-y 7s linear infinite;
}
.page > .strip-current::after {
  left: 0; right: 0; top: 0; height: calc(100% + 1600px); opacity: 0.55;
  background: repeating-linear-gradient(0deg, transparent 0 1250px, var(--volt-soft) 1520px, var(--volt) 1585px, transparent 1600px);
  animation: flow-y-rev 13s linear infinite;
}
.page--corners::after {
  content: ""; position: absolute; top: 0; right: 0; z-index: -2;
  width: min(560px, 45vw); aspect-ratio: 800 / 973;
  background: url("../img/circuit-contact-tr.webp") right top / contain no-repeat;
  opacity: 0.85; pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent, #000 var(--fade)),
    linear-gradient(to left, #000 60%, transparent);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to bottom, transparent, #000 var(--fade)),
    linear-gradient(to left, #000 60%, transparent);
          mask-composite: intersect;
}

.sheet {
  max-width: var(--sheet);
  /* Centré sur l'écran ; décalé à droite uniquement si la bande de circuit le chevaucherait */
  margin-left: max(var(--strip-w), (100% - var(--sheet)) / 2);
  margin-right: auto;
  padding: calc(var(--header-h) + 56px) 28px 90px;
}
.sheet > section { margin-bottom: 3.6rem; }
.sheet > section:last-child { margin-bottom: 0; }

.breadcrumb { font-size: 0.92rem; color: var(--muted); text-align: center; margin-bottom: 1.6rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-hidden] { margin: 0 8px; color: var(--red-bright); }

.report {
  position: relative; padding: 1.6rem 1.8rem 1rem; margin-top: 0.5rem;
  border: 1px solid var(--line); background: rgba(80, 6, 6, 0.22);
}
.report::before,
.report::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--red-bright);
}
.report::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.report::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

/* ---------- Sommaire des services (accueil + pages catégorie) ---------- */

.toc { display: grid; gap: 3rem; }
.toc__group h3 { margin-bottom: 1.2rem; }
.toc__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.toc__list li { border-bottom: 1px solid var(--line); }
.toc__list a {
  position: relative; display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 0 1rem; align-items: center;
  padding: 1.15rem 0.6rem; color: var(--text); transition: background 0.2s;
}
.toc__list a:hover { background: linear-gradient(90deg, rgba(172, 27, 27, 0.32), transparent); }
.toc__num { font-family: var(--font-ui); color: var(--red-bright); font-size: 1.05rem; text-shadow: 0 0 8px rgba(227, 38, 43, 0.7); }
.toc__title { font-weight: 700; font-size: 1.22rem; color: #fff; }
.toc__desc { grid-column: 2; color: var(--muted); font-size: 1.02rem; line-height: 1.5; }
.toc__arrow {
  grid-row: 1 / span 2; grid-column: 3;
  width: 34px; height: 34px; border: 1px solid var(--red-bright); border-radius: 50%;
  display: grid; place-items: center; color: var(--red-bright); transition: background 0.2s, color 0.2s;
}
.toc__list a:hover .toc__arrow { background: var(--red-bright); color: #fff; box-shadow: 0 0 12px var(--red-bright); }

/* Étapes de la démarche */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 1.6rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; align-items: start; }
.steps li::before {
  content: "0" counter(s);
  font-family: var(--font-ui); font-size: 1.5rem; color: #fff; text-align: center; line-height: 1;
  padding: 0.55rem 0; border: 1px solid var(--red-bright);
  text-shadow: 0 0 8px var(--red-bright); box-shadow: inset 0 0 12px rgba(227, 38, 43, 0.35);
}
.steps b { display: block; color: #fff; font-size: 1.2rem; }
.steps p { margin: 0; }

/* Navigation entre fiches */
.more-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; margin-top: 1.4rem; }
.more-services a {
  display: block; padding: 0.8rem 1rem; color: var(--text); font-size: 1.02rem;
  border: 1px solid rgba(255, 255, 255, 0.1); border-left: 3px solid var(--red);
  background: rgba(0, 0, 0, 0.5);
}
.more-services a:hover { border-left-color: var(--red-bright); background: rgba(172, 27, 27, 0.25); color: #fff; }

/* ---------- 4e de couverture : puce + contact ---------- */

.backcover {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 40px) 16px 60px;
  /* coins de circuit de la 4e de couverture, assombris */
  background-color: var(--bg);
  background-image: url("../img/circuit-contact-tr.webp"), url("../img/circuit-contact-bl.webp");
  background-position: right top, left bottom;
  background-size: auto 70%;
  background-repeat: no-repeat;
  isolation: isolate; overflow: hidden;
}
.backcover::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--bg), transparent calc(var(--fade) * 0.6)),
    linear-gradient(to top, var(--bg), transparent calc(var(--fade) * 0.6));
}
.backcover .current {
  inset: 0; z-index: -2;
  -webkit-mask-image: url("../img/circuit-contact-tr-mask.webp"), url("../img/circuit-contact-bl-mask.webp");
          mask-image: url("../img/circuit-contact-tr-mask.webp"), url("../img/circuit-contact-bl-mask.webp");
  -webkit-mask-position: right top, left bottom; mask-position: right top, left bottom;
  -webkit-mask-size: auto 70%; mask-size: auto 70%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.backcover .current::before { /* les pistes des coins sont en diagonale : le courant aussi */
  top: 0; bottom: 0; left: -1980px; width: calc(100% + 1980px);
  background: repeating-linear-gradient(45deg, transparent 0 1000px, var(--volt-soft) 1290px, var(--volt) 1380px, transparent 1400px);
  animation: flow-diag 8s linear infinite;
}
.backcover--compact { min-height: 0; padding: calc(var(--fade) * 0.6) 16px; }
.chip {
  width: min(500px, 92vw); aspect-ratio: 1;
  background: url("../img/chip-dark.webp") center / contain no-repeat;
  display: grid; place-items: center; text-align: center;
}
.chip__inner { width: 62%; }
.chip__inner img { width: 100%; height: auto; margin: 0 auto 1.3rem; }
.chip__inner a { display: block; color: #fff; font-size: clamp(1rem, 2.8vw, 1.35rem); line-height: 1.9; }
.chip__inner a:hover { color: #ffb3b5; text-shadow: 0 0 10px var(--red-bright); }
.chip__inner .btn { margin-top: 0.8rem; font-size: 0.7rem; padding: 0.8em 1.2em; display: inline-flex; line-height: 1.2; }

.form { display: grid; gap: 16px; margin-top: 1rem; }
.form label { display: grid; gap: 6px; font-size: 1rem; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1.05rem; color: var(--text);
  background: rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 11px 14px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(227, 38, 43, 0.25), 0 0 14px rgba(227, 38, 43, 0.35); }
.form textarea { min-height: 150px; resize: vertical; }
.form .row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form__note { font-size: 0.95rem; color: var(--muted); margin: 0; text-align: left !important; }
.form .btn { justify-self: start; }

.todo { background: rgba(227, 38, 43, 0.18); border: 1px dashed var(--red-bright); padding: 0 6px; }

/* ---------- Pied de page ---------- */

/* Pas de bandeau : simple lien discret vers les mentions légales, sur le fond de la page */
.site-footer { text-align: center; padding: 6px 16px 22px; }
.site-footer a { font-size: 0.85rem; color: #6f6f6f; }
.site-footer a:hover { color: #fff; }

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
  body { font-size: 1.08rem; }
  :root { --strip-w: 46px; }
  .page::before, .page > .strip-current { width: 110px; }
  .page::before { opacity: 0.85; }
  .sheet { padding-left: 14px; padding-right: 16px; }
  .sub { margin-left: 0; }
  .bullets { padding-left: 0.4em; }
  .sheet p, .just { text-align: left; }
  .toc__list a { grid-template-columns: 2.4rem 1fr auto; }
}

/* ---------- Apparition progressive ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .current, .strip-current { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
