/* LEGACY by PLANETT — feuille de style
   Direction : « Ce qui compte reste ». Papier d'archive, encre bleu nuit, bronze.
   Le même site sur ordinateur et sur téléphone : seule la mise en page s'adapte. */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --papier: #f2ede4;
  --soie: #fbf8f2;
  --kraft: #d9c3a0;
  --encre: #18202e;
  --encre-2: #2c3546;
  --gris: #5e6472;
  --bronze: #a27a48;
  --bronze-clair: #d4b483;
  --sauge: #7f8f7a;
  --ligne: rgba(24, 32, 46, .16);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --marge: clamp(16px, 5vw, 72px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 400 17px/1.65 var(--sans); overflow-x: hidden;
}
/* grain de papier */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; text-align: justify; hyphens: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 380; line-height: 1.02; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
em { font-style: italic; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--marge); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--encre); color: var(--soie); padding: 10px 16px; }
.evitement:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* ---------- en-tête ---------- */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--marge); transition: background .4s, box-shadow .4s, color .4s;
}
.entete.plein { background: rgba(242, 237, 228, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ligne); }
.marque { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.marque b { font: 500 22px/1 var(--serif); letter-spacing: .14em; }
.entete { --k: 0; --h-grand: min(clamp(110px, 12vw, 176px), 22svh); --h-petit: clamp(58px, 5.2vw, 76px); --y-grand: min(clamp(34px, 4.6vw, 66px), 7svh); }
.marque img { display: block; width: auto; max-width: none; margin-block: -14px;
  height: calc(var(--h-grand) - (var(--h-grand) - var(--h-petit)) * var(--k));
  transform: translateY(calc(var(--y-grand) * (1 - var(--k)) + 2px * var(--k))); }
.marque .logo-sombre { display: none; }
.hero-photo .entete:not(.plein) .logo-clair, .menu-ouvert .entete .logo-clair { display: none; }
.hero-photo .entete:not(.plein) .logo-sombre, .menu-ouvert .entete .logo-sombre { display: block; }
.pied .marque img { height: clamp(110px, 11vw, 150px); margin-block: 0; }
.marque small { font: 500 9.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--bronze); margin-top: 6px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: 14.5px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: currentColor; transition: right .35s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.appel {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap;
  background: var(--encre); color: var(--soie); padding: 11px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  transition: background .3s, transform .3s;
}
.appel:hover { background: var(--bronze); transform: translateY(-1px); }
.appel svg { width: 16px; height: 16px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.burger span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }
.menu-ouvert .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-ouvert .burger span:nth-child(2) { opacity: 0; }
.menu-ouvert .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 22px;
    background: var(--encre); color: var(--soie); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a { font: 380 clamp(30px, 8vw, 44px)/1.1 var(--serif); }
  .menu-ouvert .nav { opacity: 1; visibility: visible; }
  .menu-ouvert .entete { color: var(--soie); background: transparent; box-shadow: none; }
  .menu-ouvert .marque small { color: var(--bronze-clair); }
  .entete .appel .txt { display: none; }
  .entete .appel { padding: 11px; }
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer;
  font: 500 16px/1 var(--sans); padding: 17px 26px; border-radius: 999px; border: 1px solid var(--encre);
  background: var(--encre); color: var(--soie); transition: background .3s, color .3s, transform .3s;
}
.btn:hover { background: var(--bronze); border-color: var(--bronze); transform: translateY(-2px); }
.btn.clair { background: transparent; color: var(--encre); }
.btn.clair:hover { background: var(--encre); color: var(--soie); border-color: var(--encre); }
.btn .fl { transition: transform .3s; }
.btn:hover .fl { transform: translateX(4px); }
.sur-nuit .btn { background: var(--soie); color: var(--encre); border-color: var(--soie); }
.sur-nuit .btn:hover { background: var(--bronze-clair); border-color: var(--bronze-clair); }
.sur-nuit .btn.clair { background: transparent; color: var(--soie); }

