/* ==========================================================================
   GYMS — Sécurité privée · Lyon
   Style « Opérationnel » — noir et or
   ========================================================================== */

/* Polices hébergées sur le site (licence SIL Open Font License) */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #0a0c0f;
  --bg-2: #0f1318;
  --bg-3: #141a21;
  --line: #1d232b;
  --line-2: #2b333d;
  --text: #eef1f4;
  --text-2: #c5ccd4;
  --muted: #9aa5b1;
  --muted-2: #6f7a86;
  --accent: #d4a94f;
  --accent-hover: #e6c06e;
  --gold-grad: linear-gradient(135deg, #ecd089 0%, #d4a94f 45%, #a97b2e 100%);
  --accent-ink: #0a0c0f;
  --ok: #5bd68a;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --maxw: 1180px;
  --header-h: 76px;
  --cut: 12px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--cond);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

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

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

section[id], [id].anchor { scroll-margin-top: calc(var(--header-h) + 16px); }

.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
@media (min-width: 640px) { .container { width: min(100% - 3rem, var(--maxw)); } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Étiquette technique « // 01 — ... » */
.code {
  display: inline-flex; flex-wrap: wrap; gap: 0.3rem 1rem;
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.code span { color: var(--muted-2); }

/* Grille de fond */
.grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Équerres de visée */
.brk { position: absolute; width: 26px; height: 26px; border: 2px solid var(--accent); pointer-events: none; }
.brk-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.brk-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.brk-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.brk-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  font-family: var(--cond); font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.btn-primary {
  background: var(--gold-grad); color: var(--accent-ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

.btn-dark {
  background: var(--accent-ink); color: var(--text);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.btn-dark:hover { background: #1b2027; }

.btn-primary:focus-visible, .btn-dark:focus-visible { clip-path: none; }
.btn-sm { padding: 0.75rem 1.1rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 15, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.8); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 42px; height: 42px; mix-blend-mode: screen; filter: contrast(1.12); }
.brand-name {
  display: block;
  font-family: var(--cond); font-size: 1.85rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1;
}
.brand-name { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag {
  display: block; margin-top: 0.2rem;
  color: var(--muted-2); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
}

.site-nav ul { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  position: relative; display: block; padding: 0.55rem 0.85rem;
  color: var(--muted);
  font-family: var(--cond); font-size: 1rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; transition: color 0.2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav a[aria-current]::after { transform: scaleX(1); }
.site-nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; }
  .site-nav ul { flex-wrap: wrap; padding-bottom: 0.75rem; }

  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 0.75rem 1rem 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.8);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; flex-wrap: nowrap; padding: 0; }
  .js .site-nav a { padding: 1rem 0.5rem; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
  .js .site-nav a::after { display: none; }
  .js .site-nav a[aria-current] { color: var(--accent); }
  .js body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
  .js .site-nav .nav-cta { display: block; margin-top: 1rem; }
  .js .site-nav .nav-cta a { border: 0; text-align: center; }
  .brand-tag { display: none; }
}

/* --------------------------------------------------------------------------
   Hero (accueil)
   -------------------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; top: -320px; right: -260px; width: 820px; height: 820px;
  background: radial-gradient(circle, rgba(212, 169, 79, 0.13), transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-frame { position: absolute; inset: -1.5rem 0 -1.5rem auto; width: 40%; pointer-events: none; }
@media (max-width: 900px) { .hero-frame { display: none; } }

.hero h1 { margin: 0 0 2rem; font-size: clamp(3.4rem, 11vw, 7.4rem); line-height: 0.88; }
.hero h1 .h1-kicker {
  display: block; margin-bottom: 1.1rem;
  color: var(--text-2); font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: 0.14em; line-height: 1.2;
}
.hero h1 em { font-style: normal; color: var(--accent); }
@supports (-webkit-text-stroke: 2px white) {
  .hero h1 em { color: transparent; -webkit-text-stroke: 2px var(--accent); }
}

.hero-row {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: end;
}
.hero-row .stats { justify-self: start; }

.hero-lead { max-width: 48ch; margin: 0 0 2rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.stats { display: grid; grid-template-columns: repeat(3, auto); border: 1px solid var(--line); background: rgba(10, 12, 15, 0.6); }
.stats div {
  padding: 1rem 1.4rem; border-right: 1px solid var(--line);
  color: var(--muted); font-family: var(--cond); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2;
}
.stats div:last-child { border-right: 0; }
.stats b { display: block; margin-bottom: 0.3rem; color: var(--text); font-size: 1.55rem; letter-spacing: 0.02em; }
@media (max-width: 520px) {
  .stats div { padding: 0.85rem 0.8rem; font-size: 0.75rem; }
  .stats b { font-size: 1.15rem; }
}

.hero-emblem {
  position: absolute; z-index: 0; right: max(1.5rem, calc((100% - var(--maxw)) / 2 + 3rem)); top: 50%; transform: translateY(-50%);
  width: clamp(260px, 30vw, 400px);
  mix-blend-mode: screen; filter: contrast(1.15);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}
@media (max-width: 1100px) { .hero-emblem { opacity: 0.18; width: 300px; } }
@media (max-width: 700px) { .hero-emblem { display: none; } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }

.section-head { max-width: 760px; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.12rem; }

/* Cartes de prestations */
.svc-grid {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

.svc {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem 1.9rem 1.75rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  text-decoration: none; transition: background-color 0.25s;
}
.svc::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.svc:hover { background: var(--bg-3); }
.svc:hover::before { transform: scaleX(1); }
.svc .code { margin-bottom: 0.9rem; }
.svc h3 { margin-bottom: 0.75rem; font-size: 1.95rem; font-weight: 700; }
.svc p { flex: 1; margin: 0 0 1.5rem; color: var(--muted); font-size: 1rem; }
.svc .more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent); font-family: var(--cond); font-size: 0.98rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.svc .more svg { width: 16px; height: 16px; transition: transform 0.2s; }
.svc:hover .more svg { transform: translateX(4px); }

/* Secteurs */
.sectors {
  display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
@media (min-width: 640px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
.sector { padding: 1.6rem 1.6rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sector .idx { display: block; margin-bottom: 0.6rem; color: var(--muted-2); font-family: var(--mono); font-size: 0.75rem; }
.sector h3 { margin-bottom: 0.4rem; font-size: 1.45rem; font-weight: 700; }
.sector p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Méthode */
.method-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1000px) { .method-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4rem; } }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: 4.2rem 1fr; gap: 0 1.25rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: "0" counter(step); counter-increment: step; grid-row: span 2;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent);
  font-family: var(--cond); font-size: 3.4rem; font-weight: 800; line-height: 0.9;
}
@supports not (-webkit-text-stroke: 1px white) { .step::before { color: var(--accent); } }
.step h3 { margin-bottom: 0.4rem; font-size: 1.5rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted); }

/* Main courante (illustration) */
.logbook { position: relative; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--bg-2); }
.logbook-inner { padding: 0.25rem 0; }
.logbook-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.4rem; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.logbook-head b { display: block; color: var(--text); font-weight: 500; }
.status {
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  padding: 0.3rem 0.6rem; border: 1px solid rgba(91, 214, 138, 0.35); color: #9fe0b4;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.2s infinite; }
.logbook ol { margin: 0; padding: 0.5rem 1.4rem; list-style: none; }
.logbook li {
  display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 1rem; align-items: start;
  padding: 0.85rem 0; border-bottom: 1px dashed var(--line-2);
}
.logbook li:last-child { border-bottom: 0; }
.log-time { color: var(--accent); font-family: var(--mono); font-size: 0.85rem; padding-top: 0.1rem; }
.log-what { margin: 0; font-weight: 600; line-height: 1.35; }
.log-detail { display: block; margin-top: 0.2rem; color: var(--muted-2); font-size: 0.88rem; font-weight: 400; }
.log-tag { padding: 0.1rem 0.45rem; border: 1px solid rgba(91, 214, 138, 0.35); color: #9fe0b4; font-family: var(--mono); font-size: 0.7rem; }
.log-tag abbr { text-decoration: none; }
.logbook figcaption { padding: 0.8rem 1.4rem; border-top: 1px solid var(--line); color: var(--muted-2); font-family: var(--mono); font-size: 0.7rem; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 214, 138, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(91, 214, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 214, 138, 0); }
}

/* Engagements */
.engage-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1000px) { .engage-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4.5rem; align-items: start; } }
.engage-grid .section-head { margin-bottom: 0; }

