/* ==========================================================================
   PROSTEK – Plombier à Nîmes
   Feuille de style principale (mobile first)
   ========================================================================== */

/* ---------- Polices auto-hébergées (aucun appel à un service tiers) ---------- */
@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  /* Couleurs de la marque (logo) */
  --navy: #0d3b5c;
  --navy-950: #061f33;
  --navy-900: #082a43;
  --water: #1f6fa8;
  --water-light: #7fd0f5;
  --water-50: #eaf4fb;
  --flame-red: #d92d2b;
  --flame: #ee5a2f;
  --flame-light: #f8a145;

  /* Boutons (contraste AA avec texte blanc) */
  --cta: #c8431a;
  --cta-dark: #b23a12;
  --cta-hover: #a13310;
  --wa: #0e7a43;
  --wa-hover: #0a6436;

  /* Texte et fonds */
  --accent-text: #c2410c;
  --accent-on-dark: #f8a145;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --text: #1b2733;
  --muted: #56677a;
  --on-dark-muted: #b8c7d6;
  --line: #dce5ee;

  --grad-flame: linear-gradient(135deg, var(--flame-red) 0%, var(--flame) 55%, var(--flame-light) 100%);
  --grad-flame-text: linear-gradient(90deg, #ff8a4c 0%, #ffb35c 100%);
  --grad-water: linear-gradient(135deg, #6cc4ee 0%, #15609e 100%);
  --grad-zinc: linear-gradient(135deg, #7d93a6 0%, #2f4a60 100%);
  --grad-bath: linear-gradient(135deg, #43b8c4 0%, #1f6fa8 100%);
  --grad-kitchen: linear-gradient(135deg, #7fa37b 0%, #2f5b4b 100%);

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(8 42 67 / 6%), 0 4px 14px rgb(8 42 67 / 6%);
  --shadow: 0 22px 44px -22px rgb(8 42 67 / 40%);

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --font-head: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

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

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

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--water);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--flame-light);
  outline-offset: 3px;
  border-radius: 6px;
}

mark.todo {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: #fff1c2;
  color: #6b4200;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: -100px;
  left: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.icon {
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75em 1.35em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-cta {
  background: linear-gradient(135deg, var(--cta) 0%, var(--cta-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgb(200 67 26 / 75%);
}

.btn-cta:hover {
  background: var(--cta-hover);
  color: #fff;
}

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgb(14 122 67 / 70%);
}

.btn-wa:hover {
  background: var(--wa-hover);
  color: #fff;
}

.btn-light {
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 22%);
  color: #fff;
}

.btn-light:hover {
  background: rgb(255 255 255 / 18%);
  color: #fff;
}

.btn-lg {
  min-height: 56px;
  padding: 0.9em 1.6em;
  font-size: 1.0625rem;
}

.btn-sm {
  min-height: 42px;
  padding: 0.5em 1.1em;
  font-size: 0.95rem;
}

.btn-sm .icon {
  width: 1.1em;
  height: 1.1em;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 92%);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px -16px rgb(8 42 67 / 35%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  margin-right: auto;
  border-radius: 8px;
}

.brand img {
  width: auto;
  height: 52px;
}

.nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 0.5em 0.8em;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.is-active {
  background: var(--water-50);
  color: var(--navy);
}

.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);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s var(--ease), 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: 959px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgb(8 42 67 / 35%);
  }

  .nav.is-open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding: 8px var(--gutter) 16px;
  }

  .nav a {
    padding: 0.85em 0.75em;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
  }
}

@media (min-width: 1200px) {
  .brand img {
    height: 58px;
  }
}

