/* Aegis Concept — feuille de style unique.
   Sommaire : 1 polices et jetons · 2 base · 3 logo · 4 boutons · 5 en-tête · 6 intro · 7 accueil
   8 à propos · 9 services · 10 réalisations · 11 contact · 12 pied · 13 visionneuse · 14 mode calme */

/* ---------- 1. Polices et jetons ---------- */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/big-shoulders-display.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans.woff2") format("woff2");
}

:root {
  --navy: #00102a;      /* bleu nuit de la marque */
  --deep: #000816;      /* espace profond */
  --blue: #0b2452;      /* bleu de surface */
  --red: #d73327;       /* rouge de la marque */
  --red-ink: #c22a1f;   /* rouge pour petit texte sur fond clair */
  --flare: #ff5b3a;     /* rouge lumineux pour petit texte sur fond sombre */
  --ice: #eef3fb;
  --mist: #a3b4cf;
  --paper: #f2f4f8;
  --ink: #00102a;
  --ink-2: #44536e;
  --line: rgba(238, 243, 251, 0.16);
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gut: clamp(20px, 5vw, 64px);
  --bar: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* la section visée arrive juste sous l'en-tête, sans liseré de la section précédente */
  scroll-padding-top: calc(var(--bar) - 1px);
  background: var(--deep);
}
/* doux seulement une fois la page chargée : un lien direct vers #contact arrive sans glisser */
html.motion.is-settled {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--deep);
  color: var(--ice);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible { outline: 2px solid var(--braise); outline-offset: 3px; }