.reg-card { position: relative; margin-top: 2.25rem; padding: 1.6rem 1.6rem 1.6rem 1.75rem; border-left: 3px solid var(--accent); background: var(--bg-3); }
.reg-card h3 { margin-bottom: 0.5rem; font-size: 1.4rem; font-weight: 700; }
.reg-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.engage-list {
  display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
@media (min-width: 640px) { .engage-list { grid-template-columns: repeat(2, 1fr); } }
.engage-list li { padding: 1.75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.engage-list .code { margin-bottom: 0.75rem; }
.engage-list h3 { margin-bottom: 0.5rem; font-size: 1.5rem; font-weight: 700; }
.engage-list p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Zone d'intervention */
.zone { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .zone { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; } }
.zone h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 0.75rem; }
.zone p { max-width: 62ch; margin: 0; color: var(--muted); }
.zone-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.zone-tags li {
  padding: 0.5rem 0.85rem; border: 1px solid var(--line-2);
  font-family: var(--cond); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.95rem;
}
.zone-tags li:first-child { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   Bandeau d'appel à l'action
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative; overflow: hidden; background: var(--gold-grad); color: var(--accent-ink);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
  background: repeating-linear-gradient(-45deg, transparent 0 18px, var(--accent-ink) 18px 20px);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
  mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.cta-inner {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: clamp(2.75rem, 6vw, 4rem) 0;
}
.cta-inner h2 { margin: 0 0 0.5rem; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.cta-inner p { max-width: 54ch; margin: 0; color: #2b1f07; font-weight: 500; }

/* --------------------------------------------------------------------------
   Pages intérieures
   -------------------------------------------------------------------------- */

.page-hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 4.25rem); border-bottom: 1px solid var(--line); }
.page-hero::after {
  content: ""; position: absolute; top: -300px; right: -240px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(212, 169, 79, 0.11), transparent 62%); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 16ch; margin-bottom: 1.25rem; font-size: clamp(2.7rem, 7vw, 5.2rem); line-height: 0.92; }
.page-hero .lead { max-width: 62ch; margin: 0 0 2rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.75rem; padding: 0; list-style: none; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }
.breadcrumb li { color: var(--muted-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--accent); }

.svc-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1000px) { .svc-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 4.5rem; align-items: start; } }

