/* =========================================================
   Arben Carrelage Sàrl — feuille de style commune
   Concept : le carrelage comme système graphique.
   Joints 1px, croisillons aux intersections, photos posées
   comme des carreaux (60×60, 60×120, 120×60).
   ========================================================= */

:root {
  /* Matières */
  --chaux: #f3f0ea;        /* fond principal, blanc cassé */
  --chaux-2: #e9e4da;      /* bande alternée */
  --pierre: #d9cfbf;       /* beige pierre */
  --joint: #cfc9be;        /* joint ciment, lignes 1px */
  --joint-doux: #e2ddd3;   /* trame de calepinage */
  --ciment: #8c877e;       /* croisillons, détails */
  --texte-2: #5e5a53;      /* texte secondaire (AA sur chaux) */
  --anthracite: #2a2e31;   /* fond du logo */
  --encre: #1d1f21;        /* texte principal */
  --clair-2: #bdb8ae;      /* texte secondaire sur anthracite */

  /* Une seule couleur d'accent, réservée aux actions */
  --accent: #a84a23;
  --accent-fonce: #8b3b1a;

  /* Typographie */
  --f-titre: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-texte: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Grille */
  --wrap: 90rem;
  --gouttiere: clamp(1rem, 4vw, 3rem);
  --module: clamp(3.5rem, 7vw, 6.5rem);
  --header-h: 4.5rem;
  --joint-l: 3px;          /* largeur des joints de la mosaïque */
  --ease-pose: cubic-bezier(.2, .7, .15, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--chaux);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; font-family: var(--f-titre); font-weight: 800; line-height: .92; letter-spacing: -.01em; text-transform: uppercase; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .02em; text-transform: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.section--dark :focus-visible, .site-header :focus-visible, .cta :focus-visible,
.site-footer :focus-visible, .lightbox :focus-visible { outline-color: #f3f0ea; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--encre); color: var(--chaux); padding: .75rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gouttiere); }

/* Trame de calepinage : joints fins sur fond chaux */
.calepinage {
  background-color: var(--chaux);
  background-image:
    linear-gradient(to right, var(--joint-doux) 1px, transparent 1px),
    linear-gradient(to bottom, var(--joint-doux) 1px, transparent 1px);
  background-size: var(--module) var(--module);
  background-position: -1px -1px;
}

/* Croisillon : petite croix de joint posée aux intersections */
.croisillon, .section::before, .section::after {
  --c: var(--ciment);
  content: "";
  position: absolute;
  width: 13px; height: 13px;
  background:
    linear-gradient(var(--c), var(--c)) center / 1px 100% no-repeat,
    linear-gradient(var(--c), var(--c)) center / 100% 1px no-repeat;
  pointer-events: none;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 2.75rem; padding: .6rem 1.1rem;
  border: 1px solid transparent; border-radius: 0;
  font-family: var(--f-texte); font-weight: 600; font-size: 1rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-pose);
}
.btn .mono { font-size: .875em; font-weight: 500; letter-spacing: 0; }
.btn--lg { min-height: 3.5rem; padding: .9rem 1.5rem; font-size: 1.0625rem; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-fonce); }
.btn--line { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn--line:hover { background: var(--encre); color: var(--chaux); }
.btn--line-light { border-color: var(--chaux); color: var(--chaux); background: transparent; }
.btn--line-light:hover { background: var(--chaux); color: var(--encre); }
.btn--dark { background: var(--anthracite); color: var(--chaux); }
.btn:active { transform: translateY(1px); }

.link-arrow {
  font-family: var(--f-mono); font-size: .875rem; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15em;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--accent); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--anthracite); color: var(--chaux);
  border-bottom: 1px solid #000;
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: auto; height: 2.75rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-titre); font-weight: 900; font-size: 1.75rem; letter-spacing: .06em; text-transform: uppercase; }
.brand__sub { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--clair-2); margin-top: .2rem; }

.nav ul { display: flex; gap: .25rem; }
.nav a {
  display: block; padding: .5rem .8rem; text-decoration: none;
  font-weight: 500; font-size: .9375rem; color: var(--chaux);
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--clair-2); }
.nav a[aria-current="page"] { border-bottom-color: var(--chaux); }
.nav-toggle { display: none; }

