/* eliot-ferret.com — feuille de style unique. Valeurs : voir DESIGN.md */

@font-face {
  font-family: "Chivo";
  src: url("../fonts/chivo.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chivo Mono";
  src: url("../fonts/chivo-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Couleurs */
  --c-bg: #0A0C15;
  --c-surface: #111526;
  --c-surface-2: #171C30;
  --c-line: #252B44;
  --c-line-input: #6B7291;
  --c-text: #E7EAF6;
  --c-muted: #A9B0CD;
  --c-accent: #6FE6F8;
  --c-accent-hover: #A5F3FC;
  --c-on-accent: #0A0C15;
  --c-error: #FF8A7A;
  --c-warn: #F5C76A;

  /* Typographie */
  --font-sans: "Chivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Chivo Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-display: clamp(2.25rem, 1.55rem + 3vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.125rem, 1.08rem + .2vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-mono: .875rem;
  --measure: 66ch;

  /* Espacements */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --content: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  --section-pad: clamp(64px, 9vw, 128px);

  /* Formes */
  --r-sm: 4px;
  --r-md: 8px;

  --header-h: 4rem;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { margin: 0; color: var(--c-text); text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
p { text-wrap: pretty; }

a {
  color: var(--c-accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--c-accent-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--c-accent); color: var(--c-on-accent); }

.mono { font-family: var(--font-mono); font-size: var(--fs-mono); font-variant-numeric: tabular-nums; }

.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;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-weight: 600;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-3); color: var(--c-on-accent); }

.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn--primary:hover { background: var(--c-accent-hover); color: var(--c-on-accent); }
.btn--secondary { background: transparent; border-color: var(--c-line-input); color: var(--c-text); }
.btn--secondary:hover { background: var(--c-surface-2); color: var(--c-text); }
.btn--small { min-height: 44px; padding: 0 1rem; font-size: .9375rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  color: var(--c-text);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand:hover { color: var(--c-text); }
.brand__mark { width: 32px; height: 32px; flex: none; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-muted);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav__list a:hover { color: var(--c-text); }
.nav__list a[aria-current="true"] { color: var(--c-text); box-shadow: inset 0 -2px 0 var(--c-accent); }
.nav__cta { display: none; }
.header-cta .cta-short { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--s-4);
  touch-action: manipulation;
  background: transparent;
  border: 1px solid var(--c-line-input);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font: 600 .9375rem/1 var(--font-sans);
  cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .site-header__inner { gap: var(--s-2); }
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .header-cta .cta-long { display: none; }
  .header-cta .cta-short { display: inline; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    padding: var(--s-2) var(--gutter) var(--s-5);
  }
  .js .nav {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .1s ease-in, transform .1s ease-in, visibility 0s linear .1s;
  }
  .js .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .15s ease-out, transform .15s ease-out;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--c-line); }
  .nav__list a { width: 100%; min-height: 52px; font-size: 1.0625rem; color: var(--c-text); }
  .nav__list a[aria-current="true"] { box-shadow: inset 2px 0 0 var(--c-accent); padding-left: var(--s-3); }
}
@media (max-width: 400px) {
  .menu-toggle { padding: 0; }
  .menu-toggle .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Haut de page ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 104px) clamp(56px, 8vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--c-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 80%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 80%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-7) var(--s-6);
  align-items: center;
}
.hero__text { grid-column: 1 / span 7; }
.hero__trace { grid-column: 8 / -1; }
.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.025em;
  max-width: 16ch;
}
.lead {
  margin-top: var(--s-5);
  max-width: 54ch;
  color: var(--c-muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

@media (max-width: 960px) {
  .hero__text, .hero__trace { grid-column: 1 / -1; }
  .hero__trace { max-width: 34rem; }
}
@media (max-width: 480px) {
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- Trace de chargement ---------- */
.trace {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.trace__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--c-line);
}
.trace__title { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.trace__host { color: var(--c-muted); }
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--c-accent);
  font-size: .875rem;
  font-weight: 600;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(111, 230, 248, .18);
}
.trace__list { list-style: none; margin: 0; padding: 0; }
.trace__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--c-line);
}
.trace__row:last-child { border-bottom: 0; padding-bottom: 0; }
.trace__label { color: var(--c-muted); font-size: var(--fs-small); line-height: 1.35; }
.trace__value { color: var(--c-text); text-align: right; white-space: nowrap; }
.trace__bar {
  position: relative;
  grid-column: 1 / -1;
  height: 2px;
  background: var(--c-line);
  border-radius: 1px;
}
.trace__bar span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--start, 0%);
  width: var(--width, 0%);
  min-width: 2px;
  background: var(--c-accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delay, 0s);
}
.trace.is-measured .trace__bar span { transform: scaleX(1); }
.trace__axis + .trace__list { margin-top: var(--s-3); border-top: 1px solid var(--c-line); }
.trace__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); }
.trace__time { color: var(--c-muted); font-size: .8125rem; }
.trace__time:empty { display: none; }
.trace__axis {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s-2);
  color: var(--c-muted);
  font-size: .75rem;
}
.trace__note {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: .875rem;
  line-height: 1.5;
}

/* ---------- Bande d'engagements ---------- */
.facts { border-top: 1px solid var(--c-line); }
.facts__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.facts__list li { padding: var(--s-6) var(--s-5) var(--s-6) 0; }
.facts__list li + li { padding-left: var(--s-5); border-left: 1px solid var(--c-line); }
.facts__list strong { display: block; margin-bottom: var(--s-1); font-weight: 700; }
.facts__list span { color: var(--c-muted); font-size: var(--fs-small); line-height: 1.5; }
@media (max-width: 960px) {
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts__list li:nth-child(n+3) { border-top: 1px solid var(--c-line); }
}
@media (max-width: 560px) {
  .facts__list { grid-template-columns: 1fr; }
  .facts__list li, .facts__list li + li { padding: var(--s-4) 0; border-left: 0; }
  .facts__list li + li { border-top: 1px solid var(--c-line); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); border-top: 1px solid var(--c-line); }
.section__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-4) var(--s-6);
  align-items: start;
}
.section__head h2 { grid-column: 1 / span 5; }
.section__intro { grid-column: 6 / -1; max-width: 58ch; color: var(--c-muted); font-size: var(--fs-lead); line-height: 1.55; }
h2 { font-size: var(--fs-h2); line-height: 1.12; font-weight: 750; letter-spacing: -.015em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; }

@media (max-width: 860px) {
  .section__head h2, .section__intro { grid-column: 1 / -1; }
}

