/* =====================================================================
   MEETORIA — La maison des projets
   Direction : « La planche du dessinateur »
   Papier calque · trame millimétrée · lignes de cote · ferronnerie de Nancy
   Type : Bricolage Grotesque (titres) · IBM Plex Mono (cotes) · Inter (texte)
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------- */
:root {
  /* Encre & papier */
  --ink:        #16233D;   /* marine — encre du dessin */
  --ink-2:      #24365A;
  --ink-soft:   #51607E;
  --ink-mute:   #8A93A6;

  --paper:      #F3ECDC;   /* papier calque chaud */
  --paper-2:    #EBE1CC;   /* panneau plus profond */
  --paper-hi:   #FBF6EA;   /* feuille claire (formulaires) */

  /* Or / ferronnerie dorée */
  --gild:       #B9822B;
  --gild-2:     #D9A94E;
  --gild-deep:  #8E621B;

  /* Fonctionnel */
  --line:       rgba(22, 35, 61, .18);   /* trait fin à l'encre */
  --line-soft:  rgba(22, 35, 61, .10);
  --grid:       rgba(22, 35, 61, .055);   /* trame millimétrée sur papier */
  --grid-gold:  rgba(217, 169, 78, .13);  /* trame sur fond marine */
  --on-ink:     #F3ECDC;
  --on-ink-mute: rgba(243, 236, 220, .70);
  --danger:     #B23A2E;
  --ok:         #2F7A4F;
  --ring:       rgba(185, 130, 43, .6);

  /* Type */
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.25rem);

  --shadow-plate: 0 1px 0 rgba(255,255,255,.5), 0 18px 40px -24px rgba(22,35,61,.5);
  --shadow-lift:  0 30px 60px -30px rgba(22,35,61,.55);

  --ease: cubic-bezier(.2, .7, .3, 1);
  --z-header: 100;
  --z-toast: 1000;
}

/* ---------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--paper);
  /* trame millimétrée globale, très discrète */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Icônes du sprite : trait, pas de remplissage
   (l'héritage fill/stroke ne passe pas à travers <use>, on le fixe ici) */
.icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .5em;
}
p { margin: 0 0 1rem; }

::selection { background: var(--gild-2); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--gild); outline-offset: 3px; }

/* ---------------------------------------------------------------------
   3. Layout
   --------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Fond marine « bleu de plan » avec trame dorée */
.ink-section {
  background-color: var(--ink);
  color: var(--on-ink);
  background-image:
    linear-gradient(var(--grid-gold) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-gold) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px;
}
.ink-section h1, .ink-section h2, .ink-section h3, .ink-section h4 { color: var(--paper); }
.paper-2-section { background: var(--paper-2); background-image: none; }

.text-center { text-align: center; }
.measure { max-width: 46ch; }

/* Étiquette de planche (mono) — remplace l'« eyebrow » générique */
.plate {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gild-deep);
}
.plate::before { content: ""; width: 9px; height: 9px; background: var(--gild); flex: none; }
.ink-section .plate { color: var(--gild-2); }
.ink-section .plate::before { background: var(--gild-2); }

/* Ligne de cote (dimension line) — dispositif structurel signature */
.dimline {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1.5rem 0;
}
.dimline::before, .dimline::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
}
/* petits traits de rappel aux extrémités */
.dimline::before { box-shadow: 0 -3px 0 -1px var(--line); }
.dimline .tick { position: relative; }
.dimline .tick::before, .dimline .tick::after {
  content: "";
  position: absolute; top: 50%; width: 1px; height: 8px;
  background: var(--line); transform: translateY(-50%);
}
.ink-section .dimline { color: var(--on-ink-mute); }
.ink-section .dimline::before, .ink-section .dimline::after { background: rgba(217,169,78,.35); }