/* ---------- Héro ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 520px at 88% 110%, rgb(238 90 47 / 32%), transparent 62%),
    radial-gradient(760px 520px at -5% -10%, rgb(43 143 208 / 34%), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 8%) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: 48px;
  padding-block: clamp(44px, 8vw, 104px) clamp(52px, 9vw, 116px);
}

.hero h1 {
  margin-bottom: 0.45em;
  font-size: clamp(2.15rem, 1.35rem + 3.6vw, 3.8rem);
  line-height: 1.07;
  letter-spacing: -0.028em;
  color: #fff;
}

.text-flame {
  color: #ffb26b;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .text-flame {
    background: var(--grad-flame-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-lead {
  max-width: 36em;
  margin-bottom: 1.8em;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--on-dark-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.975rem;
  color: #dbe6f0;
}

.hero-trust .icon {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2.6;
  color: var(--accent-on-dark);
}

.hero-visual {
  position: relative;
  display: none;
  justify-self: center;
  width: min(100%, 440px);
  aspect-ratio: 1;
}

.hero-emblem {
  position: absolute;
  inset: 7%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgb(255 255 255 / 11%) 0%, rgb(255 255 255 / 3%) 58%, transparent 70%);
}

.hero-emblem::before {
  content: "";
  position: absolute;
  inset: -5%;
  border: 1px dashed rgb(255 255 255 / 16%);
  border-radius: 50%;
  animation: spin 90s linear infinite;
}

.hero-emblem img {
  width: 72%;
  height: auto;
  filter: drop-shadow(0 22px 40px rgb(238 90 47 / 32%));
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 14px;
  background: rgb(255 255 255 / 97%);
  color: var(--navy);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.98rem;
}

.float-card span span {
  color: var(--muted);
}

.float-card--1 {
  bottom: 12%;
  left: -6%;
}

.float-card--2 {
  top: 9%;
  right: -4%;
  animation-delay: -3s;
}

.icon-badge {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-flame);
  color: #fff;
}

.float-card--2 .icon-badge {
  background: var(--grad-water);
}

@media (max-width: 520px) {
  .hero-actions .btn {
    width: 100%;
  }

  .hero .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }

  .hero .eyebrow::before {
    display: none;
  }
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .hero-visual {
    display: block;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--white {
  background: var(--surface);
}

.section-head {
  max-width: 740px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
}

.section-lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
}

.section-head--left {
  margin: 0 0 28px;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: var(--accent-on-dark);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  --card-accent: var(--grad-water);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 24px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--card-accent);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.service-card--flame {
  --card-accent: var(--grad-flame);
}

.service-card--zinc {
  --card-accent: var(--grad-zinc);
}

.service-card--kitchen {
  --card-accent: var(--grad-kitchen);
}

.service-card--bath {
  --card-accent: var(--grad-bath);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--card-accent);
  color: #fff;
  box-shadow: 0 12px 22px -12px rgb(8 42 67 / 55%);
}

.service-icon .icon {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  margin-bottom: 0.4em;
  font-size: 1.3rem;
}

.service-card p {
  font-size: 1rem;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.97rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
}

.check-list .icon {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.22em;
  stroke-width: 2.6;
  color: var(--water);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Aligne titres, textes et listes d'une carte à l'autre */
  @supports (grid-template-rows: subgrid) {
    .services-grid {
      row-gap: 0;
    }

    .service-card {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 0;
      margin-bottom: 20px;
    }

    .check-list {
      margin-top: 0;
      align-self: start;
    }
  }
}

/* odd number of services: the last card spans the row on two-column screens */
@media (min-width: 640px) and (max-width: 1099px) {
  .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 16px;
  }

  .service-card {
    padding-inline: 20px;
  }
}

/* ---------- Méthode ---------- */
.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 6px rgb(13 59 92 / 10%);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.step:nth-child(2) .step-num {
  background: var(--water);
  box-shadow: 0 0 0 6px rgb(31 111 168 / 12%);
}

.step:nth-child(3) .step-num {
  background: var(--cta);
  box-shadow: 0 0 0 6px rgb(200 67 26 / 12%);
}

.step h3 {
  font-size: 1.2rem;
}

.step p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 40px;
  text-align: center;
}

.cta-inline p {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 52px;
    right: -29px;
    width: 30px;
    border-top: 2px dashed #b9cde0;
  }
}

/* ---------- Réalisations ---------- */
.ba-grid {
  display: grid;
  gap: 20px;
}

.ba-card {
  display: grid;
  align-content: start;   /* keep photos and caption titles aligned across a row */
  gap: 14px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.ba-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ba-shot,
.shot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #dfe7ee;
  color: #fff;
  text-decoration: none;
}

.ba-shot {
  border-radius: 12px;
}

.ba-shot img,
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.ba-shot:hover img,
.shot:hover img,
.ba-shot:focus-visible img,
.shot:focus-visible img {
  transform: scale(1.04);
}

.ba-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  background: rgb(6 31 51 / 80%);
  font: 600 0.75rem/1.2 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.ba-tag--after {
  background: var(--cta);
}

.ba-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 18px -8px rgb(8 42 67 / 55%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ba-arrow .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.ba-card figcaption {
  display: grid;
  gap: 4px;
  padding: 0 6px 6px;
}

.ba-card figcaption strong {
  font-family: var(--font-head);
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--navy);
}

