/* =========================================================
   SCIE SUR MESURE — Création de meubles design
   Feuille de style commune à toutes les pages
   ========================================================= */

:root {
  /* Couleurs tirées du logo */
  --taupe: #8c7e6d;
  --taupe-dark: #6f6355;
  --taupe-light: #b9ad9e;
  --ink: #171926;
  --ink-soft: #2a2c3b;

  /* Neutres chauds */
  --cream: #f5f1eb;
  --sand: #ebe4da;
  --white: #ffffff;
  --text: #2b2b33;
  --muted: #6e6a66;
  --line: rgba(23, 25, 38, 0.12);

  /* Typographies */
  --f-title: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-brush: "Permanent Marker", "Archivo", sans-serif;
  --f-script: "Caveat", cursive;

  --container: 1280px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 88px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--f-title);
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.45rem; font-weight: 700; }
p  { margin: 0 0 1.2em; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

/* Petits éléments typographiques ------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-title);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 38px; height: 2px; background: currentColor; }

.brush {
  font-family: var(--f-brush);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--taupe);
}
.script { font-family: var(--f-script); font-size: 1.6em; line-height: 1; color: var(--taupe); }

.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }

/* Boutons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 32px;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--taupe); border-color: var(--taupe); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: var(--taupe); color: var(--white); border-color: var(--taupe); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { color: var(--white); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-title); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid var(--taupe); padding-bottom: 4px;
  transition: gap .3s var(--ease), color .3s;
}
.link-arrow:hover { gap: 16px; color: var(--taupe); }

/* =========================================================
   Images : emplacement photo avec repli élégant
   (déposez vos photos dans /images avec le nom indiqué)
   ========================================================= */
.media {
  position: relative;
  overflow: hidden;
  background-color: var(--sand);
  background-image:
    repeating-linear-gradient(100deg, rgba(140,126,109,.10) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(97deg, rgba(140,126,109,.07) 0 1px, transparent 1px 9px),
    linear-gradient(135deg, #e9e1d5 0%, #d7cbbb 100%);
}
.media > .media__img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease);
}
.media.is-empty::after {
  content: attr(data-label);
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-title); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--taupe-dark);
  padding: 10px 16px;
  border: 1px dashed rgba(111,99,85,.5);
  background: rgba(255,255,255,.45);
  white-space: nowrap;
}
.media--dark { background-color: #2a2a33;
  background-image:
    repeating-linear-gradient(100deg, rgba(255,255,255,.04) 0 2px, transparent 2px 24px),
    linear-gradient(135deg, #3a3631 0%, #1d1e28 100%); }
.media--dark.is-empty::after { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.25); background: rgba(0,0,0,.15); }

/* =========================================================
   En-tête
   ========================================================= */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 20px; }
.topbar a:hover { color: var(--white); }
.topbar__info { display: flex; gap: 28px; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(23,25,38,.06); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 30px; }

.logo img { height: 58px; width: auto; transition: height .3s var(--ease); }
.header.is-scrolled .logo img { height: 48px; }

.nav { display: flex; align-items: center; gap: 38px; }
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  position: relative;
  font-family: var(--f-title); font-weight: 600; font-size: .86rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  padding: 8px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--taupe); transition: width .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--taupe-dark); }
.nav .btn { padding: 14px 24px; }

