/* Iso-étanchéité EBTP, refonte v3.
   Fond blanc, encre profonde, un seul bleu. Le fond animé (canvas .nappe)
   dessine une nappe d'eau derrière toute la page : lignes de niveau qui
   ondulent, surface en bas de l'écran, gouttes qui font des ronds.
   Typo : Archivo variable (axe de chasse) + IBM Plex Mono. */

:root {
  --paper: #FFFFFF;
  --ink: #0B1116;
  --body: #39434D;
  --muted: #68737E;
  --line: #E3E8ED;
  --line-fort: #C9D3DC;
  --wash: #F4F7F9;
  --eau: #0A63E0;
  --eau-fonce: #084BB0;
  --eau-clair: #EDF3FE;
  --eau-vif: #4D9BFF;
  --nuit: #0A1017;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --barre: 74px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--ink); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 46px);
}

/* ---------- fond animé ---------- */

.nappe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.page { position: relative; z-index: 1; }

/* niveau de lecture */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--eau);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- typographie ---------- */

h1 {
  font-size: clamp(2.9rem, 8.2vw, 6.4rem);
  line-height: 0.98;
  font-weight: 700;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3.9vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.018em;
  max-width: 20ch;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.25;
  font-weight: 650;
  font-variation-settings: "wdth" 106;
  letter-spacing: -0.005em;
}

