/* ==========================================================================
   v4 « studio gris » — site.css
   Chrome global (typo, décor, nav, boutons, eyebrow, cartes, pills, formulaires, pied de page)
   + page d'accueil. Chargé après main.css : surcharge uniquement, aucun bleu vif.
   ========================================================================== */

/* Le Customizer injecte un :root { --accent: #2f6fd6; --accent-2: #0f7fa8 } (anciennes couleurs bleues)
   dans le <head> : on réimpose la palette « studio gris » avec une spécificité supérieure. */
html:root {
  --accent: #1a2a4f;
  --accent-2: #2b3f6b;
  --text: #11172a;
}

:root {
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --ink-grad: linear-gradient(150deg, var(--ink-2) 0%, var(--ink) 55%, #0d1325 100%);
}

/* ---------- Typographie globale ---------- */
h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.025em;
}
h1, h2 { font-weight: 700; }
h3 { font-weight: 600; letter-spacing: -0.01em; }
.section__header h1,
.section__header h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
::selection { background: var(--ink); color: var(--on-ink); }

.site-main:focus { outline: none; }
.skip-link {
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--mono);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

/* ---------- Décor « toile de studio » ---------- */
.studio-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.studio-backdrop__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}
.studio-backdrop__glow--a {
  width: min(70vw, 900px);
  aspect-ratio: 1;
  top: -22%;
  right: -12%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 65%);
}
.studio-backdrop__glow--b {
  width: min(60vw, 760px);
  aspect-ratio: 1;
  bottom: -26%;
  left: -16%;
  background: radial-gradient(circle, rgba(19, 27, 49, 0.16), rgba(19, 27, 49, 0) 65%);
}
.studio-backdrop__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(17, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}
@media (prefers-reduced-motion: no-preference) {
  .studio-backdrop__glow--a { animation: studio-drift 28s ease-in-out infinite alternate; }
  .studio-backdrop__glow--b { animation: studio-drift 34s ease-in-out infinite alternate-reverse; }
}
@keyframes studio-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-6vw, 5vh, 0); }
}
/* Ancien décor (s'il subsiste dans un template) : masqué au profit du fond studio */
.particles, .geometric-shapes { display: none !important; }

/* ---------- Navigation ---------- */
.nav {
  background: rgba(178, 176, 184, 0.62);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 1px 0 rgba(17, 23, 42, 0.08);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s;
}
.nav.nav--scrolled {
  background: rgba(186, 184, 192, 0.8);
  box-shadow: 0 1px 0 rgba(17, 23, 42, 0.1), 0 12px 30px -18px rgba(17, 20, 36, 0.45);
}
.nav__brand a { gap: 12px; font-weight: 600; }
.nav__logo {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--ink-grad);
  color: var(--on-ink);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 14px -6px rgba(19, 27, 49, 0.7);
  transition: transform 0.3s var(--ease);
}
.nav__brand a:hover .nav__logo { transform: rotate(-6deg) scale(1.04); }
.nav__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav__tag {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav nav a {
  position: relative;
  text-decoration: none;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
}
.nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.35); }
.nav nav a[aria-current="page"],
.nav nav .current-menu-item > a {
  color: var(--on-ink);
  background: var(--ink);
  font-weight: 500;
  box-shadow: 0 6px 14px -8px rgba(19, 27, 49, 0.8);
}
.nav__toggle {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.35);
  color: var(--ink);
}
@media (max-width: 860px) {
  .nav nav {
    background: rgba(196, 194, 202, 0.94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 16px;
  }
  .nav nav a {
    border-radius: 14px;
    font-family: var(--display);
    font-size: 1.2rem;
    color: var(--text);
  }
  .nav nav li + li { border-top: 1px solid var(--border); }
  .nav nav li:has(> a[aria-current="page"]) + li,
  .nav nav li:has(+ li > a[aria-current="page"]) + li { border-top-color: transparent; }
}
@media (max-width: 380px) {
  .nav__tag { display: none; }
}

/* ---------- Boutons ---------- */
.btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.btn.primary {
  background: var(--ink-grad);
  color: var(--on-ink);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 26px -12px rgba(19, 27, 49, 0.85);
}
.btn.primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 32px -12px rgba(19, 27, 49, 0.9);
}
.btn.ghost,
.btn.btn-ghost {
  background: rgba(255, 255, 255, 0.34);
  border-color: var(--glass-border);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--glass-edge), 0 6px 16px -10px rgba(17, 20, 36, 0.4);
}
.btn.ghost:hover,
.btn.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}
.btn__arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Eyebrow (étiquette de section) ---------- */
.eyebrow {
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-edge);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.eyebrow__num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}
.eyebrow__num::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.lead { color: var(--muted); }