.services :focus-visible { outline-color: var(--ink); }

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
img,
svg,
canvas,
picture {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--flare);
  outline-offset: 3px;
}
::selection {
  background: var(--red);
  color: #fff;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.wrap {
  width: min(1240px, 100% - 2 * var(--gut));
  margin-inline: auto;
}
.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
.h2 {
  font: 800 clamp(2.5rem, 5.8vw, 5.2rem) / 0.9 var(--display);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
main > section {
  position: relative;
  z-index: 1;
}

/* scène 3D : fixe derrière la page, visible à travers l'accueil et le contact */
.stage {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease;
}
.has-3d .stage {
  opacity: 1;
}

/* ---------- 3. Logo (pièces du sprite) ---------- */
.lg-arc {
  fill: currentColor;
}
.lg-red,
.lg-dot {
  fill: var(--red);
}
.lg-halo {
  fill: var(--red);
  opacity: 0.38;
}
.lg-tr,
.in-tr {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lg-dash,
.in-dash {
  stroke-dasharray: 0.1 3.4;
}
.ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-node {
  fill: var(--red);
  stroke: none;
}
.fill {
  fill: currentColor;
}

/* ---------- 4. Boutons (coins coupés à 45°, comme les pistes du logo) ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-edge: var(--red);
  --cut: 11px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75em 1.6em;
  border: 0;
  background: none;
  color: #fff;
  font: 600 1rem/1.15 var(--text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color 0.2s;
}
.btn::before {
  inset: 0;
  background: var(--btn-edge);
}
.btn::after {
  inset: 1.5px;
  --cut: 10.4px;
  background: var(--btn-bg);
}
.btn:hover {
  --btn-bg: #e8412f;
  --btn-edge: #e8412f;
}
.btn:active {
  --btn-bg: #b92a1f;
  --btn-edge: #b92a1f;
}
.btn--ghost {
  --btn-bg: var(--deep);
  --btn-edge: rgba(238, 243, 251, 0.55);
  color: var(--ice);
}
.btn--ghost:hover {
  --btn-bg: #0a1c3f;
  --btn-edge: var(--ice);
}
.btn--ghost:active {
  --btn-bg: #071530;
  --btn-edge: var(--ice);
}
.btn--sm {
  min-height: 44px;
  padding: 0.55em 1.25em;
  font-size: 0.95rem;
}
.linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- 5. En-tête ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}
.top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 10, 28, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity 0.3s;
}
.top.is-solid::before {
  opacity: 1;
}
.top__in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--bar);
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gut);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ice);
  text-decoration: none;
}
.brand__mark {
  width: auto;
  height: 46px;
  aspect-ratio: 280 / 260;
  overflow: visible;
  transition: filter 0.35s;
}
.brand__word {
  width: auto;
  height: 17px;
  aspect-ratio: 451.65 / 62;
  fill: var(--red);
}
.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  filter: drop-shadow(0 0 9px rgba(255, 91, 58, 0.85));
}
.menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}
.menu__list {
  display: flex;
  gap: clamp(16px, 2.4vw, 36px);
}
.menu__list a {
  position: relative;
  display: block;
  padding: 10px 0;
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
}
/* soulignement en « piste » terminée par une pastille */
.menu__list a::before,
.menu__list a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu__list a::before {
  left: 0;
  right: 5px;
  height: 1.5px;
  background: var(--flare);
  transform: scaleX(0);
  transform-origin: left;
}
.menu__list a::after {
  right: 0;
  bottom: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flare);
  opacity: 0;
  transition-delay: 0s;
}
.menu__list a:hover::before,
.menu__list a[aria-current="true"]::before {
  transform: none;
}
.menu__list a:hover::after,
.menu__list a[aria-current="true"]::after {
  opacity: 1;
  transition-delay: 0.22s;
}
.menu .social--menu,
.burger {
  display: none;
}

@media (max-width: 899px) {
  :root {
    --bar: 64px;
  }
  .brand__mark {
    height: 40px;
  }
  .brand__word {
    height: 14px;
  }
  .burger {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 4px 0 10px;
    border: 0;
    background: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
  }
  .burger__box {
    position: relative;
    order: 2;
    width: 26px;
    height: 18px;
  }
  .burger__box i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ice);
    transition: transform 0.3s var(--ease), opacity 0.2s;
  }
  .burger__box i:nth-child(1) {
    top: 0;
  }
  .burger__box i:nth-child(2) {
    top: 8px;
  }
  .burger__box i:nth-child(3) {
    top: 16px;
  }
  .menu-open .burger__box i:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-open .burger__box i:nth-child(2) {
    opacity: 0;
  }
  .menu-open .burger__box i:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .brand {
    position: relative;
    z-index: 2;
  }
  .menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: calc(var(--bar) + 24px) var(--gut) 40px;
    overflow-y: auto;
    background:
      radial-gradient(90% 50% at 100% 100%, rgba(215, 51, 39, 0.28), transparent 70%),
      var(--navy);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0s 0.3s;
  }
  .menu-open .menu {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s;
  }
  .menu__list {
    flex-direction: column;
    gap: 4px;
  }
  .menu__list a {
    padding: 6px 0;
    font: 800 clamp(2.4rem, 11vw, 3.4rem) / 1 var(--display);
    letter-spacing: 0.01em;
    text-transform: uppercase;
  }
  .menu__list a::before,
  .menu__list a::after {
    display: none;
  }
  .menu__list a[aria-current="true"] {
    color: var(--flare);
  }
  .menu .social--menu {
    display: flex;
  }
  .menu-open body {
    overflow: hidden;
  }
}

/* réseaux sociaux */
.social {
  display: flex;
  gap: 10px;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  color: var(--ice);
  text-decoration: none;
  transition: color 0.2s;
}
.social svg {
  width: 24px;
  height: 24px;
}
.social a:hover {
  color: var(--flare);
}
.social--menu a,
.social--big a {
  justify-content: flex-start;
}

/* ---------- 6. Séquence d'ouverture ---------- */
.intro {
  display: none;
}
.intro-run .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}
.intro__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 55% at 50% 45%, #0a2350 0, #021030 45%, var(--deep) 78%);
}
.intro__logo {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3.4vh, 34px);
  color: var(--ice);
}
.intro__mark {
  width: min(52vw, 270px);
  height: auto;
  aspect-ratio: 280 / 260;
  overflow: visible;
}
.intro__word {
  width: min(74vw, 420px);
  height: auto;
  aspect-ratio: 451.65 / 62;
  overflow: visible;
  fill: var(--red);
}
.intro__skip {
  position: absolute;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(238, 243, 251, 0.4);
  background: rgba(0, 8, 22, 0.5);
  color: var(--ice);
  font-size: 0.92rem;
  cursor: pointer;
}
.intro__skip:hover {
  border-color: var(--ice);
}
.intro-run .brand {
  opacity: 0;
}