@media (max-width: 60rem) {
  .header__call { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem;
    background: transparent; border: 1px solid var(--clair-2); color: var(--chaux);
    font-family: var(--f-mono); font-size: .875rem;
  }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto 0;
    background: var(--anthracite); border-top: 1px solid #000; border-bottom: 1px solid #000;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gouttiere) 1rem; }
  .nav li + li { border-top: 1px solid #3c4145; }
  .nav a { padding: 1rem 0; font-family: var(--f-titre); font-weight: 800; font-size: 1.75rem; text-transform: uppercase; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--joint); }
/* croisillons aux deux extrémités du joint de section */
.section::before { top: -7px; left: max(calc(var(--gouttiere) - 7px), calc((100% - var(--wrap)) / 2 + var(--gouttiere) - 7px)); }
.section::after { top: -7px; right: max(calc(var(--gouttiere) - 7px), calc((100% - var(--wrap)) / 2 + var(--gouttiere) - 7px)); }
.section--stone { background: var(--chaux-2); }
.section--dark { background: var(--anthracite); color: var(--chaux); border-top-color: #000; }
.section--dark::before, .section--dark::after { --c: var(--clair-2); }

.section__head {
  display: grid; gap: 1rem 2rem;
  grid-template-columns: 1fr;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section__num { color: var(--texte-2); display: flex; align-items: center; gap: .6rem; }
.section__num::before { content: ""; width: .7rem; height: .7rem; border: 1px solid currentColor; }
.section--dark .section__num { color: var(--clair-2); }
.section__title { font-size: clamp(2rem, 4vw, 3.25rem); }
.section__intro { max-width: 34rem; color: var(--texte-2); font-size: 1.125rem; }
.section--dark .section__intro { color: var(--clair-2); }

@media (min-width: 60rem) {
  .section__head { grid-template-columns: 1fr minmax(0, 26rem); align-items: end; }
  .section__num { grid-column: 1 / -1; }
}

/* ---------- Accroche ---------- */
.hero { border-bottom: 1px solid var(--joint); }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: var(--gouttiere);
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(2rem, 5vw, 4rem);
}
.hero__text { grid-column: 1 / span 7; grid-row: 1; align-self: center; display: flex; flex-direction: column; gap: 1.75rem; }
.overline { color: var(--texte-2); }
.hero__title { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .9; font-weight: 900; letter-spacing: -.015em; }
.hero__title span { display: block; color: var(--anthracite); -webkit-text-stroke: 0; }
.hero__lead { max-width: 33rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__zones { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--joint); border-left: 1px solid var(--joint); width: fit-content; }
.hero__zones li { padding: .5rem .9rem; border-right: 1px solid var(--joint); border-bottom: 1px solid var(--joint); background: var(--chaux); }

/* la vidéo est posée comme un carreau 60×120 */
.hero__media {
  grid-column: 9 / -1; grid-row: 1 / span 2;
  position: relative; margin: 0;
  background: var(--anthracite);
  outline: var(--joint-l) solid var(--joint);
}
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__caption {
  position: absolute; left: 0; bottom: 0;
  background: var(--chaux); color: var(--encre);
  padding: .45rem .75rem; border-top: 1px solid var(--joint); border-right: 1px solid var(--joint);
}
/* petite icône pause / lecture, discrète, sur les vidéos qui tournent en boucle */
.video-box { position: relative; }
video[data-autoplay], .lightbox__stage video { cursor: pointer; }
.video-toggle {
  position: absolute; right: .6rem; top: .6rem; z-index: 2;
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 50%;
  background: rgba(29, 31, 33, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .3);
  opacity: .75; transition: opacity .2s, background-color .2s;
}
.video-toggle:hover, .video-toggle:focus-visible { opacity: 1; background: rgba(29, 31, 33, .85); }
.video-toggle[hidden] { display: none; }
.video-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.video-toggle .i-play, .video-toggle[data-state="paused"] .i-pause { display: none; }
.video-toggle[data-state="paused"] .i-play { display: block; }
.lightbox__vtoggle { position: relative; inset: auto; grid-column: 2; grid-row: 2; align-self: end; justify-self: center; margin-bottom: 1.75rem; }
.hero__samples {
  grid-column: 1 / span 7; grid-row: 2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 7.5rem)); gap: var(--joint-l);
  margin-top: 2.5rem; padding: var(--joint-l); background: var(--joint); width: fit-content;
}
.hero__samples img { aspect-ratio: 1; width: 100%; object-fit: cover; }