/* ---------- Cartes génériques (verre dépoli) ---------- */
.about__card,
.card,
.skill {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--glass-edge), 0 10px 30px -18px rgba(17, 20, 36, 0.45);
}
.card:hover,
.card:focus-visible,
.about__card:hover,
.skill:hover {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: var(--glass-edge), 0 24px 44px -22px rgba(17, 20, 36, 0.55);
}
.about__card h3,
.card h3,
.skill h3 { color: var(--text); }
.card::after {
  top: 22px; right: 22px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.9rem;
}
.card__icon,
.skill__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 14px -8px rgba(17, 20, 36, 0.5);
  font-size: 1.3rem;
}
.card--ap {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), var(--glass) 70%);
  border-color: var(--glass-border);
}
.about__card.highlight {
  background: var(--ink-grad);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 44px -22px rgba(19, 27, 49, 0.8);
}
.about__card.highlight h3,
.about__card.highlight strong { color: #fff; }
.about__card.highlight p,
.about__card.highlight li { color: var(--on-ink-muted); }
.about__card.highlight:hover { background: var(--ink-grad); border-color: rgba(255, 255, 255, 0.16); }

/* Pills (étiquettes techno) */
.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------- Compétences ---------- */
.skill__percent,
.apropos__skill-percent,
.modal__skill-percent {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
}
.skill__bar,
.apropos__skill-bar,
.modal__skill-bar {
  height: 6px;
  background: rgba(17, 23, 42, 0.12);
  border: 0;
  box-shadow: inset 0 1px 1px rgba(17, 23, 42, 0.12);
}
.skill__bar-fill,
.apropos__skill-bar-fill,
.modal__skill-bar-fill {
  background: linear-gradient(90deg, var(--ink), var(--accent-2));
  position: relative;
}

/* ---------- Formulaires ---------- */
input, textarea, select {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(17, 23, 42, 0.2);
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(19, 27, 49, 0.16);
}
.contact__form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--glass-edge), var(--shadow);
}

/* ---------- Pied de page (encre marine) ---------- */
.footer {
  position: relative;
  margin-top: auto;
  border-top: 0;
  background: var(--ink-grad);
  color: var(--on-ink-muted);
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}
.footer__inner { padding-top: 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
}
.footer p { color: var(--on-ink-muted); }
.footer__links a { color: var(--on-ink); }
.footer__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--on-ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition: background-color 0.2s, border-color 0.2s;
}
.footer__top:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); }
.footer :focus-visible { outline-color: var(--on-ink); }
@media (max-width: 600px) {
  .footer__brand { flex-direction: column; gap: 10px; }
}

/* ==========================================================================
   Page d'accueil
   ========================================================================== */
/* Enveloppe .front (et non .home : WordPress ajoute déjà « home » sur <body>) */
.front { display: block; }

