/* ==========================================================================
   Horizon Brut — site d'exemple (construction de maisons neuves) créé par Sitarti
   Entreprise fictive. Formule montrée : Pack Pro.
   Polices : Tenor Sans (titres) + Jost (texte). Palette : blanc, béton, graphite.
   Motif : la ligne d'horizon (filet horizontal fin).
   ========================================================================== */

@font-face {
  font-family: "Tenor HB";
  src: url("fonts/tenor-sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost HB";
  src: url("fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blanc: #FFFFFF;
  --beton: #EDEEEC;
  --beton-2: #D9DBD8;
  --graphite: #141516;
  --noir: #0B0C0D;
  --gris: #5C6066;
  --gris-c: #A2A6AB;
  --filet: rgba(11, 12, 13, .16);
  --filet-c: rgba(255, 255, 255, .22);
  --titre: "Tenor HB", "Optima", "Candara", "Segoe UI", sans-serif;
  --texte: "Jost HB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1320px;
  --gut: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(.19, .7, .1, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--noir);
  font: 400 17px/1.75 var(--texte);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--noir); outline-offset: 4px; }
.hb-sombre :focus-visible, .hb-hero :focus-visible, .hb-pied :focus-visible, .hb-menu :focus-visible { outline-color: #fff; }
section[id] { scroll-margin-top: 24px; }

.evitement {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; background: var(--noir); color: #fff;
  font: 500 14px/1 var(--texte); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.evitement:focus { top: 56px; }
.invisible { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hb-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.hb-sec { padding: clamp(88px, 11vw, 160px) 0; }

/* Repère de section : « 01 / Projets » */
.hb-repere {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  font: 500 13px/1.3 var(--texte); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gris);
}
.hb-repere b { font-weight: 500; color: var(--noir); }
.hb-sombre .hb-repere { color: var(--gris-c); }
.hb-sombre .hb-repere b { color: #fff; }

.hb-titre {
  font: 400 clamp(30px, 3.6vw, 50px)/1.12 var(--titre);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hb-texte { max-width: 34em; color: var(--gris); font-weight: 300; font-size: 18px; }
.hb-sombre .hb-texte { color: var(--gris-c); }

/* Boutons : rectangulaires, nets */
.hb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 30px;
  border: 1px solid var(--noir); background: var(--noir); color: #fff;
  font: 500 14px/1 var(--texte); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.hb-btn:hover { background: transparent; color: var(--noir); }
.hb-btn .fl { display: inline-block; transition: transform .45s var(--ease); }
.hb-btn:hover .fl { transform: translateX(5px); }
.hb-btn-blanc { background: #fff; border-color: #fff; color: var(--noir); }
.hb-btn-blanc:hover { background: transparent; color: #fff; }
.hb-lien {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid currentColor;
  font: 500 14px/1.2 var(--texte); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
}
.hb-lien .fl { transition: transform .45s var(--ease); }
.hb-lien:hover .fl { transform: translateX(5px); }

/* ---------- En-tête (posé sur la photo) ---------- */
.hb-tete { position: absolute; left: 0; right: 0; z-index: 30; color: #fff; }
.hb-tete-in { display: flex; align-items: center; gap: 36px; max-width: var(--max); min-height: 96px; margin: 0 auto; padding: 0 var(--gut); }
.hb-marque { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; }
.hb-marque svg { flex: none; width: 34px; height: 34px; }
.hb-marque-nom {
  overflow: hidden; max-width: 320px;
  font: 400 19px/1 var(--titre); letter-spacing: .3em; text-transform: uppercase;
  white-space: nowrap; text-overflow: ellipsis;
}
.hb-nav { display: flex; gap: 30px; margin-left: auto; }
.hb-nav a {
  position: relative; padding: 8px 0;
  font: 500 13px/1 var(--texte); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
}
.hb-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.hb-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hb-tete .hb-btn { min-height: 46px; padding: 0 22px; font-size: 12.5px; }
.hb-menu-btn {
  display: none; align-items: center; gap: 12px; margin-left: auto;
  min-height: 46px; padding: 0 2px; border: 0; background: transparent; color: inherit; cursor: pointer;
  font: 500 13px/1 var(--texte); letter-spacing: .2em; text-transform: uppercase;
}
.hb-menu-btn i { display: block; position: relative; width: 26px; height: 1px; background: currentColor; }
.hb-menu-btn i::before { content: ""; position: absolute; left: 0; top: -6px; width: 26px; height: 1px; background: currentColor; }
.hb-menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  padding: 26px var(--gut) 34px;
  background: var(--noir); color: #fff;
  overflow-y: auto;
}
.hb-menu[hidden] { display: none; }
.hb-menu-haut { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin-bottom: 36px; }
.hb-menu-fermer {
  min-height: 44px; padding: 0 2px; border: 0; background: transparent; color: #fff; cursor: pointer;
  font: 500 13px/1 var(--texte); letter-spacing: .2em; text-transform: uppercase;
}
.hb-menu nav a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--filet-c);
  font: 400 26px/1.1 var(--titre); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.hb-menu nav a small { font: 500 12px/1 var(--texte); letter-spacing: .18em; color: var(--gris-c); }
.hb-menu .hb-btn { margin-top: 32px; }
.hb-menu-tel { margin-top: 18px; text-align: center; font: 500 15px/1.4 var(--texte); letter-spacing: .12em; text-decoration: none; padding: 10px; }

/* ---------- Haut de page ---------- */
.hb-hero { position: relative; display: flex; align-items: flex-end; min-height: max(640px, 100svh); overflow: hidden; background: var(--graphite); color: #fff; }
.hb-hero-img { position: absolute; inset: 0; }
.hb-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hb-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 12, 13, .55) 0%, rgba(11, 12, 13, 0) 24%),
    linear-gradient(0deg, rgba(11, 12, 13, .82) 0%, rgba(11, 12, 13, .35) 38%, rgba(11, 12, 13, 0) 62%);
}
.hb-hero-in { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(40px, 6vh, 64px); }
.hb-hero-kicker { margin-bottom: 22px; font: 500 13px/1.4 var(--texte); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.hb-hero h1 {
  max-width: 13em;
  font: 400 clamp(44px, 6.4vw, 96px)/1.02 var(--titre);
  letter-spacing: -.005em;
  text-wrap: balance;
}
.hb-horizon { height: 1px; margin: clamp(30px, 4vh, 44px) 0 26px; background: rgba(255, 255, 255, .55); transform-origin: left; }
.hb-hero-bas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px 40px; }
.hb-hero-bas p { max-width: 36em; color: rgba(255, 255, 255, .84); font-weight: 300; font-size: 17px; }
.hb-hero-bas p strong { color: #fff; font-weight: 500; }
.hb-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hb-hero .hb-lien { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .hb-hero-img img { animation: hb-recul 2.6s var(--ease) both; }
  .hb-hero-in > * { animation: hb-monte 1.2s var(--ease) both; }
  .hb-hero-in > :nth-child(2) { animation-delay: .12s; }
  .hb-hero-in > .hb-horizon { animation: hb-trace 1.6s var(--ease) .3s both; }
  .hb-hero-in > :nth-child(4) { animation-delay: .5s; }
}
@keyframes hb-recul { from { transform: scale(1.08); } to { transform: none; } }
@keyframes hb-monte { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hb-trace { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Intention ---------- */
.hb-intention { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(48px, 7vw, 120px); align-items: end; }
.hb-manifeste { font: 400 clamp(26px, 2.8vw, 40px)/1.32 var(--titre); letter-spacing: .01em; text-wrap: pretty; }
.hb-manifeste span { color: var(--gris-c); }
.hb-principes li { padding: 22px 0; border-top: 1px solid var(--filet); }
.hb-principes li:last-child { border-bottom: 1px solid var(--filet); }
.hb-principes h3 { font: 500 14px/1.3 var(--texte); letter-spacing: .16em; text-transform: uppercase; }
.hb-principes p { margin-top: 6px; color: var(--gris); font-weight: 300; font-size: 16px; line-height: 1.6; }

/* ---------- Projets ---------- */
.hb-projets-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(44px, 6vw, 80px); }
.hb-projet { position: relative; }
.hb-projet a { text-decoration: none; }
.hb-projet-img { overflow: hidden; background: var(--beton); }
.hb-projet-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.hb-projet:hover .hb-projet-img img { transform: scale(1.035); }
.hb-projet-legende {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline;
  padding: 22px 0 0; margin-top: 22px; border-top: 1px solid var(--filet);
}
.hb-projet-num { font: 400 15px/1 var(--titre); letter-spacing: .1em; color: var(--gris); }
.hb-projet h3 { font: 400 clamp(20px, 1.8vw, 26px)/1.25 var(--titre); letter-spacing: .06em; text-transform: uppercase; }
.hb-projet-lieu { font: 500 13px/1.3 var(--texte); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); white-space: nowrap; }
.hb-projet-desc { grid-column: 2 / -1; color: var(--gris); font-weight: 300; font-size: 16px; }
.hb-projet-1 .hb-projet-img { aspect-ratio: 2 / 1; }
.hb-projets-duo { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(64px, 8vw, 120px); }
.hb-projet-2 .hb-projet-img { aspect-ratio: 4 / 4.6; }
.hb-projet-3 { margin-top: clamp(80px, 12vw, 200px); }
.hb-projet-3 .hb-projet-img { aspect-ratio: 16 / 10; }
.hb-projets-note { margin-top: 48px; color: var(--gris); font-weight: 300; font-size: 14px; }

/* ---------- Savoir-faire ---------- */
.hb-savoir { background: var(--beton); }
.hb-savoir-grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.hb-savoir-img { position: sticky; top: 32px; overflow: hidden; }
.hb-savoir-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hb-savoir .hb-titre { margin-bottom: 26px; }
.hb-metiers { margin-top: clamp(40px, 5vw, 64px); }
.hb-metier { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 20px; padding: 30px 0; border-top: 1px solid var(--filet); }
.hb-metier:last-child { border-bottom: 1px solid var(--filet); }
.hb-metier-num { font: 400 15px/1.6 var(--titre); letter-spacing: .1em; color: var(--gris); }
.hb-metier h3 { font: 400 22px/1.3 var(--titre); letter-spacing: .08em; text-transform: uppercase; }
.hb-metier p { margin-top: 10px; color: var(--gris); font-weight: 300; }
.hb-metier ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hb-metier li { padding: 6px 12px; border: 1px solid var(--filet); font: 500 12.5px/1.3 var(--texte); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Étapes ---------- */
.hb-sombre { background: var(--graphite); color: #fff; }
.hb-etapes-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 80px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.hb-duo-img { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(56px, 7vw, 100px); }
.hb-duo-img figure { overflow: hidden; }
.hb-duo-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hb-duo-img figure:first-child img { aspect-ratio: 4 / 3.6; }
.hb-duo-img figcaption { padding-top: 14px; font: 500 12.5px/1.3 var(--texte); letter-spacing: .16em; text-transform: uppercase; color: var(--gris-c); }
.hb-frise { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; padding-top: 44px; }
.hb-frise::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--filet-c); transform-origin: left; }
.hb-frise li { position: relative; }
.hb-frise li::before { content: ""; position: absolute; left: 0; top: -44px; width: 15px; height: 15px; background: var(--graphite); border: 1px solid #fff; }
.hb-frise li:last-child::before { background: #fff; }
.hb-frise-num { display: block; margin-bottom: 14px; font: 400 40px/1 var(--titre); color: #fff; }
.hb-frise h3 { margin-bottom: 10px; font: 500 14px/1.35 var(--texte); letter-spacing: .14em; text-transform: uppercase; }
.hb-frise p { color: var(--gris-c); font-weight: 300; font-size: 15.5px; line-height: 1.6; }

/* ---------- Lumière (bandeau photo) ---------- */
.hb-lumiere { position: relative; min-height: clamp(460px, 62vw, 820px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--graphite); }
.hb-lumiere img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-lumiere::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(11, 12, 13, .72) 0%, rgba(11, 12, 13, 0) 55%); }
.hb-lumiere .hb-in { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 6vw, 80px); }
.hb-lumiere blockquote { max-width: 16em; font: 400 clamp(30px, 3.8vw, 56px)/1.15 var(--titre); }
.hb-lumiere blockquote footer { margin-top: 18px; font: 500 13px/1.3 var(--texte); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }

/* ---------- Zone ---------- */
.hb-zone { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.hb-zone .hb-texte { margin-top: 22px; }
.hb-communes { columns: 3; column-gap: 32px; border-top: 1px solid var(--filet); }
.hb-communes li { padding: 13px 0; border-bottom: 1px solid var(--filet); break-inside: avoid; font-size: 16px; }

/* ---------- Contact ---------- */
.hb-contact { background: var(--beton); }
.hb-contact-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.hb-contact .hb-texte { margin-top: 22px; }
.hb-tel { display: inline-block; margin-top: 36px; font: 400 clamp(30px, 3.4vw, 46px)/1.1 var(--titre); letter-spacing: .04em; text-decoration: none; }
.hb-tel:hover { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.hb-infos { margin-top: 36px; border-top: 1px solid var(--filet); }
.hb-infos div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--filet); }
.hb-infos dt { font: 500 13px/1.6 var(--texte); letter-spacing: .16em; text-transform: uppercase; }
.hb-infos dd { color: var(--gris); font-weight: 300; }

.hb-form { padding: clamp(28px, 4vw, 52px); background: var(--blanc); }
.hb-form h3 { margin-bottom: 30px; font: 400 24px/1.25 var(--titre); letter-spacing: .08em; text-transform: uppercase; }
.hb-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.hb-plein { grid-column: 1 / -1; }
.hb-champ { min-width: 0; margin: 0; padding: 0; border: 0; }
.hb-champ label, .hb-champ legend { display: block; margin-bottom: 6px; padding: 0; font: 500 12.5px/1.3 var(--texte); letter-spacing: .14em; text-transform: uppercase; }
.hb-champ .req { color: var(--noir); }
.hb-champ .fac { color: var(--gris); letter-spacing: .08em; text-transform: none; font-weight: 400; }
.hb-champ input, .hb-champ textarea {
  display: block; width: 100%; min-height: 50px; padding: 10px 0;
  border: 0; border-bottom: 1px solid rgba(11, 12, 13, .35); border-radius: 0; background: transparent;
  font-size: 17px; font-weight: 400; -webkit-appearance: none; appearance: none;
  transition: border-color .3s ease;
}
.hb-champ textarea { min-height: 96px; resize: vertical; }
.hb-champ input:focus, .hb-champ textarea:focus { outline: none; border-bottom: 2px solid var(--noir); }
.hb-choix { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hb-choix label { position: relative; margin: 0; cursor: pointer; }
.hb-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hb-choix span {
  display: block; padding: 11px 16px; border: 1px solid rgba(11, 12, 13, .3);
  font: 500 13px/1.2 var(--texte); letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.hb-choix label:hover span { border-color: var(--noir); }
.hb-choix input:checked + span { background: var(--noir); border-color: var(--noir); color: #fff; }
.hb-choix input:focus-visible + span { outline: 2px solid var(--noir); outline-offset: 3px; }
.hb-erreur { display: none; margin-top: 8px; color: #9E1C1C; font-size: 14px; font-weight: 500; }
.a-erreur .hb-erreur { display: block; }
.a-erreur input { border-bottom-color: #9E1C1C; }
.hb-envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 34px; }
.hb-envoi p { color: var(--gris); font-weight: 300; font-size: 15px; }
.hb-demo { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 18px 20px; border-left: 2px solid var(--noir); background: var(--beton); font-weight: 500; }
.hb-demo[hidden] { display: none; }
.hb-demo:focus { outline: none; }
.hb-demo svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }

/* ---------- Pied de page ---------- */
.hb-pied { padding: clamp(72px, 9vw, 120px) 0 36px; background: var(--noir); color: var(--gris-c); font-weight: 300; font-size: 15.5px; }
.hb-pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.hb-pied h2 { margin-bottom: 16px; color: #fff; font: 500 12.5px/1.3 var(--texte); letter-spacing: .18em; text-transform: uppercase; }
.hb-pied li + li { margin-top: 8px; }
.hb-pied a { text-decoration: none; }
.hb-pied a:hover { color: #fff; }
.hb-pied-desc { max-width: 24em; }
.hb-geant {
  margin-top: clamp(56px, 8vw, 110px); padding-top: clamp(30px, 4vw, 48px); border-top: 1px solid var(--filet-c);
  color: #fff; font: 400 clamp(38px, 9.4vw, 148px)/1 var(--titre); letter-spacing: .14em; text-transform: uppercase;
  overflow-wrap: anywhere;
}
.hb-pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; font-size: 13.5px; }

/* ---------- Barre fixe (téléphone) ---------- */
.hb-barre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--noir); color: #fff;
  border-top: 1px solid var(--filet-c);
  transition: transform .45s var(--ease);
}
.hb-barre a {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px;
  font: 500 13px/1 var(--texte); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
}
.hb-barre a + a { border-left: 1px solid var(--filet-c); background: #fff; color: var(--noir); }
.hb-barre svg { width: 18px; height: 18px; }
.hb-barre.cachee { transform: translateY(110%); }

/* ---------- Apparitions ---------- */
.js .rv { opacity: 0; transform: translateY(30px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .rv.vu { opacity: 1; transform: none; }
.js .rv-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
.js .rv-img.vu { clip-path: inset(0 0 0 0); }
.js .hb-frise.rv::before { transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
.js .hb-frise.rv.vu::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .rv-img { clip-path: none; }
  .js .hb-frise.rv::before { transform: none; }
}

/* ==========================================================================
   Adaptation aux écrans
   ========================================================================== */
@media (max-width: 1180px) {
  .hb-nav { gap: 22px; }
  .hb-tete-tel { display: none; }
  .hb-frise { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 72px; }
  .hb-frise::before { display: none; }
  .hb-frise li::before { top: -30px; }
  .hb-frise { padding-top: 30px; }
}
@media (max-width: 999px) {
  .hb-nav, .hb-tete .hb-btn { display: none; }
  .hb-menu-btn { display: inline-flex; }
  .hb-intention, .hb-savoir-grille, .hb-zone, .hb-contact-grille, .hb-etapes-tete { grid-template-columns: 1fr; }
  .hb-savoir-img { position: static; max-width: 620px; }
  .hb-pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .hb-barre { display: grid; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
@media (max-width: 759px) {
  body { font-size: 16.5px; }
  .hb-tete-in { min-height: 76px; gap: 16px; }
  .hb-marque svg { width: 30px; height: 30px; }
  .hb-marque-nom { font-size: 15px; letter-spacing: .24em; max-width: 56vw; }
  .hb-hero { min-height: max(600px, calc(100svh - 44px)); }
  .hb-hero-img img { object-position: 60% 50%; }
  .hb-hero::before { background: linear-gradient(180deg, rgba(11, 12, 13, .55) 0%, rgba(11, 12, 13, 0) 22%), linear-gradient(0deg, rgba(11, 12, 13, .9) 0%, rgba(11, 12, 13, .5) 45%, rgba(11, 12, 13, 0) 70%); }
  .hb-hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .hb-hero-kicker { font-size: 12px; letter-spacing: .18em; }
  .hb-hero-bas p { font-size: 16px; }
  .hb-hero-actions { width: 100%; }
  .hb-hero-actions .hb-btn { width: 100%; }

  .hb-titre { font-size: clamp(26px, 7.6vw, 36px); }
  .hb-manifeste { font-size: clamp(23px, 6.4vw, 30px); }
  .hb-projets-tete { flex-direction: column; align-items: flex-start; }
  .hb-projet-1 .hb-projet-img { aspect-ratio: 4 / 3; }
  .hb-projets-duo { grid-template-columns: 1fr; gap: 64px; }
  .hb-projet-3 { margin-top: 0; }
  .hb-projet-legende { grid-template-columns: 44px minmax(0, 1fr); }
  .hb-projet-lieu { grid-column: 2; white-space: normal; }
  .hb-projet-desc { grid-column: 2; }

  .hb-metier { grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; }
  .hb-duo-img { grid-template-columns: 1fr; }
  .hb-duo-img figure:first-child img { aspect-ratio: 4 / 3; }
  .hb-frise { grid-template-columns: 1fr; row-gap: 0; gap: 0; padding: 0 0 0 34px; }
  .hb-frise::before { display: block; left: 7px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; transform-origin: top; }
  .js .hb-frise.rv::before { transform: scaleY(0); }
  .js .hb-frise.rv.vu::before { transform: scaleY(1); }
  .hb-frise li { padding: 0 0 36px; }
  .hb-frise li::before { left: -34px; top: 6px; }
  .hb-frise-num { font-size: 32px; margin-bottom: 8px; }

  .hb-lumiere { min-height: 460px; }
  .hb-communes { columns: 2; column-gap: 20px; }
  .hb-communes li { font-size: 15px; }
  .hb-infos div { grid-template-columns: 1fr; gap: 4px; }
  .hb-champs { grid-template-columns: 1fr; }
  .hb-envoi .hb-btn { width: 100%; }
  .hb-pied-grille { grid-template-columns: 1fr; gap: 28px; }
}
.hb-ns { white-space: nowrap; }

/* ---------- Corrections après relecture ---------- */
/* 1. Bandeau « lumière » : photo recadrée, citation bien lisible */
.hb-lumiere { min-height: clamp(440px, 48vw, 700px); }
.hb-lumiere::before {
  background:
    linear-gradient(0deg, rgba(11, 12, 13, .84) 0%, rgba(11, 12, 13, .38) 46%, rgba(11, 12, 13, 0) 72%),
    linear-gradient(90deg, rgba(11, 12, 13, .5) 0%, rgba(11, 12, 13, 0) 58%);
}
/* 2. Le lien d'en-tête des projets reste sur une ligne */
.hb-projets-tete .hb-lien { flex: none; white-space: nowrap; }
/* 3. Légendes des projets 02 et 03 : le lieu passe sous le titre */
.hb-projets-duo .hb-projet-legende { grid-template-columns: 52px minmax(0, 1fr); }
.hb-projets-duo .hb-projet-lieu, .hb-projets-duo .hb-projet-desc { grid-column: 2; }
@media (max-width: 759px) {
  /* 4. Boutons qui tiennent sur une ligne */
  .hb-envoi .hb-btn, .hb-hero-actions .hb-btn { padding: 0 16px; font-size: 13px; letter-spacing: .1em; }
  .hb-projets-duo .hb-projet-legende { grid-template-columns: 44px minmax(0, 1fr); }
  /* 5. Photo du haut : la maison plus présente */
  .hb-hero-img img { object-position: 50% 40%; }
}
/* Le menu plein écran passe au-dessus du bandeau Sitarti */
.hb-menu { z-index: 90; }
