/* Alpes Isolation — feuille de style du site.
   Charte validée par Rachid le 05/10/2026 (ressources/charte/) : couleurs du logo (bleu nuit du toit, flamme), gris
   de chape et blanc froid ; titres en Mona Sans large, texte en Mona Sans, repères en Martian Mono ; signature : le
   trait de niveau sous le mot clé des grands titres. Aucune couleur ni police d'ONELLA ni des autres clients. */

@font-face {
  font-family: 'Mona Sans';
  src: url('../fonts/mona-sans.woff2') format('woff2');
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Martian Mono';
  src: url('../fonts/martian-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --nuit: #021238;
  --toit: #10284f;
  --flamme: #f58328;
  --flamme-vive: #ff9442;
  --flamme-fonce: #a94d0b;
  --chape: #e6e7e3;
  --neige: #f7f8f8;
  --blanc: #ffffff;
  --ardoise: #5b6878;
  --trait-gris: #d3d6d0;
  --brume: #c9d0dc; /* texte secondaire sur fond nuit (11,9 sur la nuit) */

  --police: 'Mona Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --courbe: cubic-bezier(0.22, 1, 0.36, 1);

  --marge: clamp(16px, 5vw, 64px);
  --page: min(1240px, 100% - 2 * var(--marge));
  --haut-entete: 76px;
  --rayon: 16px;
  --section: clamp(72px, 10vw, 128px);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--haut-entete) + 16px); background: var(--neige); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--neige);
  color: var(--toit);
  font: 400 1.0625rem/1.65 var(--police);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--police); font-stretch: 125%; font-weight: 800; line-height: 1.06; letter-spacing: -0.012em; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 4.4vw, 3.35rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.12; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--flamme); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--flamme); color: var(--nuit); }

