/* Hydrocurator — la feuille du site. LE LANGAGE DE LA VIDÉO DE LIGNE DE CONDUITE (LigneDeConduiteVideo/scene.html),
   repris tel quel pour qu'il serve aux deux maisons : la nuit bleue, le halo, la grille fine, les cartes de verre, les
   traits qui se dessinent, Oswald en capitales, et les canalisations qui font les passages d'un bloc à l'autre.
   Les couleurs gardent le sens qu'elles ont dans la vidéo : bleu le connu, eau le curé, rouille l'inspecté, jaune ce
   qui agit. Aucun style écrit dans les pages : la règle de contenu (serveur.mjs) n'admet que ce fichier. */

@font-face { font-family: 'Oswald'; font-weight: 500; font-style: normal; font-display: swap; src: url(/a/oswald-500.ttf?v=d59f15623d79) format('truetype'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-style: normal; font-display: swap; src: url(/a/oswald-700.ttf?v=21843a0ccca2) format('truetype'); }

:root {
  --nuit: #07121D;
  --nuit2: #0A1827;
  --abysse: #040A11;
  --marine: #12283C;
  --verre: rgba(13, 29, 45, .82);
  --bord: rgba(255, 255, 255, .17);
  --creme: #F7F5F0;
  --texte: #C3D0DA;
  --sourd: #8FA3B3;
  --jaune: #F5C518;
  --eau: #35D6B5;
  --bleu: #4FA8DC;
  --bleu-sombre: #2F6B8F;
  --rouille: #D2622F;
  --rouge: #FF5A4D;
  --titre: 'Oswald', 'Bahnschrift', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --corps: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--texte); background-color: var(--nuit);
  background-image:
    radial-gradient(1100px 700px at 50% -8%, rgba(47, 107, 143, .28), rgba(47, 107, 143, 0) 70%),
    linear-gradient(rgba(156, 196, 228, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 196, 228, .045) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
  font-family: var(--corps); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
.dedans { max-width: 1120px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.jaune { color: var(--jaune); }

/* ------------------------------------------------------------------ l'entête */
header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(7, 18, 29, .72);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease;
}
header.pose { border-bottom-color: rgba(255, 255, 255, .09); }
.barre { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 11px; padding-bottom: 11px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--creme); }
.sceau { width: 36px; height: 36px; flex: none; display: block; }
.nom { font-family: var(--titre); font-weight: 700; font-size: 20px; line-height: 1; text-transform: uppercase; letter-spacing: 1.4px; position: relative; padding-bottom: 6px; }
.nom::after { content: ''; position: absolute; left: 0; bottom: 0; width: 46%; height: 3px; border-radius: 2px; background: var(--jaune); }
.entrer {
  font-family: var(--titre); font-weight: 500; font-size: 13.5px; text-transform: uppercase; letter-spacing: 1.4px;
  text-decoration: none; color: var(--creme); border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px;
  padding: 8px 14px; white-space: nowrap; transition: border-color .18s ease, color .18s ease;
}
.entrer:hover { border-color: var(--jaune); color: var(--jaune); }
/* L'Espace client (le bureau, /bureau) : discret, à côté du contact ; sur un téléphone il n'est qu'au pied de page. */
.entete-liens { display: flex; align-items: center; gap: 18px; }
.espace-client {
  display: none; font-family: var(--titre); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.6px;
  text-decoration: none; color: var(--sourd); padding: 8px 2px; white-space: nowrap; transition: color .18s ease;
}
.espace-client:hover { color: var(--jaune); }
@media (min-width: 640px) { .espace-client { display: inline-block; } }
/* Un très petit téléphone (320 px) : la marque et « Nous joindre » tiennent sur la barre (mesuré le 14/10/2026). */
@media (max-width: 360px) {
  .barre { gap: 8px; }
  .marque { gap: 7px; }
  .barre .nom { font-size: 16px; letter-spacing: 1px; }
  .entrer { padding: 7px 9px; font-size: 12px; letter-spacing: .8px; }
}

/* ------------------------------------------------------------------ l'ouverture */
.hero { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.hero-texte { padding-top: 30px; position: relative; z-index: 2; width: 100%; }
.chapo { font-family: var(--titre); font-weight: 500; font-size: 12px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--sourd); margin-bottom: 12px; }
h1 {
  font-family: var(--titre); font-weight: 700; font-size: clamp(40px, 11.5vw, 86px); line-height: 1.07; margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: .5px; color: var(--creme); text-wrap: balance;
}
h1 .jaune { display: block; text-shadow: 0 0 26px rgba(245, 197, 24, .45); }
.accroche { font-size: clamp(16px, 2.1vw, 19px); line-height: 1.55; color: var(--texte); max-width: 40ch; margin: 0; }
.scene { display: block; width: 100%; height: clamp(340px, 100vw, 460px); position: relative; z-index: 1; opacity: 0; transition: opacity .9s ease; }
.scene.allumee { opacity: 1; }
.hero-boutons { position: relative; z-index: 2; width: 100%; padding-bottom: 34px; }
.boutons { display: flex; gap: 12px; flex-wrap: wrap; }
.bouton {
  font-family: var(--titre); font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: 1.6px;
  text-decoration: none; border-radius: 10px; padding: 13px 24px; border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 9px;
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.bouton.plein { background: var(--jaune); color: var(--marine); box-shadow: 0 0 28px rgba(245, 197, 24, .35); }
.bouton.plein:hover { transform: translateY(-1px); box-shadow: 0 0 40px rgba(245, 197, 24, .55); }
.bouton.creux { border-color: rgba(255, 255, 255, .28); color: var(--creme); background: rgba(255, 255, 255, .04); }
.bouton.creux:hover { border-color: var(--jaune); color: var(--jaune); transform: translateY(-1px); }

/* ------------------------------------------------------------------ les passages : une canalisation que l'eau parcourt */
.passage { position: relative; height: 2px; max-width: 1120px; margin: 0 auto;
  background: linear-gradient(90deg, rgba(79, 168, 220, 0), rgba(79, 168, 220, .45) 18%, rgba(79, 168, 220, .45) 82%, rgba(79, 168, 220, 0)); }
.passage i {
  position: absolute; left: 0; right: 0; top: -40px; height: 82px; pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, .95) 0, rgba(79, 168, 220, .7) 6%, rgba(79, 168, 220, 0) 42%) no-repeat;
  background-size: 82px 82px; background-position: -90px 50%;
  animation: filer 7s cubic-bezier(.55, .1, .45, .9) infinite;
}
@keyframes filer { 0% { background-position: -90px 50%; } 70%, 100% { background-position: calc(100% + 90px) 50%; } }

