/* CITY VRD — feuille de style générée par build_seo.py.
   NE PAS ÉDITER À LA MAIN : modifier assets/css/partials/*.css
   puis relancer `python build_seo.py`. */

/* ==== 01-base.css ==== */
/* Design tokens + base reset */

/* Polices auto-hébergées (variable, sous-ensemble latin — couvre les
   caractères français). Remplace le chargement via fonts.googleapis.com /
   fonts.gstatic.com : aucune requête tierce ni donnée visiteur envoyée à
   Google (conformité RGPD/CNIL), et un chargement plus rapide (2 fichiers
   same-origin au lieu d'une feuille de style + police cross-origin). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-variable-latin.woff2") format("woff2");
  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: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-variable-latin.woff2") format("woff2");
  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 {
  --navy-900: #061327;
  --navy-800: #0a1f3d;
  --navy-700: #0f2f5a;
  --navy-600: #173f74;
  --navy-500: #235a9c;
  --navy-400: #4a7fbf;
  --green-700: #145334;
  --green-600: #1e7245;
  --green-500: #2a8a55;
  --green-400: #46b079;
  --green-300: #8fd3ad;
  --paper: #f4efe4;
  --paper-2: #ece6d6;
  --paper-3: #e2dccc;
  --cream: #faf7ef;
  --white: #ffffff;
  --ink: #0a1426;
  --ink-soft: #2a3a55;
  --ink-mute: #5a6a82;
  --ink-faint: #8a96a8;
  --line: rgba(10, 31, 61, 0.12);
  --line-soft: rgba(10, 31, 61, 0.07);
  --line-strong: rgba(10, 31, 61, 0.22);
  --grad-brand: linear-gradient(135deg, #173f74 0%, #1e7245 100%);
  --grad-brand-soft: linear-gradient(
    135deg,
    rgba(23, 63, 116, 0.1),
    rgba(30, 114, 69, 0.1)
  );
  --font-sans:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);
  --radius: 18px;
  --radius-sm: 10px;
  --t-fast: 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-med: 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-slow: 0.9s cubic-bezier(0.16, 0.84, 0.24, 1);
  --pat-grid:
    linear-gradient(to right, rgba(10, 31, 61, 0.06) 1px, transparent 1px) 0
      0/40px 40px,
    linear-gradient(to bottom, rgba(10, 31, 61, 0.06) 1px, transparent 1px) 0
      0/40px 40px;
  --pat-grid-fine:
    linear-gradient(to right, rgba(10, 31, 61, 0.045) 1px, transparent 1px) 0
      0/8px 8px,
    linear-gradient(to bottom, rgba(10, 31, 61, 0.045) 1px, transparent 1px) 0
      0/8px 8px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.city-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.city-bg--3d {
  z-index: 0;
  opacity: 0;
  transition: none;
}

.city-cursor {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  /* Au-dessus de .cookie-consent (1100) pour que le réticule reste visible
     par-dessus le bandeau au lieu de disparaître derrière. */
  z-index: 1150;
  pointer-events: none;
  display: block;
  mix-blend-mode: difference;
}

/* Le réticule ne remplace le curseur natif que sur un pointeur fin (cf. la
   règle `cursor: none` de 02-components.css). Sur mobile ce calque plein
   écran ne montre donc jamais rien — mais son mix-blend-mode force le
   compositeur à mélanger tout l'écran à chaque frame. city/index.js n'alloue
   pas non plus son canvas dans ce cas. */
@media (hover: none), (pointer: coarse) {
  .city-cursor {
    display: none;
  }
}

/* Fond fixe « table à dessin » : base paper + trame bleue façon plan +
   lumière chaude. Toujours présent DERRIÈRE le canvas animé — il sert donc à
   la fois de premier rendu instantané, de repli sans JavaScript, et de fond
   de secours quand le gouverneur de perf coupe l'animation (body.is-bg-static,
   posé par city/index.js sur les machines qui ne peuvent pas suivre). */
.city-static {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--paper);
  background-image:
    radial-gradient(
      135% 105% at 26% 8%,
      rgba(255, 253, 244, 0.6),
      rgba(255, 253, 244, 0) 52%
    ),
    radial-gradient(
      120% 130% at 108% 116%,
      rgba(23, 63, 116, 0.14),
      rgba(23, 63, 116, 0) 55%
    ),
    radial-gradient(
      95% 120% at -12% 108%,
      rgba(30, 114, 69, 0.1),
      rgba(30, 114, 69, 0) 52%
    ),
    linear-gradient(to right, rgba(30, 60, 100, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 60, 100, 0.06) 1px, transparent 1px),
    linear-gradient(158deg, #f4efe4 0%, #ece6d6 58%, #e0d9c7 100%);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    56px 56px,
    56px 56px,
    100% 100%;
}