/* En-tête de section */
.head { max-width: 720px; }
.head--center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-top: .6rem; }
.head p { color: var(--ink-soft); font-size: 1.08rem; max-width: 54ch; }
.head--center p { margin-inline: auto; }
.ink-section .head p { color: var(--on-ink-mute); }

/* Volute de ferronnerie (motif Place Stanislas / École de Nancy) */
.ironwork { color: var(--gild); opacity: .9; }
.ironwork svg { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------------
   4. Boutons — rectangles « dessinés », pas de pilule
   --------------------------------------------------------------------- */
.btn {
  --bg: var(--gild);
  --fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  min-height: 52px;
  border: 1px solid var(--bg);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 -1px rgba(22,35,61,.9); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .icon { width: 18px; height: 18px; flex: none; }

.btn--gold { --bg: var(--gild); --fg: #fff; }
.btn--gold:hover { --bg: var(--gild-deep); box-shadow: 6px 6px 0 -1px var(--ink); }

.btn--ink { --bg: var(--ink); --fg: var(--paper); }
.btn--ink:hover { box-shadow: 6px 6px 0 -1px var(--gild); }

.btn--line {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--ink);
}
.btn--line:hover { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 -1px var(--gild); }

.ink-section .btn--line { --fg: var(--paper); border-color: rgba(217,169,78,.6); }
.ink-section .btn--line:hover { background: var(--gild); color: #fff; border-color: var(--gild); box-shadow: 6px 6px 0 -1px rgba(0,0,0,.4); }

.btn--lg { min-height: 58px; padding: 1.15rem 1.9rem; font-size: .86rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------------
   5. En-tête
   --------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { border-bottom-color: var(--ink); }

.nav { display: flex; align-items: center; gap: 1.5rem; height: 78px; }

.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .04em;
  color: var(--ink);
}
.brand__word b { color: var(--gild); font-weight: 800; }
.brand__tag {
  font-family: var(--font-mono);
  font-size: .58rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gild-deep); margin-top: .38rem;
}

.nav__spacer { flex: 1; }
.nav__links { display: flex; align-items: center; gap: .2rem; }
.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: .6rem .8rem;
  transition: color .18s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::before { content: "["; color: var(--gild); margin-right: .15rem; }
.nav__link.is-active::after  { content: "]"; color: var(--gild); margin-left: .15rem; }

.nav__cta { display: inline-flex; align-items: center; gap: .75rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 940px) {
  .nav__links {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-hi);
    border-bottom: 1px solid var(--ink);
    padding: .5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow-lift);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: .95rem .4rem; font-size: .9rem; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: inline-flex; }
  .nav__cta .btn .hide-sm { display: none; }
}
@media (max-width: 520px) { .brand__tag { display: none; } .nav { height: 66px; } .nav__links { inset-block-start: 66px; } }

/* ---------------------------------------------------------------------
   6. HÉROS — la planche
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* repère d'angle (cartouche de plan) */
.hero__corner {
  position: absolute; top: 0; right: 0; width: 120px; height: 120px;
  color: var(--gild); opacity: .85; pointer-events: none;
}
@media (max-width: 700px) { .hero__corner { width: 78px; height: 78px; } }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero__ref {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gild-deep);
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem;
  margin-bottom: 1.5rem;
}
.hero__ref span { position: relative; padding-left: 1.1rem; }
.hero__ref span::before { content: "+"; position: absolute; left: 0; color: var(--gild); }

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero h1 .drawn {
  color: var(--gild-deep);
  position: relative;
  white-space: nowrap;
}
/* soulignement « à main levée » sous le mot clé */
.hero h1 .drawn::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -.08em; height: .34em;
  background: no-repeat center/100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='16' viewBox='0 0 300 16' fill='none'%3E%3Cpath d='M2 11C60 4 140 3 298 8' stroke='%23B9822B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.hero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 1.5rem 0 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero__note {
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
}
.hero__note span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__note .icon { width: 15px; height: 15px; color: var(--gild); }