/* ---------- Hero ---------- */
.front .hero {
  /* la bande des technologies reste visible en bas du premier écran */
  min-height: calc(100svh - var(--nav-h) - 58px);
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(72px, 9vw, 112px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(36px, 5vw, 56px);
  width: 100%;
}
.hero__content {
  order: 2;
  align-items: center;
  text-align: center;
  max-width: 640px;
}
.hero__prompt {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-edge);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.hero__prompt-sign { color: var(--accent-2); font-weight: 700; }
.hero__prompt-sep { opacity: 0.5; }
.hero__prompt-tag { color: var(--ink); font-weight: 500; }
.hero__prompt-tag::after {
  content: "";
  display: inline-block;
  width: 7px; height: 1em;
  margin-left: 6px;
  vertical-align: -2px;
  background: var(--ink);
  opacity: 0.75;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__prompt-tag::after { animation: caret 1.1s steps(1) infinite; }
}
@keyframes caret { 50% { opacity: 0; } }

.front .hero__name {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}
.hero__dot { color: var(--accent-2); }
.front .hero__title {
  max-width: 24ch;
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  background: none;
  color: var(--accent);
  -webkit-text-fill-color: currentColor;
  text-wrap: balance;
}
.front .hero__description {
  max-width: 52ch;
  margin: 0 0 30px;
  color: var(--muted);
}
.front .hero__actions { justify-content: center; }

/* Portrait : arche éditoriale + bloc encre décalé */
.hero__photo {
  order: 1;
  position: relative;
  margin: 0;
  width: 140px;
  max-width: 209px;
  isolation: isolate;
  z-index: 0;
}
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50% 50% 22px 22px / 33.2% 33.2% 22px 22px;
  background: var(--ink-grad);
  transform: translate(12px, 12px);
  opacity: 1;
  filter: none;
  box-shadow: 0 30px 50px -24px rgba(19, 27, 49, 0.7);
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 50% 50% 22px 22px / 33.2% 33.2% 22px 22px;
  border: 1px solid var(--accent-line);
  transform: translate(-12px, -12px);
}
.hero__portrait {
  width: 100%;
  aspect-ratio: 209 / 315;
  object-fit: cover;
  border-radius: 50% 50% 22px 22px / 33.2% 33.2% 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: none;
  background: var(--bg);
}
.hero__badge {
  position: absolute;
  left: -18px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 24px -12px rgba(17, 20, 36, 0.55);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    align-items: center;
    gap: clamp(48px, 7vw, 110px);
  }
  .hero__content { order: 1; align-items: flex-start; text-align: left; max-width: none; }
  .hero__prompt { justify-content: flex-start; }
  .front .hero__actions { justify-content: flex-start; }
  .hero__photo { order: 2; width: clamp(170px, 13.5vw, 196px); margin-right: 16px; } /* 2026-10-08 : décalée vers la droite (était 64px) */
  .hero__badge { left: -32px; bottom: 44px; }
}
@media (max-width: 480px) {
  .front .hero__actions { width: 100%; }
}

.hero__grid { position: relative; z-index: 1; }
.scroll-down-indicator { opacity: 0.6; z-index: 1; }

/* ---------- Décor du hero : topologie réseau, anneaux, halos, formes ---------- */
.hero__decor {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}
.hero__blob--light {
  width: 620px; height: 620px;
  right: 2%; top: 50%;
  margin-top: -310px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 68%);
}
.hero__blob--ink {
  width: 520px; height: 520px;
  left: -8%; bottom: -18%;
  background: radial-gradient(circle, rgba(26, 42, 79, 0.2), rgba(26, 42, 79, 0) 68%);
}
.hero__dots {
  position: absolute;
  width: 300px; height: 220px;
  background-image: radial-gradient(rgba(19, 27, 49, 0.32) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
}
.hero__dots--tl { top: 6%; left: 3%; }
.hero__dots--br { bottom: 8%; right: 30%; width: 260px; height: 180px; }

.hero__network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__link {
  stroke: rgba(26, 42, 79, 0.24);
  stroke-width: 1.2;
}
.hero__link--flow {
  stroke: rgba(26, 42, 79, 0.42);
  stroke-dasharray: 2 14;
  stroke-linecap: round;
  stroke-width: 2;
}
.hero__node {
  fill: var(--paper);
  stroke: rgba(19, 27, 49, 0.55);
  stroke-width: 1.4;
}
.hero__node--hub { fill: var(--ink); stroke: rgba(255, 255, 255, 0.85); stroke-width: 2; }
.hero__halo {
  fill: rgba(255, 255, 255, 0.25);
  stroke: rgba(26, 42, 79, 0.25);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
}

.hero__ring {
  position: absolute;
  left: 50%; top: 50%;
  z-index: -3;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__ring--1 { width: 175%; border: 1px solid rgba(26, 42, 79, 0.22); }
.hero__ring--2 { width: 240%; border: 1px dashed rgba(26, 42, 79, 0.22); }
.hero__ring--3 {
  width: 320%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 60%);
}
.hero__ring--2::before {
  content: "";
  position: absolute;
  top: 50%; left: -5px;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6);
}
.hero__ring--1::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
}

