:root {
  --ink: #0e2a33;
  --ink-soft: #46606a;
  --paper: #f7f9f8;
  --mist: #e6eeee;
  --line: #cfdcdc;
  --water: #1f6a8a;
  --water-light: #8fc3d6;
  --deep: #0b2229;
  --alert: #9a2b12;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --max: 1440px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0; }
h1, h2, h3 { margin: 0; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; }
h2 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
a { color: var(--water); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 20; }
.skip:focus { top: 1rem; }
.demo-note { background: var(--deep); color: #d6e4e6; font-size: .85rem; text-align: center; padding: .45rem var(--gutter); }

/* header */
.top {
  max-width: var(--max); margin: 0 auto; padding: 1.4rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.brand svg { width: 2.2rem; height: 2.2rem; color: var(--water); }
.top ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.8rem; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--water); }
.top nav .nav-cta { border: 1.5px solid var(--ink); border-radius: 999px; padding: .45rem 1.1rem; }
.top nav .nav-cta:hover { background: var(--ink); color: #fff; }

/* hero: text + rotating clarifier disc */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem clamp(2rem, 5vw, 6rem); align-items: center;
}
.hero h1 { font-size: clamp(3rem, 7.4vw, 7.2rem); line-height: .95; letter-spacing: -0.02em; }
.lead { margin-top: 1.8rem; max-width: 34rem; font-size: 1.2rem; color: var(--ink-soft); }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }
.link { color: var(--ink); font-weight: 600; }
.hero-disc { position: relative; aspect-ratio: 1; }
.hero-disc::before {
  content: ""; position: absolute; inset: -4%; border-radius: 50%;
  border: 1px solid var(--line);
}
.disc {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  animation: turn 140s linear infinite;
  box-shadow: 0 30px 80px -30px rgba(14, 42, 51, .45);
}
@keyframes turn { to { transform: rotate(360deg); } }

.btn {
  display: inline-block; background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  font: 600 1rem var(--sans); padding: .95rem 1.6rem; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--water); color: #fff; }

/* full-bleed band */
.band { position: relative; }
.band img { width: 100%; height: clamp(280px, 48vw, 680px); object-fit: cover; }
.band figcaption { max-width: var(--max); margin: 0 auto; padding: 1rem var(--gutter) 0; color: var(--ink-soft); font-size: .95rem; }

/* sections */
.section-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; }
.section-head p { max-width: 34rem; color: var(--ink-soft); font-size: 1.1rem; }

/* parcours */
.parcours { padding: clamp(4rem, 9vw, 8rem) 0 0; }
.steps { list-style: none; counter-reset: s; max-width: var(--max); margin: clamp(2.5rem, 5vw, 4.5rem) auto 0; padding: 0 var(--gutter); display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.step { counter-increment: s; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center; }
.step:nth-child(even) .step-img { order: 2; }
.step-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.step-body { border-left: 4px solid var(--tone); padding-left: clamp(1.25rem, 2.5vw, 2rem); }
.step-body::before {
  content: counter(s) " / 5"; display: block; margin-bottom: 1rem;
  font: 1.6rem var(--serif); color: var(--tone);
}
.step h3 { font: 400 clamp(1.9rem, 3vw, 2.6rem)/1.05 var(--serif); margin-bottom: 1rem; }
.step p { max-width: 32rem; }
.dwell { margin-top: 1.1rem; font-weight: 600; color: var(--ink-soft); font-size: .95rem; }

/* qualité: dark section */
.qualite { margin-top: clamp(5rem, 10vw, 9rem); background: var(--deep); color: #e7f0f1; }
.q-inner { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) var(--gutter); display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: center; }
.q-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.q-lead { margin-top: 1.2rem; max-width: 38rem; color: #b9cdd1; font-size: 1.1rem; }
.table-scroll { margin-top: 2.2rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid rgba(255,255,255,.14); vertical-align: middle; }
thead th { color: #b9cdd1; font-weight: 500; font-size: .9rem; }
tbody th { font-weight: 600; }
.desc { display: block; font-weight: 400; font-size: .85rem; color: #a6bdc2; }
td { font-variant-numeric: tabular-nums; }
.val { color: #fff; font-weight: 600; }
.barcell { width: 34%; }
.barwrap { display: flex; align-items: center; gap: .8rem; }
.bar { position: relative; flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 3px; background: var(--water-light); }
.pct { min-width: 3rem; text-align: right; color: #d6e4e6; }
.source { margin-top: 1.2rem; font-size: .9rem; color: #a6bdc2; }

/* visites */
.visites { max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 10vw, 9rem) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: center; }
.v-img img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; border-radius: 4px; }
.v-body > p { margin-top: 1.2rem; max-width: 34rem; }
.dates { margin: 2rem 0 0; }
.dates dt { font-weight: 600; padding-top: .9rem; border-top: 1px solid var(--line); }
.dates dd { margin: .15rem 0 .9rem; color: var(--ink-soft); }
.access { font-size: .95rem; color: var(--ink-soft); }
.v-body .btn { margin-top: 1.8rem; }

/* démarches */
.demarches { padding: clamp(5rem, 10vw, 9rem) 0 0; }
.d-grid { max-width: var(--max); margin: 2.5rem auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(2rem, 4vw, 4rem); }
.d-grid > div { background: var(--mist); border-radius: 4px; padding: clamp(1.4rem, 2.5vw, 2.2rem); }
.d-grid p { margin-top: .8rem; }
.docs { list-style: none; margin: .8rem 0 0; padding: 0; }
.docs li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.doc { display: block; font-weight: 600; }
.meta { display: block; font-size: .85rem; color: var(--ink-soft); }

/* contact */
.contact { max-width: var(--max); margin: clamp(5rem, 10vw, 9rem) auto 0; padding: 0 var(--gutter) clamp(4rem, 8vw, 7rem); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem clamp(2rem, 6vw, 6rem); }
.c-photo img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: 4px; }
.urgence { margin-top: 1.8rem; background: #fff; border-left: 4px solid var(--alert); padding: 1.2rem 1.4rem; }
.urgence h3 { color: var(--alert); }
.urgence p { margin-top: .3rem; }
.urgence a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.c-cols { margin-top: 2.2rem; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem 3rem; }
.c-cols h3 { margin-bottom: .6rem; }
.c-cols p, address { margin-bottom: .8rem; font-style: normal; }
.c-form { display: grid; gap: .3rem; }
.c-form label { font-weight: 600; font-size: .95rem; margin-top: .55rem; }
.c-form input, .c-form select, .c-form textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid #9fb2b6; border-radius: 4px; padding: .7rem .8rem; width: 100%;
}
.c-form .btn { justify-self: start; margin-top: 1.1rem; }
.form-status { min-height: 1.5rem; font-weight: 600; color: #2f6b3a; }

.foot { background: var(--deep); color: #b9cdd1; padding: 2.2rem var(--gutter); font-size: .95rem; }
.foot p { max-width: var(--max); margin: 0 auto .3rem; }
.foot a { color: #fff; }

/* responsive */
@media (max-width: 1080px) {
  .c-cols { grid-template-columns: minmax(0, 1fr); }
  .d-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .hero, .section-head, .step, .q-inner, .visites, .contact, .d-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-disc { max-width: 420px; width: 88%; margin: 0 auto; }
  .step:nth-child(even) .step-img { order: 0; }
  .q-img img { aspect-ratio: 16 / 10; }
  .c-photo img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .top ul { gap: .3rem 1.1rem; }
  .barcell { width: 40%; }
}
@media (min-width: 2000px) {
  :root { --max: 1800px; }
  body { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .disc { animation: none; }
}