.ba-card figcaption span {
  font-size: 0.98rem;
  color: var(--muted);
}

.gallery-title {
  margin: clamp(40px, 5vw, 56px) 0 18px;
  font-size: 1.3rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shot {
  border-radius: var(--radius);
}

.shot-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: var(--navy);
  opacity: 0;
  transition: opacity 0.2s;
}

.shot-zoom .icon {
  width: 16px;
  height: 16px;
}

.shot:hover .shot-zoom,
.shot:focus-visible .shot-zoom {
  opacity: 1;
}

.shot-cap {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 44px 14px 12px;
  background: linear-gradient(180deg, rgb(6 31 51 / 0%) 0%, rgb(6 31 51 / 88%) 100%);
  font: 600 0.95rem/1.3 var(--font-head);
  color: #fff;   /* set here so the global a:hover colour never applies to the caption */
}

.shot-tag {
  padding: 0.2em 0.65em;
  border-radius: 999px;
  background: rgb(255 255 255 / 20%);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 559px) {
  .shot-cap {
    padding: 36px 10px 10px;
    font-size: 0.82rem;
  }

  .ba-tag {
    top: 8px;
    left: 8px;
    font-size: 0.68rem;
  }
}

@media (min-width: 900px) {
  .ba-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* odd number of pairs: centre the last card on its own row */
  .ba-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 12px);
  }
}

@media (min-width: 960px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Visionneuse (dialog plein écran) */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #04101b;
  color: #fff;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgb(4 16 27 / 70%);
}

.lb-figure {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
  padding: 16px;
}

.lb-img {
  width: auto;
  max-width: min(92vw, 1100px);
  height: auto;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 70%);
}

.lb-cap {
  max-width: 60ch;
  font-size: 1rem;
  text-align: center;
  color: #dbe6f0;
}

.lb-count {
  position: fixed;
  top: calc(28px + env(safe-area-inset-top, 0px));
  left: 22px;
  margin: 0;
  font: 600 0.9rem var(--font-head);
  color: var(--on-dark-muted);
}

.lb-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lb-btn:hover {
  background: rgb(255 255 255 / 22%);
}

.lb-close {
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 16px;
}

.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev {
  left: 16px;
}

.lb-next {
  right: 16px;
}

html.lb-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: none;
  }

  .lb-prev {
    left: calc(50% - 60px);
  }

  .lb-next {
    right: calc(50% - 60px);
  }

  .lb-img {
    max-height: calc(100vh - 210px);
    max-height: calc(100dvh - 210px);
  }
}

/* ---------- Pourquoi (section sombre) ---------- */
.section--dark {
  color: #fff;
  background:
    radial-gradient(800px 420px at 100% 0%, rgb(43 143 208 / 22%), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgb(238 90 47 / 14%), transparent 60%),
    var(--navy-900);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark .section-lead {
  color: var(--on-dark-muted);
}

.section--dark .eyebrow {
  color: var(--accent-on-dark);
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 4%);
  transition: background-color 0.25s, border-color 0.25s;
}

.feature:hover {
  border-color: rgb(248 161 69 / 30%);
  background: rgb(255 255 255 / 6%);
}

.feature-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgb(248 161 69 / 14%);
  color: var(--accent-on-dark);
}

.feature h3 {
  margin-bottom: 0.3em;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--on-dark-muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 48px 0 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 10%);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 24px 16px;
  background: var(--navy-900);
  text-align: center;
}

.stat dd {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-on-dark);
}

.stat dt {
  font-size: 0.95rem;
  color: var(--on-dark-muted);
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 860px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Avis ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-date {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  background: var(--water-50);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
}

.review-tags .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--water);
}

.stars {
  display: flex;
  gap: 2px;
  color: #f5a524;
}

.stars .icon {
  width: 18px;
  height: 18px;
}

.review-card blockquote {
  flex: 1;
  margin: 0;
}

.review-card blockquote p {
  margin: 0;
  font-size: 1rem;
}

.review-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-water);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.review-card:nth-child(3n + 2) .avatar {
  background: var(--grad-flame);
}

.review-card:nth-child(3n) .avatar {
  background: var(--navy);
}

.review-meta strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--navy);
}

.review-meta span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 700px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Avis réels (liste insérée par le serveur) + formulaire */
.reviews-summary {
  display: inline-flex;
  gap: 0.4em;
  margin: 18px 0 0;
  padding: 0.45em 1.1em;
  border-radius: 999px;
  background: #fff4e0;
  color: #7a4300;
  font-size: 1rem;
}

