/* =====================================================================
   Mouliste Lyonnais — feuille de style du site vitrine
   Palette tirée du logo : bleu #0A5292, rouge #E31E1E, anthracite #1F252B
   ===================================================================== */

:root {
  --bleu: #0A5292; --bleu-sombre: #073B6B; --bleu-pale: #E3ECF5; --bleu-clair: #8FB4DA;
  --rouge: #E31E1E; --rouge-sombre: #B91414; --rouge-pale: #FDE7E7;
  --noir: #111418; --anthracite: #1F252B; --acier: #384250; --acier-clair: #2B333B;
  --gris-600: #5B6673; --gris-400: #98A2AE; --gris-200: #D5DAE0; --gris-100: #E9ECF0;
  --fond: #F4F6F8; --blanc: #FFFFFF;
  --titre: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --texte: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --expo: cubic-bezier(.16, 1, .3, 1);
  --largeur: 1200px;
  --gouttiere: clamp(20px, 5vw, 120px);
  --entete: 128px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--anthracite);
  font-family: var(--texte); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-wrap: pretty;
}
img, video { display: block; max-width: 100%; }
a { color: var(--bleu); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bleu-sombre); }
h1, h2, h3, h4 { margin: 0; font-family: var(--titre); font-weight: 700; line-height: 1.02; text-wrap: balance; }
p, ul, figure { margin: 0; } ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.conteneur { width: min(var(--largeur), 100% - 2 * var(--gouttiere)); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 104px); }
.section--blanc { background: var(--blanc); border-top: 1px solid var(--gris-200); }
.section--sombre { background: var(--anthracite); color: var(--blanc); }
.section--bleu { background: var(--bleu); color: var(--blanc); }

.spec { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.spec--bleu { color: var(--bleu); } .spec--clair { color: var(--bleu-clair); } .spec--gris { color: var(--gris-400); }
.titre-section { font-size: clamp(34px, 3.4vw, 46px); }
.titre-caps { text-transform: uppercase; }
.entete-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(32px, 4vw, 48px); flex-wrap: wrap; }
.entete-section > div { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 2px; border: 0;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .2s var(--ease), box-shadow .3s;
}
.btn:active { transform: scale(.97); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico--fleche { transform: translateX(5px); }
.btn--rouge { background: var(--rouge); color: var(--blanc); }
.btn--rouge:hover { background: var(--rouge-sombre); color: var(--blanc); box-shadow: 0 10px 24px rgba(227, 30, 30, .25); }
.btn--bleu { background: var(--bleu); color: var(--blanc); }
.btn--bleu:hover { background: var(--bleu-sombre); color: var(--blanc); }
.btn--filet { border: 1.5px solid rgba(255, 255, 255, .75); color: var(--blanc); background: transparent; }
.btn--filet:hover { background: rgba(255, 255, 255, .1); color: var(--blanc); }
.btn--filet-bleu { border: 1.5px solid var(--bleu); color: var(--bleu); background: transparent; }
.btn--filet-bleu:hover { background: var(--bleu-pale); }
.btn--grand { height: 52px; font-size: 16px; padding: 0 28px; }
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--s { width: 18px; height: 18px; }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.lien-fleche .ico { transition: transform .3s var(--ease); }
.lien-fleche:hover .ico { transform: translateX(6px); }

/* ---------- Rideau de transition ---------- */
#rideau {
  position: fixed; inset: 0; z-index: 1000; background: var(--blanc);
  display: grid; place-items: center; pointer-events: none;
  transform: translateY(0); transition: transform .75s var(--expo);
}
#rideau img { height: 88px; width: auto; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
#rideau.rideau--visible img { opacity: 1; transform: none; }
html.js #rideau.rideau--leve { transform: translateY(-101%); }
html:not(.js) #rideau { display: none; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 100; background: var(--blanc);
  border-bottom: 1px solid var(--gris-200);
  transition: box-shadow .4s;
}
body.defile .entete { box-shadow: 0 8px 30px rgba(31, 37, 43, .08); }
.entete__barre { height: var(--entete); display: flex; align-items: center; justify-content: space-between; gap: 32px; transition: height .45s var(--ease); }
body.defile .entete__barre { height: 76px; }
.logo img { height: 94px; width: auto; transition: height .45s var(--ease); }
body.defile .logo img { height: 52px; }
.nav { display: flex; gap: 32px; font-size: 17px; font-weight: 500; }
.nav a { position: relative; color: var(--anthracite); padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rouge); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--bleu); }
.entete__actions { display: flex; align-items: center; gap: 20px; }
.tel-entete { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: var(--bleu); font-variant-numeric: tabular-nums; }
.burger, .tel-mobile { display: none; }