/* ---------- Prestations ---------- */
.services { list-style: none; margin: var(--s-8) 0 0; padding: 0; border-top: 1px solid var(--c-line); }
.service {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-4) var(--s-6);
  padding-block: var(--s-7);
  border-bottom: 1px solid var(--c-line);
}
.service__name { grid-column: 1 / span 4; }
.service__price { margin-top: var(--s-2); color: var(--c-muted); font-size: var(--fs-small); }
.service__body { grid-column: 5 / -1; }
.service__body > p { max-width: var(--measure); }
.included {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2) var(--s-6);
  list-style: none;
  margin-top: var(--s-5);
  padding: 0;
  color: var(--c-muted);
  font-size: var(--fs-small);
}
.included li { position: relative; padding-left: 20px; }
.included li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 10px;
  height: 2px;
  background: var(--c-accent);
}
@media (max-width: 860px) {
  .service__name, .service__body { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .included { grid-template-columns: 1fr; }
}

/* ---------- Étapes ---------- */
.steps-title { margin-top: var(--s-9); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6);
  list-style: none;
  margin: var(--s-6) 0 0;
  padding: 0;
  counter-reset: step;
}
.step { counter-increment: step; padding-top: var(--s-4); border-top: 2px solid var(--c-line); }
.step::before {
  content: counter(step);
  display: block;
  margin-bottom: var(--s-3);
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
}
.step h4 { margin: 0 0 var(--s-2); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.step p { color: var(--c-muted); font-size: var(--fs-small); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ---------- Réalisations ---------- */
.works { display: grid; gap: var(--s-9); margin-top: var(--s-8); }
.work {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-6);
  align-items: start;
}
.work__media { grid-column: 1 / span 7; }
.work__text { grid-column: 8 / -1; }
.work--alt .work__media { grid-column: 6 / -1; grid-row: 1; }
.work--alt .work__text { grid-column: 1 / span 5; grid-row: 1; }
.work__kind { color: var(--c-muted); font-size: var(--fs-small); margin-bottom: var(--s-2); }
.work__text p { margin-top: var(--s-4); }
.work__text .work__link { display: inline-block; margin-top: var(--s-5); font-weight: 600; }
@media (max-width: 860px) {
  .work__media, .work__text, .work--alt .work__media, .work--alt .work__text { grid-column: 1 / -1; grid-row: auto; }
}

.frame {
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px var(--s-4);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-muted);
}
.frame__bar svg { width: 14px; height: 14px; flex: none; color: var(--c-accent); }
.frame img { width: 100%; }

.specs { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; }
.specs dt, .specs dd { padding-block: var(--s-3); border-bottom: 1px solid var(--c-line); }
.specs dt { padding-right: var(--s-5); color: var(--c-muted); font-size: var(--fs-small); }
.specs dd { text-align: right; }
.specs-panel { padding: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.specs-panel .specs dt:last-of-type, .specs-panel .specs dd:last-of-type { border-bottom: 0; padding-bottom: 0; }

/* ---------- Compétences ---------- */
.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-7) var(--s-8);
  margin-top: var(--s-8);
}
.skills h3 { padding-bottom: var(--s-4); border-bottom: 1px solid var(--c-line); }
.skill-list { list-style: none; margin: 0; padding: 0; }
.skill-list li { padding-block: var(--s-4); border-bottom: 1px solid var(--c-line); }
.skill-list strong { display: block; font-weight: 600; }
.skill-list span { color: var(--c-muted); font-size: var(--fs-small); }
@media (max-width: 760px) { .skills { grid-template-columns: 1fr; } }

/* ---------- À propos ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-7) var(--s-6);
  align-items: start;
}
.about__photo { grid-column: 1 / span 4; }
.about__photo img { border: 1px solid var(--c-line); border-radius: var(--r-md); }
.about__text { grid-column: 6 / -1; }
.about__text h2 { margin-bottom: var(--s-5); }
.about__text p + p { margin-top: var(--s-4); }
.about__text p { max-width: var(--measure); }
@media (max-width: 860px) {
  .about__photo { grid-column: 1 / -1; max-width: 280px; }
  .about__text { grid-column: 1 / -1; }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-7) var(--s-6);
  align-items: start;
}
.contact__info { grid-column: 1 / span 5; }
.contact__info > p { margin-top: var(--s-5); color: var(--c-muted); font-size: var(--fs-lead); line-height: 1.55; }
.contact__direct { list-style: none; margin: var(--s-6) 0 0; padding: 0; border-top: 1px solid var(--c-line); }
.contact__direct li { display: grid; gap: 2px; padding-block: var(--s-4); border-bottom: 1px solid var(--c-line); }
.contact__direct .label { color: var(--c-muted); font-size: var(--fs-small); }
.contact__direct a { font-weight: 600; overflow-wrap: anywhere; }
.contact__form { grid-column: 7 / -1; }
@media (max-width: 960px) {
  .contact__info, .contact__form { grid-column: 1 / -1; }
}

.form-panel {
  padding: clamp(20px, 3vw, 32px);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: var(--fs-small); }
.field .optional { color: var(--c-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line-input);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A9B0CD' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--c-accent); }
.field [aria-invalid="true"] { border-color: var(--c-error); }
.field__error { color: var(--c-error); font-size: .875rem; }
.field__error:empty { display: none; }
.honeypot { display: none !important; }
.required-note { margin-bottom: var(--s-5); color: var(--c-muted); font-size: var(--fs-small); }
.form-errors {
  margin-bottom: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--c-error);
  border-radius: var(--r-sm);
}
.form-errors h3 { margin-bottom: var(--s-2); color: var(--c-error); font-size: 1rem; }
.form-errors ul { margin: 0; padding-left: 1.2em; }
.form-errors a { color: var(--c-text); }
.field__hint { color: var(--c-muted); font-size: .875rem; line-height: 1.45; }
.form-foot { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.form-foot .btn { justify-self: start; }
.form-legal { color: var(--c-muted); font-size: .875rem; line-height: 1.5; }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--c-accent); }
.form-status.is-error { color: var(--c-error); }

/* ---------- Pied de page ---------- */
.site-footer { padding-block: var(--s-8) var(--s-7); border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: var(--fs-small); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-6); }
.footer-grid .brand { margin-bottom: var(--s-2); }
.footer-grid h2 { margin-bottom: var(--s-3); color: var(--c-text); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-muted); }
.footer-links a:hover { color: var(--c-text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-line); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Pages de texte (mentions, confidentialité) ---------- */
.page { padding-block: clamp(40px, 6vw, 88px) var(--section-pad); }
.page h1 { font-size: var(--fs-h2); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.page .updated { margin-top: var(--s-3); color: var(--c-muted); font-size: var(--fs-small); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--s-8); margin-bottom: var(--s-4); font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; }
.prose h3 { margin-top: var(--s-5); margin-bottom: var(--s-2); font-size: 1.0625rem; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: var(--s-4); }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: var(--s-2); }
.prose .specs { margin-top: var(--s-4); }
.prose .specs { grid-template-columns: 14rem minmax(0, 1fr); }
.prose .specs dd { text-align: left; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .prose .specs { grid-template-columns: minmax(0, 1fr); }
  .prose .specs dt { padding-bottom: 0; border-bottom: 0; }
  .prose .specs dd { padding-top: var(--s-1); }
}