/* Vignette douce, comme la lumière d'une table à dessin. */
.city-static::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 120% at 50% 42%,
    transparent 58%,
    rgba(48, 42, 28, 0.16) 100%
  );
}

/* Repli critique : on estompe le canvas animé (dernière frame figée) pour
   révéler proprement le fond fixe. */
body.is-bg-static .city-bg,
body.is-bg-static .city-cursor {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.header,
.mobile-menu,
main,
.footer,
.modal {
  position: relative;
  z-index: 2;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--green-400);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--paper-2);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-700);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy-500);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .04  0 0 0 0 .08  0 0 0 0 .15  0 0 0 .9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

body.is-site-content-hidden .header,
body.is-site-content-hidden main,
body.is-site-content-hidden .mobile-menu,
body.is-site-content-hidden .modal,
body.is-site-content-hidden .works-modal,
body.is-site-content-hidden .grain {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==== 02-components.css ==== */
/* Loader, header, buttons, modal, mobile menu */

/* Le curseur natif est remplacé par le réticule dessiné sur le canvas
   (city/scene.js), uniquement sur les dispositifs à pointeur fin. */
@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button {
    cursor: none;
  }
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background:
    radial-gradient(
      circle at 50% 44%,
      rgba(255, 255, 255, 0.92),
      rgba(250, 247, 239, 0.72) 34%,
      rgba(236, 230, 214, 0.96) 72%
    ),
    var(--paper);
  display: grid;
  place-items: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s;
}

.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pat-grid);
  opacity: 0.6;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  color: var(--ink-soft);
}

.loader__logo {
  position: relative;
  width: min(760px, 96vw);
  height: clamp(320px, 44vw, 460px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.loader__logo img {
  position: relative;
  z-index: 2;
  width: clamp(440px, 58vw, 600px);
  max-height: clamp(240px, 32vw, 340px);
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(10, 31, 61, 0.18));
  animation: loaderLogo 1.8s ease-in-out infinite;
}

.loader__road {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(420px, 56vw, 560px);
  height: clamp(150px, 22vw, 220px);
  transform: translateX(-50%);
  color: var(--green-600);
  opacity: 0.9;
  z-index: 1;
}

.loader__road path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: loaderRoad 2.2s cubic-bezier(0.16, 0.84, 0.24, 1) infinite;
}

.loader__road path + path {
  stroke: var(--navy-600);
  stroke-width: 1.4;
  animation-delay: 0.18s;
}

.loader__bar {
  width: min(420px, 82vw);
  height: 2px;
  background: rgba(10, 31, 61, 0.12);
  overflow: hidden;
}

.loader__bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--grad-brand);
  transition: width 0.2s ease-out;
}

.loader__pct {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
}

.loader__pct i {
  font-style: normal;
  opacity: 0.5;
  margin-left: 2px;
}

@keyframes loaderLogo {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.025);
  }
}

@keyframes loaderRoad {
  0% {
    stroke-dashoffset: 260;
    opacity: 0;
  }

  18%,
  72% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: -260;
    opacity: 0;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition:
    background var(--t-med),
    backdrop-filter var(--t-med),
    padding var(--t-med),
    border-color var(--t-med);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  padding: 12px var(--pad);
  background: rgba(244, 239, 228, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand img {
  height: 48px;
  transition: height var(--t-med);
}

.header.is-stuck .brand img {
  height: 38px;
}

.nav {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -16px rgba(10, 31, 61, 0.25);
}

.nav a {
  position: relative;
  padding: 9px 18px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  color: var(--ink-soft);
  transition:
    color var(--t-fast),
    background var(--t-fast);
}

.nav a:hover {
  color: var(--ink);
  background: rgba(10, 31, 61, 0.05);
}

.nav a.is-active {
  color: #fff;
  background: var(--grad-brand);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  position: relative;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition:
    transform var(--t-fast),
    top var(--t-fast),
    opacity var(--t-fast);
}

.burger span:nth-child(1) {
  top: 17px;
}

.burger span:nth-child(2) {
  top: 25px;
}

.burger.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  overflow: hidden;
  transition:
    transform var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast),
    background var(--t-fast),
    box-shadow var(--t-fast);
  isolation: isolate;
}

.btn:active {
  transform: translateY(1px);
}