.page { width: var(--page); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-only-focusable:focus { position: fixed !important; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; margin: 0; padding: 12px 18px; clip: auto; background: var(--nuit); color: var(--neige); border-radius: 10px; }
.sans-coupure { white-space: nowrap; }

.etiquette { font: 500 0.72rem/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Le trait de niveau ---------- */
/* Le mot clé d'un grand titre : une ligne orange en dessous. Plate par défaut ; motion.js lui donne le relief des
   montagnes à l'apparition, puis la met de niveau. */
.niveau { position: relative; display: inline-block; padding-bottom: 0.16em; }
.niveau__trait { position: absolute; left: -0.02em; bottom: -0.2em; width: calc(100% + 0.04em); height: 0.36em; overflow: visible; pointer-events: none; }
.niveau__trait path { fill: none; stroke: var(--flamme); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sur-clair .niveau { color: var(--flamme-fonce); }
.sur-sombre .niveau, .ouverture .niveau { color: var(--flamme); }
h3 .niveau__trait path { stroke-width: 3; }

/* Titres découpés en lignes (SplitText) : cachés le temps du découpage, puis lignes qui montent. */
html.js:not(.mouvement-reduit) [data-split]:not(.est-decoupe) { visibility: hidden; }
[data-split] .ligne-mask { padding-block: 0.08em 0.45em; margin-block: -0.08em -0.45em; }
[data-split].est-actif .ligne-mask { overflow: visible !important; }

/* « Mousse projetée » qui gonfle : la police s'élargit, comme la mousse sur le mur. */
.gonfle { color: var(--flamme); } /* en ligne : « mousse projetée » peut se couper entre les deux mots sur un petit écran */
html.js:not(.mouvement-reduit) .gonfle { font-stretch: 75%; transition: font-stretch 1.5s var(--courbe); }
html.js:not(.mouvement-reduit) .gonfle.est-gonfle { font-stretch: 125%; }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0.8em 1.45em; border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1.15 var(--police); font-stretch: 112%; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--courbe);
}
.bouton svg { width: 1.15em; height: 1.15em; flex: none; }
.bouton:active { transform: scale(0.98); }
.bouton--flamme { background: var(--flamme); color: var(--nuit); }
.bouton--flamme:hover { background: var(--flamme-vive); }
.bouton--toit { background: var(--toit); color: var(--neige); }
.bouton--toit:hover { background: var(--nuit); }
.bouton--ligne { border-color: currentColor; color: var(--neige); }
.bouton--ligne:hover { background: var(--neige); color: var(--nuit); border-color: var(--neige); }
.bouton--clair { background: var(--neige); color: var(--nuit); border-color: var(--trait-gris); }
.bouton--clair:hover { border-color: var(--toit); }
.lien-fleche { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; font-stretch: 112%; text-decoration: none; }
.lien-fleche svg { width: 1.2em; height: 1.2em; transition: transform 0.3s var(--courbe); }

/* ---------- Progression et en-tête ---------- */

.progression { position: fixed; inset: 0 0 auto; z-index: 70; height: 3px; background: var(--flamme); transform: scaleX(0); transform-origin: left; pointer-events: none; }

.entete {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--haut-entete);
  background: rgb(247 248 248 / 0.94); color: var(--toit);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 rgb(16 40 79 / 0.08);
  transition: transform 0.45s var(--courbe), background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.entete.cache { transform: translateY(-100%); }
.entete__in { height: 100%; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.logo { display: block; flex: none; position: relative; }
.logo img { width: clamp(104px, 9vw, 122px); height: auto; transition: opacity 0.3s; }
.logo .logo__clair { position: absolute; inset: 0; opacity: 0; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); margin-left: auto; font-weight: 600; font-stretch: 106%; }
.nav a { position: relative; text-decoration: none; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--flamme); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--courbe); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.entete__actions { display: flex; align-items: center; gap: 10px; }
.entete .bouton { min-height: 44px; padding: 0.6em 1.15em; font-size: 0.95rem; }
.burger { display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.burger span:not(.sr-only) { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.4s var(--courbe), top 0.4s var(--courbe); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.entete.ouvert .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.entete.ouvert .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Sur la vidéo du haut de l'accueil : en-tête transparent, logo et liens clairs (posé par motion.js). */
.entete.sur-video:not(.ouvert) { background: transparent; color: var(--neige); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.entete.sur-video:not(.ouvert) .logo__clair { opacity: 1; }
.entete.sur-video:not(.ouvert) .logo__fonce { opacity: 0; }
.entete.sur-video:not(.ouvert) .bouton--toit { background: transparent; border-color: rgb(247 248 248 / 0.7); }
.entete.sur-video:not(.ouvert) .bouton--toit:hover { background: var(--neige); color: var(--nuit); }

.menu-mobile {
  position: fixed; inset: 0; z-index: 55; padding: calc(var(--haut-entete) + 24px) var(--marge) 32px;
  background: var(--neige); color: var(--toit); overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.35s, transform 0.45s var(--courbe), visibility 0s linear 0.45s;
}
.menu-mobile.ouvert { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s, transform 0.45s var(--courbe); }
.menu-mobile nav { display: grid; }
.menu-mobile nav a { display: grid; padding: 16px 0; border-bottom: 1px solid var(--trait-gris); text-decoration: none; font-size: 1.5rem; font-weight: 800; font-stretch: 125%; line-height: 1.15; }
.menu-mobile nav a small { font: 500 0.72rem/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ardoise); margin-top: 6px; }
.menu-mobile nav a[aria-current='page'] { color: var(--flamme-fonce); }
.menu-mobile .boutons { display: grid; gap: 10px; }
.menu-mobile__contact { color: var(--ardoise); font-size: 0.95rem; }
html.menu-ouvert { overflow: hidden; }

/* ---------- Ouverture : la vidéo du chantier ---------- */

.ouverture { position: relative; min-height: max(600px, 100svh); display: flex; align-items: flex-end; color: var(--neige); background: var(--nuit); overflow: hidden; isolation: isolate; }
.ouverture__media { position: absolute; inset: 0; z-index: -1; transform-origin: 50% 30%; }
.ouverture__media img, .ouverture__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ouverture__media video { opacity: 0; transition: opacity 0.9s ease; }
.ouverture__media video.en-lecture { opacity: 1; }
.ouverture__media::after {
  content: ''; position: absolute; inset: 0;
  /* Un voile bleu nuit : en haut pour l'en-tête, à gauche et en bas pour le texte. */
  background:
    linear-gradient(180deg, rgb(2 18 56 / 0.6) 0%, rgb(2 18 56 / 0.1) 20%, rgb(2 18 56 / 0.3) 42%, rgb(2 18 56 / 0.86) 72%, rgb(2 18 56 / 0.96) 100%),
    linear-gradient(90deg, rgb(2 18 56 / 0.62) 0%, rgb(2 18 56 / 0.3) 45%, rgb(2 18 56 / 0) 72%);
}
@media (max-width: 760px) {
  .ouverture__media::after { background: linear-gradient(180deg, rgb(2 18 56 / 0.62) 0%, rgb(2 18 56 / 0.58) 30%, rgb(2 18 56 / 0.82) 60%, rgb(2 18 56 / 0.96) 100%); }
}
.ouverture__contenu { padding-top: calc(var(--haut-entete) + 48px); padding-bottom: clamp(56px, 9vh, 104px); }
.ouverture__surtitre { color: var(--brume); margin-bottom: 18px; }
@media (max-width: 760px) { .surtitre__suite { display: block; } } /* « Gap · Hautes-Alpes · », puis « Entreprise locale depuis 2017 » */
.ouverture__titre { font-size: clamp(2.05rem, 5.4vw, 4.55rem); line-height: 1.02; max-width: 15.5em; }
.ouverture__texte { max-width: 44ch; margin: 22px 0 30px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: #e8ecf2; }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ouverture__preuves { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--brume); }
.ouverture__preuves li { display: inline-flex; align-items: center; gap: 8px; }
.ouverture__preuves li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--flamme); }
.ouverture__pause {
  position: absolute; right: var(--marge); bottom: clamp(56px, 9vh, 104px); z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgb(247 248 248 / 0.55); background: rgb(2 18 56 / 0.35); color: var(--neige); cursor: pointer;
}
.ouverture__pause svg { width: 18px; height: 18px; }
.ouverture__pause[hidden] { display: none; }

@keyframes monter { from { opacity: 0; transform: translateY(28px); } }
html.js:not(.mouvement-reduit) .ouverture__surtitre { animation: monter 1s var(--courbe) 0.15s both; }
html.js:not(.mouvement-reduit) .ouverture__titre { animation: monter 1.2s var(--courbe) 0.3s both; }
html.js:not(.mouvement-reduit) .ouverture__texte { animation: monter 1.1s var(--courbe) 0.55s both; }
html.js:not(.mouvement-reduit) .ouverture__actions { animation: monter 1.1s var(--courbe) 0.7s both; }
html.js:not(.mouvement-reduit) .ouverture__preuves { animation: monter 1.1s var(--courbe) 0.85s both; }

/* ---------- Sections ---------- */

.section { position: relative; padding-block: var(--section); }
.sur-clair { background: var(--neige); color: var(--toit); }
.sur-gris { background: var(--chape); color: var(--toit); }
.sur-sombre { background: var(--nuit); color: var(--neige); }
.sur-sombre .etiquette { color: var(--brume); }
.chapeau { display: grid; gap: 18px 56px; margin-bottom: clamp(36px, 5vw, 64px); }
.chapeau .etiquette { margin: 0 0 14px; color: var(--ardoise); }
.sur-sombre .chapeau .etiquette { color: var(--brume); }
.chapeau p:not(.etiquette) { margin: 0; max-width: 60ch; }
@media (min-width: 960px) {
  .chapeau { grid-template-columns: 1.15fr 1fr; align-items: end; }
}

/* La section qui suit la vidéo monte par-dessus, coins arrondis. */
.monte { margin-top: calc(-1 * var(--rayon) * 2); border-radius: calc(var(--rayon) * 2) calc(var(--rayon) * 2) 0 0; z-index: 2; }

/* ---------- Ce que vous y gagnez ---------- */

.benefices__in { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .benefices__in { grid-template-columns: 1.05fr 0.95fr; } }
.benefices__photo { margin: 0; aspect-ratio: 5 / 4; border-radius: calc(var(--rayon) + 6px); overflow: hidden; background: var(--chape); }
.benefices__photo .rideau, .benefices__photo img { width: 100%; height: 100%; }
.benefices__photo img { object-fit: cover; object-position: 50% 45%; }
.benefices__texte .etiquette { color: var(--ardoise); margin: 0 0 14px; }
.benefices__texte h2 { margin-bottom: clamp(24px, 3.5vw, 36px); }
.benefices__liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.benefices__liste li { position: relative; padding-left: 30px; color: #2c3b55; }
.benefices__liste li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 16px; height: 4px; border-radius: 4px; background: var(--flamme); }
.benefices__liste strong { color: var(--toit); font-stretch: 112%; }
.benefices__suite { margin: 28px 0 0; font-weight: 600; }
.benefices__suite .lien-fleche { color: var(--flamme-fonce); }

/* ---------- Les deux métiers ---------- */

.metiers__grille { display: grid; gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 900px) { .metiers__grille { grid-template-columns: 1fr 1fr; } }
.metier {
  display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit;
  background: var(--blanc); border: 1px solid var(--trait-gris); border-radius: var(--rayon); overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.4s var(--courbe), transform 0.4s var(--courbe);
}
.metier__photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--chape); }
.metier__photo .rideau, .metier__photo img { width: 100%; height: 100%; }
.metier__photo img { object-fit: cover; }
.metier__texte { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 36px); }
.metier__texte .etiquette { color: var(--ardoise); margin: 0; }
.metier__texte h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.metier__texte p:not(.etiquette) { margin: 0; color: #2c3b55; }
.metier__lien { margin-top: auto; padding-top: 10px; color: var(--flamme-fonce); }

/* ---------- Engagements ---------- */

.engagements__in { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .engagements__in { grid-template-columns: 1fr 1fr; } .engagements__photo { position: sticky; top: calc(var(--haut-entete) + 32px); } }
.engagements__photo { margin: 0; }
.engagements__photo .cadre { aspect-ratio: 16 / 10; border-radius: var(--rayon); overflow: hidden; background: var(--toit); }
.engagements__photo .rideau, .engagements__photo img { width: 100%; height: 100%; }
.engagements__photo img { object-fit: cover; object-position: 85% 55%; }
.legende { margin: 12px 0 0; font-size: 0.9rem; color: var(--ardoise); }
.engagements h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.engagements .etiquette { color: var(--ardoise); margin: 0 0 14px; }
.coches { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.coche { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid rgb(16 40 79 / 0.14); }
.coche:last-child { border-bottom: 1px solid rgb(16 40 79 / 0.14); }
.coche__case { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--toit); color: var(--flamme); }
.coche__case svg { width: 22px; height: 22px; }
.coche__case path { stroke-dasharray: 22; stroke-dashoffset: 0; }
.coche p { margin: 0; color: #2c3b55; }
.coche strong { display: block; color: var(--toit); font-size: 1.12rem; font-stretch: 112%; margin-bottom: 2px; }
html.js:not(.mouvement-reduit) .coche__case path { stroke-dashoffset: 22; transition: stroke-dashoffset 0.6s var(--courbe) 0.15s; }
html.js:not(.mouvement-reduit) .coche p { opacity: 0.4; transition: opacity 0.6s; }
html.js:not(.mouvement-reduit) .coche.est-coche .coche__case path { stroke-dashoffset: 0; }
html.js:not(.mouvement-reduit) .coche.est-coche p { opacity: 1; }

/* ---------- Les films ---------- */

.films__grille { display: grid; gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 900px) { .films__grille { grid-template-columns: 1fr 1fr; } }
.film { display: grid; gap: 14px; margin: 0; }
.film__ecran {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--rayon);
  overflow: hidden; background: var(--toit); cursor: pointer; color: var(--neige);
}
.film__ecran img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--courbe), opacity 0.4s; opacity: 0.88; }
.metier__photo { isolation: isolate; }
.film__ecran iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__lecture {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  display: grid; place-items: center; border-radius: 50%; background: var(--flamme); color: var(--nuit);
  box-shadow: 0 0 0 10px rgb(245 131 40 / 0.25); transition: transform 0.35s var(--courbe), box-shadow 0.35s;
}
.film__lecture svg { width: 30px; height: 30px; margin-left: 4px; }
.film__legende { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.film__legende strong { font-size: 1.15rem; font-stretch: 112%; }
.film__legende .etiquette { color: var(--brume); }
.films__note { margin: clamp(28px, 4vw, 40px) 0 0; color: var(--brume); font-size: 0.95rem; max-width: 70ch; }

/* ---------- Demande de devis ---------- */

.devis__in { display: grid; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (min-width: 1000px) { .devis__in { grid-template-columns: 0.9fr 1.1fr; } }
.devis__intro .etiquette { color: var(--ardoise); margin: 0 0 14px; }
.devis__intro h2 { margin-bottom: 22px; }
.devis__intro > p:not(.etiquette) { max-width: 46ch; }
.devis__appel { display: grid; gap: 6px; margin: 30px 0; padding: 22px 24px; border-radius: var(--rayon); background: var(--toit); color: var(--neige); }
.devis__appel span { color: var(--brume); }
.devis__appel a { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; font-stretch: 125%; text-decoration: none; color: var(--flamme); }
.zone { padding-top: 22px; border-top: 1px solid rgb(16 40 79 / 0.14); }
.zone p { margin: 0 0 8px; }
.zone .etiquette { margin-bottom: 10px; color: var(--ardoise); }
.devis__adresse { display: flex; gap: 10px; align-items: flex-start; color: var(--ardoise); margin-top: 14px; }
.devis__adresse svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--flamme-fonce); }