/* Dessin de façade (élévation blueprint) */
.elevation { position: relative; }
.elevation svg { width: 100%; height: auto; display: block; overflow: visible; }
.elevation .callout-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  fill: var(--ink);
}
.elevation .callout-num { fill: var(--gild-deep); font-weight: 600; }
.elevation .draw { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.elevation .draw-fine { stroke: var(--ink); stroke-width: .8; fill: none; opacity: .6; }
.elevation .gild { stroke: var(--gild); stroke-width: 1.4; fill: none; }
.elevation .gild-dot { fill: var(--gild); }
.elevation .dim { stroke: var(--gild-deep); stroke-width: .8; fill: none; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  /* le dessin passe SOUS le texte sur mobile */
  .elevation { order: 1; max-width: 460px; margin-inline: auto; }
}

/* Le dessin d'élévation quand il illustre une section (ancrage local) */
.elevation--inline { max-width: 520px; margin-inline: auto; }

/* Bandeau de cotes sous le héros */
.spec-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.spec-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec {
  padding: 1.5rem clamp(.75rem, 2vw, 1.5rem);
  border-right: 1px solid var(--line);
}
.spec:last-child { border-right: 0; }
.spec__k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gild-deep); }
.spec__v { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; margin-top: .35rem; }
.spec__d { font-size: .86rem; color: var(--ink-soft); margin-top: .1rem; }
@media (max-width: 700px) {
  .spec-strip .container { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(2) { border-right: 0; }
  .spec:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------------------------------------------------------------------
   7. NOMENCLATURE (domaines) — la légende du plan
   --------------------------------------------------------------------- */
.nomen { border-top: 1px solid var(--ink); margin-top: 2.5rem; }
.nomen__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem .5rem;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s var(--ease), padding-left .25s var(--ease);
  cursor: default;
}
.nomen__row:hover { background: var(--paper-hi); padding-left: 1.25rem; }
.nomen__ref { font-family: var(--font-mono); font-size: .8rem; color: var(--gild-deep); letter-spacing: .08em; }
.nomen__main { display: flex; align-items: center; gap: 1.1rem; }
.nomen__main .icon { width: 30px; height: 30px; color: var(--ink); flex: none; stroke-width: 1.4; }
.nomen__title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; }
.nomen__desc { color: var(--ink-soft); font-size: .98rem; max-width: 46ch; }
.nomen__row:hover .nomen__main .icon { color: var(--gild); }
@media (max-width: 760px) {
  .nomen__row { grid-template-columns: auto 1fr; row-gap: .6rem; }
  .nomen__ref { grid-row: 1; }
  .nomen__desc { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------------
   8. Symbole (repère de dessin) — remplace la pastille ronde
   --------------------------------------------------------------------- */
.mark {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper-hi);
  flex: none;
}
.mark .icon { width: 26px; height: 26px; stroke-width: 1.4; }
.ink-section .mark { border-color: rgba(217,169,78,.4); background: transparent; color: var(--gild-2); }
.mark--gild { border-color: var(--gild); color: var(--gild-deep); }

/* ---------------------------------------------------------------------
   9. Manifeste (fond marine) + engagements
   --------------------------------------------------------------------- */
.manifesto { max-width: 60ch; }
.manifesto__quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  line-height: 1.12; letter-spacing: -.02em;
  color: var(--paper);
}
.manifesto__quote em { font-style: normal; color: var(--gild-2); }