/* ---------- Emplacements à compléter (maquette uniquement) ---------- */
.todo {
  padding: 0 .3em;
  border-radius: 2px;
  outline: 1px dashed var(--c-warn);
  outline-offset: -1px;
  background: rgba(245, 199, 106, .1);
  color: var(--c-warn);
}
.ph {
  display: grid;
  place-items: center;
  padding: var(--s-5);
  border: 1px dashed var(--c-warn);
  border-radius: var(--r-md);
  background: repeating-linear-gradient(135deg, rgba(245, 199, 106, .05) 0 10px, transparent 10px 20px);
  color: var(--c-warn);
  font-size: var(--fs-small);
  text-align: center;
}

/* ---------- Grilles à une colonne sur petit écran ----------
   Les 11 gouttières d'une grille de 12 colonnes dépassent la largeur d'un téléphone :
   on passe donc à une seule colonne au lieu de simplement étendre les éléments. */
@media (max-width: 960px) {
  .hero__grid, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero__text, .hero__trace, .contact__info, .contact__form { grid-column: auto; }
}
@media (max-width: 860px) {
  .section__head, .service, .work, .about { grid-template-columns: minmax(0, 1fr); }
  .section__head h2, .section__intro, .service__name, .service__body,
  .work__media, .work__text, .work--alt .work__media, .work--alt .work__text,
  .about__photo, .about__text { grid-column: auto; grid-row: auto; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
}

/* ---------- À propos sans photo (en attendant le portrait) ---------- */
.about--sans-photo h2 { grid-column: 1 / span 5; }
.about--sans-photo .about__text { grid-column: 6 / -1; }
@media (max-width: 860px) {
  .about--sans-photo h2, .about--sans-photo .about__text { grid-column: auto; }
}
.nowrap { white-space: nowrap; }

/* =====================================================================
   Finitions (revue ui-ux-pro-max, 30/10/2026)
   Profondeur par halos et bordures dégradées, texture, survols,
   apparitions discrètes. Tout est désactivé si l'animation est réduite.
   ===================================================================== */
:root {
  --c-accent-soft: rgba(111, 230, 248, .12);
  --c-accent-line: rgba(111, 230, 248, .45);
  --c-step-bg: #161A33;
  --shadow-panel: inset 0 1px 0 rgba(255, 255, 255, .04), 0 40px 80px -40px rgba(0, 0, 0, .75);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --fs-display: clamp(2.5rem, 1.55rem + 3.7vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.5rem + 1.9vw, 3rem);
}
html { scrollbar-color: #2A3150 var(--c-bg); }

/* Texture très légère sur le fond (sous le contenu) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* En-tête : devient translucide au défilement */
.site-header { transition: background-color .3s ease, border-color .3s ease; }
.site-header.is-scrolled {
  background: rgba(10, 12, 21, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
@media (max-width: 900px) { .site-header.is-scrolled { background: rgba(10, 12, 21, .94); } }

/* Boutons */
.btn--primary {
  background: linear-gradient(180deg, #8CEDFA, var(--c-accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(0, 0, 0, .3);
  transition: box-shadow .2s ease, transform .1s ease, background .2s ease;
}
.btn--primary:hover {
  background: linear-gradient(180deg, #B4F5FC, var(--c-accent-hover));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 4px rgba(111, 230, 248, .14), 0 10px 30px -10px rgba(111, 230, 248, .55);
}
.btn--secondary:hover { border-color: var(--c-accent-line); }

/* Haut de page : halo derrière la trace, grille estompée en ellipse */
.hero::before {
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 70% 35%, rgba(0, 0, 0, .7), transparent 75%);
  mask-image: radial-gradient(ellipse 80% 75% at 70% 35%, rgba(0, 0, 0, .7), transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(820px, 120vw);
  aspect-ratio: 1;
  right: -12%;
  top: -18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(111, 230, 248, .13), rgba(111, 230, 248, .04) 55%, transparent);
  pointer-events: none;
}
@media (max-width: 960px) { .hero::after { right: -40%; top: 30%; } }
.hero h1 { letter-spacing: -.032em; max-width: 15ch; }

/* Panneaux : bordure dégradée et ombre portée profonde */
.trace, .specs-panel, .form-panel, .frame {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--c-surface), var(--c-surface)) padding-box,
    linear-gradient(155deg, var(--c-accent-line), var(--c-line) 32%, var(--c-line) 72%, rgba(111, 230, 248, .2)) border-box;
  box-shadow: var(--shadow-panel);
}
.trace { box-shadow: var(--shadow-panel), 0 0 120px -40px rgba(111, 230, 248, .25); }
.trace__bar span { box-shadow: 0 0 10px rgba(111, 230, 248, .55); }
.status::before { box-shadow: 0 0 0 0 rgba(111, 230, 248, .5); }

/* Bande d'engagements : icônes */
.facts { background: linear-gradient(180deg, rgba(17, 21, 38, .7), rgba(17, 21, 38, 0)); }
.facts__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-4);
  border: 1px solid rgba(111, 230, 248, .3);
  border-radius: var(--r-md);
  background: var(--c-accent-soft);
  color: var(--c-accent);
}
.facts__icon svg { width: 20px; height: 20px; }
.facts__list li { position: relative; }

/* Prestations : la ligne s'allume au survol */
.service { position: relative; }
.service::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--c-accent), rgba(111, 230, 248, 0) 70%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s var(--ease-out);
}
.service:hover::after, .service:focus-within::after { transform: scaleX(1); }
.service h3 { transition: color .2s ease; }
.service:hover h3 { color: #fff; }

/* Étapes : une vraie frise */
.steps { position: relative; }
.step { border-top: 0; padding-top: 0; position: relative; }
.step::before {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-4);
  border: 1px solid var(--c-accent-line);
  border-radius: 50%;
  background: var(--c-step-bg);
  font-size: .9375rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 961px) {
  .steps::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--c-accent-line), var(--c-line) 70%);
  }
}

/* Réalisations : capture mise en valeur */
.work__media.frame { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.work__media.frame img { transition: transform .8s var(--ease-out); }
.work:hover .work__media.frame {
  transform: translateY(-4px);
  box-shadow: var(--shadow-panel), 0 30px 90px -30px rgba(111, 230, 248, .3);
}
.work:hover .work__media.frame img { transform: scale(1.02); }

/* Compétences : bande légèrement éclairée */
#competences { background: linear-gradient(180deg, rgba(17, 21, 38, .55), rgba(17, 21, 38, 0) 70%); }
.skill-list li { transition: padding-left .3s var(--ease-out); position: relative; }
.skill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0;
  transition: opacity .3s ease;
}
.skill-list li:hover { padding-left: var(--s-5); }
.skill-list li:hover::before { opacity: 1; }

/* À propos : fiche « en bref » sous le titre */
.about--sans-photo .about__aside { grid-column: 1 / span 5; display: grid; gap: var(--s-6); align-content: start; }
.about--sans-photo .about__aside .specs dd { text-align: left; }
.about__card { width: 100%; }
.about__text h2 + p { font-size: var(--fs-lead); line-height: 1.55; color: var(--c-text); }
@media (max-width: 860px) { .about--sans-photo .about__aside { grid-column: auto; } }

/* Demande de devis : halo d'appel */
#devis { position: relative; overflow: hidden; isolation: isolate; }
#devis::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  left: -20%;
  bottom: -55%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(111, 230, 248, .09), transparent);
  pointer-events: none;
}