.burger {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 11px; width: 24px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s;
}
.burger span { top: 22px; }
.burger span::before { content: ""; left: 0; top: -8px; }
.burger span::after { content: ""; left: 0; top: 8px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(8px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   Hero (accueil)
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 40px);
  min-height: calc(100svh - var(--header-h) - 40px);
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero > .media { position: absolute; inset: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(23,25,38,.15) 0%, rgba(23,25,38,.25) 45%, rgba(23,25,38,.82) 100%);
}
.hero .container { position: relative; z-index: 2; padding: 0 0 90px; }
.hero__kicker { color: var(--taupe-light); }
.hero h1 { color: var(--white); max-width: 14ch; text-transform: uppercase; }
.hero h1 .brush { color: var(--taupe-light); text-transform: none; display: inline-block; transform: rotate(-2deg); }
.hero p { font-size: 1.2rem; max-width: 52ch; color: rgba(255,255,255,.85); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.hero__scroll {
  position: absolute; right: 40px; bottom: 90px; z-index: 2;
  writing-mode: vertical-rl; font-family: var(--f-title); font-size: .72rem;
  letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.7);
  display: flex; align-items: center; gap: 14px;
}
.hero__scroll::after { content: ""; width: 1px; height: 70px; background: rgba(255,255,255,.5); }

/* En-tête des pages intérieures */
.page-hero {
  position: relative; color: var(--white);
  padding: 140px 0 90px; overflow: hidden;
}
.page-hero > .media { position: absolute; inset: 0; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(23,25,38,.88) 0%, rgba(23,25,38,.55) 60%, rgba(23,25,38,.35) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.page-hero p { color: rgba(255,255,255,.82); max-width: 56ch; font-size: 1.15rem; }
.breadcrumb { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe-light); margin-bottom: 18px; font-family: var(--f-title); font-weight: 600; }
.breadcrumb a:hover { color: var(--white); }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 130px 0; }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: rgba(255,255,255,.78); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 64px; }
.section-head h2 { max-width: 16ch; margin: 0; }
.section-head .lead { margin: 0; }

/* Intro / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media .media { aspect-ratio: 4/5; }
.split__media .media--small {
  position: absolute; width: 46%; aspect-ratio: 1; right: -40px; bottom: -50px;
  border: 10px solid var(--white);
}
.split__badge {
  position: absolute; left: -30px; top: 40px; z-index: 2;
  background: var(--taupe); color: var(--white);
  padding: 26px 28px; text-align: center; font-family: var(--f-title);
}
.split__badge strong { display: block; font-size: 2.8rem; line-height: 1; font-weight: 800; }
.split__badge span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 44px 0; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--f-title); font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stat span { font-size: .85rem; color: var(--muted); }

/* Cartes savoir-faire (accueil) */
.services-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px;
}
.service-card { position: relative; display: block; color: var(--white); overflow: hidden; grid-column: span 2; }
.service-card:nth-child(1), .service-card:nth-child(2) { grid-column: span 3; }
.service-card .media { aspect-ratio: 4/5; }
.service-card:nth-child(1) .media, .service-card:nth-child(2) .media { aspect-ratio: 16/11; }
.service-card .media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(23,25,38,.85) 100%);
}
.service-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px; }
.service-card__num { font-family: var(--f-brush); font-size: 1.3rem; color: var(--taupe-light); }
.service-card h3 { color: var(--white); font-size: 1.7rem; margin: 6px 0 8px; text-transform: uppercase; }
.service-card p {
  margin: 0; color: rgba(255,255,255,.8); font-size: .95rem;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .5s var(--ease), margin .5s;
}
.service-card:hover p { max-height: 120px; opacity: 1; margin-top: 8px; }
.service-card:hover .media__img { transform: scale(1.06); }

/* Processus */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 40px 34px 10px; border-left: 1px solid rgba(255,255,255,.14); position: relative; }
.step:first-child { border-left: 0; padding-left: 0; }
.step__num { font-family: var(--f-brush); font-size: 3.4rem; color: var(--taupe); line-height: 1; margin-bottom: 18px; display: block; }
.step h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em; }
.step p { font-size: .95rem; margin: 0; }