.surtitre { font: 500 12px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--bronze); display: inline-flex; align-items: center; gap: 12px; }
.surtitre::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- accueil : ouverture ---------- */
.ouverture { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 120px 0 56px; overflow: hidden; }
.ouverture .wrap { position: relative; z-index: 2; }
.geant {
  font: 330 clamp(64px, 15.5vw, 236px)/.86 var(--serif); letter-spacing: -.045em; margin: 0 0 0 -.04em;
}
.geant em { font-weight: 300; color: var(--bronze); display: inline-block; }
.geant .l { display: block; overflow: hidden; padding-bottom: .06em; }
.geant .l > span { display: inline-block; transform: translateY(105%); animation: monte 1.9s cubic-bezier(.2,.7,.1,1) forwards; }
.geant .l:nth-child(2) { margin-top: -.12em; }
.geant .l:nth-child(2) > span { animation-delay: .35s; }
@keyframes monte { to { transform: none; } }
.ouverture-bas { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-top: clamp(28px, 5vw, 56px); }
.ouverture h1 { font: 400 clamp(19px, 2vw, 25px)/1.35 var(--serif); letter-spacing: -.005em; max-width: 30ch; }
.ouverture h1 strong { font-weight: 500; }
.ouverture .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.ouverture .note { grid-column: 1 / -1; font-size: 14px; color: var(--gris); display: flex; flex-wrap: wrap; gap: 8px 26px; border-top: 1px solid var(--ligne); padding-top: 18px; }
.ouverture .note span::before { content: "— "; color: var(--bronze); }

/* rai de lumière : le jour revient dans le logement */
.lumiere { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.lumiere .rai { position: absolute; top: -10%; right: -6%; width: min(62vw, 900px); height: 125%;
  clip-path: polygon(38% 0, 78% 0, 100% 100%, 22% 100%);
  background: linear-gradient(180deg, rgba(255, 236, 200, .0) 0%, rgba(240, 214, 168, .55) 30%, rgba(226, 196, 146, .38) 70%, rgba(226, 196, 146, 0) 100%);
  filter: blur(2px); animation: respire 11s ease-in-out infinite; transform-origin: 70% 0; }
.lumiere .vitre { position: absolute; left: 34%; right: 18%; top: 56%; height: 34%; transform: skewX(-14deg);
  background:
    linear-gradient(90deg, transparent 48.5%, rgba(162, 122, 72, .16) 48.5% 51.5%, transparent 51.5%),
    linear-gradient(180deg, transparent 48%, rgba(162, 122, 72, .16) 48% 52%, transparent 52%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 244, 222, .7), rgba(255, 244, 222, 0) 72%);
  filter: blur(1.5px); animation: nuage 23s ease-in-out infinite; }
.lumiere .grains i { position: absolute; width: var(--t); height: var(--t); border-radius: 50%; background: #d9b47a; box-shadow: 0 0 8px 2px rgba(240, 205, 140, .8);
  opacity: 0; animation: grain var(--d) linear var(--r) infinite; }
@keyframes respire { 0%, 100% { opacity: .75; transform: rotate(0deg); } 50% { opacity: 1; transform: rotate(1.2deg); } }
@keyframes nuage { 0%, 100% { opacity: .9; } 40% { opacity: .55; } 60% { opacity: 1; } }
@keyframes grain { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 50% { transform: translate(18px, -40px); opacity: .6; } 85% { opacity: .85; } 100% { transform: translate(-10px, -90px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lumiere .rai, .lumiere .vitre, .lumiere .grains i { animation: none; } .lumiere .grains i { opacity: .6; } }

@media (max-width: 760px) {
  .ouverture { padding-top: 104px; align-items: start; }
  .ouverture-bas { grid-template-columns: 1fr; }
  .ouverture .actions { justify-content: flex-start; }
  .lumiere .rai { width: 120vw; right: -40%; }
}


/* ---------- accueil : avant / après au défilement ---------- */
.avap { background: var(--encre); color: var(--soie); }
.avap-piste { position: relative; height: 260vh; }
.avap-scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.avap-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 40% 50%; }
.avap-img.avant { filter: saturate(.75) brightness(.92); transform: scale(calc(1.06 - var(--p, 0) * .04)); }
.avap-img.apres { clip-path: inset(0 0 0 calc((1 - var(--p, 0)) * 100%)); transform: scale(calc(1.06 - var(--p, 0) * .04)); }
.avap-ligne { position: absolute; top: 0; bottom: 0; left: calc((1 - var(--p, 0)) * 100%); width: 140px; margin-left: -70px; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255, 236, 196, .55), rgba(255, 236, 196, 0) 70%); mix-blend-mode: screen; opacity: calc(1 - abs(var(--p, 0) * 2 - 1)); }
.avap-ligne::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(255, 244, 222, .8); box-shadow: 0 0 18px 3px rgba(255, 226, 170, .7); }
.avap-voile { position: absolute; inset: 0; pointer-events: none; 
  background: linear-gradient(180deg, rgba(24, 32, 46, .55) 0%, rgba(24, 32, 46, 0) 26%), linear-gradient(90deg, rgba(24, 32, 46, .5) 0%, rgba(24, 32, 46, .22) 45%, rgba(24, 32, 46, 0) 66%), linear-gradient(0deg, rgba(24, 32, 46, .9) 0%, rgba(24, 32, 46, .55) 30%, rgba(24, 32, 46, 0) 58%); }
