/* Atelier Sillon : architecte d'intérieur fictive à Rouen.
   Direction : la table à dessin. Fond plâtre, trait d'encre, cotes et calques ; couleurs tirées
   des matériaux (chêne, terre cuite, sauge, laiton). Bricolage Grotesque pour le dessin des titres,
   Source Serif pour le texte courant, comme une notice d'architecte. */
:root {
  --platre: #f1ece4;
  --craie: #faf7f1;
  --encre: #26221e;
  --encre-douce: #5a534b;
  --terre: #9b4a2c;
  --sauge: #5f6b55;
  --chene: #b88a5a;
  --laiton: #b39149;
  --filet: rgba(38, 34, 30, .2);
  --titre: "Bricolage Grotesque Variable", "Bricolage Grotesque", "Arial Narrow", "Segoe UI", sans-serif;
  --texte: "Source Serif 4 Variable", "Source Serif 4", Georgia, "Times New Roman", serif;
  --marge: clamp(1rem, 5vw, 4.5rem);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--platre); color: var(--encre); font-family: var(--texte); font-size: 1.0625rem; line-height: 1.65; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; }

.demo-bandeau { background: var(--encre); color: #e9e2d6; }

.surtitre { font-family: var(--titre); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--terre); }
.section-titre { font-family: var(--titre); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.75rem); line-height: .98; letter-spacing: -.03em; }

