/* ============================================================
   GP-AR Architecte Sàrl — styles.css
   Palette : papier calque / encre / bleu technique
   Typo : Space Mono (titres, labels) + Instrument Sans (texte)
   ============================================================ */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/instrument-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/instrument-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-mono-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-mono-700.woff2") format("woff2");
}

:root {
  --paper: #f7f7f4;
  --panel: #ffffff;
  --ink: #14151a;
  --grey: #62655e;
  --line: #d9dad3;
  --blue: #2038c7;
  --blue-soft: rgba(32, 56, 199, 0.08);
  --mono: "Space Mono", ui-monospace, monospace;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--paper);
  background-color: var(--paper);
  /* grille millimétrée très subtile, façon papier technique */
  background-image:
    linear-gradient(rgba(20, 21, 26, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 21, 26, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Accessibilité ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px;
  font-family: var(--mono); font-size: 14px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 247, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--mono); font-weight: 700;
  font-size: 20px; letter-spacing: 0.14em;
  text-decoration: none; display: flex; align-items: baseline; gap: 10px;
}
.brand small {
  font-weight: 400; font-size: 11px; letter-spacing: 0.28em;
  color: var(--grey); text-transform: uppercase;
}
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em;
  text-decoration: none; padding: 8px 12px; border-radius: 3px;
  color: var(--ink);
}
.nav-links a:hover { background: var(--blue-soft); color: var(--blue); }
.nav-links a.cta {
  background: var(--ink); color: #fff;
}
.nav-links a.cta:hover { background: var(--blue); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 3px; padding: 8px 12px; font-family: var(--mono);
  font-size: 13px; cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.02;
}
.hero h1 .accent { color: var(--blue); }
.hero .tagline {
  margin-top: 20px;
  font-size: clamp(18px, 2.4vw, 23px);
  max-width: 34em;
  color: var(--grey);
}
.hero .meta {
  margin-top: 36px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em;
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  color: var(--ink);
}
.hero .meta span::before { content: "— "; color: var(--blue); }