.formulaire { background: var(--blanc); border: 1px solid var(--trait-gris); border-radius: calc(var(--rayon) + 4px); padding: clamp(22px, 3.5vw, 40px); box-shadow: 0 30px 70px -40px rgb(2 18 56 / 0.35); }
.champs { display: grid; gap: 18px 18px; }
@media (min-width: 620px) { .champs { grid-template-columns: 1fr 1fr; } .champ--large { grid-column: 1 / -1; } }
.champ { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.champ label, .champ legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
.champ small { font-weight: 400; color: var(--ardoise); }
.champ input, .champ textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #c3c8cf; border-radius: 10px;
  background: var(--neige); color: var(--toit); font: 400 1rem/1.4 var(--police);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.champ textarea { resize: vertical; min-height: 116px; }
.champ input::placeholder, .champ textarea::placeholder { color: #7a8594; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--toit); background: var(--blanc); box-shadow: 0 0 0 4px rgb(245 131 40 / 0.28); }
.champ.en-erreur input, .champ.en-erreur textarea { border-color: #b3261e; }
.champ__erreur { margin: 0; color: #b3261e; font-size: 0.9rem; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.choix label { position: relative; cursor: pointer; }
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.55em 1.1em; border-radius: 999px;
  border: 1.5px solid #c3c8cf; background: var(--neige); font-weight: 600; font-size: 0.95rem; transition: all 0.2s;
}
.choix input:checked + span { background: var(--toit); border-color: var(--toit); color: var(--neige); }
.choix input:focus-visible + span { outline: 3px solid var(--flamme); outline-offset: 2px; }
.formulaire__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 24px; }
.formulaire__note { margin: 0; font-size: 0.88rem; color: var(--ardoise); max-width: 34ch; }
.formulaire__etat { margin: 16px 0 0; font-weight: 600; }
.formulaire__etat:empty { display: none; }
.formulaire__etat.est-ok { padding: 14px 16px; border-radius: 10px; background: #e5f1e0; color: #1f4d17; }
.formulaire__etat.est-erreur { padding: 14px 16px; border-radius: 10px; background: #fbe6e4; color: #8a1c14; }

/* ---------- Haut des pages Chape et Mousse : le texte, et une grande photo de ses chantiers ---------- */

.tete { padding: calc(var(--haut-entete) + clamp(32px, 6vw, 72px)) 0 clamp(48px, 7vw, 96px); background: var(--neige); }
.tete__in { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) { .tete__in { grid-template-columns: 1.05fr 0.95fr; } }
.tete__surtitre { color: var(--ardoise); margin-bottom: 18px; }
.tete__titre { font-size: clamp(1.75rem, 1rem + 4vw, 3.9rem); line-height: 1.03; }
.tete__texte, .tete__photo { min-width: 0; }
.tete .niveau { color: var(--flamme-fonce); }
.tete__intro { max-width: 46ch; margin: 22px 0 30px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #2c3b55; }
.tete__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tete__photo { margin: 0; }
.tete__photo .cadre { aspect-ratio: 4 / 4.4; border-radius: calc(var(--rayon) + 6px); overflow: hidden; background: var(--chape); }
.tete__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 999px) { .tete__photo .cadre { aspect-ratio: 16 / 11; } }
@keyframes devoiler { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes zoomer { from { transform: scale(1.18); } }
html.js:not(.mouvement-reduit) .tete__surtitre { animation: monter 1s var(--courbe) 0.1s both; }
html.js:not(.mouvement-reduit) .tete__titre { animation: monter 1.2s var(--courbe) 0.22s both; }
html.js:not(.mouvement-reduit) .tete__intro { animation: monter 1.1s var(--courbe) 0.45s both; }
html.js:not(.mouvement-reduit) .tete__actions { animation: monter 1.1s var(--courbe) 0.6s both; }
html.js:not(.mouvement-reduit) .tete__photo .cadre { animation: devoiler 1.4s var(--courbe) 0.25s both; }
html.js:not(.mouvement-reduit) .tete__photo img { animation: zoomer 2s var(--courbe) 0.25s both; }

/* ---------- Les atouts ---------- */

.atouts__grille { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgb(16 40 79 / 0.14); }
@media (min-width: 760px) { .atouts__grille { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .atouts__grille { grid-template-columns: repeat(4, 1fr); } }
.atout { position: relative; padding: 28px 24px 30px 0; border-bottom: 1px solid rgb(16 40 79 / 0.14); }
@media (min-width: 760px) { .atout { padding-right: 28px; } }
.atout::before { content: ''; display: block; width: 44px; height: 4px; margin-bottom: 22px; border-radius: 4px; background: var(--flamme); }
.atout h3 { font-size: 1.28rem; margin-bottom: 10px; }
.atout p { margin: 0; color: #2c3b55; }

/* ---------- Ciment ou anhydrite ---------- */

.comparatif__grille { display: grid; gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 900px) { .comparatif__grille { grid-template-columns: 1fr 1fr; } }
.choixchape { background: var(--blanc); border: 1px solid var(--trait-gris); border-radius: var(--rayon); padding: clamp(24px, 3.5vw, 40px); }
.choixchape .etiquette { color: var(--ardoise); margin: 0 0 10px; }
.choixchape h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.liste-trait { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.liste-trait li { position: relative; padding-left: 26px; color: #2c3b55; }
.liste-trait li::before { content: ''; position: absolute; left: 0; top: 0.78em; width: 14px; height: 3px; border-radius: 3px; background: var(--flamme); }
.liste-trait strong { color: var(--toit); }
.note { margin: 20px 0 0; font-size: 0.9rem; color: var(--ardoise); }

/* ---------- Les étapes : piste horizontale sur ordinateur, frise verticale sur téléphone ---------- */

.etapes__piste { position: relative; width: var(--page); margin-inline: auto; }
.etapes__liste { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
@media (min-width: 760px) { .etapes__liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .etapes__liste { grid-template-columns: repeat(3, 1fr); } }
.etape { display: flex; flex-direction: column; gap: 10px; }
.etape__photo { aspect-ratio: 16 / 10; border-radius: var(--rayon); overflow: hidden; background: var(--chape); margin-bottom: 8px; }
.etape__photo img { width: 100%; height: 100%; object-fit: cover; }
.etape__num { margin: 0; color: var(--flamme-fonce); }
.etape h3 { font-size: 1.35rem; }
.etape p:not(.etiquette) { margin: 0; color: #2c3b55; }
.etapes__ligne { display: none; }

/* Piste (posée par scenes.js sur un grand écran, avec les animations) : les étapes défilent de côté, la section
   reste en place, et le trait de niveau se tire sous les étapes. */
.etapes--piste .etapes__piste { width: 100%; overflow: hidden; padding-bottom: 36px; }
.etapes--piste .etapes__liste { display: flex; gap: 28px; width: max-content; padding-inline: max(var(--marge), (100vw - 1240px) / 2); }
.etapes--piste .etape { width: clamp(300px, 27vw, 380px); opacity: 0.45; transition: opacity 0.5s; }
.etapes--piste .etape.est-actif { opacity: 1; }
.etapes--piste .etapes__ligne { display: block; position: absolute; left: max(var(--marge), (100vw - 1240px) / 2); right: max(var(--marge), (100vw - 1240px) / 2); bottom: 0; height: 4px; border-radius: 4px; background: rgb(16 40 79 / 0.12); }
.etapes--piste .etapes__ligne span { position: absolute; inset: 0; border-radius: 4px; background: var(--flamme); transform: scaleX(0); transform-origin: left; }

/* Frise (téléphone et tablette, avec les animations) : un fil vertical se remplit, chaque étape s'allume. */
.etapes--frise .etapes__liste { grid-template-columns: 1fr; padding-left: 30px; position: relative; }
.etapes--frise .etapes__liste::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: rgb(16 40 79 / 0.12); }
.etapes--frise .etapes__liste::after { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--flamme); transform: scaleY(var(--fil, 0)); transform-origin: top; }
.etapes--frise .etape { position: relative; opacity: 0.45; transition: opacity 0.5s; }
.etapes--frise .etape::before { content: ''; position: absolute; left: -30px; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--neige); border: 3px solid rgb(16 40 79 / 0.25); z-index: 1; transition: background-color 0.4s, border-color 0.4s; }
.etapes--frise .etape.est-actif { opacity: 1; }
.etapes--frise .etape.est-actif::before { background: var(--flamme); border-color: var(--flamme); }
@media (min-width: 760px) and (max-width: 1099px) { .etapes--frise .etapes__liste { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------- Partenaire (Chrono Chape) ---------- */

.partenaire__in { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .partenaire__in { grid-template-columns: 0.9fr 1.1fr; } }
.partenaire__texte .etiquette { margin: 0 0 14px; }
.partenaire__texte h2 { margin-bottom: 24px; }
.partenaire__texte p:not(.etiquette) { color: #dfe4ec; max-width: 46ch; }

/* ---------- Du sol au toit (Mousse) ---------- */

.lieux__in { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .lieux__in { grid-template-columns: 0.85fr 1.15fr; } .lieux__photo { position: sticky; top: calc(var(--haut-entete) + 32px); } }
.lieux__photo { margin: 0; }
.lieux__photo .cadre { aspect-ratio: 4 / 5; border-radius: var(--rayon); overflow: hidden; background: var(--toit); }
.lieux__photo .rideau, .lieux__photo img { width: 100%; height: 100%; }
.lieux__photo img { object-fit: cover; }
.lieux .etiquette { color: var(--ardoise); margin: 0 0 14px; }
.lieux h2 { margin-bottom: clamp(24px, 4vw, 40px); }
.lieux__liste { margin: 0; }
.lieu { display: grid; gap: 6px 28px; padding: 22px 0; border-top: 1px solid rgb(16 40 79 / 0.14); }
.lieu:last-child { border-bottom: 1px solid rgb(16 40 79 / 0.14); }
@media (min-width: 620px) { .lieu { grid-template-columns: 220px 1fr; } }
.lieu dt { font-weight: 800; font-stretch: 125%; font-size: 1.2rem; line-height: 1.2; }
.lieu dd { margin: 0; color: #2c3b55; }
.lieu dd a { color: var(--flamme-fonce); font-weight: 700; }

/* ---------- Les produits (Mousse) ---------- */

.produits__grille { display: grid; gap: clamp(16px, 2.4vw, 24px); }
@media (min-width: 900px) { .produits__grille { grid-template-columns: repeat(3, 1fr); } }
.produit { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 3vw, 32px); border-radius: var(--rayon); background: rgb(247 248 248 / 0.06); border: 1px solid rgb(247 248 248 / 0.14); }
.produit .etiquette { margin: 0; }
.produit h3 { font-size: 1.45rem; }
.produit p:not(.etiquette) { margin: 0; color: #dfe4ec; }
.produit .lien-fleche { margin-top: auto; padding-top: 8px; color: var(--flamme); }
.produit--rge { background: var(--toit); border-color: var(--toit); }

/* ---------- Vers l'autre métier ---------- */

.croise { padding-block: clamp(40px, 6vw, 72px); }
.croise__carte {
  display: grid; overflow: hidden; text-decoration: none; color: inherit;
  border-radius: calc(var(--rayon) + 4px); background: var(--chape); border: 1px solid var(--trait-gris);
}
@media (min-width: 900px) { .croise__carte { grid-template-columns: 0.8fr 1.2fr; } }
.croise__photo { min-height: 220px; }
.croise__photo img { width: 100%; height: 100%; object-fit: cover; }
.croise__texte { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 4vw, 48px); justify-content: center; }
.croise__texte .etiquette { margin: 0; color: var(--ardoise); }
.croise__texte h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.croise__texte p:not(.etiquette) { margin: 0; color: #2c3b55; max-width: 52ch; }
.croise__texte .lien-fleche { color: var(--flamme-fonce); margin-top: 6px; }

/* ---------- Mentions légales ---------- */

.tete--simple { padding-bottom: clamp(24px, 4vw, 40px); }
.tete--simple .tete__titre { max-width: 18em; }
.legal { padding-top: clamp(24px, 4vw, 40px); }
.legal__in { max-width: 760px; }
.legal h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: #2c3b55; }
.legal a { color: var(--flamme-fonce); font-weight: 600; }
.legal a svg { display: inline; width: 1em; height: 1em; vertical-align: -0.12em; margin-left: 0.2em; }

/* Effets de survol : seulement avec une souris (sur un écran tactile, ils resteraient collés après un toucher). */
@media (hover: hover) {
  .metier:hover { border-color: var(--toit); box-shadow: 0 28px 60px -34px rgb(2 18 56 / 0.45); transform: translateY(-3px); }
  .metier__photo .rideau { transition: transform 1.2s var(--courbe); }
  .metier:hover .metier__photo .rideau { transform: scale(1.04); }
  .metier:hover .metier__lien svg { transform: translateX(5px); }
  .film__ecran:hover img { transform: scale(1.03); opacity: 1; }
  .film__ecran:hover .film__lecture { transform: scale(1.06); box-shadow: 0 0 0 16px rgb(245 131 40 / 0.18); }
  .croise__carte:hover { border-color: var(--toit); }
  .croise__carte:hover .lien-fleche svg { transform: translateX(5px); }
}

/* ---------- Pied de page ---------- */

.pied { background: var(--nuit); color: var(--neige); padding: clamp(56px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); }
.pied__haut { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgb(247 248 248 / 0.14); }
@media (min-width: 900px) { .pied__haut { grid-template-columns: 1fr 1.6fr; } }
.pied__logo { width: 168px; margin-bottom: 18px; }
.pied__marque p { color: var(--brume); max-width: 32ch; margin: 0; }
.pied__grille { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.pied__grille h2 { color: var(--brume); margin: 0 0 14px; font-size: 0.72rem; }
.pied__grille ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pied__grille a { text-decoration: none; }
.pied__grille a:hover { color: var(--flamme); }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 24px; font-size: 0.88rem; color: var(--brume); }
.pied__bas a { text-decoration: none; }
.pied__bas a:hover { color: var(--neige); text-decoration: underline; }

/* ---------- Barre du bas (téléphone) ---------- */

.barre-mobile { display: none; }

/* ---------- Écrans moyens et petits ---------- */

@media (max-width: 1080px) {
  .nav, .entete__devis { display: none; }
  .burger { display: block; }
  .entete__actions { margin-left: auto; }
}
@media (max-width: 760px) {
  :root { --haut-entete: 66px; }
  .entete__tel span { display: none; }
  .entete__tel { width: 46px; padding: 0 !important; }
  .ouverture { min-height: max(560px, 100svh); }
  .ouverture__actions .bouton, .tete__actions .bouton { flex: 1 1 100%; }
  .bouton { white-space: normal; text-align: center; }
  .ouverture__pause { top: calc(var(--haut-entete) + 12px); bottom: auto; width: 40px; height: 40px; }
  .barre-mobile {
    display: grid; grid-template-columns: auto 1fr; gap: 8px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50;
    padding: 8px; border-radius: 999px; background: rgb(2 18 56 / 0.92); box-shadow: 0 16px 40px -14px rgb(2 18 56 / 0.6);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(140%); transition: transform 0.45s var(--courbe);
  }
  .barre-mobile.est-visible { transform: none; }
  .barre-mobile .bouton { min-height: 48px; padding-inline: 1.1em; font-size: 0.95rem; }
  .pied { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .formulaire__bas .bouton { width: 100%; }
}
@media (max-width: 380px) {
  .barre-mobile .bouton { padding-inline: 0.9em; font-size: 0.9rem; }
  .choix span { padding-inline: 0.9em; }
}

/* ---------- Sans animation ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
