/* Bois de Fer — noir d'atelier, bois cuivré, acier brossé */
:root {
  --bg: #0b0907;
  --bg-2: #120f0c;
  --panel: #19140f;
  --panel-2: #211a14;
  --line: rgba(201, 150, 96, 0.16);
  --line-strong: rgba(201, 150, 96, 0.34);
  --wood: #bd8653;
  --wood-light: #deaa70;
  --wood-dark: #7a4e2a;
  --steel: #a3a7ac;
  --steel-light: #d4d7da;
  --steel-dark: #5b5f64;
  --text: #ece3d4;
  --muted: #a4978a;
  --danger: #d9694f;
  --ok: #8fb47a;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --f-title: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --f-label: 'Josefin Sans', 'Futura', system-ui, sans-serif;
  --f-body: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--wood-light); text-decoration: none; }
a:hover { color: #f0c48e; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--wood-light); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grain léger façon atelier */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Mot-symbole BOIS de FER ---------- */
.wordmark { display: inline-flex; align-items: baseline; gap: .28em; font-family: var(--f-title); font-weight: 700; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.wordmark .w { background: linear-gradient(180deg, #e7b67c 0%, #b57b45 45%, #7b4d27 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .de { font-size: .55em; color: var(--steel); letter-spacing: .08em; }
.wordmark .f { background: linear-gradient(180deg, #e6e8ea 0%, #9a9ea3 48%, #54585d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 7, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.site-header .wordmark { font-size: 1.5rem; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font: 600 .8rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding: 12px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a[aria-current="page"] { color: var(--wood-light); }
.nav a.nav-cta { color: #1a120b; background: linear-gradient(180deg, var(--wood-light), var(--wood)); margin-left: 8px; }
.nav a.nav-cta:hover { filter: brightness(1.08); color: #1a120b; }
.burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); transition: transform .25s, opacity .25s; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 9, 7, .97); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 16px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
  .nav a.nav-cta { margin: 14px 0 0; text-align: center; border-radius: 999px; border: 0; }
  .site-header .wordmark { font-size: 1.3rem; }
}

/* ---------- Boutons, étiquettes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 0 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 600 .82rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase;
  transition: transform .15s, filter .2s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-wood { background: linear-gradient(180deg, var(--wood-light), var(--wood)); color: #1a120b; box-shadow: 0 8px 26px rgba(189, 134, 83, .22); }
.btn-wood:hover { filter: brightness(1.08); color: #1a120b; }
.btn-steel { background: transparent; color: var(--steel-light); border-color: rgba(212, 215, 218, .35); }
.btn-steel:hover { border-color: var(--steel-light); color: #fff; background: rgba(255,255,255,.04); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--wood); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(217, 105, 79, .45); }
.btn-danger:hover { background: rgba(217, 105, 79, .1); color: #f08a70; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .72rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 .78rem/1 var(--f-label); letter-spacing: .28em; text-transform: uppercase; color: var(--wood);
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--wood)); }
.eyebrow.steel { color: var(--steel); }
.eyebrow.steel::before { background: linear-gradient(90deg, transparent, var(--steel)); }
h1, h2, h3 { font-family: var(--f-title); font-weight: 600; letter-spacing: .02em; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; text-wrap: pretty; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }

/* ---------- Accueil : héros ---------- */
.hero { position: relative; padding: clamp(20px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 110%;
  background: radial-gradient(ellipse at 50% 40%, rgba(189, 134, 83, .16), transparent 60%);
  pointer-events: none;
}
.hero-logo {
  position: relative; width: min(820px, 100%); margin: 0 auto;
  -webkit-mask-image: radial-gradient(ellipse 88% 82% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 82% at 50% 50%, #000 72%, transparent 100%);
  mix-blend-mode: lighten;
  animation: rise 1.2s cubic-bezier(.2,.7,.2,1) both;
}
.hero-logo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-text { position: relative; margin-top: -24px; display: grid; gap: 22px; justify-items: center; animation: rise 1.2s .25s cubic-bezier(.2,.7,.2,1) both; }
.hero-text p { color: var(--muted); font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); max-width: 60ch; margin: 0; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Piliers ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  position: relative; padding: 34px 28px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  display: grid; gap: 12px; align-content: start; transition: border-color .25s, transform .25s;
}
.pillar:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pillar .ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--wood-light); }
.pillar.steel .ico { color: var(--steel-light); border-color: rgba(212,215,218,.3); }
.pillar h3 { font-size: 1.3rem; }
.pillar p { margin: 0; color: var(--muted); }
.pillar .more { margin-top: 6px; font: 600 .76rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Histoire ---------- */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story-body { display: grid; gap: 18px; }
.story-body p { margin: 0; color: var(--muted); text-wrap: pretty; }
.story-visual { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.story-visual img { width: 100%; height: 100%; object-fit: cover; }
.story-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,9,7,.75)); }
.story-visual figcaption { position: absolute; left: 20px; bottom: 18px; z-index: 1; font: 600 .74rem/1.3 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--steel-light); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.mv div { padding: 22px; border-left: 2px solid var(--wood); background: rgba(255,255,255,.02); border-radius: 0 10px 10px 0; }
.mv div + div { border-left-color: var(--steel); }
.mv h3 { font-size: 1.05rem; margin-bottom: 8px; }
.mv p { font-size: .95rem; }
@media (max-width: 860px) { .story, .mv { grid-template-columns: 1fr; } .story-visual { aspect-ratio: 4 / 3; } }

/* ---------- Bandeau structures ---------- */
.band {
  position: relative; overflow: hidden; border-radius: 20px; border: 1px solid rgba(212,215,218,.14);
  background: linear-gradient(135deg, #1b1d20 0%, #101113 60%, #161310 100%);
  padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
}
.band h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); }
.band p { color: var(--muted); margin: 0; }
.band .band-text { display: grid; gap: 18px; justify-items: start; position: relative; z-index: 1; }
.band .truss { color: var(--steel-dark); opacity: .9; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } .band .truss { display: none; } }

/* ---------- Pages catalogue ---------- */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 90% at 15% 0%, rgba(189,134,83,.14), transparent 70%); pointer-events: none; }
.page-hero.steel::before { background: radial-gradient(ellipse 60% 90% at 15% 0%, rgba(163,167,172,.13), transparent 70%); }
.page-hero .wrap { position: relative; display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); }
.page-hero .truss-bg { position: absolute; right: -40px; top: 30px; width: min(620px, 60vw); color: rgba(163,167,172,.13); pointer-events: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer;
  padding: 10px 18px; border-radius: 999px; font: 600 .74rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--wood); color: #1a120b; border-color: var(--wood); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s; color: inherit;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 4 / 5; background: #0f0c0a; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.04); }