.avap-texte { position: absolute; left: 0; right: 0; bottom: clamp(84px, 12vh, 150px); z-index: 2; }
.avap .geant { font-size: min(clamp(54px, 10.5vw, 168px), 14svh); color: var(--soie); }
.avap .geant em { color: var(--bronze-clair); }
.avap h1 { font: 400 clamp(17px, 1.6vw, 21px)/1.45 var(--serif); max-width: 46ch; margin: clamp(14px, 2vw, 22px) 0 clamp(18px, 2.4vw, 26px); color: rgba(251, 248, 242, .9); }
.avap h1 strong { font-weight: 500; color: var(--soie); }
.avap .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.avap-bas { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; display: flex; align-items: center; gap: 20px; }
.avap-etape { margin: 0; font: italic 400 clamp(15px, 1.3vw, 18px)/1.4 var(--serif); color: var(--bronze-clair); flex: 1; min-width: 0; text-align: left; transition: opacity .8s; }
.avap-jauge { width: min(180px, 30vw); height: 1px; background: rgba(251, 248, 242, .25); flex: none; }
.avap-jauge i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--bronze-clair); }
.avap-note { color: rgba(251, 248, 242, .6) !important; border-top-color: rgba(251, 248, 242, .16) !important; margin: 0; padding-bottom: 26px; }
.hero-photo .entete:not(.plein) { color: var(--soie); }
.hero-photo .entete:not(.plein) .marque small { color: var(--bronze-clair); }
.hero-photo .entete:not(.plein) .appel { background: var(--soie); color: var(--encre); }
@media (max-width: 760px) {
  .avap-img { height: 56%; object-position: 42% 60%; }
  .avap-ligne { height: 56%; bottom: auto; }
  .avap-voile { background: linear-gradient(180deg, rgba(24, 32, 46, .6) 0%, rgba(24, 32, 46, 0) 18%), linear-gradient(0deg, var(--encre) 44%, rgba(24, 32, 46, .5) 52%, rgba(24, 32, 46, 0) 64%); }
  .avap-texte { bottom: 92px; }
  .avap h1 { font-size: 16px; }
  .avap .btn { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) { .avap-piste { height: auto; } .avap-scene { position: relative; } .avap-img.apres { clip-path: none; } .avap-ligne { display: none; } }

/* ---------- photos ---------- */
.cadre { overflow: hidden; background: var(--kraft); }
.cadre img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 14s cubic-bezier(.2,.6,.2,1); }
.vu .cadre img, .cadre img.vu { transform: none; }
.bandeau { margin: 0 auto clamp(40px, 6vw, 80px); max-width: 1400px; padding-left: var(--marge); padding-right: var(--marge); }
.bandeau .cadre { aspect-ratio: 21 / 9; border-radius: 2px; }
.recit { padding-top: clamp(70px, 10vw, 140px); padding-bottom: clamp(70px, 9vw, 120px); }
.recit-grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.recit-grande { grid-column: 1 / 9; grid-row: 1; }
.recit-texte { grid-column: 7 / 13; grid-row: 1; position: relative; z-index: 2; background: var(--papier); padding: clamp(28px, 4vw, 56px); margin-bottom: clamp(-60px, -5vw, -30px); box-shadow: 0 40px 80px -50px rgba(24, 32, 46, .45); }
.recit-grande { margin: 0; }
.recit-grande .cadre { aspect-ratio: 5 / 4; }
.recit-texte h2 { font-size: clamp(38px, 5.4vw, 84px); margin: 16px 0 22px; max-width: 11ch; }
.recit-texte h2 em { color: var(--bronze); }
.recit-texte p { text-align: left; hyphens: manual; max-width: 44ch; font: 400 clamp(18px, 1.6vw, 21px)/1.55 var(--serif); }
.recit-petite { margin: clamp(26px, 4vw, 48px) 0 0; width: min(100%, 360px); }
.recit-petite .cadre { aspect-ratio: 16 / 10; }
.recit-petite figcaption { font-size: 13.5px; color: var(--gris); margin-top: 10px; }
.recit-petite figcaption::before { content: "— "; color: var(--bronze); }
@media (max-width: 760px) {
  .recit-grille { grid-template-columns: 1fr; }
  .recit-grande, .recit-texte { grid-column: 1; grid-row: auto; }
  .recit-texte { margin: -48px 14px 0; padding: 26px 22px; }
  .recit-grande .cadre { aspect-ratio: 4 / 3.4; }
  .bandeau .cadre { aspect-ratio: 4 / 3; }
}

