/* Lodgeyard — feuille de style unique, v4 « atelier ». Aucune ressource externe (RGPD), aucun script (CSP).
   Direction : planche d'architecte. Papier chaud, encre, filets fins, angles nets, une seule couleur d'accent (Corten). */
:root {
  --paper: #f4f1eb;
  --bone: #e9e4da;
  --white: #fbfaf7;
  --ink: #141615;
  --ink-2: #2c2f2c;
  --stone: #6c685f;
  --line: #d3ccbf;
  --line-2: #e3ded4;
  --corten: #a34e28;
  --corten-2: #873e1d;
  --spruce: #17231f;
  --display: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mesure: 1280px;
  --gouttiere: 16px;
}
@media (min-width: 760px) { :root { --gouttiere: 40px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--corten); }
:focus-visible { outline: 2px solid var(--corten); outline-offset: 3px; }
::selection { background: var(--corten); color: var(--white); }
.conteneur { width: 100%; max-width: var(--mesure); margin: 0 auto; padding: 0 var(--gouttiere); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 14px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(244, 241, 235, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .entete { background: rgba(244, 241, 235, .82); backdrop-filter: blur(10px) saturate(1.2); } }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo svg { width: 30px; height: 30px; }
.logo span { font: 600 .92rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; padding-left: .1em; }
.logo:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav .liens { display: none; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--corten); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .langue { color: var(--stone); }
.nav a.bouton { padding: 14px 20px; border: 0; color: var(--white); }
.nav a.bouton:hover { color: var(--white); }
.nav a.bouton::after { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: 10px 0; display: flex; align-items: center; gap: 10px; }
.menu summary::before { content: ""; width: 18px; height: 7px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu .panneau { position: absolute; right: 0; top: calc(100% + 18px); background: var(--white); border: 1px solid var(--line); padding: 8px 24px 24px; display: grid; min-width: 280px; box-shadow: 0 24px 48px rgba(20, 22, 21, .1); }
.menu .panneau a { padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: .78rem; }
.menu .panneau a.cta { margin-top: 18px; background: var(--ink); color: var(--white); text-align: center; padding: 15px; border: 0; }
.menu .panneau a.cta:hover { background: var(--corten); color: var(--white); }
@media (max-width: 599px) { .nav a.bouton { display: none; } .nav { gap: 18px; } .logo span { font-size: .84rem; letter-spacing: .26em; } }
@media (min-width: 1180px) { .nav .liens { display: flex; } .menu { display: none; } }

/* Boutons et liens d'action */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 14px; background: var(--ink); color: var(--white); text-decoration: none; border: 0; border-radius: 0; padding: 18px 28px; font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .2s ease; }
.bouton::after { content: "→"; font-size: 1rem; letter-spacing: 0; transition: transform .2s ease; }
.bouton:hover { background: var(--corten); color: var(--white); }
.bouton:hover::after { transform: translateX(4px); }
.bouton.clair { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bouton.clair:hover { background: var(--ink); color: var(--white); }
.bouton.plein { display: flex; width: 100%; }
.lien-fleche { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid currentColor; white-space: nowrap; }
.lien-fleche::after { content: "→"; font-size: .95rem; letter-spacing: 0; transition: transform .2s ease; }
.lien-fleche:hover::after { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Typographie */
.surtitre { display: flex; align-items: center; gap: 14px; color: var(--stone); font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 22px; }
.surtitre::before { content: ""; width: 32px; height: 1px; background: var(--corten); flex-shrink: 0; }
.surtitre b { color: var(--corten); font-weight: 600; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0 0 18px; letter-spacing: -.012em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.95rem, 3.5vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.4rem; line-height: 1.2; }
.chapo { font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 34px; max-width: 34em; }
.intro { max-width: 40em; color: var(--stone); margin: 0 0 32px; }
.note { font-size: .84rem; color: var(--stone); }
strong { color: var(--ink); font-weight: 600; }

/* Héros */
.heros { padding: 56px 0 64px; }
.heros .conteneur { display: grid; gap: 40px; align-items: end; }
@media (min-width: 980px) { .heros { padding: 88px 0 96px; } .heros .conteneur { grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.heros h1 { max-width: 12.5em; }
.heros .conteneur.bande { display: block; margin-top: 56px; }

/* Visuels */
.visuel { position: relative; margin: 0; background: var(--bone); }
.visuel img { width: 100%; }
.visuel figcaption { position: absolute; right: 16px; top: 14px; color: var(--stone); font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.visuel.plan { background: var(--white); }
.scene3d figcaption { top: auto; bottom: 14px; }

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .chiffres { grid-template-columns: repeat(4, 1fr); } }
.chiffres div { padding: 26px 24px 28px 0; }
.chiffres div + div { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 859px) { .chiffres div:nth-child(3) { padding-left: 0; border-left: 0; } .chiffres div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.chiffres strong { display: block; font: 400 clamp(1.5rem, 2.4vw, 2.05rem)/1.12 var(--display); color: var(--ink); margin-bottom: 8px; }
.chiffres span { display: block; font-size: .84rem; line-height: 1.5; color: var(--stone); }

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 980px) { .section { padding: 120px 0; } }
.section + .section { border-top: 1px solid var(--line); }
.section.sable { background: var(--bone); border-top: 0; }
.section.sable + .section, .section + .section.sable { border-top: 0; }
.section.foret { background: var(--spruce); color: #cfd3cb; border-top: 0; }
.section.foret h2, .section.foret h3 { color: var(--white); }
.section.foret .intro, .section.foret p { color: #b9beb4; }
.section.foret .lien-fleche { color: var(--white); }
.section.foret .lien-fleche:hover { color: #e3a07c; }
.entete-section { display: grid; gap: 22px 48px; align-items: end; margin-bottom: 56px; }
.entete-section .intro { margin: 0; }
@media (min-width: 980px) {
  .entete-section { grid-template-columns: 1fr auto; }
  .entete-section > div { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 64px; align-items: end; }
  .entete-section > div > .surtitre { grid-column: 1 / -1; }
  .entete-section h2 { margin: 0; }
}
.grille { display: grid; gap: 40px; }
@media (min-width: 760px) { .grille.deux { grid-template-columns: repeat(2, 1fr); gap: 64px; } .grille.trois { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .grille.trois { grid-template-columns: repeat(3, 1fr); gap: 48px 40px; } }
.carte { border-top: 1px solid var(--ink); padding-top: 22px; }
.carte h3 { margin-bottom: 10px; font-size: 1.32rem; }
.carte p { margin: 0; color: var(--stone); }
.section.foret .carte { border-top-color: rgba(251, 250, 247, .32); }
.numero { display: block; font: 400 .95rem/1 var(--display); color: var(--corten); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.section.foret .numero { color: #e3a07c; }
.pastille { display: inline-block; font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--corten); }

/* Annonces (cartes modèles) */
.annonces { display: grid; gap: 56px 32px; }
@media (min-width: 700px) { .annonces { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .annonces.trois { grid-template-columns: repeat(3, 1fr); } }
.annonce { display: flex; flex-direction: column; }
.annonce-visuel { position: relative; display: block; background: var(--bone); overflow: hidden; }
.annonce-visuel img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.annonce:hover .annonce-visuel img { transform: scale(1.03); }
.annonce-visuel .tag { position: absolute; left: 0; top: 0; background: var(--paper); color: var(--ink); font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding: 8px 12px; }
.annonce-visuel .mention { display: none; }
.annonce-corps { padding: 22px 0 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.annonce-corps h3 { margin: 0; font-size: 1.75rem; }
.annonce-corps h3 a { color: inherit; text-decoration: none; }
.annonce-corps h3 a:hover { color: var(--corten); }
.annonce-corps .accroche { margin: 0; color: var(--stone); font-size: .98rem; }
.faits { list-style: none; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 28px; }
.faits li span { display: block; font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--stone); margin-bottom: 2px; }
.faits li strong { font-size: .95rem; font-weight: 500; }
.prix-ligne { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 4px; }
.prix-ligne .prix { font: 400 1.08rem/1.3 var(--display); color: var(--ink); }
.prix-ligne .prix small { display: block; font: 400 .74rem/1.4 var(--sans); color: var(--stone); margin-top: 2px; }
.resume .prix-note { margin: -8px 0 16px; }
.legende-grille { margin: 40px 0 0; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }

/* Fiche modèle */
.fil { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); padding-top: 28px; }
.fil a { color: var(--stone); text-decoration: none; }
.fil a:hover { color: var(--corten); }
.fiche { display: grid; gap: 40px; padding-top: 28px; padding-bottom: 80px; }
@media (min-width: 980px) { .fiche { grid-template-columns: 1.4fr .9fr; align-items: start; gap: 64px; } }
.galerie { display: grid; gap: 16px; }
.resume { background: var(--white); border: 1px solid var(--line); padding: 34px; }
@media (min-width: 980px) { .resume { position: sticky; top: 104px; } }
.resume h1 { font-size: clamp(2.3rem, 4vw, 3.3rem); margin-bottom: 12px; }
.resume .accroche { color: var(--stone); margin: 0 0 26px; }
.resume dl { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0 0 26px; border-top: 1px solid var(--ink); }
.resume dt, .resume dd { padding: 13px 0; border-bottom: 1px solid var(--line); }
.resume dt { color: var(--stone); font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding-right: 20px; align-self: stretch; display: flex; align-items: center; }
.resume dd { margin: 0; font-weight: 500; color: var(--ink); text-align: right; }
.resume .prix { font: 400 1.5rem/1.3 var(--display); color: var(--ink); margin: 0 0 20px; }
.resume .note { margin: 16px 0 0; }
.texte-modele p { max-width: 42em; }

/* Tableaux */
table { width: 100%; border-collapse: collapse; }
.tableau { overflow-x: auto; margin-bottom: 40px; border-top: 1px solid var(--ink); }
.tableau caption { text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); padding: 0 0 14px; caption-side: top; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 15px 18px 15px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.tableau th { width: 34%; color: var(--stone); font-weight: 500; }
.tableau.comparatif th, .tableau.comparatif td { width: auto; white-space: nowrap; }
.tableau.comparatif thead th { font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.tableau.comparatif td:first-child { white-space: normal; }
.tableau.comparatif td:first-child a { font: 400 1.15rem/1.3 var(--display); text-decoration: none; }
@media (max-width: 699px) { .tableau th { width: 42%; } }
.tableau.regles th, .tableau.regles td { white-space: normal; width: auto; }
.tableau.regles thead th { font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.tableau.regles tbody th { width: 22%; color: var(--ink); font-family: var(--display); font-size: 1.05rem; font-weight: 400; }
.tableau.regles td:last-child { color: var(--stone); font-size: .86rem; width: 22%; }
@media (max-width: 699px) {
  .tableau.regles thead { display: none; }
  .tableau.regles tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tableau.regles th, .tableau.regles td, .tableau.regles tbody th, .tableau.regles td:last-child { display: block; width: auto; border: 0; padding: 3px 0; }
}
.tableau.duel th, .tableau.duel td { white-space: normal; width: 33%; }
.tableau.duel thead th { font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.tableau.duel td:last-child { color: var(--ink); font-weight: 500; }
@media (max-width: 699px) { .tableau.duel th, .tableau.duel td { padding: 12px 10px 12px 0; font-size: .9rem; hyphens: auto; } }

/* Listes et encadrés */
.liste-coche { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.liste-coche li { padding: 16px 0 16px 36px; position: relative; border-bottom: 1px solid var(--line); }
.liste-coche li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 18px; height: 1px; background: var(--corten); }
.liste-plus { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.liste-plus li { padding-left: 26px; position: relative; }
.liste-plus li::before { content: "+"; position: absolute; left: 4px; top: -1px; color: var(--corten); }
.liste-point { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
.encadre { background: var(--white); border-left: 2px solid var(--corten); padding: 22px 26px; }
.encadre p { margin: 0; }
.encadre p + p { margin-top: 8px; }

/* Étapes : de l'usine au terrain */
.etapes-resume { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px 24px; }
@media (min-width: 700px) { .etapes-resume { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .etapes-resume { grid-template-columns: repeat(4, 1fr); } }
.etapes-resume li { display: flex; flex-direction: column; }
.etapes-resume img { background: var(--bone); }
.etapes-resume .corps { padding: 18px 0 0; }
.etapes-resume h3 { font-size: 1.2rem; margin-bottom: 8px; }
.etapes-resume p { margin: 0; color: var(--stone); font-size: .94rem; }
.etapes-resume .num { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--corten); margin-bottom: 8px; }

.chronologie { list-style: none; padding: 0; margin: 0; }
.chronologie > li { display: grid; gap: 24px; padding: 48px 0; border-top: 1px solid var(--line); }
.chronologie > li:first-child { border-top-color: var(--ink); }
@media (min-width: 860px) { .chronologie > li { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.chronologie h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.chronologie .num { font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--corten); margin: 0 0 10px; }
.chronologie p { margin: 0 0 14px; }
.recu { background: var(--white); border-left: 2px solid var(--corten); padding: 14px 18px; font-size: .95rem; }

/* Questions */
.faq .conteneur { display: grid; gap: 32px; }
@media (min-width: 980px) { .faq .conteneur { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; font: 400 1.18rem/1.35 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.5rem/1 var(--sans); color: var(--corten); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--stone); margin: 14px 0 0; max-width: 42em; }

/* Formulaire */
.devis-grille { display: grid; gap: 40px; }
@media (min-width: 980px) { .devis-grille { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .devis-texte { position: sticky; top: 120px; } }
.formulaire { background: var(--white); border: 1px solid var(--line); padding: 28px 22px; display: grid; gap: 22px; }
@media (min-width: 700px) { .formulaire { grid-template-columns: repeat(2, 1fr); padding: 48px; gap: 28px 32px; } .formulaire .large { grid-column: 1 / -1; } }
.champ label { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.champ .aide { font-weight: 500; letter-spacing: .06em; text-transform: none; }
.champ input, .champ select, .champ textarea { width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0 12px; }
.champ select { appearance: none; -webkit-appearance: none; background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 6px center / 6px 6px no-repeat, linear-gradient(135deg, var(--ink) 50%, transparent 50%) right 0 center / 6px 6px no-repeat; padding-right: 24px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--corten); }
.champ textarea { min-height: 120px; resize: vertical; border: 1px solid var(--line); padding: 12px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mention { font-size: .84rem; color: var(--stone); margin: 0; }

/* Pages de texte */
.texte { max-width: 820px; padding-top: 72px; padding-bottom: 96px; }
.texte h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 32px; }
.texte h2 { font-size: 1.55rem; margin-top: 48px; }
.texte ul { padding-left: 20px; }

/* Pied de page */
.pied { background: var(--spruce); color: #b9beb4; padding: 88px 0 40px; font-size: .9rem; }
.pied .conteneur { display: grid; gap: 40px; }
@media (min-width: 860px) { .pied .conteneur { grid-template-columns: 1.6fr 1fr 1fr; gap: 64px; } }
.pied a { color: #e9e6df; text-decoration: none; }
.pied a:hover { color: #e3a07c; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pied ul li a { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.pied p { margin: 0 0 12px; max-width: 34em; }
.pied .marque { display: flex; align-items: center; gap: 14px; color: var(--white); font: 600 1rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; margin-bottom: 24px; }
.pied .marque svg { width: 34px; height: 34px; }
.pied .bas { grid-column: 1 / -1; border-top: 1px solid rgba(251, 250, 247, .16); padding-top: 24px; margin-top: 16px; color: #8e948b; font-size: .78rem; max-width: none; }

/* Maquette 3D : maquette blanche d'architecte qui se déplie (CSS pur, aucun script) */
.scene3d { height: clamp(320px, 42vw, 540px); perspective: 1700px; perspective-origin: 50% 18%; background: linear-gradient(180deg, #ece8e0 0%, #e4dfd5 100%); overflow: hidden; }
.scene3d .echelle { position: absolute; inset: 0; transform-style: preserve-3d; }
.scene3d .monde { position: absolute; left: 50%; top: 54%; width: 320px; height: 240px; margin: -120px 0 0 -160px; transform-style: preserve-3d; transform: rotateX(60deg) rotateZ(-34deg); animation: lg-tourne 28s ease-in-out infinite alternate; }
@keyframes lg-tourne { from { transform: rotateX(60deg) rotateZ(-44deg); } to { transform: rotateX(55deg) rotateZ(-14deg); } }
.scene3d .sol { position: absolute; left: -150px; top: -120px; width: 620px; height: 480px; transform: translateZ(-2px); background: #dcd5c8; box-shadow: inset 0 0 0 1px rgba(20, 22, 21, .1), 0 0 0 10px #d3ccbe; }
.scene3d .ombre { position: absolute; left: -22px; top: -16px; width: 364px; height: 292px; transform: translateZ(-1px); background: radial-gradient(closest-side, rgba(20, 22, 21, .22), rgba(20, 22, 21, 0)); }

.scene3d .boite { position: absolute; left: 0; width: var(--l); height: var(--p); transform-style: preserve-3d; }
.scene3d .boite .f { position: absolute; left: 0; top: 0; background-color: #fbfaf7; box-shadow: inset 0 0 0 1px rgba(20, 22, 21, .22); }
.scene3d .boite .dessus { width: var(--l); height: var(--p); transform: translateZ(var(--h)); background: #f1eee8; }
.scene3d .boite .avant { width: var(--l); height: var(--h); top: calc(var(--p) - var(--h)); transform-origin: bottom; transform: rotateX(-90deg); }
.scene3d .boite .arriere { width: var(--l); height: var(--h); transform-origin: top; transform: rotateX(90deg); }
.scene3d .boite .droite { width: var(--h); height: var(--p); left: calc(var(--l) - var(--h)); transform-origin: right; transform: rotateY(90deg); background-color: #ece8e1; }
.scene3d .boite .gauche { width: var(--h); height: var(--p); transform-origin: left; transform: rotateY(-90deg); background-color: #f3f0ea; }
.scene3d .boite .avant, .scene3d .boite .arriere { background-image: repeating-linear-gradient(90deg, rgba(20, 22, 21, .045) 0 1px, transparent 1px 12px); }
.scene3d .boite .gauche, .scene3d .boite .droite { background-image: repeating-linear-gradient(0deg, rgba(20, 22, 21, .045) 0 1px, transparent 1px 12px); }
.scene3d .boite .avant { box-shadow: inset 0 0 0 1px rgba(20, 22, 21, .22), inset 0 -5px 0 #2c2f2c; }

.scene3d .aile-g { --l: 320px; --p: 86px; --h: 92px; top: 0; transform-origin: 50% 100%; animation: lg-aile 12s ease-in-out infinite; }
.scene3d .noyau { --l: 320px; --p: 68px; --h: 98px; top: 86px; }
.scene3d .noyau .dessus { background: #2c2f2c; }
.scene3d .aile-d { --l: 320px; --p: 86px; --h: 92px; top: 154px; transform-origin: 50% 0%; animation: lg-aile 12s ease-in-out infinite; }
.scene3d .terrasse { --l: 132px; --p: 36px; --h: 7px; left: 168px; top: 240px; transform-origin: 50% 0%; animation: lg-terrasse 12s ease-in-out infinite; }
.scene3d .terrasse .f { background: #b88f63; box-shadow: inset 0 0 0 1px #8a6743; }
.scene3d .terrasse .dessus { background: repeating-linear-gradient(90deg, #c7a47c 0 9px, #a98458 9px 10px); }
@keyframes lg-aile { 0%, 14% { transform: scaleY(.06); } 42%, 84% { transform: scaleY(1); } 96%, 100% { transform: scaleY(.06); } }
@keyframes lg-terrasse { 0%, 40% { transform: scale(.001); } 52%, 82% { transform: scale(1); } 92%, 100% { transform: scale(.001); } }

/* Façades : menuiseries et lumière intérieure */
.scene3d .aile-d .avant, .scene3d .aile-g .arriere, .scene3d .noyau .avant {
  --verre: linear-gradient(160deg, #d9dedd, #b4bdbd 55%, #9aa5a6);
  --cadre: linear-gradient(#2c2f2c, #2c2f2c);
}
.scene3d .aile-d .avant { background-image:
  var(--verre), var(--verre), var(--verre),
  var(--cadre), var(--cadre), var(--cadre),
  repeating-linear-gradient(90deg, rgba(20, 22, 21, .045) 0 1px, transparent 1px 12px);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-position: 26px 22px, 104px 22px, 238px 12px, 24px 20px, 102px 20px, 236px 10px, 0 0;
  background-size: 52px 42px, 52px 42px, 50px 74px, 56px 46px, 56px 46px, 54px 78px, auto; }
.scene3d .aile-g .arriere { background-image: var(--verre), var(--verre), var(--cadre), var(--cadre), repeating-linear-gradient(90deg, rgba(20, 22, 21, .045) 0 1px, transparent 1px 12px);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-position: 60px 30px, 200px 30px, 58px 28px, 198px 28px, 0 0;
  background-size: 52px 40px, 52px 40px, 56px 44px, 56px 44px, auto; }
.scene3d .noyau .avant { background-image: var(--verre), var(--cadre), repeating-linear-gradient(90deg, rgba(20, 22, 21, .045) 0 1px, transparent 1px 12px);
  background-repeat: no-repeat, no-repeat, repeat; background-position: 120px 24px, 118px 22px, 0 0; background-size: 80px 40px, 84px 44px, auto; }
.scene3d .aile-d .avant::after { content: ""; position: absolute; inset: 0; opacity: 0;
  background-image: radial-gradient(closest-side, rgba(244, 214, 158, .95), rgba(244, 214, 158, .5) 70%, rgba(244, 214, 158, 0)), radial-gradient(closest-side, rgba(244, 214, 158, .9), rgba(244, 214, 158, 0)), linear-gradient(#f1d49a, #e6bf7c);
  background-repeat: no-repeat; background-position: 104px 22px, 26px 22px, 263px 16px; background-size: 52px 42px, 52px 42px, 21px 66px;
  animation: lg-lumiere 12s ease-in-out infinite; }
@keyframes lg-lumiere { 0%, 48% { opacity: 0; } 58%, 82% { opacity: 1; } 90%, 100% { opacity: 0; } }

/* Arbres de maquette en panneaux croisés */
.scene3d .arbre { position: absolute; width: 0; height: 0; transform-style: preserve-3d; }
.scene3d .arbre i { position: absolute; left: -30px; top: -110px; width: 60px; height: 110px; background: url("/assets/illustrations/pin.svg") bottom / contain no-repeat; transform-origin: 50% 100%; transform: rotateX(-90deg); }
.scene3d .arbre i + i { transform: rotateX(-90deg) rotateY(90deg); }
.scene3d .a1 { left: -110px; top: 40px; }
.scene3d .a2 { left: 400px; top: 70px; }
.scene3d .a3 { left: 430px; top: 220px; scale: 1.2; }

/* Cotes plié / déplié, synchronisées avec le dépliage */
.scene3d .cote { position: absolute; left: 16px; top: 16px; margin: 0; display: grid; }
.scene3d .cote span { grid-area: 1 / 1; justify-self: start; background: var(--ink); color: var(--white); font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 8px 12px; }
.scene3d .cote .plie { animation: lg-plie 12s ease-in-out infinite; }
.scene3d .cote .deplie { opacity: 0; animation: lg-deplie 12s ease-in-out infinite; }
@keyframes lg-plie { 0%, 18% { opacity: 1; } 26%, 90% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes lg-deplie { 0%, 34% { opacity: 0; } 42%, 84% { opacity: 1; } 92%, 100% { opacity: 0; } }

.scene3d .echelle { transform: scale(.82); }
@media (max-width: 559px) { .scene3d .echelle { transform: scale(.6); } }
@media (min-width: 560px) and (max-width: 979px) { .scene3d .echelle { transform: scale(.78); } }
@media (prefers-reduced-motion: reduce) {
  .scene3d .monde, .scene3d .boite, .scene3d .boite .f::after, .scene3d .cote span { animation: none !important; }
  .scene3d .aile-g, .scene3d .aile-d, .scene3d .terrasse { transform: none; }
  .scene3d .cote .plie { opacity: 0; } .scene3d .cote .deplie { opacity: 1; }
}

/* Apparition des blocs au défilement (navigateurs compatibles uniquement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .annonce, .section .carte, .etapes-resume li, .chronologie > li, .tableau, .faq details {
      animation: lg-apparition linear both; animation-timeline: view(); animation-range: entry 0% cover 20%;
    }
    @keyframes lg-apparition { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}