/* Galerie */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px; gap: 20px;
}
.gallery__item { position: relative; display: block; overflow: hidden; cursor: zoom-in; }
.gallery__item .media { position: absolute; inset: 0; }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; background: rgba(23,25,38,0);
  transition: background .4s var(--ease);
}
.gallery__caption {
  position: absolute; left: 24px; bottom: 22px; right: 24px; z-index: 2; color: var(--white);
  transform: translateY(12px); opacity: 0; transition: all .4s var(--ease);
}
.gallery__caption small { font-family: var(--f-title); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-light); }
.gallery__caption strong { display: block; font-family: var(--f-title); font-size: 1.2rem; }
.gallery__item:hover::after { background: rgba(23,25,38,.45); }
.gallery__item:hover .gallery__caption { transform: none; opacity: 1; }
.gallery__item:hover .media__img { transform: scale(1.05); }

.g-a { grid-column: span 7; grid-row: span 4; }
.g-b { grid-column: span 5; grid-row: span 2; }
.g-c { grid-column: span 5; grid-row: span 2; }
.g-d { grid-column: span 4; grid-row: span 3; }
.g-e { grid-column: span 4; grid-row: span 3; }
.g-f { grid-column: span 4; grid-row: span 3; }

/* Galerie page Réalisations */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.filter {
  font-family: var(--f-title); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 22px; border: 1px solid var(--line); background: transparent;
  color: var(--ink); cursor: pointer; border-radius: 40px;
  transition: all .3s var(--ease);
}
.filter:hover { border-color: var(--taupe); color: var(--taupe); }
.filter.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.project { display: block; cursor: zoom-in; transition: opacity .4s, transform .4s; }
.project.is-hidden { display: none; }
.project .media { aspect-ratio: 4/5; margin-bottom: 18px; }
.project:nth-child(3n+2) .media { aspect-ratio: 4/4.4; }
.project:hover .media__img { transform: scale(1.05); }
.project__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.project h3 { font-size: 1.2rem; margin: 0; }
.project small { font-family: var(--f-title); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); white-space: nowrap; }
.project p { font-size: .92rem; color: var(--muted); margin: 6px 0 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500; display: none;
  background: rgba(15,16,24,.94); align-items: center; justify-content: center; padding: 60px;
}
.lightbox.is-open { display: flex; }
.lightbox__frame { width: min(1100px, 100%); }
.lightbox .media { aspect-ratio: 3/2; width: 100%; }
.lightbox .media__img { background-size: contain; background-repeat: no-repeat; }
.lightbox__caption { color: var(--white); margin-top: 18px; font-family: var(--f-title); font-size: 1.1rem; }
.lightbox__close {
  position: absolute; top: 24px; right: 30px; width: 50px; height: 50px; border: 0; cursor: pointer;
  background: transparent; color: var(--white); font-size: 2rem; line-height: 1;
}

