:root { --gutter: clamp(20px, 5vw, 64px); --hair: 1px solid #2c2722; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #1a1714;
  color: #f5f1ea;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 78px;
}
@media (min-width: 768px) { body { font-size: 18px; } }
@media (min-width: 900px) { body { padding-bottom: 0; } }

h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; image-orientation: from-image; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #c8743a; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: #c8743a; display: inline-block; }
.eyebrow.no-line::before { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; font-weight: 600; font-size: 15px; letter-spacing: 0.02em; border: 1px solid transparent; border-radius: 2px; transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease; white-space: nowrap; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: #c8743a; color: #1a120b; }
.btn-primary:hover { background: #d9a05b; }
.btn-ghost { background: transparent; color: #f5f1ea; border-color: #2c2722; }
.btn-ghost:hover { border-color: #c8743a; color: #c8743a; }
.btn svg { width: 18px; height: 18px; }

.section { padding-block: clamp(64px, 11vw, 140px); }

.diag { height: 1px; background: linear-gradient(90deg, transparent, #2c2722 18%, #2c2722 82%, transparent); }

::selection { background: #c8743a; color: #1a120b; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0f0d0b; }
::-webkit-scrollbar-thumb { background: #2c2722; }

.anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.anim .reveal.in { opacity: 1; transform: none; }
/* Décalages d'apparition (remplacent les style="transition-delay" inline) */
.rd-1 { transition-delay: .05s; }
.rd-2 { transition-delay: .07s; }
.rd-3 { transition-delay: .08s; }
.rd-4 { transition-delay: .1s; }
.rd-5 { transition-delay: .12s; }
.rd-6 { transition-delay: .14s; }
.rd-7 { transition-delay: .16s; }
.rd-8 { transition-delay: .18s; }

.media { position: relative; overflow: hidden; background: #221e1a; border-radius: 2px; }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---- Comparateur avant/après : zoom/crop fiable, indépendant de .media ---- */
/* Le léger scale(1.02) garantit l'absence de bords vides au niveau de la glissière. */
.ba-img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.02); transition: opacity .25s ease; will-change: opacity; }
.ba-img.is-loading { opacity: 0; }
.ba-img.is-preloaded { opacity: 1; }

/* ---- Utilitaires visuels (remplacent des styles inline pour la validation W3C) ---- */
.glass { background: rgba(15,13,11,.7); backdrop-filter: blur(4px); }
.glass-6 { background: rgba(15,13,11,.78); backdrop-filter: blur(6px); }
.cta-sms { background: linear-gradient(135deg, rgba(200,116,58,.16), #1a1714); border: 1px solid rgba(200,116,58,.4); }
.note-onsite { background: linear-gradient(135deg, rgba(200,116,58,.10), #1a1714); }
.callbar { background: rgba(15,13,11,.92); backdrop-filter: blur(12px); padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateY(120%); transition: transform .3s ease; }
.callbar.is-visible { transform: none; }
.ba-expand { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 6; width: 40px; height: 40px; display: grid; place-items: center; color: #f5f1ea; background: rgba(15,13,11,.6); backdrop-filter: blur(4px); border: 1px solid #2c2722; border-radius: 2px; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.ba-expand:hover { background: rgba(15,13,11,.9); border-color: #c8743a; }
.ba-expand svg { width: 18px; height: 18px; }
.handle-line { transform: translateX(-1px); }
.handle-knob { box-shadow: 0 4px 18px rgba(0,0,0,.45); }

blockquote { margin: 0; }

/* ---- Carrousel hero ---- */
.hero-carousel { position: relative; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; background: rgba(15,13,11,.55); backdrop-filter: blur(4px); color: #f5f1ea; border: 1px solid #2c2722; border-radius: 2px; cursor: pointer; z-index: 6; transition: background .2s ease, border-color .2s ease; }
.hero-nav:hover { background: rgba(15,13,11,.85); border-color: #c8743a; }
.hero-nav svg { width: 20px; height: 20px; }
.hero-nav.prev { left: 12px; }
.hero-nav.next { right: 12px; }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 6; }
.hero-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(245,241,234,.45); border: none; cursor: pointer; padding: 0; transition: background .2s ease, width .2s ease; }
.hero-dot.is-active { background: #c8743a; width: 22px; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* ---- Galerie : indice de zoom au survol ---- */
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.gallery-open .zoom-ic { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; color: #f5f1ea; background: rgba(15,13,11,.6); backdrop-filter: blur(4px); border: 1px solid #2c2722; border-radius: 2px; opacity: 0; transform: translateY(-4px); transition: opacity .25s ease, transform .25s ease, border-color .25s ease; }
.gallery-open .zoom-ic svg { width: 18px; height: 18px; }
.gallery-open:hover .zoom-ic, .gallery-open:focus-visible .zoom-ic { opacity: 1; transform: none; border-color: #c8743a; }
.gallery-open:hover img { transform: scale(1.04); }
.gallery-open .media img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.photo-count { position: absolute; bottom: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: #f5f1ea; background: rgba(15,13,11,.65); backdrop-filter: blur(4px); border: 1px solid #2c2722; border-radius: 999px; padding: 3px 9px; }

/* ---- Lightbox (aperçu projet) ---- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,13,11,.95); backdrop-filter: blur(10px); display: none; place-items: center; padding: clamp(16px,4vw,56px); opacity: 0; transition: opacity .25s ease; }
.lightbox.is-open { display: grid; opacity: 1; }
.lb-figure { margin: 0; width: 100%; max-width: 1120px; display: grid; gap: clamp(16px,3vw,32px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .lb-figure { grid-template-columns: 1.5fr 1fr; } }
.lb-imgwrap { background: #221e1a; border: 1px solid #2c2722; border-radius: 2px; overflow: hidden; }
.lb-imgwrap img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; display: block; margin: 0 auto; }
.lb-panel { min-width: 0; }
.lb-cat { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #c8743a; margin: 0 0 10px; }
.lb-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(26px,4vw,40px); line-height: 1.05; margin: 0 0 14px; }
.lb-desc { color: #9b9488; line-height: 1.65; margin: 0 0 18px; font-size: 16px; }
.lb-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.lb-tags li { font-size: 12px; color: #e6e0d5; padding: 5px 11px; border: 1px solid #2c2722; border-radius: 999px; }
.lb-count { margin: 16px 0 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .1em; color: #6f685e; }
.lb-btn { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; color: #f5f1ea; background: rgba(15,13,11,.6); backdrop-filter: blur(4px); border: 1px solid #2c2722; border-radius: 2px; cursor: pointer; z-index: 2; transition: background .2s ease, border-color .2s ease; }
.lb-btn:hover { background: rgba(15,13,11,.9); border-color: #c8743a; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: clamp(14px,3vw,28px); right: clamp(14px,3vw,28px); }
.lb-prev { left: clamp(8px,2vw,20px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(8px,2vw,20px); top: 50%; transform: translateY(-50%); }
body.lb-locked { overflow: hidden; }