.btn__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.btn__icon svg {
  width: 100%;
  height: 100%;
  transition: transform var(--t-fast);
}

.btn:hover .btn__icon svg {
  transform: translateX(4px);
}

.btn--primary {
  color: #fff;
  background: var(--grad-brand);
  box-shadow:
    0 12px 30px -14px rgba(23, 63, 116, 0.55),
    0 6px 18px -10px rgba(30, 114, 69, 0.35);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #1e7245 0%, #173f74 100%);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 34px -14px rgba(23, 63, 116, 0.6),
    0 8px 20px -10px rgba(30, 114, 69, 0.42);
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--green-600);
  color: var(--green-700);
  background: #fff;
}

.btn--link {
  padding: 13px 4px;
  border-radius: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn--link:hover {
  border-bottom-color: var(--green-600);
  color: var(--green-700);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.35s ease,
    visibility 0.35s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 38, 0.45);
  backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 28px 28px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.45s cubic-bezier(0.16, 0.84, 0.24, 1);
  box-shadow: 0 30px 80px -30px rgba(10, 31, 61, 0.5);
  overflow: hidden;
}

.modal__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pat-grid-fine);
  opacity: 0.5;
  pointer-events: none;
}

.modal__panel > * {
  position: relative;
}

.client-modal__hero {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}

.client-modal__hero h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2rem);
}

.client-modal__hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.client-modal__panel {
  width: min(360px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px);
}

/* Iframe du formulaire de connexion CiTY VRD Cloud (variante embarquée à
   fond transparent, stylée par le cloud pour reproduire exactement les
   champs .client-login-form ci-dessous). La hauteur est ajustée en JS via
   postMessage - la valeur ici n'est qu'un point de départ. */
.client-login-embed {
  display: grid;
  gap: 6px;
  margin: 0 auto;
  max-width: 320px;
}

.client-login-embed iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  background: transparent;
}

.client-login-embed__fallback {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-mute);
  text-align: center;
}

.client-login-embed__fallback a {
  color: var(--green-700);
  text-decoration: underline;
}

.client-login-form {
  display: grid;
  gap: 14px;
  text-align: left;
  margin: 0 auto;
  max-width: 320px;
}

.client-login-form__row {
  display: grid;
  gap: 10px;
}

.client-login-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.client-login-form input {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid rgba(10, 31, 61, 0.14);
  border-radius: 14px;
  background: rgba(244, 239, 228, 0.9);
  color: var(--ink);
  font: inherit;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast),
    background var(--t-fast);
}

.client-login-form input:hover {
  background: rgba(255, 255, 255, 0.95);
}

.client-login-form input:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(42, 138, 85, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.client-login-form__submit {
  min-height: 48px;
  margin-top: 0;
}

.client-login-form__status {
  min-height: 1.5em;
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.client-login-form__status.is-error {
  color: hsl(4 72% 47%);
}

.modal.is-open .modal__panel {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  z-index: 2;
}

.modal__close:hover {
  background: var(--cream);
}

.modal__close svg {
  width: 16px;
  height: 16px;
}

.modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  color: var(--green-600);
}

.modal__icon--error {
  color: #b13838;
}

.modal__panel h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 12px;
  color: var(--ink);
}

.modal__panel p {
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  display: grid;
  place-items: center;
  padding: 96px var(--pad) calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.4s,
    visibility 0.4s;
}

.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pat-grid);
  opacity: 0.5;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu nav {
  display: grid;
  gap: 18px;
  text-align: center;
  position: relative;
}

.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.mobile-menu nav a:hover {
  color: var(--green-700);
}

.mobile-menu nav .btn {
  font-size: 14px;
  justify-self: center;
  margin-top: 8px;
}

.content-visibility-toggle {
  position: fixed;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(10, 31, 61, 0.55);
  transition:
    transform var(--t-fast),
    color var(--t-fast);
}

.content-visibility-toggle:hover {
  transform: scale(1.08);
  color: rgba(10, 31, 61, 0.86);
}

/* Au doigt, 30 px de côté se ratent une fois sur deux. On élargit la zone
   sans grossir l'icône — 40 px laissent encore passer le bandeau cookies,
   ancré à 60 px du bas (cf. 10-consent.css). */
@media (hover: none), (pointer: coarse) {
  .content-visibility-toggle {
    width: 40px;
    height: 40px;
  }
}

.content-visibility-toggle__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
}

.content-visibility-toggle__icon svg {
  width: 100%;
  height: 100%;
}