/* ---------- le tri : scène au défilement ---------- */
.tri { position: relative; background: var(--soie); border-top: 1px solid var(--ligne); }
.tri-piste { height: 300vh; }
.tri-scene { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto 1fr; padding-top: 92px; padding-bottom: 28px; overflow: hidden; }
.tri-tete { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 60px; align-items: end; }
.tri-tete h2 { font-size: clamp(36px, 5.6vw, 82px); }
.tri-tete p { color: var(--gris); margin: 0; }
.tri-tete .etape { text-align: left; font: italic 400 18px/1.4 var(--serif); color: var(--encre); min-height: 2.8em; transition: opacity .3s; }
.table-tri { position: relative; margin-top: clamp(16px, 3vh, 34px); border-top: 1px solid var(--ligne); }
.bacs { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.bac { position: relative; border-right: 1px solid var(--ligne); padding: 14px clamp(8px, 1.6vw, 22px); }
.bac:last-child { border-right: 0; }
.bac h3 { font: 400 clamp(22px, 3vw, 44px)/1 var(--serif); }
.bac h3 em { color: var(--bronze); }
.bac small { display: block; font-size: 12.5px; color: var(--gris); margin-top: 6px; line-height: 1.4; }
.bac .compte { position: absolute; right: clamp(8px, 1.6vw, 22px); top: 16px; font: italic 400 15px/1 var(--serif); color: var(--bronze); }
.objet {
  position: absolute; left: 0; top: 0; width: clamp(52px, 8vw, 112px); color: var(--encre);
  transition: transform 1.7s cubic-bezier(.3,.7,.15,1), opacity 1s; will-change: transform;
}
.objet svg { width: 100%; height: auto; overflow: visible; }
.objet .eti { position: absolute; left: 62%; top: -8px; font: 600 8.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; background: var(--kraft); color: #3b2e1d; padding: 4px 6px 4px 9px; border-radius: 2px; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .4s .5s, transform .4s .5s; }
.objet.range .eti { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .tri-tete { grid-template-columns: 1fr; }
  .tri-tete p.intro { display: none; }
  .bac small { font-size: 11px; }
  .bac .compte { position: static; display: block; margin-top: 4px; font-size: 13px; }
  .bac h3 { font-size: 24px; }
  .objet { width: 58px; }
  .objet .eti { font-size: 7px; padding: 3px 4px 3px 6px; }
}

/* ---------- dossiers de services ---------- */
.dossiers { padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 110px); }
.dossiers-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: clamp(36px, 6vw, 72px); }
.dossiers-tete h2 { font-size: clamp(40px, 7vw, 110px); max-width: 12ch; }
.dossiers-tete p { max-width: 42ch; color: var(--gris); margin: 0; }
.dossier { position: relative; margin-top: -1px; }
.dossier > a { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.05fr) 56px; gap: 24px; align-items: center; text-decoration: none; padding: clamp(22px, 3vw, 36px) 0; border-top: 1px solid var(--encre); position: relative; }
.dossier:last-child > a { border-bottom: 1px solid var(--encre); }
.dossier .no { font: italic 300 clamp(40px, 5vw, 72px)/1 var(--serif); color: var(--bronze); }
.dossier h3 { font-size: clamp(30px, 4.2vw, 62px); transition: transform .8s cubic-bezier(.2,.7,.1,1); }
.dossier p { margin: 0; color: var(--gris); font-size: 15.5px; text-align: left; }
.dossier .fl { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--encre); display: grid; place-items: center; transition: background .35s, color .35s, transform .35s; }
.dossier > a::before { content: ""; position: absolute; inset: 0 -100vw; background: var(--soie); transform: scaleY(0); transform-origin: bottom; transition: transform .5s cubic-bezier(.2,.7,.1,1); z-index: -1; }
.dossier > a:hover::before { transform: scaleY(1); }
.dossier > a:hover h3 { transform: translateX(14px); }
.dossier > a:hover .fl { background: var(--encre); color: var(--soie); transform: rotate(-45deg); }
@media (max-width: 860px) {
  .dossier > a { grid-template-columns: 56px minmax(0, 1fr) 44px; gap: 6px 14px; }
  .dossier p { grid-column: 2 / 3; grid-row: 2; }
  .dossier .fl { width: 44px; height: 44px; grid-row: 1 / 3; grid-column: 3; }
}

