/* ==========================================================================
   Norest Enduits — feuille de style principale
   ========================================================================== */

:root {
  --ink: #17171b;
  --ink-2: #222228;
  --ink-3: #2e2e36;
  --text: #24242a;
  --muted: #625d55;
  --line: #e6dfd2;
  --paper: #fffdf8;
  --sand: #f5efe3;
  --sand-2: #ece3d2;
  --yellow: #f7b500;
  --yellow-2: #ffd34d;
  --yellow-ink: #3a2c00;
  --white: #fff;
  --ok: #1f7a4d;
  --error: #b42318;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(23, 23, 27, .06);
  --shadow: 0 18px 40px -18px rgba(23, 23, 27, .28);
  --shadow-lg: 0 40px 80px -30px rgba(23, 23, 27, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;

  --stripes: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }
ul, .steps, .checklist, .breadcrumb { padding: 0; margin: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em;
  border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--primary { --bg: var(--yellow); --fg: var(--ink); }
.btn--primary:hover { --bg: var(--yellow-2); }
.btn--dark { --bg: var(--ink); --fg: var(--white); }
.btn--outline-dark { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--outline-dark:hover { --bg: var(--ink); --fg: var(--white); }
.btn--ghost-light { --bg: rgba(255,255,255,.06); --fg: var(--white); --bd: rgba(255,255,255,.25); }
.btn--ghost-light:hover { --bg: rgba(255,255,255,.14); }
.btn--sm { padding: .6em 1.1em; font-size: .95rem; }
.btn--lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Barre supérieure & en-tête ---------- */
.topbar { background: var(--ink); color: #cfcabf; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.topbar__item { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; }
.topbar__item .icon { color: var(--yellow); }
a.topbar__item { color: var(--white); font-weight: 600; }
a.topbar__item:hover { color: var(--yellow); }

.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
/* Flou sur un pseudo-élément : un backdrop-filter sur .header piégerait le menu mobile (position: fixed) */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 253, 248, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(0,0,0,.35); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); transition: height .3s var(--ease); }
.header.is-scrolled .header__inner { height: 68px; }
.brand { flex: none; display: block; }
.brand img { height: 62px; width: auto; transition: height .3s var(--ease); }
.header.is-scrolled .brand img { height: 50px; }
.header__actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: .25rem; }
.nav__link {
  position: relative; display: block; padding: .55rem .8rem;
  font-weight: 600; font-size: .97rem; text-decoration: none; color: var(--ink);
  border-radius: 999px; transition: background-color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 3px;
  background: var(--yellow); border-radius: 3px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }

.burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--ink); cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 700 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: #9a6d00; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--yellow); border-radius: 3px; }
.eyebrow--light { color: var(--yellow); }
.eyebrow--dark { color: var(--ink); }
.eyebrow--dark::before { background: var(--ink); }
.section-title { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.hl { color: var(--yellow); }
.hl-under {
  background: linear-gradient(transparent 62%, var(--yellow-2) 62% 92%, transparent 92%);
  padding-inline: .08em;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: #d9d4ca; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .lead { color: #b7b1a6; }
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .lead { margin-inline: auto; }
.section__head--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.section__head--split > div { max-width: 700px; }

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 10%, #2c2a24 0%, transparent 60%), var(--ink);
  color: #d9d4ca;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4.5rem, 9vw, 7.5rem);
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .35; pointer-events: none; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--stripes);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title {
  color: var(--white);
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-stretch: 118%;
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.02em;
  margin-bottom: 1.4rem;
}
.hero__title .hl { display: inline-block; position: relative; }
.hero__text { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #c9c3b7; max-width: 54ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.75rem; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(1.25rem, 4vw, 3rem); justify-content: start; margin: 0; }
.hero__stats dd { margin: 0; }
.stat__num { display: block; font: 900 clamp(2rem, 3.6vw, 2.8rem)/1 var(--font-display); font-stretch: 120%; color: var(--white); }
.stat__num small { font-size: .55em; color: var(--yellow); margin-left: .1em; }
.stat__label { display: block; margin-top: .4rem; font-size: .9rem; color: #aaa397; max-width: 16ch; line-height: 1.35; }

.hero__visual { position: relative; aspect-ratio: 1 / 1.02; }
.hero__photo {
  position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 6px solid var(--ink-2);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--1 { inset: 0 22% 30% 0; }
.hero__photo--2 { inset: 42% 0 0 34%; }
.hero__photo--3 { width: 38%; aspect-ratio: 1; right: 2%; top: 4%; border-radius: 50%; border-color: var(--yellow); }
.hero__badge {
  position: absolute; left: 4%; bottom: 6%; z-index: 2;
  display: flex; align-items: center; gap: .8rem;
  background: var(--white); color: var(--ink); padding: .9rem 1.2rem .9rem .9rem;
  border-radius: 16px; box-shadow: var(--shadow-lg); font-weight: 600; line-height: 1.25;
}
.hero__badge .icon { width: 44px; height: 44px; padding: 10px; background: var(--yellow); border-radius: 12px; }
.hero__badge small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }

/* ---------- Bandeau défilant ---------- */
.marquee { background: var(--yellow); color: var(--ink); overflow: hidden; border-block: 3px solid var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__group { display: flex; align-items: center; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 1.6rem; padding: 1rem 1.6rem 1rem 0;
  font: 800 clamp(1.1rem, 2vw, 1.5rem)/1 var(--font-display); font-stretch: 120%; text-transform: uppercase; white-space: nowrap;
}
.marquee__item::after { content: "✦"; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cartes services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  border: 1px solid var(--line);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service__media img { transform: scale(1.07); }
.service__icon {
  position: absolute; left: 1.1rem; bottom: -24px; z-index: 1;
  width: 52px; height: 52px; padding: 13px; border-radius: 14px;
  background: var(--yellow); color: var(--ink); box-shadow: 0 8px 20px -6px rgba(0,0,0,.35);
}
.service__body { padding: 2.2rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.service__title { font-size: 1.3rem; margin-bottom: .5rem; }
.service__text { font-size: .97rem; color: var(--muted); margin-bottom: 1.2rem; }
.service__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--ink); }
.service__more .icon { transition: transform .3s var(--ease); }
.service:hover .service__more .icon { transform: translateX(4px); }

/* ---------- Split (texte + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }
.split__media::before {
  content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border-radius: var(--radius-lg); background: var(--stripes); opacity: .9; z-index: 0;
}
.split--reverse .split__media::before { inset: 1.5rem 1.5rem -1.5rem -1.5rem; }
.split__media img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.split__media--plain::before { display: none; }
.split__tag {
  position: absolute; z-index: 2; right: -0.75rem; top: 1.5rem;
  background: var(--ink); color: var(--white); padding: .7rem 1rem; border-radius: 12px;
  font: 800 .95rem/1.2 var(--font-display); font-stretch: 115%; box-shadow: var(--shadow);
}
.split__tag span { color: var(--yellow); display: block; font-size: 1.6rem; }

/* ---------- Listes ---------- */
.checklist { display: grid; gap: .75rem; margin: 1.5rem 0 2rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; }
.checklist .icon {
  width: 26px; height: 26px; padding: 5px; margin-top: .1em; border-radius: 50%;
  background: var(--yellow); color: var(--ink); stroke-width: 3;
}
.section--dark .checklist li { color: #e6e1d7; }
.checklist--cols { grid-template-columns: repeat(2, 1fr); gap: .9rem 2rem; }

/* ---------- Atouts ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature {
  padding: 1.8rem 1.5rem; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--ink-3);
  transition: transform .4s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--yellow); }
.feature .icon { width: 46px; height: 46px; color: var(--yellow); margin-bottom: 1.2rem; }
.feature h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.feature p { font-size: .96rem; color: #b5afa3; margin: 0; }
.features--3 { grid-template-columns: repeat(3, 1fr); }
.features--light .feature { background: var(--white); border-color: var(--line); }
.features--light .feature h3 { color: var(--ink); }
.features--light .feature p { color: var(--muted); }
.features--light .feature .icon { color: var(--ink); background: var(--yellow); border-radius: 14px; padding: 10px; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.75rem 1.5rem 1.6rem; border-top: 4px solid var(--ink); background: var(--white); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; margin-bottom: .8rem;
  font: 900 3.2rem/1 var(--font-display); font-stretch: 125%;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
}
.step:hover::before { color: var(--yellow); }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { font-size: .96rem; color: var(--muted); margin: 0; }

/* ---------- Bandeau d'en-tête des pages internes ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: #d9d4ca;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3.5rem, 8vw, 6rem);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(23,23,27,.96) 0%, rgba(23,23,27,.82) 45%, rgba(23,23,27,.35) 100%);
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--stripes); }
.page-hero__title { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.6rem); font-stretch: 120%; font-weight: 900; max-width: 16ch; margin-bottom: 1rem; }
.page-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 58ch; color: #d2ccc1; margin-bottom: 1.8rem; }
.page-hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.breadcrumb { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .9rem; margin-bottom: 1.4rem; color: #a8a297; }
.breadcrumb a { color: var(--yellow); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: #6b665d; }

/* ---------- Galerie ---------- */
.gallery { columns: 4 240px; column-gap: 1rem; }
.gallery__item {
  position: relative; display: block; margin-bottom: 1rem; break-inside: avoid;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--sand-2);
  box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; transition: transform .7s var(--ease), filter .4s; }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(23,23,27,.55));
  opacity: 0; transition: opacity .35s;
}
.gallery__zoom {
  position: absolute; right: .8rem; bottom: .8rem; z-index: 1;
  width: 40px; height: 40px; padding: 10px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .3s, transform .35s var(--ease);
}
.gallery__zoom .icon { width: 100%; height: 100%; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery__item.is-hidden { display: none; }
.gallery__more { margin-top: 2rem; text-align: center; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter {
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  padding: .55rem 1.1rem; border-radius: 999px; font: 600 .95rem/1 var(--font-body); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.filter:hover { background: var(--sand-2); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filter__count { opacity: .6; margin-left: .3em; font-weight: 500; }

/* ---------- Visionneuse ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(12, 12, 14, .94); color: var(--white);
}
.lightbox::backdrop { background: rgba(12, 12, 14, .9); }
.lightbox[open] { display: grid; place-items: center; animation: fade .25s ease; }
.lightbox__figure { margin: 0; padding: 4.5rem 1rem 3.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lightbox__img { max-width: min(1400px, 100%); max-height: calc(100vh - 9rem); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__caption { margin-top: 1rem; font-size: .9rem; color: #bbb5aa; text-align: center; }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; padding: 13px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: var(--white); transition: background-color .2s, color .2s;
}
.lightbox__btn:hover { background: var(--yellow); color: var(--ink); }
.lightbox__btn .icon { width: 100%; height: 100%; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 880px; margin-inline: auto; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .3s;
}
.faq details[open] { border-color: var(--ink); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 1.4rem; font: 700 1.1rem/1.3 var(--font-display); font-stretch: 108%; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sand); font: 500 1.4rem/1 var(--font-body); transition: transform .3s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq__answer { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.faq__answer p:last-child { margin: 0; }

/* ---------- Bloc couleurs / nuancier ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.swatch { width: 46px; height: 46px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch:nth-child(1) { background: #efe6d2; } .swatch:nth-child(2) { background: #e8d7b5; }
.swatch:nth-child(3) { background: #dcc49a; } .swatch:nth-child(4) { background: #d8b98a; }
.swatch:nth-child(5) { background: #c9a777; } .swatch:nth-child(6) { background: #e9dcc9; }
.swatch:nth-child(7) { background: #d4c5b0; } .swatch:nth-child(8) { background: #b9a48a; }
.swatch:nth-child(9) { background: #e6c9a8; } .swatch:nth-child(10) { background: #f1e9db; }

/* ---------- Citation / chiffres ---------- */
.quote-card {
  position: relative; padding: clamp(2rem, 5vw, 3rem); border-radius: var(--radius-lg);
  background: var(--ink); color: #ddd8ce; overflow: hidden;
}
.quote-card .icon { width: 54px; height: 54px; color: var(--yellow); margin-bottom: 1.2rem; }
.quote-card p { font: 700 clamp(1.3rem, 2.4vw, 1.8rem)/1.3 var(--font-display); font-stretch: 105%; color: var(--white); }
.quote-card footer { color: var(--yellow); font-weight: 600; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.numbers > div { background: var(--white); padding: 1.8rem 1.4rem; }
.numbers .stat__num { color: var(--ink); }
.numbers .stat__label { color: var(--muted); }

/* ---------- Bandeau CTA ---------- */
.cta-band { position: relative; background: var(--yellow); overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; border-radius: 50%;
  border: 60px solid rgba(23,23,27,.07);
}
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(3rem, 7vw, 5rem); }
.cta-band__title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-stretch: 122%; font-weight: 900; margin-bottom: .5rem; }
.cta-band__text { margin: 0; color: var(--yellow-ink); font-size: 1.1rem; max-width: 50ch; }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: #aaa397; padding-top: clamp(3.5rem, 7vw, 5rem); font-size: .97rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__logo { display: inline-block; background: var(--white); padding: .6rem .9rem; border-radius: 14px; margin-bottom: 1.2rem; }
.footer__logo img { height: 64px; width: auto; }
.footer__badge { display: inline-flex; gap: .5rem; align-items: center; color: var(--white); font-weight: 600; }
.footer__badge .icon { color: var(--yellow); }
.footer__title { font: 800 1rem/1.2 var(--font-display); font-stretch: 115%; color: var(--white); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.2rem; }
.footer__links { display: grid; gap: .6rem; }
.footer__links a, .footer__contact a { text-decoration: none; transition: color .2s; }
.footer__links a:hover, .footer__contact a:hover { color: var(--yellow); }
.footer__contact { display: grid; gap: .9rem; }
.footer__contact > * { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact .icon { color: var(--yellow); margin-top: .2em; }
.footer__contact a { color: var(--white); font-weight: 600; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--ink-3); padding-block: 1.5rem; font-size: .88rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--yellow); }

/* ---------- Barre d'action mobile ---------- */
.action-bar { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow-sm); }
.info-cards { display: grid; gap: 1rem; }
.info-card {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.4rem;
  background: var(--ink); color: #cfc9be; border-radius: var(--radius); text-decoration: none;
  transition: transform .3s var(--ease);
}
a.info-card:hover { transform: translateY(-3px); }
.info-card .icon { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--yellow); color: var(--ink); }
.info-card strong { display: block; color: var(--white); font: 800 1.15rem/1.25 var(--font-display); font-stretch: 110%; }
.info-card small { color: #a59f93; }

.map {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--sand-2) var(--grain); border: 1px solid var(--line);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: .8rem; text-align: center; padding: 1.5rem; }
.map__placeholder .icon { width: 44px; height: 44px; margin-inline: auto; color: var(--ink); }
.map__placeholder p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .req { color: var(--error); }
.input {
  width: 100%; padding: .9rem 1rem; border-radius: 12px; border: 2px solid var(--line);
  background: var(--paper); color: var(--text); font: 400 1rem/1.4 var(--font-body);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input:hover { border-color: var(--sand-2); }
.input:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgba(247,181,0,.35); }
textarea.input { min-height: 160px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317171b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.8rem; }
.field.has-error .input { border-color: var(--error); background: #fff7f6; }
.field__error { color: var(--error); font-size: .88rem; font-weight: 500; }
.field__hint { color: var(--muted); font-size: .85rem; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin-top: .1rem; accent-color: var(--ink); flex: none; }
.consent.has-error { color: var(--error); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: 14px; margin-bottom: 1.5rem; }
.alert .icon { width: 28px; height: 28px; flex: none; }
.alert p { margin: 0; }
.alert--ok { background: #e8f5ee; color: var(--ok); border: 1px solid #b7dfc8; }
.alert--error { background: #fdeeec; color: var(--error); border: 1px solid #f4c7c1; }
.form__footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form__note { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Pages texte ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.prose a { color: #8a6100; font-weight: 600; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1.1em; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .lead { margin-inline: auto; }
.notfound__code { font: 900 clamp(6rem, 22vw, 14rem)/.9 var(--font-display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 3px var(--ink); margin: 0; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-group > * { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-group.is-visible > * { opacity: 1; transform: none; }
.js .reveal-group.is-visible > :nth-child(2) { transition-delay: .08s; }
.js .reveal-group.is-visible > :nth-child(3) { transition-delay: .16s; }
.js .reveal-group.is-visible > :nth-child(4) { transition-delay: .24s; }
.js .reveal-group.is-visible > :nth-child(5) { transition-delay: .32s; }
.js .reveal-group.is-visible > :nth-child(6) { transition-delay: .4s; }
.hero__photo { animation: rise 1s var(--ease) both; }
.hero__photo--2 { animation-delay: .15s; }
.hero__photo--3 { animation-delay: .3s; }
.hero__badge { animation: rise 1s var(--ease) .45s both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.97); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .services, .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .nav__link { padding-inline: .6rem; font-size: .93rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 52px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(420px, 100%);
    margin: 0; padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
    background: var(--ink); display: flex; flex-direction: column; gap: 2rem; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s .45s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); box-shadow: -30px 0 80px rgba(0,0,0,.4); }
  .nav__list { flex-direction: column; gap: .2rem; }
  .nav__link { color: var(--white); font: 800 1.6rem/1.2 var(--font-display); font-stretch: 115%; padding: .7rem 0; border-radius: 0; border-bottom: 1px solid var(--ink-3); }
  .nav__link::after { left: 0; right: auto; width: 40px; bottom: -1px; }
  .nav__mobile-extra { display: grid; gap: .7rem; }
  .burger { position: relative; z-index: 70; }
  body.nav-open { overflow: hidden; }
  body.nav-open .burger { background: var(--yellow); }
  body.nav-open .burger span { background: var(--ink); }

  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .split--reverse .split__media { order: 0; }
  .split__media { margin-right: 1.5rem; }
  .split--reverse .split__media { margin: 0 0 0 1.5rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; padding-bottom: 68px; }
  .topbar__item--hide-sm { display: none; }
  .topbar__inner { font-size: .8rem; }
  .services, .features, .steps, .footer__grid, .form__row, .checklist--cols { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stat__label { font-size: .8rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__badge { left: 0; bottom: 2%; padding: .7rem 1rem .7rem .7rem; font-size: .9rem; }
  .hero__badge .icon { width: 38px; height: 38px; padding: 8px; }
  .gallery { columns: 2; column-gap: .6rem; }
  .gallery__item { margin-bottom: .6rem; }
  .cta-band__actions, .cta-band__actions .btn, .page-hero__actions .btn { width: 100%; }
  .split__tag { right: .5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
  .lightbox__prev { left: calc(50% - 62px); }
  .lightbox__next { right: calc(50% - 62px); }
  .footer__bottom { flex-direction: column; }

  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
    background: rgba(23,23,27,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .action-bar__btn {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem; border-radius: 12px; font-weight: 600; text-decoration: none;
    color: var(--white); background: var(--ink-3);
  }
  .action-bar__btn--primary { background: var(--yellow); color: var(--ink); }
}

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

@media print {
  .topbar, .header, .action-bar, .cta-band, .footer, .lightbox { display: none !important; }
  .page-hero, .hero { background: none; color: #000; }
}