.content-visibility-toggle .eye-off {
  opacity: 0;
  transition: opacity var(--t-fast);
}

.content-visibility-toggle .eye-open {
  opacity: 1;
  transition: opacity var(--t-fast);
}

.content-visibility-toggle.is-hidden .eye-off {
  opacity: 1;
}

.content-visibility-toggle.is-hidden .eye-open {
  opacity: 0;
}

/* Entre 900 et 1120 px, la barre doit loger cinq entrées entre le logo et le
   bouton « Accès Clients » : on resserre les pastilles plutôt que de basculer
   prématurément sur le menu burger. */
@media (max-width: 1120px) {
  .nav {
    gap: 2px;
  }

  .nav a {
    padding: 9px 12px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .burger {
    display: block;
  }
}

/* ==== 03-layout.css ==== */
/* Sections, hero, reveals, road divider */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.about,
.skills,
.works,
.contact {
  max-width: none;
  margin: 0;
  padding: clamp(80px, 12vw, 160px) calc((100vw - var(--max)) / 2 + var(--pad));
}

.section__header {
  margin-bottom: clamp(40px, 6vw, 80px);
  position: relative;
  padding: 28px 32px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px -30px rgba(10, 31, 61, 0.2);
}

/* Libellé de section façon cartouche de plan : trait de rappel + mono. */
.section__num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 24px;
}

.section__num::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--green-600);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5.6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  max-width: 18ch;
}

.section__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--green-600), var(--navy-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px var(--pad) 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__content {
  position: relative;
  max-width: min(1680px, calc(100vw - (var(--pad) * 2)));
  width: 100%;
  margin: 0 auto;
  z-index: 3;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6.8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  max-width: 17ch;
  color: var(--ink);
  text-shadow: none;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(
    120deg,
    var(--green-700),
    var(--green-600) 48%,
    var(--navy-700)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.6px rgba(10, 31, 61, 0.18);
  filter: drop-shadow(0 0 10px rgba(250, 247, 239, 0.88));
}

.hero__title .amp {
  font-style: normal;
  font-family: "Times New Roman", serif;
  font-weight: 400;
  color: var(--green-600);
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.16, 0.84, 0.24, 1);
}

.hero__title .line.is-in > span {
  transform: translateY(0);
}

.hero__lede {
  max-width: 72ch;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--ink-soft);
  margin: 0 0 36px;
  text-shadow: none;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Panorama : la section 3D elle-même, puis une section de contemplation
   plein écran laissant la vue 3D visible avant le pied de page. */
.panorama--hold {
  min-height: 140vh;
  min-height: 140svh;
  padding: 0;
}

@media (max-height: 820px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 108px;
    padding-bottom: 44px;
    justify-content: flex-start;
  }

  .hero__title {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.98;
    max-width: 14ch;
    margin-bottom: 18px;
  }

  .hero__lede {
    max-width: 58ch;
    font-size: 15px;
    margin-bottom: 22px;
  }

  .hero__cta {
    gap: 14px;
    margin-bottom: 26px;
  }
}

@media (max-height: 680px) {
  .hero {
    padding-top: 84px;
    padding-bottom: 12px;
  }

  .hero__title {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 0.96;
    max-width: 14ch;
    margin-bottom: 10px;
  }

  .hero__lede {
    font-size: 14.5px;
    margin-bottom: 14px;
  }

  .hero__cta {
    gap: 12px;
    margin-bottom: 14px;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 42px, 0) scale(0.985);
  transition:
    opacity 1.2s ease,
    transform 1.35s cubic-bezier(0.16, 0.84, 0.24, 1);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal-words] .word {
  display: inline-block;
  overflow: hidden;
}

[data-reveal-words] .word > span {
  display: inline-block;
  transform: translateY(118%);
  transition: transform 1.2s cubic-bezier(0.16, 0.84, 0.24, 1);
  transition-delay: var(--d, 0ms);
}