@media (max-width: 60rem) {
  .hero { border-bottom: 0; }
  .hero__grid { display: block; position: relative; min-height: 0; padding: 0; }
  .hero__grid.wrap { padding-inline: 0; }
  .hero__media { position: absolute; inset: 0; outline: 0; }
  .hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(29, 31, 33, .2) 0%, rgba(29, 31, 33, .72) 30%, rgba(29, 31, 33, .9) 55%, rgba(29, 31, 33, .95) 100%);
  }
  .hero__caption { left: auto; right: 0; bottom: auto; top: 0; z-index: 1; border: 0; border-left: 1px solid var(--joint); border-bottom: 1px solid var(--joint); }
  .hero .video-toggle { top: auto; bottom: 1rem; right: 1rem; }
  .hero__text {
    position: relative; z-index: 1;
    min-height: calc(100svh - var(--header-h));
    justify-content: flex-end; gap: 1.25rem;
    padding: 6rem var(--gouttiere) 4.5rem;
    color: var(--chaux);
  }
  .hero__text .overline { color: var(--clair-2); }
  .hero__title span { color: var(--chaux); }
  .hero__text .btn--line { border-color: var(--chaux); color: var(--chaux); }
  .hero__zones { border-color: rgba(243, 240, 234, .35); }
  .hero__zones li { background: transparent; border-color: rgba(243, 240, 234, .35); }
  .hero__samples { display: none; }
}

/* ---------- Prestations : bordereau ---------- */
.bordereau { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.bordereau__list { border-top: 1px solid var(--encre); counter-reset: poste; }
.poste {
  position: relative;
  display: grid; grid-template-columns: 2.5rem 1fr 6.5rem; gap: .35rem 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--joint);
  transition: background-color .25s;
}
.poste__num { grid-row: 1 / span 3; color: var(--texte-2); padding-top: .3rem; }
.poste__title { grid-column: 2; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; }
.poste__text { grid-column: 2; color: var(--texte-2); max-width: 36rem; }
.poste__format { grid-column: 2; color: var(--encre); }
.poste__img { grid-column: 3; grid-row: 1 / span 3; width: 100%; aspect-ratio: 1; object-fit: cover; align-self: start; outline: var(--joint-l) solid var(--joint); }

@media (min-width: 60rem) {
  .bordereau { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: clamp(2rem, 5vw, 5rem); }
  .poste { grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 13rem); align-items: baseline; padding: 1.4rem .75rem 1.4rem 0; cursor: default; }
  .poste__num { grid-row: 1 / span 2; padding-top: 0; }
  .poste__title { grid-column: 2; }
  .poste__text { grid-column: 2; }
  .poste__format { grid-column: 3; grid-row: 1; text-align: right; }
  .poste__img { display: none; }
  .poste:hover, .poste.is-active { background: var(--chaux-2); }
  .poste.is-active .poste__num { color: var(--accent); }
  .bordereau__preview {
    position: sticky; top: calc(var(--header-h) + 2rem); align-self: start;
    margin: 0; padding: var(--joint-l); background: var(--joint);
  }
  .bordereau__preview img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; transition: opacity .3s; }
  .bordereau__preview img.is-swapping { opacity: 0; }
  .bordereau__preview figcaption { background: var(--chaux); padding: .55rem .75rem; margin-top: var(--joint-l); }
}
@media (max-width: 59.99rem) {
  .bordereau__preview { display: none; }
}