/* Pied de page : filet lumineux */
.site-footer { border-top: 0; position: relative; }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent-line) 50%, transparent);
}

/* Lumière qui suit le pointeur (souris uniquement) */
@media (hover: hover) and (pointer: fine) {
  .spot { position: relative; }
  .spot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 230, 248, .07), transparent 65%);
  }
  .spot:hover::after { opacity: 1; }
}

/* Mouvement : seulement si le visiteur ne l'a pas réduit */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: ef-rise .8s var(--ease-out) both; }
  .hero__text > :nth-child(2) { animation-delay: .08s; }
  .hero__text > :nth-child(3) { animation-delay: .16s; }
  .hero__trace { animation: ef-fade 1s .2s var(--ease-out) both; }
  .status::before { animation: ef-pulse 2.4s ease-out infinite; }
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@keyframes ef-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ef-fade { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes ef-pulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 230, 248, .5); }
  70% { box-shadow: 0 0 0 8px rgba(111, 230, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 230, 248, 0); }
}
@media (max-width: 560px) {
  .facts__list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s-4); align-items: start; }
  .facts__icon { grid-row: span 2; margin-bottom: 0; }
}
.about--sans-photo .about__aside { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 480px) {
  .about__card .specs { grid-template-columns: minmax(0, 1fr); }
  .about__card .specs dt { padding-bottom: 0; border-bottom: 0; }
  .about__card .specs dd { padding-top: var(--s-1); }
}

/* =====================================================================
   Profondeur au défilement et fond animé (30/10/2026)
   Parallaxe sur les seuls calques de décor (jamais sur le texte),
   via la propriété `translate` pour ne pas gêner les animations.
   Tout est figé si le visiteur réduit les animations ou met en pause.
   ===================================================================== */
body { position: relative; }

/* Halos de fond répartis sur la page */
.bg-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; width: min(900px, 150vw); aspect-ratio: 1; will-change: translate; }
.orb span { display: block; width: 100%; height: 100%; border-radius: 50%; }
.orb--1 { top: 16%; left: -32%; }
.orb--1 span { background: radial-gradient(closest-side, rgba(111, 230, 248, .085), transparent); }
.orb--2 { top: 41%; right: -36%; }
.orb--2 span { background: radial-gradient(closest-side, rgba(167, 139, 250, .07), transparent); }
.orb--3 { top: 66%; left: -28%; }
.orb--3 span { background: radial-gradient(closest-side, rgba(111, 230, 248, .07), transparent); }

/* Haut de page : la grille et les paquets défilent plus lentement que le texte */
.hero::before { inset: -160px 0; translate: 0 calc(var(--sy, 0) * .3px); will-change: translate; }
.hero::after { translate: 0 calc(var(--sy, 0) * .5px); }
.hero__packets {
  position: absolute;
  top: -160px;
  left: 0;
  z-index: -1;
  width: 100%;
  height: calc(100% + 320px);
  pointer-events: none;
  translate: 0 calc(var(--sy, 0) * .3px);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 70% 35%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 75% at 70% 35%, #000, transparent 75%);
}
#devis::before { translate: 0 calc(var(--dy, 0) * 1px); }
.work__media.frame img[data-parallax-img] { scale: 1.08; translate: 0 calc(var(--iy, 0) * 1px); }

/* Bouton pause des animations */
.motion-toggle {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--content)) / 2));
  bottom: var(--s-5);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: rgba(17, 21, 38, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--c-muted);
  font: 500 .8125rem/1 var(--font-sans);
  cursor: pointer;
  touch-action: manipulation;
  transition: color .2s ease, border-color .2s ease;
}
.motion-toggle:hover { color: var(--c-text); border-color: var(--c-line-input); }
.motion-toggle .icon-play { display: none; }
.motion-paused .motion-toggle .icon-play { display: block; }
.motion-paused .motion-toggle .icon-pause { display: none; }
@media (max-width: 960px) { .motion-toggle { bottom: var(--s-3); } }

/* Mouvements lents et continus du fond */
@media (prefers-reduced-motion: no-preference) {
  .orb span { animation: ef-drift 28s ease-in-out infinite alternate; }
  .orb--2 span { animation-duration: 34s; animation-delay: -12s; }
  .orb--3 span { animation-duration: 40s; animation-delay: -20s; }
  .hero::after { animation: ef-breathe 14s ease-in-out infinite alternate; }
}
.motion-paused .orb span,
.motion-paused .hero::after,
.motion-paused .status::before { animation-play-state: paused; }
@keyframes ef-drift {
  from { transform: translate3d(-5%, -4%, 0) scale(1); }
  to { transform: translate3d(6%, 5%, 0) scale(1.14); }
}
@keyframes ef-breathe {
  from { transform: scale(1); opacity: .85; }
  to { transform: scale(1.12); opacity: 1; }
}
.frame__bar { position: relative; z-index: 1; background: var(--c-surface); }

/* =====================================================================
   Composants 21st.dev portés en CSS et JavaScript natifs (30/10/2026)
   Chaque bloc nomme le composant d'origine. Pas de React, pas de
   bibliothèque : seulement l'effet, aux couleurs du site.
   Tout mouvement continu s'arrête avec le bouton pause et disparaît
   si le visiteur a demandé de réduire les animations.
   ===================================================================== */
@property --bb-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ---------- Shiny Button (hyperiux) : « Demander un devis » de l'en-tête ----------
   L'arc lumineux est un calque qui tourne (transform), masqué en anneau :
   l'animation tourne sur le compositeur, sans recalcul de style à chaque image. */