/* ---------- lever du jour : discrétion ---------- */
.nuit { background: var(--encre); color: var(--soie); position: relative; overflow: hidden; }
.nuit .surtitre { color: var(--bronze-clair); }
.rue { position: relative; width: 100%; aspect-ratio: 1440 / 560; min-height: 300px; }
.rue svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rue .fenetre { transition: fill 1.2s; }
.rue-photo { overflow: hidden; }
.rue-photo .rue-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 60%; transform: scale(1.12); transition: transform 16s cubic-bezier(.2,.6,.2,1); }
.rue-photo.visible .rue-img { transform: none; }
.rue-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(24, 32, 46, .88) 0%, rgba(24, 32, 46, .55) 42%, rgba(24, 32, 46, 0) 70%), linear-gradient(0deg, var(--encre) 0%, rgba(24, 32, 46, 0) 30%); }
.rue-texte { position: absolute; left: 0; right: 0; top: clamp(70px, 9vw, 130px); z-index: 2; }
.rue-texte h2 { font-size: clamp(42px, 8.4vw, 132px); max-width: 11ch; }
.rue-texte h2 em { color: var(--bronze-clair); }
.camion { transform: translateX(-30%); transition: transform 5s cubic-bezier(.25,.7,.2,1) .6s; }
.soleil { transform: translateY(150px); opacity: .5; transition: transform 9s cubic-bezier(.2,.6,.2,1), opacity 6s; }
.rue.visible .soleil { transform: none; opacity: 1; }
.rue.visible .camion { transform: translateX(0); }
.engagements { padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 100px); }
.engagements .lettre p { color: rgba(251, 248, 242, .78); }
.serment { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.serment li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid rgba(251, 248, 242, .16); }
.serment li::before { content: counter(s, upper-roman) "."; font: italic 400 22px/1.2 var(--serif); color: var(--bronze-clair); }
.serment b { display: block; font: 400 clamp(21px, 2.2vw, 28px)/1.2 var(--serif); margin-bottom: 4px; }
.serment span { color: rgba(251, 248, 242, .72); font-size: 15.5px; }
.signature { margin-top: 26px; font: italic 300 clamp(30px, 3.4vw, 44px)/1 var(--serif); color: var(--bronze-clair); }
.signature small { display: block; font: 400 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(251, 248, 242, .55); margin-top: 8px; }
@media (max-width: 860px) {
  .engagements { grid-template-columns: 1fr; }
  .rue { aspect-ratio: auto; height: 520px; }
  .rue-photo .rue-img { object-position: 62% 50%; }
  .rue-photo::before { background: linear-gradient(180deg, rgba(24, 32, 46, .9) 0%, rgba(24, 32, 46, .35) 45%, rgba(24, 32, 46, 0) 65%), linear-gradient(0deg, var(--encre) 0%, rgba(24, 32, 46, 0) 25%); }
  .rue svg { left: -690px; right: auto; width: 1337px; max-width: none; }
}