.hero__shape { position: absolute; opacity: 0.7; }
.hero__shape--square {
  width: 46px; height: 46px;
  left: 5%; top: 60%;
  border: 1.5px solid rgba(26, 42, 79, 0.35);
  border-radius: 10px;
  transform: rotate(18deg);
}
.hero__shape--plus {
  width: 22px; height: 22px;
  left: 47%; top: 13%;
  background:
    linear-gradient(rgba(26, 42, 79, 0.5), rgba(26, 42, 79, 0.5)) center / 100% 2px no-repeat,
    linear-gradient(rgba(26, 42, 79, 0.5), rgba(26, 42, 79, 0.5)) center / 2px 100% no-repeat;
}
.hero__shape--circle {
  width: 64px; height: 64px;
  left: 56%; bottom: 12%;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 30px -14px rgba(17, 20, 36, 0.4);
}
.hero__shape--tri {
  width: 34px; height: 30px;
  right: 6%; top: 18%;
  background: rgba(26, 42, 79, 0.18);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__link--flow { animation: hero-flow 6s linear infinite; }
  .hero__halo { animation: hero-pulse 5s ease-in-out infinite; }
  .hero__halo:nth-of-type(2n) { animation-delay: -2.5s; }
  .hero__ring--1 { animation: hero-spin 60s linear infinite; }
  .hero__ring--2 { animation: hero-spin 90s linear infinite reverse; }
  .hero__shape--square { animation: hero-float-rot 16s ease-in-out infinite alternate; }
  .hero__shape--plus { animation: hero-float 12s ease-in-out infinite alternate; }
  .hero__shape--circle { animation: hero-float 14s ease-in-out infinite alternate-reverse; }
  .hero__shape--tri { animation: hero-float 18s ease-in-out infinite alternate; }
}
@keyframes hero-flow { to { stroke-dashoffset: -64; } }
@keyframes hero-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.35; }
}
@keyframes hero-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes hero-float { to { transform: translate3d(0, -18px, 0); } }
@keyframes hero-float-rot { to { transform: translate3d(10px, -20px, 0) rotate(48deg); } }

/* Mobile : décor allégé (le texte reste prioritaire) */
@media (max-width: 899px) {
  .hero__network { opacity: 0.55; }
  .hero__dots--br, .hero__shape--plus, .hero__shape--circle { display: none; }
  .hero__shape--square { left: auto; right: 7%; top: 4%; width: 34px; height: 34px; }
  .hero__shape--tri { right: auto; left: 8%; top: 22%; }
  .hero__blob--light { right: 50%; margin-right: -310px; top: 0; margin-top: -120px; }
  .hero__ring--3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__decor *, .hero__ring, .studio-backdrop__glow { animation: none !important; }
}
@media (forced-colors: active) {
  .hero__decor, .hero__ring { display: none; }
}
.mouse { border-color: var(--ink); }
.wheel { background: var(--ink); }

/* ---------- Bande technologies ---------- */
.stack {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.stack__track {
  display: flex;
  width: max-content;
}
.stack__list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stack__list li {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0 18px 28px;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.stack__list li::after {
  content: "";
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--accent);
  opacity: 0.45;
}
@media (prefers-reduced-motion: no-preference) {
  .stack__track { animation: stack-scroll 48s linear infinite; }
  .stack:hover .stack__track { animation-play-state: paused; }
}
@keyframes stack-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .stack { -webkit-mask-image: none; mask-image: none; }
  .stack__track { width: auto; animation: none !important; transform: none !important; }
  .stack__list { flex-wrap: wrap; justify-content: center; padding: 6px var(--gutter); }
  .stack__list li { padding: 8px 0 8px 22px; gap: 22px; }
  .stack__list--clone { display: none; }
}