/* ligne de cote (signature graphique) */
.dim-line {
  margin-top: 56px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--blue);
}
.dim-line::before, .dim-line::after {
  content: ""; flex: 1; height: 1px; background: var(--blue);
}
.dim-line::before { position: relative; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-head {
  display: flex; align-items: baseline; gap: 18px; margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--mono); font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700; letter-spacing: 0.04em;
}
.section-head .kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--blue);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Filtres portfolio ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 36px;
}
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-group .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--grey); margin-right: 4px;
}
.filter-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  font-family: var(--mono); font-size: 13px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 15px; cursor: pointer;
  transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn[aria-pressed="true"] {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

@media (max-width: 640px) {
  .filters { flex-direction: column; gap: 16px; }
  .filter-group { flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
  .filter-group .label { margin-right: 0; }
  .filter-btns {
    flex-wrap: nowrap; overflow-x: auto; width: 100%;
    padding-bottom: 4px; scrollbar-width: none;
  }
  .filter-btns::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }
}

/* ---------- Grille projets ---------- */
.projects {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.project {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.project:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 14px 34px rgba(20, 21, 26, 0.08);
}
.project.hidden { display: none; }
.project figure { aspect-ratio: 4 / 3; overflow: hidden; background: #eef0ea; }
.project figure svg { width: 100%; height: 100%; }

.project figure.gallery { position: relative; }
.gallery-track { display: flex; width: 100%; height: 100%; transition: transform .4s ease; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; flex: 0 0 100%; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: rgba(20, 21, 26, 0.45); color: #fff; font-size: 18px; line-height: 1;
  cursor: pointer; opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-nav:hover { background: var(--blue); }
.project figure.gallery:hover .gallery-nav { opacity: 1; }
@media (hover: none) {
  .gallery-nav { opacity: 1; }
}
.gallery-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
}
.gallery-dots .dot {
  width: 6px; height: 6px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255, 255, 255, 0.55); cursor: pointer;
}
.gallery-dots .dot.active { background: #fff; }
.gallery-track img { cursor: zoom-in; }

/* ---------- Visionneuse photo (semi-plein écran) ---------- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 21, 26, 0.92);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 82vw; max-height: 82vh; width: auto; height: auto;
  border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close, .lightbox-nav {
  position: absolute; border: none; background: rgba(255, 255, 255, 0.1);
  color: #fff; cursor: pointer; transition: background .2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--blue); }
.lightbox-close {
  top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  font-size: 22px; line-height: 1;
}
.lightbox-nav {
  top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  border-radius: 50%; font-size: 26px; line-height: 1;
}
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
@media (max-width: 640px) {
  .lightbox-img { max-width: 92vw; max-height: 76vh; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 22px; }
}
.project .body { padding: 20px 22px 24px; flex: 1; }
.project h3 {
  font-family: var(--mono); font-size: 18px; font-weight: 700;
  letter-spacing: 0.03em; margin-bottom: 6px;
}
.project h3 .place {
  display: block; font-size: 13px; font-weight: 500;
  letter-spacing: 0.03em; color: var(--grey); margin-top: 2px;
}
.project h3 .place .canton {
  font-size: 10px; letter-spacing: 0.08em; color: var(--blue);
  border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px;
  margin-left: 2px; vertical-align: 1px;
}
.project p { font-size: 15px; color: var(--grey); }
.project .tags {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px;
}
.project .tags span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
  color: var(--grey);
}
.projects-empty {
  font-family: var(--mono); font-size: 14px; color: var(--grey);
  padding: 32px 0; display: none;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 26px 26px 30px;
}
.service .num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--blue); display: block; margin-bottom: 14px;
}
.service h3 {
  font-family: var(--mono); font-size: 18px; letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.service p { font-size: 15px; color: var(--grey); }

/* ---------- Zone d'intervention ---------- */
.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .zone-grid { grid-template-columns: 1fr; } }
.zone-list { list-style: none; }
.zone-list li {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 16px;
}
.zone-list li strong { font-family: var(--mono); font-size: 17px; min-width: 120px; }
.zone-list li span { color: var(--grey); font-size: 15px; }
.zone-map { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); padding: 12px; }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.portrait {
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: var(--panel); aspect-ratio: 3 / 4;
}
.portrait svg { width: 100%; height: 100%; }
.about h3 { font-family: var(--mono); font-size: 24px; letter-spacing: 0.03em; margin-bottom: 4px; }
.about .role {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 20px;
}
.about p + p { margin-top: 14px; }
.creds { margin-top: 26px; display: grid; gap: 10px; }
.creds div {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  border-left: 2px solid var(--blue); padding-left: 14px;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; }
.contact-info p { color: var(--grey); max-width: 30em; }
.contact-info .lines { margin-top: 28px; font-family: var(--mono); font-size: 14px; line-height: 2.2; letter-spacing: 0.03em; }
.contact-info .lines a { color: var(--ink); text-decoration-color: var(--blue); }
.contact-map {
  flex: 1; margin-top: 20px; min-height: 220px; max-width: 30em;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.contact-map iframe { display: block; width: 100%; height: 100%; }
@media (max-width: 900px) { .contact-map { flex: none; height: 220px; } }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 7px;
}
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--panel); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue);
}
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.autocomplete { position: relative; }
.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  margin: 4px 0 0; padding: 6px; list-style: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 12px 30px rgba(20, 21, 26, 0.12);
  max-height: 240px; overflow-y: auto;
}
.autocomplete-list[hidden] { display: none; }
.autocomplete-list li {
  padding: 9px 10px; border-radius: 3px; cursor: pointer;
  font-family: var(--sans); font-size: 15px;
  display: flex; justify-content: space-between; gap: 10px;
}
.autocomplete-list li .canton {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--grey); align-self: center;
}
.autocomplete-list li:hover,
.autocomplete-list li.active { background: var(--line); }
.autocomplete-list li.active .canton,
.autocomplete-list li:hover .canton { color: var(--ink); }
.field input.invalid { border-color: #c0392b; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--grey); margin-bottom: 22px; }
.consent input { margin-top: 4px; width: auto; }

.btn {
  font-family: var(--mono); font-size: 15px; letter-spacing: 0.06em;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  border-radius: 3px; padding: 14px 30px; cursor: pointer;
  transition: background .18s ease;
}
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn[disabled] { opacity: 0.55; cursor: wait; }
#submit-btn { width: 100%; white-space: nowrap; }

.form-status {
  margin-top: 16px; font-family: var(--mono); font-size: 14px;
  padding: 12px 16px; border-radius: 3px; display: none;
}
.form-status.ok { display: block; background: rgba(32, 199, 96, 0.1); border: 1px solid rgba(32, 160, 90, 0.5); color: #1c6e42; }
.form-status.err { display: block; background: rgba(199, 56, 32, 0.08); border: 1px solid rgba(199, 56, 32, 0.45); color: #92301c; }

/* ---------- Footer cartouche ---------- */
.footer {
  background: var(--ink); color: #efeee9; padding: 0;
}
.cartouche {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 28px;
}
.cartouche-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0;
  border: 1px solid rgba(239, 238, 233, 0.25);
}
@media (max-width: 900px) { .cartouche-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cartouche-grid { grid-template-columns: 1fr; } }
.cartouche-cell {
  padding: 22px 24px; border: 1px solid rgba(239, 238, 233, 0.14);
}
.cartouche-cell .cell-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(239, 238, 233, 0.55);
  display: block; margin-bottom: 10px;
}
.cartouche-cell, .cartouche-cell a { font-family: var(--mono); font-size: 13px; line-height: 1.9; }
.cartouche-cell a { color: #efeee9; text-decoration-color: rgba(239, 238, 233, 0.4); }
.cartouche-cell a:hover { color: #fff; text-decoration-color: var(--blue); }
.social-icon { display: inline-flex; margin-top: 12px; color: #efeee9; }
.social-icon:hover { color: #fff; }
.footer .legal {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-family: var(--mono); font-size: 12px; color: rgba(239, 238, 233, 0.6);
}
.footer .legal a { color: rgba(239, 238, 233, 0.75); }

/* ---------- Bannière cookies ---------- */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 150;
  max-width: 560px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 18px 50px rgba(20, 21, 26, 0.18);
  padding: 20px 22px; display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: 14px; color: var(--grey); margin-bottom: 14px; }
.cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 9px 18px; font-size: 13px; }
.cookie-banner .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.cookie-banner .btn.ghost:hover { border-color: var(--blue); color: var(--blue); background: transparent; }

/* ---------- Pages légales ---------- */
.legal-page { padding: 72px 0 96px; max-width: 760px; }
.legal-page h1 { font-family: var(--mono); font-size: clamp(28px, 4vw, 40px); margin-bottom: 32px; letter-spacing: 0.03em; }
.legal-page h2 { font-family: var(--mono); font-size: 20px; margin: 40px 0 12px; letter-spacing: 0.03em; }
.legal-page p, .legal-page li { color: #3c3e39; }
.legal-page ul { padding-left: 22px; margin-top: 8px; }
.legal-page .back { font-family: var(--mono); font-size: 13px; display: inline-block; margin-bottom: 40px; }

/* ============================================================
   ENRICHISSEMENT VISUEL — v2
   ============================================================ */

/* Sélection & scrollbar signées */
::selection { background: var(--blue); color: #fff; }
html { scrollbar-color: var(--ink) var(--paper); }

/* ---------- Hero : filigrane, croix de repère, entrée orchestrée ---------- */
.hero { overflow: hidden; }
.hero .wrap { position: relative; }

/* filigrane géant façon tampon de plan */
.hero::after {
  content: "GP-AR";
  position: absolute; right: -0.35em; bottom: -0.28em;
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(160px, 26vw, 380px);
  letter-spacing: 0.04em; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(32, 56, 199, 0.12);
  pointer-events: none; user-select: none;
}

/* croix de repère (registration marks) aux coins du hero */
.hero .wrap::before, .hero .wrap::after {
  content: "+"; position: absolute;
  font-family: var(--mono); font-size: 20px; color: var(--blue);
  opacity: 0.55;
}
.hero .wrap::before { top: -48px; left: 24px; }
.hero .wrap::after { top: -48px; right: 24px; }

/* entrée en cascade au chargement */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero h1 { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .tagline { animation: rise .7s .12s cubic-bezier(.2,.7,.2,1) both; }
.hero .meta { animation: rise .7s .24s cubic-bezier(.2,.7,.2,1) both; }
.hero .dim-line { animation: rise .7s .36s cubic-bezier(.2,.7,.2,1) both; }

/* trait bleu qui se dessine sous le H1 */
.hero h1 { position: relative; display: inline-block; padding-bottom: 18px; }
.hero h1::after {
  content: ""; position: absolute; left: 2px; bottom: 0;
  height: 3px; width: 100%; background: var(--blue);
  transform-origin: left; transform: scaleX(0);
  animation: draw .9s .5s cubic-bezier(.6,0,.2,1) forwards;
}
@keyframes draw { to { transform: scaleX(1); } }

/* ---------- Bandeau marquee entre hero et projets ---------- */
.marquee {
  border-bottom: 1px solid var(--line);
  background: var(--ink); color: #efeee9;
  overflow: hidden; padding: 14px 0;
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase; white-space: nowrap;
  animation: scroll 28s linear infinite;
}
.marquee-track span::after { content: "•"; margin-left: 56px; color: var(--blue); filter: brightness(1.8); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Navigation : soulignés animés ---------- */
.nav-links a:not(.cta) { position: relative; background: none; }
.nav-links a:not(.cta)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(.6,0,.2,1);
}
.nav-links a:not(.cta):hover { background: none; color: var(--blue); }
.nav-links a:not(.cta):hover::after { transform: scaleX(1); }

/* ---------- Sections : titres avec règle graduée ---------- */
.section-head { position: relative; padding-bottom: 22px; }
.section-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px;
  background:
    repeating-linear-gradient(90deg,
      var(--line) 0, var(--line) 1px, transparent 1px, transparent 12px);
}
.section-head::before {
  content: ""; position: absolute; left: 0; bottom: 0; height: 9px; width: 72px;
  background:
    repeating-linear-gradient(90deg,
      var(--blue) 0, var(--blue) 1px, transparent 1px, transparent 12px);
}

/* ---------- Projets : zoom doux, index bleu, coins techniques ---------- */
.project { position: relative; }
.project figure { position: relative; }
.project figure svg { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.project:hover figure svg { transform: scale(1.045); }

/* coin technique au survol */
.project::before, .project::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 2px solid var(--blue); opacity: 0;
  transition: opacity .25s ease; pointer-events: none; z-index: 2;
}
.project::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.project::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.project:hover::before, .project:hover::after { opacity: 1; }

.project h3 { transition: color .2s ease; }
.project:hover h3 { color: var(--blue); }

/* apparition en cascade des cartes (fondu seul, sans décalage vertical
   pour éviter un "réajustement" visible si l'utilisateur filtre pendant l'animation) */
.projects .reveal { transform: none; }
.projects .reveal:nth-child(1) { transition-delay: .0s; }
.projects .reveal:nth-child(2) { transition-delay: .08s; }
.projects .reveal:nth-child(3) { transition-delay: .16s; }
.projects .reveal:nth-child(4) { transition-delay: .24s; }
.projects .reveal:nth-child(5) { transition-delay: .32s; }
.projects .reveal:nth-child(6) { transition-delay: .4s; }

/* ---------- Services : numéro filigrane + barre latérale animée ---------- */
.service { position: relative; overflow: hidden; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.service::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--blue); transform: scaleY(0); transform-origin: top;
  transition: transform .3s cubic-bezier(.6,0,.2,1);
}
.service:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,21,26,.07); }
.service:hover::before { transform: scaleY(1); }

/* ---------- Zone : lignes qui s'allument ---------- */
.zone-list li { transition: padding-left .25s ease, border-color .25s ease; border-left: 2px solid transparent; padding-left: 0; }
.zone-list li:hover { border-left-color: var(--blue); padding-left: 16px; }
.zone-map { box-shadow: 0 16px 44px rgba(20,21,26,.06); }

/* ---------- À propos : encadré calque ---------- */
.portrait { position: relative; }
.portrait::after {
  content: ""; position: absolute; inset: 10px;
  border: 1px dashed rgba(32,56,199,.4); pointer-events: none;
}

/* ---------- Formulaire : focus flottant, bouton flèche ---------- */
.field input, .field select, .field textarea { transition: border-color .2s ease, box-shadow .2s ease; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9bbb1; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px var(--blue-soft); }

.btn { position: relative; overflow: hidden; }
.btn::after { content: "→"; margin-left: 10px; display: inline-block; transition: transform .25s ease; }
.btn:hover::after { transform: translateX(5px); }
.cookie-banner .btn.ghost::after { content: none; }

/* ---------- Footer : cellules réactives + fin de page ---------- */
.cartouche-cell { transition: background .25s ease; }
.cartouche-cell:hover { background: rgba(32,56,199,.14); }
.footer .legal { align-items: center; }
.footer .legal::before {
  content: "N 46.3092° — E 6.9006°";
  font-size: 11px; letter-spacing: .18em; color: rgba(239,238,233,.35);
  margin-right: auto;
}
@media (max-width: 700px) { .footer .legal::before { width: 100%; margin-bottom: 6px; } }
.footer .legal .credit { display: inline-flex; align-items: center; gap: 6px; }
.footer .legal .credit .social-icon { margin-top: 0; }