.pledges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 3rem; border-top: 1px solid rgba(217,169,78,.3); }
.pledge { padding: 1.75rem 1.25rem 1.75rem 0; border-right: 1px solid rgba(217,169,78,.18); }
.pledge:last-child { border-right: 0; }
.pledge__n { font-family: var(--font-mono); font-size: .72rem; color: var(--gild-2); letter-spacing: .12em; }
.pledge h3 { font-size: 1.28rem; margin: .9rem 0 .4rem; color: var(--paper); }
.pledge p { color: var(--on-ink-mute); font-size: .92rem; margin: 0; }
@media (max-width: 820px) { .pledges { grid-template-columns: 1fr 1fr; } .pledge { padding-right: 1.25rem; } .pledge:nth-child(2) { border-right: 0; } }
@media (max-width: 480px) { .pledges { grid-template-columns: 1fr; } .pledge { border-right: 0; border-bottom: 1px solid rgba(217,169,78,.18); } }

/* ---------------------------------------------------------------------
   10. Charte — bloc « visa/tampon »
   --------------------------------------------------------------------- */
.charter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.charter__item { padding: 1.75rem 1.25rem; border: 1px solid var(--line); background: var(--paper-hi); position: relative; }
.charter__item::before {
  content: attr(data-n);
  position: absolute; top: .9rem; right: 1rem;
  font-family: var(--font-mono); font-size: .68rem; color: var(--gild-deep); letter-spacing: .1em;
}
.charter__item .mark { margin-bottom: 1rem; }
.charter__item h4 { font-size: 1.08rem; margin: 0 0 .3rem; }
.charter__item p { font-size: .9rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .charter { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .charter { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   11. Méthode — séquence numérotée (ordre = information réelle)
   --------------------------------------------------------------------- */
.steps { border-top: 1px solid var(--ink); margin-top: 2.5rem; }
.step {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 2.25rem .5rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--gild); letter-spacing: -.03em; line-height: .9; }
.step__body { display: grid; gap: .5rem; }
.step__head { display: flex; align-items: center; gap: 1rem; }
.step__head .icon { width: 26px; height: 26px; color: var(--ink); stroke-width: 1.4; }
.step h3 { font-size: 1.6rem; margin: 0; }
.step p { color: var(--ink-soft); margin: 0; max-width: 60ch; }
.step__meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gild-deep); margin-top: .4rem; }
@media (max-width: 600px) { .step { grid-template-columns: 1fr; gap: .75rem; } .step__n { font-size: 2.6rem; } }

/* Rangées méthode alternées */
.rows { display: grid; gap: 0; }
.method-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
.method-row:last-child { border-bottom: 0; }
.method-row:nth-child(even) .method-row__media { order: -1; }
.method-row__media { aspect-ratio: 5/4; border: 1px solid var(--ink); overflow: hidden; }
.method-row ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.method-row li { display: flex; gap: .7rem; align-items: baseline; font-size: .96rem; color: var(--ink-soft); }
.method-row li .icon { width: 16px; height: 16px; color: var(--gild); flex: none; align-self: center; }
@media (max-width: 820px) { .method-row { grid-template-columns: 1fr; } .method-row .method-row__media { order: -1; max-width: 520px; } }

/* ---------------------------------------------------------------------
   12. Local Nancy — ancrage ferronnerie
   --------------------------------------------------------------------- */
.local { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.local__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.local__gallery figure { margin: 0; border: 1px solid var(--ink); overflow: hidden; aspect-ratio: 3/4; }
.local__gallery figure:first-child { grid-row: span 2; aspect-ratio: 3/5; }
.local__points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .85rem; }
.local__points li { display: flex; gap: .8rem; align-items: flex-start; }
.local__points .icon { width: 20px; height: 20px; color: var(--gild); flex: none; margin-top: 3px; stroke-width: 1.4; }
@media (max-width: 820px) { .local { grid-template-columns: 1fr; } }

/* Placeholder photo — cadre de dessin */
.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(22,35,61,.05) 0 8px, transparent 8px 16px),
    var(--paper-2);
  color: var(--ink-mute); text-align: center; padding: 1rem;
}
.ph span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; }
.ph .icon { width: 26px; height: 26px; opacity: .5; }
.elevation-frame .ph, .ink-section .ph { background:
    repeating-linear-gradient(45deg, rgba(217,169,78,.06) 0 8px, transparent 8px 16px),
    rgba(255,255,255,.03); color: rgba(243,236,220,.5); }