.in-arc,
.in-core,
.in-dot,
.in-halo {
  transform-box: fill-box;
  transform-origin: center;
}
.in-arc {
  fill: currentColor;
  animation: in-arc 0.85s cubic-bezier(0.16, 0.84, 0.3, 1) both;
}
.in-arc--t {
  --dx: 0px;
  --dy: -80px;
  animation-delay: 0.12s;
}
.in-arc--l {
  --dx: -70px;
  --dy: 42px;
  animation-delay: 0.26s;
}
.in-core {
  fill: var(--red);
  animation: in-core 0.7s 0.72s cubic-bezier(0.2, 1.5, 0.4, 1) both, in-glow 1.5s 1.25s ease-out both;
}
.in-tr {
  stroke-dasharray: 1 1;
  animation: in-draw 0.55s cubic-bezier(0.3, 0, 0.2, 1) both;
}
.in-dash {
  stroke-dasharray: 0.1 3.4;
  animation-name: in-fade;
}
.in-grp-t .in-tr {
  animation-delay: 1.02s;
}
.in-grp-l .in-tr {
  animation-delay: 1.1s;
}
.in-grp-r .in-tr {
  animation-delay: 1.18s;
}
.in-grp .in-tr:nth-child(2n) {
  animation-duration: 0.7s;
}
.in-dot,
.in-halo {
  fill: var(--red);
  animation: in-pop 0.4s 1.55s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.in-halo {
  opacity: 0.38;
  animation-name: in-pop-halo;
  animation-delay: 1.68s;
}
.in-l {
  animation: in-letter 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.intro__word g:nth-child(1) .in-l { animation-delay: 1.2s; }
.intro__word g:nth-child(2) .in-l { animation-delay: 1.24s; }
.intro__word g:nth-child(3) .in-l { animation-delay: 1.28s; }
.intro__word g:nth-child(4) .in-l { animation-delay: 1.32s; }
.intro__word g:nth-child(5) .in-l { animation-delay: 1.36s; }
.intro__word g:nth-child(6) .in-l { animation-delay: 1.44s; }
.intro__word g:nth-child(7) .in-l { animation-delay: 1.48s; }
.intro__word g:nth-child(8) .in-l { animation-delay: 1.52s; }
.intro__word g:nth-child(9) .in-l { animation-delay: 1.56s; }
.intro__word g:nth-child(10) .in-l { animation-delay: 1.6s; }
.intro__word g:nth-child(11) .in-l { animation-delay: 1.64s; }
.intro__word g:nth-child(12) .in-l { animation-delay: 1.68s; }

@keyframes in-arc {
  from {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.18);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes in-core {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes in-glow {
  0% {
    filter: drop-shadow(0 0 0 rgba(255, 91, 58, 0));
  }
  30% {
    filter: drop-shadow(0 0 16px rgba(255, 91, 58, 0.95));
  }
  100% {
    filter: drop-shadow(0 0 5px rgba(255, 91, 58, 0.45));
  }
}
@keyframes in-draw {
  from {
    opacity: 0;
    stroke-dashoffset: -1;
  }
  12% {
    opacity: 1;
  }
  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}
@keyframes in-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes in-pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes in-pop-halo {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 0.38;
    transform: none;
  }
}
@keyframes in-letter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 7. Accueil ---------- */
.hero {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--bar);
}
/* repli sans 3D : ciel et lueur d'horizon en CSS */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 34% at 50% 108%, rgba(255, 91, 58, 0.5), rgba(215, 51, 39, 0.16) 45%, transparent 72%),
    radial-gradient(90% 70% at 72% 40%, rgba(11, 36, 82, 0.9), transparent 70%),
    var(--deep);
  transition: opacity 1.2s;
}
.has-3d .hero::before {
  opacity: 0;
}
/* voile de lisibilité derrière le texte */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 8, 22, 0.72) 0, rgba(0, 8, 22, 0.35) 38%, transparent 62%),
    linear-gradient(0deg, rgba(0, 8, 22, 0.62) 0, transparent 26%);
  pointer-events: none;
}
.hero__in {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(16px, 4vw, 64px);
  padding-block: clamp(20px, 5vh, 60px);
}
.hero__text {
  container-type: inline-size;
}
/* la ligne la plus longue (« votre spécialiste IT ») remplit exactement la colonne */
.hero__title {
  font: 800 clamp(2.5rem, 6.3vw, 5.9rem) / 1.07 var(--display);
  letter-spacing: 0.004em;
  text-transform: uppercase;
}
@supports (font-size: 1cqi) {
  .hero__title {
    font-size: clamp(2.4rem, 13.5cqi, 7.4rem);
  }
}
.hero__title > span {
  display: block;
  white-space: nowrap;
}
.hero__lead {
  margin-top: 0.85em;
  color: var(--flare);
  font: 700 clamp(1.25rem, 2.3vw, 1.95rem) / 1.1 var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.hero__sub {
  max-width: 35em;
  margin-top: 1em;
  color: #c3d0e4;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.9em;
}
.hero__emblem {
  justify-self: center;
  width: min(100%, 470px);
  aspect-ratio: 280 / 260;
  color: var(--ice);
}
.hero__emblem svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 34px rgba(215, 51, 39, 0.42));
}
.has-3d .hero__emblem {
  visibility: hidden;
}
.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: 8px clamp(18px, 3.4vh, 34px);
}
.mottos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  color: var(--ice);
  font: 600 clamp(0.88rem, 1.05vw, 0.94rem) / 1.25 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 8, 22, 0.9);
}
.mottos li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mottos li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flare);
  box-shadow: 0 0 0 4px rgba(255, 91, 58, 0.25);
}
.hero__social {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  color: var(--mist);
  font-size: 0.9rem;
  text-shadow: 0 1px 12px rgba(0, 8, 22, 0.9);
}
.calm-note {
  width: min(1240px, 100% - 2 * var(--gut));
  margin: 0 auto 14px;
  color: var(--mist);
  font-size: 0.88rem;
}