.reviews-summary[hidden] {
  display: none;
}

.reviews-summary strong {
  font-family: var(--font-head);
  color: #5b3200;
}

.reviews-empty {
  grid-column: 1 / -1;
  max-width: 46em;
  margin: 0 auto;
  padding: 28px;
  border: 1px dashed #c3d3e2;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.stars .star-off {
  color: #d6dee6;
}

.review-card blockquote p + p {
  margin-top: 0.6em;
}

.reviews-more {
  margin-top: 20px;
}

.reviews-more > summary {
  width: fit-content;
  margin: 0 auto 20px;
  padding: 0.6em 1.3em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: 600 0.95rem var(--font-head);
  color: var(--navy);
  list-style: none;
  cursor: pointer;
}

.reviews-more > summary::-webkit-details-marker {
  display: none;
}

.reviews-more[open] > summary {
  display: none;
}

.review-form-wrap {
  margin-top: 32px;
  text-align: center;
}

.review-form-wrap > summary {
  list-style: none;
  cursor: pointer;
}

.review-form-wrap > summary::-webkit-details-marker {
  display: none;
}

.review-form-wrap[open] > summary {
  display: none;
}

.review-form {
  display: grid;
  gap: 18px 20px;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.form-intro {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend,
.field-label {
  padding: 0;
  font: 600 0.95rem var(--font-head);
  color: var(--navy);
}

.label-note {
  font-weight: 500;
  color: var(--muted);
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.6em 0.8em;
  border: 1px solid #c9d6e2;
  border-radius: var(--radius-sm);
  background: #fbfdfe;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
}

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

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid rgb(31 111 168 / 35%);
  outline-offset: 0;
  border-color: var(--water);
}

.field [aria-invalid="true"] {
  border-color: #c2341b;
}

.field-pair {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
}

.field-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.field-error {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b42d16;
}

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 10px;
}

.field--check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--cta);
}

.field--check label {
  font: 400 0.95rem/1.5 var(--font-body);
  color: var(--text);
}

.field--check .field-error {
  grid-column: 1 / -1;
}