.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 3rem 0 1.1rem; font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.prose p { color: var(--text-2); }
.prose ul { margin: 0 0 1.25rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.prose li { position: relative; padding: 0.8rem 0 0.8rem 1.75rem; border-bottom: 1px solid var(--line); color: var(--text-2); }
.prose li::before { content: ""; position: absolute; left: 0.2rem; top: 1.35rem; width: 8px; height: 8px; background: var(--accent); }
.prose a { color: var(--accent); }

.aside-card { position: relative; padding: 2rem 1.75rem; border: 1px solid var(--line); background: var(--bg-2); }
@media (min-width: 1000px) { .aside-card { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.aside-card h2 { margin-bottom: 0.75rem; font-size: 1.9rem; }
.aside-card p { color: var(--muted); font-size: 0.98rem; }
.aside-card .btn { margin: 0.5rem 0 1.5rem; }

.contact-lines { display: grid; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.contact-lines li { display: flex; align-items: center; gap: 0.9rem; }
.contact-lines .ci { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); color: var(--accent); flex: none; }
.contact-lines .ci svg { width: 20px; height: 20px; }
.contact-lines small { display: block; color: var(--muted-2); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-lines a, .contact-lines strong { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-lines a:hover { color: var(--accent); }

/* FAQ */
.faq { margin: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; padding: 1.15rem 2.5rem 1.15rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.08rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-family: var(--mono); font-size: 1.3rem;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.25rem; color: var(--muted); }

/* Prestations associées */
.related { display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 640px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%;
  padding: 1.25rem 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--cond); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.related a:hover { background: var(--bg-3); color: var(--accent); }
.related svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* --------------------------------------------------------------------------
   Contact / devis
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4.5rem; align-items: start; } }

.form-card { position: relative; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); background: var(--bg-2); }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }

.field label { display: block; margin-bottom: 0.45rem; color: var(--text-2); font-size: 0.92rem; font-weight: 600; }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 0.95rem;
  border: 1px solid var(--line-2); border-radius: 0; background: var(--bg);
  color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3a4450; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 169, 79, 0.25);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a94f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 18px;
}
.field ::placeholder { color: var(--muted-2); }

.field .consent { display: flex; align-items: flex-start; gap: 0.7rem; margin: 0; color: var(--muted); font-size: 0.9rem; font-weight: 400; line-height: 1.5; cursor: pointer; }
.field .consent input { flex: none; width: 18px; height: 18px; margin: 0.15rem 0 0; padding: 0; accent-color: var(--accent); }
.consent a { color: var(--text); }

