/* Bertière Charpente Menuiserie : feuille de styles
   Monde : carnet d'atelier. Papier, vert sauge, ocre ; Fraunces douce + Albert Sans.
   Motif : les traits de construction du logo d'origine, en ocre, qui débordent des tirages. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/fraunces-soft-latin.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(/fonts/fraunces-soft-italic-latin.woff2) format('woff2'); }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/albert-sans-latin.woff2) format('woff2'); }
/* Repli métrique pour limiter le saut de mise en page */
@font-face { font-family: 'Fraunces-repli'; src: local('Georgia'); size-adjust: 103%; ascent-override: 92%; }

:root {
  --papier: #F1EFE6;
  --papier-2: #E7E4D7;
  --blanc: #FBFAF5;
  --sauge-pale: #DDE3D3;
  --sauge: #8A9A78;
  --sauge-txt: #C9D3BC;
  --foret: #2F3D2A;
  --foret-2: #26321F;
  --encre: #23271F;
  --encre-2: #4E5447;
  --action: #3B5131;
  --action-h: #2E4126;
  --ocre: #C4923F;
  --ocre-clair: #DDB46A;
  --ocre-f: #875B12;
  --trait: rgba(35, 39, 31, .14);

  --serif: 'Fraunces', 'Fraunces-repli', Georgia, serif;
  --sans: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r: 3px;
  --ombre: 0 18px 40px -22px rgba(35, 39, 31, .55), 0 2px 6px -2px rgba(35, 39, 31, .18);
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; color: var(--encre); background-color: var(--papier);
  /* grain de papier très léger */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .15 0 0 0 0 .12 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font: 400 1.0625rem/1.65 var(--sans); font-kerning: normal;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ocre-clair); color: var(--encre); }
:focus-visible { outline: 2px solid var(--ocre-f); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p a, li a, .faq__rep a, address a { color: var(--action); text-decoration-color: var(--ocre); }
p a:hover, li a:hover, .faq__rep a:hover { color: var(--encre); }
h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .5em;
  font-variation-settings: 'SOFT' 100, 'WONK' 0; text-wrap: balance; color: var(--encre);
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem); font-weight: 450; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { padding-left: 1.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.petit { font-size: .875rem; color: var(--encre-2); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--encre); color: var(--papier); padding: 10px 16px; }
.skip:focus { left: 8px; }

/* ---------- À compléter ---------- */
.a-completer {
  display: inline-block; font: 600 .8125rem/1.4 var(--sans); color: var(--ocre-f);
  background: rgba(196, 146, 63, .12); border: 1px dashed var(--ocre); border-radius: var(--r);
  padding: 3px 8px; letter-spacing: .01em;
}
.section--foret .a-completer, .foot .a-completer { color: var(--ocre-clair); background: rgba(221, 180, 106, .1); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: 10px 20px; border-radius: var(--r); border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .ico { width: 1.05em; height: 1.05em; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.btn--bloc { width: 100%; }
.btn--plein { background: var(--action); color: var(--blanc); box-shadow: 0 8px 18px -10px rgba(46, 65, 38, .8); }
.btn--plein:hover { background: var(--action-h); transform: translateY(-1px); }
.btn--trait { border-color: rgba(35, 39, 31, .35); color: var(--encre); background: transparent; }
.btn--trait:hover { border-color: var(--encre); background: rgba(255, 255, 255, .4); }
.btn--ocre { background: var(--ocre); color: var(--encre); }
.btn--ocre:hover { background: var(--ocre-clair); transform: translateY(-1px); }
.lien {
  display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--action);
  text-decoration: underline; text-decoration-color: var(--ocre); text-underline-offset: .3em;
}
.lien .ico { transition: transform .25s var(--ease); }
.lien:hover .ico { transform: translateX(4px); }

/* ---------- Logo typographique ---------- */
.logo { display: inline-grid; text-decoration: none; color: var(--encre); position: relative; padding: 4px 0 4px 14px; line-height: 1; }
.logo::before, .logo::after { content: ''; position: absolute; background: var(--ocre); }
.logo::before { left: 0; top: -6px; bottom: -6px; width: 1px; }          /* trait vertical */
.logo::after { left: -8px; right: -10px; top: 53%; height: 1px; opacity: .9; } /* trait horizontal */
.logo__nom { font: 600 1.7rem/1 var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 0; letter-spacing: -.01em; padding-bottom: 7px; }
.logo__metier { white-space: nowrap; font: 600 .625rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--encre-2); padding-top: 6px; }
.logo__metier i { font-style: normal; color: var(--ocre-f); }
.logo--clair { color: var(--papier); }
.logo--clair .logo__metier { color: var(--sauge-txt); }
.logo--clair .logo__metier i { color: var(--ocre-clair); }

