@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --beton: #E6EAED;      /* fond : béton clair */
  --beton-2: #D5DBE0;    /* surfaces secondaires */
  --acier: #13212F;      /* texte, tuyauterie */
  --acier-2: #4A5866;    /* texte secondaire */
  --rouge: #C0181A;      /* rouge WFS */
  --rouge-fonce: #9A1214;
  --eau: #1C8DB5;        /* eau, uniquement dans la trame */
  --blanc: #FFFFFF;
  --ligne: #B9C2CA;
  --max: 1240px;
  --gut: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--beton);
  color: var(--acier);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }

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

/* ---------- Typographie ---------- */
.display {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0;
}
h1.display { font-size: clamp(38px, 4.8vw, 70px); font-stretch: 112%; }
h2.display { font-size: clamp(30px, 4vw, 52px); }
h3 { font-stretch: 112%; font-weight: 700; font-size: 21px; line-height: 1.2; margin: 0 0 8px; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--acier-2); max-width: 46ch; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 700; font-stretch: 110%; font-size: 16px;
  padding: 15px 24px; border-radius: 2px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--acier); background: transparent; color: var(--acier);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--acier); color: var(--blanc); }
.btn--rouge { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }
.btn--rouge:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(230, 234, 237, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.top .logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--acier-2); }
.nav a:hover { color: var(--acier); }
.nav .lien-client { display: none; }
.top .btn { padding: 11px 18px; font-size: 15px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--acier); }
.menu-btn svg { width: 28px; height: 28px; }

/* Bande d'urgence (motif « livrée » course) */
.urgence {
  background: var(--acier); color: var(--blanc); font-size: 14px;
}
.urgence .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.urgence a { color: var(--blanc); font-weight: 700; text-decoration: none; }
.urgence .pastille { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); margin-right: 8px; box-shadow: 0 0 0 0 rgba(192,24,26,.7); animation: pouls 2.4s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(192,24,26,.7);} 70% { box-shadow: 0 0 0 10px rgba(192,24,26,0);} 100% { box-shadow: 0 0 0 0 rgba(192,24,26,0);} }

/* ---------- Ouverture : trame isométrique qui écrit le site ---------- */
.entete { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.top { position: relative; }
.page-simple { padding-top: 150px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

html.js body:not(.revele) { overflow: hidden; }
html.js body:not(.revele) .entete { transform: translateY(-105%); }
html.js body:not(.revele) main > section:not(.intro),
html.js body:not(.revele) .pied { display: none; }

.intro { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--beton); border-bottom: 1px solid var(--ligne); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
body.revele #scene { touch-action: pan-y; }

.intro__aide {
  position: absolute; left: 50%; bottom: calc(clamp(28px, 6vh, 64px) + 40px); transform: translateX(-50%); width: min(92vw, 560px);
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  font-size: 15px; font-weight: 600; color: var(--acier-2); pointer-events: none;
  opacity: 0; transition: opacity .6s;
}
.intro__aide.visible { opacity: 1; }
.intro__aide #aide-txt { font-stretch: 112%; font-size: 17px; color: var(--acier); }
.intro__aide.insiste #aide-txt { animation: insiste 1.6s ease-in-out infinite; }
@keyframes insiste { 50% { color: var(--rouge); } }
.intro__mesure { font-variant-numeric: tabular-nums; min-height: 1.4em; }
body.revele .intro__aide { opacity: 0; }

.intro__suite {
  position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px);
  padding: 0 var(--gut); text-align: center;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .8s .5s, transform .8s .5s;
}
.intro__suite .lead { margin: 0 auto 26px; max-width: 58ch; }
.intro__suite .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
body.revele .intro__suite { opacity: 1; transform: none; pointer-events: auto; }

.intro__passer {
  position: absolute; right: var(--gut); bottom: 14px;
  font: inherit; font-size: 13px; color: var(--acier-2); background: none; border: 0; padding: 8px 4px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.intro__passer:hover { color: var(--acier); }
body.revele .intro__passer { display: none; }

/* ---------- Bandeau de qualifications ---------- */
.qualifs { background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.qualifs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.qualifs li { padding: 22px 24px 22px 0; border-right: 1px solid var(--beton-2); }
.qualifs li + li { padding-left: 24px; }
.qualifs li:last-child { border-right: 0; }
.qualifs strong { display: block; font-stretch: 118%; font-size: 19px; font-weight: 800; }
.qualifs span { font-size: 14px; color: var(--acier-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section__tete { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section__tete p { margin: 0; color: var(--acier-2); }

/* Cycle de vie : une conduite qui relie les étapes */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.cycle::before { content: ''; position: absolute; top: 15px; left: 0; right: 0; height: 6px; background: var(--acier); }
.cycle li { position: relative; padding-right: 20px; }
.cycle .noeud {
  position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--beton);
  border: 6px solid var(--acier); display: grid; place-items: center; margin-bottom: 22px;
  font-weight: 800; font-size: 13px;
}
.cycle li:first-child .noeud { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }
.cycle h3 { font-size: 20px; }
.cycle p { font-size: 15.5px; color: var(--acier-2); }
.cycle details { font-size: 15px; }
.cycle summary { cursor: pointer; font-weight: 700; color: var(--rouge); list-style: none; }
.cycle summary::-webkit-details-marker { display: none; }
.cycle summary::before { content: '+ '; }
.cycle details[open] summary::before { content: '− '; }
.cycle details ul { padding-left: 18px; margin: 10px 0 0; color: var(--acier-2); }
.cycle details li { padding: 0; margin-bottom: 4px; }

/* Permanence */
.permanence { background: var(--rouge); color: var(--blanc); position: relative; overflow: hidden; }
.permanence::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-60deg, transparent 0 38px, rgba(255,255,255,.07) 38px 46px);
  pointer-events: none;
}
.permanence .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.permanence p { color: rgba(255,255,255,.86); }
.tel-geant { white-space: nowrap; font-stretch: 115%; font-weight: 900; font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; color: var(--blanc); text-decoration: none; display: inline-block; font-variant-numeric: tabular-nums; }
.tel-geant:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }

/* Types d'installation : tableau technique */
.types { width: 100%; border-collapse: collapse; background: var(--blanc); }
.types th, .types td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--beton-2); vertical-align: top; }
.types th { font-size: 14px; font-weight: 700; color: var(--acier-2); background: var(--beton-2); }
.types td:first-child { font-weight: 700; font-stretch: 112%; width: 30%; }
.types td:last-child { color: var(--acier-2); }
.types .bientot { display: inline-block; font-size: 12px; font-weight: 700; color: var(--rouge); border: 1px solid var(--rouge); padding: 1px 7px; margin-left: 8px; vertical-align: 2px; }