.btn--shiny {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  color: #F4F8FF;
  background: #10132A;
  box-shadow: 0 0 26px -10px rgba(111, 230, 248, .5);
  transition: box-shadow .3s ease, color .2s ease, transform .1s ease;
}
.shiny__ring {
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(111, 230, 248, .2);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.shiny__ring::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(transparent 0 78%, var(--c-accent) 84%, #fff 89%, var(--c-accent) 94%, transparent 99%);
  transition: opacity .4s ease;
}
.btn--shiny::after,
.btn--shiny > .cta-long::before,
.btn--shiny > .cta-short::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  z-index: -2;
  pointer-events: none;
}
/* reflet qui tourne */
.btn--shiny::after {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, var(--c-accent), transparent);
  -webkit-mask-image: radial-gradient(circle at bottom, transparent 40%, #000);
  mask-image: radial-gradient(circle at bottom, transparent 40%, #000);
  opacity: .32;
}
/* lueur intérieure au survol */
.btn--shiny > .cta-long::before,
.btn--shiny > .cta-short::before {
  width: calc(100% + 1rem);
  height: calc(100% + 1rem);
  box-shadow: inset 0 -1ex 2rem 4px var(--c-accent);
  opacity: 0;
  transition: opacity .8s cubic-bezier(.25, 1, .5, 1);
}
.btn--shiny:is(:hover, :focus-visible) {
  color: #fff;
  box-shadow: 0 0 34px -8px rgba(111, 230, 248, .65);
}
.btn--shiny:is(:hover, :focus-visible) .shiny__ring::before {
  background: conic-gradient(transparent 0 40%, var(--c-accent) 58%, #E1FAFF 72%, var(--c-accent) 86%, transparent 99%);
}
.btn--shiny:is(:hover, :focus-visible) > .cta-long::before,
.btn--shiny:is(:hover, :focus-visible) > .cta-short::before { opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .shiny__ring::before { animation: ef-sb-turn 4.5s linear infinite; }
  .btn--shiny::after { animation: ef-sb-turn 4.5s linear infinite; }
}
.motion-paused .shiny__ring::before,
.motion-paused .btn--shiny::after { animation-play-state: paused; }
@keyframes ef-sb-turn { to { rotate: 360deg; } }

/* ---------- Navigation : pastille qui glisse vers la section en cours (Pill Morph Tabs) ---------- */
.nav__indicator { display: none; }
@media (min-width: 901px) {
  .nav { position: relative; }
  .nav__list { position: relative; z-index: 1; }
  .nav__indicator {
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 0;
    height: 34px;
    margin-top: -17px;
    border: 1px solid rgba(111, 230, 248, .28);
    border-radius: 999px;
    background: rgba(111, 230, 248, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    opacity: 0;
    pointer-events: none;
    transition: transform .5s cubic-bezier(.34, 1.4, .64, 1), width .5s cubic-bezier(.34, 1.4, .64, 1), opacity .25s ease;
  }
  .nav__indicator.is-instant { transition: opacity .25s ease; }
  .nav.has-indicator .nav__list a[aria-current="true"] { box-shadow: none; }
}

/* ---------- Glowing Effect (Aceternity) : la bordure s'allume du côté du pointeur ---------- */
.trace, .specs-panel { position: relative; }
@media (hover: hover) and (pointer: fine) {
  .ge::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 2;
    padding: 1.5px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from calc((var(--ge-start, 0) - 40) * 1deg),
      transparent 0deg,
      rgba(111, 230, 248, .25) 14deg,
      #6FE6F8 30deg,
      #E1FAFF 40deg,
      #A78BFA 54deg,
      rgba(167, 139, 250, .2) 68deg,
      transparent 80deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: var(--ge-active, 0);
    transition: opacity .35s ease;
  }
}

/* ---------- Border Beam (hyperiux) : un trait de lumière fait le tour du formulaire ---------- */
.form-panel { position: relative; }
.form-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  padding: 1.5px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--bb-angle),
    transparent 0 72%,
    rgba(111, 230, 248, .5) 84%,
    #E1FAFF 89%,
    rgba(167, 139, 250, .55) 91%,
    transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .6s ease;
}
/* le trait ne tourne que lorsque le formulaire est à l'écran, et s'efface pendant la saisie */
@media (prefers-reduced-motion: no-preference) {
  .form-panel.is-onscreen::before { opacity: 1; animation: ef-bb-spin 8s linear infinite; }
  .form-panel.is-onscreen:focus-within::before { opacity: .25; animation-play-state: paused; }
}
.motion-paused .form-panel::before { animation-play-state: paused; opacity: 0; }
@keyframes ef-bb-spin { to { --bb-angle: 360deg; } }

/* ---------- Grid Beam (cult-ui) : faisceaux qui parcourent les lignes de la fiche technique ---------- */
.gb { position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; }
.gb i {
  position: absolute;
  left: var(--s-5);
  right: var(--s-5);
  height: 9px;
  margin-top: -4.5px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.gb i::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 34%;
  background:
    linear-gradient(90deg, transparent, rgba(111, 230, 248, .45) 22%, rgba(225, 250, 255, .95) 50%, rgba(111, 230, 248, .45) 78%, transparent) center / 100% 1.5px no-repeat,
    radial-gradient(50% 50% at 50% 50%, rgba(111, 230, 248, .28), transparent 72%);
  transform: translateX(-100%);
  animation: ef-gb var(--d, 4s) linear infinite;
  animation-delay: var(--o, 0s);
}
.gb i.is-rev::before { animation-direction: reverse; }
@keyframes ef-gb { to { transform: translateX(300%); } }
.gb { transition: opacity .4s ease; }
.motion-paused .gb { opacity: 0; }
.motion-paused .gb i::before { animation-play-state: paused; }

/* ---------- Tilt Card : la capture de World of Donjon suit le pointeur ---------- */
.work__media.frame { position: relative; }
.tilt__sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  background:
    radial-gradient(circle 120px at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, .07), transparent 70%),
    radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(111, 230, 248, .22), transparent 75%);
  mix-blend-mode: screen;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .work__media.frame.tilt {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .35s cubic-bezier(.23, 1, .32, 1), box-shadow .5s var(--ease-out);
  }
  .work:hover .work__media.frame.tilt {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
  }
  .tilt:hover .tilt__sheen { opacity: 1; }
}

/* ---------- Timeline (Aceternity) : la frise s'allume au fil du défilement ---------- */
.step::before { transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease; }
.step.is-lit::before {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-on-accent);
  box-shadow: 0 0 0 4px rgba(111, 230, 248, .14), 0 0 26px rgba(111, 230, 248, .45);
}
@media (min-width: 961px) {
  .js .steps::after {
    content: "";
    position: absolute;
    top: 19.5px;
    left: 20px;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(111, 230, 248, 0), var(--c-accent) 75%, #E1FAFF);
    box-shadow: 0 0 12px rgba(111, 230, 248, .55);
    transform-origin: left center;
    transform: scaleX(var(--p, 0));
  }
}
@media (max-width: 960px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .step { padding-left: 60px; }
  .step::before { position: absolute; left: 0; top: -8px; margin: 0; }
  .steps::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 12px;
    bottom: 24px;
    height: var(--tl-len, auto);
    width: 1px;
    background: linear-gradient(180deg, var(--c-accent-line), var(--c-line) 80%);
  }
  .js .steps::after {
    content: "";
    position: absolute;
    left: 19.5px;
    top: 12px;
    width: 2px;
    height: var(--tl-len, 0px);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(111, 230, 248, 0), var(--c-accent) 75%, #E1FAFF);
    box-shadow: 0 0 12px rgba(111, 230, 248, .55);
    transform-origin: center top;
    transform: scaleY(var(--p, 0));
  }
}