/* ---------------------------------------------------------------------
   13. Contact + formulaire
   --------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact__list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; align-items: center; gap: 1rem; }
.contact__list .mark { flex: none; }
.contact__k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gild-2); }
.ink-section .contact__k { color: var(--gild-2); }
.contact__v { color: var(--paper); }
.contact__v.big { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; }

.contact__trust {
  margin-top: 1.75rem; display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gild-2); border: 1px solid rgba(217,169,78,.4); padding: .65rem 1rem;
}
.contact__trust .icon { width: 16px; height: 16px; }

/* Feuille formulaire */
.form-card { background: var(--paper-hi); border: 1px solid var(--ink); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-plate); }
.form-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.form-card h3 { font-size: 1.5rem; margin: 0; }
.form-card__ref { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gild-deep); }
.form-card__intro { color: var(--ink-soft); font-size: .92rem; margin: -.75rem 0 1.5rem; }

/* La fiche formulaire est claire même dans une section marine :
   on rétablit le bouton « ligne » foncé-sur-clair */
.form-card .btn--line { --fg: var(--ink); border-color: var(--ink); }
.form-card .btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 6px 6px 0 -1px var(--gild); }

.captcha { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.captcha__image { display: block; max-width: 100%; height: auto; border: 1px solid var(--ink); box-shadow: 4px 4px 0 -1px var(--gild); }
.captcha__refresh { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gild-deep); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.field label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.field label .req { color: var(--gild-deep); }
.field .hint { color: var(--ink-mute); text-transform: none; letter-spacing: 0; }

.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  padding: .85rem 1rem; min-height: 50px; width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
  appearance: none; border-radius: 0;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238E621B' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.75rem; cursor: pointer;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gild); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gild); box-shadow: 3px 3px 0 -1px var(--gild); background: #fff;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }

.field .error-msg { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; color: var(--danger); display: none; align-items: center; gap: .35rem; text-transform: uppercase; }
.field .error-msg .icon { width: 13px; height: 13px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fbeeec; }
.field.has-error .error-msg { display: flex; }

/* Mention d'information, affichée au-dessus du bouton d'envoi */
.form-notice {
  grid-column: 1 / -1;
  margin: .25rem 0 0;
  font-size: .82rem; line-height: 1.5; color: var(--ink-soft);
  padding-left: .9rem; border-left: 1px solid var(--line);
}
.form-notice a { color: var(--gild-deep); text-decoration: underline; text-underline-offset: 3px; }
.form-notice a:hover { color: var(--ink); }

.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: .25rem; }
.form-actions .sep { font-family: var(--font-mono); color: var(--ink-mute); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }

