/* ZETA Consulting — descente cinématographique : la scène fait le spectacle, l'interface reste sobre */

/* Polices servies par le site (Geist, licence OFL) : fichiers variables, sous-ensemble latin */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 200 600; font-display: swap; src: url('../assets/fonts/geist-latin.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../assets/fonts/geist-mono-latin.woff2') format('woff2'); }

:root {
  --sun: #004b6e;
  --twilight: #021024;
  --abyss: #00020a;
  --fg: #F4FAFD;
  --muted: rgba(235, 245, 250, 0.7);
  --faint: rgba(235, 245, 250, 0.62); /* ≥ 4,5:1 sur le noir de l'abysse, même en petit */
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #00F0FF;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --container: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --accent: #BFF3FF;
  color-scheme: dark;
}
[data-zone="sunlight"] { --accent: #BFF3FF; }
[data-zone="twilight"] { --accent: #8ECFFF; }
[data-zone="abyss"] { --accent: var(--cyan); }

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--abyss); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--fg);
  /* Repli sans WebGL : la descente en dégradé */
  background: linear-gradient(180deg, #0a6d8f 0%, var(--sun) 7%, var(--twilight) 20%, #010818 32%, var(--abyss) 42%, var(--abyss) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--fg); color: var(--abyss); }

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; text-wrap: balance; } /* pas de mot seul en fin de titre */
p, dd { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 1rem; left: 1rem; z-index: 400;
  padding: 0.75rem 1.25rem; border-radius: 999px;
  background: var(--fg); color: var(--abyss); font-weight: 500;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

:focus-visible { outline: 1px solid var(--fg); outline-offset: 5px; border-radius: 4px; }

/* Scène 3D fixe derrière le contenu */
#abyss { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; }
html.no-webgl #abyss { display: none; }
main, .footer { position: relative; z-index: 1; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Curseur ---------- */
.cursor { display: none; }
html.has-cursor .cursor { display: block; }
.cursor:not(.is-ready) > span { visibility: hidden; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; z-index: 350; pointer-events: none; border-radius: 50%; }
.cursor__dot { width: 5px; height: 5px; background: #fff; }
.cursor__ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: grid; place-items: center;
  transition: width 0.5s var(--ease), height 0.5s var(--ease), background-color 0.3s, border-color 0.3s;
}
.cursor__label { font-family: 'Geist Mono', monospace; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: #001018; opacity: 0; transition: opacity 0.2s; }
.cursor.is-hover .cursor__ring { width: 72px; height: 72px; background: rgba(255, 255, 255, 0.92); border-color: transparent; }
.cursor.is-hover .cursor__label { opacity: 1; }
.cursor.is-hover .cursor__dot { opacity: 0; }

/* ---------- Jauge de profondeur = menu ---------- */
/* Grand écran : rail vertical à droite ; chaque section est un repère cliquable posé à sa place sur la descente */
.gauge {
  --track: 44vh;
  position: fixed; right: clamp(1rem, 2vw, 1.75rem); top: 50%; z-index: 60;
  display: grid; justify-items: end; gap: 0.75rem;
  transform: translateY(-50%);
  text-shadow: 0 1px 2px rgba(0, 20, 32, 0.4);
}
.gauge__head { display: grid; justify-items: end; gap: 0.3rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: right; }
.gauge__hint, .gauge__depth { display: none; }
.gauge__value { font-size: 0.95rem; letter-spacing: 0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.gauge__zone { max-width: 7rem; font-size: 0.6rem; text-align: right; color: var(--faint); }
.gauge__body { position: relative; display: grid; justify-items: end; gap: 1.75rem; }
.gauge__track { position: relative; width: 1px; height: var(--track); background: rgba(255, 255, 255, 0.18); }
.gauge__marker {
  position: absolute; left: 50%; top: 0;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: var(--accent);
  transform: translateY(calc(var(--progress, 0) * var(--track)));
  transition: background-color 0.6s;
}
.gauge__stops { position: absolute; top: 0; right: 0; height: var(--track); }
.gauge__stops li { position: absolute; right: 0; top: calc(var(--at, 0) * var(--track)); transform: translateY(-50%); }
.gauge__stops li:first-child { display: none; } /* rail : la tête de la jauge marque déjà la surface (et « Secteurs » est juste dessous) */
.gauge__stops a { display: flex; align-items: center; gap: 0.55rem; padding: 0.15rem 0; font-size: 0.8rem; line-height: 1.2; white-space: nowrap; color: var(--faint); transition: color 0.3s; }
.gauge__stops a::after { content: ''; width: 9px; height: 1px; background: currentColor; transition: width 0.5s var(--ease), background-color 0.3s; }
.gauge__stops a:hover, .gauge__stops a:focus-visible, .gauge__stops a[aria-current] { color: var(--fg); }
.gauge__stops a[aria-current]::after { width: 18px; background: var(--accent); }

/* ---------- Boutons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 1rem 1.6rem; border-radius: 999px;
  font-weight: 400; line-height: 1; white-space: nowrap;
  transition: color 0.45s var(--ease), border-color 0.45s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform 0.6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--light { background: #fff; color: #00202c; }
.btn--light::before { background: var(--accent); }
.btn--line { border: 1px solid rgba(255, 255, 255, 0.45); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--line::before { background: #fff; }
.btn--line:hover, .btn--line:focus-visible { color: #00202c; }
.btn--small { padding: 0.7rem 1.15rem; font-size: 0.875rem; }

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Mise en page commune ---------- */
.section {
  width: min(100% - 2 * var(--pad), var(--container));
  margin-inline: auto;
}
.section { padding-block: clamp(7rem, 16vw, 13rem); }
.eyebrow { color: var(--accent); margin-bottom: 1.75rem; }
.h2 {
  max-width: 20ch;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  font-size: clamp(2.5rem, 5.6vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 30px rgba(0, 12, 22, 0.35);
}

/* ---------- Hero (0 m) : le nom s'écrit sous l'eau ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(2rem, 7vh, 4.5rem);
  padding: 9vh var(--pad) clamp(2rem, 6vh, 4rem);
  text-align: center;
}
.hero__lockup { display: flex; flex-direction: column; align-items: center; }
.hero__mark {
  width: min(60vw, 900px, 75vh); height: auto; overflow: visible; /* lettres ≤ 40 % de la hauteur d'écran */
  filter: drop-shadow(0 0 22px rgba(60, 200, 255, 0.5)) drop-shadow(0 8px 24px rgba(0, 25, 45, 0.5)); /* halo cyan : lisible sur la surface claire */
}
.hero__mark.is-written .hero__cursor { animation: blink 1.1s steps(1) infinite; }
.hero__sub { margin-top: clamp(0.5rem, 1.2vw, 1.25rem); padding-left: 0.9em; font-size: clamp(0.72rem, 1vw, 1rem); letter-spacing: 0.9em; color: rgba(255, 255, 255, 0.78); }
.hero__foot { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hero__tag { max-width: 46ch; font-size: clamp(1rem, 1.35vw, 1.25rem); color: #fff; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 25, 40, 0.5); }
/* le temps que main.js prépare l'écriture : rien n'apparaît d'un coup (garde-fou à 6 s dans le <head>) */
html.js:not(.ready) .hero__lockup, html.js:not(.ready) .hero__foot { opacity: 0; } }

/* ---------- Secteurs (90 m) ---------- */
.sectors__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sector {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 18px;
  background: rgba(0, 22, 38, 0.45);
  transition: background-color 0.5s, border-color 0.5s;
}
.sector:hover { background: rgba(0, 30, 52, 0.58); border-color: rgba(255, 255, 255, 0.3); }
.sector__num { color: var(--accent); }
.sector__name { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.03em; }
.sector__body { display: grid; gap: 1rem; margin: 0; }
.sector__body dt { color: var(--accent); font-size: 0.62rem; margin-bottom: 0.35rem; }
.sector__body dd, .sector__text { margin: 0; color: rgba(255, 255, 255, 0.86); }
.sector__ref { margin-top: auto; padding-top: 0.5rem; font-size: 0.62rem; color: var(--faint); transition: color 0.3s; }
a.sector__ref:hover, .sector--cta:hover .sector__ref { color: var(--fg); }
.sector--cta { background: rgba(191, 243, 255, 0.08); }
.sector--cta:hover { background: rgba(191, 243, 255, 0.15); }
.sector--cta .sector__ref { color: var(--accent); }

/* ---------- Expertises (200 m) ---------- */
.services__lead { max-width: 52ch; margin: calc(-1 * clamp(1.5rem, 3vw, 2.5rem)) 0 clamp(3rem, 5vw, 4.5rem); font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.card {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: rgba(2, 16, 36, 0.62); /* sans flou : il serait recalculé à chaque image au-dessus de la scène */
  transition: background-color 0.5s;
}
.card:hover { background: rgba(8, 32, 64, 0.6); }
.card__ref { margin-top: auto; padding-top: 1rem; font-size: 0.65rem; color: var(--faint); transition: color 0.3s; }
a.card__ref:hover, .card--cta:hover .card__ref { color: var(--fg); }
.card--cta { background: linear-gradient(rgba(142, 207, 255, 0.1), rgba(142, 207, 255, 0.1)), #04172e; }
.card--cta:hover { background: linear-gradient(rgba(142, 207, 255, 0.18), rgba(142, 207, 255, 0.18)), #04172e; }
.card--cta .card__num, .card--cta .card__ref { color: var(--accent); }
.card__num { color: var(--accent); }
.card__title { font-size: clamp(1.35rem, 1.75vw, 1.6rem); line-height: 1.08; letter-spacing: -0.03em; }
.card p { color: var(--muted); max-width: 42ch; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.tags li { padding: 0.35rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.65rem; color: var(--faint); }

/* ---------- Technologies ---------- */
.tech { overflow: hidden; padding: clamp(2rem, 4vw, 3rem) 0; border-block: 1px solid var(--line); }
/* Sans boucle JS (pas de JS, mouvement réduit) : la liste passe à la ligne, rien n'est coupé */
.marquee { display: flex; }
.marquee__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.25rem clamp(1rem, 2.5vw, 2.25rem); padding: 0 var(--pad);
  font-size: clamp(1.6rem, 4vw, 3.5rem); font-weight: 200; letter-spacing: -0.04em; line-height: 1.15;
  color: rgba(255, 255, 255, 0.8);
}
.tech.is-looping .marquee { white-space: nowrap; }
.tech.is-looping .marquee__inner { flex-wrap: nowrap; flex-shrink: 0; padding: 0 clamp(1rem, 2.5vw, 2.25rem) 0 0; font-size: clamp(2.2rem, 6vw, 5.5rem); }
.marquee__inner i { font-style: normal; color: var(--accent); opacity: 0.7; }
.marquee--reverse .marquee__inner span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4); }

/* ---------- Réalisations (1000 m+) ---------- */
.projects__list { border-top: 1px solid var(--line); }
.project {
  position: relative;
  display: grid; grid-template-columns: 8rem minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  border-bottom: 1px solid var(--line);
}
.project::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--cyan), transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease);
}
.project:hover::before { transform: scaleX(1); }
.project__meta { display: grid; gap: 0.4rem; align-content: start; color: var(--faint); }
.project__meta span:first-child { color: var(--accent); }
.project__title { font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.035em; }
.project__client { margin-top: 0.9rem; color: var(--faint); font-size: 0.65rem; }
.project__body { display: grid; gap: 1.1rem; align-content: start; }
.project__body > p { color: var(--muted); }
.project__facts { display: grid; gap: 0.35rem; font-size: 0.95rem; }
.project__facts li { display: flex; gap: 0.7rem; align-items: baseline; }
.project__facts li::before { content: ''; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); transform: translateY(-3px); }

/* ---------- Méthode ---------- */
.method__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.step { position: relative; display: grid; gap: 0.75rem; align-content: start; padding-top: 1.75rem; border-top: 1px solid var(--line); transition: opacity 0.7s var(--ease); }
.step::after {
  content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 1px;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease);
}
.step.is-active::after, .method:not(.is-live) .step::after { transform: scaleX(1); }
.method.is-live .step:not(.is-active) { opacity: 0.35; }
.step__num { color: var(--accent); }
.step__title { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; }
.step p { color: var(--muted); font-size: 0.975rem; }

/* ---------- Pourquoi ZETA ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.bento__card { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.75rem; padding: clamp(1.5rem, 2.5vw, 2.25rem); background: rgba(0, 4, 12, 0.72); }
.bento__card--code { grid-column: span 2; grid-row: span 2; justify-content: space-between; }
.bento__card--wide { grid-column: 1 / -1; }
.bento__card h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); letter-spacing: -0.03em; line-height: 1.1; }
.bento__card p { color: var(--muted); max-width: 46ch; }
.bento__code {
  order: -1; margin: 0 0 2rem; padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--line); border-radius: 12px;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem); line-height: 1.8; text-transform: none; letter-spacing: 0;
  white-space: pre-wrap; color: rgba(255, 255, 255, 0.85);
}
.c-k { color: #FF6FAE; } .c-f { color: var(--cyan); } .c-s { color: #C8FF7A; }

/* ---------- Engagements ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.stat { padding-top: 1.75rem; border-top: 1px solid var(--line); }
.stat__value {
  display: flex; align-items: flex-start;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 4.4vw, 4.4rem); font-weight: 200; letter-spacing: -0.05em; line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.22);
}
.stat p { color: var(--muted); max-width: 22ch; font-size: 0.975rem; }
.stat__visual { display: flex; }
.odo__fix { white-space: pre; }
.odo { display: inline-block; height: 1em; overflow: hidden; }
.odo__col { display: block; }
.odo__col span { display: block; height: 1em; }

/* ---------- Contact ---------- */
.contact__title { max-width: 14ch; font-size: clamp(3rem, 8vw, 8rem); margin-bottom: 2rem; }
.contact__lead { color: var(--muted); max-width: 40ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.mail-card { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.mail-card__label { color: var(--faint); }
.mail {
  font-size: clamp(1.6rem, 4.4vw, 3.6rem); font-weight: 200; letter-spacing: -0.035em; line-height: 1.1;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.7s var(--ease);
  padding-bottom: 0.12em;
}
.mail:hover, .mail:focus-visible { background-size: 100% 1px; }
.mail-card__copy {
  display: none; appearance: none; cursor: pointer;
  padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
html.js .mail-card__copy { display: inline-flex; } /* sans JS, le bouton ne servirait à rien */
.mail-card__copy:hover { border-color: var(--fg); color: var(--fg); }

/* ---------- Footer ---------- */
.footer { overflow: hidden; padding: clamp(4rem, 10vw, 8rem) var(--pad) 2rem; }
.footer__mark { display: grid; place-items: center; margin-bottom: clamp(3rem, 7vw, 5rem); }
.footer__mark svg {
  width: clamp(160px, 24vw, 320px); height: auto; overflow: visible;
  /* lueur bioluminescente, qui respire doucement */
  filter: drop-shadow(0 0 10px rgba(0, 220, 255, 0.55)) drop-shadow(0 0 46px rgba(0, 150, 255, 0.35));
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 50% { filter: drop-shadow(0 0 16px rgba(0, 220, 255, 0.75)) drop-shadow(0 0 70px rgba(0, 150, 255, 0.45)); } }
.footer__cursor-blink { animation: blink 1.1s steps(1) infinite; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); color: var(--faint); }
.footer__row a { transition: color 0.3s; }
.footer__row a:hover { color: var(--fg); }
.footer__logo { display: flex; align-items: center; gap: 0.75rem; color: var(--fg); }
.footer__logo svg { height: clamp(28px, 2.2vw, 38px); width: auto; overflow: visible; }
.footer__sub { color: var(--faint); font-size: clamp(0.56rem, 0.5vw, 0.7rem); letter-spacing: 0.3em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.9rem; }
.footer__links a { color: rgba(255, 255, 255, 0.78); }
.footer__row--meta { border-top: 0; padding-top: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 250;
  padding: 0.85rem 1.3rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.95); color: #001018;
  transform: translate(-50%, 200%); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.4s;
  pointer-events: none;
  text-transform: none; letter-spacing: 0.02em;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (min-width: 1600px) { :root { --container: 1200px; } } /* grands écrans : moins de vide sur les côtés */

/* Sous 1440 px, le rail empiéterait sur le contenu : la jauge devient une pastille en bas à droite, qui ouvre le menu */
@media (max-width: 1439px) {
  .gauge { top: auto; bottom: 1rem; right: 1rem; transform: none; text-shadow: none; }
  .gauge__head {
    grid-template-columns: auto auto; column-gap: 0.85rem; row-gap: 0.1rem; align-items: center;
    min-height: 44px; padding: 0.5rem 0.85rem; border-radius: 12px; cursor: pointer;
    background: rgba(0, 10, 20, 0.5); border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .gauge__hint { display: block; grid-row: 1 / 3; padding-right: 0.85rem; border-right: 1px solid var(--line); color: var(--fg); }
  .gauge__value, .gauge__zone { grid-column: 2; }
  .gauge__value { font-size: 0.8rem; }
  .gauge__body { display: none; }
  .gauge--open .gauge__body {
    display: grid; justify-items: stretch; gap: 0.15rem;
    position: absolute; right: 0; bottom: calc(100% + 0.5rem); width: min(17rem, calc(100vw - 2rem));
    padding: 0.6rem; border-radius: 16px;
    background: rgba(0, 10, 20, 0.92); border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .gauge__track { display: none; }
  .gauge__stops, .gauge__stops li { position: static; height: auto; transform: none; }
  .gauge__stops li:first-child { display: block; }
  .gauge__stops a { justify-content: space-between; gap: 1rem; padding: 0.7rem 0.65rem; border-radius: 10px; font-size: 1rem; color: rgba(255, 255, 255, 0.85); }
  .gauge__stops a::after { display: none; }
  .gauge__stops a[aria-current] { background: rgba(255, 255, 255, 0.08); }
  .gauge__depth { display: inline; font-size: 0.65rem; color: var(--faint); }
  .gauge__cta { justify-content: center; margin-top: 0.45rem; }
  .footer { padding-bottom: 6rem; } /* rien d'important sous la pastille */
}

@media (max-width: 1023px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .project__meta { grid-auto-flow: column; justify-content: start; gap: 1.25rem; }
}

@media (max-width: 767px) {
  .hero__mark { width: 84vw; }
  .hero__sub { padding-left: 0.6em; letter-spacing: 0.6em; }
  /* petits textes lisibles sur téléphone */
  .card__ref, .sector__ref, .project__client, .mail-card__label, .tags li { font-size: 0.72rem; }

  .cards, .sectors__grid { grid-template-columns: minmax(0, 1fr); }
  .card:not(.card--cta) { background: rgba(2, 16, 36, 0.82); }
  .method__steps { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__card--code { grid-column: auto; grid-row: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html.reduced *, html.reduced *::before, html.reduced *::after { animation: none !important; transition: none !important; }

/* ---------- Couleurs forcées (contraste élevé) : curseur natif ---------- */
@media (forced-colors: active) {
  .cursor { display: none !important; }
  html.has-cursor, html.has-cursor * { cursor: auto !important; }
}