[data-reveal-words] em .word > span {
  background: linear-gradient(120deg, var(--green-600), var(--navy-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-reveal-words].is-in .word > span {
  transform: translateY(0);
}

/* Accessibilité + robustesse : pour les visiteurs qui demandent moins
   d'animation, tout le contenu porté par les révélations (hero, ledes,
   titres, cartes) s'affiche immédiatement, sans transform ni transition —
   il n'attend plus l'ajout de « is-in » par le JavaScript. */
@media (prefers-reduced-motion: reduce) {
  .hero__title .line > span,
  [data-reveal],
  [data-reveal-words] .word > span {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

@media (max-width: 1440px) {
  .about,
  .skills,
  .works,
  .contact {
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
}

@media (max-width: 1100px) {
  .hero__title {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1;
    max-width: 12ch;
    margin-bottom: 24px;
  }

  .hero__lede {
    max-width: 52ch;
  }
}

@media (max-width: 700px) {
  .hero__title {
    font-size: clamp(32px, 9.8vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    max-width: 12ch;
    margin-bottom: 24px;
  }

  .hero__lede {
    /* 36ch coupait le chapô à ~8 mots par ligne alors que la colonne fait
       déjà toute la largeur de l'écran : on laisse le texte respirer. */
    font-size: 16px;
    line-height: 1.6;
    max-width: none;
  }

  /* Le cartouche de section prenait 32 px de marge de chaque côté sur une
     colonne qui n'en fait que 335 : le titre partait sur quatre lignes. */
  .section__header {
    padding: 22px 20px;
    margin-bottom: 32px;
  }

  .section__num {
    margin-bottom: 18px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }
}

/* ==== 04-about.css ==== */
/* About section */
.about {
  background: transparent;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.about__text {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 20px 60px -30px rgba(10, 31, 61, 0.2);
}

.about__text p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 60ch;
}

.about__text strong {
  color: var(--ink);
  font-weight: 600;
}

.about__text em {
  color: var(--green-700);
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(transparent 60%, rgba(70, 176, 121, 0.25) 60%);
}

.about__list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.about__list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

.about__list li span {
  color: var(--green-600);
  font-weight: 600;
}

.about__card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow:
    0 30px 60px -30px rgba(10, 31, 61, 0.25),
    0 12px 24px -16px rgba(10, 31, 61, 0.15);
}

.about__card::before,
.about__card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 2;
}

.about__card::before {
  top: 14px;
  left: 14px;
  border-top: 1.5px solid var(--green-600);
  border-left: 1.5px solid var(--green-600);
}

.about__card::after {
  bottom: 14px;
  right: 14px;
  border-bottom: 1.5px solid var(--green-600);
  border-right: 1.5px solid var(--green-600);
}

.card__bg {
  position: absolute;
  inset: 0;
  background: var(--pat-grid-fine);
  opacity: 0.6;
}

.card__inner {
  position: relative;
  padding: 40px 36px;
}

.card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-strong);
}

.card__row:first-of-type {
  padding-top: 0;
}

.card__row span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

.card__row strong {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  font-size: 15px;
}

.card__chip {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(30, 114, 69, 0.3);
  background: rgba(30, 114, 69, 0.08);
  color: var(--green-700);
  font-size: 12.5px;
  font-family: var(--font-mono);
}

.card__chip svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .about__text {
    padding: 24px 20px;
  }

  .card__inner {
    padding: 26px 22px;
  }

  /* Libellé / valeur côte à côte finissaient par se chevaucher sur les
     lignes longues : on empile, le libellé en majuscules servant d'étiquette. */
  .card__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .card__row strong {
    text-align: left;
    font-size: 16px;
  }
}

/* ==== 05-skills.css ==== */
/* Skills section */
.skills {
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}

.skill {
  position: relative;
  padding: 44px;
  background: var(--white);
  transition: background var(--t-med);
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill:nth-child(2n) {
  border-right: 0;
}

.skill:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.skill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pat-grid-fine);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}

.skill::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 4px;
  background: var(--grad-brand);
  transition: width var(--t-med);
}

.skill:hover {
  background: var(--cream);
}

.skill:hover::before {
  opacity: 0.8;
}

.skill:hover::after {
  width: 100%;
}

.skill > * {
  position: relative;
}

.skill__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--green-700);
  margin-bottom: 28px;
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(30, 114, 69, 0.25);
  border-radius: 4px;
}

.skill__icon {
  color: var(--navy-700);
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  transition:
    color var(--t-med),
    transform var(--t-med);
}

.skill:hover .skill__icon {
  color: var(--green-600);
  transform: translateY(-4px);
}

.skill h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 36px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.skill p {
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 50ch;
}

.skill ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.skill ul li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
}

.skill ul li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green-500);
  flex: none;
  transform: rotate(45deg);
}

@media (max-width: 800px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }

  .skill {
    border-right: 0;
  }

  .skill:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .skill:last-child {
    border-bottom: 0;
  }
}

/* Les cartes sont calibrées pour deux colonnes larges : sur mobile, 44 px de
   marge intérieure de chaque côté mangeaient un quart de la largeur utile et
   hachaient les listes techniques sur trois lignes. */