/* Note en étoiles : boutons radio, de 5 à 1 dans le code, affichés de gauche à droite */
.rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating label {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #d0d9e2;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

.rating label .icon {
  width: 32px;
  height: 32px;
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
  color: #f5a524;
}

.rating label:hover {
  transform: scale(1.08);
}

.rating input:focus-visible + label {
  outline: 3px solid var(--flame-light);
  outline-offset: 1px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.form-status {
  margin: 0;
  padding: 0.6em 1em;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.form-status--ok {
  background: #e3f5ea;
  color: #0b5a31;
}

.form-status--error {
  background: #fdecea;
  color: #9c2612;
}

.reviews-policy {
  max-width: 62em;
  margin: 28px auto 0;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 700px) {
  .review-form {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

/* ---------- Zone d'intervention ---------- */
.zone-grid {
  display: grid;
  align-items: center;
  gap: 40px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.35em 0.85em;
  border: 1px solid #d3e6f5;
  border-radius: 999px;
  background: var(--water-50);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
}

.chips li.is-main {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.zone-note {
  margin: 0;
  color: var(--muted);
}

.zone-map {
  padding: clamp(12px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  box-shadow: var(--shadow);
}

.zone-svg {
  width: 100%;
  height: auto;
  margin-inline: auto;
  max-width: 480px;
}

.map-ring {
  fill: none;
  stroke: rgb(127 208 245 / 38%);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
}

.map-ring-label {
  fill: rgb(184 199 214 / 80%);
  font: 500 10px var(--font-body);
  letter-spacing: 0.06em;
  paint-order: stroke;
  stroke: var(--navy-900);
  stroke-width: 4px;
}

.map-dot {
  fill: var(--water-light);
}

.map-dot--sm {
  fill: rgb(127 208 245 / 75%);
}

.map-label {
  fill: #e3ecf4;
  font: 500 12px var(--font-body);
}

.map-label--sm {
  fill: #b8c7d6;
  font-size: 10.5px;
}

.map-center {
  fill: var(--flame);
}

.map-center-label {
  fill: #fff;
  font: 700 15px var(--font-head);
  paint-order: stroke;
  stroke: var(--navy-900);
  stroke-width: 4px;
}

.map-dot--city {
  fill: #fff;
}

.map-city-label {
  fill: #fff;
  font: 700 13px var(--font-head);
  paint-order: stroke;
  stroke: var(--navy-900);
  stroke-width: 4px;
}

.map-pulse {
  fill: none;
  stroke: var(--flame);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.6);
  }

  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

/* Sur petit écran la carte est réduite : textes plus grands, petites communes masquées */
@media (max-width: 599px) {
  .map-label {
    font-size: 14px;
  }

  .map-label--sm {
    display: none;
  }

  .map-ring-label {
    font-size: 12px;
  }

  .map-center-label {
    font-size: 18px;
  }

  .map-city-label {
    font-size: 15px;
  }
}

@media (min-width: 960px) {
  .zone-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: #c3d8ea;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--water-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d3b5c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq-answer p:last-child {
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-card {
  position: relative;
  display: grid;
  gap: 32px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(620px 320px at 100% 100%, rgb(238 90 47 / 34%), transparent 62%),
    radial-gradient(520px 320px at 0% 0%, rgb(43 143 208 / 30%), transparent 60%),
    var(--navy-900);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  color: #fff;
}

.contact-main > p:not(.eyebrow) {
  color: var(--on-dark-muted);
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 22px;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.contact-phone:hover {
  color: #ffd2ad;
}

.contact-phone .icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.contact-phone .icon {
  width: 26px;
  height: 26px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-info {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 24px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 6%);
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.icon-wrap {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgb(127 208 245 / 14%);
  color: var(--water-light);
}

.contact-info strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
}

.contact-info a {
  color: #fff;
  text-underline-offset: 3px;
}

.contact-info a:hover {
  color: #ffd2ad;
}

.contact-info li > span:last-child > span {
  display: block;
  color: var(--on-dark-muted);
}

@media (max-width: 520px) {
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-actions .btn-wa {
    grid-column: 1 / -1;
  }
}

@media (max-width: 400px) {
  .contact-phone {
    gap: 10px;
  }

  .contact-phone .icon-badge {
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 960px) {
  .contact-card {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
  }
}

/* ---------- Pied de page ---------- */
.site-footer {
  padding-top: 64px;
  background: var(--navy-950);
  font-size: 0.97rem;
  color: var(--on-dark-muted);
}

.footer-grid {
  display: grid;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand img {
  width: auto;
  height: 56px;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 30em;
}

.footer-title {
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 20px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.site-footer--compact {
  padding-top: 0;
}

.site-footer--compact .footer-bottom {
  border-top: 0;
  padding-block: 24px;
}

@media (min-width: 340px) and (max-width: 759px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* ---------- Barre d'appel mobile ---------- */
.mobile-bar {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 24px -14px rgb(8 42 67 / 30%);
}

.mobile-bar .btn {
  min-height: 50px;
  padding-inline: 0.8em;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(71px + env(safe-area-inset-bottom));
  }

  .header-call {
    display: none;
  }
}

@media (min-width: 768px) {
  .mobile-bar {
    display: none;
  }
}

/* ---------- Pages secondaires (mentions légales, 404) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(700px 360px at 100% 120%, rgb(238 90 47 / 28%), transparent 62%),
    radial-gradient(600px 360px at 0% -20%, rgb(43 143 208 / 30%), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  padding-block: clamp(44px, 7vw, 80px);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  color: #fff;
}

.page-hero p {
  margin: 0.6em 0 0;
  color: var(--on-dark-muted);
}

.prose {
  max-width: 800px;
}

.prose h2 {
  margin-top: 2em;
  font-size: 1.35rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.3em;
}

.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding-block: 64px;
  text-align: center;
}

.not-found .code {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.not-found h1 {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
}

.not-found p {
  max-width: 34em;
  margin-inline: auto;
  color: var(--muted);
}

.not-found .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.btn-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ---------- Apparition au défilement (activée par main.js) ---------- */
[data-reveal] {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal-delay="1"] {
  transition-delay: 0.08s;
}

[data-reveal-delay="2"] {
  transition-delay: 0.16s;
}

[data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

.reveal-pending {
  opacity: 0;
  transform: translateY(22px);
}

/* ---------- Accessibilité : mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal-pending {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Impression ---------- */
@media print {
  .site-header,
  .mobile-bar,
  .hero-visual,
  .nav-toggle {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
  }

  .hero,
  .section--dark,
  .contact-card {
    background: #fff;
  }

  .hero *,
  .section--dark *,
  .contact-card * {
    color: #000 !important;
  }
}