/* ---------- En-tête ---------- */
.head { position: sticky; top: 0; z-index: 50; background: rgba(241, 239, 230, .94); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.head.is-scrolled { border-bottom-color: var(--trait); box-shadow: 0 10px 24px -20px rgba(35, 39, 31, .6); }
.head__in { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 10px; font-weight: 500; font-size: .95rem; white-space: nowrap; text-decoration: none; color: var(--encre); border-radius: var(--r); }
.nav a:hover { color: var(--action); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ocre); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.nav__extra { display: none; }
.head__actions { display: flex; align-items: center; gap: 14px; }
.head__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.head__tel .ico { color: var(--action); }
.head__devis { min-height: 42px; padding: 8px 18px; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--trait); background: transparent; border-radius: var(--r); padding: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--encre); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .head__tel span { display: none; }
  .head__tel { width: 46px; height: 46px; justify-content: center; border: 1px solid var(--trait); border-radius: var(--r); }
  .nav a { padding: 8px 7px; font-size: .92rem; }
}
@media (max-width: 1020px) {
  .burger { display: block; }
  .head__in { min-height: 68px; gap: 12px; }
  .nav { position: fixed; inset: 68px 0 0; background: var(--papier); margin: 0; padding: 18px var(--pad) 120px;
    overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .35s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { font: 500 1.35rem/1.2 var(--serif); padding: 14px 0; border-bottom: 1px solid var(--trait); border-radius: 0; }
  .nav__extra { display: grid; gap: 12px; margin-top: 24px; }
  .nav__adr { font-size: .9rem; color: var(--encre-2); margin: 4px 0 0; }
  .head__actions { margin-left: auto; }
  .logo__nom { font-size: 1.45rem; }
}
@media (max-width: 420px) { .head__devis { display: none; } }

/* ---------- Fil d'Ariane ---------- */
.fil ol { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--encre-2); }
.fil li + li::before { content: '/'; margin-right: 6px; color: var(--ocre); }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }

/* ---------- Tirages photo (le motif) ---------- */
.tirage { margin: 0; background: var(--blanc); padding: clamp(8px, 1vw, 12px); padding-bottom: 0; box-shadow: var(--ombre); position: relative; }
.tirage img { width: 100%; }
.tirage figcaption { font: italic 400 .9375rem/1.3 var(--serif); color: var(--encre-2); padding: 10px 2px 12px; }
.tirage:not(:has(figcaption)) { padding-bottom: clamp(8px, 1vw, 12px); }
.tirage--penche { transform: rotate(1.4deg); }
.tirage--hero { z-index: 1; }
/* traits de construction : débordent du cadre comme sur le logo d'origine */
.traits { position: relative; }
.traits::before, .traits::after { content: ''; position: absolute; background: var(--ocre); pointer-events: none; z-index: 0; }
.traits > .tirage { position: relative; z-index: 1; }
.traits::before { left: -28px; right: -28px; top: 22%; height: 1px; }
.traits::after { top: -28px; bottom: -28px; left: 16%; width: 1px; }

/* ---------- Héros ---------- */
.hero { padding: clamp(28px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.hero__in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); max-width: 54ch; color: var(--encre-2); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__media { position: relative; }
.hero + .section { padding-top: clamp(40px, 5vw, 72px); }
.hero .note { margin-top: 18px; }
.page-hero { padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 6vw, 80px); }
.page-hero .hero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
@media (max-width: 900px) {
  .hero__in, .page-hero .hero__in { grid-template-columns: 1fr; }
  .hero__media { margin: 0 6px; }
  .traits::before { left: -12px; right: -12px; } .traits::after { top: -14px; bottom: -14px; }
}

/* Réassurance */
.rassure { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9375rem; color: var(--encre-2); }
.rassure li { display: inline-flex; gap: 6px; align-items: center; }
.rassure .ico { color: var(--action); }