/* ------------------------------------------------------------------ les blocs */
.bloc { padding-top: clamp(48px, 8vw, 92px); padding-bottom: clamp(48px, 8vw, 92px); }
h2 {
  font-family: var(--titre); font-weight: 700; font-size: clamp(30px, 6.4vw, 46px); line-height: 1.13; margin: 0 0 16px;
  text-transform: uppercase; letter-spacing: .5px; color: var(--creme); text-wrap: balance;
}
.surtitre { font-family: var(--titre); font-weight: 500; font-size: 12px; letter-spacing: 2.8px; text-transform: uppercase; color: var(--jaune); margin-bottom: 12px; }
.texte { font-size: 17px; line-height: 1.6; color: var(--texte); max-width: 46ch; margin: 0 0 18px; }
.deux { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }

/* La carte de verre de la vidéo : un fond nuit translucide, un reflet en biais, un liseré. */
.metier, .preuve, .forfait, .contact-lien {
  background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, .012)), var(--verre);
  border: 1px solid var(--bord); border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .42);
}

/* Les quatre métiers. */
.metiers { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
.metier { padding: 20px 22px 22px; position: relative; overflow: hidden; --teinte: var(--bleu); }
.metier::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--teinte); box-shadow: 0 0 18px var(--teinte); }
.metier.vidange { --teinte: var(--bleu); }
.metier.curage { --teinte: var(--eau); }
.metier.inspection { --teinte: var(--rouille); }
.metier.depannage { --teinte: var(--jaune); }
.metier h3 { font-family: var(--titre); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--creme); margin: 4px 0 6px; }
.metier p { margin: 0 0 12px; font-size: 16px; color: var(--creme); line-height: 1.5; }
.metier ul { margin: 0; padding: 0; list-style: none; }
.metier li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.55; color: var(--sourd); margin-top: 5px; }
.metier li::before { content: ''; position: absolute; left: 1px; top: .62em; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--teinte); }

