/* ──────────────────────────────────────────────────────────────────────────
   Maçonnerie du Talagard — enduits à la chaux, pierre sèche.
   Salon-de-Provence.

   PARTI PRIS : la page est un mur. Elle se lit en ASSISES — des bandes
   horizontales de hauteur inégale, séparées par un filet de mortier. Le filet
   est structurel : il marque une reprise de charge, jamais une décoration.
   Aucune carte à ombre, aucun arrondi au-delà de 2 px : un mur n'a pas de
   coins ronds.

   /!\ Ce fichier est autonome. Il n'importe RIEN de phenix-tech : reprendre
       shared.css ferait passer la géométrie de Phénix Tech dans le site d'un
       maçon, et les deux démos se ressembleraient.
   ────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/fonts/archivo-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/dm-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/dm-sans-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --lime: #edeae3;      /* mur chaulé */
  --mortar: #ddd8cd;    /* assise en relief */
  --rule: #c3bdb0;      /* joint */
  --basalt: #262a27;    /* encre */
  --stone-600: #6b6559; /* texte secondaire */
  --olivier: #47583b;   /* accent unique */
  --olivier-d: #31402a;
  --r: 2px;
  --gut: clamp(1.15rem, 5vw, 2rem);
  --measure: 62ch;
  --course: clamp(2.75rem, 8vw, 4.5rem);
}

body {
  background: var(--lime);
  color: var(--basalt);
  font: 400 clamp(1rem, 0.97rem + 0.18vw, 1.0625rem)/1.65 'DM Sans', system-ui, sans-serif;
}

.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: var(--measure); }

h1, h2, h3, .wordmark, .fig {
  font-family: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-transform: uppercase;
}
h1 { font-size: clamp(2rem, 1.1rem + 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.5vw, 1.95rem); }
h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
p + p { margin-top: 0.85em; }
a { color: var(--olivier-d); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

.skip-link { background: var(--basalt); color: var(--lime); text-decoration: none; }

/* ── En-tête ────────────────────────────────────────────────────────────── */

.top {
  position: sticky; top: var(--demo-bar-h); z-index: 60;
  background: var(--lime);
  border-bottom: 1px solid var(--rule);
}
.top-in { display: flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; }
/* Logotype sur deux lignes, comme une plaque d'artisan : « Maçonnerie du
   Talagard » sur une seule ligne ne tient pas a cote du numero de telephone,
   qui ne doit jamais quitter l'en-tete. */
.wordmark { display: grid; gap: 1px; text-decoration: none; color: inherit; margin-right: auto; line-height: 1; }
.wordmark b { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
/* font-family explicite : sans elle, le sous-titre heritait d'Archivo, qui
   n'est charge qu'en 800 — le navigateur en synthetisait un faux 500. */
.wordmark span { font-family: 'DM Sans', system-ui, sans-serif; font-size: 0.6rem; letter-spacing: 0.16em; color: var(--olivier); font-weight: 500; }

.nav { display: flex; gap: 1.1rem; }
.nav a { font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--stone-600); padding-block: 0.35rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--basalt); box-shadow: inset 0 -2px 0 var(--olivier); }

/* Le numéro est l'élément le plus utilisé d'un site d'artisan : il reste
   visible à toutes les tailles, jamais replié dans le menu. */
.tel {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--olivier); color: #fff;
  font-weight: 500; font-size: 0.9rem; text-decoration: none;
  padding: 0.55rem 0.9rem; border-radius: var(--r);
}
.tel:hover { background: var(--olivier-d); }
.tel svg { width: 15px; height: 15px; fill: currentColor; flex: none; }

.nav-btn { display: none; width: 2.5rem; height: 2.5rem; border: 1px solid var(--rule); border-radius: var(--r); }
.nav-btn i, .nav-btn::before, .nav-btn::after {
  content: ''; display: block; width: 1.05rem; height: 2px; background: var(--basalt); margin: 3px auto;
}