@media (max-width: 899px) {
  .hero__in {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: clamp(8px, 2.5vh, 26px);
    padding-block: 12px 20px;
  }
  .hero__emblem {
    order: -1;
    width: min(64vw, 36vh, 330px);
  }
  .hero::after {
    background: linear-gradient(0deg, rgba(0, 8, 22, 0.78) 0, rgba(0, 8, 22, 0.5) 45%, transparent 75%);
  }
  .hero__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .mottos {
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    letter-spacing: 0.13em;
  }
  .hero__social span {
    display: none;
  }
  .hero__social {
    display: none;
  }
}
@media (max-width: 899px) and (max-height: 700px) {
  .mottos {
    display: none;
  }
}

/* ---------- 8. À propos ---------- */
.about {
  padding-block: clamp(76px, 11vw, 150px);
  background:
    radial-gradient(60% 50% at 88% 30%, rgba(11, 36, 82, 0.75), transparent 70%),
    var(--navy);
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(30px, 5vw, 72px) clamp(20px, 3vw, 48px);
  align-items: center;
}
.about__main {
  grid-column: 1 / span 7;
}
.about__big {
  max-width: 31em;
  margin-top: 1.1em;
  font-size: clamp(1.22rem, 2vw, 1.7rem);
  line-height: 1.4;
}
.about__txt {
  max-width: 37em;
  margin-top: 1.1em;
  color: var(--mist);
}
.about__main .btn {
  margin-top: 2em;
}
.about__fig {
  position: relative;
  grid-column: 9 / span 4;
  width: 100%;
  max-width: 380px;
  justify-self: center;
}
.about__fig img {
  width: 100%;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(238, 243, 251, 0.35),
    0 0 0 12px var(--navy),
    0 0 0 13px rgba(238, 243, 251, 0.16),
    0 30px 90px rgba(0, 0, 0, 0.6);
}
/* hublot : deux pistes qui partent du cercle, comme sur le logo */
.about__fig::before,
.about__fig::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(215, 51, 39, 0.28);
}
.about__fig::before {
  left: -4%;
  top: 12%;
}
.about__fig::after {
  right: -5%;
  bottom: 16%;
}
.pillars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pillars li {
  position: relative;
  padding: 30px 28px 0 0;
}
.pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 100%;
  height: 1.5px;
  background: rgba(238, 243, 251, 0.22);
}
.pillars li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(215, 51, 39, 0.26);
}
.pillars__k {
  display: block;
  font: 700 clamp(1.35rem, 2vw, 1.7rem) / 1 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pillars__v {
  display: block;
  max-width: 24em;
  margin-top: 0.55em;
  color: var(--mist);
  font-size: 0.98rem;
}
@media (max-width: 899px) {
  .about__main,
  .about__fig {
    grid-column: 1 / -1;
  }
  .about__fig {
    max-width: min(62vw, 320px);
  }
  .pillars {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .pillars li {
    padding: 0 0 0 30px;
  }
  .pillars li::before {
    left: 5px;
    top: 0;
    width: 1.5px;
    height: calc(100% + 26px);
  }
  .pillars li:last-child::before {
    height: 100%;
  }
  .pillars li::after {
    top: 4px;
  }
}

/* ---------- 9. Services (fond clair, façon plan de circuit) ---------- */
.services {
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 120px) clamp(80px, 10vw, 150px);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(0, 16, 42, 0.07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: 11px 0;
  color: var(--ink);
}
.services__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  column-gap: 24px;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.status {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--red-ink);
  font: 600 1rem/1 var(--display);
}
.status__led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 51, 39, 0.16), 0 0 12px 2px rgba(215, 51, 39, 0.55);
}
@media (prefers-reduced-motion: no-preference) {
  .status__led { animation: services-led 2.4s ease-in-out infinite; }
}
.services__head .h2 {
  grid-column: 1 / span 6;
}
.services__intro {
  grid-column: 8 / -1;
  padding-bottom: 0.4em;
  color: var(--ink-2);
  font-size: 1.25rem;
  line-height: 1.45;
}
.board { position: relative; }
.board__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.wire { fill: none; stroke: rgba(0, 16, 42, 0.16); stroke-width: 2; stroke-linejoin: round; }
.wire--live { stroke: var(--red); }
.wire-glow { fill: none; stroke: rgba(215, 51, 39, 0.35); stroke-width: 7; filter: blur(3px); }
.wire-spark { fill: #fff; stroke: var(--red); stroke-width: 2.5; }
.svc-list {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(96px, 11vw, 160px) minmax(0, 1fr);
  grid-auto-rows: auto;
}
.svc {
  position: relative;
  max-width: 520px;
  padding: 0 0 clamp(40px, 5vw, 64px);
}
.svc:nth-child(odd) { grid-column: 1; justify-self: end; padding-right: 36px; }
.svc:nth-child(even) { grid-column: 3; justify-self: start; padding-left: 36px; }
.svc:nth-child(1) { grid-row: 1 / span 2; }
.svc:nth-child(2) { grid-row: 2 / span 2; }
.svc:nth-child(3) { grid-row: 3 / span 2; }
.svc:nth-child(4) { grid-row: 4 / span 2; }
.svc:nth-child(5) { grid-row: 5 / span 2; }
.svc:nth-child(6) { grid-row: 6 / span 2; }
.svc__pad {
  position: absolute;
  top: 30px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 16, 42, 0.3);
  border-radius: 50%;
  background: var(--paper);
  transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s;
}
.svc:nth-child(odd) .svc__pad { right: -7px; }
.svc:nth-child(even) .svc__pad { left: -7px; }
.svc__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.svc__icon .ic-pad { fill: var(--paper); stroke: var(--ink); transition: fill 0.4s, stroke 0.4s; }
.svc__icon .ic-hot { transition: stroke 0.4s; }
.svc__title {
  font: 620 clamp(1.8rem, 1.4rem + 1.6vw, 2.369rem)/1.02 var(--display);
  letter-spacing: -0.003em;
  text-wrap: balance;
}
.svc__what {
  margin-top: 14px;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.42;
}
.svc__more { margin-top: 12px; color: var(--ink-2); line-height: 1.62; }
.svc.is-live .svc__pad {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(215, 51, 39, 0.15), 0 0 16px rgba(215, 51, 39, 0.6);
}
.svc.is-live .svc__icon .ic-pad { fill: var(--red); stroke: var(--red); }
.svc.is-live .svc__icon .ic-hot { stroke: var(--red); }
@keyframes services-led {
  50% { box-shadow: 0 0 0 3px rgba(215, 51, 39, 0.08), 0 0 4px 0 rgba(215, 51, 39, 0.3); }
}
@media (max-width: 980px) {
  .services__head .h2,
  .services__intro {
    grid-column: 1 / -1;
  }
  .services__intro { margin-top: 18px; max-width: 46ch; }
  .svc-list { grid-template-columns: 1fr; padding-left: 34px; }
  .svc:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    max-width: 640px;
    padding: 0 0 52px 18px;
  }
  .svc:nth-child(n) .svc__pad { left: -41px; right: auto; top: 22px; }
}