.picto { display: block; width: 120px; height: 72px; margin-bottom: 8px; overflow: visible; }
.picto .trait { fill: none; stroke: var(--teinte); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.picto .trait.fin { stroke: rgba(247, 245, 240, .55); stroke-width: 2; }
.picto .trait.signe { stroke: var(--jaune); }
.metier.attente .picto .trait { stroke-dashoffset: 100; }
.metier.vu .picto .trait { transition: stroke-dashoffset 1.1s cubic-bezier(.4, .1, .2, 1); }
.metier.vu .picto .trait.fin { transition-delay: .25s; }
.metier.vu .picto .trait.signe { transition-delay: .55s; }
.picto .tuyau-picto { fill: none; stroke: rgba(53, 214, 181, .3); stroke-width: 9; stroke-linecap: round; }
.picto .eau-file { fill: none; stroke: var(--creme); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 8 10; animation: couler 1s linear infinite; }
.picto .rec { fill: var(--rouge); animation: clignoter 1s steps(2, jump-none) infinite; }
@keyframes couler { to { stroke-dashoffset: -18; } }
@keyframes clignoter { 50% { opacity: 0; } }

/* Les schémas de l'équipe et de l'exploitant. */
.puces { margin: 0; padding: 0; list-style: none; }
.puces li { position: relative; padding-left: 26px; color: var(--creme); margin-top: 9px; font-size: 16px; }
.puces li::before { content: ''; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; border-radius: 50%; background: var(--eau); box-shadow: 0 0 12px rgba(53, 214, 181, .6); }
.puces li::after { content: ''; position: absolute; left: 4px; top: calc(.32em + 3px); width: 4px; height: 6px; border: solid var(--nuit); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.schema { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; overflow: visible; }
.schema .tel { fill: rgba(6, 14, 22, .92); stroke: rgba(255, 255, 255, .42); stroke-width: 2; }
.schema .tel.patron { stroke: var(--jaune); filter: drop-shadow(0 0 10px rgba(245, 197, 24, .35)); }
.schema .ecran { fill: none; stroke: rgba(247, 245, 240, .32); stroke-width: 3; stroke-linecap: round; }
.schema .coche-picto { fill: var(--eau); }
.schema .lien-fond { fill: none; stroke: rgba(79, 168, 220, .28); stroke-width: 9; stroke-linecap: round; }
.schema .flux { fill: none; stroke: var(--eau); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 7 11; animation: couler 1.1s linear infinite; }
.schema .flux.retour { stroke: var(--jaune); animation-direction: reverse; }
.schema .noeud { fill: rgba(13, 29, 45, .9); stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; }
.schema .etiquette { font-family: var(--titre); font-weight: 500; font-size: 12px; letter-spacing: 1.6px; fill: var(--sourd); }
.schema .etiquette.forte { fill: var(--creme); font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.schema .etiquette.jaune { fill: var(--jaune); }
.schema .sigle-trait { fill: none; stroke: var(--creme); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.schema .sigle-rond { fill: var(--jaune); stroke: var(--marine); stroke-width: 1.4; }

/* Le socle. */
.preuves { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
.preuve { padding: 18px 20px; border-radius: 14px; }
.preuve b { display: block; font-family: var(--titre); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; color: var(--creme); margin-bottom: 4px; }
.preuve span { font-size: 15px; color: var(--sourd); }

/* Le tarif : un forfait, son prix, ce qu'il couvre. */
.forfait { margin-top: 26px; padding: 28px 24px 26px; max-width: 520px; border-color: rgba(245, 197, 24, .45);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .42), 0 0 34px rgba(245, 197, 24, .12); }
.prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.prix-n { font-family: var(--titre); font-weight: 700; font-size: clamp(54px, 15vw, 78px); line-height: 1; color: var(--jaune); text-shadow: 0 0 26px rgba(245, 197, 24, .4); }
.prix-u { font-family: var(--titre); font-weight: 500; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; color: var(--creme); }
.forfait-ligne { margin: 16px 0 0; font-size: 16.5px; color: var(--creme); }

/* Bientôt : une ligne, sous le forfait. */
.bientot-ligne { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 24px 0 0; font-size: 16.5px; color: var(--creme); }
.pastille { font-family: var(--titre); font-weight: 500; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--jaune);
  border: 1px solid rgba(245, 197, 24, .55); border-radius: 999px; padding: 4px 12px; }

/* Le contact (posé par serveur.mjs quand contenu.json le donne). */
.contact-liens { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; max-width: 760px; }
.contact-lien { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 16px 18px; text-decoration: none; transition: border-color .2s ease, transform .16s ease; }
.contact-lien:hover { border-color: var(--jaune); transform: translateY(-1px); }
.contact-picto { grid-row: 1 / span 2; width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: rgba(245, 197, 24, .12);
  fill: none; stroke: var(--jaune); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-quoi { font-family: var(--titre); font-weight: 500; font-size: 12px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--sourd); }
.contact-valeur { font-size: 18px; color: var(--creme); overflow-wrap: anywhere; }

/* La vidéo de démonstration — à venir (accueil.html dit où elle se pose). */
.demo-film { display: block; width: 100%; max-width: 960px; border-radius: 18px; border: 1px solid var(--bord); background: var(--abysse); }

/* ------------------------------------------------------------------ les pages simples */
.page-simple { min-height: 56vh; }
.page-simple h1 { font-size: clamp(34px, 8vw, 56px); margin-top: 18px; }
.retour { display: inline-flex; align-items: center; gap: 8px; font-family: var(--titre); font-weight: 500; font-size: 14px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--creme); text-decoration: none; border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px; padding: 8px 14px; }
.retour::before { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.retour:hover { border-color: var(--jaune); color: var(--jaune); }
.mentions { margin: 22px 0 0; display: grid; grid-template-columns: 1fr; gap: 4px; max-width: 640px; }
.mentions dt { font-family: var(--titre); font-weight: 500; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--jaune); margin-top: 16px; }
.mentions dd { margin: 0; color: var(--creme); font-size: 17px; }
.introuvable .dedans { text-align: center; }
.introuvable .boutons { justify-content: center; margin-top: 10px; }
.regard-vide { width: 120px; height: 120px; display: block; margin: 10px auto 0; fill: none; stroke: var(--bleu); stroke-width: 3; stroke-linecap: round;
  filter: drop-shadow(0 0 12px rgba(79, 168, 220, .5)); }

/* ------------------------------------------------------------------ le pied */
footer { border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(4, 10, 17, .6); padding: 30px 0 calc(34px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--sourd); }
.pied { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
footer .nom { color: var(--creme); font-size: 17px; }
.devise { font-family: var(--titre); font-weight: 500; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; margin-top: 8px; }
.pied-liens { display: flex; gap: 18px; flex-wrap: wrap; }
.pied-liens a { color: var(--texte); text-decoration: none; border-bottom: 1px solid rgba(195, 208, 218, .35); padding: 6px 0 2px; }
.pied-liens a:hover { color: var(--jaune); border-bottom-color: var(--jaune); }

/* ------------------------------------------------------------------ l'apparition au défilement
   Tout part VISIBLE : seul le script cache, et seulement s'il tourne (accueil.js). */
.monte { transition: transform .6s cubic-bezier(.2, .7, .3, 1), opacity .6s ease; }
.monte.attente { opacity: 0; transform: translateY(20px); }

/* ------------------------------------------------------------------ grand écran */
@media (min-width: 700px) {
  .metiers { grid-template-columns: 1fr 1fr; }
  .preuves { grid-template-columns: 1fr 1fr; }
  .contact-liens { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 940px) {
  .hero { display: block; min-height: clamp(640px, 90vh, 860px); }
  .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 62%; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(7, 18, 29, .7), rgba(7, 18, 29, .35) 55%, rgba(7, 18, 29, 0)); }
  .hero-texte { padding-top: clamp(60px, 11vh, 120px); }
  .hero-texte > * { max-width: 560px; }
  .hero-boutons { padding-top: 26px; }
  .deux { grid-template-columns: 1fr 1fr; gap: 56px; }
  .deux.inverse > .schema { order: -1; }
  .metiers { grid-template-columns: repeat(4, 1fr); }
  .preuves { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .passage i, .picto .eau-file, .picto .rec, .schema .flux { animation: none; }
  .passage i { background-position: 50% 50%; }
  .scene { transition: none; }
  .monte, .monte.attente { transition: none; opacity: 1; transform: none; }
  .metier.attente .picto .trait { stroke-dashoffset: 0; }
}