/* Note Google */
.note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; text-decoration: none; font-size: .9375rem; color: var(--encre); }
.note__etoiles { display: inline-flex; color: var(--ocre); }
.note__etoiles .ico { width: 1em; height: 1em; }
.note small { color: var(--encre-2); font-size: .8125rem; }
.note:hover strong { text-decoration: underline; text-decoration-color: var(--ocre); }
.note--clair { color: var(--papier); }
.note--clair small { color: var(--sauge-txt); }
.note--clair .note__etoiles { color: var(--ocre-clair); }

/* ---------- Sections ---------- */
.section { padding: var(--sec) 0; }
.section--sauge { background: var(--sauge-pale); }
.section--papier { background: var(--papier-2); }
.section--foret { background: var(--foret); color: var(--papier); }
.section--foret h2, .section--foret h3 { color: var(--papier); }
.section--foret p { color: var(--sauge-txt); }
.section--foret p a { color: var(--ocre-clair); }
.tete { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.tete p { color: var(--encre-2); font-size: 1.125rem; }
.tete--ligne { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.tete--ligne h2 { margin: 0; }

/* Planches métiers (photo + texte, alternées) */
.planche { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.planche + .planche { margin-top: clamp(56px, 8vw, 110px); }
.planche--inv .planche__media { order: 2; }
.planche__media { display: block; }
.planche__media .tirage { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.planche:hover .planche__media .tirage { transform: translateY(-4px) rotate(-.4deg); }
.planche h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.planche h3 a { text-decoration: none; }
.planche h3 a:hover { color: var(--action); }
.planche__txt > p { color: var(--encre-2); }
.coches { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.coches li { display: flex; gap: 10px; align-items: flex-start; }
.coches .ico { color: var(--action); margin-top: .25em; }
@media (max-width: 820px) {
  .planche { grid-template-columns: 1fr; }
  .planche--inv .planche__media { order: 0; }
}

/* Mur de photos */
.mur { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mur__a { position: relative; display: block; overflow: hidden; background: var(--blanc); padding: 8px; box-shadow: var(--ombre); text-decoration: none; }
.mur__a img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.mur__a--grand { grid-column: span 2; }
.mur__a--grand img { aspect-ratio: auto; }
.mur__a span { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 26px 14px 10px; color: var(--blanc);
  font: italic 400 .9375rem/1.2 var(--serif); background: linear-gradient(transparent, rgba(20, 24, 18, .72)); }
.mur__a:hover img { transform: scale(1.04); }
@media (max-width: 800px) {
  .mur { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mur__a { padding: 5px; }
  .mur__a--grand { grid-column: span 2; }
  .mur__a span { left: 5px; right: 5px; bottom: 5px; font-size: .875rem; padding: 22px 10px 8px; }
}

/* Deux colonnes */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--inv { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
.split__txt > p { color: var(--encre-2); }
.split--pro { align-items: start; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split--inv, .split--pro { grid-template-columns: 1fr; } .split--inv .split__media { order: 2; } }

/* Trajets */
.trajets { list-style: none; padding: 0; margin: 24px 0 10px; font-variant-numeric: tabular-nums; }
.trajets li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--trait); }
.trajets__pt { flex: 1; border-bottom: 1px dotted rgba(35, 39, 31, .3); transform: translateY(-4px); }
.trajets li span:last-child { color: var(--encre-2); white-space: nowrap; }
.trajets li.is-actif { font-weight: 700; }
.trajets li.is-actif span:last-child { color: var(--action); }
.liens-villes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.liens-villes a { padding: 6px 12px; border: 1px solid var(--trait); border-radius: 99px; text-decoration: none; color: var(--encre); font-size: .9375rem; background: rgba(255, 255, 255, .35); }
.liens-villes a:hover { border-color: var(--action); color: var(--action); }

/* Bloc pros */
.pro-liste { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(201, 211, 188, .25); }
.pro-liste li { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(201, 211, 188, .25); }
.pro-liste .ico { width: 30px; height: 30px; color: var(--ocre-clair); }
.pro-liste strong { font: 500 1.35rem/1.2 var(--serif); font-variation-settings: 'SOFT' 100; display: block; }
.pro-liste span { color: var(--sauge-txt); }

/* Guides */
.guides-liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.guides-liste a { display: block; padding: 22px 0; border-top: 2px solid var(--encre); text-decoration: none; height: 100%; }
.guides-liste strong { display: block; font: 500 1.35rem/1.2 var(--serif); font-variation-settings: 'SOFT' 100; margin-bottom: 8px; }
.guides-liste span { color: var(--encre-2); }
.guides-liste a:hover strong { color: var(--action); text-decoration: underline; text-decoration-color: var(--ocre); text-underline-offset: .2em; }
@media (max-width: 820px) { .guides-liste { grid-template-columns: 1fr; } }

/* FAQ */
.faq__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq__liste { border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 500 1.2rem/1.3 var(--serif); font-variation-settings: 'SOFT' 100; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--action); border-bottom: 1.5px solid var(--action); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--action); }
.faq__rep { padding: 0 0 18px; color: var(--encre-2); max-width: 68ch; }
@media (max-width: 860px) { .faq__in { grid-template-columns: 1fr; } }

/* Bandeau d'appel final */
.appel { background: var(--foret); color: var(--papier); padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.appel::before, .appel::after { content: ''; position: absolute; background: var(--ocre); opacity: .55; }
.appel::before { left: 0; right: 0; top: 38px; height: 1px; }
.appel::after { top: 0; bottom: 0; right: 5%; width: 1px; }
.appel__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; position: relative; z-index: 1; }
.appel h2 { color: var(--papier); }
.appel p { color: var(--sauge-txt); max-width: 56ch; margin: 0; }
.appel__actions { display: grid; gap: 16px; justify-items: start; }
.appel__tel { display: inline-flex; gap: 10px; align-items: center; font: 500 1.5rem/1 var(--serif); color: var(--papier); text-decoration: none; font-variant-numeric: tabular-nums; }
.appel__tel .ico { color: var(--ocre-clair); }
@media (max-width: 820px) { .appel__in { grid-template-columns: 1fr; } .appel::after { display: none; } }

/* ---------- Pages intérieures ---------- */
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.chapo { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); color: var(--encre-2); max-width: 60ch; }
.corps { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.15rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; font-size: 1.35rem; }
.prose p, .prose li { color: var(--encre-2); }
.prose strong { color: var(--encre); }
.prose ul { margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--ocre); }
.prose .tirage { margin: 2em 0; }
.prose figure.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 2em 0; }
.encart { position: sticky; top: 104px; background: var(--blanc); padding: 26px; box-shadow: var(--ombre); display: grid; gap: 12px; border-top: 3px solid var(--action); }
.encart__t { font: 500 1.5rem/1.2 var(--serif); font-variation-settings: 'SOFT' 100; margin: 0; }
.encart p { margin: 0; color: var(--encre-2); }
.encart__tel { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; justify-content: center; padding: 6px; font-variant-numeric: tabular-nums; }
.encart .note { font-size: .875rem; }
.encart__zone { font-size: .875rem; display: flex; gap: 6px; align-items: flex-start; }
.encart__zone .ico { margin-top: .15em; color: var(--action); }
@media (max-width: 960px) { .corps { grid-template-columns: 1fr; } .encart { position: static; } }

.etapes { list-style: none; padding: 0; margin: 1.4em 0; counter-reset: e; display: grid; gap: 0; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 52px 1fr; gap: 6px 14px; padding: 16px 0; border-top: 1px solid var(--trait); }
.etapes li::before { content: counter(e); font: 400 2rem/1 var(--serif); color: var(--ocre-f); font-variant-numeric: lining-nums; }
.etapes strong { display: block; color: var(--encre); }

.voisins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.voisin { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; background: var(--blanc); padding: 10px 18px 10px 10px; text-decoration: none; box-shadow: var(--ombre); transition: transform .3s var(--ease); }
.voisin img { aspect-ratio: 4 / 3; object-fit: cover; }
.voisin strong { display: block; font: 500 1.2rem/1.2 var(--serif); font-variation-settings: 'SOFT' 100; margin-bottom: 4px; }
.voisin span { font-size: .9375rem; color: var(--encre-2); }
.voisin .ico { color: var(--action); }
.voisin:hover { transform: translateY(-3px); }
@media (max-width: 760px) { .voisins { grid-template-columns: 1fr; } .voisin { grid-template-columns: 96px 1fr auto; } }

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.galerie .tirage { cursor: zoom-in; }
.galerie .tirage img { aspect-ratio: 4 / 3; object-fit: cover; }
.galerie-groupe + .galerie-groupe { margin-top: clamp(56px, 7vw, 96px); }
.galerie-groupe > p { color: var(--encre-2); max-width: 64ch; }

.fiche-id { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 1.2em 0 0; border-top: 1px solid var(--trait); }
.fiche-id dt, .fiche-id dd { padding: 11px 0; border-bottom: 1px solid var(--trait); margin: 0; }
.fiche-id dt { font-weight: 600; padding-right: 28px; }
.fiche-id dd { color: var(--encre-2); }
@media (max-width: 560px) { .fiche-id { grid-template-columns: 1fr; } .fiche-id dt { border-bottom: 0; padding-bottom: 0; } }

/* ---------- Formulaire ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--blanc); padding: clamp(22px, 3vw, 36px); box-shadow: var(--ombre); border-top: 3px solid var(--action); }
.form__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form__pleine { grid-column: 1 / -1; }
@media (max-width: 560px) { .form__grille { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.form label small { font-weight: 400; color: var(--encre-2); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--encre); background: var(--papier);
  border: 1px solid rgba(35, 39, 31, .28); border-radius: var(--r); padding: 12px 14px; min-height: 48px; caret-color: var(--action);
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(59, 81, 49, .18); }
.form input:user-invalid, .form textarea:user-invalid { border-color: #A3321F; }
.form ::placeholder { color: #6E7366; }
.form__rgpd { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--encre-2); }
.form__rgpd input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; accent-color: var(--action); flex: none; }
.form__rgpd label { font-weight: 400; font-size: .875rem; margin: 0; }
.form__hp { position: absolute; left: -5000px; }
.form__msg { margin-top: 14px; padding: 12px 14px; border-radius: var(--r); font-weight: 600; }
.form__msg--ok { background: var(--sauge-pale); color: var(--action-h); }
.form__msg--err { background: #F6E3DC; color: #8A2A18; }
.form button[disabled] { opacity: .65; cursor: progress; }
.coord { display: grid; gap: 22px; }
.coord h2 { font-size: 1.6rem; }
.coord__l { display: flex; gap: 14px; align-items: flex-start; }
.coord__l > .ico { width: 22px; height: 22px; color: var(--action); margin-top: 3px; }
.coord__l strong { display: block; }
.coord__l a { font-weight: 600; }
.coord__l p { margin: 0; color: var(--encre-2); }

/* ---------- Pied de page ---------- */
.foot { background: var(--foret-2); color: var(--sauge-txt); padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .9375rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot__brand p { margin-top: 18px; max-width: 34ch; }
.foot__h { font: 600 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ocre-clair); margin: 6px 0 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--papier); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--ocre-clair); }
.foot address { font-style: normal; line-height: 1.8; }
.foot__maps { display: inline-flex; gap: 6px; align-items: center; }
.foot__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(201, 211, 188, .2); font-size: .8125rem; }
.foot__bas p { margin: 0; }
.foot__liens { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- Barre mobile ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mbar { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(241, 239, 230, .97); border-top: 1px solid var(--trait);
    box-shadow: 0 -10px 24px -18px rgba(35, 39, 31, .6); transition: transform .3s var(--ease); }
  .mbar.is-hidden { transform: translateY(110%); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--r); font-weight: 700; text-decoration: none; }
  .mbar__tel { border: 1.5px solid var(--action); color: var(--action); }
  .mbar__devis { background: var(--action); color: var(--blanc); }
  .nav-open .mbar { display: none; }
}

/* ---------- Visionneuse ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(20, 24, 18, .92); display: grid; place-items: center; padding: 24px; }
.lb[hidden] { display: none; }
.lb img { max-height: 82vh; width: auto; max-width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); border: 8px solid var(--blanc); }
.lb__leg { color: var(--papier); font: italic 400 1rem/1.3 var(--serif); margin: 12px 0 0; text-align: center; }
.lb__close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--papier); color: var(--encre); cursor: pointer; display: grid; place-items: center; }

/* ---------- Mouvement : un seul moment, l'arrivée des tirages ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .tirage--hero { animation: pose 1.1s var(--ease) both .1s; }
  .hero .traits::before { animation: trace-h 1.2s var(--ease) both .45s; transform-origin: left; }
  .hero .traits::after { animation: trace-v 1.2s var(--ease) both .55s; transform-origin: top; }
  @keyframes pose { from { transform: translateY(16px) rotate(-1.4deg); filter: blur(3px) saturate(.6); } to { transform: none; filter: none; } }
  @keyframes trace-h { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes trace-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Barre de défilement */
html { scrollbar-color: var(--sauge) var(--papier-2); }
@media print { .head, .mbar, .appel, .foot { display: none; } body { background: #fff; } }
