/* SwissRenova — feuille de style
   Sable et bordeaux repris de l'ancien site et du logo ; le vert ne sert qu'au faisceau du niveau laser. */

@font-face { font-family: "SwissRenova Sans"; src: url("../fonts/srsans-latin.woff2?v=c284524d76") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "SwissRenova Sans"; src: url("../fonts/srsans-latin-ext.woff2?v=770d837324") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin.woff2?v=7a5ca92015") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-ext.woff2?v=4716ebdae9") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20C0, U+2113; }
@font-face { font-family: "Fragment Mono"; src: url("../fonts/fragment-latin.woff2?v=f0041a7890") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Fragment Mono"; src: url("../fonts/fragment-latin-ext.woff2?v=818aa84851") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20C0, U+2113; }

:root {
  /* palette de l'ancien site (swissrenova.com) : bordeaux #522520, sable #e6d09e, crème du logo #f1debd,
     taupe #c8b397, gris rosé #988583, noir #060507 */
  --chaux: #f1debd;
  --chaux-2: #e6d09e;
  --taupe: #c8b397;
  --papier: #fffaf1;
  --encre: #522520;
  --noir: #060507;
  --ral: #522520;
  --ral-2: #6a3129;
  --gris: #66534d;
  --gris-clair: #988583;
  --trait: rgba(82, 37, 32, .2);
  --trait-clair: rgba(241, 222, 189, .2);
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --laser: #3dff84;
  --laser-halo: rgba(61, 255, 132, .5);
  --verre: #4c7b82;
  --chene: #b5854e;
  --g: clamp(16px, 4vw, 64px);
  --max: 1440px;
  --entete: 72px;
  --texte: clamp(1rem, .96rem + .2vw, 1.125rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--entete) + 16px); background: var(--chaux); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--chaux); color: var(--noir);
  font: 400 var(--texte)/1.6 "SwissRenova Sans", "Helvetica Neue", Arial, sans-serif; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; overflow-x: clip;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ol, ul, dl, dd, blockquote, address { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; background-color: var(--teinte, var(--chaux-2)); }
picture { display: contents; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.fond-ral :focus-visible, .pied :focus-visible { outline-color: var(--chaux); }
::selection { background: var(--encre); color: var(--chaux); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: 0; }
.note { font-size: .875rem; color: var(--gris); }
.evitement { position: fixed; top: 10px; left: 10px; z-index: 200; padding: .7rem 1rem; background: var(--encre); color: var(--chaux); transform: translateY(-180%); text-decoration: none; }
.evitement:focus { transform: none; }

/* ——— typographie ——— */
.titre-xl { color: var(--encre); font-weight: 280; font-stretch: 118%; font-size: clamp(2.5rem, 1.3rem + 4.6vw, 6.4rem); line-height: .96; letter-spacing: -.038em; text-wrap: balance; }
.titre-l { color: var(--encre); font-weight: 300; font-stretch: 115%; font-size: clamp(2rem, 1.25rem + 2.7vw, 4rem); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.titre-m { color: var(--encre); font-weight: 400; font-stretch: 112%; font-size: clamp(1.4rem, 1.12rem + 1vw, 2rem); line-height: 1.12; letter-spacing: -.02em; }
.chapeau { max-width: 36rem; font-size: clamp(1.05rem, .98rem + .35vw, 1.3rem); line-height: 1.5; color: var(--gris); text-wrap: pretty; }
.fond-ral .chapeau { color: rgba(241, 222, 189, .72); }
h3 { font-weight: 500; font-stretch: 108%; font-size: 1.125rem; line-height: 1.3; letter-spacing: -.005em; }

/* Le titre apparaît derrière un trait qui balaie, dans la couleur du titre. */
html.js [data-trace] { position: relative; clip-path: inset(-.2em 100% -.25em 0); }
html.js [data-trace]::after {
  content: ""; position: absolute; top: -.1em; bottom: -.1em; left: 0; width: 100%;
  border-right: 2px solid currentColor; box-shadow: inset -12px 0 14px -12px color-mix(in srgb, currentColor 45%, transparent);
  opacity: 0; transform: translateX(-100%); pointer-events: none;
}
html.js [data-trace].est-trace { animation: devoile-trace 1.15s var(--ease-in-out) forwards; }
html.js [data-trace].est-trace::after { animation: laser-trace 1.15s var(--ease-in-out) forwards; }
@keyframes devoile-trace { to { clip-path: inset(-.3em -12% -.3em -.2em); } }
@keyframes laser-trace { 0% { transform: translateX(-100%); opacity: 1; } 88% { opacity: 1; } 100% { transform: none; opacity: 0; } }

/* ——— boutons ——— */
.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: 0 1.45rem; border: 1px solid var(--encre); background: var(--encre); color: var(--chaux);
  font: 500 .9375rem/1 "SwissRenova Sans", sans-serif; font-stretch: 112%; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: color .3s, border-color .3s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ral-2); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-in-out); }
.btn::after { content: ""; position: absolute; top: -1px; bottom: -1px; left: 0; width: 100%; border-right: 2px solid currentColor; box-shadow: inset -10px 0 12px -10px color-mix(in srgb, currentColor 60%, transparent); opacity: 0; transform: translateX(-100%); pointer-events: none; }
.btn > span { position: relative; }
@media (hover: hover) {
  .btn:hover::before { transform: scaleX(1); }
  .btn:hover::after { animation: laser-bouton .6s var(--ease-in-out) forwards; }
}
@keyframes laser-bouton { 0% { transform: translateX(-100%); opacity: 1; } 85% { opacity: 1; } 100% { transform: none; opacity: 0; } }
.btn--petit { min-height: 40px; padding: 0 1rem; font-size: .875rem; }
.btn--ligne { background: transparent; color: var(--encre); }
.btn--ligne::before { background: var(--encre); }
@media (hover: hover) { .btn--ligne:hover { color: var(--chaux); } }
.btn--clair { background: var(--chaux); color: var(--encre); border-color: var(--chaux); }
.btn--clair::before { background: #fff; }

/* Lien souligné d'une ligne de cote : les tics s'écartent au survol. */
.lien-trait {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .55rem; margin: 0 -.55rem;
  font: 500 .9375rem/1.2 "SwissRenova Sans", sans-serif; font-stretch: 110%; text-decoration: none; background: none; border: 0; cursor: pointer; color: inherit;
}
.lien-trait > span { position: relative; padding: .25rem 0; }
.lien-trait > span::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .45s var(--ease); }
.lien-trait::before, .lien-trait::after { content: ""; position: absolute; bottom: calc(50% - .95em); width: 1px; height: 9px; background: currentColor; transform: rotate(45deg); transition: transform .45s var(--ease); }
.lien-trait::before { left: .55rem; }
.lien-trait::after { right: .55rem; }
@media (hover: hover) {
  .lien-trait:hover::before { transform: translateX(-6px) rotate(45deg); }
  .lien-trait:hover::after { transform: translateX(6px) rotate(45deg); }
  .lien-trait:hover > span::before { transform: scaleX(1.12) translateX(-5%); }
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }

/* ——— en-tête ——— */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--entete);
  display: flex; align-items: center; gap: 2rem; padding: 0 var(--g);
  transition: background-color .4s, color .4s, transform .5s var(--ease), box-shadow .4s;
}
.entete.est-defile { background: rgba(241, 222, 189, .84); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--trait); }
.entete.est-cache { transform: translateY(-100%); }
.marque { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; white-space: nowrap; }
.marque__embleme { width: auto; height: 46px; background: none; flex: none; }
.marque__mot { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--encre); }
.marque__nom { font: 600 1.18rem/1 var(--serif); letter-spacing: .01em; }
.marque__by { margin-top: .22rem; font: 500 .56rem/1 var(--serif); letter-spacing: .2em; color: var(--encre); opacity: .85; }
.nav { display: flex; gap: clamp(1rem, 2vw, 2.1rem); margin-left: auto; }
.nav a { position: relative; padding: .5rem 0; font-weight: 500; font-stretch: 108%; font-size: .9375rem; text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.entete__droite { display: flex; align-items: center; gap: 1.2rem; }
.langue { display: inline-flex; align-items: center; font-family: var(--mono); font-size: .75rem; border: 1px solid var(--trait); }
.langue > * { display: inline-grid; place-items: center; min-width: 34px; min-height: 30px; padding: 0 .4rem; text-decoration: none; }
.langue [aria-current] { background: var(--encre); color: var(--chaux); }
.langue a:hover { background: rgba(62, 27, 23, .08); }
.menu-bouton { display: none; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .2rem 0 .6rem; background: none; border: 0; cursor: pointer; font-weight: 500; font-stretch: 110%; font-size: .9375rem; }
.menu-bouton__traits { position: relative; width: 22px; height: 10px; }
.menu-bouton__traits i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-bouton__traits i:first-child { top: 0; }
.menu-bouton__traits i:last-child { top: 8.5px; }
.menu-bouton[aria-expanded="true"] i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-bouton[aria-expanded="true"] i:last-child { top: 4.25px; transform: rotate(-45deg); }
.tiroir {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--entete) + 2vh) var(--g) max(24px, env(safe-area-inset-bottom)); background: var(--chaux); overflow-y: auto;
}
.tiroir__nav { display: flex; flex-direction: column; }
.tiroir__nav a { display: block; padding: .5rem 0; border-bottom: 1px solid var(--trait); text-decoration: none; font-weight: 280; font-stretch: 120%; font-size: clamp(2rem, 9vw, 3.2rem); letter-spacing: -.03em; line-height: 1.1; overflow: hidden; }
.tiroir__nav a span { display: block; transform: translateY(105%); transition: transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + 80ms); }
.tiroir.est-ouvert .tiroir__nav a span { transform: none; }
.tiroir__nav a[aria-current] span::before { content: ""; display: inline-block; width: .35em; height: 2px; margin: 0 .25em .25em 0; vertical-align: middle; background: var(--encre); }
.tiroir__pied { display: grid; gap: .8rem; padding-top: 2rem; }
.tiroir__tel { font-weight: 500; font-stretch: 110%; font-size: 1.3rem; text-decoration: none; }
.langue--grande { justify-self: start; font-size: .875rem; }
.langue--grande > * { min-width: 48px; min-height: 44px; }
body.tiroir-ouvert { overflow: hidden; }
.entete__cta { white-space: nowrap; }
/* trois langues et six rubriques : en-tête resserré sur les petits écrans d'ordinateur */
@media (min-width: 1181px) and (max-width: 1360px) {
  .nav { gap: clamp(.9rem, 1.35vw, 1.4rem); }
  .nav a { font-size: .875rem; }
  .entete__droite { gap: .9rem; margin-left: clamp(1rem, 2vw, 2rem); }
  .entete__cta { padding: 0 .85rem; }
}
@media (max-width: 1180px) {
  .nav, .entete__cta { display: none; }
  .menu-bouton { display: inline-flex; }
  .entete__droite { margin-left: auto; }
}
@media (max-width: 520px) { .entete__droite .langue { display: none; } .marque__by { display: none; } }

/* ——— animation d'entrée : le chalet du logo sort de la ligne du sol, les lauriers s'ouvrent,
   le nom descend sous la ligne, puis l'horizon s'ouvre sur le site ——— */
