/* =====================================================================
   ATELIER CASTEL — v2 "Artisan brut" (voir DESIGN.md / skill anti-ai-design)
   ===================================================================== */

:root {
  --paper:    #EFE7D9;
  --paper-2:  #E4D7C2;
  --chaux:    #F7F2E8;
  --ink:      #211C16;
  --ink-soft: #564D41;
  --brique:   #BB4D2C;
  --brique-dk:#933A20;
  --rose:     #C98B6E;
  --terre:    #1C1812;
  --line:     #D8C7AC;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --step--1: clamp(.8rem, .78rem + .1vw, .88rem);
  --step-0:  clamp(1rem, .97rem + .15vw, 1.1rem);
  --step-1:  clamp(1.15rem, 1.05rem + .4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.55rem + 2vw, 3.2rem);
  --step-4:  clamp(2.5rem, 1.7rem + 3.6vw, 4.6rem);

  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* grain papier subtil (côté brut) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: 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='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .header, .footer { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2.5px solid var(--brique); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }
.h2 { font-size: var(--step-3); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 760px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 4px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brique); margin-bottom: 1rem; }
.eyebrow--light { color: var(--rose); }

/* ---------- BOUTONS (arêtes franches, lift minimal) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-weight: 600; line-height: 1; padding: .95em 1.5em; border-radius: 4px; transition: background .2s, transform .15s, color .2s, border-color .2s; }
.btn--primary { background: var(--brique); color: #fff; }
.btn--primary:hover { background: var(--brique-dk); transform: translateY(-1px); }
.btn--line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: .7em 1.05em; font-size: var(--step--1); }
.btn--lg { padding: 1.05em 1.7em; }
.btn--block { width: 100%; }

/* ---------- HEADER ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: .7rem 0; transition: background .35s, box-shadow .35s, padding .35s; }
.header__inner { display: flex; align-items: center; gap: 1.5rem; }
.header.is-stuck { background: rgba(247,242,232,.9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { color: #fff; transition: color .35s; }
.header.is-stuck .brand { color: var(--ink); }
.brand__text { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1; display: flex; flex-direction: column; gap: .28em; letter-spacing: -.01em; }
.brand__text small { font-family: var(--font-body); font-weight: 500; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.brand__text--light { color: #fff; }
.nav { margin-left: auto; display: flex; gap: 1.6rem; }
.nav a { color: #fff; font-weight: 500; font-size: .98rem; position: relative; opacity: .9; transition: color .35s, opacity .2s; }
.header.is-stuck .nav a { color: var(--ink); }
.nav a:hover { opacity: 1; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--brique); transition: width .3s var(--ease); }
.nav a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__phone { color: #fff; font-weight: 600; white-space: nowrap; transition: color .35s; }
.header.is-stuck .header__phone { color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: .3s; }
.header.is-stuck .nav-toggle span { background: var(--ink); }

/* ---------- HERO VIDÉO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--paper); overflow: hidden; }
.hero__video { position: absolute; inset: 0; z-index: 0; background: var(--terre); }
.hero__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transform-origin: 60% 40%; animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.18) translateY(-1.5%); } }
@media (prefers-reduced-motion: reduce) { .hero__still { animation: none; } }
.hero__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity .7s ease; }
.hero__vid.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__vid { display: none; } } /* on garde l'image fixe */
.hero__veil { position: absolute; inset: 0; z-index: 2; background: rgba(18,14,10,.40); } /* tint plat, pas un dégradé */
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: 7rem 5rem; }
.hero__panel { max-width: 660px; background: rgba(24,20,15,.62); backdrop-filter: blur(7px); border: 1px solid rgba(239,231,217,.14); border-radius: 12px; padding: clamp(1.7rem, 3vw, 2.7rem); }
.hero__panel .eyebrow { color: var(--rose); }
.hero__title { font-size: var(--step-4); max-width: 16ch; }
.hero__lead { font-size: var(--step-1); color: rgba(239,231,217,.85); max-width: 46ch; margin-top: 1.2rem; font-weight: 400; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__proof { margin-top: 1.5rem; font-size: .92rem; color: rgba(239,231,217,.85); }
.hero__proof .stars { color: var(--rose); letter-spacing: .08em; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(239,231,217,.4); color: var(--paper); font-size: 1.1rem; animation: bob 2s var(--ease) infinite; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,6px);} }
@media (prefers-reduced-motion: reduce){ .hero__scroll{ animation: none; } }
.btn--glass { background: rgba(247,242,232,.12); color: #fff; border: 1.5px solid rgba(247,242,232,.55); backdrop-filter: blur(4px); }
.btn--glass:hover { background: rgba(247,242,232,.22); transform: translateY(-1px); }

/* ---------- TRUST STRIP ---------- */
.trust { background: var(--brique); color: #fff; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2.5rem; padding: 1rem var(--gutter); font-weight: 600; font-size: var(--step--1); letter-spacing: .02em; text-transform: uppercase; }
.trust__row span { position: relative; }
.trust__row span + span::before { content: "·"; position: absolute; left: -1.3rem; opacity: .6; }

/* ---------- SECTIONS ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--paper { background: var(--paper-2); }
.section--dark { background: var(--terre); color: var(--paper); }
.head { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 3.8rem); }
.head__title--light { color: #fff; }
.head__intro { margin-top: 1rem; font-size: var(--step-1); color: var(--ink-soft); }

/* ---------- PATRON ---------- */
.patron { padding-block: clamp(4.5rem, 9vw, 8rem); }
.patron__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.patron__photo { overflow: hidden; border-radius: 6px; aspect-ratio: 3/4; }
.patron__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95) contrast(1.02); }
.patron__text .h2 { font-size: var(--step-2); margin-bottom: 1.2rem; max-width: 20ch; }
.patron__text p { color: var(--ink-soft); margin-bottom: 1rem; font-size: var(--step-1); }
.patron__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.2rem; margin-top: 1.4rem; display: flex; flex-direction: column; }
.patron__name span { font-family: var(--font-body); font-weight: 500; font-size: .9rem; color: var(--ink-soft); letter-spacing: .02em; }