.btn.is-loading { pointer-events: none; opacity: .85; }
.btn .spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { display: none; text-align: center; padding: 1.5rem 1rem; }
.form-success.is-visible { display: block; animation: fadeUp .4s var(--ease); }
.form-success .check { width: 64px; height: 64px; margin: 0 auto 1.1rem; border: 1px solid var(--ok); color: var(--ok); display: grid; place-items: center; }
.form-success .check .icon { width: 32px; height: 32px; }
.form-success h3 { color: var(--ink); }
.form-success p { color: var(--ink-soft); }
.form.is-hidden { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   14. Bandeau appel
   --------------------------------------------------------------------- */
.callout { border: 1px solid var(--ink); background: var(--paper-hi); padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.callout h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.callout p { color: var(--ink-soft); margin: .35rem 0 0; }

/* ---------------------------------------------------------------------
   15. Page-hero (méthode/contact)
   --------------------------------------------------------------------- */
.page-hero { position: relative; border-bottom: 1px solid var(--line); background: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 26px 26px; overflow: hidden; }
.page-hero__inner { position: relative; padding-block: clamp(3rem, 6vw, 4.75rem); max-width: 820px; }
/* Variante à deux colonnes : le formulaire monte à côté du titre */
.page-hero__inner--split {
  /* on lève la limite de lecture du texte (820px) sans toucher
     à celle du conteneur, sous peine d'étaler le héros plein écran */
  max-width: var(--container);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.page-hero__inner--split .page-hero__text { max-width: 46ch; }
@media (max-width: 900px) { .page-hero__inner--split { grid-template-columns: 1fr; } }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -.03em; margin-top: .6rem; }
.page-hero p { color: var(--ink-soft); font-size: 1.12rem; max-width: 56ch; }
.breadcrumb { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--gild-deep); }
.breadcrumb span { color: var(--gild); margin: 0 .4rem; }

/* ---------------------------------------------------------------------
   16. Pied de page
   --------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-ink-mute); padding-block: clamp(3rem, 5vw, 4rem) 1.75rem; background-image: linear-gradient(var(--grid-gold) 1px, transparent 1px), linear-gradient(90deg, var(--grid-gold) 1px, transparent 1px); background-size: 30px 30px; }
.footer-iron { color: var(--gild); max-width: 200px; margin-bottom: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand .brand__word { color: var(--paper); }
.footer-brand p { max-width: 36ch; font-size: .92rem; margin-top: 1rem; }
.footer-col h4 { font-family: var(--font-mono); color: var(--gild-2); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col a, .footer-col span { font-size: .95rem; transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--gild-2); }
.footer-col .icon { width: 15px; height: 15px; color: var(--gild-2); vertical-align: -2px; margin-right: .4rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(217,169,78,.2); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; }
.footer-bottom .founder b { color: var(--gild-2); }

/* ---------------------------------------------------------------------
   17. Toast
   --------------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: .9rem 1.3rem; border: 1px solid var(--gild); display: flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: var(--z-toast); max-width: calc(100vw - 32px); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { width: 16px; height: 16px; color: var(--gild-2); flex: none; }

/* ---------------------------------------------------------------------
   18. Reveal
   --------------------------------------------------------------------- */
/* Armé seulement quand le script tourne (classe `js` posée dans <head>) :
   sans JavaScript, tout est visible d'emblée. Si le script démarre mais que
   le module n'aboutit pas (`js-ready` absent), tout réapparaît après 3 s. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js:not(.js-ready) .reveal { animation: reveal-safety 0s linear 3s forwards; }
@keyframes reveal-safety { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
   19. Avis clients — rotation ligne à ligne (un avis à la fois)
   --------------------------------------------------------------------- */
.section.reviews { padding-block: clamp(1.25rem, 3vw, 2.5rem); }
.reviews-head { display: flex; align-items: center; justify-content: center; gap: .75rem 1.25rem; flex-wrap: wrap; margin-bottom: .85rem; }
.reviews-head .rating { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gild-2); display: inline-flex; align-items: center; gap: .5rem; }
.rev-rotator { position: relative; display: grid; min-height: 3rem; align-items: center; }
.rev-line {
  grid-area: 1 / 1; margin: 0;
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  display: flex; align-items: center; justify-content: center; gap: .9rem 1.25rem;
  flex-wrap: wrap; text-align: center; pointer-events: none;
}
/* l'avis entrant attend que le sortant se soit effacé (pas de superposition) */
.rev-line.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .35s; }
.rev-line__stars { color: var(--gild-2); letter-spacing: 3px; font-size: 1rem; flex: none; }
.rev-line__quote { color: var(--on-ink); font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 2.4vw, 1.65rem); line-height: 1.3; }
.rev-line__author { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gild-2); flex: none; }
@media (prefers-reduced-motion: reduce) { .rev-line { transition: opacity .001ms; transform: none; } }

/* ---------------------------------------------------------------------
   19. Pages légales
   --------------------------------------------------------------------- */