/* Sections du formulaire */
.fs { min-width: 0; margin: 0 0 2rem; padding: 0; border: 0; }
.fs + .fs { padding-top: 1.75rem; border-top: 1px solid var(--line); }
.fs legend {
  display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.25rem; padding: 0;
  font-family: var(--cond); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text);
}
.fs-num { color: var(--accent); font-family: var(--mono); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; }
.group-label { display: block; margin-bottom: 0.55rem; color: var(--text-2); font-size: 0.92rem; font-weight: 600; }
.field input[type="date"] { color-scheme: dark; }

/* Choix sous forme de pastilles */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 0.9rem; border: 1px solid var(--line-2); background: var(--bg);
  color: var(--text-2); font-size: 0.95rem; line-height: 1.2; user-select: none;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.chip span::before {
  content: ""; flex: none; width: 11px; height: 11px; border: 1.5px solid var(--muted-2);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.chip-radio span::before { border-radius: 50%; }
.chip:hover span { border-color: #3a4450; color: var(--text); }
.chip input:checked + span { border-color: var(--accent); background: rgba(212, 169, 79, 0.1); color: var(--text); }
.chip input:checked + span::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Colonne de gauche */
@media (min-width: 1000px) { .contact-side { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.side-note { margin-top: 2.5rem; padding: 1.5rem 1.5rem 1.25rem; border: 1px solid var(--line); background: var(--bg-2); }
.side-note h3 { margin-bottom: 0.9rem; font-size: 1.35rem; font-weight: 700; }
.side-note ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.side-note li { position: relative; padding: 0 0 0.85rem 2.2rem; color: var(--muted); counter-increment: s; }
.side-note li::before { content: "0" counter(s); position: absolute; left: 0; top: 0.1rem; color: var(--accent); font-family: var(--mono); font-size: 0.8rem; }

/* Confirmation d'envoi */
.form-success { padding: 1.5rem 0.5rem; text-align: center; }
.form-success:focus { outline: none; }
.success-mark {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1.25rem;
  border: 2px solid var(--accent); color: var(--accent); font-size: 1.8rem; font-weight: 700;
}
.form-success h2 { font-size: 2.2rem; margin-bottom: 0.75rem; }
.form-success p { max-width: 46ch; margin-inline: auto; color: var(--text-2); }
.form-success .form-note { margin-bottom: 1.75rem; }
.form-success .form-note a { color: var(--accent); }

.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.form-note { margin: 0; color: var(--muted-2); font-size: 0.85rem; }

.form-status { display: none; margin: 1.25rem 0 0; padding: 0.9rem 1rem; border-left: 3px solid; font-size: 0.95rem; }
.form-status[data-state] { display: block; }
.form-status[data-state="success"] { border-color: var(--ok); background: rgba(91, 214, 138, 0.08); color: #b5ecc9; }
.form-status[data-state="error"] { border-color: #ff5a5a; background: rgba(255, 90, 90, 0.08); color: #ffc2c2; }
.form-status[data-state="info"] { border-color: var(--accent); background: rgba(212, 169, 79, 0.08); color: #f0deb0; }

/* --------------------------------------------------------------------------
   Mentions légales
   -------------------------------------------------------------------------- */

.legal { max-width: 820px; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.legal h2 { margin: 3rem 0 1rem; font-size: clamp(1.7rem, 3vw, 2.1rem); }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-2); }
.legal a { color: var(--accent); }
.legal-list { margin: 0 0 1.25rem; border-top: 1px solid var(--line); }
.legal-list > div { display: grid; grid-template-columns: 1fr; gap: 0.2rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .legal-list > div { grid-template-columns: 240px 1fr; gap: 1rem; } }
.legal-list dt { color: var(--muted-2); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; padding-top: 0.2rem; }
.legal-list dd { margin: 0; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.site-footer { padding: 4.5rem 0 2rem; background: #07090b; color: var(--muted); font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.footer-brand p { max-width: 34ch; margin: 1.25rem 0 0; }
.site-footer h2 { margin-bottom: 1.1rem; color: var(--text); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.14em; }
.site-footer ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--text-2); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--accent); }
.footer-legal {
  display: grid; gap: 0.6rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--muted-2); font-family: var(--mono); font-size: 0.72rem; line-height: 1.7;
}
.footer-legal p { margin: 0; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Animations d'entrée & mouvements réduits
   -------------------------------------------------------------------------- */

.hero .container > *, .page-hero .container > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .container > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: 0.07s; }
.hero .container > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: 0.14s; }
.hero .container > :nth-child(4), .page-hero .container > :nth-child(4) { animation-delay: 0.21s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

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