/* GlassLux · styles communes à toutes les pages.
   Le monde : du verre noir qui accroche la lumière. Fond noir vitre, platine pour le texte,
   or antique réservé à la lumière et à l'action. Tokens : DESIGN.md à la racine du repo. */

@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/bodoni-moda-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/bodoni-moda-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/bodoni-moda-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/jost-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/jost-latin-500-normal.woff2) format("woff2"); }

:root {
  --noir-vitre: #050505; --noir-profond: #0b0b0c; --graphite: #16171a; --ardoise: #26262a;
  --or-antique: #b48a45; --or-clair: #e0c68f; --or-profond: #8a6630; --champagne: #f2e2bd;
  --platine: #dfe1e4; --platine-ombre: #a3a7ac; --platine-faible: #8e9096; --eclat: #f09a28;
  --papier: #f3eee4; --encre: #16140f; --encre-douce: #4b463d;
  --hair: rgba(223, 225, 228, .12); --hair-or: rgba(180, 138, 69, .45);
  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --gutter: 24px;
  --header-h: 77px; /* hauteur de l'en-tête, filet compris */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 112px; --s7: 160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); scrollbar-color: #3a3a3e var(--noir-vitre); }
body { margin: 0; background: var(--noir-vitre); color: var(--platine); font-family: var(--sans); font-size: 18px; line-height: 1.65; letter-spacing: .01em; -webkit-font-smoothing: antialiased; caret-color: var(--or-antique); }
::selection { background: var(--or-antique); color: var(--noir-vitre); }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 1px solid var(--or-antique); outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-wrap: balance; }
/* Masques des lignes posés par SplitText : agrandis vers le bas pour ne pas couper les jambages (g, p, ç) */
.hero h1 > div, [data-reveal="lines"] > div { padding-bottom: .16em; margin-bottom: -.16em; }
p { margin: 0; text-wrap: pretty; }
.band { padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }
/* Règle du site : chaque section occupe au moins un écran sous l'en-tête, son contenu centré verticalement */
main > section, main.band { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }
main > section > .wrap, main.band > .wrap { width: 100%; }
.wrap { max-width: 1240px; margin-inline: auto; }

/* À SUPPRIMER AVANT MISE EN LIGNE DÉFINITIVE : repère des infos manquantes */
.todo { outline: 1px dashed var(--or-antique); outline-offset: 2px; background: rgba(180, 138, 69, .16); padding: 0 4px; }