@media (max-width: 700px) {
  .skill {
    padding: 28px 22px;
  }

  .skill__num {
    margin-bottom: 20px;
  }

  .skill__icon {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
  }

  .skill p {
    margin-bottom: 18px;
  }

  .skill ul li {
    font-size: 13.5px;
    padding: 11px 0;
  }
}

/* ==== 06-works.css ==== */
﻿/* ══════════════════════════════════════════════════════════════════
   06 — WORKS / RÉFÉRENCES
   Grid 4 cols × 3 rows, pagination, project cards, modal
══════════════════════════════════════════════════════════════════ */

/* ── Section shell ─────────────────────────────────────────── */
.works {
  background: transparent;
}

/* ── Grid ───────────────────────────────────────────────────── */
.works__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .works__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 740px) {
  .works__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .works__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ── Project card ───────────────────────────────────────────── */
.wcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.45s;
  opacity: 0;
  transform: translateY(16px);
}

.wcard--entering {
  animation: wcardIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes wcardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wcard:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 60px -16px rgba(10, 31, 61, 0.22);
  border-color: var(--line-strong);
}

/* Media area */
.wcard__media {
  position: relative;
  width: calc(100% - 20px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  margin: 10px 10px 0;
  border-radius: calc(var(--radius) - 4px);
}

.wcard__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wcard__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 19, 39, 0) 40%,
    rgba(6, 19, 39, 0.55) 100%
  );
  transition: opacity 0.45s;
}

.wcard:hover .wcard__media-overlay {
  opacity: 0.7;
}

.wcard__year {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
}

/* Card body */
.wcard__body {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.wcard__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wcard__subtitle {
  font-size: 11.5px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.wcard__tag {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  border: 1px solid rgba(30, 114, 69, 0.3);
  border-radius: 4px;
  padding: 2px 7px;
  background: rgba(30, 114, 69, 0.06);
}

/* CTA footer */
.wcard__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--line-soft);
  transition: color 0.35s;
}

.wcard__cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  flex-shrink: 0;
}

.wcard:hover .wcard__cta {
  color: var(--green-600);
}

.wcard:hover .wcard__cta svg {
  transform: translateX(4px);
}

/* La typographie des cartes est calibrée pour quatre colonnes étroites. En
   une seule colonne pleine largeur (< 480 px), un titre à 14 px et un
   sous-titre à 11,5 px se lisent mal au bras tendu : on remonte l'échelle et
   on accorde une ligne de plus au sous-titre, la place ne manque plus.
   Ce bloc doit rester APRÈS les règles de base : même spécificité, c'est le
   dernier déclaré qui gagne. */
@media (max-width: 480px) {
  .wcard__body {
    gap: 6px;
  }

  .wcard__title {
    font-size: 17px;
  }

  .wcard__subtitle {
    font-size: 13.5px;
    -webkit-line-clamp: 3;
  }

  .wcard__tag {
    font-size: 11px;
    padding: 3px 9px;
  }

  .wcard__cta {
    font-size: 11.5px;
    padding: 12px 18px 14px;
  }

  .wcard__year {
    font-size: 12px;
  }
}

/* Error state */
.works__error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-mute);
  padding: 40px 0;
}

/* ── Pagination ─────────────────────────────────────────────── */
.works__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.wpag__status {
  font-size: 0.95rem;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  min-width: 3.5rem;
  text-align: center;
}

.wpag__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s,
    opacity 0.3s;
}

.wpag__btn svg {
  width: 18px;
  height: 18px;
}

.wpag__btn:hover:not([disabled]) {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

.wpag__btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

/* ══════════════════════════════════════════════════════════════
   WORKS MODAL
══════════════════════════════════════════════════════════════ */
.works-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.works-modal.is-open {
  pointer-events: all;
  opacity: 1;
}

.works-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 19, 39, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.works-modal__panel {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 120px -20px rgba(6, 19, 39, 0.6);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.works-modal.is-open .works-modal__panel {
  transform: translateY(0) scale(1);
}

/* Close button */
.works-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(6, 19, 39, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.25s;
}

.works-modal__close:hover {
  background: rgba(6, 19, 39, 0.85);
  transform: rotate(90deg);
}

.works-modal__close svg {
  width: 18px;
  height: 18px;
}

/* Scrollable content */
#worksModalContent {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
}

/* Media hero */
.wmodal__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  flex-shrink: 0;
  overflow: hidden;
}

.wmodal__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wmodal__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 19, 39, 0.1) 0%,
    rgba(6, 19, 39, 0.7) 100%
  );
}