.card-img .count { position: absolute; right: 12px; bottom: 12px; background: rgba(11,9,7,.72); border-radius: 999px; padding: 5px 10px; font: 600 .7rem/1 var(--f-label); letter-spacing: .1em; color: var(--steel-light); }
.card-body { padding: 20px 20px 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card-cat { font: 600 .7rem/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--wood); }
.card h3 { font-size: 1.22rem; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); }
.price { font: 600 1.15rem/1 var(--f-title); color: var(--text); }
.price.quote { font: 600 .78rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--wood-light); }
.price small { font: 400 .8rem var(--f-body); color: var(--muted); margin-left: 6px; }
.card-foot .see { font: 600 .7rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.specs-mini { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: .86rem; color: var(--muted); }
.specs-mini b { color: var(--steel-light); font-weight: 600; }
.card.steel .card-cat { color: var(--steel); }

.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(163,167,172,.35); background: repeating-linear-gradient(135deg, #121315 0 14px, #15171a 14px 28px); }
.placeholder.wood { color: rgba(189,134,83,.35); background: repeating-linear-gradient(135deg, #15100c 0 14px, #1a140f 14px 28px); }
.placeholder svg { width: 38%; max-width: 140px; }

.empty { padding: 60px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.skeleton { border-radius: var(--radius); background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; aspect-ratio: 4 / 6; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Atouts structures */
.assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(212,215,218,.12); border: 1px solid rgba(212,215,218,.12); border-radius: var(--radius); overflow: hidden; }
.assets div { background: var(--bg-2); padding: 26px 22px; display: grid; gap: 8px; align-content: start; }
.assets .n { font: 600 .74rem/1 var(--f-label); letter-spacing: .22em; color: var(--steel); }
.assets h3 { font-size: 1.1rem; }
.assets p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 960px) { .assets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .assets { grid-template-columns: 1fr; } }

.quote-box { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; padding: clamp(28px, 5vw, 56px); border-radius: 20px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, #1d1712, #110e0b); }
.quote-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.quote-box li { display: flex; gap: 12px; color: var(--muted); }
.quote-box li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 9px; border: 1px solid var(--wood); transform: rotate(45deg); }
.quote-box .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 860px) { .quote-box { grid-template-columns: 1fr; } }

/* ---------- Fenêtre produit ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,4,3,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s both; }
.modal-panel {
  position: relative; margin: 4vh auto; width: min(1060px, 100% - 24px); max-height: 92vh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.1fr 1fr; animation: rise .3s both;
}
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(11,9,7,.7); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.modal-close:hover { border-color: var(--wood); }
.gallery { position: relative; background: #0a0807; display: flex; flex-direction: column; justify-content: center; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; overflow: hidden; flex: none; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(11,9,7,.65); cursor: pointer; font-size: 1.2rem; }
.gal-nav.prev { left: 12px; } .gal-nav.next { right: 12px; }
.thumbs { display: flex; gap: 8px; padding: 10px; justify-content: center; }
.thumbs button { width: 64px; height: 64px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: none; opacity: .6; }
.thumbs button[aria-current="true"] { border-color: var(--wood); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: clamp(28px, 4vw, 44px); display: grid; gap: 16px; align-content: start; }
.modal-info h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.modal-info .desc { color: var(--muted); white-space: pre-line; margin: 0; }
.modal-info .price { font-size: 1.6rem; }
.specs { width: 100%; border-collapse: collapse; font-size: .94rem; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 600; width: 42%; padding-right: 12px; }
@keyframes fade { from { opacity: 0; } }
@media (max-width: 860px) {
  .modal-panel { display: block; margin: 0; width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .gallery-main { aspect-ratio: auto; height: min(62vh, 110vw); }
}

/* ---------- Contact & pied ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); display: grid; gap: 10px; }
.contact-card .k { font: 600 .72rem/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--wood); }
.contact-card a, .contact-card span { font-size: 1.08rem; color: var(--text); word-break: break-word; }
.contact-card a:hover { color: var(--wood-light); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer .wordmark { font-size: 1.25rem; }
.site-footer .tag { font: 600 .7rem/1 var(--f-label); letter-spacing: .26em; text-transform: uppercase; color: var(--wood); margin-top: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

[hidden] { display: none !important; }
@media (max-width: 600px) { .hero-logo { width: 136%; margin-left: -18%; } }
/* Mentions légales */
.legal .wrap > * { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; color: var(--wood-light); }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); margin: 0 0 12px; text-wrap: pretty; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .updated { margin-top: 40px; font-size: .85rem; }