.intro { display: none; }
html.en-intro { overflow: hidden; }
html.en-intro .intro {
  --w: min(84vw, 980px); --t: 0s;
  position: fixed; inset: 0; z-index: 150; display: block; cursor: default;
  animation: intro-fin 0s linear calc(var(--t) + 3.35s) forwards;
}
.intro__panneau { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--chaux); will-change: transform; }
.intro__panneau--haut { top: 0; animation: intro-haut 1.05s cubic-bezier(.77, 0, .18, 1) calc(var(--t) + 2.25s) forwards; }
.intro__panneau--bas { bottom: 0; animation: intro-bas 1.05s cubic-bezier(.77, 0, .18, 1) calc(var(--t) + 2.25s) forwards; }
.intro__panneau--haut::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 100%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); }
.intro__embleme {
  position: absolute; left: 50%; bottom: 0; z-index: 1; height: min(30svh, 58vw, 300px); aspect-ratio: 621 / 422;
  transform: translateX(-50%); animation: intro-logo-sortie .75s cubic-bezier(.5, 0, .75, 0) calc(var(--t) + 2.2s) forwards;
}
.intro__embleme img { position: absolute; inset: 0; width: 100%; height: 100%; background: none; }
.intro__maison { position: absolute; inset: 0; overflow: hidden; }
.intro__maison img { transform: translate3d(0, 102%, 0); animation: intro-monte 1.1s cubic-bezier(.16, 1, .3, 1) calc(var(--t) + .45s) forwards; }
.intro__laurier { opacity: 0; animation: intro-laurier 1.1s cubic-bezier(.16, 1, .3, 1) calc(var(--t) + .85s) forwards; }
.intro__laurier--g { transform-origin: 31% 100%; transform: rotate(-16deg) scale(.86); }
.intro__laurier--d { transform-origin: 69% 100%; transform: rotate(16deg) scale(.86); animation-delay: calc(var(--t) + .93s); }
.intro__texte {
  position: absolute; left: 50%; top: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-top: clamp(10px, 1.6vh, 18px);
  transform: translateX(-50%); color: var(--encre); white-space: nowrap;
  animation: intro-logo-sortie .75s cubic-bezier(.5, 0, .75, 0) calc(var(--t) + 2.2s) forwards;
}
.intro__mot { display: flex; overflow: hidden; padding: 0 .04em .08em; font: 600 clamp(2rem, .9rem + 4.4vw, 5rem)/1 var(--serif); letter-spacing: .005em; }
.intro__mot span { display: block; transform: translate3d(0, -108%, 0); animation: intro-lettre 1.1s cubic-bezier(.16, 1, .3, 1) calc(var(--t) + .95s + var(--i) * 40ms) forwards; }
.intro__by { margin-top: .5em; font: 500 clamp(.85rem, .55rem + 1.2vw, 1.7rem)/1 var(--serif); letter-spacing: .14em; opacity: 0; animation: intro-sous .9s cubic-bezier(.16, 1, .3, 1) calc(var(--t) + 1.45s) forwards; }
.intro__devise { margin-top: .9em; font: 500 clamp(.62rem, .5rem + .45vw, .95rem)/1 var(--serif); letter-spacing: .1em; color: var(--noir); opacity: 0; animation: intro-sous .9s cubic-bezier(.16, 1, .3, 1) calc(var(--t) + 1.65s) forwards; }
@keyframes intro-logo-sortie { to { opacity: 0; transform: translate(-50%, 0) scale(.97); filter: blur(2px); } }
@keyframes intro-monte { to { transform: none; } }
@keyframes intro-laurier { to { opacity: 1; transform: none; } }
.intro__ligne {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 2; height: 1.2px; margin-top: -.6px; background: var(--encre);
  clip-path: inset(0 50% 0 50%);
  animation: intro-ligne 1.15s cubic-bezier(.65, 0, .2, 1) calc(var(--t) + .2s) forwards, intro-horizon .55s cubic-bezier(.7, 0, .3, 1) calc(var(--t) + 1.95s) forwards, intro-eteint .35s ease calc(var(--t) + 2.45s) forwards;
}
.intro__ligne::before, .intro__ligne::after {
  content: ""; position: absolute; top: -1px; width: 90px; height: 3px; left: calc(50% - 45px);
  background: radial-gradient(closest-side, rgba(106, 49, 41, .9), rgba(106, 49, 41, 0)); filter: blur(.5px);
  animation: intro-glint-g 1.15s cubic-bezier(.65, 0, .2, 1) calc(var(--t) + .2s) forwards;
}
.intro__ligne::after { animation-name: intro-glint-d; }
@keyframes intro-ligne { to { clip-path: inset(0 calc(50% - var(--w) / 2) 0 calc(50% - var(--w) / 2)); } }
@keyframes intro-horizon { from { clip-path: inset(0 calc(50% - var(--w) / 2) 0 calc(50% - var(--w) / 2)); } to { clip-path: inset(0 0 0 0); } }
@keyframes intro-eteint { to { opacity: 0; } }
@keyframes intro-glint-g { 0% { transform: translateX(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(calc(var(--w) / -2)); opacity: 0; } }
@keyframes intro-glint-d { 0% { transform: translateX(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(calc(var(--w) / 2)); opacity: 0; } }
@keyframes intro-lettre { to { transform: none; } }
@keyframes intro-sous { from { opacity: 0; letter-spacing: .3em; } to { opacity: 1; } }
@keyframes intro-haut { to { transform: translateY(-101%); } }
@keyframes intro-bas { to { transform: translateY(101%); } }
@keyframes intro-fin { to { visibility: hidden; pointer-events: none; } }
@keyframes intro-fin-vite { to { visibility: hidden; pointer-events: none; } }
@keyframes intro-haut-vite { to { transform: translateY(-101%); } }
@keyframes intro-bas-vite { to { transform: translateY(101%); } }
@keyframes intro-eteint-vite { to { opacity: 0; } }
/* sortie anticipée (clic, touche, molette) */
html.en-intro-sortie .intro :is(.intro__embleme, .intro__texte) { animation: intro-eteint-vite .35s ease forwards; }
html.en-intro-sortie .intro__ligne { animation: intro-eteint-vite .25s ease forwards; }
html.en-intro-sortie .intro__panneau--haut { animation: intro-haut-vite .9s cubic-bezier(.77, 0, .18, 1) forwards; }
html.en-intro-sortie .intro__panneau--bas { animation: intro-bas-vite .9s cubic-bezier(.77, 0, .18, 1) forwards; }
html.en-intro-sortie .intro { animation: intro-fin-vite 0s linear .95s forwards; }

/* ——— transition entre les pages : le nouveau plan monte comme un rideau ———
   En CSS + JS plutôt qu'en View Transitions natives, pour un rendu identique dans Safari, Chrome et Firefox.
   Sortie : la page glisse vers le haut sous un rideau couleur chaux qui monte. Entrée : le rideau se retire
   vers le haut et la nouvelle page monte. L'en-tête reste en place, au-dessus du rideau. */
html:is(.vt-sortie, .vt-entree)::after { content: ""; position: fixed; inset: 0; z-index: 48; background: var(--chaux); pointer-events: none; }
html.vt-sortie::after { animation: vt-rideau-monte .46s cubic-bezier(.76, 0, .24, 1) both; }
html.vt-entree::after { animation: vt-rideau-part .9s cubic-bezier(.76, 0, .24, 1) both; }
html.vt-sortie :is(main, .pied) { animation: vt-sortie .46s cubic-bezier(.4, 0, .2, 1) both; }
html.vt-entree :is(main, .pied) { animation: vt-entree .9s cubic-bezier(.76, 0, .24, 1) both; }
@keyframes vt-rideau-monte { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes vt-rideau-part { from { clip-path: inset(0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes vt-sortie { to { opacity: .35; transform: translateY(-4vh) scale(.985); } }
@keyframes vt-entree { from { transform: translateY(8vh); } }
@media (prefers-reduced-motion: reduce) {
  html.en-intro .intro { display: none; }
}

/* ——— sections communes ——— */
main { display: block; }
.tete-section { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 1.2rem 4rem; max-width: var(--max); margin: 0 auto clamp(40px, 5vw, 72px); padding: 0 var(--g); }
.tete-section p { max-width: 30rem; color: var(--gris); }
.fond-ral { background: var(--ral); color: var(--chaux); }
.fond-ral :is(.titre-xl, .titre-l, .titre-m) { color: var(--chaux); }
.fond-ral .tete-section p, .fond-ral p { color: rgba(241, 222, 189, .74); }
.fond-chaux2 { background: var(--chaux-2); }
@media (max-width: 860px) { .tete-section { grid-template-columns: minmax(0, 1fr); } }

/* ——— ouverture : la coupe A–A ——— */
.ouverture {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; min-height: 100vh; min-height: 100svh;
  padding-top: var(--entete);
  background:
    radial-gradient(120% 80% at 70% 40%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 60%),
    var(--chaux);
}
.ouverture__texte { grid-area: 1 / 1; z-index: 3; align-self: start; padding: clamp(20px, 4.5vh, 64px) var(--g) 0; max-width: min(46vw, 44rem); pointer-events: none; }
.ouverture__texte > * { pointer-events: auto; }
.ouverture__texte .titre-xl { font-size: clamp(2.6rem, min(1rem + 4.3vw, .4rem + 8.6vh), 6.2rem); }
:lang(de) .ouverture__texte .titre-xl { font-size: clamp(2.4rem, min(.8rem + 3.6vw, .2rem + 7vh), 5.2rem); }
.ouverture__texte .chapeau { margin-top: 1.4rem; max-width: 30rem; font-size: clamp(1rem, .9rem + .35vw, 1.2rem); }
.coupe { grid-area: 1 / 1; position: relative; align-self: end; z-index: 1; }
.coupe__defile { position: relative; }
.coupe__cadre {
  position: relative; container-type: inline-size; aspect-ratio: 2 / 1;
  width: min(100%, calc((100svh - var(--entete) - 56px) * 2)); margin-left: auto;
}
.coupe__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.coupe__svg :is(path, line, polygon, rect, circle) { fill: none; stroke: var(--encre); stroke-linejoin: round; stroke-linecap: round; }
.coupe__svg .coupe { stroke-width: 1.9; }
.coupe__svg .vu { stroke-width: 1.15; }
.coupe__svg .fin { stroke-width: .65; }
.coupe__svg .verre, .coupe__svg .verre-trait { stroke: var(--verre); stroke-width: 1.15; }
.coupe__svg .axe { stroke-width: .6; stroke-dasharray: 16 4 2 4; opacity: .5; }
.coupe__svg .niveau, .coupe__svg .cote { stroke-width: .6; }
.coupe__svg .bulle { stroke-width: .8; fill: var(--chaux); }
.coupe__svg .aplat { stroke: none; }
.coupe__svg .acier { fill: #34393c; stroke: none; }
.coupe__svg .vitre { fill: #a6cacb; fill-opacity: .28; stroke: none; }
.coupe__svg .reflet { stroke: var(--verre); stroke-width: .8; }
.coupe__svg .cote-niv { fill: var(--encre); stroke: none; }
.coupe__svg .arbre { opacity: .9; }
.coupe__svg .loin { stroke: #7a8184; stroke-width: .55; }
.coupe__svg .herbe { stroke: #6f8158; stroke-width: .7; }
.coupe__svg .fil { stroke: #a07444; stroke-width: .4; }
.coupe__svg .veine { fill: none; stroke: #bdb8ae; stroke-width: .6; }
.coupe__svg .pierre { fill: #d5c6ae; fill-opacity: .7; stroke: #a99d8a; stroke-width: .5; }
.coupe__svg .h { stroke: var(--encre); stroke-width: .5; opacity: .45; }
.coupe__svg .h-fond { fill: #dbd7ce; stroke: none; }
.coupe__svg .h-pt { fill: #7a7f80; stroke: none; }
.coupe__svg .h-cail { fill: #a39b8e; stroke: none; }
.coupe__svg .cote-niv { fill: none; stroke: var(--encre); stroke-width: .8; }
.coupe__svg .cote-niv-demi { fill: var(--encre); stroke: none; }
/* lavis de matières (rendu de planche) */
.coupe__svg [class*="lv-"] { stroke: none; }
.coupe__svg .lv-int { fill: #e9d4a9; }
.coupe__svg .lv-mur { fill: #cbc3b5; }
.coupe__svg .lv-beton { fill: #d6d1c7; }
.coupe__svg .lv-chape { fill: #d9d4cb; }
.coupe__svg .lv-chene { fill: #dcc29d; }
.coupe__svg .lv-chene-f { fill: #c49d6e; }
.coupe__svg .lv-verre { fill: #a9cbcb; fill-opacity: .55; }
.coupe__svg .lv-verre-f { fill: #bcd6d5; fill-opacity: .4; }
.coupe__svg .lv-acier { fill: #353c40; }
.coupe__svg .lv-galva { fill: #b2b6b5; }
.coupe__svg .lv-iso { fill: #eee0b0; }
.coupe__svg .lv-tuile { fill: #8a5d4b; fill-opacity: .82; }
.coupe__svg .lv-terre { fill: #d2c4ab; }
.coupe__svg .lv-herbe { fill: #8c9f70; }
.coupe__svg .lv-dallage { fill: #c8c3b8; }
.coupe__svg .lv-feuille { fill: #93a978; fill-opacity: .34; }
.coupe__svg .lv-feuille-f { fill: #6f8c5b; fill-opacity: .8; }
.coupe__svg .lv-tronc { fill: #7b6a5a; fill-opacity: .6; }
.coupe__svg .lv-pot { fill: #c4b29a; }
.coupe__svg .lv-tableau { fill: #aab9b7; }
.coupe__svg .lv-livre { fill: #a79d90; }
.coupe__svg .lv-livre-f { fill: #85776a; }
.coupe__svg .lv-voiture { fill: #cdd0d1; }
.coupe__svg .lv-vitre-auto { fill: #4f5c62; fill-opacity: .8; }
.coupe__svg .lv-pneu { fill: #2b3236; }
.coupe__svg .lv-meuble { fill: #3c4347; }
.coupe__svg .lv-four { fill: #1d2225; }
.coupe__svg .lv-inox { fill: #b9bdbd; }
.coupe__svg .lv-tissu { fill: #8b977b; }
.coupe__svg .lv-marbre { fill: #f3eee4; }
.coupe__svg .lv-blanc { fill: #f8f7f4; }
.coupe__svg .lv-miroir { fill: #cbdada; }
.coupe__svg .lv-drap { fill: #efe9df; }
.coupe__svg .lv-tapis { fill: #b5a387; }
.coupe__svg .lv-abatjour { fill: #f4e7ca; }
.coupe__svg .lv-pierre { fill: #d5c6ae; fill-opacity: .7; }
.coupe__svg .figure { fill: #6f777a; fill-opacity: .42; stroke: none; }
.coupe__svg .faisceau { fill: url(#g-jour); stroke: none; }
.coupe__svg .lueur { stroke: none; }
.coupe__svg .led { fill: #fff2cf; stroke: none; }
.coupe__svg text { font: 11px var(--mono); fill: var(--encre); stroke: none; }
.coupe__svg .txt-axe, .coupe__svg .txt-cote { text-anchor: middle; }
.coupe__svg .el { transition: opacity .5s var(--ease); }
.coupe__svg .fond-maison, .coupe__svg .fond-trame, .coupe__svg .fond-terrain, .coupe__svg .fond-arbre { transition: opacity .5s var(--ease); }
.coupe.a-actif .coupe__svg .el:not(.est-actif) { opacity: .38; }
.coupe.a-actif .coupe__svg .fond-maison { opacity: .7; }
.coupe__svg .el.est-actif .vu { stroke-width: 1.5; }
.coupe__svg .el.est-actif .fin { stroke-width: .9; }

/* tracé à l'arrivée */
html.js .coupe__svg [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .coupe__svg :is(.aplat, .acier, .vitre, text, .axe, .bulle, .niveau, .cote, .cote-niv, .cote-niv-demi, .reflet, .veine, .pierre) { opacity: 0; }
html.js .coupe.est-trace .coupe__svg [pathLength] { animation: tracer .85s cubic-bezier(.45, 0, .2, 1) forwards; animation-delay: var(--d, 0s); }
html.js .coupe.est-trace .coupe__svg :is(.aplat, .acier, .vitre, .reflet, .veine, .pierre) { animation: apparaitre .9s ease forwards; animation-delay: calc(var(--d, 2s) + .2s); }
html.js .coupe.est-trace .coupe__svg :is(text, .axe, .bulle, .niveau, .cote, .cote-niv, .cote-niv-demi) { animation: apparaitre-trame 1s ease forwards; animation-delay: 3.6s; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { to { opacity: 1; } }
@keyframes apparaitre-trame { to { opacity: var(--o, 1); } }
html.js .coupe__svg .axe { --o: .5; }
.coupe__svg .reflet { opacity: 1; }

/* lumière d'une fenêtre qui glisse sur la feuille */
.coupe__lumiere { position: absolute; inset: 18% 8% 6% 38%; pointer-events: none; mix-blend-mode: multiply; opacity: 0; transition: opacity 2s ease 3s; overflow: hidden; }
.coupe.est-trace .coupe__lumiere { opacity: .32; }
.coupe__lumiere::before {
  content: ""; position: absolute; top: -10%; left: 30%; width: 46%; height: 120%;
  background:
    linear-gradient(90deg, transparent 0 31%, rgba(80, 70, 50, .16) 31% 33%, transparent 33% 64%, rgba(80, 70, 50, .16) 64% 66%, transparent 66%),
    linear-gradient(180deg, transparent 0 40%, rgba(80, 70, 50, .16) 40% 42.5%, transparent 42.5%),
    linear-gradient(90deg, rgba(120, 100, 70, .1), rgba(120, 100, 70, 0) 45%, rgba(120, 100, 70, .08));
  transform: skewX(-24deg) rotate(4deg); filter: blur(10px);
  animation: lumiere-glisse 38s ease-in-out infinite alternate;
}
@keyframes lumiere-glisse { from { transform: translateX(-24%) skewX(-24deg) rotate(4deg); } to { transform: translateX(26%) skewX(-30deg) rotate(4deg); } }

.repere {
  position: absolute; left: var(--x); top: var(--y); z-index: 4; display: grid; place-items: center;
  width: 30px; width: clamp(26px, 1.9cqw, 34px); aspect-ratio: 1; padding: 0; transform: translate(-50%, -50%);
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  transition: transform .45s var(--ease), opacity .6s;
}
.repere__point { position: relative; width: 11px; height: 11px; border-radius: 50%; background: var(--chaux); border: 1px solid var(--encre); transition: background-color .35s, transform .45s var(--ease); }
.repere__point::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--encre); transform: scale(0); transition: transform .35s var(--ease); }
.repere::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid var(--encre); opacity: 0; transform: scale(.5); }
.repere.est-actif .repere__point { transform: scale(1.15); }
.repere.est-actif .repere__point::after { transform: scale(1); }
.repere.est-actif::after { animation: onde 2.2s var(--ease) infinite; }
@media (hover: hover) { .repere:hover .repere__point::after { transform: scale(1); } }
@keyframes onde { 0% { opacity: .65; transform: scale(.45); } 100% { opacity: 0; transform: scale(1.35); } }
html.js .coupe:not(.est-trace) .repere { opacity: 0; }
html.js .coupe.est-trace .repere { animation: apparaitre .5s ease both; animation-delay: calc(3.3s + var(--n, 0) * 60ms); }

.coupe__renvoi { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.coupe__renvoi path { fill: none; stroke: var(--encre); stroke-width: .9; }
.coupe__renvoi circle { fill: var(--encre); }
.coupe__fiches { position: absolute; z-index: 5; top: 1.4%; right: 1.2%; width: min(29%, 440px); display: grid; }
.fiche {
  grid-area: 1 / 1; display: grid; grid-template-columns: 38% 1fr; gap: 1rem; padding: .7rem;
  background: rgba(255, 250, 241, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--encre); box-shadow: 6px 6px 0 rgba(62, 27, 23, .08);
}
html.js .coupe:not(.a-actif) .fiche { display: none; }
.fiche.entre { animation: fiche-entre .55s var(--ease) both; }
@keyframes fiche-entre { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.fiche__photo { display: block; overflow: hidden; }
.fiche__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.fiche:hover .fiche__photo img { transform: scale(1.04); }
.fiche__texte { display: flex; flex-direction: column; gap: .45rem; min-width: 0; padding-top: .1rem; }
.fiche__titre { font-weight: 500; font-stretch: 112%; font-size: clamp(1rem, .9rem + .35vw, 1.2rem); line-height: 1.15; letter-spacing: -.01em; }
.fiche__texte p { font-size: .8125rem; line-height: 1.45; color: var(--gris); }
.fiche__texte .lien-trait { margin-top: auto; font-size: .8125rem; min-height: 36px; }
.coupe__ensemble { display: none; }
.cartouche {
  position: absolute; z-index: 2; left: 27%; bottom: 1.4%; display: grid; grid-template-columns: auto auto; gap: 0;
  font: clamp(.5625rem, .62cqw, .6875rem)/1.3 var(--mono); border: 1px solid var(--encre); background: rgba(255, 250, 241, .8);
}
.cartouche span { padding: .3em .7em; border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.cartouche__nom { grid-column: 1 / -1; font: 600 clamp(.6875rem, .78cqw, .875rem)/1.3 "SwissRenova Sans", sans-serif !important; font-stretch: 125% !important; }
.cartouche__echelle { grid-column: 1 / -1; width: 132px; height: 18px; margin: .35em .7em; overflow: visible; }
.cartouche__echelle path { fill: none; stroke: var(--encre); stroke-width: 1; }
.cartouche__echelle .plein { fill: var(--encre); stroke: none; }
.cartouche__echelle text { font: 7px var(--mono); fill: var(--encre); }
.ouverture__bas { position: relative; z-index: 2; display: flex; align-items: center; gap: 1rem 2.5rem; padding: 10px var(--g) 14px; border-top: 1px solid var(--trait); }
.ouverture__indice { flex: none; font: .75rem var(--mono); color: var(--gris); }
.indice-doigt { display: none; }
@media (hover: none) { .indice-souris { display: none; } .indice-doigt { display: inline; } }
.legende { display: flex; gap: .2rem 1.1rem; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.legende::-webkit-scrollbar { display: none; }
.legende button { display: inline-flex; align-items: baseline; gap: .4rem; min-height: 32px; padding: 0; background: none; border: 0; cursor: pointer; white-space: nowrap; font-size: .8125rem; color: var(--gris); transition: color .3s; }
.legende button.est-actif, .legende button:hover { color: var(--encre); }
.legende button.est-actif span:last-child { text-decoration: underline; text-underline-offset: .3em; }

@media (max-width: 900px), (max-height: 520px) and (orientation: landscape) and (pointer: coarse) {
  .ouverture { display: block; min-height: 0; }
  .ouverture__texte { max-width: none; padding-top: clamp(24px, 6vh, 56px); }
  .ouverture__texte .titre-xl { font-size: clamp(2.5rem, 10.5vw, 4.4rem); }
  /* La maison entière tient dans un cadre ; une « caméra » (coupe.js) s'approche de chaque métier. */
  .coupe { margin-top: clamp(24px, 6vw, 40px); }
  .coupe__lumiere { display: none; }
  .coupe__defile { margin: 0 var(--g); overflow: hidden; aspect-ratio: 2 / 1; background: rgba(255, 250, 241, .45); }
  .coupe__defile::after { content: ""; position: absolute; inset: 0; z-index: 5; border: 1px solid var(--trait); pointer-events: none; }
  .coupe__cadre { width: 100%; margin: 0; transform-origin: 0 0; transition: transform 1.25s cubic-bezier(.65, 0, .35, 1); }
  .repere { transition: transform .45s var(--ease), opacity .6s, scale .4s var(--ease); }
  .coupe.est-zoom .repere { scale: 0; pointer-events: none; }
  .repere__point { width: 9px; height: 9px; }
  .repere__point::after { inset: 2px; }
  .coupe__ensemble {
    display: inline-flex; align-items: center; position: absolute; z-index: 6; top: 8px; right: 8px; min-height: 34px; padding: 0 .75rem;
    font: .6875rem var(--mono); color: var(--encre); background: rgba(255, 250, 241, .92); border: 1px solid var(--trait); cursor: pointer;
    opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .coupe.est-zoom .coupe__ensemble { opacity: 1; pointer-events: auto; }
  .coupe__renvoi, .cartouche { display: none; }
  .coupe__fiches { position: relative; inset: auto; width: auto; max-width: 600px; min-height: 10rem; margin: 1rem var(--g) 0; }
  .fiche { grid-template-columns: 34% 1fr; box-shadow: none; }
  .ouverture__bas { flex-direction: column; align-items: stretch; gap: .7rem; border-top: 0; padding-top: 1.1rem; }
  .legende { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .legende button { width: 100%; min-height: 44px; padding: .45rem .75rem; align-items: center; text-align: left; white-space: normal; line-height: 1.25; border: 1px solid var(--trait); }
  .legende button.est-actif { background: var(--encre); color: var(--chaux); border-color: var(--encre); }
  .legende button.est-actif span:last-child { text-decoration: none; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .coupe__cadre { transition: none; } }

/* ——— manifeste et nomenclature ——— */
.manifeste { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 13vw, 200px) var(--g) clamp(80px, 10vw, 150px); }
.manifeste--court { padding-top: clamp(72px, 9vw, 130px); }
.manifeste--court .titre-l { margin-bottom: clamp(32px, 4vw, 56px); }
.manifeste__grand { max-width: 64rem; font-weight: 300; font-stretch: 110%; font-size: clamp(1.55rem, 1rem + 2.3vw, 3.15rem); line-height: 1.14; letter-spacing: -.022em; text-wrap: pretty; }
html.js .manifeste__grand[data-revele] .mot { opacity: .16; transition: opacity .5s ease; }
html.js .manifeste__grand[data-revele] .mot.est-lu { opacity: 1; }
.nomen { width: 100%; margin-top: clamp(56px, 7vw, 110px); border-collapse: collapse; font-size: .9375rem; }
.nomen thead th { padding: 0 1rem .7rem 0; text-align: left; font: .6875rem var(--mono); color: var(--gris); border-bottom: 1px solid var(--encre); }
.nomen tbody tr { border-bottom: 1px solid var(--trait); }
.nomen tbody :is(th, td) { padding: 1.15rem 1rem 1.15rem 0; text-align: left; vertical-align: baseline; }
.nomen tbody th { font-weight: 500; font-stretch: 110%; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); }
.nomen td { color: var(--gris); }
.nomen__ref { text-align: right !important; font: .8125rem var(--mono); white-space: nowrap; }
html.js .nomen[data-revele] tbody tr { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.js .nomen[data-revele].est-visible tbody tr { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .nomen thead { display: none; }
  .nomen tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 1rem 0; gap: .2rem 0; }
  .nomen tbody :is(th, td) { padding: 0; }
  .nomen__ref { text-align: left !important; }
}

/* ——— métiers ——— */
.metiers { position: relative; padding: 0 0 clamp(96px, 12vw, 180px); }
.metiers__liste { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); border-bottom: 1px solid var(--encre); }
.metier { border-top: 1px solid var(--encre); transition: opacity .4s; }
.metier a {
  display: grid; grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr) clamp(96px, 8.5vw, 132px); align-items: center; gap: 1rem 2.4rem;
  padding: clamp(18px, 2.2vw, 34px) 0; text-decoration: none; transition: padding .55s var(--ease);
}
.profil { width: 72px; height: 72px; fill: none; stroke: var(--encre); stroke-width: 1.2; }
.profil__cote { stroke-width: .7; opacity: .55; }
.profil__pvb { fill: rgba(220, 190, 110, .45); stroke-width: .8; }
.profil__cerne, .profil__hach { stroke-width: .7; }
.profil__iso { stroke-width: .8; }
.metier__nom { font-weight: 280; font-stretch: 120%; font-size: clamp(2.2rem, 1.2rem + 3.4vw, 5rem); line-height: 1; letter-spacing: -.035em; }
.metier__desc { max-width: 28rem; color: var(--gris); }
.metier__vignette { display: block; overflow: hidden; background: var(--chaux-2); }
.metier__vignette img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease); }
@media (hover: hover) {
  .metiers__liste:hover .metier { opacity: .35; }
  .metiers__liste .metier:hover { opacity: 1; }
  .metier:hover a { padding-left: 1.4rem; }
  .metier:hover .metier__vignette img { transform: scale(1.05); }
}
@media (max-width: 760px) {
  .metier a { grid-template-columns: 1fr 88px; gap: .5rem 1rem; }
  .profil { display: none; }
  .metier__nom { grid-column: 1; }
  .metier__desc { grid-column: 1; font-size: .9375rem; }
  .metier__vignette { grid-column: 2; grid-row: 1 / span 2; width: 88px; }
}

/* ——— vitrine : les réalisations se découvrent au défilement, comme un rideau ——— */
.vitrine { position: relative; height: calc(var(--n) * 90vh + 30vh); background: var(--chaux-2); }
.vitrine__scene {
  position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 4vw, 80px);
  max-width: var(--max); margin: 0 auto; padding: calc(var(--entete) + 2vh) var(--g) 4vh;
}
.vitrine__texte { display: flex; flex-direction: column; gap: clamp(24px, 4vh, 48px); align-self: stretch; justify-content: space-between; padding: 2vh 0; }
.vitrine__projets { display: grid; }
.projet { grid-area: 1 / 1; opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .9s var(--ease); pointer-events: none; }
.projet.est-actif { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.projet__titre { font-weight: 280; font-stretch: 120%; font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.6rem); line-height: 1; letter-spacing: -.03em; }
.projet p { max-width: 30rem; margin-top: 1rem; color: var(--gris); }
.projet__fiche { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: .6rem 2.2rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--trait); }
.projet__fiche dt { font: .6875rem var(--mono); color: var(--gris); }
.projet__fiche dd { font-weight: 500; font-size: .9375rem; }
.vitrine__pied { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.8rem; }
.vitrine__jauge { position: relative; flex: 1; min-width: 80px; max-width: 240px; height: 1px; background: var(--trait); }
.vitrine__jauge i { position: absolute; inset: 0; background: var(--encre); transform-origin: left; transform: scaleX(0); }
.vitrine__plaque { position: relative; justify-self: end; width: min(100%, calc(100svh - var(--entete) - 10vh)); aspect-ratio: 1; overflow: hidden; background: var(--ral); }
.vitrine__vue { position: absolute; inset: 0; overflow: hidden; transform: translate3d(0, 100%, 0); will-change: transform; }
.vitrine__vue:first-child { transform: none; }
.vitrine__ombre { position: absolute; inset: 0; background: #11161a; opacity: 0; pointer-events: none; will-change: opacity; }
.vitrine__vue img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
@media (max-width: 900px) {
  .vitrine { height: calc(var(--n) * 80vh + 30vh); }
  .vitrine__scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-content: start; gap: 18px; padding-top: calc(var(--entete) + 8px); padding-bottom: 20px; }
  .vitrine__plaque { order: -1; justify-self: stretch; width: 100%; aspect-ratio: auto; height: 48svh; }
  .vitrine__texte { padding: 0; gap: 14px; justify-content: start; }
  .vitrine__texte .titre-l { display: none; }
  .projet__titre { font-size: clamp(1.7rem, 7.5vw, 2.4rem); }
  .projet p { font-size: .9375rem; margin-top: .6rem; }
  .projet__fiche { grid-template-columns: minmax(0, 1fr); gap: .15rem; margin-top: .8rem; padding-top: .6rem; }
  .projet__fiche div { display: grid; grid-template-columns: 5.5rem 1fr; align-items: baseline; }
  .projet__fiche dd { font-size: .875rem; }
}

/* ——— laser : avant / après ——— */
.avant-apres { padding: clamp(96px, 12vw, 180px) 0; }
.avant-apres__duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 48px); max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.avant-apres__suite { max-width: var(--max); margin: 2.4rem auto 0; padding: 0 var(--g); }
.laser figcaption { margin-top: .9rem; max-width: 34rem; font-size: .9375rem; color: var(--gris); }
.laser__cadre { position: relative; aspect-ratio: 3 / 4; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; background: var(--ral); }
.laser__cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.laser__avant { position: absolute; inset: 0; overflow: hidden; transform: translate3d(calc(var(--pos) - 100%), 0, 0); will-change: transform; }
.laser__avant img { transform: translate3d(calc(100% - var(--pos)), 0, 0); will-change: transform; filter: saturate(.85); }
.laser__ligne { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; pointer-events: none; transform: translate3d(calc(var(--pos) - 100%), 0, 0); will-change: transform; }
.laser__ligne::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: -1px; width: 2px;
  background: linear-gradient(180deg, #c9ffdc, #7dffad 50%, #c9ffdc);
  box-shadow: 0 0 4px 1px rgba(61, 255, 132, .95), 0 0 18px 4px rgba(61, 255, 132, .45), 0 0 46px 10px rgba(61, 255, 132, .16);
  animation: scintille 2.4s steps(12) infinite;
}
.laser__ligne::after { content: ""; position: absolute; top: 0; bottom: 0; right: -40px; width: 80px; background: radial-gradient(40px 50% at 50% 50%, rgba(61, 255, 132, .14), transparent 70%); }
@keyframes scintille { 0%, 100% { opacity: 1; } 30% { opacity: .9; } 55% { opacity: .97; } 80% { opacity: .88; } }
.laser__tete {
  position: absolute; top: 14px; left: 100%; width: 44px; height: 44px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #4b5458, #1b2023 70%); box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
  display: grid; place-items: center;
}
.laser__tete i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, #eafff1 0 20%, var(--laser) 40%, #0f6b33 100%); box-shadow: 0 0 10px 3px var(--laser-halo); }
.laser__tete::before, .laser__tete::after { content: ""; position: absolute; top: 50%; width: 6px; height: 1px; background: rgba(241, 222, 189, .6); }
.laser__tete::before { left: 6px; }
.laser__tete::after { right: 6px; }
.laser__etiq { position: absolute; bottom: 12px; padding: .3rem .55rem; font: .6875rem var(--mono); background: rgba(62, 27, 23, .78); color: var(--chaux); pointer-events: none; transition: opacity .3s; }
.laser__etiq--avant { left: 12px; }
.laser__etiq--apres { right: 12px; }
.laser.cote-avant .laser__etiq--apres, .laser.cote-apres .laser__etiq--avant { opacity: .35; }
.laser:not(.en-vue) .laser__ligne::before, .ouverture:not(.en-vue) .repere::after, .isolation:not(.en-vue) .iso-flux { animation-play-state: paused; }
.laser__curseur:focus-visible + * , .laser__cadre:has(.laser__curseur:focus-visible) { outline: 2px solid var(--encre); outline-offset: 4px; }
@media (max-width: 760px) { .avant-apres__duo { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

/* ——— bloc atelier ——— */
.bloc-atelier { padding: clamp(96px, 12vw, 180px) 0; overflow: hidden; }
.bloc-atelier__grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); max-width: var(--max); margin: 0 auto; padding: 0 var(--g); align-items: start; }
.bloc-atelier__grande { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.bloc-atelier__grande img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.bloc-atelier__texte { grid-column: 9 / span 4; padding-top: 4vw; }
.bloc-atelier__texte p { margin: 1.6rem 0 1.4rem; }
.bloc-atelier__petite { grid-column: 9 / span 3; align-self: end; }
.bloc-atelier__petite img { width: 100%; aspect-ratio: 1; object-fit: cover; }
[data-devoile] { position: relative; overflow: hidden; }
html.js [data-devoile]::after { content: ""; position: absolute; inset: 0; background: var(--fond, var(--chaux)); transform-origin: 50% 0; transition: transform 1.3s var(--ease-in-out); pointer-events: none; }
html.js [data-devoile] img { transform: scale(1.15); transition: transform 1.8s var(--ease); }
html.js [data-devoile].est-visible::after { transform: scaleY(0); }
html.js [data-devoile].est-visible img { transform: none; }
.fond-ral { --fond: var(--ral); }
@media (max-width: 860px) {
  .bloc-atelier__grande { grid-column: 1 / -1; grid-row: auto; }
  .bloc-atelier__texte { grid-column: 1 / -1; padding-top: 1rem; }
  .bloc-atelier__petite { grid-column: 4 / -1; }
}

/* ——— réglages : règle graduée ——— */
.reglage { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .3rem 1rem; margin-top: 1.4rem; }
.reglage__lib { font-size: .875rem; color: var(--gris); }
.reglage__val { font: 1rem var(--mono); }
.reglage__val output { font-size: 1.5rem; }
.reglage input[type="range"] {
  grid-column: 1 / -1; width: 100%; height: 40px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.reglage input[type="range"]::-webkit-slider-runnable-track {
  height: 22px;
  background:
    linear-gradient(var(--encre), var(--encre)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--encre) 0 1px, transparent 1px 10%) 0 100% / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(62, 27, 23, .45) 0 1px, transparent 1px 2%) 0 100% / 100% 6px no-repeat;
}
.reglage input[type="range"]::-moz-range-track {
  height: 22px;
  background:
    linear-gradient(var(--encre), var(--encre)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--encre) 0 1px, transparent 1px 10%) 0 100% / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(62, 27, 23, .45) 0 1px, transparent 1px 2%) 0 100% / 100% 6px no-repeat;
}
.reglage input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 34px; margin-top: -6px; border: 0; border-radius: 0;
  background: linear-gradient(var(--encre), var(--encre)) 50% 0 / 2px 100% no-repeat, linear-gradient(transparent 0 70%, var(--encre) 70%) 50% 0 / 14px 100% no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
  background-color: var(--encre);
}
.reglage input[type="range"]::-moz-range-thumb { width: 16px; height: 30px; border: 0; border-radius: 0; background: var(--encre); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }
.reglage input[type="range"]:focus-visible { outline: 2px solid var(--encre); outline-offset: 4px; }
.fond-ral .reglage input[type="range"]::-webkit-slider-runnable-track { filter: invert(1); }

/* ——— esquisse mini (Blondel) ——— */
.esquisse-mini { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 180px) var(--g); }
.esquisse-mini__texte > p { margin-top: 1.2rem; color: var(--gris); max-width: 30rem; }
.releve { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: .3rem 2rem; margin: 1.6rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--trait); }
.releve dt { font: .6875rem var(--mono); color: var(--gris); }
.releve dd { font-weight: 500; font-stretch: 110%; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.formule { display: inline-flex; gap: .6rem; align-items: center; margin-bottom: 1.8rem !important; padding: .45rem .7rem; font: .875rem var(--mono); color: var(--encre) !important; background: var(--papier); border: 1px solid var(--trait); }
.formule.est-ok::after { content: "✓"; color: #1a7f45; }
.formule.est-limite::after { content: "≈"; color: #a0611c; }
.esquisse-mini__dessin { background: var(--papier); border: 1px solid var(--encre); padding: clamp(12px, 2vw, 28px); box-shadow: 10px 10px 0 rgba(62, 27, 23, .06); }
.esquisse-mini__dessin svg { width: 100%; height: auto; display: block; overflow: visible; }
.trace-svg :is(path, line, rect, polyline, polygon, circle, ellipse) { fill: none; stroke: var(--encre); stroke-linejoin: round; stroke-linecap: round; }
.trace-svg .t-coupe { stroke-width: 1.8; }
.trace-svg .t-vu { stroke-width: 1.1; }
.trace-svg .t-fin { stroke-width: .6; }
.trace-svg .t-cote { stroke-width: .6; }
.trace-svg .t-axe { stroke-width: .6; stroke-dasharray: 10 3 2 3; opacity: .55; }
.trace-svg .t-verre { stroke: var(--verre); stroke-width: 1; fill: rgba(166, 202, 203, .25); }
.trace-svg .t-chene { fill: #dcbf93; stroke: var(--encre); stroke-width: .8; }
.trace-svg .t-acier { fill: #34393c; stroke: none; }
.trace-svg .t-beton { fill: #dbd7ce; stroke: var(--encre); stroke-width: 1; }
.trace-svg .t-tirets { stroke-dasharray: 7 5; }
.trace-svg .t-laser { stroke: var(--ral-2); stroke-width: 1.2; stroke-dasharray: 6 3; }
.trace-svg text { font: 11px var(--mono); fill: var(--encre); stroke: none; }
.trace-svg .t-txt-m { text-anchor: middle; }
.trace-svg .t-txt-f { text-anchor: end; }
.trace-svg .t-titre { font: 600 13px "SwissRenova Sans", sans-serif; font-stretch: 120%; }
@media (max-width: 860px) {
  .esquisse-mini { grid-template-columns: minmax(0, 1fr); }
  .esquisse-mini__dessin { order: -1; }
  .releve { grid-template-columns: repeat(2, auto); }
}

/* ——— en-têtes de page ——— */
.tete-page { display: grid; grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); gap: clamp(32px, 5vw, 96px); align-items: end; max-width: var(--max); margin: 0 auto; padding: calc(var(--entete) + clamp(32px, 7vh, 96px)) var(--g) clamp(72px, 9vw, 140px); }
.tete-page__texte .chapeau { margin-top: 1.6rem; }
.tete-page .titre-xl { font-size: clamp(2.4rem, 1.1rem + 3.3vw, 5.2rem); }
.tete-page__visuel { position: relative; }
.tete-simple { max-width: var(--max); margin: 0 auto; padding: calc(var(--entete) + clamp(32px, 8vh, 110px)) var(--g) clamp(40px, 5vw, 72px); }
.tete-simple .chapeau { margin-top: 1.4rem; }
@media (max-width: 900px) {
  .tete-page { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* photo cotée */
.cotee { position: relative; overflow: hidden; overflow: clip; overflow-clip-margin: 2px; }
.cotee img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cotee--portrait { max-width: 520px; margin-left: auto; }
.cotee--portrait img { aspect-ratio: 720 / 1150; }
.cotee__traits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cotee__traits path { fill: none; stroke: #fff; stroke-width: 1.1; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .55)); }
.cotee__libs { position: absolute; inset: 0; pointer-events: none; }
.cotee__lib { position: absolute; translate: var(--decal, 0px) 0; padding: .28rem .5rem; font: .6875rem/1.2 var(--mono); white-space: nowrap; color: #fff; background: rgba(62, 27, 23, .82); }
.cotee__lib--v { transform: translate(10px, -50%); }
.cotee__lib--h { transform: translate(-50%, calc(-100% - 6px)); }
.cotee__lib--r { transform: translate(6px, -50%); }
.cotee__lib--g { transform: translate(calc(-100% - 6px), -50%); }
.cotee__point { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border: 1.5px solid #fff; border-radius: 50%; background: rgba(62, 27, 23, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
html.js .cotee__traits path { stroke-dasharray: var(--l, 1000) var(--l, 1000); stroke-dashoffset: var(--l, 1000); }
html.js .cotee :is(.cotee__lib, .cotee__point) { opacity: 0; }
html.js .cotee.est-visible .cotee__traits path { animation: tracer .9s var(--ease-in-out) forwards; animation-delay: calc(.5s + var(--k) * .22s); }
html.js .cotee.est-visible :is(.cotee__lib, .cotee__point) { animation: apparaitre .5s ease forwards; animation-delay: calc(.9s + var(--k) * .22s); }
@media (max-width: 520px) { .cotee__lib { font-size: .5625rem; padding: .2rem .35rem; } }

/* ——— sommaire et rubriques ——— */
.avec-sommaire { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.sommaire ol { position: sticky; top: calc(var(--entete) + 32px); display: grid; gap: .1rem; }
.sommaire a { position: relative; display: flex; gap: .8rem; padding: .45rem 0 .45rem 1rem; text-decoration: none; font-size: .9375rem; color: var(--gris); transition: color .3s; }
.sommaire a::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 2px; background: var(--encre); transform: scaleY(0); transition: transform .4s var(--ease); }
.sommaire a.est-actif { color: var(--encre); }
.sommaire a.est-actif::before { transform: none; }
.rubriques--pleine { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.rubrique { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 110px); border-top: 1px solid var(--encre); }
.rubrique__tete { display: flex; align-items: center; gap: 1.2rem; }
.picto { width: 52px; height: 52px; fill: none; stroke: var(--encre); stroke-width: 1.4; flex: none; }
.picto .fin { stroke-width: .7; }
.rubrique__corps { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.4rem clamp(24px, 4vw, 64px); margin: 1.6rem 0 2.2rem; }
.rubrique__corps > p { max-width: 40rem; }
.specs { display: grid; gap: 0; align-content: start; border-top: 1px solid var(--trait); }
.specs div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--trait); }
.specs dt { font: .6875rem/1.9 var(--mono); color: var(--gris); }
.specs dd { font-size: .9375rem; }
@media (max-width: 1000px) {
  .avec-sommaire { grid-template-columns: minmax(0, 1fr); }
  .sommaire { position: sticky; top: var(--entete); z-index: 20; margin: 0 calc(var(--g) * -1); background: rgba(241, 222, 189, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); }
  .sommaire ol { position: static; display: flex; gap: .4rem; overflow-x: auto; padding: .5rem var(--g); scrollbar-width: none; }
  .sommaire ol::-webkit-scrollbar { display: none; }
  .sommaire a { flex: none; padding: .45rem .8rem; border: 1px solid var(--trait); white-space: nowrap; font-size: .875rem; }
  .sommaire a::before { display: none; }
  .sommaire a.est-actif { background: var(--encre); color: var(--chaux); border-color: var(--encre); }
  .rubrique__corps { grid-template-columns: minmax(0, 1fr); }
}
.entete.est-cache ~ main .sommaire { top: 0; }

/* bande de photos */
.bande { position: relative; }
.bande__piste { display: flex; gap: clamp(10px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; padding-bottom: 2px; }
.bande__piste::-webkit-scrollbar { display: none; }
.bande__piste.en-glisse { cursor: grabbing; scroll-snap-type: none; }
.bande__piste.en-glisse a { pointer-events: none; }
.bande__item { flex: none; width: clamp(220px, 21vw, 330px); scroll-snap-align: start; }
.bande__item a { display: block; overflow: hidden; }
.bande__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease); -webkit-user-drag: none; }
@media (hover: hover) { .bande__item a:hover img { transform: scale(1.035); } }
.bande__item figcaption { margin-top: .6rem; font-size: .8125rem; color: var(--gris); }
.bande__nav { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.bande__nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--trait); cursor: pointer; transition: background-color .3s, color .3s; }
.bande__nav button:hover { background: var(--encre); color: var(--chaux); }
.bande__nav button:disabled { opacity: .3; pointer-events: none; }
.bande__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.bande__jauge { position: relative; width: 120px; height: 1px; margin: 0 .4rem; background: var(--trait); }
.bande__jauge i { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: var(--encre); transform-origin: left; transform: translateX(calc(var(--d, 0) * 100%)) scaleX(var(--v, 1)); }

/* ——— nuancier ——— */
.nuancier { padding: clamp(96px, 12vw, 180px) 0; }
.nuancier__liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.echantillon canvas { display: block; width: 100%; height: auto; aspect-ratio: 360 / 460; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6); }
.echantillon h3 { margin-top: 1.1rem; }
.echantillon p { margin-top: .35rem; font-size: .875rem; }
@media (max-width: 860px) { .nuancier__liste { grid-template-columns: 1fr 1fr; } }

/* ——— chaîne de cotes (processus) ——— */
.processus { padding: clamp(96px, 12vw, 180px) 0; }
.chaine { position: relative; display: flex; max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.chaine::after { content: ""; position: absolute; top: calc(1rem - 6px); right: calc(var(--g) - 4px); width: 1px; height: 13px; background: var(--encre); transform: rotate(45deg); }
.chaine li { position: relative; flex: var(--p) 1 0; min-width: 0; padding: 2.4rem 1.4rem 0 0; }
.chaine li::before { content: ""; position: absolute; top: 1rem; left: 0; right: 0; height: 1px; background: var(--encre); transform-origin: left; }
.chaine li::after { content: ""; position: absolute; top: calc(1rem - 6px); left: -4px; width: 1px; height: 13px; background: var(--encre); transform: rotate(45deg); }
.chaine li:last-child { padding-right: 0; }
.chaine h3 { font-weight: 500; }
.chaine p { margin-top: .4rem; font-size: .875rem; color: var(--gris); }
html.js .chaine li::before { transform: scaleX(0); transition: transform 1s var(--ease-in-out); transition-delay: calc(var(--i, 0) * 180ms); }
html.js .chaine.est-visible li::before { transform: none; }
@media (max-width: 860px) {
  .chaine { flex-direction: column; gap: 0; }
  .chaine li { padding: 0 0 2rem 2.4rem; }
  .chaine li::before { top: 0; bottom: 0; left: .5rem; right: auto; width: 1px; height: auto; }
  .chaine li::after { top: -6px; left: .5rem; }
  .chaine::after { display: none; }
  html.js .chaine li::before { transform: scaleY(0); transform-origin: top; }
}

/* ——— verre : échantillons ——— */
.echantillon-verre { padding: clamp(80px, 10vw, 150px) 0; background: var(--chaux-2); }
.ev { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(16px, 3vw, 48px); max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.ev__scene { position: relative; aspect-ratio: 4 / 3; overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.ev__fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev__plaque { position: absolute; top: 7%; bottom: 7%; left: var(--px); width: 36%; transform: translateX(-50%); --rx: 30%; }
.ev__vitre { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .55); transition: background-color .6s, -webkit-backdrop-filter .6s, backdrop-filter .6s; }
.ev__chant { position: absolute; top: 0; bottom: 0; left: -9px; width: 9px; transform: skewY(-12deg); transform-origin: right top; transition: background .6s; }
.ev__reflet { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ev__reflet::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: var(--rx); width: 26%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .28) 40%, rgba(255, 255, 255, .06) 60%, rgba(255, 255, 255, 0)); transform: skewX(-18deg); transition: left .2s linear; }
.ev__reflet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 30%); }
.ev__poignee { position: absolute; top: 50%; right: -18px; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: var(--chaux); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.ev__poignee::before, .ev__poignee::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border: solid var(--encre); border-width: 0 0 1.4px 1.4px; }
.ev__poignee::before { left: 9px; transform: translateY(-50%) rotate(45deg); }
.ev__poignee::after { right: 9px; transform: translateY(-50%) rotate(-135deg); }
.ev__plaque[data-type="clair"] .ev__vitre { background: rgba(160, 205, 190, .14); }
.ev__plaque[data-type="clair"] .ev__chant { background: linear-gradient(180deg, #5fa98e, #2f7a63 50%, #5fa98e); }
.ev__plaque[data-type="extra"] .ev__vitre { background: rgba(235, 245, 245, .05); }
.ev__plaque[data-type="extra"] .ev__chant { background: linear-gradient(180deg, #d8ecea, #a9cfcc 50%, #d8ecea); }
.ev__plaque[data-type="satine"] .ev__vitre { background: rgba(240, 244, 244, .38); -webkit-backdrop-filter: blur(9px) saturate(.75); backdrop-filter: blur(9px) saturate(.75); }
.ev__plaque[data-type="satine"] .ev__chant { background: linear-gradient(180deg, #e6efed, #b8d3cd 50%, #e6efed); }
.ev__plaque[data-type="fume"] .ev__vitre { background: rgba(38, 44, 48, .5); }
.ev__plaque[data-type="fume"] .ev__chant { background: linear-gradient(180deg, #4a5153, #1f2426 50%, #4a5153); }
.ev__choix { display: grid; align-content: start; gap: .5rem; }
.verre-choix { display: grid; grid-template-columns: 34px 1fr; gap: .9rem; align-items: start; padding: .9rem; text-align: left; background: none; border: 1px solid var(--trait); cursor: pointer; transition: border-color .3s, background-color .3s; }
.verre-choix b { display: block; font-weight: 500; font-stretch: 110%; }
.verre-choix small { display: block; margin-top: .2rem; font-size: .8125rem; color: var(--gris); line-height: 1.4; }
.verre-choix[aria-pressed="true"] { border-color: var(--encre); background: var(--papier); }
.verre-choix__pastille { width: 34px; height: 34px; border: 1px solid var(--trait); position: relative; overflow: hidden; }
.verre-choix__pastille::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 6px; }
.verre-choix__pastille--clair { background: #e3efe9; } .verre-choix__pastille--clair::after { background: #3f8d72; }
.verre-choix__pastille--extra { background: #f4f8f7; } .verre-choix__pastille--extra::after { background: #b6d6d2; }
.verre-choix__pastille--satine { background: repeating-linear-gradient(45deg, #edf1f0 0 2px, #e2e8e6 2px 4px); } .verre-choix__pastille--satine::after { background: #c6dcd7; }
.verre-choix__pastille--fume { background: #50585b; } .verre-choix__pastille--fume::after { background: #23292b; }
@media (max-width: 900px) {
  .ev { grid-template-columns: minmax(0, 1fr); }
  .ev__choix { grid-template-columns: 1fr 1fr; }
  .verre-choix { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .verre-choix small { display: none; }
}

/* VSG */
.vsg { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 150px) var(--g); }
.vsg__texte p { margin-top: 1.4rem; color: var(--gris); }
.vsg__dessin { padding: clamp(12px, 2vw, 32px); background: var(--papier); border: 1px solid var(--encre); }
.vsg__dessin svg { width: 100%; height: auto; display: block; overflow: visible; }
.vsg__verre { fill: rgba(166, 202, 203, .35); stroke: var(--verre); stroke-width: 1.2; }
.vsg__pvb { fill: rgba(220, 190, 110, .5); stroke: var(--encre); stroke-width: .6; }
.vsg__profil { fill: #dfdcd5; stroke: var(--encre); stroke-width: 1.4; }
.vsg__hach { stroke: none; }
#vsg-alu line { stroke: var(--encre); stroke-width: .5; }
.vsg__cale { fill: var(--encre); }
.vsg__trait { fill: none; stroke: var(--encre); stroke-width: .7; }
.vsg__dessin text { font: 12px var(--mono); fill: var(--encre); }
@media (max-width: 860px) { .vsg { grid-template-columns: minmax(0, 1fr); } }

/* ——— défilement horizontal (menuiserie) ——— */
.defile-h { position: relative; background: var(--ral); color: var(--chaux); }
.defile-h__scene { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 48px); overflow: hidden; padding-top: var(--entete); }
.defile-h__tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; padding: 0 var(--g); }
.defile-h__tete p { max-width: 26rem; color: rgba(241, 222, 189, .72); }
.defile-h__jauge { position: relative; flex-basis: 100%; height: 1px; background: var(--trait-clair); }
.defile-h__jauge i { position: absolute; inset: 0; background: var(--chaux); transform-origin: left; transform: scaleX(var(--p, 0)); }
.defile-h__piste { display: flex; gap: clamp(14px, 2vw, 28px); padding: 0 var(--g); will-change: transform; }
.defile-h__item { flex: none; width: clamp(240px, 30vw, 460px); }
.defile-h__item img { width: 100%; aspect-ratio: 4 / 5; max-height: 58svh; object-fit: cover; }
.defile-h__item figcaption { margin-top: .8rem; font-size: .875rem; color: rgba(241, 222, 189, .74); }
.defile-h__item b { display: block; font: .6875rem var(--mono); color: var(--chaux-2); font-weight: 400; margin-bottom: .2rem; }
html:not(.js) .defile-h__piste { overflow-x: auto; }

/* ——— journal de chantier ——— */
.journal { position: relative; height: calc(var(--n) * 60vh + 100vh); }
.journal__scene {
  position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: auto minmax(0, 1fr);
  gap: 1.4rem clamp(24px, 5vw, 96px); max-width: var(--max); margin: 0 auto; padding: calc(var(--entete) + 3vh) var(--g) 5vh;
}
.journal__tete { grid-column: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.journal__tete .titre-l { font-size: clamp(1.8rem, 1.1rem + 2vw, 3.2rem); }
.journal__photos { position: relative; grid-column: 2; grid-row: 1 / span 2; justify-self: end; height: 100%; aspect-ratio: 720 / 1310; max-width: 100%; overflow: hidden; background: var(--ral); }
.journal__photo { position: absolute; inset: 0; overflow: hidden; transform: translate3d(-100%, 0, 0); transition: transform .9s var(--ease-in-out); }
.journal__photo img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(100%, 0, 0); transition: transform .9s var(--ease-in-out); }
.journal__photo:is(.est-actif, .est-passe), .journal__photo:is(.est-actif, .est-passe) img { transform: none; }
.journal__photo.est-actif { z-index: 2; }
.journal__photo.est-passe { z-index: 1; }
.journal__balayage { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 100%; border-right: 2px solid var(--chaux); box-shadow: inset -14px 0 16px -14px rgba(241, 222, 189, .85); opacity: 0; transform: translateX(-100%); pointer-events: none; }
.journal__balayage.balaie { animation: balaie .9s var(--ease-in-out); }
@keyframes balaie { 0% { transform: translateX(-100%); opacity: 1; } 90% { opacity: 1; } 100% { transform: none; opacity: 0; } }
.journal__etapes { grid-column: 1; align-self: center; display: grid; gap: 0; border-top: 1px solid var(--trait); }
.journal__etape { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--trait); color: var(--gris-clair); transition: color .4s; }
.journal__etape h3 { font-weight: 400; font-size: 1rem; transition: font-size .4s var(--ease); }
.journal__etape p { max-height: 0; overflow: hidden; opacity: 0; font-size: .9375rem; transition: max-height .6s var(--ease), opacity .4s, margin .4s; }
.journal__etape.est-actif { color: var(--encre); }
.journal__etape.est-actif h3 { font-weight: 500; font-size: 1.3rem; }
.journal__etape.est-actif p { max-height: 6rem; opacity: 1; margin-top: .35rem; color: var(--gris); }
.journal__etape.est-passe { color: var(--gris); }
.journal__jauge { grid-column: 1; position: absolute; left: var(--g); bottom: 3vh; width: min(40%, 320px); height: 1px; background: var(--trait); }
.journal__jauge i { position: absolute; inset: 0; background: var(--encre); transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (max-width: 860px) {
  .journal { height: calc(var(--n) * 55vh + 100vh); }
  .journal__scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); align-content: start; gap: 1rem; padding-top: calc(var(--entete) + 10px); padding-bottom: 16px; }
  .journal__photos { grid-column: 1; grid-row: 2; justify-self: center; height: 54svh; }
  .journal__etapes { grid-row: 3; border: 0; align-self: start; }
  .journal__etape { display: none; border: 0; padding: 0; }
  .journal__etape.est-actif { display: grid; }
  .journal__etape.est-actif p { max-height: none; }
  .journal__jauge { display: none; }
}

/* ——— combles ——— */
.combles { padding: clamp(96px, 12vw, 180px) 0; }
.combles__suite { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); max-width: var(--max); margin: 0 auto; padding: 0 var(--g); counter-reset: none; }
.combles__suite li { position: relative; }
.combles__suite li:first-child a img { aspect-ratio: 9 / 16; }
.combles__suite img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; filter: contrast(1.02); }
.combles__suite p { font-size: .875rem; margin-top: .7rem; }
.combles__suite li:not(:last-child)::after { content: ""; position: absolute; top: 40%; right: calc(clamp(12px, 1.6vw, 24px) / -2 - 4px); width: 8px; height: 8px; border: solid var(--encre); border-width: 1px 1px 0 0; transform: rotate(45deg); }
@media (max-width: 760px) { .combles__suite { grid-template-columns: repeat(2, minmax(0, 1fr)); } .combles__suite li::after { display: none; } }

/* ——— isolation ——— */
.isolation { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: center; padding: clamp(96px, 12vw, 180px) max(var(--g), calc((100vw - var(--max)) / 2 + var(--g))); }
.isolation__texte > p:not(.note):not(.isolation__u) { margin-top: 1.2rem; color: var(--gris); max-width: 32rem; }
.isolation__u { display: flex; align-items: baseline; gap: .6rem; margin: 1.6rem 0 1rem; font-weight: 250; font-stretch: 120%; font-size: clamp(2.6rem, 1.6rem + 3vw, 4.6rem); line-height: 1; letter-spacing: -.03em; }
.isolation__u span, .isolation__u small { font: 1rem var(--mono); letter-spacing: 0; }
.isolation__u output { font-variant-numeric: tabular-nums; transition: color .4s; }
.isolation__seuils { display: grid; gap: .4rem; margin-bottom: 1.2rem; }
.isolation__seuils li { display: grid; grid-template-columns: 4rem 1fr 1.4rem; gap: .8rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--trait); font-size: .875rem; color: var(--gris); transition: border-color .4s, color .4s, background-color .4s; }
.isolation__seuils li span { font: .875rem var(--mono); }
.isolation__seuils li::after { content: ""; width: 1.1rem; height: 1.1rem; border: 1px solid var(--trait); border-radius: 50%; transition: background-color .4s, border-color .4s; }
.isolation__seuils li.est-ok { border-color: var(--encre); color: var(--encre); background: var(--papier); }
.isolation__seuils li.est-ok::after { background: var(--encre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='%23f1debd' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% no-repeat; border-color: var(--encre); }
.isolation__dessin { background: var(--papier); border: 1px solid var(--encre); padding: clamp(12px, 2vw, 28px); }
.isolation__dessin svg { width: 100%; height: auto; display: block; overflow: visible; }
.iso-fleche { fill: #c2552d; stroke: none; transition: opacity .4s; }
@media (max-width: 860px) { .isolation { grid-template-columns: minmax(0, 1fr); } .isolation__dessin { order: -1; } }

/* ——— chauffage : la collaboration présentée comme le cartouche d'un plan ——— */
.chauffage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: center; padding: clamp(96px, 12vw, 180px) max(var(--g), calc((100vw - var(--max)) / 2 + var(--g))) 0; }
.chauffage__texte > p { margin: 1.2rem 0 2rem; color: var(--gris); max-width: 32rem; }
.plaque { position: relative; display: grid; border: 1px solid var(--encre); background: var(--papier); }
.plaque::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--trait); pointer-events: none; }
.plaque__ligne { display: grid; grid-template-columns: minmax(7.5rem, 1fr) minmax(0, 2.2fr); gap: 1rem; align-items: baseline; padding: .95rem 1.2rem; border-top: 1px solid var(--trait); }
.plaque__ligne:first-child { border-top: 0; }
.plaque dt { font: .6875rem/1.4 var(--mono); color: var(--gris); }
.plaque dd { font-size: .9375rem; color: var(--noir); }
.plaque__ligne--nom { padding-block: 1.4rem 1.5rem; border-block: 1px solid var(--encre); }
.plaque__ligne--nom + .plaque__ligne { border-top: 0; }
.plaque__ligne--nom dd { color: var(--encre); font-weight: 300; font-stretch: 115%; font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.6rem); line-height: 1; letter-spacing: -.03em; }
@media (max-width: 860px) { .chauffage { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .plaque__ligne { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }

/* ——— réalisations ——— */
.galerie { max-width: var(--max); margin: 0 auto; padding: 0 var(--g) clamp(96px, 12vw, 180px); }
.galerie__outils { position: sticky; top: var(--entete); z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 calc(var(--g) * -1); padding: .7rem var(--g); background: rgba(241, 222, 189, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); transition: top .5s var(--ease); }
.entete.est-cache ~ main .galerie__outils { top: 0; }
.calques { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; }
.calques::-webkit-scrollbar { display: none; }
.calque { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 .8rem 0 .6rem; background: none; border: 1px solid var(--trait); cursor: pointer; font-size: .875rem; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.calque__oeil { width: 14px; height: 9px; border: 1px solid currentColor; border-radius: 50% / 60%; position: relative; opacity: .45; }
.calque__oeil::after { content: ""; position: absolute; top: 50%; left: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: currentColor; }
.calque[aria-pressed="true"] { background: var(--encre); color: var(--chaux); border-color: var(--encre); }
.calque[aria-pressed="true"] .calque__oeil { opacity: 1; }
.vues { display: flex; flex: none; border: 1px solid var(--trait); }
.vues button { min-height: 38px; padding: 0 .8rem; background: none; border: 0; cursor: pointer; font: .75rem var(--mono); }
.vues button[aria-pressed="true"] { background: var(--encre); color: var(--chaux); }
.galerie__etat { margin: 1.2rem 0; font: .75rem var(--mono); color: var(--gris); }
.planche { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(10px, 1.4vw, 20px); }
.planche__item { min-width: 0; }
.planche__item--g { grid-column: span 2; grid-row: span 2; }
.planche__item--h { grid-column: span 2; }
.planche__item--v { grid-row: span 2; }
.planche__item a { display: block; overflow: hidden; height: calc(100% - 2.2rem); }
.planche__item img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.planche__item--h img { aspect-ratio: 2 / 1; }
.planche__item--v img { aspect-ratio: auto; }
@media (hover: hover) { .planche__item a:hover img { transform: scale(1.035); } }
.planche__item figcaption { display: flex; gap: .6rem; height: 2.2rem; padding-top: .5rem; overflow: hidden; font-size: .8125rem; line-height: 1.3; color: var(--gris); }
.planche__item.entre { animation: entre-planche .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
@keyframes entre-planche { from { opacity: 0; transform: translateY(16px); } }
.index { border-top: 1px solid var(--encre); }
.index li { border-bottom: 1px solid var(--trait); transition: opacity .3s; }
.index a { display: grid; grid-template-columns: 64px minmax(0, 1fr) 12rem; gap: 1.2rem; align-items: center; padding: .7rem 0; text-decoration: none; transition: padding .45s var(--ease); }
.index__vignette { display: block; overflow: hidden; background: var(--chaux-2); }
.index__vignette img { width: 64px; aspect-ratio: 4 / 5; object-fit: cover; }
.index__cat { font: .75rem var(--mono); color: var(--gris); }
.index__nom { font-weight: 400; font-stretch: 112%; font-size: clamp(1.05rem, .95rem + .5vw, 1.45rem); letter-spacing: -.01em; }
@media (hover: hover) { .index:hover li { opacity: .4; } .index li:hover { opacity: 1; } .index li:hover a { padding-left: 1rem; } }
@media (max-width: 860px) {
  .planche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie__outils { flex-direction: column; align-items: stretch; }
  .vues { align-self: flex-end; }
  .index a { grid-template-columns: 56px minmax(0, 1fr); gap: .2rem 1rem; }
  .index__vignette { grid-row: 1 / span 2; }
  .index__vignette img { width: 56px; }
}

/* ——— contact : l'esquisse ——— */
.esq { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; gap: 1.6rem clamp(24px, 4vw, 72px); max-width: var(--max); margin: 0 auto; padding: 0 var(--g) clamp(80px, 10vw, 140px); }
.esq__fil { grid-column: 1 / -1; display: flex; border-top: 1px solid var(--encre); }
.esq__fil li { position: relative; flex: 1; display: flex; gap: .5rem; align-items: baseline; padding: .8rem 1rem .8rem 0; font-size: .875rem; color: var(--gris-clair); }
.esq__fil li::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--encre); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-in-out); }
.esq__fil li.est-fait, .esq__fil li[aria-current] { color: var(--encre); }
.esq__fil li.est-fait::before, .esq__fil li[aria-current]::before { transform: none; }
.esq__form { min-width: 0; }
.esq__etape { margin: 0; padding: 0; border: 0; min-width: 0; }
html.js .esq__etape:not(.est-actif) { display: none; }
.esq__etape.est-actif { animation: etape-entre .55s var(--ease) both; }
@keyframes etape-entre { from { opacity: 0; transform: translateX(14px); } }
.esq__etape > legend { padding: 0; margin-bottom: 1.4rem; }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.type-carte { position: relative; cursor: pointer; }
.type-carte input { position: absolute; opacity: 0; pointer-events: none; }
.type-carte__corps { display: flex; flex-direction: column; gap: .8rem; height: 100%; padding: 1rem; border: 1px solid var(--trait); transition: border-color .3s, background-color .3s; font-weight: 500; font-stretch: 108%; }
.type-carte__corps .picto { width: 44px; height: 44px; stroke: var(--gris); transition: stroke .3s; }
.type-carte:hover .type-carte__corps { border-color: var(--encre); }
.type-carte input:checked + .type-carte__corps { border-color: var(--encre); background: var(--papier); box-shadow: inset 0 0 0 1px var(--encre); }
.type-carte input:checked + .type-carte__corps .picto { stroke: var(--encre); }
.type-carte input:focus-visible + .type-carte__corps { outline: 2px solid var(--encre); outline-offset: 2px; }
/* « Autre projet » ferme la grille sur toute la largeur (sauf sur deux colonnes, où le compte tombe juste) */
.type-carte--autre { grid-column: 1 / -1; }
.type-carte--autre .type-carte__corps { flex-direction: row; align-items: center; }
.esq-type .champ textarea { min-height: 7.5rem; }
.choix { margin: 1.6rem 0 0; padding: 0; border: 0; min-width: 0; }
.choix legend { padding: 0; margin-bottom: .6rem; font-size: .875rem; color: var(--gris); }
.puces { display: flex; flex-wrap: wrap; gap: .4rem; }
.puce { position: relative; cursor: pointer; }
.puce input { position: absolute; opacity: 0; pointer-events: none; }
.puce span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 1rem; border: 1px solid var(--trait); font-size: .9375rem; transition: background-color .25s, color .25s, border-color .25s; }
.puce:hover span { border-color: var(--encre); }
.puce input:checked + span { background: var(--encre); color: var(--chaux); border-color: var(--encre); }
.puce input:focus-visible + span { outline: 2px solid var(--encre); outline-offset: 2px; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.champ { display: grid; gap: .3rem; margin-top: 1.2rem; }
.champ span { font-size: .875rem; color: var(--gris); }
.champ input, .champ textarea { width: 100%; padding: .7rem 0; font: inherit; font-size: 1.05rem; color: var(--encre); background: transparent; border: 0; border-bottom: 1px solid var(--encre); border-radius: 0; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; border-bottom-width: 2px; padding-bottom: calc(.7rem - 1px); }
.champ input::placeholder, .champ textarea::placeholder { color: var(--gris-clair); }
.champ.est-erreur input { border-bottom-color: #b3361b; }
.esq__nav { display: flex; align-items: center; gap: 1rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--trait); }
.esq__nav [data-esq-suiv] { margin-left: auto; }
.esq__erreur { font-size: .875rem; color: #b3361b; }
.esq__recap { display: grid; border-top: 1px solid var(--trait); }
.esq__recap div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--trait); }
.esq__recap dt { font: .6875rem/1.9 var(--mono); color: var(--gris); }
.esq__envoi { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin: 1.8rem 0 1rem; }
.esq__feuille { grid-column: 2; grid-row: 2; }
.esq__planche { position: sticky; top: calc(var(--entete) + 20px); padding: clamp(12px, 1.6vw, 22px); background: var(--papier); border: 1px solid var(--encre); box-shadow: 10px 10px 0 rgba(62, 27, 23, .06); }
.esq__dessin { width: 100%; height: auto; display: block; overflow: visible; }
.esq__calc { display: grid; gap: 0; margin-top: .6rem; border-top: 1px solid var(--trait); }
.esq__calc:empty { display: none; }
.esq__calc li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--trait); font-size: .8125rem; }
.esq__calc li span:first-child { color: var(--gris); }
.esq__calc li span:last-child { font-family: var(--mono); text-align: right; }
.cartouche--esq { position: static; margin-top: .9rem; grid-template-columns: 1fr 1fr; font-size: .6875rem; background: none; }
.cartouche--esq .cartouche__nom { font-size: .875rem !important; }
.joindre { max-width: var(--max); margin: 0 auto; padding: 0 var(--g) clamp(96px, 12vw, 160px); }
.joindre__liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 2rem; margin-top: 2rem; border-top: 1px solid var(--encre); }
.joindre__liste div { padding-top: 1rem; }
.joindre__liste dt { font: .6875rem var(--mono); color: var(--gris); }
.joindre__liste dd { margin-top: .3rem; font-size: 1.05rem; font-weight: 500; overflow-wrap: anywhere; }
.joindre__liste a { text-decoration: none; }
.joindre__liste a:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .esq { grid-template-columns: minmax(0, 1fr); }
  .esq__feuille { grid-column: 1; grid-row: 2; }
  .esq__planche { position: static; padding: 10px; box-shadow: none; }
  .esq:not([data-etape="4"]) :is(.esq__calc, .cartouche--esq) { display: none; }
  .esq__dessin { max-height: 38svh; }
  .esq__fil li { font-size: 0; padding-right: .4rem; }
  .esq__fil li[aria-current] { font-size: .8125rem; flex: 3; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-carte--autre { grid-column: auto; }
  .type-carte--autre .type-carte__corps { flex-direction: column; align-items: stretch; }
  .joindre__liste { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .champs-2 { grid-template-columns: minmax(0, 1fr); } .esq__recap div { grid-template-columns: minmax(0, 1fr); gap: 0; } .joindre__liste { grid-template-columns: minmax(0, 1fr); } }

/* ——— textes légaux, 404 ——— */
.texte-legal { max-width: 46rem; margin: 0 auto; padding: 0 var(--g) clamp(96px, 12vw, 160px); margin-left: max(var(--g), calc((100vw - var(--max)) / 2 + var(--g))); }
.texte-legal h2 { margin: 2.4rem 0 .6rem; font-weight: 500; font-stretch: 110%; font-size: 1.2rem; }
.texte-legal p { margin-top: .6rem; }
.page-404 { max-width: var(--max); margin: 0 auto; padding: calc(var(--entete) + 10vh) var(--g) 14vh; }
.page-404__dessin { width: min(420px, 80vw); margin-bottom: 2rem; fill: none; stroke: var(--encre); stroke-width: 1.6; }
.page-404__dessin .tirets { stroke-dasharray: 6 5; opacity: .5; }
.page-404 .chapeau { margin-top: 1.4rem; }

/* ——— pied de page ——— */
.pied { position: relative; background: var(--ral); color: var(--chaux); overflow: hidden; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied__haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 3rem; max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 130px) var(--g) clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--trait-clair); }
.pied__haut .btn--clair:hover { text-decoration: none; }
.pied__logo { width: 120px; height: auto; margin-bottom: 1.4rem; background: none; }
.pied__appel { max-width: 46rem; font-weight: 280; font-stretch: 118%; font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.03em; }
.pied__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--g); font-size: .9375rem; }
.pied__titre { margin-bottom: .9rem; font: .6875rem var(--mono); font-weight: 400; color: rgba(241, 222, 189, .55); }
.pied__grille ul { display: grid; gap: .3rem; }
.pied__grille .lien-trait { margin-top: .8rem; font-size: .875rem; }
.langue--pied { border-color: var(--trait-clair); }
.langue--pied [aria-current] { background: var(--chaux); color: var(--encre); }
.pied__legal { margin-top: 1.2rem; font-size: .875rem; }
.pied__marque { padding: 0 var(--g); line-height: .8; user-select: none; }
.pied__marque span { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 10.6vw, 13rem); letter-spacing: -.01em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(241, 222, 189, .3); transform: translateY(12%); }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; max-width: var(--max); margin: 0 auto; padding: 1.2rem var(--g) max(1.4rem, env(safe-area-inset-bottom)); font: .6875rem var(--mono); color: rgba(241, 222, 189, .6); border-top: 1px solid var(--trait-clair); position: relative; }
@media (max-width: 860px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied__grille { grid-template-columns: minmax(0, 1fr); } }

/* ——— visionneuse ——— */
.visionneuse { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(22, 26, 28, .985); color: var(--chaux); }
.visionneuse[hidden] { display: none; }
.visionneuse__haut, .visionneuse__bas { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 12px var(--g); }
.visionneuse__jauge { position: relative; width: 140px; height: 1px; background: var(--trait-clair); }
.visionneuse__jauge i { position: absolute; inset: 0; background: var(--chaux); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease); }
.visionneuse__scene { position: relative; display: grid; place-items: center; padding: 0 var(--g); touch-action: pan-y pinch-zoom; overflow: hidden; }
.visionneuse__scene img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: transparent; transition: opacity .35s ease, transform .5s var(--ease); }
.visionneuse__scene img.charge { opacity: 0; transform: scale(.985); }
.visionneuse__legende { font-size: .9375rem; max-width: 40rem; }
.visionneuse button { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; background: none; border: 1px solid var(--trait-clair); color: inherit; cursor: pointer; font: .75rem var(--mono); }
.visionneuse button:hover { background: var(--chaux); color: var(--encre); }
.visionneuse button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.visionneuse__fleches { display: flex; gap: .5rem; }

/* ——— suggestion de langue ——— */
.suggestion-langue { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80; display: flex; align-items: center; gap: 1rem; padding: .6rem .6rem .6rem 1rem; max-width: calc(100vw - 32px); background: var(--encre); color: var(--chaux); font-size: .875rem; transform: translate(-50%, 140%); transition: transform .6s var(--ease); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.suggestion-langue.est-visible { transform: translate(-50%, 0); }
.suggestion-langue a { font-weight: 500; white-space: nowrap; }
.suggestion-langue button { width: 36px; height: 36px; background: none; border: 1px solid var(--trait-clair); cursor: pointer; font-size: 1.1rem; }

/* ——— apparitions génériques ——— */
html.js [data-apparait] { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js [data-apparait].est-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; animation-delay: 0s !important; transition-delay: 0s !important; }
  html.js [data-trace] { clip-path: none; }
  html.js .coupe__svg [pathLength], html.js .cotee__traits path { stroke-dasharray: none; stroke-dashoffset: 0; }
  html.js .coupe__svg :is(.aplat, .acier, .vitre, text, .axe, .bulle, .niveau, .cote, .cote-niv, .cote-niv-demi, .veine, .pierre) { opacity: 1; }
  html.js .coupe__svg .axe { opacity: .5; }
  html.js .cotee :is(.cotee__lib, .cotee__point) { opacity: 1; }
  html.js [data-devoile]::after { display: none; }
}

/* ——— impression de l'esquisse ——— */
@media print {
  .entete, .tiroir, .pied, .intro, .tete-simple, .esq__fil, .esq__nav, .esq__envoi, .joindre, .esq__etape:not([data-etape="4"]) { display: none !important; }
  body { background: #fff; }
  .esq { display: block; padding: 0; }
  .esq__planche { position: static; box-shadow: none; }
  .esq__etape[data-etape="4"] { display: block !important; }
}

.iso-flux { stroke-dasharray: 14 10; animation: flux var(--v, 3s) linear infinite; }
@keyframes flux { to { stroke-dashoffset: -48; } }
.planche__item--simple { grid-column: auto !important; grid-row: auto !important; }
.planche__item--simple img { aspect-ratio: 1 !important; }

/* ——— mode léger (tactile, économie de données, appareil modeste) ——— */
.coupe__voile { display: none; }
html.leger .ouverture { background: var(--chaux); }
html.leger .coupe__cadre { overflow: hidden; }
html.leger .coupe__voile {
  display: block; position: absolute; inset: -2px; z-index: 3; background: var(--chaux);
  border-left: 2px solid var(--ral-2); box-shadow: inset 16px 0 18px -16px rgba(82, 37, 32, .35);
  transform: translate3d(0, 0, 0); will-change: transform; pointer-events: none;
}
html.leger .coupe.est-trace .coupe__voile { animation: voile-scan 1.9s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
@keyframes voile-scan { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(101%, 0, 0); visibility: hidden; } }
html.leger .coupe__svg [pathLength] { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
html.leger .coupe__svg :is(.aplat, .acier, .vitre, text, .bulle, .niveau, .cote, .cote-niv, .cote-niv-demi, .reflet, .veine, .pierre) { opacity: 1; animation: none !important; }
html.leger .coupe__svg .axe { opacity: .5; animation: none !important; }
html.leger .coupe.est-trace .repere { animation-delay: calc(1.6s + var(--n, 0) * 50ms); }
html.leger .coupe__svg .el, html.leger .coupe__svg [class^="fond-"] { transition-duration: .3s; }
html.leger :is(.entete.est-defile, .sommaire, .galerie__outils, .fiche) { -webkit-backdrop-filter: none; backdrop-filter: none; }
html.leger .entete.est-defile { background: rgba(241, 222, 189, .97); }
html.leger :is(.sommaire, .galerie__outils) { background: rgba(241, 222, 189, .98); }
html.leger .fiche { background: var(--papier); }

/* ——— rendu différé des sections loin de l'écran ——— */
:is(.metiers, .avant-apres, .bloc-atelier, .esquisse-mini, .pied, .vsg, .combles, .chauffage, .processus, .joindre) { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* ——— cibles tactiles ——— */
@media (pointer: coarse) {
  .calque, .vues button, .puce span { min-height: 44px; }
  .langue > * { min-width: 40px; min-height: 40px; }
  .reglage input[type="range"] { height: 48px; }
}

/* ——— encoches et coins arrondis ——— */
@supports (padding: max(0px)) {
  .entete { padding-left: max(var(--g), env(safe-area-inset-left)); padding-right: max(var(--g), env(safe-area-inset-right)); }
  .tiroir { padding-left: max(var(--g), env(safe-area-inset-left)); padding-right: max(var(--g), env(safe-area-inset-right)); }
}

/* ——— téléphones en paysage : les scènes collantes passent sur deux colonnes ——— */
@media (max-height: 520px) and (orientation: landscape) {
  .ouverture__texte { padding-top: 12px; }
  .ouverture__texte .titre-xl { font-size: clamp(2rem, 13svh, 3.4rem); }
  .ouverture__texte .chapeau { margin-top: .8rem; font-size: .9375rem; max-width: 40rem; }
  .ouverture__texte .actions { margin-top: 1rem; }
  .tete-page, .tete-simple { padding-top: calc(var(--entete) + 16px); }
  .tete-page .titre-xl, .tete-simple .titre-xl { font-size: clamp(2rem, 14svh, 3.6rem); }
  .coupe__defile { width: min(calc(100% - 2 * var(--g)), calc((100svh - var(--entete) - 24px) * 2)); margin-inline: auto; }
  .vitrine { height: calc(var(--n) * 100vh + 30vh); }
  .vitrine__scene { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: none; align-content: center; gap: 24px; padding-top: calc(var(--entete) + 8px); padding-bottom: 12px; }
  .vitrine__plaque { order: 0; justify-self: end; height: calc(100svh - var(--entete) - 24px); width: auto; aspect-ratio: 1; }
  .vitrine__texte { justify-content: center; gap: 10px; }
  .vitrine__texte .titre-l { display: none; }
  .projet__fiche { display: none; }
  .journal__scene { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); padding-top: calc(var(--entete) + 8px); padding-bottom: 12px; gap: .6rem 1.4rem; }
  .journal__photos { grid-column: 1; grid-row: 1 / span 2; height: calc(100svh - var(--entete) - 24px); max-height: none; }
  .journal__tete, .journal__etapes { grid-column: 2; }
  .journal__etapes { grid-row: 2; align-self: start; }
  .defile-h__item img { max-height: 48svh; }
  .tiroir__nav a { font-size: 1.6rem; padding: .3rem 0; }
  .esq__dessin { max-height: 60svh; }
}

/* ——— intégration SwissRenova : formulaire envoyé directement, photos, mesure d'audience ——— */
.esq__envoi .btn:disabled { opacity: .6; cursor: progress; }
.esq__statut { font-size: .9375rem; color: #b3361b; }
.esq__statut:empty { display: none; }
.esq__merci { margin: 0 0 1.6rem; padding: 1.1rem 1.2rem; border-left: 3px solid var(--encre); background: var(--papier); }
.esq__merci:focus { outline: none; }
.esq__merci p { margin: 0; }
.esq__merci p + p { margin-top: .4rem; color: var(--gris); }
.esq__merci-titre { color: var(--encre); font-size: 1.125rem; }
/* champ piège anti-robots : hors de l'écran, ignoré par les lecteurs d'écran */
.esq__piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.esq-photos { margin-top: 1.6rem; }
.esq-photos__ajout { position: relative; display: inline-flex; cursor: pointer; }
.esq-photos__ajout input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.esq-photos__ajout:focus-within { outline: 2px solid var(--encre); outline-offset: 3px; }
.esq-photos__liste { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.esq-photos__liste:empty { display: none; }
.esq-photos__liste li { position: relative; }
.esq-photos__liste img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--trait); }
.esq-photos__liste button { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--encre); color: var(--chaux); font-size: 1rem; line-height: 1; cursor: pointer; }
.choix-mesure { margin-top: .6rem; padding: .55rem 1rem; font: inherit; font-size: .9375rem; color: var(--encre); background: transparent; border: 1px solid var(--encre); cursor: pointer; }
@media (hover: hover) { .choix-mesure:hover { background: var(--encre); color: var(--chaux); } }
/* adresse e-mail longue : jamais de débordement sur petit écran */
a[href^="mailto:"] { overflow-wrap: anywhere; }
/* listes des pages légales */
.texte-legal ul { margin: .6rem 0 0; padding-left: 1.2rem; list-style: disc; }
.texte-legal li { margin-top: .35rem; }
.texte-legal li::marker { color: var(--gris-clair); }
/* badge « Site créé par Arcelys » (pied de page) */
.pied__bas { align-items: center; }
/* même signature que sur papotage.ch */
.pied .credit-arcelys { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px 9px 16px; border-radius: 999px; background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px rgba(201, 166, 107, .35); font: 400 .86rem/1.2 "SwissRenova Sans", "Helvetica Neue", Arial, sans-serif; font-stretch: 100%; letter-spacing: 0; color: rgba(255, 251, 246, .82); text-decoration: none; transition: box-shadow .3s, background .3s; }
.pied .credit-arcelys:hover, .pied .credit-arcelys:focus-visible { text-decoration: none; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(201, 166, 107, .85); }
.credit-arcelys__logo { flex: none; width: 22px; height: 22px; color: #fffbf6; }
.credit-arcelys b { color: #c9a66b; font-weight: 700; letter-spacing: .02em; }