.bouton { display: inline-flex; align-items: center; min-height: 50px; padding: 0 1.5rem; background: var(--encre); color: var(--craie); border: 0; font: 600 .9375rem/1 var(--titre); text-decoration: none; cursor: pointer; }
.bouton:hover { background: #3b352f; }
.lien { font-family: var(--titre); font-weight: 600; font-size: .9375rem; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: .9rem var(--marge); background: var(--platre); border-bottom: 1px solid var(--filet); }
.marque { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.125rem/1 var(--titre); letter-spacing: -.01em; text-decoration: none; position: relative; z-index: 2; }
.marque-trait { width: 22px; height: 2px; background: var(--terre); }
.menu-btn { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; background: none; border: 0; color: inherit; font: 600 .9375rem/1 var(--titre); cursor: pointer; padding: 0 .25rem; }
.menu-carre { width: 14px; height: 14px; border: 1.5px solid currentColor; transition: transform .35s ease; }
.menu-ouvert .menu-carre { transform: rotate(45deg); }
.menu-ouvert body { overflow: hidden; }
.menu-plein { position: fixed; inset: 0; z-index: 1; }
.menu-plein[hidden] { display: none; }
.menu-fond { position: absolute; inset: 0; background: var(--craie); }
.menu-regle { position: absolute; top: 4.6rem; bottom: 0; left: calc(var(--marge) + 3.2rem); width: 1px; background: var(--terre); transform-origin: 50% 0; }
.menu-interieur { position: relative; height: 100%; overflow-y: auto; display: grid; align-content: center; gap: 2.5rem; padding: 6rem var(--marge) 3rem; }
.menu-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.menu-liens li { overflow: hidden; }
.menu-liens a { display: inline-flex; align-items: baseline; gap: 1.5rem; text-decoration: none; }
.menu-liens .num { width: 2.2rem; font: 600 .875rem/1 var(--titre); color: var(--terre); }
.menu-liens .txt { font: 700 clamp(2rem, 6vw, 4.25rem)/1.1 var(--titre); letter-spacing: -.03em; display: inline-block; }
.menu-liens a:hover .txt, .menu-liens a:focus-visible .txt { text-decoration: underline; text-decoration-thickness: 2px; }
.menu-infos { padding-left: 3.7rem; color: var(--encre-douce); }

/* ---------- Accueil ---------- */
.accueil { display: grid; gap: 3rem; padding: clamp(3rem, 8vw, 6rem) var(--marge) clamp(3rem, 7vw, 5rem); min-height: calc(100svh - 7rem); align-items: center; }
.accueil-texte { display: grid; gap: 1.5rem; }
.accueil-titre { font-family: var(--titre); font-weight: 700; font-size: clamp(2.6rem, 6.6vw, 6rem); line-height: .98; letter-spacing: -.035em; max-width: 14ch; }
.accueil-chapeau { max-width: 34rem; font-size: 1.1875rem; color: var(--encre-douce); }
.accueil-liens { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }
.accueil-dessin { color: var(--encre); max-width: 26rem; justify-self: center; width: 100%; }
.accueil-dessin svg { width: 100%; height: auto; overflow: visible; }
.accueil-dessin text { font-family: var(--titre); }
.accueil-dessin figcaption, .plan figcaption { margin-top: .75rem; font-size: .875rem; color: var(--encre-douce); font-style: italic; }
@media (min-width: 800px) { .accueil { grid-template-columns: 1.35fr 1fr; gap: 4rem; } }

/* ---------- Présentation ---------- */
.intro { padding: clamp(4rem, 10vw, 8rem) var(--marge); background: var(--craie); border-block: 1px solid var(--filet); }
.intro-texte { max-width: 60rem; margin: 0 auto; font-size: clamp(1.5rem, 3vw, 2.35rem); line-height: 1.3; }

/* ---------- Du relevé à la pièce ---------- */
.methode { padding: clamp(4rem, 10vw, 8rem) var(--marge); }
.methode-scene { display: grid; gap: 3rem; max-width: 80rem; margin: 0 auto; }
.methode-texte .section-titre { margin-bottom: 2rem; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.phase { border-top: 1px solid var(--filet); padding-top: 1rem; display: grid; gap: .4rem; }
.phase h3 { font: 700 1.25rem/1.2 var(--titre); letter-spacing: -.01em; }
.phase .num { color: var(--terre); font-size: .875rem; margin-right: .4rem; }
.phase p { color: var(--encre-douce); max-width: 34rem; }
.plan { margin: 0; }
.plan-scene { position: relative; aspect-ratio: 640 / 440; perspective: 1800px; }
.calque { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.calque text { font-family: var(--titre); }
.calque-esquisse { display: none; }
.plan-legende { display: block; margin-top: .25rem; }

/* Version animée : la scène est épinglée, les calques apparaissent phase par phase, puis le plan bascule en volume. */
.mv-actif .methode { padding: 0; }
.mv-actif .methode-scene { height: 100vh; max-width: none; padding: 5.5rem var(--marge) 2rem; align-content: center; }
.mv-actif .calque-esquisse { display: block; }
.mv-actif .plan-scene { transform-style: preserve-3d; }
.mv-actif .plan-3d { position: absolute; inset: 0; transform-style: preserve-3d; }
.mv-actif .phases { position: relative; gap: .15rem; padding-bottom: 8.5rem; }
.mv-actif .phase { border: 0; padding: .35rem 0; }
.mv-actif .phase h3 { color: #6b635a; font-weight: 600; transition: color .3s ease; }
.mv-actif .phase h3::before { content: ""; display: inline-block; width: 1.25rem; height: 2px; margin-right: .6rem; vertical-align: middle; background: var(--terre); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s ease; }
.mv-actif .phase.active h3 { color: var(--encre); font-weight: 700; }
.mv-actif .phase.active h3::before { transform: scaleX(1); }
.mv-actif .phase p { position: absolute; left: 0; right: 0; bottom: 0; min-height: 7.5rem; opacity: 0; border-top: 1px solid var(--filet); padding-top: 1rem; color: var(--encre); }
.mv-actif .plan-legende { opacity: 0; }
@media (min-width: 800px) {
  .methode-scene { grid-template-columns: 5fr 7fr; align-items: center; gap: 4rem; }
}
@media (max-width: 799px) {
  .mv-actif .methode-scene { padding-top: 4.5rem; gap: 1.25rem; align-content: start; }
  .mv-actif .methode-texte .section-titre { font-size: 2rem; margin-bottom: .75rem; }
  .mv-actif .phase h3 { font-size: 1rem; }
  .mv-actif .phases { padding-bottom: 9rem; }
  .mv-actif .phase p { font-size: .9375rem; min-height: 8.5rem; }
  .mv-actif .plan { order: -1; }
  .mv-actif .plan figcaption { display: none; }
}

/* ---------- Réalisations ---------- */
.realisations { padding: clamp(4rem, 10vw, 7rem) 0; background: var(--craie); border-block: 1px solid var(--filet); --rideau: var(--craie); }
.real-fenetre { overflow-x: clip; }
.real-tete { padding: 0 var(--marge); display: grid; gap: 1rem; margin-bottom: 3rem; }
.real-tete p { max-width: 34rem; color: var(--encre-douce); }
.real-piste { display: grid; gap: 4rem; padding: 0 var(--marge); }
.projet { display: grid; gap: 1.25rem; }
.projet-visuel { aspect-ratio: 4 / 5; background: #e7dfd0; }
.projet-visuel img, .projet-visuel svg { width: 100%; height: 100%; object-fit: cover; }
.projet-lieu { font: 600 .8125rem/1.3 var(--titre); letter-spacing: .12em; text-transform: uppercase; color: var(--terre); }
.projet h3 { font: 700 1.5rem/1.15 var(--titre); letter-spacing: -.02em; margin: .35rem 0 .75rem; }
.projet dl { display: grid; gap: .2rem; margin-bottom: .75rem; font-size: .9375rem; }
.projet dl div { display: flex; gap: .5rem; }
.projet dt { font-family: var(--titre); font-weight: 600; min-width: 5.5rem; }
.projet dd { color: var(--encre-douce); }
.projet-texte > p:last-child { color: var(--encre-douce); font-size: .9688rem; }
@media (min-width: 800px) {
  .real-tete { grid-template-columns: 1fr 1fr; align-items: end; }
  .real-piste { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .projet:nth-child(even) { margin-top: 8rem; }
  .mv-actif .real-piste { display: flex; gap: 5vw; width: max-content; padding-right: 20vw; }
  .mv-actif .projet { width: min(30vw, 26rem); margin-top: 0; }
  .mv-actif .projet:nth-child(even) { margin-top: 6vh; }
  .mv-actif .projet-visuel { aspect-ratio: auto; height: 40vh; }
  .mv-actif .projet h3 { font-size: 1.3rem; }
  .mv-actif .projet-texte > p:last-child { font-size: .875rem; line-height: 1.5; }
  .mv-actif .projet dl { margin-bottom: .4rem; font-size: .875rem; }
  .mv-actif .realisations { height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding: 4.5rem 0 1.5rem; }
  .mv-actif .real-tete { margin-bottom: 1.5rem; }
  .mv-actif .real-tete .section-titre { font-size: 3rem; }
}

/* ---------- Matières ---------- */
.matieres { padding: clamp(4rem, 10vw, 8rem) var(--marge); overflow-x: clip; }
.matieres-tete { display: grid; gap: 1rem; margin-bottom: 3rem; max-width: 80rem; margin-inline: auto; }
.matieres-tete p { max-width: 34rem; color: var(--encre-douce); }
.matieres-photo { margin: 1rem 0 0; --rideau: var(--platre); }
.matieres-cadre { aspect-ratio: 3 / 2; }
.matieres-cadre img { width: 100%; height: 100%; object-fit: cover; }
.matieres-photo figcaption { margin-top: .6rem; font-size: .875rem; font-style: italic; color: var(--encre-douce); }
@media (min-width: 800px) { .matieres-tete { grid-template-columns: 1fr 1fr; column-gap: 4rem; align-items: start; } .matieres-photo { grid-column: 2; grid-row: 1 / span 2; margin: 0; } }
.planche { list-style: none; margin: 0 auto; padding: 0; max-width: 80rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
.ech h3 { font: 700 1.0625rem/1.2 var(--titre); margin-top: .75rem; }
.ech p { font-size: .875rem; color: var(--encre-douce); }
.ech-surface { display: block; aspect-ratio: 1; box-shadow: 0 1px 2px rgba(38, 34, 30, .18); }
.e1 .ech-surface { background-color: #b88a5a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 20 Q60 10 120 22 M0 48 Q50 40 120 50 M0 80 Q70 70 120 84 M0 104 Q60 98 120 108' stroke='%239d7249' fill='none' stroke-width='2'/%3E%3C/svg%3E"); background-size: 100% 100%; }
.e2 .ech-surface { background-color: #e0d3bb; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23c8b797'%3E%3Cellipse cx='20' cy='30' rx='6' ry='2'/%3E%3Cellipse cx='80' cy='18' rx='9' ry='2'/%3E%3Cellipse cx='55' cy='70' rx='5' ry='1.5'/%3E%3Cellipse cx='100' cy='92' rx='7' ry='2'/%3E%3Cellipse cx='25' cy='100' rx='8' ry='2'/%3E%3C/g%3E%3Cpath d='M0 45 H120 M0 82 H120' stroke='%23d2c3a6' stroke-width='3'/%3E%3C/svg%3E"); background-size: 100% 100%; }
.e3 .ech-surface { background-color: #ece6da; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence baseFrequency='.035' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .75 0 0 0 0 .71 0 0 0 0 .64 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23f)'/%3E%3C/svg%3E"); background-size: cover; }
.e4 .ech-surface { background-color: #b39149; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8'%3E%3Cpath d='M0 2 H120 M0 6 H90' stroke='%23c9a95e' stroke-width='1'/%3E%3C/svg%3E"); }
.e5 .ech-surface { background-color: #ddd4c3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M0 3 H6 M3 0 V6' stroke='%23cbc0ab' stroke-width='1'/%3E%3C/svg%3E"); }
.e6 .ech-surface { background-color: #b0613f; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpath d='M15 0 H45 L60 26 L45 52 H15 L0 26 Z' fill='none' stroke='%238f4a2f' stroke-width='2'/%3E%3C/svg%3E"); }
@media (min-width: 800px) {
  .planche { grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
  .ech:nth-child(odd) { margin-top: 3rem; }
}

/* ---------- Avant, après ---------- */
.comparer { padding: clamp(4rem, 10vw, 8rem) var(--marge); background: var(--craie); border-block: 1px solid var(--filet); }
.comparer-tete { display: grid; gap: 1rem; margin: 0 auto 2.5rem; max-width: 64rem; }
.comparer-tete p { max-width: 34rem; color: var(--encre-douce); }
.comparateur { position: relative; max-width: 64rem; margin: 0 auto; aspect-ratio: 600 / 390; overflow: hidden; background: #f4efe6; }
.comparateur-plan { position: absolute; inset: 0; }
.comparateur-plan svg { width: 100%; height: auto; }
.comparateur-plan figcaption { position: absolute; top: .5rem; font: 700 .8125rem/1 var(--titre); letter-spacing: .12em; text-transform: uppercase; background: var(--encre); color: var(--craie); padding: .4rem .6rem; }
.plan-apres figcaption { right: .5rem; }
.plan-avant figcaption { left: .5rem; }
.comparateur-masque { position: absolute; inset: 0; overflow: hidden; transform: translateX(calc((var(--p) - 100) * 1%)); }
.comparateur-contre { position: absolute; inset: 0; transform: translateX(calc((100 - var(--p)) * 1%)); background: #f4efe6; }
.comparateur-poignee { position: absolute; inset: 0; transform: translateX(calc(var(--p) * 1%)); pointer-events: none; }
.comparateur-poignee::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--terre); }
.comparateur-poignee::after { content: ""; position: absolute; top: 50%; left: -11px; width: 22px; height: 22px; margin-top: -11px; background: var(--terre); transform: rotate(45deg); }
.comparateur-curseur { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparateur:focus-within { outline: 2px solid var(--terre); outline-offset: 4px; }
.comparer-note { max-width: 64rem; margin: 1.25rem auto 0; font-size: .9375rem; color: var(--encre-douce); }

/* ---------- Honoraires ---------- */
.honoraires { padding: clamp(4rem, 10vw, 8rem) var(--marge); max-width: 80rem; margin: 0 auto; }
.honoraires .section-titre { margin-bottom: 2.5rem; }
.tarifs { display: grid; }
.tarifs div { display: grid; gap: .5rem; padding: 1.5rem 0; border-top: 1px solid var(--filet); }
.tarifs div:last-child { border-bottom: 1px solid var(--filet); }
.tarifs dt { font: 700 1.25rem/1.2 var(--titre); letter-spacing: -.01em; }
.tarifs dd { display: grid; gap: .3rem; }
.tarifs strong { font: 700 1.125rem/1.3 var(--titre); color: var(--terre); }
.tarifs span { color: var(--encre-douce); max-width: 36rem; }
.honoraires-note { margin-top: 1.5rem; font-size: .9375rem; color: var(--encre-douce); }
@media (min-width: 800px) { .tarifs div { grid-template-columns: 1fr 1.3fr; gap: 3rem; } }

/* ---------- Contact ---------- */
.contact { padding: clamp(4rem, 10vw, 8rem) var(--marge); background: var(--encre); color: var(--craie); }
.contact :focus-visible { outline-color: #e2b08f; }
.contact-grille { max-width: 80rem; margin: 0 auto; display: grid; gap: 3rem; }
.contact-titre { font: 700 clamp(2.4rem, 6vw, 4.75rem)/.98 var(--titre); letter-spacing: -.03em; margin-bottom: 1.5rem; }
.contact-texte { max-width: 30rem; color: #ddd5c8; }
.contact-coord { margin-top: 1.5rem; }
.formulaire { display: grid; gap: 1.1rem; align-content: start; }
.formulaire-demo { font-size: .875rem; font-style: italic; color: #ddd5c8; }
.champ { display: grid; gap: .35rem; }
.champ label { font: 600 .875rem/1.2 var(--titre); }
.champ input, .champ select, .champ textarea { font: inherit; color: var(--encre); background: var(--craie); border: 1px solid #8c8378; border-radius: 0; padding: .7rem .8rem; min-height: 48px; width: 100%; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid #e2b08f; outline-offset: 2px; }
.contact .bouton { background: var(--craie); color: var(--encre); justify-self: start; }
.contact .bouton:hover { background: #fff; }
.formulaire-statut { min-height: 1.5em; font-size: .9375rem; }
@media (min-width: 800px) { .contact-grille { grid-template-columns: 1fr 1fr; gap: 6rem; } }

/* ---------- Pied ---------- */
.pied { padding: 3rem var(--marge) 2rem; border-top: 1px solid var(--filet); }
.pied-grille { display: grid; gap: 1.25rem; }
.pied-marque { font: 700 1.5rem/1 var(--titre); letter-spacing: -.02em; }
.pied-demo { margin-top: 2rem; font-size: .8125rem; color: var(--encre-douce); max-width: 46rem; }
@media (min-width: 800px) { .pied-grille { grid-template-columns: 1fr 1fr 1fr; } }