/* ---------- SERVICES (liste éditoriale numérotée) ---------- */
.svc { border-top: 1px solid var(--line); }
.svc__row { display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 4vw, 3.5rem); align-items: baseline; padding: 1.8rem 0; border-bottom: 1px solid var(--line); transition: padding-left .25s var(--ease); }
.svc__row:hover { padding-left: .6rem; }
.svc__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--brique); }
.svc__body { display: grid; grid-template-columns: minmax(0, 18ch) 1fr; gap: clamp(.4rem, 3vw, 3rem); align-items: baseline; }
.svc__body h3 { font-size: var(--step-2); }
.svc__body p { color: var(--ink-soft); max-width: 52ch; }

/* ---------- AVANT / APRÈS ---------- */
.ba-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; }
.ba { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; user-select: none; touch-action: none; box-shadow: 0 20px 50px -30px rgba(40,25,15,.5); }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 3px solid var(--paper); }
.ba__before .ba__img { width: 100vw; max-width: none; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); box-shadow: 0 4px 14px rgba(0,0,0,.35); pointer-events: none; }
.ba__handle::before, .ba__handle::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border-block: 5px solid transparent; }
.ba__handle::before { left: 9px; border-right: 7px solid var(--ink); transform: translateY(-50%); }
.ba__handle::after { right: 9px; border-left: 7px solid var(--ink); transform: translateY(-50%); }
.ba__tag { position: absolute; bottom: 14px; z-index: 3; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(28,24,18,.82); color: #fff; padding: .35em .7em; border-radius: 3px; pointer-events: none; }
.ba__tag--l { left: 14px; } .ba__tag--r { right: 14px; }
.ba figcaption { position: absolute; top: 14px; left: 14px; z-index: 3; font-size: .78rem; font-weight: 600; color: #fff; background: var(--brique); padding: .4em .75em; border-radius: 3px; }

/* ---------- GALLERY ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.gallery__item { position: relative; overflow: hidden; border-radius: 6px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item figcaption { position: absolute; inset: auto 0 0 0; padding: 1.6rem 1.1rem .9rem; color: #fff; font-size: .82rem; display: flex; flex-direction: column; background: linear-gradient(180deg, transparent, rgba(28,24,18,.85)); }
.gallery__item figcaption strong { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; }

/* ---------- MÉTHODE ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.step { padding: 1.8rem 1.5rem; background: var(--chaux); border: 1px solid var(--line); border-radius: 6px; }
.section--paper .step { background: var(--paper); }
.step__n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--brique); display: block; margin-bottom: .7rem; }
.step h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.step p { color: var(--ink-soft); font-size: .96rem; }
/* casser la symétrie : la 1re et 3e cases légèrement décalées */
.step:nth-child(2), .step:nth-child(4) { transform: translateY(1.6rem); }

/* ---------- PRIX ---------- */
.prix { max-width: 820px; }
.prix li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(239,231,217,.16); }
.prix li:first-child { border-top: 1px solid rgba(239,231,217,.16); }
.prix__job { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.prix__val { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--rose); white-space: nowrap; }
.prix__val small { font-family: var(--font-body); font-size: .9rem; font-weight: 500; opacity: .7; }
.prix__note { margin-top: 1.6rem; color: rgba(239,231,217,.7); max-width: 60ch; }

/* ---------- STATS ---------- */
.stats { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 6vw, 4.5rem); }
.stats__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 .12rem; }
.stat__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); color: #fff; line-height: 1; }
.stat__suffix { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--rose); }
.stat__l { flex-basis: 100%; margin-top: .55rem; font-size: .92rem; color: rgba(239,231,217,.7); }