/* ---------- 10. Réalisations ---------- */
.work {
  padding-block: clamp(76px, 11vw, 150px);
  background: var(--deep);
}
.work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.work__lead {
  max-width: 29em;
  color: var(--mist);
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 0.9vw, 12px);
}
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: #061430;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.tile:hover img,
.tile:focus-visible img {
  transform: scale(1.045);
}
.tile--a {
  grid-column: span 2;
  grid-row: span 2;
}
.tile--b {
  grid-row: span 2;
  aspect-ratio: auto;
}
.tile--b img {
  object-position: 76% 50%;
}
.tile--g {
  grid-column: span 2;
  aspect-ratio: auto;
}
.tile--g img {
  object-position: 50% 82%;
}
.tile__name {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.45em 0.85em;
  background: rgba(0, 8, 22, 0.8);
  color: var(--ice);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
/* coin en « piste » qui apparaît au survol : signale que la photo s'agrandit */
.tile::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 26px;
  height: 26px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.tile:hover::after,
.tile:focus-visible::after {
  opacity: 1;
  transform: none;
}
@media (max-width: 699px) {
  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile--g {
    aspect-ratio: 2 / 1;
  }
}

/* ---------- 11. Contact ---------- */
.contact {
  isolation: isolate;
  overflow-x: clip;
  padding-block: clamp(80px, 12vw, 170px) clamp(72px, 10vw, 140px);
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--deep) 0, rgba(0, 8, 22, 0.25) 26%, rgba(0, 8, 22, 0.25) 60%, rgba(0, 8, 22, 0.8) 100%);
}
html:not(.has-3d) .contact::before {
  background:
    radial-gradient(120% 46% at 50% 104%, rgba(255, 91, 58, 0.42), rgba(215, 51, 39, 0.14) 46%, transparent 74%),
    var(--deep);
}
.contact__motto {
  margin-bottom: clamp(44px, 8vw, 120px);
  color: transparent;
  font: 800 clamp(3.3rem, 13.4vw, 13.5rem) / 0.93 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  -webkit-text-stroke: 1.5px rgba(238, 243, 251, 0.62);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(30px, 5vw, 84px);
  align-items: start;
}
.contact .h2 {
  font-size: clamp(2.5rem, 4.7vw, 4.3rem);
}
/* voile sombre derrière le texte, pour qu'il reste lisible au-dessus du circuit */
.contact__intro {
  position: relative;
}
.contact__intro::before {
  content: "";
  position: absolute;
  inset: -12% -16% -14% -30%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 8, 22, 0.88), rgba(0, 8, 22, 0.66) 60%, transparent);
  pointer-events: none;
}
.contact__ask {
  display: block;
  margin-bottom: 0.4em;
  color: var(--flare);
  font-size: 0.42em;
  letter-spacing: 0.06em;
}
.contact__txt {
  max-width: 26em;
  margin-top: 1.2em;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  text-shadow: 0 1px 14px rgba(0, 8, 22, 0.9);
}
.social--big {
  flex-direction: column;
  gap: 2px;
  margin-top: 1.6em;
}
.social--big a {
  gap: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(238, 243, 251, 0.4);
  text-underline-offset: 5px;
  text-shadow: 0 1px 14px rgba(0, 8, 22, 0.9);
}
.contact__panel {
  padding: clamp(22px, 3.2vw, 42px);
  border: 1px solid var(--line);
  background: rgba(0, 12, 34, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.contact__note {
  color: var(--mist);
}
.form {
  display: grid;
  gap: 18px;
}
.form__title {
  font: 800 clamp(1.6rem, 2.4vw, 2.1rem) / 1 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.form__how {
  color: var(--mist);
  font-size: 0.98rem;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 0.95rem;
  font-weight: 600;
}
.req {
  color: var(--mist);
  font-weight: 400;
}
.field input,
.field textarea,
.form__copy {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(238, 243, 251, 0.34);
  border-radius: 2px;
  background: rgba(238, 243, 251, 0.06);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea,
.form__copy {
  min-height: 130px;
  resize: vertical;
}
.field input:hover,
.field textarea:hover {
  border-color: rgba(238, 243, 251, 0.6);
}
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--flare);
  background: rgba(238, 243, 251, 0.1);
  outline-offset: 1px;
}
.field [aria-invalid="true"] {
  border-color: #ff9d8c;
}
.field__err {
  color: #ffb3a5;
  font-size: 0.92rem;
}
.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.form__status:empty {
  display: none;
}
.form__status {
  padding: 14px 16px;
  border-left: 3px solid var(--flare);
  background: rgba(238, 243, 251, 0.07);
  font-size: 0.98rem;
}
.form__status a {
  font-weight: 600;
}
@media (max-width: 899px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact__intro::before {
    inset: -10% calc(-1 * var(--gut)) -10%;
  }
}

/* ---------- 12. Pied de page ---------- */
.foot {
  position: relative;
  z-index: 1;
  padding-block: clamp(44px, 6vw, 72px) 28px;
  border-top: 1px solid var(--line);
  background: var(--deep);
  color: var(--mist);
  font-size: 0.96rem;
}
.foot__in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 32px clamp(20px, 4vw, 64px);
}
.foot__logo {
  width: auto;
  height: 58px;
  aspect-ratio: 960.793 / 252;
  margin-bottom: 16px;
  color: var(--ice);
}
.foot__brand p {
  max-width: 27em;
}
.foot__nav ul {
  display: grid;
  gap: 2px;
}
.foot__nav a,
.foot__up {
  display: inline-block;
  padding: 7px 0;
  color: var(--ice);
  text-decoration: none;
}
.foot__nav a:hover,
.foot__up:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot__side {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
}
.motion-btn {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(238, 243, 251, 0.35);
  background: none;
  color: var(--ice);
  font-size: 0.92rem;
  cursor: pointer;
}
.motion-btn:hover {
  border-color: var(--ice);
}
.foot__legal {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
@media (max-width: 899px) {
  .foot__in {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot__logo {
    height: 48px;
  }
}

/* ---------- 13. Visionneuse ---------- */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ice);
}
.lightbox[open] {
  display: grid;
  place-items: center;
}.lightbox::backdrop {
  background: rgba(0, 5, 16, 0.95);
}
.lightbox__fig {
  width: min(92vw, 100vh - 150px, 1000px);
  width: min(92vw, 100dvh - 150px, 1000px);
}
.lightbox__img {
  width: 100%;
  background: #061430;
}
.lightbox__cap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 1.6em;
  margin-top: 12px;
  color: var(--mist);
  font-size: 0.95rem;
}
.lightbox__cap span:first-child {
  color: var(--ice);
  font-weight: 600;
}
.lightbox__btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(238, 243, 251, 0.35);
  background: rgba(0, 12, 34, 0.8);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.lightbox__btn:hover {
  border-color: var(--ice);
  background: var(--blue);
}
.lightbox__btn svg {
  width: 22px;
  height: 22px;
}
.lightbox__btn--prev {
  left: max(10px, env(safe-area-inset-left));
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__btn--prev svg {
  transform: scaleX(-1);
}
.lightbox__btn--next {
  right: max(10px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__btn--close {
  right: max(10px, env(safe-area-inset-right));
  top: max(10px, env(safe-area-inset-top));
}
@media (max-width: 699px) {
  .lightbox__btn--prev,
  .lightbox__btn--next {
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: none;
  }
  .lightbox__btn--prev {
    left: calc(50% - 60px);
  }
  .lightbox__btn--next {
    right: calc(50% - 60px);
  }
}

/* ---------- 14. Mode calme (mouvement réduit) ---------- */
html.calm *,
html.calm *::before,
html.calm *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