/* ---------- carte des villes ---------- */
.carte { padding: clamp(80px, 11vw, 150px) 0; }
.carte-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.carte h2 { font-size: clamp(40px, 6vw, 92px); margin: 16px 0 22px; }
.villes { list-style: none; margin: 26px 0 0; padding: 0; }
.villes li { border-top: 1px solid var(--ligne); }
.villes li:last-child { border-bottom: 1px solid var(--ligne); }
.villes a { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 14px 0; text-decoration: none; transition: padding .35s, color .35s; }
.villes a b { font: 400 clamp(22px, 2.4vw, 30px)/1.1 var(--serif); }
.villes a span { font-size: 13px; color: var(--gris); text-align: right; }
.villes a:hover, .villes a.actif { padding-left: 12px; color: var(--bronze); }
.plan { position: relative; }
.plan svg { width: 100%; height: auto; overflow: visible; }
.plan .rayon { fill: rgba(162, 122, 72, .08); stroke: var(--bronze); stroke-width: 1; stroke-dasharray: 3 5; transition: fill .4s; }
.plan .point { fill: var(--encre); }
.plan .nom { font: 400 15px var(--serif); fill: var(--encre); }
.plan .dep { font: 500 9px var(--sans); letter-spacing: .16em; fill: var(--gris); }
.plan a:hover .rayon, .plan a.actif .rayon { fill: rgba(162, 122, 72, .22); }
.plan .onde { fill: none; stroke: var(--bronze); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: onde 6s ease-out infinite; }
@keyframes onde { from { transform: scale(.2); opacity: .9; } to { transform: scale(1); opacity: 0; } }
.plan .echelle { font: 500 10px var(--sans); fill: var(--gris); letter-spacing: .1em; }
@media (max-width: 860px) { .carte-grille { grid-template-columns: 1fr; } .plan { order: -1; } }

/* ---------- FAQ ---------- */
.faq { padding: clamp(70px, 10vw, 130px) 0; border-top: 1px solid var(--ligne); }
.faq-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); }
.faq h2 { font-size: clamp(38px, 5vw, 72px); position: sticky; top: 110px; }
details.q { border-top: 1px solid var(--ligne); }
details.q:last-child { border-bottom: 1px solid var(--ligne); }
details.q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 22px 0; font: 400 clamp(19px, 1.9vw, 24px)/1.3 var(--serif); }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; font: 300 28px/1 var(--sans); color: var(--bronze); transition: transform .3s; flex: none; }
details.q[open] summary::after { transform: rotate(45deg); }
details.q .r { padding: 0 0 22px; color: var(--encre-2); max-width: 62ch; }
@media (max-width: 860px) { .faq-grille { grid-template-columns: 1fr; } .faq h2 { position: static; } }

/* ---------- appel final ---------- */
.final { background: var(--bronze); color: var(--soie); padding: clamp(80px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(46px, 9vw, 150px); max-width: 12ch; }
.final h2 em { color: var(--encre); }
.final .bas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 30px; margin-top: clamp(30px, 5vw, 60px); }
.final .tel { font: 300 clamp(36px, 6vw, 84px)/1 var(--serif); text-decoration: none; letter-spacing: -.02em; border-bottom: 1px solid rgba(251, 248, 242, .5); }
.final .tel:hover { color: var(--encre); border-color: var(--encre); }
.final p { max-width: 40ch; margin: 0; }
.final .btn { background: var(--encre); border-color: var(--encre); color: var(--soie); }
.final .btn:hover { background: var(--soie); color: var(--encre); border-color: var(--soie); }