/* ---------- QUOTES ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.quote { background: var(--chaux); border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem 1.6rem; }
.quote:nth-child(2) { transform: translateY(1.4rem); }
.quote__stars { color: var(--brique); letter-spacing: .14em; margin-bottom: .9rem; }
.quote p { font-size: var(--step-1); line-height: 1.45; }
.quote cite { display: flex; flex-direction: column; margin-top: 1.2rem; font-style: normal; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.quote cite span { font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: var(--ink-soft); letter-spacing: .01em; margin-top: .15rem; }

/* ---------- CRITÈRES ---------- */
.criteria { counter-reset: c; display: grid; gap: .8rem; }
.criteria li { counter-increment: c; position: relative; padding: 1.1rem 1.3rem 1.1rem 3.8rem; background: var(--chaux); border: 1px solid var(--line); border-radius: 6px; font-size: var(--step-1); }
.criteria li::before { content: counter(c); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; background: var(--brique); color: #fff; font-family: var(--font-display); font-weight: 700; }

/* ---------- ZONE ---------- */
.zone { background: var(--paper-2); padding-block: clamp(3.5rem, 7vw, 5.5rem); text-align: center; }
.zone__title { font-size: var(--step-2); max-width: 22ch; margin-inline: auto; }
.zone__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.7rem; }
.zone__list li { background: var(--chaux); border: 1px solid var(--line); border-radius: 3px; padding: .5em 1em; font-weight: 600; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq__item { background: var(--chaux); border: 1px solid var(--line); border-radius: 6px; padding: 0 1.4rem; }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.2rem 0; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; color: var(--brique); transition: transform .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding-bottom: 1.25rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- CONTACT ---------- */
.contact { background: var(--terre); color: var(--paper); padding-block: clamp(4rem, 8vw, 6.5rem); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.2rem, 5vw, 4.5rem); align-items: start; }
.contact__title { color: #fff; max-width: 18ch; }
.contact__lead { margin-top: 1.1rem; font-size: var(--step-1); color: rgba(239,231,217,.78); }
.contact__coords { margin-top: 2rem; display: grid; gap: .7rem; font-size: var(--step-1); }
.contact__phone { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--rose); }
.contact__coords a:hover { color: var(--rose); }
.form { background: var(--chaux); color: var(--ink); border-radius: 8px; padding: clamp(1.6rem, 3vw, 2.3rem); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 5px; padding: .85em 1em; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder { color: #a99e8d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brique); box-shadow: 0 0 0 3px rgba(187,77,44,.14); }
.field textarea { resize: vertical; }
.form__note { text-align: center; font-size: .85rem; color: var(--ink-soft); margin-top: .85rem; }
.form__success { margin-top: 1rem; padding: 1rem 1.2rem; background: rgba(187,77,44,.1); border: 1px solid var(--brique); border-radius: 6px; font-weight: 600; color: var(--brique-dk); text-align: center; }

/* ---------- FOOTER ---------- */
.footer { background: #14110C; color: rgba(239,231,217,.7); padding-block: 3rem 1.6rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand { max-width: 36ch; }
.footer__brand .brand__text { font-size: 1.3rem; margin-bottom: .8rem; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.footer__nav a { font-weight: 500; transition: color .2s; }
.footer__nav a:hover { color: var(--rose); }
.footer__legal { padding-top: 1.4rem; font-size: .82rem; opacity: .6; }

/* ---------- CTA FLOTTANT (mobile) ---------- */
.cta-float { display: none; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; background: var(--brique); color: #fff; text-align: center; font-weight: 700; padding: 1em; border-radius: 6px; box-shadow: 0 14px 30px -10px rgba(187,77,44,.6); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
  .patron__inner, .contact__inner { grid-template-columns: 1fr; }
  .patron__photo { max-width: 420px; }
  .ba-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(n) { transform: none; }
  .quotes { grid-template-columns: 1fr; }
  .quote:nth-child(n) { transform: none; }
  .svc__body { grid-template-columns: 1fr; gap: .4rem; }
}

@media (max-width: 700px) {
  .header__phone { display: none; }
  .nav-toggle { display: flex; }
  .nav[data-nav] { display: flex; position: fixed; inset: 0 0 0 auto; width: min(82vw, 330px); flex-direction: column; gap: 0; background: var(--chaux); padding: 6rem 2rem 2rem; transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: -20px 0 60px -30px rgba(0,0,0,.5); margin: 0; z-index: 110; }
  .nav[data-nav].is-open { transform: none; }
  .nav[data-nav] a { color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; padding: 1rem 0; border-bottom: 1px solid var(--line); width: 100%; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(28,24,18,.5); z-index: 99; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery__item--tall { grid-row: span 1; }
  .stats__row, .trust__row { gap: 1.6rem 1.2rem; }
  .stats__row { grid-template-columns: repeat(2, 1fr); }
  .trust__row span + span::before { content: none; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .cta-float { display: block; }
  .footer__inner { flex-direction: column; }
}

@media (max-width: 440px) {
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .gallery__item--wide { grid-column: span 1; }
}

/* =====================================================================
   v3 — Cartes photo services + Carrousel 3D chantiers
   ===================================================================== */

/* ---------- CARTES PHOTO ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card { display: flex; }
.card__link { display: flex; flex-direction: column; width: 100%; background: var(--chaux); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .28s var(--ease), box-shadow .28s, border-color .28s; }
.card__link:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -30px rgba(40,25,15,.55); border-color: var(--rose); }
.card__media { display: block; aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.4rem 1.5rem; flex: 1; }
.card__body h3 { font-size: var(--step-1); }
.card__body p { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.card__arrow { margin-top: .7rem; font-weight: 600; color: var(--brique); font-size: .92rem; }
.card__link:hover .card__arrow { color: var(--brique-dk); }

/* ---------- CARROUSEL 3D ---------- */
.carousel { padding-block: clamp(4.5rem, 9vw, 8rem); overflow: hidden; }
.carousel__head { margin-bottom: 1.5rem; }
.carousel__cta { margin-top: 3rem; text-align: center; }

.c3d { display: flex; justify-content: center; align-items: flex-end; min-height: 460px; perspective: 2000px; padding: 2rem 1rem; }
.c3d__track { display: flex; align-items: flex-end; }
.c3d figure { position: relative; flex: none; width: clamp(220px, 22vw, 330px); aspect-ratio: 16/10; margin-left: -130px; border-radius: 12px; overflow: hidden; box-shadow: 20px 0 34px -16px rgba(0,0,0,.55); cursor: pointer; will-change: transform; transition: transform .4s var(--ease), box-shadow .3s; }
.c3d figure:first-child { margin-left: 0; }
.c3d figure img { width: 100%; height: 100%; object-fit: cover; }
.c3d figure figcaption { position: absolute; inset: auto 0 0 0; padding: 1.5rem .95rem .85rem; color: #fff; font-size: .78rem; display: flex; flex-direction: column; opacity: 0; transition: opacity .3s; background: rgba(20,16,12,.82); }
.c3d figure figcaption strong { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.c3d figure.is-active { box-shadow: -10px 24px 60px -20px rgba(0,0,0,.6); }
.c3d figure.is-active figcaption { opacity: 1; }

/* ---------- MARQUEE MOBILE ---------- */
.marquee { display: none; overflow: hidden; padding: 1.5rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; gap: 1rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee:active .marquee__track { animation-play-state: paused; }
.marquee figure { position: relative; flex: none; width: 270px; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 30px -16px rgba(0,0,0,.5); }
.marquee figure img { width: 100%; height: 100%; object-fit: cover; }
.marquee figure figcaption { position: absolute; inset: auto 0 0 0; padding: 1.4rem .9rem .8rem; color: #fff; font-size: .76rem; display: flex; flex-direction: column; background: rgba(20,16,12,.8); }
.marquee figure figcaption strong { font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

@media (max-width: 940px) {
  .c3d { display: none; }
  .marquee { display: block; }
}
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