/* ---------- Réalisations : mosaïque ---------- */
.mosaic { container-type: inline-size; }
.mosaic__grid {
  --cols: 6;
  --u: calc((100cqi - 2 * var(--joint-l) - (var(--cols) - 1) * var(--joint-l)) / var(--cols));
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: var(--u);
  grid-auto-flow: dense;
  gap: var(--joint-l);
  padding: var(--joint-l);
  background: var(--joint);   /* le joint apparaît entre les carreaux */
}
.mosaic.wrap { padding-inline: var(--gouttiere); }
.mosaic.wrap { container-type: inline-size; }
.mosaic__grid { width: 100%; }
.tile { position: relative; overflow: hidden; background: var(--pierre); }
.tile--sq { grid-column: span 2; grid-row: span 2; }
.tile--tall { grid-column: span 2; grid-row: span 4; }
.tile--wide { grid-column: span 4; grid-row: span 2; }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-pose); }
.tile:hover > img, .tile:focus-within > img { transform: scale(1.035); }

.tile__plate {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  max-width: min(100%, 26rem);
  background: var(--chaux); color: var(--encre);
  padding: .8rem 1rem .9rem;
  border-top: 1px solid var(--joint); border-right: 1px solid var(--joint);
  display: grid; gap: .3rem;
}
.tile__ref { color: var(--texte-2); font-size: .75rem; }
.tile__title { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 800; }
.tile__fiche { font-size: .75rem; color: var(--encre); }
.tile__open {
  position: absolute; inset: 0; z-index: 2;
  background: transparent; border: 0; padding: 0;
  display: flex; align-items: flex-start; justify-content: flex-end;
}
.tile__open:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }
.tile__count {
  margin: .75rem; padding: .35rem .6rem;
  background: var(--anthracite); color: var(--chaux); font-size: .75rem;
  transform: translateY(-.25rem); opacity: .92; white-space: nowrap;
  transition: transform .3s var(--ease-pose), background-color .2s;
}
.tile:hover .tile__count, .tile__open:focus-visible .tile__count { transform: none; background: var(--accent); opacity: 1; }
.mosaic__more { margin-top: 2rem; }

@container (max-width: 44rem) {
  .mosaic__grid { --cols: 2; }
  .tile--sq { grid-column: span 1; grid-row: span 1; }
  .tile--tall { grid-column: span 1; grid-row: span 2; }
  .tile--wide { grid-column: span 2; grid-row: span 1; }
  .tile__plate { padding: .5rem .6rem; max-width: 100%; }
  .tile__fiche { display: none; }
  .tile__title { font-size: 1.05rem; }
  .tile__ref { font-size: .625rem; }
  .tile__count { font-size: .6875rem; margin: .5rem; }
}
@container (min-width: 44rem) and (max-width: 64rem) {
  .tile__fiche { display: none; }
}