/* ---------- Médias et emplacements photo ---------- */
.media {
  position: relative; overflow: hidden; border-radius: 2px;
  background-color: var(--acier-clair);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 12px);
}
.media--clair { background-color: #DEE3E9; background-image: repeating-linear-gradient(135deg, rgba(31, 37, 43, .07) 0 1px, transparent 1px 12px); }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media::after {
  content: attr(data-legende); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gris-400); pointer-events: none;
}
.media--clair::after { color: var(--gris-600); }
.media:has(img)::after, .media:has(video.pret)::after { display: none; }
.media--4x3 { aspect-ratio: 4 / 3; } .media--3x2 { aspect-ratio: 3 / 2; } .media--16x9 { aspect-ratio: 16 / 9; } .media--carre { aspect-ratio: 1; } .media--portrait { aspect-ratio: 3 / 4; }
.zoom .media img { transition: transform .9s var(--ease); }
.zoom:hover .media img { transform: scale(1.05); }

/* ---------- Héros ---------- */
.heros {
  position: relative; min-height: calc(100svh - var(--entete)); min-height: 680px; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--noir); color: var(--blanc); overflow: hidden;
}
.heros--court { min-height: 0; }
.heros__media { position: absolute; inset: -8% 0; border-radius: 0; will-change: transform; }
.heros__media::after { color: var(--gris-400); align-items: flex-start; justify-content: flex-end; padding: 28px var(--gouttiere); text-align: right; }
.heros video { opacity: 0; transition: opacity 1.2s; }
.heros video.pret { opacity: 1; }
.balayage { position: absolute; top: 0; bottom: 0; left: 0; width: 24%; background: linear-gradient(90deg, rgba(143, 180, 218, 0), rgba(143, 180, 218, .10), rgba(143, 180, 218, 0)); animation: balayage 7s cubic-bezier(.4, 0, .6, 1) infinite; pointer-events: none; }
@keyframes balayage { from { transform: translateX(-120%); } to { transform: translateX(420%); } }
.heros__voile { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 20, 24, .9) 0%, rgba(17, 20, 24, .66) 55%, rgba(17, 20, 24, .38) 100%); }
.heros__badge { position: absolute; top: 28px; right: var(--gouttiere); display: inline-flex; align-items: center; gap: 10px; color: #C5CCD4; background: rgba(17, 20, 24, .55); border: 1px solid rgba(255, 255, 255, .18); padding: 8px 12px; border-radius: 2px; }
.heros__contenu { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; padding: 160px 0 72px; }
.heros__texte { display: flex; flex-direction: column; gap: 24px; }
.heros h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: .98; letter-spacing: -.005em; text-transform: uppercase; }
.heros__accroche { font-size: 19px; line-height: 1.5; color: #C5CCD4; max-width: 560px; }
.heros__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.heros--court .heros__contenu { padding: 96px 0 64px; }
.heros--court h1 { font-size: clamp(36px, 4.2vw, 58px); }
.heros--court .heros__accroche { font-size: 17px; }
.graduation { position: relative; height: 10px; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 1px, transparent 1px 12px); opacity: .55; }

/* ---------- Plaque technique ---------- */
.plaque { background: var(--acier-clair); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); border-radius: 2px; }
.plaque--specs { justify-self: end; width: min(380px, 100%); padding: 6px 26px 10px; display: flex; flex-direction: column; }
.bloc-spec { display: flex; flex-direction: column; gap: 7px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.bloc-spec:last-child { border-bottom: 0; }
.bloc-spec__valeur { display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 700; font-size: 24px; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; color: var(--blanc); }
.ligne-spec { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ligne-spec:last-child { border-bottom: 0; }
.ligne-spec .valeur { font-family: var(--titre); font-weight: 700; font-size: 26px; line-height: 1; }
.point-pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 30, 30, .55); } 70% { box-shadow: 0 0 0 12px rgba(227, 30, 30, 0); } }