.wmodal__media-info {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wmodal__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(6, 19, 39, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.wmodal__category {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  flex: 1;
}

.wmodal__year-badge {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: var(--grad-brand);
  padding: 4px 12px;
  border-radius: 6px;
}

/* Body */
.wmodal__body {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 600px) {
  .wmodal__body {
    padding: 20px 20px 28px;
  }
}

.wmodal__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wmodal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}

.wmodal__subtitle {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.5;
}

.wmodal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wmodal__tag {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green-600);
  border: 1px solid rgba(30, 114, 69, 0.35);
  border-radius: 5px;
  padding: 3px 10px;
  background: rgba(30, 114, 69, 0.07);
}

/* Description */
.wmodal__desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  padding: 20px 24px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green-500);
}

/* Metrics grid */
.wmodal__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.wmodal__metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.wmodal__metric-label {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.wmodal__metric-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

/* Missions */
.wmodal__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wmodal__section-label {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.wmodal__missions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wmodal__mission {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--navy-600);
  background: rgba(23, 63, 116, 0.08);
  border: 1px solid rgba(23, 63, 116, 0.2);
  border-radius: 5px;
  padding: 4px 12px;
}

/* Stakeholders */
.wmodal__stakeholders {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wmodal__stakeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 40px;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

.wmodal__stakeholder:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 16px -4px rgba(10, 31, 61, 0.12);
}

.wmodal__stakeholder-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wmodal__stakeholder-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wmodal__stakeholder-initials {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.02em;
}

.wmodal__stakeholder-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Body scroll lock */
body.modal-lock {
  overflow: hidden;
}

/* ==== 07-contact.css ==== */
/* Contact section */
.contact {
  background: transparent;
  border-top: 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.form {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 24px 70px -34px rgba(10, 31, 61, 0.26);
}

/* Champ piège anti-spam : hors écran, jamais focusable. */
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

.field input,
.field select,
.field textarea {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  outline: none;
  transition:
    border-color var(--t-fast),
    background var(--t-fast),
    box-shadow var(--t-fast);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  font-family: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-600);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(70, 176, 121, 0.18);
}

.form__status {
  min-height: 22px;
  font-size: 13.5px;
  color: var(--green-700);
  margin: 0;
  font-family: var(--font-mono);
}

.form__status.is-error {
  color: #b13838;
}

.contact__aside {
  display: grid;
  gap: 20px;
}

.contact__block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  position: relative;
  box-shadow: 0 18px 48px -32px rgba(10, 31, 61, 0.28);
}

.contact__block span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.contact__block a,
.contact__block p {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.contact__block a:hover {
  color: var(--green-700);
}

.contact__client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--grad-brand);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med);
}

.contact__client::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e7245, #173f74);
  opacity: 0;
  transition: opacity var(--t-med);
}

.contact__client:hover::after {
  opacity: 1;
}

.contact__client > * {
  position: relative;
  z-index: 2;
}

.contact__client strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
}

.contact__client em {
  font-style: normal;
  font-size: 12.5px;
  opacity: 0.85;
}

.contact__client svg {
  width: 24px;
  height: 24px;
  flex: none;
  transition: transform var(--t-med);
}

.contact__client:hover svg {
  transform: translateX(6px);
}

.contact__client--blockstyle {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 18px 48px -32px rgba(10, 31, 61, 0.28);
  overflow: visible;
}

.contact__client--blockstyle::after {
  content: none;
}

.contact__client--blockstyle em {
  color: var(--ink-mute);
  opacity: 1;
}

.contact__client--blockstyle:hover {
  color: var(--green-700);
}

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form {
    padding: 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  /* Une adresse e-mail longue débordait de sa carte plutôt que de passer à
     la ligne (pas d'espace où couper). */
  .contact__block a,
  .contact__block p {
    overflow-wrap: anywhere;
  }

  /* E-mail et téléphone sont les deux liens les plus utiles de la page : en
     ligne, ils n'offraient qu'une cible de 20 px de haut. En bloc, toute la
     largeur de la carte devient cliquable. */
  .contact__block span {
    margin-bottom: 2px;
  }

  .contact__block a {
    display: block;
    padding: 8px 0;
  }

  .contact__client {
    padding: 20px;
  }
}

/* ==== 07-faq.css ==== */
/* FAQ section (accordéon <details>) */
.faq {
  background: transparent;
  border-top: 0;
}

.faq__list {
  display: grid;
  gap: 14px;
  max-width: 880px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 18px 48px -32px rgba(10, 31, 61, 0.28);
  overflow: hidden;
  transition: border-color var(--t-fast);
}