/* ---------- Références ---------- */
.chiffres { display: grid; grid-template-columns: 1fr; margin: 0; border-top: 1px solid #50565b; }
.chiffre { padding: 2rem 0; border-bottom: 1px solid #50565b; display: grid; gap: .75rem; }
.chiffre dt { color: var(--clair-2); }
.chiffre dd { margin: 0; color: var(--clair-2); max-width: 22rem; }
.chiffre__value {
  display: block; color: var(--chaux);
  font-family: var(--f-titre); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: .95; margin-bottom: .6rem;
}
.chiffre__value small { font-size: .45em; font-weight: 800; text-transform: none; }
@media (min-width: 60rem) {
  .chiffres { grid-template-columns: repeat(3, 1fr); }
  .chiffre { padding: 2.5rem 2rem 2.5rem 0; border-bottom: 0; }
  .chiffre + .chiffre { border-left: 1px solid #50565b; padding-left: 2rem; }
}

/* ---------- Zone ---------- */
.zone__tiles {
  display: grid; grid-template-columns: 1fr; gap: var(--joint-l);
  padding: var(--joint-l); background: var(--joint);
}
.zone__tile {
  position: relative; display: grid; grid-template-rows: 1fr auto auto; gap: .35rem;
  min-height: 15rem; padding: 1.25rem; background: var(--chaux);
}
.zone__code { font-family: var(--f-titre); font-weight: 900; font-size: clamp(3rem, 6vw, 5rem); line-height: .85; color: var(--anthracite); }
.zone__name { font-family: var(--f-titre); font-weight: 800; font-size: 1.375rem; text-transform: uppercase; line-height: 1; }
.zone__places { color: var(--texte-2); }
@media (min-width: 48rem) {
  .zone__tiles { grid-template-columns: repeat(3, 1fr); }
  .zone__tile { aspect-ratio: 4 / 3; min-height: 0; }
}

/* ---------- Appel à l'action ---------- */
.cta { background: var(--anthracite); color: var(--chaux); border-top: 1px solid #000; position: relative; overflow: hidden; }
.cta::before {
  /* calepinage clair en arrière-plan */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(to right, #3a3f43 1px, transparent 1px),
    linear-gradient(to bottom, #3a3f43 1px, transparent 1px);
  background-size: var(--module) var(--module);
}
.cta__inner { position: relative; padding-block: clamp(4rem, 10vw, 8rem); display: grid; gap: 1.5rem; }
.cta__title { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 900; }
.cta__text { max-width: 34rem; color: var(--clair-2); font-size: 1.125rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--anthracite); color: var(--clair-2); border-top: 1px solid #50565b; padding-block: 3.5rem 7rem; font-size: .9375rem; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer__logo { width: 9rem; height: auto; }
.footer__label { color: var(--chaux); margin-bottom: .5rem; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--chaux); text-decoration: underline; }
.footer__col li + li { margin-top: .25rem; }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid #50565b; padding-top: 1.5rem; }
.footer__legal a:hover { color: var(--chaux); }
@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: 12rem repeat(3, 1fr); }
  .site-footer { padding-bottom: 3rem; }
}

/* ---------- Barre d'appel mobile ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: #000; border-top: 1px solid #000;
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar .btn { min-height: 3.5rem; font-size: 1.0625rem; }
@media (min-width: 60rem) { .callbar { display: none; } }

/* ---------- Galerie plein écran ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #17191b; color: var(--chaux);
  display: none;
  grid-template-columns: 4rem minmax(0, 1fr) 4rem;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(23, 25, 27, .9); }
.lightbox__head {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 1rem var(--gouttiere); border-bottom: 1px solid #3a3f43;
}
.lightbox__count { color: var(--clair-2); }
.lightbox__title { font-size: clamp(1.25rem, 2.2vw, 1.75rem); margin: .25rem 0; }
.lightbox__fiche { color: var(--clair-2); }
.lightbox__close {
  flex: none; min-height: 2.75rem; padding: .5rem 1rem;
  background: transparent; border: 1px solid #50565b; color: var(--chaux);
  font-family: var(--f-mono); font-size: .875rem;
}
.lightbox__close span { font-size: 1.25rem; line-height: 0; margin-left: .3rem; }
.lightbox__close:hover { border-color: var(--chaux); }
.lightbox__stage { grid-column: 2; grid-row: 2; position: relative; min-height: 0; }
.lightbox__stage > * { position: absolute; inset: 1rem 0; width: 100%; height: calc(100% - 2rem); object-fit: contain; }
.lightbox__stage > [hidden] { display: none; }
.lightbox__caption { grid-column: 1 / -1; text-align: center; color: var(--clair-2); min-height: 1.5rem; }
.lightbox__nav {
  grid-row: 2; align-self: center; justify-self: center;
  width: 3.25rem; height: 3.25rem;
  background: transparent; border: 1px solid #50565b; color: var(--chaux); font-size: 1.25rem;
}
.lightbox__nav:hover { border-color: var(--chaux); background: #2a2e31; }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }
.lightbox__thumbs {
  grid-column: 1 / -1; display: flex; gap: var(--joint-l); overflow-x: auto;
  padding: .75rem var(--gouttiere) calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid #3a3f43;
  scrollbar-width: thin;
}
.lightbox__thumbs button {
  flex: none; width: 4rem; height: 4rem; padding: 0; border: 0; background: #2a2e31;
  opacity: .5; transition: opacity .2s; position: relative;
}
.lightbox__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--chaux); outline-offset: -2px; }
.lightbox__thumbs button:hover { opacity: .85; }
.lightbox__thumbs .is-video::after {
  content: "▶"; position: absolute; inset: auto auto .2rem .3rem; font-size: .7rem; color: #fff;
  text-shadow: 0 0 4px #000;
}
@media (max-width: 48rem) {
  .lightbox { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lightbox__nav { grid-row: 3; align-self: end; position: fixed; bottom: 5.75rem; background: rgba(23, 25, 27, .85); }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
  .lightbox__fiche { display: none; }
}

/* ---------- Pages intérieures ---------- */
.page-head { border-bottom: 1px solid var(--joint); }
.page-head__inner { padding-block: clamp(3rem, 8vw, 7rem) clamp(2.5rem, 6vw, 5rem); display: grid; gap: 1.5rem; }
.page-head__title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; line-height: .9; }
.page-head__lead { max-width: 38rem; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); }
.page-head__note { color: var(--texte-2); }

.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 60rem) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gouttiere); align-items: start; }
  .split__text { grid-column: 1 / span 6; }
  .split__media { grid-column: 9 / -1; }
  .split--reverse .split__text { grid-column: 7 / -1; grid-row: 1; }
  .split--reverse .split__media { grid-column: 1 / span 5; grid-row: 1; }
}
.prose { display: grid; gap: 1.1rem; max-width: 38rem; }
.prose p { font-size: 1.125rem; }
.prose .section__num { font-size: .8125rem; }
q { quotes: "«\00a0" "\00a0»"; }
.prose h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); margin-bottom: .5rem; }