/* ---------- pied de page ---------- */
.pied { background: var(--encre); color: rgba(251, 248, 242, .78); padding: clamp(60px, 8vw, 100px) 0 30px; font-size: 15px; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.pied .marque b { color: var(--soie); }
.pied h3 { font: 500 11.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--bronze-clair); margin-bottom: 16px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 8px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--soie); text-decoration: underline; }
.pied p { text-align: left; }
.pied .legal { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(251, 248, 242, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; color: rgba(251, 248, 242, .55); }
@media (max-width: 860px) { .pied-grille { grid-template-columns: 1fr 1fr; } .pied-grille > :first-child { grid-column: 1 / -1; } }

/* ---------- pages intérieures ---------- */
.page-tete { padding: clamp(176px, 19.5vw, 290px) 0 clamp(40px, 6vw, 70px); position: relative; }
.fil { font-size: 13px; color: var(--gris); margin-bottom: 26px; }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--bronze); }
.fil span { margin: 0 8px; color: var(--bronze); }
.page-tete h1 { font-size: clamp(44px, 8.4vw, 132px); max-width: 14ch; letter-spacing: -.035em; }
.page-tete h1 em { color: var(--bronze); }
.page-tete .chapeau { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 60px; align-items: end; margin-top: clamp(26px, 4vw, 46px); padding-top: 22px; border-top: 1px solid var(--ligne); }
.page-tete .chapeau p { font: 400 clamp(18px, 1.8vw, 22px)/1.5 var(--serif); margin: 0; max-width: 46ch; text-align: left; }
.page-tete .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.page-tete { overflow: hidden; }
.page-tete .wrap { position: relative; z-index: 2; }
.page-tete .lumiere .rai { width: min(48vw, 680px); opacity: .8; }
@media (max-width: 760px) {
  .page-tete .chapeau { grid-template-columns: 1fr; }
  .page-tete .lumiere .rai { width: 110vw; right: -45%; }
}

.chapitre { padding: clamp(60px, 9vw, 120px) 0; border-top: 1px solid var(--ligne); }
.chapitre.soie { background: var(--soie); }
.chapitre-grille { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 60px); }
.chapitre .no { font: italic 300 clamp(44px, 5vw, 76px)/1 var(--serif); color: var(--bronze); }
.chapitre h2 { font-size: clamp(32px, 4.2vw, 60px); }
.chapitre .corps > p:first-child { font: 400 clamp(19px, 1.7vw, 22px)/1.5 var(--serif); text-align: left; }
.chapitre ul.puces { list-style: none; padding: 0; margin: 18px 0; }
.chapitre ul.puces li { padding: 10px 0 10px 30px; border-top: 1px solid var(--ligne); position: relative; }
.chapitre ul.puces li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 1px; background: var(--bronze); }
@media (max-width: 860px) {
  .chapitre-grille { grid-template-columns: 1fr; gap: 14px; }
  .chapitre .no { font-size: 40px; }
}