.faq__item[open] {
  border-color: var(--green-600);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink);
  transition: color var(--t-fast);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  color: var(--green-700);
}

.faq__question svg {
  width: 20px;
  height: 20px;
  flex: none;
  transform: rotate(90deg);
  transition: transform var(--t-med);
}

.faq__item[open] .faq__question svg {
  transform: rotate(-90deg);
}

.faq__answer {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  max-width: 72ch;
}

@media (max-width: 600px) {
  .faq__question {
    padding: 16px 18px;
  }

  .faq__answer {
    padding: 0 18px 18px;
  }
}

/* ==== 08-footer.css ==== */
/* Marquee, footer, motion preferences */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  background: var(--paper-2);
}

.marquee__track {
  display: flex;
  gap: 40px;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  animation: marquee 32s linear infinite;
}

.marquee__track i {
  color: var(--green-600);
  font-style: normal;
  font-size: 0.55em;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.33%);
  }
}

.footer {
  background: var(--ink);
  color: #c8d2e3;
  padding: 28px var(--pad) 16px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0
      0/40px 40px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0
      0/40px 40px;
  pointer-events: none;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
  height: 132px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer__top p {
  color: #8a96b0;
  max-width: 50ch;
  margin: 0;
}

.footer__bottom {
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  /* #6f7d97 sur le fond encre ne donnait que 4,3:1, sous le seuil AA pour un
     texte de cette taille. Cette teinte monte à ~6,6:1. */
  color: #8f9cb5;
  font-family: var(--font-mono);
}

.footer__bottom .footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer__bottom nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer__bottom a:hover {
  color: var(--green-300);
}

@media (max-width: 700px) {
  /* 132 px de logo sur une colonne de 335 px écrasaient le texte du pied de
     page contre le bord. */
  .footer__logo {
    height: 84px;
  }

  .footer__top {
    gap: 20px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* Liens serrés les uns contre les autres : on élargit la zone tactile
     sans changer l'apparence. */
  .footer__bottom a {
    display: inline-block;
    padding: 9px 0;
  }

  .footer__bottom nav {
    gap: 8px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero__title .line > span,
  [data-reveal-words] .word > span,
  [data-reveal] {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ==== 09-legal.css ==== */
/* Legal pages */
body.legal-page-body {
  background: var(--paper);
  color: var(--ink);
}

.legal-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-page-shell .header {
  position: sticky;
  top: 0;
  justify-content: flex-end;
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.legal-page {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) var(--pad) 72px;
  flex: 1;
}

.legal-page__logo {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.legal-page__logo img {
  height: clamp(100px, 14vw, 180px);
  width: auto;
  filter: drop-shadow(0 18px 26px rgba(10, 31, 61, 0.16));
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--green-600);
  font-weight: 600;
  text-decoration: none;
}

.legal-page__back:hover {
  color: var(--green-700);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  margin: 0 0 16px;
}

.legal-page p,
.legal-page li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.legal-page__intro {
  margin-bottom: 24px;
  max-width: 70ch;
}

.legal-page section {
  margin-top: 32px;
}

.legal-page h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--ink);
}

.legal-page h3 {
  font-size: 1rem;
  margin: 14px 0 8px;
  color: var(--ink);
}

.legal-page ul {
  padding-left: 1.2rem;
}

.legal-page__signature {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.legal-page-shell .footer {
  margin-top: auto;
}

@media (max-width: 700px) {
  .legal-page {
    padding-inline: 20px;
  }
}

/* ==== 10-consent.css ==== */
/* Bandeau de consentement cookies (Google Analytics) — discret et non
   bloquant : pas de fond assombri, le reste de la page reste utilisable
   pendant son affichage (cf. assets/js/features/consent.js). */
.cookie-consent {
  position: fixed;
  right: calc(14px + env(safe-area-inset-right, 0px));
  /* Dégage le bouton .content-visibility-toggle, ancré dans le même coin
     (bottom:14px/right:14px, 30px de haut — 40px au doigt) : le bandeau doit
     rester au-dessus sans le recouvrir. */
  bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  width: min(360px, calc(100vw - 28px));
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -24px rgba(10, 31, 61, 0.45);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--t-med),
    transform var(--t-med);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: none;
}

.cookie-consent__text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.cookie-consent__text a {
  color: var(--green-700);
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
}

.cookie-consent__actions .btn {
  padding: 9px 16px;
  font-size: 12.5px;
  gap: 6px;
}