/* carreaux d'image (60×60 / 60×120) avec joint */
.carreau { margin: 0; padding: var(--joint-l); background: var(--joint); }
.carreau img, .carreau video { width: 100%; object-fit: cover; }
.carreau--tall img, .carreau--tall video { aspect-ratio: 1 / 2; }
.carreau--sq img, .carreau--sq video { aspect-ratio: 1; }
.carreau--portrait img, .carreau--portrait video { aspect-ratio: 4 / 5; }
.carreau figcaption { background: var(--chaux); margin-top: var(--joint-l); padding: .5rem .75rem; }
.carreaux { display: grid; grid-template-columns: 1fr 1fr; gap: var(--joint-l); padding: var(--joint-l); background: var(--joint); }
.carreaux .carreau { padding: 0; }
.carreaux > :first-child { grid-row: span 2; }
.carreaux > :first-child img, .carreaux > :first-child video { height: 100%; aspect-ratio: auto; }

.citation { margin: 0; padding: 1.75rem 0; border-top: 1px solid var(--encre); border-bottom: 1px solid var(--joint); }
.citation p { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1; }
.citation footer { margin-top: 1rem; color: var(--texte-2); }

/* Méthode : coupe d'un sol carrelé, couche par couche */
.coupe { border-top: 1px solid var(--encre); }
.couche {
  display: grid; gap: 1rem 2rem; grid-template-columns: 1fr;
  padding: 2rem 0; border-bottom: 1px solid var(--joint);
}
.couche__swatch { height: 1.5rem; border: 1px solid var(--encre); }
.couche--support .couche__swatch {
  background: radial-gradient(circle at 30% 40%, var(--ciment) 1px, transparent 1.5px) 0 0 / 7px 7px,
              radial-gradient(circle at 70% 70%, var(--ciment) 1px, transparent 1.5px) 0 0 / 11px 11px, var(--pierre);
}
.couche--pose .couche__swatch { background: repeating-linear-gradient(45deg, var(--encre) 0 1px, transparent 1px 6px), var(--chaux); }
.couche--joints .couche__swatch {
  background: linear-gradient(to right, transparent calc(33.33% - 2px), var(--ciment) calc(33.33% - 2px) calc(33.33% + 2px), transparent calc(33.33% + 2px) calc(66.66% - 2px), var(--ciment) calc(66.66% - 2px) calc(66.66% + 2px), transparent calc(66.66% + 2px)), var(--chaux-2);
}
.couche--finitions .couche__swatch { background: var(--anthracite); }
.couche__num { color: var(--texte-2); }
.couche__title { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.couche__text { color: var(--texte-2); max-width: 32rem; }
.couche__text q { color: var(--encre); }
.couche__media { margin: 0; padding: var(--joint-l); background: var(--joint); width: min(100%, 14rem); }
.couche__media img, .couche__media video { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 60rem) {
  .couche { grid-template-columns: 9rem minmax(0, 1fr) 14rem; align-items: start; }
  .couche__swatch { height: auto; align-self: stretch; min-height: 7rem; }
  .couche__body { display: grid; gap: .75rem; }
}
@media (max-width: 59.99rem) {
  .couche__body { display: grid; gap: .6rem; }
}

.valeurs { display: grid; grid-template-columns: 1fr; gap: var(--joint-l); padding: var(--joint-l); background: var(--joint); }
.valeur { background: var(--chaux); padding: 1.75rem 1.5rem; display: grid; gap: .75rem; align-content: start; }
.valeur h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.valeur p { color: var(--texte-2); }
@media (min-width: 48rem) { .valeurs { grid-template-columns: repeat(3, 1fr); } .valeur { min-height: 16rem; } }

/* Contact */
.contact-actions { display: grid; grid-template-columns: 1fr; gap: var(--joint-l); padding: var(--joint-l); background: var(--joint); }
.contact-action {
  display: grid; align-content: space-between; gap: 2rem;
  min-height: 12rem; padding: 1.5rem;
  text-decoration: none; background: var(--chaux); color: var(--encre);
  transition: background-color .2s, color .2s;
}
.contact-action__label { font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3rem); line-height: .95; }
.contact-action__value { font-family: var(--f-mono); font-size: clamp(1rem, 1.8vw, 1.25rem); word-break: break-word; }
.contact-action__hint { color: var(--texte-2); font-size: .9375rem; }
.contact-action--accent { background: var(--accent); color: #fff; }
.contact-action--accent .contact-action__hint { color: #fbe9e1; }
.contact-action--accent:hover { background: var(--accent-fonce); }
.contact-action:not(.contact-action--accent):hover { background: var(--anthracite); color: var(--chaux); }
.contact-action:not(.contact-action--accent):hover .contact-action__hint { color: var(--clair-2); }
@media (min-width: 48rem) {
  .contact-actions { grid-template-columns: repeat(2, 1fr); }
  .contact-action { min-height: 16rem; }
}

.liste-joints { border-top: 1px solid var(--encre); }
.liste-joints li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--joint); }
.liste-joints li span:first-child { color: var(--texte-2); }