.mono, .label, .kicker, .tags, .etape, .c-label, figcaption, .filtre, .v-dur, .compte {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.label {
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.intro {
  margin-top: 18px;
  max-width: 60ch;
  color: var(--muted);
}

/* ---------- boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.btn-plein {
  background: var(--eau);
  color: #fff;
  box-shadow: 0 10px 24px -16px rgba(10, 99, 224, 0.9);
}
.btn-plein:hover {
  background: var(--eau-fonce);
  box-shadow: 0 16px 30px -16px rgba(10, 99, 224, 0.75);
  transform: translateY(-1px);
}
.btn-trait {
  border-color: var(--line-fort);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}
.btn-trait:hover { border-color: var(--ink); }

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

/* ---------- en-tête ---------- */

.topbar { position: sticky; top: 12px; z-index: 60; }
.barre {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--barre);
  margin-top: 12px;
  padding: 0 12px 0 20px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: box-shadow 0.25s ease, height 0.25s ease;
}
.topbar.colle .barre {
  height: 64px;
  box-shadow: 0 18px 40px -28px rgba(11, 17, 22, 0.45);
}
.marque {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.marque img { width: 38px; height: 38px; }
.marque span {
  font-size: 16.5px;
  font-weight: 620;
  font-variation-settings: "wdth" 104;
  white-space: nowrap;
}
.marque b { font-weight: 780; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 15px;
  font-weight: 520;
  color: var(--body);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav a:hover { color: var(--ink); background: var(--wash); }
.nav a.actif { color: var(--eau); }

.tel-barre { padding: 11px 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  display: block;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.2px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.2px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  margin-top: calc(-1 * (var(--barre) + 24px));
  padding: calc(var(--barre) + clamp(80px, 13vh, 150px)) 0 clamp(64px, 10vh, 104px);
  min-height: min(94vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: var(--nuit);
  overflow: hidden;
  isolation: isolate;
}
.hero-fond { position: absolute; inset: 0; z-index: -1; }
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
.hero-voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(8, 13, 19, 0.74) 0%,
    rgba(8, 13, 19, 0.48) 38%,
    rgba(8, 13, 19, 0.66) 74%,
    rgba(8, 13, 19, 0.92) 100%);
}
.hero h1, .hero .accroche { color: #fff; }
.hero .kicker { color: rgba(255, 255, 255, 0.62); }
.hero .accroche { color: rgba(255, 255, 255, 0.84); }
.hero-meta li {
  color: rgba(255, 255, 255, 0.6);
  border-left-color: rgba(255, 255, 255, 0.22);
}
.hero .btn-trait {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.hero .btn-trait:hover { border-color: #fff; background: rgba(255, 255, 255, 0.14); }
.hero-source {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
}
.hero .wrap > * {
  opacity: 0;
  animation: monte 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero .wrap > *:nth-child(1) { animation-delay: 0.05s; }
.hero .wrap > *:nth-child(2) { animation-delay: 0.13s; }
.hero .wrap > *:nth-child(3) { animation-delay: 0.21s; }
.hero .wrap > *:nth-child(4) { animation-delay: 0.29s; }
.hero .wrap > *:nth-child(5) { animation-delay: 0.37s; }
@keyframes monte {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.kicker {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero h1 { margin: 0 auto; max-width: 13ch; }

/* la signature : l'eau monte dans le mot, puis la ligne d'arrêt apparaît */
.ici { position: relative; display: inline-block; color: var(--eau-vif); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ici {
    color: transparent;
    background-image: linear-gradient(to top, var(--eau-vif) 0 50%, #fff 50% 100%);
    background-size: 100% 200%;
    background-position: 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: remplir 1.5s cubic-bezier(0.5, 0, 0.2, 1) 0.55s forwards;
  }
}
@keyframes remplir {
  from { background-position: 0 0; }
  to { background-position: 0 100%; }
}
.ici::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.06em;
  bottom: -0.1em;
  height: 4px;
  background: var(--eau-vif);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: trait 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.85s forwards;
}
@keyframes trait { to { transform: scaleX(1); } }

.hero .accroche {
  margin: 30px auto 0;
  max-width: 60ch;
  font-size: 18px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 26px;
}
.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 0;
  list-style: none;
}
.hero-meta li {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 20px;
  border-left: 1px solid var(--line);
}
.hero-meta li:first-child { border-left: 0; }

/* ---------- bande matières ---------- */

.bandeau {
  margin-top: clamp(50px, 8vh, 90px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 249, 0.75);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.piste { display: flex; width: max-content; animation: defile 42s linear infinite; }
.bandeau:hover .piste { animation-play-state: paused; }
.piste > div { display: flex; }
.piste span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 32px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
@keyframes defile {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section { padding: clamp(76px, 12vh, 132px) 0; }
.section-wash {
  background: rgba(244, 247, 249, 0.78);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.s-head { margin-bottom: clamp(38px, 6vh, 62px); }

/* ---------- métiers ---------- */

.metiers { border-top: 1px solid var(--line); }
.metier {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
  padding: 30px 20px 32px;
  margin: 0 -20px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-s);
  transition: background-color 0.25s ease;
}
.metier::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--eau);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.metier:hover { background: rgba(255, 255, 255, 0.85); }
.metier:hover::before { transform: scaleX(1); }
.m-icone {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--eau);
  display: grid;
  place-items: center;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.metier:hover .m-icone { border-color: #BDD3F4; background: var(--eau-clair); }
.m-icone svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.metier h3 { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.metier:hover h3 { transform: translateX(4px); }
.tags {
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--eau);
  margin-top: 10px;
}
.metier p:last-child { font-size: 16.5px; }

/* ---------- méthode ---------- */

.etapes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px);
  position: relative;
  padding-top: 42px;
}
.etapes::before,
.etapes::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  height: 2px;
  border-radius: 2px;
}
.etapes::before { width: 100%; background: var(--line); }
.etapes::after {
  width: 100%;
  background: var(--eau);
  transform: scaleX(var(--avance, 0));
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.3, 0.9, 0.4, 1);
}
.etape-c { position: relative; }
.etape-c::before {
  content: "";
  position: absolute;
  top: -42px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--eau);
  transform: translateY(-3.5px);
}
.etape {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.etape-c h3 { margin-bottom: 12px; }
.etape-c p { font-size: 16.5px; max-width: 40ch; }

/* ---------- entreprise ---------- */

.entreprise-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.chapo {
  font-size: 20px;
  font-weight: 560;
  color: var(--ink);
  margin: 20px 0 16px;
  max-width: 34ch;
}
.entreprise-texte > p { margin-bottom: 16px; max-width: 56ch; }
.repere {
  list-style: none;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.repere li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.entreprise-photo {
  border-radius: var(--r-m);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 34px 70px -46px rgba(11, 17, 22, 0.5);
}
.entreprise-photo img {
  width: 100%;
  height: clamp(400px, 62vh, 620px);
  object-fit: cover;
}
.entreprise-photo figcaption {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

/* ---------- chantiers ---------- */

.barre-filtres {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.filtres {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.filtre {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--body);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.filtre:hover { color: var(--ink); }
.filtre[aria-pressed="true"] { background: var(--ink); color: #fff; }
.compte { font-size: 12.5px; color: var(--muted); }

.galerie { columns: 3; column-gap: 14px; }
.galerie figure {
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: var(--r-s);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: zoom-in;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.galerie figure[hidden] { display: none; }
.galerie figure:hover {
  border-color: var(--line-fort);
  box-shadow: 0 22px 46px -32px rgba(11, 17, 22, 0.45);
  transform: translateY(-2px);
}
.galerie img { width: 100%; transition: transform 0.5s ease; }
.galerie figure:hover img { transform: scale(1.025); }
.galerie figcaption {
  font-size: 11.5px;
  color: var(--muted);
  padding: 11px 14px 13px;
}
.plus { display: flex; justify-content: center; margin-top: 26px; }
.plus[hidden] { display: none; }

/* ---------- vidéos ---------- */

.videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.videos figure { position: relative; }
.videos video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-m);
  background: var(--nuit);
  display: block;
}
.lire {
  position: absolute;
  inset: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  width: 100%;
  border: 0;
  border-radius: var(--r-m);
  background: rgba(10, 16, 23, 0.22);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lire:hover { background: rgba(10, 16, 23, 0.32); }
.lire::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  transition: transform 0.2s ease;
}
.lire:hover::before { transform: translate(-50%, -50%) scale(1.08); }
.lire::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% + 3px);
  transform: translate(-50%, -50%);
  border-left: 17px solid var(--ink);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.v-dur {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  color: #fff;
  background: rgba(10, 16, 23, 0.72);
  border-radius: 999px;
  padding: 5px 11px;
  pointer-events: none;
}
.videos figcaption {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 12px;
}

/* ---------- contact ---------- */

.contact {
  position: relative;
  background: var(--nuit);
  color: #fff;
  margin: 0 clamp(10px, 1.2vw, 18px) clamp(10px, 1.2vw, 18px);
  border-radius: var(--r-l);
  border-top: 3px solid var(--eau);
  padding-top: clamp(70px, 11vh, 124px);
  overflow: hidden;
}
.goutte {
  position: absolute;
  right: -60px;
  bottom: -110px;
  width: 460px;
  height: 460px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 0.55;
  pointer-events: none;
}
.contact .wrap, .contact .pied { position: relative; }
.contact h2 { color: #fff; }
.contact .label { color: rgba(255, 255, 255, 0.5); }
.contact .intro { color: rgba(255, 255, 255, 0.76); }

.tel-xl {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.9rem, 6.6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  margin: clamp(28px, 5vh, 46px) 0;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--eau);
  transition: color 0.2s ease;
}
.tel-xl:hover { color: #C8DEFF; }

.lignes { max-width: 660px; }
.ligne {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
}
.ligne:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.c-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  min-width: 96px;
}
.c-valeur { color: #fff; font-size: 16.5px; }
a.ligne:hover .c-valeur { color: #C8DEFF; }
.note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 26px;
}

.pied {
  margin-top: clamp(52px, 8vh, 86px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 30px 0 36px;
}
.pied-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.pied img { width: 116px; height: auto; }
.pied p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13.5px;
  margin-right: auto;
}
.pied nav { display: flex; gap: 18px; }
.pied a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13.5px;
  text-decoration: none;
}
.pied a:hover { color: #fff; }

/* ---------- barre d'appel mobile ---------- */

.appel {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  gap: 10px;
  padding: 10px clamp(12px, 4vw, 20px) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.appel .btn { flex: 1; justify-content: center; padding: 14px 18px; }

/* ---------- visionneuse ---------- */

.visio {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 12, 16, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fondu 0.22s ease;
}
.visio[hidden] { display: none; }
.visio img {
  max-width: min(93vw, 1320px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 6px;
  animation: zoom 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fondu { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(0.96); } }
.visio-legende {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  padding: 0 20px;
}
.visio button {
  position: absolute;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  width: 48px;
  height: 48px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.visio button:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.v-fermer { top: 22px; right: 22px; }
.v-prec { left: 18px; top: 50%; transform: translateY(-50%); }
.v-suiv { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- pages légales et 404 ---------- */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 84px) clamp(20px, 4vw, 46px) clamp(70px, 11vh, 110px);
}
.legal h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 14px;
}
.legal .chapeau { color: var(--muted); margin-bottom: 36px; }
.legal h2 {
  font-size: 1.15rem;
  max-width: none;
  margin: 36px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.legal p { margin-bottom: 12px; font-size: 16px; }
.legal a { color: var(--eau); }
.legal ul { margin: 0 0 12px 20px; }
.legal li { margin-bottom: 6px; font-size: 16px; }
.pied-legal { background: var(--nuit); padding: 28px 0; margin-top: 0; border: 0; }

.vide {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(70px, 14vh, 150px) clamp(20px, 4vw, 46px) clamp(80px, 14vh, 160px);
  text-align: center;
}
.vide h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); margin-bottom: 18px; }
.vide p { margin-bottom: 30px; }

/* ---------- apparitions ---------- */

.reveal { opacity: 0; }
.reveal.vu {
  animation: monte 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) both;
}
.metiers .metier:nth-child(2n) { --d: 0.07s; }
.etapes .etape-c:nth-child(2) { --d: 0.1s; }
.etapes .etape-c:nth-child(3) { --d: 0.2s; }
.videos figure:nth-child(2) { --d: 0.09s; }
.videos figure:nth-child(3) { --d: 0.18s; }

/* mode capture et accessibilité */
html.fige .reveal,
html.fige .hero .wrap > * { opacity: 1; animation: none; }
html.fige .piste { animation: none; }
html.fige .ici { animation: none; background-position: 0 100%; }
html.fige .ici::after { animation: none; transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero .wrap > * { opacity: 1 !important; animation: none !important; }
  .piste { animation: none; }
  .ici { animation: none; background-position: 0 100%; }
  .ici::after { animation: none; transform: scaleX(1); }
  .galerie img, .metier h3 { transition: none; }
  .hero-video { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .metier { grid-template-columns: 54px minmax(0, 1fr); grid-template-areas: "i t" ". d"; }
  .m-icone { grid-area: i; }
  .metier > div:nth-child(2) { grid-area: t; }
  .metier > p:last-child { grid-area: d; margin-top: 14px; }
  .galerie { columns: 2; }
  .entreprise-grille { grid-template-columns: 1fr; }
  .entreprise-photo img { height: clamp(320px, 52vh, 480px); }
  .videos {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(-1 * clamp(20px, 4vw, 46px));
    padding: 0 clamp(20px, 4vw, 46px) 8px;
  }
  .videos::-webkit-scrollbar { display: none; }
  .videos figure { flex: 0 0 min(80vw, 430px); scroll-snap-align: start; }
  .videos video, .lire { aspect-ratio: 16 / 9; }
  .etapes { grid-template-columns: 1fr; gap: 34px; padding-top: 0; }
  .etapes::before, .etapes::after { display: none; }
  .etape-c { padding-left: 26px; border-left: 2px solid var(--line); }
  .etape-c::before { top: 6px; left: -8px; transform: none; }
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: clamp(10px, 3vw, 22px);
    right: clamp(10px, 3vw, 22px);
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 30px 60px -34px rgba(11, 17, 22, 0.45);
  }
  .nav.ouvert { display: flex; }
  .nav a { padding: 13px 16px; border-radius: 12px; font-size: 16.5px; }
  .burger { display: flex; margin-left: auto; }
  .nav + .tel-barre { display: none; }
  .barre { gap: 12px; }
  .appel { display: flex; }
  body { padding-bottom: 78px; }
}

@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .hero {
    text-align: left;
    min-height: min(80vh, 680px);
    padding: calc(var(--barre) + 48px) 0 66px;
  }
  .hero-source {
    left: clamp(20px, 4vw, 46px);
    right: auto;
    bottom: 14px;
    transform: none;
    font-size: 10.5px;
  }
  .hero h1 { max-width: none; }
  .hero .accroche { margin-left: 0; font-size: 17px; }
  .hero-actions { justify-content: flex-start; }
  .hero-meta { justify-content: flex-start; }
  .hero-meta li { border-left: 0; padding: 0 18px 0 0; }
  .galerie { columns: 1; }
  .metier { padding: 24px 14px 26px; margin: 0 -14px; }
  .piste span { padding: 13px 20px; font-size: 11.5px; }
  .lignes { max-width: none; }
  .ligne { flex-direction: column; gap: 4px; }
  .c-label { min-width: 0; }
}

/* pages secondaires (marque + téléphone, sans menu) : une seule ligne sur petit écran */
@media (max-width: 480px) {
  .barre-simple { gap: 8px; padding: 0 6px 0 12px; }
  .barre-simple .marque { gap: 7px; }
  .barre-simple .marque img { width: 30px; height: 30px; }
  .barre-simple .marque span { font-size: 14px; }
  .barre-simple .tel-barre { padding: 9px 12px; font-size: 13.5px; }
}