/* ---------- En-têtes de section (éditoriaux, alignés à gauche) ---------- */
.front .section__header {
  max-width: 1040px;
  text-align: left;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.front .section__header h2 { max-width: 20ch; margin-bottom: 14px; }
.front .section__header .lead { max-width: 58ch; margin: 0; }
@media (min-width: 900px) {
  .front .section__header:has(.lead) {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 56px;
    align-items: end;
  }
  .front .section__header:has(.lead) .eyebrow { grid-column: 1 / -1; justify-self: start; margin-bottom: 18px; }
  .front .section__header:has(.lead) h2 { margin-bottom: 0; }
  .front .section__header:has(.lead) .lead { padding-bottom: 6px; }
}

/* À propos */
.front .about__card { padding: clamp(22px, 2.6vw, 30px); }
.front .about__card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
}
.front .about__card h3::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}
.front .about__card.highlight h3::before { background: var(--on-ink); }
.front .about__card ul { list-style: none; padding: 0; }
.front .about__card li {
  position: relative;
  padding-left: 22px;
}
.front .about__card li::before {
  content: "›";
  position: absolute;
  left: 4px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent-2);
}

/* Projets */
.front .projects .card { padding: clamp(22px, 2.6vw, 28px); min-height: 230px; }
.front .projects .card h3 { font-size: 1.2rem; }
.front .section-cta { margin-top: clamp(28px, 4vw, 44px); }

/* Compétences */
.front .skill { padding: clamp(20px, 2.4vw, 26px); }
.front .skill__icon { margin-bottom: 14px; }
.front .skill__percent { font-size: 0.82rem; }
.front .skill p { font-size: 0.93rem; margin-top: 12px; }

/* ---------- Contact : panneau encre marine ---------- */
.front .contact {
  position: relative;
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  width: calc(100% - 2 * clamp(12px, 3vw, 40px));
  margin: clamp(24px, 4vw, 48px) auto clamp(48px, 7vw, 96px);
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(600px 360px at 85% 0%, rgba(255, 255, 255, 0.09), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(43, 63, 107, 0.55), transparent 70%),
    var(--ink-grad);
  color: var(--on-ink);
  box-shadow: 0 40px 80px -40px rgba(19, 27, 49, 0.85);
  overflow: hidden;
  isolation: isolate;
}
.front .contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 0% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 0% 0%, #000, transparent 70%);
}
.front .contact .section__header { margin-bottom: 28px; }
.front .contact .section__header h2 { color: #fff; }
.front .contact .eyebrow {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  color: var(--on-ink-muted);
}
.front .contact .eyebrow__num { color: #fff; }
@media (min-width: 900px) {
  .front .contact {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
  .front .contact .section__header { margin: 0; padding-top: 8px; }
  .front .contact .section__header h2 { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); max-width: 10ch; }
}
.front .contact__form {
  max-width: none;
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (max-width: 600px) {
  .front .contact__form { padding: 0; background: none; border: 0; box-shadow: none; }
}
.front .contact label {
  color: var(--on-ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.front .contact input,
.front .contact textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.front .contact input::placeholder,
.front .contact textarea::placeholder { color: var(--on-ink-muted); opacity: 0.75; }
.front .contact input:hover,
.front .contact textarea:hover { border-color: rgba(255, 255, 255, 0.3); }
.front .contact input:focus-visible,
.front .contact textarea:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--on-ink);
  box-shadow: 0 0 0 4px rgba(238, 240, 245, 0.16);
}
.front .contact input:user-invalid,
.front .contact textarea:user-invalid { border-color: #f2a3a3; }
.front .contact .form__char-count { color: var(--on-ink-muted); font-family: var(--mono); font-size: 0.75rem; }
.front .contact .btn.primary {
  margin-top: 6px;
  background: var(--paper);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.6);
}
.front .contact .btn.primary:hover { background: #fff; }
.front .contact :focus-visible { outline-color: var(--on-ink); }
.front .contact .form__feedback { color: var(--on-ink); }
.front .contact .form__feedback--success { color: #9fe3c4; }
.front .contact .form__feedback--error { color: #ffb8b8; }
.front .contact .form__feedback--info { color: var(--on-ink); }

/* ---------- Préférences ---------- */
@media (forced-colors: active) {
  .hero__photo::before, .hero__photo::after { display: none; }
  .stack__list li::after { background: CanvasText; }
}
@media print {
  .studio-backdrop, .stack, .hero__badge { display: none !important; }
  .front .contact { background: none; color: #000; box-shadow: none; }
}