/* ---------- Bloc À propos (pièce technique) ---------- */
.apropos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.apropos__visuel { min-height: 600px; border-radius: 0; }
.reperes { position: absolute; inset: 0; pointer-events: none; animation: respire 5s ease-in-out infinite; }
@keyframes respire { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.repere { position: absolute; width: 28px; height: 28px; border: 0 solid var(--bleu-clair); }
.repere--hg { top: 32px; left: 32px; border-top-width: 2px; border-left-width: 2px; }
.repere--hd { top: 32px; right: 32px; border-top-width: 2px; border-right-width: 2px; }
.repere--bg { bottom: 32px; left: 32px; border-bottom-width: 2px; border-left-width: 2px; }
.repere--bd { bottom: 32px; right: 32px; border-bottom-width: 2px; border-right-width: 2px; }
.viseur { position: absolute; background: rgba(143, 180, 218, .6); animation: viseur 2.6s ease-in-out infinite; pointer-events: none; }
.viseur--v { left: 50%; top: 80px; bottom: 80px; width: 1px; } .viseur--h { top: 50%; left: 80px; right: 80px; height: 1px; }
@keyframes viseur { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.apropos__visuel .spec { position: absolute; z-index: 1; }
.apropos__texte { padding: clamp(48px, 6vw, 96px) var(--gouttiere) clamp(48px, 6vw, 96px) clamp(32px, 6vw, 88px); display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.apropos__texte h2 { font-size: clamp(36px, 3.8vw, 52px); }
.apropos__texte p { font-size: 17px; color: #C5CCD4; }
.liste-specs { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 6px; }

/* ---------- Bande « 15 ans » ---------- */
.anciennete { background: var(--blanc); border-top: 3px solid var(--anthracite); border-bottom: 1px solid var(--gris-200); padding: clamp(40px, 5vw, 64px) 0; }
.anciennete__grille { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 72px); align-items: center; }
.anciennete__nombre { display: flex; align-items: baseline; gap: 10px; color: var(--bleu); }
.anciennete__chiffre { font-family: var(--titre); font-weight: 700; font-size: clamp(88px, 11vw, 156px); line-height: .8; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.anciennete__unite { font-family: var(--titre); font-weight: 700; font-size: clamp(28px, 3vw, 44px); line-height: 1; text-transform: uppercase; }
.anciennete__texte { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.anciennete__texte h2 { font-size: clamp(26px, 2.6vw, 36px); }
.anciennete__texte p:last-child { font-size: 16px; color: var(--gris-600); }
.anciennete__reperes { display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--gris-200); padding-left: clamp(24px, 3vw, 40px); }
.anciennete__reperes li { display: flex; flex-direction: column; gap: 2px; }
.anciennete__reperes strong { font-family: var(--titre); font-weight: 700; font-size: 24px; line-height: 1; white-space: nowrap; }

/* ---------- Foire aux questions ---------- */
.faq__grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__intro { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--entete) + 32px); }
.faq__intro h2 { font-size: clamp(30px, 3vw, 42px); }
.faq__intro p:last-child { font-size: 15px; color: var(--gris-600); }
.faq__liste { display: flex; flex-direction: column; border-top: 1px solid var(--gris-200); }
.faq__item { border-bottom: 1px solid var(--gris-200); }
.faq__item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--titre); font-weight: 700; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.15;
  color: var(--anthracite); transition: color .25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--bleu); }