/* déroulé : étapes en ligne de temps */
.deroule { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: d; border-top: 1px solid var(--encre); }
.deroule li { counter-increment: d; padding: 22px 22px 10px 0; position: relative; }
.deroule li::before { content: counter(d, decimal-leading-zero); display: block; font: italic 300 46px/1 var(--serif); color: var(--bronze); margin-bottom: 14px; }
.deroule li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--encre); }
.deroule b { display: block; font: 400 22px/1.2 var(--serif); margin-bottom: 6px; }
.deroule span { color: var(--gris); font-size: 15.5px; }
@media (max-width: 860px) { .deroule { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .deroule { grid-template-columns: 1fr; } }

/* texte SEO replié */
details.plus { margin-top: 26px; border: 1px solid var(--ligne); border-radius: 4px; background: rgba(251, 248, 242, .6); }
details.plus summary { cursor: pointer; padding: 16px 20px; font: 500 14px/1.3 var(--sans); letter-spacing: .04em; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.plus summary::-webkit-details-marker { display: none; }
details.plus summary::after { content: "+"; color: var(--bronze); font-size: 20px; line-height: .8; transition: transform .3s; }
details.plus[open] summary::after { transform: rotate(45deg); }
details.plus .r { padding: 0 20px 18px; }
details.plus h3 { font-size: 22px; margin: 12px 0 8px; }

/* bandeau des autres villes / services */
.liens-croises { padding: clamp(60px, 8vw, 100px) 0; }
.liens-croises h2 { font-size: clamp(30px, 4vw, 54px); margin-bottom: 26px; }
.pastilles { display: flex; flex-wrap: wrap; gap: 10px; }
.pastilles a { text-decoration: none; border: 1px solid var(--encre); border-radius: 999px; padding: 11px 18px; font-size: 15px; transition: background .3s, color .3s; }
.pastilles a:hover { background: var(--encre); color: var(--soie); }

/* contact */
.contact-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 6vw, 90px); padding-bottom: clamp(80px, 10vw, 140px); }
.coord { list-style: none; padding: 0; margin: 0; }
.coord li { padding: 18px 0; border-top: 1px solid var(--ligne); }
.coord b { display: block; font: 500 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); margin-bottom: 8px; }
.coord a, .coord span { font: 400 clamp(22px, 2.4vw, 30px)/1.25 var(--serif); text-decoration: none; word-break: break-word; }
.coord a:hover { color: var(--bronze); }
.lettre-form { background: var(--soie); padding: clamp(24px, 4vw, 52px); box-shadow: 0 40px 60px -40px rgba(24, 32, 46, .35); position: relative; }
.lettre-form::before { content: ""; position: absolute; top: -10px; right: 34px; width: 92px; height: 26px; background: rgba(217, 195, 160, .8); transform: rotate(3deg); }
.lettre-form h2 { font-size: clamp(28px, 3.4vw, 46px); margin-bottom: 8px; }
.champ { margin-top: 18px; }
.champ label, .champ legend { display: block; font: 500 13px/1.3 var(--sans); letter-spacing: .06em; margin-bottom: 6px; }
.champ input, .champ textarea, .champ select {
  width: 100%; font: 400 17px/1.4 var(--sans); color: var(--encre); background: transparent;
  border: 0; border-bottom: 1px solid var(--encre); padding: 10px 2px; border-radius: 0;
}
.champ textarea { min-height: 120px; resize: vertical; border: 1px solid var(--ligne); padding: 12px; }
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: none; border-color: var(--bronze); }
.choix { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choix label { margin: 0; position: relative; }
.choix input { position: absolute; opacity: 0; left: 0; top: 0; width: 1px; height: 1px; }
.choix span { display: inline-block; border: 1px solid var(--encre); border-radius: 999px; padding: 9px 15px; font-size: 14.5px; cursor: pointer; transition: background .25s, color .25s; }
.choix input:checked + span { background: var(--encre); color: var(--soie); }
.choix input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.piege { position: absolute; left: -5000px; }
.consent { font-size: 13.5px; color: var(--gris); margin-top: 18px; display: block; padding-left: 26px; position: relative; }
.consent input { position: absolute; left: 0; top: 2px; accent-color: var(--encre); }
.retour { margin-top: 16px; font-weight: 500; }
.retour.ok { color: #3d6b3a; } .retour.ko { color: #a1352b; }
@media (max-width: 860px) { .contact-grille { grid-template-columns: 1fr; } .deux { grid-template-columns: 1fr; } }

/* textes légaux */
.texte-legal { max-width: 780px; padding-bottom: clamp(80px, 10vw, 130px); }
.texte-legal h2 { font-size: clamp(26px, 3vw, 36px); margin: 46px 0 14px; }
.texte-legal p, .texte-legal li { color: var(--encre-2); }
.a-completer { background: #f5dfb8; padding: 0 4px; border-radius: 2px; }

/* apparition au défilement */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 1.6s cubic-bezier(.2,.7,.1,1), transform 1.6s cubic-bezier(.2,.7,.1,1); }
.rv.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .geant .l > span { transform: none; }
}
/* Écrans peu hauts (portables, zoom du navigateur) : le titre ne passe jamais sous le logo */
@media (max-height: 640px) and (min-width: 700px) {
  .entete { --h-grand: max(90px, 22svh); --y-grand: 3svh; }
  .avap .geant { font-size: max(46px, 12svh); }
  .avap-texte { bottom: 72px; }
  .avap h1 { margin: 10px 0 14px; }
}