@media (max-width: 46rem) {
  .nav-btn { display: block; order: 3; }
  /* Tenir sur une ligne a 390 px : sinon le bouton de menu passe seul a la
     ligne suivante et l'en-tete double de hauteur sur l'ecran ou tout compte. */
  .top-in { gap: 0.5rem; }
  .wordmark b { font-size: 0.95rem; }
  .tel { font-size: 0.82rem; padding: 0.5rem 0.7rem; }
  .nav-btn { width: 2.25rem; height: 2.25rem; }
  .nav {
    display: none; order: 4; width: 100%;
    flex-direction: column; gap: 0;
    border-top: 1px solid var(--rule); padding-block: 0.35rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 0.7rem; }
  .top-in { flex-wrap: wrap; }
}

/* ── Assises ────────────────────────────────────────────────────────────── */

.course { padding-block: var(--course); }
.course + .course { border-top: 1px solid var(--rule); }
.course--raised { background: var(--mortar); }
.course--ink { background: var(--basalt); color: var(--lime); border-top-color: var(--basalt); }
.course--ink h2 { color: #fff; }
.course--tight { padding-block: clamp(1.5rem, 4vw, 2.25rem); }

.lede { font-size: clamp(1.02rem, 0.95rem + 0.45vw, 1.2rem); color: var(--stone-600); max-width: 48ch; }
.course--ink .lede { color: #cdd3c9; }

/* ── Ouverture ──────────────────────────────────────────────────────────── */

.hero { position: relative; border-bottom: 1px solid var(--rule); }
.hero-img { position: relative; aspect-ratio: 16 / 9; max-height: 56vh; overflow: hidden; background: var(--mortar); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
/* Traitement couleur : la photo doit tenir dans la palette du mur. */
.hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(38,42,39,.72) 0%, rgba(38,42,39,.18) 52%, rgba(38,42,39,.05) 100%),
              radial-gradient(120% 90% at 18% 100%, rgba(71,88,59,.34), transparent 62%);
  mix-blend-mode: multiply;
}
.hero-txt { position: relative; margin-top: -7.5rem; }
.hero-txt h1 { color: #fff; text-shadow: 0 1px 24px rgba(20,24,20,.45); max-width: 16ch; }
.hero-sub {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 2px solid var(--olivier);
  max-width: 46ch; font-size: 1.0625rem;
}
@media (max-width: 34rem) {
  .hero-img { aspect-ratio: 4 / 3; }
  .hero-txt { margin-top: -5.5rem; }
}

.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0.6rem 1.35rem;
  border-radius: var(--r); font-weight: 500; text-decoration: none;
  transition: background-color 180ms cubic-bezier(.22,1,.36,1), color 180ms cubic-bezier(.22,1,.36,1);
}
.btn--solid { background: var(--olivier); color: #fff; }
.btn--solid:hover { background: var(--olivier-d); }
.btn--line { border: 1px solid var(--basalt); color: var(--basalt); background: transparent; }
.btn--line:hover { background: var(--basalt); color: var(--lime); }
.course--ink .btn--line { border-color: var(--lime); color: var(--lime); }
.course--ink .btn--line:hover { background: var(--lime); color: var(--basalt); }
.btn:active { transform: translateY(1px); }

/* ── Bande de preuves : quatre faits, séparés comme des joints ──────────── */

.proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proofs li { padding: 1.05rem 1.15rem; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.proofs li:nth-child(-n+2) { border-top: 0; }
.proofs li:nth-child(odd) { border-left: 0; }
/* « DECENNALE » est un mot de neuf lettres insecable en Archivo 800 : a taille
   fixe il debordait sa cellule de 42 px sur un ecran de 320 px. La borne basse
   du clamp est calee sur ce mot. */
.fig { display: block; font-size: clamp(1.03rem, 3.1vw + 0.4rem, 1.45rem); color: var(--olivier); letter-spacing: -0.03em; overflow-wrap: break-word; hyphens: auto; }
.proofs p { font-size: 0.875rem; color: var(--stone-600); line-height: 1.45; margin-top: 0.15rem; }
@media (min-width: 46rem) {
  .proofs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proofs li:nth-child(-n+4) { border-top: 0; }
  .proofs li:nth-child(odd) { border-left: 1px solid var(--rule); }
  .proofs li:first-child { border-left: 0; }
}

/* ── Prestations : appareillage à joints décalés ────────────────────────── */

.bond { display: grid; gap: 1px; background: var(--rule); margin-top: 1.75rem; }
.bond > li { background: var(--lime); padding: 1.4rem 1.3rem; }
.course--raised .bond > li { background: var(--mortar); }
.bond h3 { color: var(--olivier-d); }
.bond p { margin-top: 0.45rem; font-size: 0.945rem; color: var(--stone-600); }
@media (min-width: 40rem) { .bond { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ── Étapes : ici la numérotation est légitime, c'est une séquence ──────── */

.steps { counter-reset: step; margin-top: 1.75rem; display: grid; gap: 0; }
.steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 1rem;
  padding: 1.15rem 0; border-top: 1px solid var(--rule);
}
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps > li::before {
  content: counter(step);
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.15rem;
  color: var(--olivier); line-height: 1.25;
}
.steps p { grid-column: 2; font-size: 0.945rem; color: var(--stone-600); margin-top: 0.2rem; }

/* ── Communes : le rendu visible du référencement local ─────────────────── */

.zones { margin-top: 1.5rem; display: grid; gap: 0; }
.zones > div { padding: 1rem 0; border-top: 1px solid rgba(237,234,227,.22); display: grid; gap: 0.15rem; }
.zones > div:last-child { border-bottom: 1px solid rgba(237,234,227,.22); }
.zones dt { font-family: 'Archivo', sans-serif; font-weight: 800; letter-spacing: -0.01em; font-size: 1rem; text-transform: uppercase; }
.zones dd { margin: 0; font-size: 0.93rem; color: #b9c0b4; }
@media (min-width: 42rem) {
  .zones > div { grid-template-columns: 14rem 1fr; gap: 0 1.5rem; align-items: baseline; }
}

/* ── Paroles de clients ─────────────────────────────────────────────────── */

.says { display: grid; gap: 1px; background: var(--rule); margin-top: 1.75rem; }
.says figure { background: var(--lime); padding: 1.35rem 1.3rem; margin: 0; }
.says blockquote { margin: 0; font-size: 0.99rem; }
.says figcaption { margin-top: 0.7rem; font-size: 0.85rem; color: var(--stone-600); font-weight: 500; }
@media (min-width: 52rem) { .says { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── Galerie : assise décalée, les pierres ne font pas la même taille ───── */

.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.4rem; }
.filters button {
  border: 1px solid var(--rule); background: transparent; color: var(--stone-600);
  padding: 0.45rem 0.9rem; border-radius: var(--r); font-size: 0.875rem; font-weight: 500;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.filters button:hover { border-color: var(--basalt); color: var(--basalt); }
.filters button[aria-pressed="true"] { background: var(--basalt); border-color: var(--basalt); color: var(--lime); }

/* minmax(0, 1fr) et non 1fr : le minimum d'une piste 1fr est son contenu
   minimal, et un titre comme « REJOINTOIEMENT » en Archivo capitales suffisait
   a pousser la grille hors de l'ecran a 320 px. */
.courses-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); margin-top: 1.5rem; }
@media (min-width: 46rem) { .courses-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stone { background: var(--lime); }
.stone[hidden] { display: none; }
.stone button { display: block; width: 100%; text-align: left; padding: 0; }
/* height: auto est OBLIGATOIRE : les attributs width/height du HTML s'appliquent
   comme indications de presentation, et le height="300" ecrase l'aspect-ratio
   des qu'on pose width: 100% sans neutraliser la hauteur. Sans cette ligne, les
   vignettes s'etirent en portrait. */
.stone img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.stone .meta { padding: 0.7rem 0.85rem 0.95rem; }
.stone h3 { font-size: 0.9rem; overflow-wrap: break-word; hyphens: auto; }
.stone p { font-size: 0.82rem; color: var(--stone-600); margin-top: 0.15rem; line-height: 1.45; overflow-wrap: break-word; }

dialog.lightbox {
  border: 0; padding: 0; max-width: min(96vw, 60rem); width: 100%;
  background: var(--basalt); color: var(--lime); border-radius: var(--r);
}
dialog.lightbox::backdrop { background: rgba(20,24,20,.86); }
dialog.lightbox img { width: 100%; height: auto; max-height: 74vh; object-fit: contain; background: #161917; }
.lb-bar { display: flex; align-items: flex-start; gap: 1rem; padding: 0.9rem 1rem 1.1rem; }
.lb-bar div { flex: 1; }
.lb-bar h3 { color: #fff; }
.lb-bar p { font-size: 0.85rem; color: #b9c0b4; margin-top: 0.2rem; }
.lb-close { color: var(--lime); border: 1px solid rgba(237,234,227,.4); border-radius: var(--r); width: 2.1rem; height: 2.1rem; font-size: 1.1rem; line-height: 1; flex: none; }
.lb-close:hover { background: rgba(237,234,227,.14); }

/* ── Formulaire ─────────────────────────────────────────────────────────── */

.form { margin-top: 1.75rem; display: grid; gap: 1.05rem; max-width: 36rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 500; font-size: 0.93rem; }
.field .hint { font-size: 0.82rem; color: var(--stone-600); }
.field input, .field select, .field textarea {
  border: 1px solid var(--rule); border-radius: var(--r); background: #fff;
  padding: 0.65rem 0.75rem; width: 100%;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--olivier); outline-offset: 1px; border-color: var(--olivier);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.pair { display: grid; gap: 1.05rem; }
@media (min-width: 34rem) { .pair { grid-template-columns: 1fr 1fr; } }
.req { color: var(--olivier); }
.check { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.6rem; align-items: start; font-size: 0.88rem; color: var(--stone-600); }
.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; }
.filelist { font-size: 0.85rem; color: var(--stone-600); display: grid; gap: 0.15rem; padding-left: 1.1rem; list-style: disc; }

.done { border-left: 3px solid var(--olivier); background: var(--mortar); padding: 1.15rem 1.25rem; border-radius: var(--r); max-width: 36rem; margin-top: 1.75rem; }
.done h2 { font-size: 1.15rem; }
.done p { margin-top: 0.4rem; color: var(--stone-600); }

.aside { border-top: 1px solid var(--rule); padding-top: 1.35rem; margin-top: 2.25rem; }
.aside dl { display: grid; gap: 0.85rem; }
.aside dt { font-weight: 500; font-size: 0.93rem; }
.aside dd { margin: 0; color: var(--stone-600); font-size: 0.93rem; }
@media (min-width: 52rem) {
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 3rem; align-items: start; }
  .aside { border-top: 0; border-left: 1px solid var(--rule); padding: 0 0 0 2rem; margin-top: 0; }
}

/* ── Pied ───────────────────────────────────────────────────────────────── */

.foot { background: var(--basalt); color: #b9c0b4; padding-block: 2.5rem 2rem; font-size: 0.9rem; }
.foot a { color: var(--lime); }
.foot-top { display: grid; gap: 1.5rem; }
@media (min-width: 46rem) { .foot-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot h2 { font-size: 0.95rem; color: #fff; margin-bottom: 0.6rem; }
.foot ul { display: grid; gap: 0.35rem; }
.foot-legal { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid rgba(237,234,227,.18); font-size: 0.82rem; }

/* ── Pages de texte (mentions, confidentialité) ─────────────────────────── */

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { color: var(--stone-600); }
.prose ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: 0.3rem; margin-top: 0.6rem; }
.prose .tpl { border: 1px dashed var(--rule); border-radius: var(--r); padding: 1rem 1.15rem; margin-top: 1rem; background: var(--mortar); }
.prose .tpl dt { font-weight: 500; color: var(--basalt); }
.prose .tpl dd { margin: 0 0 0.6rem; color: var(--stone-600); }
.crumb { font-size: 0.85rem; color: var(--stone-600); padding-top: 1.35rem; }
.crumb a { color: var(--stone-600); }