/* ---------- Toolchain Marquee : la boîte à outils défile en deux sens ---------- */
.toolchain { margin-top: var(--s-8); }
.toolchain__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-line);
}
.toolchain__title { color: var(--c-muted); font-size: var(--fs-small); font-weight: 600; }
.toolchain__row + .toolchain__row { margin-top: var(--s-3); }
.toolchain__track { display: flex; }
.toolchain__group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.toolchain__group li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(23, 28, 48, .9), rgba(17, 21, 38, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  color: var(--c-text);
  font-size: .9375rem;
  white-space: nowrap;
}
.toolchain__group li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 10px rgba(111, 230, 248, .7);
}
.toolchain__row:nth-child(3) .toolchain__group li::before { background: #A78BFA; box-shadow: 0 0 10px rgba(167, 139, 250, .7); }
.toolchain.is-live .toolchain__row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.toolchain.is-live .toolchain__track { width: max-content; animation: ef-marquee var(--dur, 30s) linear infinite; }
.toolchain.is-live .toolchain__group { flex-wrap: nowrap; padding-right: var(--s-3); }
.toolchain.is-live .toolchain__row:nth-child(3) .toolchain__track { animation-direction: reverse; }
.toolchain:hover .toolchain__track,
.toolchain:focus-within .toolchain__track,
.motion-paused .toolchain__track { animation-play-state: paused; }
@keyframes ef-marquee { from { transform: translateX(0); } to { transform: translateX(var(--shift, -50%)); } }

/* Petit bouton pause propre au bandeau (même réglage que celui du haut de page) */
.motion-toggle--mini {
  position: static;
  flex: none;
  justify-content: center;
  width: 44px;
  padding: 0;
}
.motion-toggle--mini .motion-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Light Beam Footer (kedhareswer) : pied de page et nom en très grand ---------- */
.bwf {
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 0;
  container-type: inline-size;
}
.bwf__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bwf__sky > span { position: absolute; display: block; }
.bwf__wash {
  inset: 0;
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(111, 230, 248, .09), transparent 55%),
    radial-gradient(90% 70% at 92% 8%, rgba(167, 139, 250, .07), transparent 60%);
}
.bwf__bands {
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(111, 230, 248, .03) 0 1.6cqw, transparent 1.6cqw 4.2cqw);
  -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(100deg, #000 0%, transparent 55%);
}
.bwf__beam {
  top: -25%;
  left: 0;
  width: 26cqw;
  height: 150%;
  background: linear-gradient(90deg, transparent, rgba(111, 230, 248, .06) 28%, rgba(111, 230, 248, .2) 50%, rgba(111, 230, 248, .05) 64%, transparent);
  filter: blur(16px);
  transform: translateX(var(--bx, 45cqw)) skewX(-28deg);
  will-change: transform;
}
.bwf__glow {
  left: 0;
  top: 0;
  width: 52cqw;
  aspect-ratio: 1;
  margin: -26cqw 0 0 -26cqw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(111, 230, 248, .1), transparent);
  opacity: 0;
  transform: translate(var(--gx, 50cqw), var(--gy, 0px));
  transition: opacity .5s ease;
  will-change: transform;
}
.bwf.is-pointer .bwf__glow { opacity: 1; }

.footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .8fr)); }
.footer-about p { max-width: 34ch; }
.footer-grid .footer-label {
  position: relative;
  margin-bottom: var(--s-3);
  padding-bottom: 12px;
  color: var(--c-accent);
  font: 600 .8125rem/1 var(--font-mono);
  letter-spacing: .02em;
}
.footer-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(111, 230, 248, .55), rgba(111, 230, 248, .12));
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.2, .7, .1, 1) var(--d, 0s);
}
.footer-links a {
  position: relative;
  text-decoration: none;
  transition: color .25s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.footer-links a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--c-text); transform: translateX(12px); }
.footer-links a:hover::before, .footer-links a:focus-visible::before { transform: scaleX(1); }

