@font-face {
  font-family: "Instrument Sans";
  src: url(/fonts/instrument-sans-latin.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  /* Palette : sable chaud (fond), bleu ardoise profond (texte, sombre), cuivre par touches (écho aux photos). */
  --plaster: #f5efe4;
  --plaster-2: #ebe2d2;
  --white: #fff;
  --ink: #1b2733;
  --soft: #4d5967;
  --accent: #2c4a63;
  --copper: #94501f;
  --accent-hi: #e8bd93;
  --on-dark: #e8e2d6;
  --line: #d8ccb8;
  --line-d: #6c7886;
  --slate: #131d27;
  --err: #8d2222;
  --focus: #2064b5;
  /* Grain minéral fin (SVG statique, rastérisé une fois en motif ; aucune requête). */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .27 0 0 0 0 .17 .5 0 0 0 -.17'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .85 0 0 0 0 .88 0 0 0 0 .9 .45 0 0 0 -.19'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  --display: Georgia, "Times New Roman", serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  --gut: clamp(16px, 5vw, 68px);
  --wrap: 1220px;
  --pad: clamp(45px, 6.4vw, 92px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 14px; }
body { margin: 0; background: var(--plaster) var(--grain); color: var(--ink); font: 1.04rem/1.58 var(--text); }
h1, h2, h3 { margin: 0; font: 400 2rem/1.09 var(--display); letter-spacing: -.04em; }
h1 { font-size: clamp(3rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2.25rem, 4vw, 3.9rem); }
h3 { font-size: 1.65rem; }
p { margin: 0 0 1em; }
h2 + p, h3 + p { margin-top: 1.15em; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
picture, img { display: block; }
img { max-width: 100%; height: auto; }
svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
figure, ol, ul { margin: 0; padding: 0; }
ul { list-style: none; }
figcaption { color: var(--soft); font-size: .83rem; line-height: 1.45; margin-top: 9px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dark { background: var(--ink) var(--grain-d); color: var(--white); }
.wrap { width: min(calc(100% - 2 * var(--gut)), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 10px; top: -100px; z-index: 60; background: white; padding: 10px; }
.skip:focus { top: 10px; }
/* ---------- Actions : formes nettes, filet et flèche qui se relaient ----------
   Un seul geste pour tout le site : le filet cuivre se trace sous le libellé, puis la flèche avance (et l'inverse au retour :
   la flèche recule d'abord, le filet se retire ensuite). Au survol (pointeurs qui survolent), au focus clavier et, sans délai,
   à la pression (:active) : le retour au doigt ne dépend jamais du survol. Pas d'arrondi, pas d'ombre, pas de pastille. */
:root { --ease: cubic-bezier(.22, .7, .18, 1); --cu: var(--copper); }
.dark, html.js .nav__panel, .scene__end { --cu: var(--accent-hi); }
.btn, .more, .hd__tel, .cta-row { display: inline-flex; align-items: center; }
.btn { gap: 12px; justify-content: center; min-height: 48px; padding: 11px 18px; border: 0; border-radius: 0; font: 650 .98rem/1.2 var(--text); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.i-arrow { transition: transform .22s var(--ease); }
/* Action principale : bloc ardoise net, filet cuivre de 3 px au pied. */
.btn--block, .nav__cta .btn--call {
  background: linear-gradient(var(--cu), var(--cu)) 0 100% / 0% 3px no-repeat var(--ink); color: var(--plaster);
  transition: background-size .34s var(--ease) .1s, background-color .2s;
}
.btn--block:hover, .nav__cta .btn--call:hover { color: var(--plaster); }
.btn__k { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .78; }
.btn__v { font-size: 1.06rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.nav__cta .btn--call { --cu: var(--accent-hi); }
/* Actions secondaires et liens d'action : trait fin permanent, le filet cuivre se trace par-dessus. */
.nav__cta .btn--devis, .more, .case__more, .carte__cap > a, .local-map, .others__list a {
  gap: 8px; min-height: 44px; padding: 8px 0; font-weight: 650; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(var(--cu), var(--cu)) 0 calc(100% - 7px) / 0% 2px no-repeat,
    linear-gradient(color-mix(in srgb, currentColor 32%, transparent), color-mix(in srgb, currentColor 32%, transparent)) 0 calc(100% - 7px) / 100% 1px no-repeat;
  transition: background-size .34s var(--ease) .1s;
}
.cta-row { flex-wrap: wrap; gap: 8px 22px; }
.btn--block { width: 100%; justify-content: space-between; }
@media (hover: hover) {
  .btn--block:hover, .nav__cta .btn--call:hover, .nav__cta .btn--devis:hover, .more:hover, .case__more:hover,
  .carte__cap > a:hover, .local-map:hover, .others__list a:hover { background-size: 100% 3px, 100% 1px; transition-delay: 0s; }
  .btn--block:hover .i-arrow, .nav__cta .btn--call:hover .i-arrow, .nav__cta .btn--devis:hover .i-arrow,
  .more:hover .i-arrow, .case__more:hover .i-arrow, .carte__cap > a:hover .i-arrow { transform: translateX(5px); transition-delay: .14s; }
}
.btn--block:focus-visible, .nav__cta .btn--call:focus-visible, .nav__cta .btn--devis:focus-visible, .more:focus-visible,
.case__more:focus-visible, .carte__cap > a:focus-visible, .local-map:focus-visible, .others__list a:focus-visible { background-size: 100% 3px, 100% 1px; transition-delay: 0s; }
.btn--block:focus-visible .i-arrow, .nav__cta .btn--call:focus-visible .i-arrow, .nav__cta .btn--devis:focus-visible .i-arrow, .more:focus-visible .i-arrow, .case__more:focus-visible .i-arrow { transform: translateX(5px); transition-delay: .14s; }
/* Pression : immédiate, sans transition (doigt comme souris). */
.btn--block:active, .nav__cta .btn--call:active, .nav__cta .btn--devis:active, .more:active, .case__more:active,
.carte__cap > a:active, .local-map:active, .others__list a:active { background-size: 100% 3px, 100% 1px; transition: none; transform: translateY(1px); }
.btn:active .i-arrow, .more:active .i-arrow, .case__more:active .i-arrow, .carte__cap > a:active .i-arrow { transform: translateX(5px); transition: none; }
/* ---------- En-tête d'atelier ----------
   Desktop : une barre de service ardoise (appel plein cuivre, demande écrite) au-dessus d'un bandeau où le nom tient la place.
   Mobile : un bandeau léger en haut ; la barre de service est en bas, sous le pouce, avec le bouton du menu. */
.hd { position: relative; z-index: 50; border-bottom: 1px solid var(--line); }
.svc { display: none; }
.hd__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark svg { display: block; width: 36px; height: 36px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt small { font: 650 .62rem/1 var(--text); text-transform: uppercase; letter-spacing: .16em; color: var(--soft); }
.brand__txt strong { font: 400 1.5rem/1.05 var(--display); letter-spacing: -.045em; }
.hd__where { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); }
.desk-nav, .nav__close { display: none; }
.nav__toggle { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 0 2px; border: 0; font: 650 .72rem var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.burger { position: relative; width: 24px; height: 12px; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .38s var(--ease), top .38s var(--ease), right .38s var(--ease); }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 10px; right: 8px; background: var(--accent-hi); }
.nav-open .burger i:first-child { top: 5px; transform: rotate(45deg); }
.nav-open .burger i:last-child { top: 5px; right: 0; transform: rotate(-45deg); }
.nav__panel { display: none; }
.nav__list a { display: block; font-size: 1.12rem; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.nav__list a[aria-current] { font-weight: 700; }
.nav__cta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding-top: 18px; }
.nav__loc { margin: 0; width: 100%; font-size: .85rem; }
/* Sans JS : le menu est simplement affiché dans l'en-tête. */
html:not(.js) .nav__toggle { display: none; }
html:not(.js) .hd__in { flex-wrap: wrap; }
html:not(.js) .nav, html:not(.js) .nav__panel { width: 100%; }
html:not(.js) .nav__panel { display: block; padding: 0 0 18px; }
/* Mobile avec JS : bouton du menu dans la barre de service du bas. Une seule transition coordonnée : le panneau monte depuis la
   barre (masque), les liens arrivent du plus proche du pouce au plus loin, le filet de la barre se trace, le bouton passe de deux
   filets à une croix et son libellé glisse ; la fermeture rejoue l'inverse (liens d'abord, masque ensuite). */
@media (max-width: 959px) {
  html.js .nav__toggle {
    position: fixed; left: 0; bottom: 0; z-index: 46; width: 78px; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 0 env(safe-area-inset-bottom);
    flex-direction: column; justify-content: center; gap: 9px; color: var(--plaster); background: transparent; transition: transform .42s var(--ease) .06s;
  }
  html.js .nav__toggle:active { background: rgb(245 239 228 / .08); }
  html.js .nav__lbl { display: block; height: 1.2em; overflow: hidden; line-height: 1.2; }
  html.js .nav__lbl span { display: block; transition: transform .38s var(--ease); }
  html.js .nav__close { display: block; }
  html.js .nav-open .nav__lbl span { transform: translateY(-100%); }
  html.js .nav__panel {
    display: flex; flex-direction: column; justify-content: flex-end; position: fixed; inset: 0 0 calc(64px + env(safe-area-inset-bottom)); z-index: 44;
    padding: 24px var(--gut) 18px; overflow: auto; overscroll-behavior: contain; background: var(--ink) var(--grain-d); color: var(--plaster);
    clip-path: inset(100% 0 0 0); visibility: hidden; transition: clip-path .46s var(--ease) .14s, visibility 0s .6s;
  }
  html.js .nav-open .nav__panel { clip-path: inset(0); visibility: visible; transition: clip-path .56s var(--ease), visibility 0s; }
  html.js .nav__panel::before { content: "Artisanat des Compagnons · Créteil"; margin-bottom: auto; font: 650 .68rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi); }
  html.js .nav__list li { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .14s, transform .18s; }
  html.js .nav-open .nav__list li { opacity: 1; transform: none; transition: opacity .36s calc(.14s + (7 - var(--i, 0)) * .045s), transform .62s var(--ease) calc(.14s + (7 - var(--i, 0)) * .045s); }
  html.js .nav__list a {
    display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgb(245 239 228 / .14);
    font: 400 clamp(1.7rem, 7.6vw, 2.4rem)/1.05 var(--display); letter-spacing: -.035em; color: var(--plaster); -webkit-tap-highlight-color: transparent;
    background: linear-gradient(var(--cu), var(--cu)) 0 100% / 0% 2px no-repeat; transition: background-size .34s var(--ease);
  }
  html.js .nav__list a[aria-current] { font-weight: 400; font-style: italic; color: var(--accent-hi); background-size: 38px 2px; }
  html.js .nav__list a:active { background-size: 100% 2px; transition: none; }
  html.js .nav__list a:focus-visible { background-size: 100% 2px; outline-color: var(--accent-hi); }
  html.js .nav__cta { padding-top: 14px; }
  html.js .nav__cta .btn { display: none; }
  html.js .nav__loc { color: var(--on-dark); opacity: .8; }
  html.js body.nav-open { overflow: hidden; }
}
@media (min-width: 960px) {
  .svc { display: block; background: var(--ink) var(--grain-d); color: var(--on-dark); --cu: var(--accent-hi); }
  .svc__in { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; min-height: 48px; }
  .svc__where { margin: 0; align-self: center; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
  .svc__acts { display: flex; align-items: stretch; margin-right: calc(-1 * var(--gut)); overflow: hidden; }
  .svc__acts a {
    display: flex; align-items: center; gap: 12px; padding: 0 var(--gut) 0 22px; text-decoration: none; color: var(--plaster); -webkit-tap-highlight-color: transparent;
    transition: transform .42s var(--ease), background-color .2s, background-size .34s var(--ease) .1s;
  }
  .svc__acts small { font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
  .svc__acts span { font-weight: 700; font-variant-numeric: tabular-nums; }
  .svc__tel { background: var(--copper); padding-left: 26px !important; }
  .svc__tel span { font: 400 1.32rem/1 var(--display); letter-spacing: -.01em; }
  .svc__tel:hover, .svc__tel:focus-visible { background: #7d4219; color: var(--plaster); }
  .svc__tel:active { background: #6c3914; transition: none; }
  .svc__devis { border-left: 1px solid rgb(245 239 228 / .16); background: linear-gradient(var(--cu), var(--cu)) 22px calc(100% - 9px) / 0% 2px no-repeat; }
  .svc__devis:hover, .svc__devis:focus-visible, .svc__devis:active { color: var(--plaster); background-size: calc(100% - 22px - var(--gut)) 2px; transition-delay: 0s; }
  .svc__devis:hover .i-arrow, .svc__devis:focus-visible .i-arrow { transform: translateX(5px); transition-delay: .14s; }
  .svc__devis:active, .svc__devis:active .i-arrow { transition: none; }
  .hd__in { min-height: 104px; }
  .hd__where, .nav { display: none; }
  .brand__mark svg { width: 48px; height: 48px; }
  .brand__txt small { font-size: .7rem; }
  .brand__txt strong { font-size: 2.15rem; }
  .desk-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
  .desk-nav a {
    display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font: 400 1.22rem/1 var(--display); letter-spacing: -.02em;
    background: linear-gradient(var(--cu), var(--cu)) 0 calc(100% - 8px) / 0% 2px no-repeat; transition: background-size .34s var(--ease), transform .4s var(--ease), opacity .4s;
  }
  .desk-nav a:hover, .desk-nav a:focus-visible { background-size: 100% 2px; color: inherit; }
  .desk-nav a:active { background-size: 100% 2px; transition: none; }
}
/* Entrée : brève (≤ 0,45 s), en transform seulement ; les actions restent cliquables pendant le mouvement. Sans JS ou en mouvement
   réduit, tout est déjà en place. La classe .pre est retirée deux images après le premier rendu (script dans <head>). */
html.pre .svc__acts a { transform: translate3d(0, -100%, 0); }
html.pre .svc__devis { transition-delay: .06s; }
html.pre .desk-nav a { transform: translate3d(0, -10px, 0); opacity: 0; }
html.pre .dock, html.pre .nav__toggle { transform: translate3d(0, 100%, 0); }
html.pre .ledger__row { background-size: 0% 1px, 0% 2px; }
.intro { border-bottom: 1px solid var(--line); }
.intro__in { padding-block: clamp(26px, 5vw, 76px) clamp(37px, 5vw, 76px); display: grid; gap: 24px; }
.location { font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.location svg { width: .97rem; }
.intro h1 { font-size: clamp(3.65rem, 11vw, 7.1rem); line-height: .94; letter-spacing: -.065em; }
.intro h1 em, h2 em { color: var(--copper); font-weight: 400; }
.intro__lead { margin: 21px 0 23px; max-width: 39ch; font-size: clamp(1rem, 1.45vw, 1.22rem); }
.intro__photos { position: relative; max-width: 595px; width: 100%; padding: 0 22px 12px 0; align-self: center; }
.cover img { width: 100%; aspect-ratio: 1.55; object-fit: cover; object-position: 50% 45%; }
.cover figcaption { padding-right: 86px; }
.detail { position: absolute; right: 0; bottom: 0; width: 27%; max-width: 150px; border: 5px solid var(--plaster); }
.detail img { width: 100%; aspect-ratio: 1.05; object-fit: cover; }
@media (min-width: 840px) {
  .intro__in { grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(30px, 5vw, 80px); }
  .intro__photos { justify-self: end; padding: 0 34px 30px 0; }
  .cover img { aspect-ratio: 1.45; }
  .detail { border-width: 7px; }
}
.work { padding-block: var(--pad); }
.work__in, .zone__in, .fieldnote__in, .contact__grid, .shero__in, .service-text { display: grid; gap: 26px; }
.work__heading p, .zone p, .contact__side > p, .local p { max-width: 42ch; color: var(--soft); }
.directory { border-top: 1px solid var(--ink); }
.directory a { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.directory__name { font: 400 clamp(1.45rem, 2.1vw, 2rem)/1.1 var(--display); letter-spacing: -.035em; }
.directory__desc { grid-column: 1; font-size: .95rem; color: var(--soft); margin-top: 4px; }
.directory svg { grid-column: 2; grid-row: 1 / 3; }
.directory a { -webkit-tap-highlight-color: transparent; background: linear-gradient(var(--cu), var(--cu)) 0 100% / 0% 2px no-repeat; transition: background-size .4s var(--ease) .1s; }
.directory a:hover { color: inherit; }
.directory a:focus-visible, .directory a:active { background-size: 100% 2px; transition-delay: 0s; }
.directory a:active { transition: none; }
.directory a:focus-visible .i-arrow, .directory a:active .i-arrow { transform: translateX(6px); transition-delay: .16s; }
@media (hover: hover) {
  .directory a:hover { background-size: 100% 2px; transition-delay: 0s; }
  .directory a:hover .i-arrow { transform: translateX(6px); transition-delay: .16s; }
}
.fieldnote { background: var(--plaster-2) var(--grain); padding-block: var(--pad); }
.fieldnote__in { align-items: center; }
.fieldnote figure { width: min(100%,390px); }
.fieldnote figure img { width: 100%; aspect-ratio: 1.16; object-fit: cover; }
.fieldnote p { max-width: 51ch; }
.zone { padding-block: var(--pad); border-bottom: 1px solid var(--line); }
.zone__in { align-items: center; }
address { font-style: normal; font-weight: 600; padding-left: 16px; border-left: 2px solid var(--copper); }
@media (min-width: 840px) {
  .work__in, .contact__grid { grid-template-columns: 4fr 6fr; gap: 7%; }
  .work__heading p { max-width: 29ch; }
  .fieldnote__in { grid-template-columns: .8fr 1.2fr; gap: 8%; max-width: 1020px; }
  .fieldnote figure { width: min(100%,330px); justify-self: center; }
  .zone__in { grid-template-columns: 1fr 1fr; gap: 8%; }
  .directory a { grid-template-columns: .8fr 1.1fr auto; gap: 20px; padding: 21px 0; }
  .directory__desc, .directory svg { grid-column: auto; grid-row: auto; margin: 0; }
}
/* Carte de la zone : image statique (OpenStreetMap), repère et libellé en HTML */
.carte { margin: 0; min-width: 0; }
.carte__map { position: relative; aspect-ratio: 4 / 3; background: var(--plaster-2); border: 2px solid var(--white); overflow: hidden; }
.carte__map img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carte__pin { position: absolute; width: 40px; height: 40px; transform: translate(-50%, -100%); color: var(--copper); filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 0 2px rgba(0, 0, 0, 0.45)); pointer-events: none; }
.carte__pin svg { width: 100%; height: 100%; fill: currentColor; }
.carte__label { position: absolute; margin: 0; transform: translate(-50%, 10px); background: var(--ink); color: var(--white); padding: 6px 10px; font-size: 0.85rem; line-height: 1.2; white-space: nowrap; }
.carte__cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: 12px; }
.carte__cap > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--accent); text-decoration: none; border-bottom: 2px solid currentColor; }
.carte__cap > a:hover { color: var(--ink); }
.carte__cap svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.carte__cap small { font-size: 0.78rem; opacity: 0.92; }
.carte__cap small a { color: inherit; }
.contact { padding-block: var(--pad); }
.contact__phone { font: 400 clamp(1.8rem, 3.4vw, 3rem)/1.4 var(--display); text-decoration: none; }
.contact__side a { overflow-wrap: anywhere; }
.contact__side > p:has(+ .contact__phone) { margin: 28px 0 2px; }
.devis { padding: 22px 0 0; border-top: 2px solid var(--ink); }
.devis h3 { font-size: 2rem; }
.devis__note { font-size: 0.94rem; color: var(--soft); }
.devis__req { font-size: 0.94rem; padding: 10px 0; border-block: 1px solid var(--line); margin-bottom: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-weight: 700; font-size: 0.94rem; }
.field .opt { font-weight: 400; color: var(--soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px; border: 1px solid var(--line-d); border-radius: 0; background: rgb(255 255 255 / .55); color: var(--ink); font: 1rem var(--text); }
.field textarea { resize: vertical; min-height: 132px; }
.field ::placeholder { color: #5d6166; opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; background: var(--white); }
.field [aria-invalid="true"] { border-color: var(--err); background: #fbeceb; box-shadow: inset 4px 0 0 var(--err); }
.devis__legal { font-size: 0.86rem; color: var(--soft); }
.devis__err { margin: 0 0 14px; padding: 12px 14px; border: 2px solid var(--err); background: #fbeceb; color: var(--err); font-weight: 700; }
.devis__ok { margin-top: 14px; padding: 14px; border: 2px solid var(--ink); background: var(--plaster); }
.devis__ok p:last-child, .devis__nojs { margin: 0; }
.devis__nojs { margin-bottom: 14px; font-weight: 600; }
[hidden] { display: none !important; }
@media (min-width: 570px) {
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}
/* ---------- Pied de page ---------- */
.ft { padding: clamp(44px, 6vw, 80px) 0 28px; font-size: 0.96rem; }
.ft p { margin: 0 0 8px; }
.ft a { text-decoration: none; background: linear-gradient(var(--cu), var(--cu)) 0 100% / 0% 1px no-repeat, linear-gradient(rgb(245 239 228 / .3), rgb(245 239 228 / .3)) 0 100% / 100% 1px no-repeat; transition: background-size .34s var(--ease); }
.ft a:hover, .ft a:focus-visible, .ft a:active { color: inherit; background-size: 100% 1px, 100% 1px; }
.ft a:active { transition: none; }
.ft__tel { background: none !important; }
.ft__top { display: grid; gap: 10px; padding-bottom: 24px; border-bottom: 2px solid var(--white); }
.ft__brand { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 8.6vw, 4.4rem); line-height: 0.98; letter-spacing: -0.015em; margin: 0 !important; }
.ft__tel { font-family: var(--display); font-weight: 400; font-size: 1.5rem; text-decoration: none; color: var(--accent-hi); justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.ft__grid { display: grid; gap: 26px; padding: 28px 0; color: var(--on-dark); }
.ft__grid a { display: inline-block; padding-block: 5px; }
.ft__h { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--white); margin-bottom: 10px !important; }
.ft__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ft__legal { display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line-d); font-size: 0.86rem; color: var(--on-dark); }
.ft__legal a { display: inline-block; padding-block: 8px; }
@media (min-width: 800px) {
  .ft__top { grid-template-columns: 1fr auto; align-items: end; }
  .ft__tel { font-size: 2rem; }
  .ft__grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; column-gap: 48px; }
  .ft__about { max-width: 34ch; }
  .ft__legal { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Barre fixe mobile ---------- */
/* Barre de service mobile, permanente : [Menu] [Appeler, plein cuivre, le plus large] [Devis par écrit]. */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 78px 1.5fr 1fr; background: var(--ink) var(--grain-d); padding-bottom: env(safe-area-inset-bottom); transition: transform .42s var(--ease); --cu: var(--accent-hi); }
.dock::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent-hi); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease) .1s; }
.nav-open .dock::before { transform: scaleX(1); transition-delay: 0s; }
.dock__slot { border-right: 1px solid rgb(245 239 228 / .16); }
html:not(.js) .dock { grid-template-columns: 1.5fr 1fr; }
html:not(.js) .dock__slot { display: none; }
.dock__btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 6px 12px; color: var(--plaster); font-weight: 700; font-size: .95rem; line-height: 1.15; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background-color .2s; }
.dock__btn--tel { background: var(--copper); justify-content: flex-start; }
.dock__btn--tel span { font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.dock__btn--devis { justify-content: space-between; }
.dock__btn:hover { color: var(--plaster); }
.dock__btn--tel:active { background: #6c3914; transition: none; }
.dock__btn--devis:active { background: rgb(245 239 228 / .08); transition: none; }
.dock__btn:active .i-arrow { transform: translateX(5px); transition: none; }
.dock__btn small { display: block; margin-bottom: 3px; font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .88; }
.ft { padding-bottom: 92px; }
@media (min-width: 960px) {
  .dock { display: none; }
  .ft { padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
/* Prestations */
.crumbs { font-size: .88rem; color: var(--soft); padding-block: 15px; }
.shero { border-bottom: 1px solid var(--line); }
.shero__in { align-items: center; padding: 12px 0 var(--pad); }
.shero h1 { max-width: 17ch; font-size: clamp(2.7rem, 6.35vw, 5.6rem); }
.shero__lead { margin: 20px 0; max-width: 49ch; }
.shero figure { width: min(100%,var(--photo-max)); }
.shero img { width: 100%; aspect-ratio: 1.42; object-fit: cover; }
.service-text { padding-block: var(--pad); align-items: start; }
.sec { max-width: 65ch; }
.sec + .sec { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.sec h2, .tips h2 { font-size: clamp(1.65rem, 2.6vw, 2.55rem); }
.marks { list-style: disc; padding-left: 1.2em; }
.marks li, .tips li { margin-bottom: .45em; }
.marks + p { margin-top: 12px; }
.tips { padding: clamp(20px, 3vw, 36px); background: var(--plaster-2) var(--grain); }
.tips ol { padding-left: 1.35em; margin-top: 1.15em; }
.sgal { padding-bottom: var(--pad); }
.sgal > div { margin-top: 24px; display: flex; gap: 24px 3%; flex-wrap: wrap; }
.sgal figure { width: min(47%,230px); }
.sgal img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.local { background: var(--plaster-2) var(--grain); padding-block: var(--pad); }
.local h2 { max-width: 23ch; }
.local-map { display: inline-block; margin-left: 16px; }
.others { padding-block: 32px; }
.others p { font-weight: 650; margin-bottom: 8px; }
.others__list { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.others__list a { display: inline-flex; align-items: center; min-height: 40px; }
@media (min-width: 840px) {
  .shero__in { grid-template-columns: 1.2fr .8fr; gap: 7%; padding-top: 28px; }
  .shero figure { justify-self: end; }
  .service-text { grid-template-columns: 1.4fr .8fr; gap: 10%; }
}
/* ---------- Pages légales et 404 ---------- */
.slim { border-bottom: 2px solid var(--ink); padding-block: 14px clamp(28px, 5vw, 56px); }
.slim h1 { font-size: clamp(2.05rem, 8.6vw, 4.1rem); margin: 0; }
.slim--404 { padding-top: clamp(32px, 6vw, 72px); }
.slim--404 h1 { margin-bottom: 16px; }
.slim__lead { color: var(--soft); font-size: 1.1rem; margin-bottom: 24px; }
.prose { padding-block: clamp(32px, 5vw, 72px) var(--pad); }
.prose__in { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 1.5em 0 0.5em; padding-top: 18px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose a { overflow-wrap: anywhere; }
.prose a:hover { color: var(--accent); }
.todo { padding: 12px 14px; border-left: 4px solid var(--ink); background: var(--plaster-2); color: var(--soft); }

/* ---------- Accueil : scène défilée ----------
   Version de base (sans JS, animations réduites, navigateur ancien) : l'accueil, puis trois situations
   en cartes photo. La version animée (html.motion, plus bas) réutilise les mêmes éléments dans une scène épinglée. */
.cover__ph { position: relative; overflow: hidden; }
.scene__stage {
  background-color: var(--plaster);
  background-image: radial-gradient(ellipse 60% 70% at 88% 34%, rgb(214 160 112 / .2), transparent 70%),
    radial-gradient(ellipse 50% 60% at 4% 100%, rgb(44 74 99 / .08), transparent 70%), var(--grain);
}
.scene__target, .scene__frame, .scene__end { display: none; }
.scene__cases { width: min(calc(100% - 2 * var(--gut)), var(--wrap)); margin: 0 auto; padding: var(--pad) 0 0; list-style: none; display: grid; gap: 34px; }
.case__ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case__txt { margin-top: 12px; }
.case__line { margin: 0; font: 400 clamp(1.7rem, 3vw, 2.3rem)/1.02 var(--display); letter-spacing: -.045em; }
.case__line em { color: var(--copper); }
.case__card { margin: 8px 0 2px; max-width: 40ch; color: var(--soft); }
.case__more { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-weight: 600; color: inherit; text-underline-offset: 5px; }
@media (min-width: 840px) {
  .scene__cases { grid-template-columns: repeat(3, 1fr); gap: 3.2%; }
  .case__ph img { aspect-ratio: 4 / 5; }
}

/* ---------- Registre d'actions (accueil, fin de scène, pages métier) ----------
   Deux lignes réglées comme une fiche : « Par téléphone » (numéro en grand, l'action immédiate) et « Par écrit » (la demande de devis).
   Geste : le filet cuivre se trace sur la règle, puis la flèche avance ; immédiat à la pression. */
.cta-row.ledger { display: grid; gap: 0; width: 100%; max-width: 540px; border-top: 1px solid color-mix(in srgb, currentColor 55%, transparent); }
.ledger__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k a" "v a"; align-items: center; column-gap: 14px; row-gap: 2px;
  padding: 13px 0 12px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  background: linear-gradient(color-mix(in srgb, currentColor 28%, transparent), color-mix(in srgb, currentColor 28%, transparent)) 0 100% / 100% 1px no-repeat,
    linear-gradient(var(--cu), var(--cu)) 0 100% / 0% 2px no-repeat;
  transition: background-size .5s var(--ease) .1s;
}
.ledger__k { grid-area: k; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cu); }
.ledger__v { grid-area: v; font: 400 1.32rem/1.1 var(--display); letter-spacing: -.025em; }
.ledger__row.btn--call .ledger__v { font-size: clamp(1.9rem, 3.2vw, 2.55rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ledger__row .i-arrow { grid-area: a; width: 1.3em; height: 1.3em; }
.ledger__row:hover { color: inherit; }
.ledger__row:focus-visible, .ledger__row:active { background-size: 100% 1px, 100% 2px; transition-delay: 0s; }
.ledger__row:focus-visible .i-arrow, .ledger__row:active .i-arrow { transform: translateX(6px); transition-delay: .16s; }
.ledger__row:active, .ledger__row:active .i-arrow { transition: none; }
@media (hover: hover) {
  .ledger__row:hover { background-size: 100% 1px, 100% 2px; transition-delay: 0s; }
  .ledger__row:hover .i-arrow { transform: translateX(6px); transition-delay: .16s; }
}
@media (min-width: 600px) {
  .ledger__row { grid-template-columns: 9.5em minmax(0, 1fr) auto; grid-template-areas: "k v a"; align-items: baseline; padding: 16px 0 15px; }
}

/* ---------- Scène animée ----------
   Une seule scène plein écran, épinglée (sticky) le temps de sa piste. src/scene.mjs calcule la progression réelle
   du défilement et pose des variables (0 → 1) : --c sortie du texte, --a cadre, --g fond, --l phrases, --idx phrase
   active, --w/--z photo de chaque prestation, --e invitation finale. Tout est continu et réversible. */
@media (prefers-reduced-motion: no-preference) {
  html.motion .scene { --step: 30svh; --anchor: calc(50% - 110px); }
  html.motion .scene__track { position: relative; height: 340vh; height: 340svh; }
  html.motion .scene__stage {
    position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; border-bottom: 0;
  }
  /* Avant le chargement de la texture seulement : fondu de couleur simple (le fond grené n'est jamais repeint en mouvement). */
  html.motion:not(.scene-ready) .scene__stage {
    background-image: none; background-color: color-mix(in oklab, var(--slate) calc(var(--g, 0) * 100%), var(--plaster));
  }
  /* Fond minéral : l'ardoise (texture originale, scripts/build-texture.py) apparaît avec le fond sombre ; un halo latéral
     chaud, texturé par la pierre qu'il éclaire, se déplace avec la photo active et l'invitation finale.
     Deux couches fixes promues (will-change) : seules leur opacité et leur translation changent, rien n'est repeint ni filtré. */
  html.scene-ready .scene__stage::before, html.scene-ready .scene__stage::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  }
  /* Le halo seul se déplace (calque promu léger) ; la pierre reste fixe : un grand calque texturé promu et déplacé
     coûtait jusqu'à 63 images > 50 ms sur un défilement à CPU ×4 (mesuré), contre 0 ainsi. */
  html.scene-ready .scene__stage::after { inset: -6% -4%; will-change: opacity, transform; }
  html.scene-ready .scene__stage::before {
    background: linear-gradient(90deg, rgb(8 13 19 / .45), transparent 48%) var(--slate);
    opacity: calc(var(--g, 0) * 1.8); /* la pierre arrive avant la fin du fondu : pas de palier gris */
  }
  /* L'ardoise n'est demandée qu'au premier défilement (invisible à 0) : elle ne concurrence pas le premier écran. */
  html.scene-moved .scene__stage::before {
    background: linear-gradient(90deg, rgb(8 13 19 / .45), transparent 48%),
      var(--slate) image-set(url(/img/ardoise-1600.avif) type("image/avif"), url(/img/ardoise-1600.webp) type("image/webp")) center / cover;
  }
  html.scene-ready .scene__stage::after {
    background:
      radial-gradient(ellipse 40% 78% at 64% 50%, rgb(214 150 96 / .24), rgb(190 120 72 / .09) 48%, transparent 76%),
      radial-gradient(ellipse 34% 40% at 98% 10%, rgb(170 196 220 / .08), transparent 70%);
    opacity: calc(var(--g, 0) * (.82 + var(--e, 0) * .18));
    transform: translate3d(calc(var(--idx, 0) * -2.2vw), calc(var(--idx, 0) * 4svh - var(--e, 0) * 3svh), 0);
  }
  html.motion .scene__stage > .intro__in { position: relative; z-index: 1; }
  /* 1. Le texte d'accueil monte et s'efface ; le détail et la légende partent avec lui. */
  html.motion .intro__copy, html.motion .cover figcaption {
    transform: translate3d(0, calc(var(--c, 0) * -80svh), 0); opacity: calc(1 - var(--c, 0) * 1.5);
  }
  html.motion .detail { transform: translate3d(calc(var(--c, 0) * 28px), calc(var(--c, 0) * -34svh), 0); opacity: calc(1 - var(--c, 0) * 1.8); }
  html.motion .scene__stage:not([data-phase="intro"]) .intro__copy { pointer-events: none; }
  /* 2. Le cadre : à 0, exactement la photo d'accueil ; il s'agrandit jusqu'au grand cadre (géométrie posée par JS). */
  html.motion .scene__target { display: block; position: absolute; visibility: hidden; pointer-events: none; }
  html.scene-ready .scene__frame { display: block; position: absolute; left: 0; top: 0; z-index: 2; overflow: hidden; contain: strict; }
  html.scene-ready .cover__ph { opacity: calc(1 - var(--a, 0) * 1000); }
  html.motion .scene__base, html.motion .scene__layer, html.motion .scene__port { position: absolute; inset: 0; }
  html.motion .scene__frame picture, html.motion .scene__frame img { display: block; width: 100%; height: 100%; }
  html.motion .scene__frame img { object-fit: cover; }
  html.motion .scene__land img { object-position: 50% 45%; }
  /* Même cadrage que la photo paysage (bande 13–58 % de la photo portrait), puis toute la hauteur du geste. */
  html.motion .scene__port img { object-position: 50% 26.3%; }
  /* 3. Chaque photo de prestation monte dans le cadre. */
  html.motion .scene__layer { clip-path: inset(calc((1 - var(--w, 0)) * 100%) 0 0 0); }
  /* Profondeur dans le cadre (comme la photo du hero et la galerie d'Assia) : la photo glisse plus lentement que sa montée
     et se resserre ; la marge de l'échelle (≥ 1,08) couvre le glissement, aucun bord n'apparaît. */
  html.motion .scene__layer img { transform: translate3d(0, calc((.5 - var(--z, 0)) * 7%), 0) scale(calc(1.16 - var(--z, 0) * .08)); transform-origin: 50% 50%; }
  /* 4. Les trois situations : une colonne de phrases qui défile, la phrase active en pleine lumière. */
  html.motion .scene__cases {
    position: absolute; z-index: 3; margin: 0; padding: 0; width: auto; display: block; color: var(--plaster); pointer-events: none;
    opacity: calc(var(--l, 0) * (1 - var(--e, 0)));
    transform: translate3d(0, calc((1 - var(--l, 0)) * 16svh - var(--e, 0) * 10svh), 0);
  }
  html.motion .case { position: absolute; left: 0; right: 0; top: var(--anchor); opacity: var(--o, .2); transform: translate3d(0, calc((var(--k) - var(--idx, 0)) * var(--step)), 0) scale(calc(.8 + (var(--o, .2) - .2) * .25)); transform-origin: 0 0; }
  html.motion .case__ph { display: none; }
  html.motion .case__txt { margin: 0; }
  html.motion .case__line { font-size: clamp(2.4rem, 4.9vw, 5.2rem); line-height: .98; letter-spacing: -.055em; }
  html.motion .case__line em { color: var(--accent-hi); }
  html.motion .case__card, html.motion .case__more { opacity: var(--s, 0); color: var(--on-dark); }
  html.motion .case__card { margin-top: 14px; font-size: 1.05rem; }
  html.motion .case__more { color: var(--accent-hi); --cu: var(--accent-hi); }
  html.motion .case[data-on] .case__more { pointer-events: auto; }
  /* 5. L'invitation à appeler prend la place des phrases ; puis la page reprend son cours. */
  html.motion .scene__end {
    display: block; position: absolute; z-index: 3; color: var(--plaster); pointer-events: none;
    opacity: var(--e, 0); transform: translate3d(0, calc((1 - var(--e, 0)) * 12svh), 0);
  }
  html.motion .scene__stage[data-phase="end"] .scene__end { pointer-events: auto; }
  html.motion .scene__end p { margin: 0 0 22px; font: 400 clamp(1.9rem, 3.4vw, 3.3rem)/1.04 var(--display); letter-spacing: -.045em; max-width: 16ch; }
  html.motion .scene__end .ledger { color: var(--plaster); max-width: 460px; }

  /* Grand écran : phrases à gauche, cadre à droite, alignés sur la grille du site. */
  @media (min-width: 840px) {
    html.motion .scene { --edge: max(var(--gut), calc((100vw - var(--wrap)) / 2)); }
    html.motion .scene__target { right: var(--edge); top: 8svh; height: 84svh; width: min(40vw, 640px, 76svh); }
    html.motion .scene__cases, html.motion .scene__end { left: var(--edge); width: calc(100vw - 2 * var(--edge) - min(40vw, 640px, 76svh) - 5vw); }
    html.motion .scene__cases { top: 0; bottom: 0; }
    html.motion .scene__port img { object-position: 50% 25.4%; }
    html.motion .scene__end { top: 50%; margin-top: -120px; }
  }
  /* Mobile : cadre en haut, une phrase à la fois en dessous (glisse de bas en haut), barre d'appel visible. */
  @media (max-width: 839px) {
    html.motion .scene { --step: calc(52svh - 96px); --anchor: 0px; }
    html.motion .scene__track { height: 320vh; height: 320svh; }
    html.motion .scene__target { left: var(--gut); right: var(--gut); top: 14px; height: 48svh; }
    html.motion .scene__cases, html.motion .scene__end { left: var(--gut); right: var(--gut); top: calc(48svh + 30px); }
    html.motion .scene__cases { bottom: 66px; overflow: hidden; }
    html.motion .case__line { font-size: clamp(1.85rem, 8.6vw, 2.6rem); }
    html.motion .case__card { margin-top: 8px; font-size: .95rem; }
    html.motion .scene__end p { font-size: clamp(1.5rem, 6.8vw, 2.1rem); margin-bottom: 14px; }
    html.scene-ready .scene__stage::before { background: linear-gradient(0deg, rgb(8 13 19 / .28), transparent 46%) var(--slate); }
    html.scene-moved .scene__stage::before {
      background: linear-gradient(0deg, rgb(8 13 19 / .28), transparent 46%),
        var(--slate) image-set(url(/img/ardoise-1600.avif) type("image/avif"), url(/img/ardoise-1600.webp) type("image/webp")) 30% 50% / cover;
    }
    html.scene-ready .scene__stage::after {
      background:
        radial-gradient(ellipse 90% 44% at 78% 40%, rgb(214 150 96 / .24), rgb(190 120 72 / .08) 50%, transparent 78%);
      transform: translate3d(0, calc(var(--idx, 0) * 2svh), 0);
    }
  }
}