.faq__item summary::after {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px;
  background: currentColor; transition: transform .35s var(--ease);
  -webkit-mask: no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  mask: no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.faq__item[open] summary { color: var(--bleu); }
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__reponse { padding: 0 56px 26px 0; font-size: 16px; color: var(--acier); animation: apparaitReponse .45s var(--ease) both; }
@keyframes apparaitReponse { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Bandeau clients ---------- */
.clients { background: var(--fond); border-bottom: 1px solid var(--gris-200); padding: 40px 0 44px; display: flex; flex-direction: column; gap: 26px; }
.clients__entete { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.clients__entete p:last-child { font-size: 13px; color: var(--gris-400); }
.defilement { overflow: hidden; position: relative; }
.defilement::before, .defilement::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.defilement::before { left: 0; background: linear-gradient(90deg, var(--fond), rgba(244, 246, 248, 0)); }
.defilement::after { right: 0; background: linear-gradient(270deg, var(--fond), rgba(244, 246, 248, 0)); }
.defilement__piste { display: flex; width: max-content; animation: defile 40s linear infinite; }
.defilement:hover .defilement__piste { animation-play-state: paused; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-client { width: 168px; height: 60px; margin-right: 56px; display: flex; align-items: center; justify-content: center; flex: none; border: 1px dashed var(--gris-400); border-radius: 2px; color: var(--gris-600); font-size: 12px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.logo-client img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s; }
.logo-client:has(img) { border: 0; }
.logo-client:hover img { filter: none; opacity: 1; }

/* ---------- Cartes ---------- */
.carte { background: var(--blanc); border: 1px solid var(--gris-200); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; }
.souleve { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.souleve:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(31, 37, 43, .14); }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grille-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.carte__corps { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 22px; }
.carte__meta { display: flex; justify-content: space-between; align-items: center; }
.carte h3 { font-size: 32px; }
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.etapes li { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 2px solid var(--anthracite); font-size: 15px; font-weight: 500; }
.etiquette { display: inline-flex; align-self: flex-start; align-items: center; height: 24px; padding: 0 10px; border-radius: 2px; background: var(--bleu-pale); color: var(--bleu); font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.puce { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--gris-200); border-radius: 2px; background: var(--blanc); font-size: 14px; font-weight: 500; color: var(--anthracite); white-space: nowrap; cursor: default; transition: background .25s, color .25s, border-color .25s; }
button.puce { cursor: pointer; }
.puce.est-actif, button.puce:hover { background: var(--anthracite); border-color: var(--anthracite); color: var(--blanc); }

/* ---------- Tuiles services ---------- */
.tuile { position: relative; overflow: hidden; border-radius: 2px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--blanc); min-height: 340px; }
.tuile .media { position: absolute; inset: 0; border-radius: 0; transition: transform .9s var(--ease); }
.tuile:hover .media { transform: scale(1.06); }
.tuile__voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 20, 24, .05) 30%, rgba(17, 20, 24, .88) 100%); }
.tuile__contenu { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.tuile__icone { width: 44px; height: 44px; border-radius: 2px; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; }
.tuile__icone--rouge { background: var(--rouge); }
.tuile h3 { font-size: 26px; color: var(--blanc); }
.tuile__legende { max-height: 0; opacity: 0; overflow: hidden; font-size: 14px; color: #C5CCD4; transition: max-height .5s var(--ease), opacity .5s; }
.tuile:hover .tuile__legende, .tuile:focus-within .tuile__legende { max-height: 80px; opacity: 1; }
.tuile__lien { position: absolute; inset: 0; z-index: 1; }

/* ---------- Carrousel machines ---------- */
/* ---------- Réalisations mises en avant (accueil) ---------- */
.entete-section--simple { margin-bottom: clamp(40px, 5vw, 64px); }
.realisations-avant { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); }
.realisation { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.realisation__media { height: clamp(280px, 32vw, 420px); }
.realisation--inversee .realisation__media { order: 2; }
.realisation__texte { display: flex; flex-direction: column; gap: 16px; }
.realisation__texte h3 { font-size: clamp(28px, 2.6vw, 36px); }
.realisation__texte p { color: var(--acier); }
.realisation__operations { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.realisation__operations li { display: flex; align-items: baseline; gap: 14px; padding-top: 10px; border-top: 1px solid var(--gris-200); font-size: 15px; font-weight: 500; }
.realisations-avant__pied { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 72px); }

/* ---------- Fiches machines ---------- */
.machine { width: 384px; flex: none; display: flex; flex-direction: column; overflow: hidden; }
.machine .media { height: 240px; border-radius: 0; }
.machine__corps { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(255, 255, 255, .12); background: var(--acier-clair); }
.machine__corps h3 { font-size: 22px; color: var(--blanc); }
.parc__ruban { margin-top: 8px; }
.defilement--sombre::before { background: linear-gradient(90deg, var(--anthracite), rgba(31, 37, 43, 0)); }
.defilement--sombre::after { background: linear-gradient(270deg, var(--anthracite), rgba(31, 37, 43, 0)); }
.defilement__piste--machines { animation-duration: 75s; }
.defilement__piste--machines .machine { margin-right: 24px; }
.parc__compte { margin-top: 28px; text-align: right; }
.rangee-defilante { display: none; }

/* ---------- Galerie ---------- */
.figure { display: flex; flex-direction: column; gap: 12px; }
.figure figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.figure .media { cursor: zoom-in; }
.barre-filtre { padding: 20px 0; border-bottom: 1px solid var(--gris-200); }
.barre-filtre__grille { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.champ-filtre { display: flex; flex-direction: column; gap: 8px; }
.champ-filtre__controle { position: relative; display: inline-flex; align-items: center; }
.champ-filtre__controle .ico { position: absolute; right: 16px; pointer-events: none; color: var(--bleu); transition: transform .25s; }
.champ-filtre__controle:focus-within .ico { transform: rotate(180deg); }
.champ-filtre select {
  appearance: none; -webkit-appearance: none;
  min-width: min(320px, 78vw); height: 48px; padding: 0 48px 0 16px;
  border: 1px solid var(--gris-200); border-radius: 2px; background: var(--blanc);
  font-family: inherit; font-weight: 500; font-size: 16px;
  color: var(--anthracite); cursor: pointer; transition: border-color .25s, box-shadow .25s;
}
.champ-filtre select:hover { border-color: var(--bleu); }
.champ-filtre select:focus-visible { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(10, 82, 146, .18); }
.champ-filtre__compte { font-size: 14px; color: var(--gris-600); font-variant-numeric: tabular-nums; }
.galerie .figure { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.galerie .figure.est-masque { opacity: 0; transform: scale(.96); pointer-events: none; position: absolute; visibility: hidden; }
.galerie { position: relative; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 92vw); }
.lightbox::backdrop { background: rgba(17, 20, 24, .92); backdrop-filter: blur(6px); }
.lightbox .media { aspect-ratio: 3 / 2; }
.lightbox figcaption { color: #C5CCD4; padding: 16px 0 0; display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.lightbox__fermer { position: fixed; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(17, 20, 24, .6); color: var(--blanc); display: flex; align-items: center; justify-content: center; }

/* ---------- Secteurs ---------- */
.secteurs { background: var(--blanc); border-top: 1px solid var(--gris-200); border-bottom: 1px solid var(--gris-200); padding: 36px 0; }
.secteurs .conteneur { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.secteurs__liste { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Bandeau devis ---------- */
.appel { padding: 80px 0; }
.appel .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.appel h2 { font-size: clamp(32px, 3vw, 40px); color: var(--blanc); max-width: 640px; }
.appel__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Pied de page ---------- */
.pied { background: var(--anthracite); color: #C5CCD4; padding: 64px 0 28px; }
.pied__grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.pied__logo img { height: 200px; width: auto; }
.pied h4 { font-family: var(--texte); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blanc); margin-bottom: 14px; }
.pied ul { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.pied a { color: #C5CCD4; } .pied a:hover { color: var(--blanc); }
.pied li { display: flex; gap: 10px; align-items: flex-start; }
.pied li .ico { color: var(--bleu-clair); }
.pied__tel { color: var(--blanc) !important; font-weight: 600; }
.pied__bas { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--acier); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--gris-400); }
.pied__bas div { display: flex; gap: 24px; flex-wrap: wrap; }
.pied__bas a { color: var(--gris-400); }

/* ---------- Page parc machine ---------- */
.groupe-titre { display: flex; align-items: baseline; gap: 16px; border-bottom: 2px solid var(--anthracite); padding-bottom: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.groupe-titre h2 { font-size: 32px; } .groupe-titre span { font-size: 14px; color: var(--gris-600); }
.fiche .media { height: 210px; border-radius: 0; }
.fiche__corps { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.fiche h3 { font-size: 26px; }
.fiche p { font-size: 14px; color: var(--gris-600); }
.fiche--large { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.fiche--large .media { height: 100%; min-height: 210px; }
.fiche--large .fiche__corps { padding: 28px 32px; justify-content: center; }

/* ---------- Page à propos ---------- */
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
.deux-colonnes h1, .deux-colonnes h2 { font-size: clamp(36px, 3.8vw, 54px); }
.texte-long { display: flex; flex-direction: column; gap: 20px; font-size: 17px; color: var(--acier); }
.valeur { padding: 32px 30px 34px; gap: 14px; }
.valeur__numero { font-family: var(--titre); font-weight: 700; font-size: 56px; line-height: 1; color: var(--gris-200); }
.valeur h3 { font-size: 28px; } .valeur p { font-size: 15px; color: var(--gris-600); }

/* ---------- Page contact ---------- */
.contact-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
.formulaire { padding: 40px; gap: 24px; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: 13px; font-weight: 600; color: var(--acier); }
.champ input, .champ select, .champ textarea {
  font: inherit; color: var(--anthracite); background: var(--blanc);
  min-height: 46px; border: 1px solid #C3CAD2; border-radius: 2px; padding: 10px 14px; width: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.champ textarea { min-height: 140px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 0; border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-pale); }
.champ input:user-invalid, .champ textarea:user-invalid { border-color: var(--rouge); }
.depot { border: 1.5px dashed #C3CAD2; border-radius: 2px; padding: 22px; display: flex; align-items: center; gap: 14px; color: var(--gris-600); font-size: 14px; background: var(--fond); cursor: pointer; transition: border-color .25s, background .25s; }
.depot:hover { border-color: var(--bleu); background: var(--bleu-pale); }
.depot input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.depot small { display: block; font-size: 12px; color: var(--gris-400); }
.consentement { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--gris-600); }
.consentement input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--bleu); flex: none; }
.formulaire__pied { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.formulaire__pied span { font-size: 13px; color: var(--gris-400); display: inline-flex; align-items: center; gap: 8px; }
.coordonnees { padding: 32px; gap: 22px; }
.coordonnees h2 { font-size: 30px; }
.coordonnees ul { display: flex; flex-direction: column; gap: 18px; }
.coordonnees li { display: flex; gap: 14px; align-items: flex-start; }
.coordonnees li .ico { color: var(--bleu); }
.coordonnees .grand-tel { font-family: var(--titre); font-weight: 700; font-size: 32px; line-height: 1; color: var(--bleu); }
.urgence { background: var(--anthracite); color: var(--blanc); padding: 26px 28px; border-radius: 2px; display: flex; flex-direction: column; gap: 8px; }
.urgence strong { display: flex; align-items: center; gap: 10px; }
.urgence p { font-size: 14px; color: #C5CCD4; }
.carte-map { height: 300px; }
.carte-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Barre d'appel mobile ---------- */
.barre-mobile { display: none; }

/* ---------- Apparitions au défilement ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delai, 0s); }
html.js [data-reveal].est-visible { opacity: 1; transform: none; }
html.js [data-reveal="zoom"] { transform: scale(1.06); }
html.js [data-reveal="masque"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--expo); }
html.js [data-reveal="masque"].est-visible { clip-path: inset(0); }
html.js [data-reveal="gauche"] { transform: translateX(-40px); }
html.js [data-reveal="droite"] { transform: translateX(40px); }
html.js .mots .mot { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
html.js .mots .mot > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--expo); transition-delay: calc(var(--i) * 55ms); }
html.js .mots.est-visible .mot > span { transform: none; }
html.js .heros [data-anime] { opacity: 0; transform: translateY(22px); animation: montee .9s var(--ease) forwards; animation-delay: calc(.35s + var(--i, 0) * .14s); }
@keyframes montee { to { opacity: 1; transform: none; } }

/* ---------- Réactif ---------- */
@media (max-width: 1100px) {
  .grille-3, .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied__grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --entete: 72px; }
  .entete__barre { height: 72px; } body.defile .entete__barre { height: 64px; }
  .logo img, body.defile .logo img { height: 48px; }
  .nav { position: fixed; inset: var(--entete) 0 0 0; background: var(--anthracite); flex-direction: column; gap: 0; padding: 24px var(--gouttiere); transform: translateX(100%); transition: transform .5s var(--expo); z-index: 90; }
  .nav.est-ouvert { transform: none; }
  .nav a { color: var(--blanc); font-family: var(--titre); font-size: 34px; text-transform: uppercase; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); opacity: 0; transform: translateX(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(.1s + var(--i, 0) * .06s); }
  .nav.est-ouvert a { opacity: 1; transform: none; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--bleu-clair); }
  .entete__actions .tel-entete, .entete__actions .btn { display: none; }
  .tel-mobile { display: flex; width: 44px; height: 44px; border-radius: 2px; background: var(--bleu); color: var(--blanc); align-items: center; justify-content: center; }
  .burger { display: flex; width: 44px; height: 44px; border: 1px solid var(--gris-200); background: var(--blanc); border-radius: 2px; align-items: center; justify-content: center; color: var(--anthracite); padding: 0; flex-direction: column; gap: 5px; }
  .burger span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .3s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .heros { min-height: 640px; }
  .heros__contenu { grid-template-columns: 1fr; padding: 120px 0 36px; gap: 28px; }
  .heros__badge { top: 16px; left: var(--gouttiere); right: var(--gouttiere); font-size: 10px; }
  /* La barre fixe en bas d’écran porte déjà les deux actions. */
  .heros__actions { display: none; }
  .realisation { grid-template-columns: 1fr; gap: 24px; }
  .realisation--inversee .realisation__media { order: 0; }
  .realisation__media { height: 240px; }
  .plaque--specs { display: none; }
  .apropos { grid-template-columns: 1fr; }
  .apropos__visuel { min-height: 300px; }
  .repere--hg, .repere--hd { top: 16px; } .repere--bg, .repere--bd { bottom: 16px; }
  .repere--hg, .repere--bg { left: 16px; } .repere--hd, .repere--bd { right: 16px; }
  .grille-2, .grille-3, .grille-4 { grid-template-columns: 1fr; }
  .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tuile { min-height: 190px; } .tuile h3 { font-size: 18px; } .tuile__legende { display: none; }
  .carte h3 { font-size: 24px; } .carte__corps { padding: 18px 20px 20px; gap: 12px; }
  .etapes { gap: 10px; } .etapes li { font-size: 13px; padding-top: 8px; }
  .parc__ruban { display: none; }
  .rangee-defilante { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gouttiere) 6px; margin: 0 calc(-1 * var(--gouttiere)); scrollbar-width: none; }
  .rangee-defilante::-webkit-scrollbar { display: none; }
  .rangee-defilante .machine { width: 220px; scroll-snap-align: start; }
  .rangee-defilante .machine .media { height: 140px; }
  .rangee-defilante .machine__corps h3 { font-size: 16px; }
  .anciennete__grille { grid-template-columns: 1fr; gap: 24px; }
  .anciennete__reperes { flex-direction: row; flex-wrap: wrap; gap: 20px 32px; border-left: 0; padding-left: 0; border-top: 1px solid var(--gris-200); padding-top: 20px; }
  .faq__grille { grid-template-columns: 1fr; gap: 28px; }
  .faq__intro { position: static; }
  .faq__reponse { padding-right: 0; }
  .deux-colonnes, .contact-grille { grid-template-columns: 1fr; gap: 32px; }
  .champs { grid-template-columns: 1fr; }
  .formulaire { padding: 24px 20px; }
  .fiche--large { grid-template-columns: 1fr; }
  .pied__grille { grid-template-columns: 1fr; gap: 32px; }
  .pied__logo img { height: 72px; }
  body { padding-bottom: 68px; }
  .barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; height: 68px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--blanc); border-top: 1px solid var(--gris-200); box-shadow: 0 -6px 20px rgba(31, 37, 43, .12); z-index: 80; padding: 8px; gap: 8px; }
  .barre-mobile a { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--blanc); font-weight: 600; font-size: 16px; border-radius: 2px; }
  .barre-mobile a:first-child { background: var(--bleu); } .barre-mobile a:last-child { background: var(--rouge); }
  .appel .conteneur { flex-direction: column; align-items: stretch; }
  .appel__actions .btn { flex: 1; }
}
@media (max-width: 560px) {
  .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heros__actions { flex-direction: column; }
  .entete-section { flex-direction: column; align-items: flex-start; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js [data-reveal], html.js .mots .mot > span, html.js .heros [data-anime] { opacity: 1; transform: none; clip-path: none; }
  .faq__reponse { animation: none; }
  #rideau { display: none; }
}