.horaires { width: 100%; border-collapse: collapse; border-top: 1px solid var(--encre); }
.horaires th, .horaires td { text-align: left; padding: 1rem 0; border-bottom: 1px solid var(--joint); font-weight: 400; vertical-align: top; }
.horaires th { font-weight: 600; padding-right: 1rem; }
.horaires td { font-family: var(--f-mono); font-size: .9375rem; text-align: right; }

.legal { display: grid; gap: 3rem; max-width: 46rem; }
.legal h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.legal h3 { font-family: var(--f-texte); text-transform: none; font-weight: 600; font-size: 1.125rem; line-height: 1.3; margin: 1.5rem 0 .5rem; }
.legal p, .legal li { color: var(--texte-2); }
.legal ul { list-style: square; padding-left: 1.25rem; }
.legal dl { display: grid; grid-template-columns: minmax(0, 12rem) 1fr; gap: .5rem 1rem; margin: 0; border-top: 1px solid var(--joint); padding-top: 1rem; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; color: var(--texte-2); }
.a-remplacer { background: #f6e3b8; color: var(--encre); padding: 0 .25em; }

/* ---------- Pose des carreaux au défilement ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(1.012);
  transition: opacity .7s var(--ease-pose), transform .9s var(--ease-pose);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-set { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .tile:hover > img, .tile:focus-within > img { transform: none; }
}

.titre-bloc { margin: 1rem 0 2rem; }
.legal__maj { margin-top: 1.5rem; }
.lightbox__stage > video { left: 50%; right: auto; width: auto; max-width: 100%; transform: translateX(-50%); }