.bwf__word {
  position: relative;
  margin-top: clamp(24px, 5cqw, 72px);
  height: calc(var(--wf, 17.5cqw) * .86);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.bwf__word span {
  display: inline-block;
  font-size: var(--wf, 17.5cqw);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
  white-space: nowrap;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-color: #1B2038;
  background-image:
    radial-gradient(circle 22cqw at var(--px, 50%) var(--py, 50%), rgba(167, 139, 250, calc(var(--g, 0) * .6)), transparent 70%),
    linear-gradient(118deg,
      transparent calc(var(--b, 58%) - 9%),
      rgba(111, 230, 248, .42) calc(var(--b, 58%) - 1.5%),
      rgba(225, 250, 255, .62) var(--b, 58%),
      rgba(111, 230, 248, .16) calc(var(--b, 58%) + 3.5%),
      transparent calc(var(--b, 58%) + 8%)),
    linear-gradient(180deg, #2C3354, #12162A 78%);
  background-repeat: no-repeat;
  background-size: var(--fw, 100%) var(--fh, 100%), var(--fw, 100%) var(--fh, 100%), 100% 100%;
  background-position: var(--wx, 0px) var(--wy, 0px), var(--wx, 0px) var(--wy, 0px), 0 0;
  transition: translate 1.25s cubic-bezier(.16, .84, .2, 1);
}
.bwf__word span {
  -webkit-mask-image: linear-gradient(180deg, #000 40%, rgba(0, 0, 0, .35) 70%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 40%, rgba(0, 0, 0, .35) 70%, transparent 88%);
}
@media (prefers-reduced-motion: no-preference) {
  .js .bwf:not(.is-in) .bwf__word span { translate: 0 70%; }
  .js .bwf:not(.is-in) .footer-label::after { transform: scaleX(0); }
}
.footer-bottom { margin-top: var(--s-7); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   Charte holographique (30/10/2026)
   Fond bleu nuit, accents irisés cyan → violet → rose. Les couleurs de
   base (jetons du haut de fichier) ont été remplacées ; ce bloc ajoute
   les dégradés irisés, les deux hologrammes et les runes.
   ===================================================================== */
:root {
  --c-violet: #A78BFA;
  --c-pink: #F2A7F8;
  --c-step-bg: #161A33;
  --holo: linear-gradient(100deg, #6FE6F8 0%, #A78BFA 36%, #F2A7F8 64%, #6FE6F8 100%);
  --holo-line: linear-gradient(90deg, rgba(111, 230, 248, .6), rgba(167, 139, 250, .45) 50%, rgba(242, 167, 248, .15));
}
::selection { background: var(--c-violet); color: var(--c-on-accent); -webkit-text-fill-color: var(--c-on-accent); }

/* Titres principaux : nacrés */
.hero h1, .page h1 {
  background: linear-gradient(100deg, #F6F8FF 0%, #DCF6FF 26%, #E9E2FF 52%, #FBE5FF 76%, #F6F8FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__text > h1 { animation: none; }

/* Boutons : film irisé qui glisse au survol */
.btn--primary,
.btn--primary:hover {
  background: var(--holo);
  background-size: 220% 100%;
  color: var(--c-on-accent);
}
.btn--primary {
  background-position: 0% 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(0, 0, 0, .3);
  transition: background-position .9s var(--ease-out), box-shadow .3s ease, transform .1s ease;
}
.btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 4px rgba(167, 139, 250, .18), 0 12px 34px -10px rgba(167, 139, 250, .65);
}
.btn--secondary:hover { border-color: rgba(167, 139, 250, .6); }

/* Panneaux : bordure irisée */
.trace, .specs-panel, .form-panel, .frame {
  background:
    linear-gradient(var(--c-surface), var(--c-surface)) padding-box,
    linear-gradient(155deg, rgba(111, 230, 248, .5), var(--c-line) 30%, var(--c-line) 70%, rgba(242, 167, 248, .42)) border-box;
}
.trace { box-shadow: var(--shadow-panel), 0 0 120px -40px rgba(167, 139, 250, .35); }
.trace__bar span { background: var(--holo); box-shadow: 0 0 10px rgba(167, 139, 250, .55); }
.hero::after { background: radial-gradient(closest-side, rgba(167, 139, 250, .14), rgba(111, 230, 248, .05) 55%, transparent); }
.orb--1 span { background: radial-gradient(closest-side, rgba(111, 230, 248, .075), transparent); }
.orb--2 span { background: radial-gradient(closest-side, rgba(167, 139, 250, .085), transparent); }
.orb--3 span { background: radial-gradient(closest-side, rgba(242, 167, 248, .06), transparent); }
#devis::before { background: radial-gradient(closest-side, rgba(167, 139, 250, .1), transparent); }
.work:hover .work__media.frame { box-shadow: var(--shadow-panel), 0 30px 90px -30px rgba(167, 139, 250, .38); }

/* Engagements : une teinte par carte */
.facts__list li:nth-child(2) .facts__icon { color: var(--c-violet); border-color: rgba(167, 139, 250, .35); background: rgba(167, 139, 250, .1); }
.facts__list li:nth-child(3) .facts__icon { color: var(--c-pink); border-color: rgba(242, 167, 248, .35); background: rgba(242, 167, 248, .09); }
.included li::before { background: var(--holo); }
.service::after { background: linear-gradient(90deg, #6FE6F8, #A78BFA 40%, rgba(242, 167, 248, 0) 75%); }
.skill-list li::before { background: var(--holo); }

/* Frise : étapes allumées et faisceau irisés */
.step.is-lit::before {
  background: var(--holo);
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, .16), 0 0 26px rgba(167, 139, 250, .5);
}
@media (min-width: 961px) {
  .steps::before { background: linear-gradient(90deg, rgba(111, 230, 248, .45), var(--c-line) 70%); }
  .js .steps::after { background: linear-gradient(90deg, rgba(111, 230, 248, 0), #6FE6F8 40%, #A78BFA 75%, #F2A7F8); box-shadow: 0 0 12px rgba(167, 139, 250, .55); }
}
@media (max-width: 960px) {
  .steps::before { background: linear-gradient(180deg, rgba(111, 230, 248, .45), var(--c-line) 80%); }
  .js .steps::after { background: linear-gradient(180deg, rgba(111, 230, 248, 0), #6FE6F8 40%, #A78BFA 75%, #F2A7F8); box-shadow: 0 0 12px rgba(167, 139, 250, .55); }
}

/* Composants 21st.dev aux couleurs irisées */
.nav__indicator {
  border-color: rgba(167, 139, 250, .35);
  background: linear-gradient(100deg, rgba(111, 230, 248, .1), rgba(167, 139, 250, .1), rgba(242, 167, 248, .08));
}
.shiny__ring { background: rgba(167, 139, 250, .24); }
.shiny__ring::before { background: conic-gradient(transparent 0 70%, #6FE6F8 78%, #fff 84%, #A78BFA 90%, #F2A7F8 95%, transparent 99%); }
.btn--shiny:is(:hover, :focus-visible) .shiny__ring::before { background: conic-gradient(transparent 0 30%, #6FE6F8 48%, #E1FAFF 60%, #A78BFA 74%, #F2A7F8 88%, transparent 99%); }
.btn--shiny::after { background: linear-gradient(-50deg, transparent, var(--c-violet), transparent); }
.btn--shiny > .cta-long::before, .btn--shiny > .cta-short::before { box-shadow: inset 0 -1ex 2rem 4px var(--c-violet); }
.btn--shiny { box-shadow: 0 0 26px -10px rgba(167, 139, 250, .55); }
@media (hover: hover) and (pointer: fine) {
  .ge::before {
    background: conic-gradient(from calc((var(--ge-start, 0) - 40) * 1deg),
      transparent 0deg, rgba(111, 230, 248, .3) 12deg, #6FE6F8 26deg, #E1FAFF 36deg, #A78BFA 48deg, #F2A7F8 62deg, rgba(242, 167, 248, .2) 72deg, transparent 80deg);
  }
}
.form-panel::before {
  background: conic-gradient(from var(--bb-angle), transparent 0 70%, rgba(111, 230, 248, .55) 80%, #E1FAFF 86%, rgba(167, 139, 250, .75) 90%, rgba(242, 167, 248, .55) 93%, transparent 96%);
}
.gb i::before {
  background:
    linear-gradient(90deg, transparent, rgba(111, 230, 248, .5) 22%, rgba(225, 250, 255, .95) 50%, rgba(167, 139, 250, .55) 78%, transparent) center / 100% 1.5px no-repeat,
    radial-gradient(50% 50% at 50% 50%, rgba(167, 139, 250, .3), transparent 72%);
}
.tilt__sheen {
  background:
    radial-gradient(circle 120px at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, .07), transparent 70%),
    radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(167, 139, 250, .24), rgba(111, 230, 248, .08) 45%, transparent 75%);
}
.toolchain__group li:nth-child(3n+2)::before { background: var(--c-violet); box-shadow: 0 0 10px rgba(167, 139, 250, .7); }
.toolchain__group li:nth-child(3n)::before { background: var(--c-pink); box-shadow: 0 0 10px rgba(242, 167, 248, .7); }
.toolchain__row:nth-child(3) .toolchain__group li::before { background: var(--c-violet); box-shadow: 0 0 10px rgba(167, 139, 250, .7); }
.toolchain__row:nth-child(3) .toolchain__group li:nth-child(3n+2)::before { background: var(--c-pink); box-shadow: 0 0 10px rgba(242, 167, 248, .7); }
.toolchain__row:nth-child(3) .toolchain__group li:nth-child(3n)::before { background: var(--c-accent); box-shadow: 0 0 10px rgba(111, 230, 248, .7); }

/* Pied de page */
.site-footer::before { background: linear-gradient(90deg, transparent, rgba(111, 230, 248, .55) 35%, rgba(167, 139, 250, .55) 55%, rgba(242, 167, 248, .4) 70%, transparent); }
.bwf__wash {
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(111, 230, 248, .08), transparent 55%),
    radial-gradient(90% 70% at 92% 8%, rgba(167, 139, 250, .1), transparent 60%);
}
.bwf__bands { background: repeating-linear-gradient(90deg, rgba(167, 139, 250, .035) 0 1.6cqw, transparent 1.6cqw 4.2cqw); }
.bwf__beam { background: linear-gradient(90deg, transparent, rgba(111, 230, 248, .06) 28%, rgba(167, 139, 250, .2) 50%, rgba(242, 167, 248, .06) 64%, transparent); }
.bwf__glow { background: radial-gradient(closest-side, rgba(167, 139, 250, .12), transparent); }
.footer-grid .footer-label {
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-label::after { background: var(--holo-line); }
.bwf__word span {
  background-color: #1B2038;
  background-image:
    radial-gradient(circle 22cqw at var(--px, 50%) var(--py, 50%), rgba(167, 139, 250, calc(var(--g, 0) * .6)), transparent 70%),
    linear-gradient(118deg,
      transparent calc(var(--b, 58%) - 9%),
      rgba(111, 230, 248, .42) calc(var(--b, 58%) - 3%),
      rgba(225, 250, 255, .62) var(--b, 58%),
      rgba(167, 139, 250, .42) calc(var(--b, 58%) + 2.5%),
      rgba(242, 167, 248, .2) calc(var(--b, 58%) + 5%),
      transparent calc(var(--b, 58%) + 8%)),
    linear-gradient(180deg, #2C3354, #12162A 78%);
}

/* ---------- Hologramme projeté au-dessus du panneau de chargement ---------- */
.holo-proj {
  position: relative;
  width: 144px;
  height: 180px;
  margin: 0 32px -1px auto;
  pointer-events: none;
}
.holo-proj img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgba(0, 0, 0, .5) 2px 3px);
  mask-image: repeating-linear-gradient(180deg, #000 0 2px, rgba(0, 0, 0, .5) 2px 3px);
}
/* faisceau de projection, étroit sur le panneau, large en haut */
.holo-proj::before {
  content: "";
  position: absolute;
  left: -22%;
  right: -22%;
  top: 6%;
  bottom: 0;
  background: linear-gradient(0deg, rgba(111, 230, 248, .24), rgba(167, 139, 250, .1) 55%, transparent 92%);
  clip-path: polygon(41% 100%, 59% 100%, 100% 0, 0 0);
  mix-blend-mode: screen;
}
/* émetteur posé sur le bord du panneau */
.holo-proj::after {
  content: "";
  position: absolute;
  left: 36%;
  right: 36%;
  bottom: -2px;
  z-index: 2;
  height: 3px;
  border-radius: 50%;
  background: var(--holo);
  box-shadow: 0 0 14px 2px rgba(111, 230, 248, .55);
}
@media (prefers-reduced-motion: no-preference) {
  /* l'apparition se fait sur l'image elle-même : animer la figure l'isolerait du fond (rectangle sombre) */
  .holo-proj img { animation: ef-holo-flicker 7s steps(1, end) infinite, ef-holo-float 6s ease-in-out infinite alternate, ef-holo-in 1.4s .5s ease-out backwards; }
  .holo-proj::before, .holo-proj::after { animation: ef-holo-in 1s .4s ease-out backwards; }
}
.motion-paused .holo-proj img { animation-play-state: paused; }
@keyframes ef-holo-flicker {
  0%, 40%, 44%, 76%, 79%, 100% { opacity: 1; }
  41% { opacity: .7; }
  42% { opacity: .95; }
  43% { opacity: .8; }
  77% { opacity: .82; }
}
@keyframes ef-holo-float { from { translate: 0 0; } to { translate: 0 -5px; } }
@keyframes ef-holo-in { from { opacity: 0; } }
@media (max-width: 960px) {
  .holo-proj { width: 112px; height: 140px; margin-right: 20px; }
}

/* ---------- Carte holographique (À propos) ---------- */
.about__photo { grid-column: 1 / span 5; margin: 0; }
.about__text { grid-column: 7 / -1; }
.holo-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background:
    linear-gradient(var(--c-surface), var(--c-surface)) padding-box,
    linear-gradient(155deg, rgba(111, 230, 248, .65), rgba(167, 139, 250, .35) 45%, rgba(242, 167, 248, .6)) border-box;
  box-shadow: var(--shadow-panel), 0 30px 90px -40px rgba(167, 139, 250, .5);
}
.about__photo.holo-card img { width: 100%; border: 0; border-radius: 0; }
/* film holographique : teinte irisée sur les zones éclairées seulement (mode « color » : les ombres restent noires),
   avec un reflet plus vif qui suit le pointeur */
.holo-card__foil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--fx, 30%) var(--fy, 30%), rgba(255, 255, 255, .5), transparent 45%),
    linear-gradient(125deg, #6FE6F8 0%, #A78BFA 40%, #F2A7F8 70%, #6FE6F8 100%) var(--fx, 30%) var(--fy, 30%) / 220% 220% no-repeat;
  mix-blend-mode: color;
  opacity: .7;
  transition: opacity .4s ease;
}
/* lignes de balayage et voile irisé très léger */
.holo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(225, 250, 255, .05) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, rgba(111, 230, 248, .07), rgba(167, 139, 250, .05) 50%, rgba(242, 167, 248, .07));
  mix-blend-mode: screen;
}
.holo-card:hover .holo-card__foil { opacity: .85; }
.about__card { margin-top: var(--s-6); max-width: var(--measure); }
.about__text .specs dd { text-align: left; }
@media (max-width: 860px) {
  .about__photo, .about__text { grid-column: auto; }
  .about__photo { max-width: 300px; }
}

/* Inclinaison commune (capture et carte) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .holo-card.tilt {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .35s cubic-bezier(.23, 1, .32, 1);
  }
}

/* ---------- Runes : le texte se décode façon Matrix ---------- */
.rn-c { position: relative; }
.rn-c.is-pending { visibility: hidden; }
.rn-c.is-pending::after {
  /* la rune est découpée dans une planche d'images (masque) : en changer ne touche que le dessin,
     pas la mise en page, contrairement à un changement de texte */
  content: "";
  visibility: visible;
  position: absolute;
  left: 50%;
  top: .12em;
  width: .62em;
  height: .87em;
  translate: -50% 0;
  background: currentColor;
  -webkit-mask: url("../img/runes.png") no-repeat;
  mask: url("../img/runes.png") no-repeat;
  -webkit-mask-size: 2400% 100%;
  mask-size: 2400% 100%;
  -webkit-mask-position: calc(var(--ri, 0) * 100% / 23) 0;
  mask-position: calc(var(--ri, 0) * 100% / 23) 0;
  color: var(--c-accent);
  pointer-events: none;
}
.rn > .rn-c:nth-child(3n+2).is-pending::after { color: var(--c-violet); }
.rn > .rn-c:nth-child(3n).is-pending::after { color: var(--c-pink); }
/* le temps que le script prépare le décodage, les textes du haut de page restent masqués
   (sécurité : ils réapparaissent seuls au bout de 2,5 s si le script ne se charge pas) */
.rn-wait :is(.site-header .brand > span, .hero h1, .page h1, .nav__list a, .header-cta > .cta-long, .header-cta > .cta-short, .hero .actions .btn, .trace__title, .trace .status) {
  visibility: hidden;
  animation: ef-rn-failsafe 0s 2.5s forwards;
}
@keyframes ef-rn-failsafe { to { visibility: visible; } }

/* Le haut de page n'isole plus ses calques : sans cela, l'hologramme (mode « screen ») se mélangerait
   à un fond vide et apparaîtrait comme un rectangle sombre. */
.hero { isolation: auto; }
/* Même raison : l'apparition en fondu se fait sur le panneau seul, pas sur la colonne qui porte l'hologramme. */
.hero__trace { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero__trace > .trace { animation: ef-fade 1s .2s var(--ease-out) both; }

}