.legal { max-width: 70ch; }
.legal h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin-top: 2.5rem;
}
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-soft); }
.legal a { color: var(--gild-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }
.legal ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.legal li {
  position: relative; padding-left: 1.4rem; color: var(--ink-soft);
}
.legal li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border: 1px solid var(--gild); background: var(--paper);
}
.legal strong { color: var(--ink); }
.legal__updated {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-mute);
}

/* Liens légaux du pied de page */
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; }
.footer-legal a, .footer-legal button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: none; transition: color .18s var(--ease);
}
.footer-legal a:hover, .footer-legal button:hover { color: var(--gild-2); }

/* ---------------------------------------------------------------------
   20. Bandeau de cookies
   --------------------------------------------------------------------- */
.cookie-bar {
  position: fixed;
  left: var(--gutter); right: var(--gutter); bottom: 20px;
  margin-inline: auto; max-width: 680px;
  /* Légèrement translucide : le bandeau laisse deviner la page sans la cacher.
     L'opacité ne descend pas plus bas : au-delà, le lien « En savoir plus »
     passe sous le seuil de lisibilité quand le bandeau flotte sur une section
     bleu nuit, ce qui reviendrait à rendre l'information légale moins
     accessible. Le flou garde le texte net quelle que soit la section qui
     défile dessous ; sans lui, on s'en tient au fond opaque. */
  background: color-mix(in srgb, var(--paper-hi) 95%, transparent);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-lift);
  padding: 1rem 1.15rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  z-index: calc(var(--z-toast) - 1);
}
.cookie-bar.is-visible { opacity: 1; transform: none; pointer-events: auto; }

@supports (backdrop-filter: blur(1px)) {
  .cookie-bar { backdrop-filter: blur(10px) saturate(130%); }
}

@supports not (backdrop-filter: blur(1px)) {
  .cookie-bar { background: var(--paper-hi); }
}
.cookie-bar__text { margin: 0; flex: 1 1 18rem; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.cookie-bar__text a { color: var(--gild-deep); text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar__actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.btn--sm { padding: .5rem .9rem; font-size: .72rem; }

@media (max-width: 560px) {
  .cookie-bar { bottom: 12px; padding: .9rem 1rem; }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__actions .btn { flex: 1; justify-content: center; }
}

/* Champ leurre du formulaire : hors écran plutôt que masqué, pour qu'un
   automate le trouve dans le code mais qu'aucun visiteur ne le voie. */
.form-trap {
  position: absolute !important;
  left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Avertissement en tête des pages légales tant qu'elles ne sont pas remplies */
.legal__todo {
  border: 1px solid var(--gild);
  background: rgba(217, 169, 78, .12);
  padding: 1rem 1.15rem;
  margin-bottom: 2rem;
  font-size: .92rem;
}
.legal__todo strong { color: var(--gild-deep); }

/* Légendes de photo */
.local__gallery figcaption,
.plan__legende {
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-mute); padding: .5rem .6rem; background: var(--paper);
}

/* Signature du développeur, en pied de page */
.footer-credit a { color: var(--on-ink-mute); transition: color .18s var(--ease); }
.footer-credit a:hover { color: var(--gild-2); }
.footer-credit sup { font-size: .7em; vertical-align: super; }

/* Réseaux sociaux, en pied de page */
.footer-social {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(217, 169, 78, .2);
}
.footer-social a {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: .76rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-ink-mute); transition: color .18s var(--ease);
}
.footer-social a:hover { color: var(--gild-2); }
.footer-social .icon { width: 18px; height: 18px; color: var(--gild); }

/* Avis renvoyant vers sa source */
.rev-line__author--lien {
  display: inline-flex; align-items: center; gap: .4rem;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(217, 169, 78, .5);
  transition: color .18s var(--ease);
}
.rev-line__author--lien:hover { color: var(--gild-2); }
.rev-line__author--lien .icon { width: 13px; height: 13px; }