/* Matériaux */
.materials { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.material { text-align: left; }
.material__swatch { aspect-ratio: 1; margin-bottom: 16px; position: relative; overflow: hidden; }
.material h4 { font-size: 1rem; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .04em; }
.material p { font-size: .88rem; color: var(--muted); margin: 0; }
.sw-chene { background: repeating-linear-gradient(92deg, #c9a77c 0 3px, #bf9b6e 3px 7px, #d2b48c 7px 12px, #b8915f 12px 14px); }
.sw-noyer { background: repeating-linear-gradient(88deg, #5c4030 0 4px, #4d3426 4px 9px, #6b4a37 9px 13px, #3f2a1f 13px 15px); }
.sw-laque { background: linear-gradient(135deg, #f4f1ec 0%, #dcd6cc 100%); }
.sw-laque-ink { background: linear-gradient(135deg, #2b2e40 0%, #171926 100%); }
.sw-metal { background: linear-gradient(135deg, #3a3a3a 0%, #8a8580 45%, #2d2d2d 100%); }

/* Engagements */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.feature__icon {
  width: 58px; height: 58px; border: 1.5px solid var(--taupe); border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 22px; color: var(--taupe);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .02em; }
.feature p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Bandeau texte défilant */
.marquee { overflow: hidden; background: var(--taupe); color: var(--white); padding: 26px 0; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 60px; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-brush); font-size: 2rem; display: inline-flex; align-items: center; gap: 60px; }
.marquee span::after { content: "✦"; font-family: var(--f-body); font-size: 1rem; color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Appel à l'action */
.cta { position: relative; padding: 150px 0; color: var(--white); text-align: center; overflow: hidden; }
.cta > .media { position: absolute; inset: 0; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(23,25,38,.78); }
.cta .container { position: relative; z-index: 2; }
.cta h2 { color: var(--white); text-transform: uppercase; max-width: 18ch; margin-inline: auto; }
.cta h2 .brush { color: var(--taupe-light); text-transform: none; }
.cta p { max-width: 54ch; margin: 0 auto 36px; color: rgba(255,255,255,.82); font-size: 1.12rem; }
.cta .hero__actions { justify-content: center; }

/* Page Services : blocs détaillés */
.service-detail { padding: 110px 0; border-bottom: 1px solid var(--line); }
.service-detail:last-of-type { border-bottom: 0; }
.service-detail .split__media .media { aspect-ratio: 5/4; }
.service-detail__num { font-family: var(--f-brush); font-size: 4.5rem; color: var(--sand); line-height: .8; display: block; margin-bottom: 10px; }
.checklist { margin: 24px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checklist li { position: relative; padding-left: 28px; font-size: .96rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 2px; background: var(--taupe);
}

.subnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0; }
.subnav a { white-space: nowrap; display: block; padding: 8px 18px; font-family: var(--f-title); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 30px; }
.subnav a:hover { background: var(--white); color: var(--taupe-dark); }

/* Atelier / valeurs */
.quote { font-family: var(--f-title); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.3; color: var(--ink); font-weight: 600; max-width: 30ch; margin: 0 auto; text-align: center; letter-spacing: -0.01em; }
.quote em { font-style: normal; font-family: var(--f-brush); color: var(--taupe); font-weight: 400; }
.quote-sign { text-align: center; margin-top: 26px; }

.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 20px; }
.mosaic .media:first-child { grid-row: span 2; }
.mosaic .media:nth-child(4) { grid-column: span 2; }

/* FAQ */
.faq { max-width: 880px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 28px 50px 28px 0; position: relative;
  font-family: var(--f-title); font-weight: 700; font-size: 1.15rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.8rem; font-weight: 300; color: var(--taupe); transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 50px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 80px; align-items: start; }
.contact-card { background: var(--ink); color: rgba(255,255,255,.8); padding: 54px 48px; }
.contact-card h3 { color: var(--white); text-transform: uppercase; }
.contact-list { margin: 30px 0; display: grid; gap: 24px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list svg { width: 22px; height: 22px; color: var(--taupe-light); margin-top: 3px; }
.contact-list small { display: block; font-family: var(--f-title); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe-light); }
.contact-list a:hover { color: var(--white); }
.hours { border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px; font-size: .92rem; }
.hours div { display: flex; justify-content: space-between; padding: 4px 0; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--f-title); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 15px 16px; border: 1px solid var(--line); background: var(--cream);
  border-radius: var(--radius); transition: border-color .3s, background .3s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--taupe); background: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { margin: 0; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 30px;
  font-family: var(--f-body); font-size: .9rem; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--text);
  transition: all .25s;
}
.chips input:checked + span { background: var(--taupe); border-color: var(--taupe); color: var(--white); }
.form__note { font-size: .82rem; color: var(--muted); margin: 0; }
.form__success { display: none; padding: 18px 22px; background: var(--cream); border-left: 3px solid var(--taupe); }
.form.is-sent + .form__success { display: block; }

.map { aspect-ratio: 21/7; margin-top: 0; }

/* =========================================================
   Pied de page
   ========================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,.66); padding: 100px 0 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 60px; padding-bottom: 70px; }
.footer__logo img { height: 92px; width: auto; margin-bottom: 26px; }
.footer h4 { color: var(--white); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 24px; }
.footer ul { display: grid; gap: 12px; }
.footer a:hover { color: var(--white); }
.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  display: grid; place-items: center; transition: all .3s;
}
.socials a:hover { background: var(--taupe); border-color: var(--taupe); }
.socials svg { width: 17px; height: 17px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0; font-size: .82rem;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
  .split { gap: 60px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .materials { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .topbar__info span:not(:first-child) { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 40px 24px;
    transform: translateX(100%); transition: transform .45s var(--ease);
  }
  .menu-open .nav { transform: none; }
  .nav__links { flex-direction: column; gap: 6px; width: 100%; }
  .nav__links a { font-size: 1.5rem; display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .logo img { height: 48px; }

  .section { padding: 90px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 70px; }
  .split--reverse .split__media { order: 0; }
  .split__media .media--small { right: 0; }
  .split__badge { left: 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card, .service-card:nth-child(1), .service-card:nth-child(2) { grid-column: span 1; }
  .service-card .media, .service-card:nth-child(1) .media, .service-card:nth-child(2) .media { aspect-ratio: 4/5; }
  .service-card p { max-height: none; opacity: 1; margin-top: 8px; }
  .process { grid-template-columns: 1fr 1fr; gap: 20px; }
  .step, .step:first-child { border-left: 0; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); }
  .gallery { grid-auto-rows: 90px; }
  .projects { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .mosaic .media:first-child { grid-row: span 1; grid-column: span 2; }
  .hero__scroll { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .hero .container { padding-bottom: 60px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .stat strong { font-size: 1.9rem; }
  .services-grid, .projects, .process, .features, .checklist, .form { grid-template-columns: 1fr; }
  .materials { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 12px; }
  .g-a, .g-b, .g-c, .g-d, .g-e, .g-f { grid-column: span 1; grid-row: span 1; }
  .g-a { grid-column: span 2; grid-row: span 2; }
  .gallery__caption { opacity: 1; transform: none; left: 14px; bottom: 12px; }
  .gallery__caption strong { font-size: .95rem; }
  .gallery__item::after { background: linear-gradient(180deg, transparent 50%, rgba(23,25,38,.7)); }
  .footer__grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-card { padding: 40px 28px; }
  .lightbox { padding: 20px; }
  .map { aspect-ratio: 4/3; }
}

/* Correctifs */
html, body { overflow-x: clip; }
@media (max-width: 960px) {
  .nav { visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
  .menu-open .nav { visibility: visible; transition: transform .45s var(--ease); }
}
.hero > .media.is-empty::after,
.page-hero > .media.is-empty::after,
.cta > .media.is-empty::after { top: 24px; right: 24px; left: auto; transform: none; }

/* Logo agrandi */
:root { --header-h: 116px; }
.logo img { height: 92px; }
.header.is-scrolled .logo img { height: 72px; }
.footer__logo img { height: 130px; }

/* Bouton flottant « Configurateur » (toutes les pages) */
.fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 450;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  background: var(--taupe); color: var(--white);
  font-family: var(--f-title); font-weight: 700; font-size: .85rem;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: 60px;
  box-shadow: 0 12px 34px rgba(23,25,38,.28);
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.fab svg { width: 20px; height: 20px; flex: none; }
.fab:hover { background: var(--ink); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(23,25,38,.35); }
.lightbox.is-open ~ .fab { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 92px; }
  .logo img, .header.is-scrolled .logo img { height: 68px; }
}
@media (max-width: 640px) {
  .fab { right: 16px; bottom: 16px; padding: 15px 22px; font-size: .78rem; }
}
.hero__scroll { bottom: 140px; }

/* Lien Configurateur mis en avant dans le menu */
.nav__links a.is-config { color: var(--taupe-dark); }
.nav__links a.is-config::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--taupe); margin-right: 8px; vertical-align: middle; transform: translateY(-1px);
}