/* Atelier */
.atelier { background: var(--acier); color: var(--blanc); }
.atelier .section__tete p { color: #AFBBC6; }
.atelier__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #2A3A4A; border: 1px solid #2A3A4A; }
.atelier__grille > div { background: var(--acier); padding: 30px 28px 34px; }
.atelier__grille h3 { color: var(--blanc); }
.atelier__grille p { color: #AFBBC6; font-size: 15.5px; margin: 0; }
.atelier svg { width: 34px; height: 34px; margin-bottom: 18px; color: var(--rouge); }

/* Espace client */
.client { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.client__carte {
  background: var(--blanc); border: 1px solid var(--ligne); border-top: 6px solid var(--rouge);
  padding: clamp(26px, 4vw, 44px);
}
.client__carte ul { list-style: none; padding: 0; margin: 0 0 28px; }
.client__carte li { padding: 12px 0; border-bottom: 1px solid var(--beton-2); display: flex; gap: 12px; }
.client__carte li svg { width: 20px; height: 20px; color: var(--rouge); flex: none; margin-top: 3px; }

/* Contact */
.contact { background: var(--blanc); border-top: 1px solid var(--ligne); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; }
.coord dl { margin: 28px 0 0; }
.coord dt { font-size: 14px; color: var(--acier-2); margin-top: 18px; }
.coord dd { margin: 2px 0 0; font-weight: 600; }
.coord dd a { text-decoration: none; }
.coord dd a:hover { text-decoration: underline; }
form .champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
form .plein { grid-column: 1 / -1; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--acier);
  background: var(--beton); border: 1px solid var(--ligne); border-radius: 2px; padding: 13px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acier); background: var(--blanc); box-shadow: 0 0 0 3px rgba(19,33,47,.12); }
textarea { min-height: 150px; resize: vertical; }
.piege { position: absolute; left: -9999px; }
.form-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.form-pied small { color: var(--acier-2); font-size: 13px; max-width: 46ch; }
.retour { margin-top: 18px; padding: 14px 16px; font-weight: 600; display: none; }
.retour.ok { display: block; background: #E3F1E8; color: #1E5B34; }
.retour.erreur { display: block; background: #FBE7E7; color: var(--rouge-fonce); }

/* Pied de page */
.pied { background: var(--acier); color: #AFBBC6; font-size: 14px; padding: 48px 0 32px; }
.pied .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.pied a { color: var(--blanc); text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 8px; }
.pied .logo-blanc { background: var(--blanc); display: inline-block; padding: 10px 14px; margin-bottom: 18px; }
.pied .logo-blanc img { height: 34px; }
.pied .bas { grid-column: 1 / -1; border-top: 1px solid #2A3A4A; padding-top: 20px; margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Pages légales */
.legal { padding: clamp(48px, 7vw, 96px) 0; }
.legal h1 { margin-bottom: 32px; }
.legal h2 { font-stretch: 112%; font-size: 22px; margin: 36px 0 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .section__tete, .permanence .wrap, .client, .contact .wrap { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: 1fr; }
  .cycle::before { top: 0; bottom: 0; left: 15px; right: auto; width: 6px; height: auto; }
  .cycle li { padding: 0 0 34px 64px; }
  .cycle .noeud { position: absolute; left: 0; top: 0; }
  .atelier__grille { grid-template-columns: 1fr; }
  .qualifs ul { grid-template-columns: 1fr 1fr; }
  .qualifs li { border-right: 0; border-bottom: 1px solid var(--beton-2); padding-left: 0 !important; }
  .pied .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav, .top .btn--desk { display: none; }
  .menu-btn { display: block; }
  .nav.ouvert {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 76px; max-height: calc(100vh - 120px); overflow-y: auto; left: 0; right: 0;
    background: var(--beton); border-bottom: 1px solid var(--ligne); padding: 8px var(--gut) 20px;
  }
    .nav.ouvert .lien-client { display: block; color: var(--rouge); font-weight: 700; }
  .nav.ouvert a { padding: 14px 0; border-bottom: 1px solid var(--beton-2); font-size: 17px; color: var(--acier); }
  .urgence .adresse { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  form .champs { grid-template-columns: 1fr; }
  .qualifs ul { grid-template-columns: 1fr; }
  .types td:first-child { width: auto; }
  .types th:last-child { display: none; }
  .types td { display: block; border: 0; padding: 6px 16px; }
  .types tr { display: block; border-bottom: 1px solid var(--beton-2); padding: 10px 0; }
  .types thead { display: none; }
  .top .logo img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .urgence .pastille { animation: none; }
}
.urgence a { white-space: nowrap; }
@media (max-width: 600px) { .urgence .long { display: none; } }
section[id] { scroll-margin-top: 120px; }
@media (max-width: 600px) {
  .intro__suite .lead { font-size: 15px; margin-bottom: 18px; }
  .intro__suite .btn { padding: 13px 20px; }
}

.intro__rejouer { position: absolute; right: var(--gut); top: 124px; display: none;
  font: inherit; font-size: 13px; color: var(--acier-2); background: none; border: 0; padding: 8px 4px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body.revele .intro__rejouer { display: block; }

/* Sans JavaScript (aperçus de messagerie, etc.) : le site s'affiche normalement */
html:not(.js) #scene, html:not(.js) .intro__aide, html:not(.js) .intro__passer, html:not(.js) .intro__rejouer { display: none; }
html:not(.js) .intro { height: auto; min-height: 0; padding: 150px 0 64px; }
html:not(.js) .intro__suite { position: static; opacity: 1; transform: none; pointer-events: auto; }
html:not(.js) #titre-site { position: static; width: auto; height: auto; margin: 0 auto 24px; clip: auto; white-space: normal; text-align: center; padding: 0 var(--gut);
  font-stretch: 112%; font-weight: 800; font-size: clamp(34px, 6vw, 64px); line-height: 1.02; max-width: 16ch; }
.sans-js { display: none; }
html:not(.js) .sans-js { display: block; background: var(--acier); color: #fff; text-align: center; font-size: 14px; padding: 10px var(--gut); position: relative; z-index: 60; }
html:not(.js) .entete { position: relative; } html:not(.js) .intro { padding-top: 56px; }

.intro__son { position: absolute; left: var(--gut); bottom: 14px; font: inherit; font-size: 13px; color: var(--acier-2);
  background: none; border: 0; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.intro__son:hover { color: var(--acier); }
body.revele .intro__son { display: none; }
html:not(.js) .intro__son { display: none; }