/* Actions. Le bouton doré porte un reflet de verre qui suit le pointeur (--mx, posé par site.js). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 18px 30px; font: 500 14px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 0; border-radius: 2px; transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .12s var(--ease-out); }
.btn:active { transform: scale(.98); }
.btn-gold { --mx: 50%; color: var(--noir-vitre); background: radial-gradient(120px 60px at var(--mx) 0%, rgba(255, 250, 235, .45), transparent 70%), var(--or-antique); }
.btn-gold:hover { background: radial-gradient(140px 70px at var(--mx) 0%, rgba(255, 250, 235, .6), transparent 70%), var(--or-clair); }
.btn-line { border: 1px solid var(--hair-or); color: var(--platine); }
.btn-line:hover { border-color: var(--or-antique); color: var(--or-clair); }
.tel { font: 400 15px/1.4 var(--sans); letter-spacing: .03em; color: var(--platine-ombre); text-decoration: none; }
.tel b { display: block; font-weight: 500; font-size: 19px; letter-spacing: .06em; color: var(--platine); }
.tel:hover b { color: var(--or-clair); }

/* En-tête */
header.site { position: sticky; top: 0; z-index: 20; background: var(--noir-vitre); border-bottom: 1px solid var(--hair); transition: border-color .3s var(--ease-out); }
header.site.scrolled { border-bottom-color: rgba(180, 138, 69, .28); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 14px; }
header.site .wrap > .btn, nav.main .btn { padding: 14px 22px; font-size: 12px; transition: opacity .3s var(--ease-out), visibility .3s, background-color .2s var(--ease-out); }
header.site.at-devis .btn { opacity: 0; visibility: hidden; }
.brand img { height: 48px; width: auto; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 34px; font: 500 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
nav.main a.link { position: relative; text-decoration: none; color: var(--platine-ombre); padding-block: 14px; transition: color .2s var(--ease-out); }
nav.main a.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--or-antique); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
nav.main a.link:hover, nav.main a.link.is-here { color: var(--platine); }
nav.main a.link:hover::after, nav.main a.link.is-here::after { transform: scaleX(1); }
.burger { display: none; width: 48px; height: 48px; padding: 0; background: transparent; border: 1px solid var(--hair); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--or-antique); transition: transform .25s var(--ease-out), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 960px) {
  .brand img { height: 38px; }
  .burger { display: flex; }
  nav.main { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-block: 4px 20px; border-top: 1px solid var(--hair); }
  nav.main.open { display: flex; }
  nav.main a.link { padding-block: 18px; border-bottom: 1px solid var(--hair); font-size: 14px; color: var(--platine); }
  nav.main .btn { margin-top: 20px; padding: 18px; }
}
@media (max-width: 480px) { /* pages sans menu : logo et bouton tiennent sur une ligne */
  header.site .wrap:not(:has(nav.main)) { flex-wrap: nowrap; }
  header.site .wrap:not(:has(nav.main)) .brand img { height: 30px; }
  header.site .wrap > .btn { padding: 12px 14px; font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
}

/* Champs de formulaire : filet bas, il se dore au focus */
.field { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--or-antique); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); pointer-events: none; }
.field:focus-within::after { transform: scaleX(1); }
.field label { font: 500 13px/1 var(--sans); letter-spacing: .02em; color: var(--platine-faible); transition: color .2s var(--ease-out); }
.field:focus-within label { color: var(--or-clair); }
.field label small { font-size: 12px; letter-spacing: .1em; text-transform: none; }
.field input, .field textarea { background: transparent; border: 0; border-bottom: 1px solid #3c3c41; color: var(--platine); padding: 10px 0 12px; font: 400 18px/1.4 var(--sans); border-radius: 0; }
.field input:hover, .field textarea:hover { border-bottom-color: #5a5a60; }
.field input:focus, .field textarea:focus { outline: none; }
.field textarea { resize: vertical; min-height: 110px; }
.field ::placeholder { color: var(--platine-faible); }

/* Pied de page */
footer.site { padding-block: var(--s5) var(--s4); border-top: 1px solid var(--hair); }
footer.site .wrap { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: var(--s3) var(--s4); font-size: 13px; color: var(--platine-faible); }
footer.site img { width: 100%; max-width: 260px; height: auto; }
footer.site nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; padding-top: var(--s2); border-top: 1px solid var(--hair); }
footer.site nav > span { margin-left: auto; }
footer.site nav a { color: var(--platine-faible); padding-block: 12px; }
.foot-line { justify-self: end; text-align: right; color: var(--platine-ombre); font-size: 14px; }
@media (max-width: 760px) { footer.site .wrap { grid-template-columns: 1fr; } .foot-line { justify-self: start; text-align: left; } footer.site nav > span { margin-left: 0; flex-basis: 100%; padding-block: 8px; } }
.foot-line .where { white-space: nowrap; } /* « Var et Côte d'Azur · téléphone » ne se coupe jamais */
@media (max-width: 1180px) { .foot-line .what { display: block; } .foot-line .sep { display: none; } } /* deux lignes, sans point en tête */
.foot-line a { color: var(--platine); text-decoration: none; padding-block: 12px; white-space: nowrap; }
.foot-line a:hover { color: var(--or-clair); }
footer.site nav a:hover { color: var(--platine); }

/* Mentions légales */
.legal { padding-block: 88px 120px; }
.legal .wrap { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 16px; }
.legal h2 { position: relative; font-size: 1.6rem; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--hair); }
.legal p, .legal li { color: var(--platine-ombre); max-width: 68ch; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--platine); }
/* Le filet au-dessus de chaque titre se trace en or quand le titre apparaît (classe .in posée par site.js) */
.legal h2::before { content: ""; position: absolute; left: 0; top: -1px; width: 96px; height: 1px; background: var(--or-antique); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .js .legal h2::before { transform: scaleX(0); transition: transform 1.2s var(--ease-out) .25s; }
  .js .legal h2.in::before { transform: scaleX(1); }
}

/* Page merci */
.center { align-items: stretch; }
.center .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; max-width: 760px; }
.center h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -0.02em; }
.center h1 em { color: var(--or-clair); }
.center p { color: var(--platine-ombre); max-width: 52ch; }
.center .arc { width: min(100%, 560px); height: auto; overflow: visible; margin-bottom: -8px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
