/* ════════════════════════════════════════════════════════════════════════
   MK MENUISERIES — feuille de style (mobile-first, premium).
   Système : colonne centrée + gouttière fluide, échelle fluide, propriétés
   logiques (RTL ar OK). Marque bleu marine #32375b + or #B7841E.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --g: clamp(20px, 6.2vw, 40px);     /* gouttière horizontale de toutes les sections */
  --maxw: 760px;                     /* colonne centrée (mobile + desktop) */
  --maxw-wide: 1080px;               /* élargissement des grilles sur grand écran */

  --paper: #f6f3ec;                  /* sections claires */
  --paper-2: #eceadf;                /* section devis */
  --field: #fbfaf7;                  /* fond des champs */
  --dark: #1f2238;                   /* réalisations / contact */
  --footer: #15182b;

  --navy: #32375b;                   /* titres / texte */
  --muted: #5c6079;                  /* texte atténué */
  --mention: #8a8ea3;                /* mentions */
  --gold: #b7841e;                   /* or sur clair */
  --gold-light: #cf9f3f;             /* or clair sur fond foncé */
  --cream: #f6f3ec;

  --line: rgba(50, 55, 91, .08);
  --line-2: rgba(50, 55, 91, .16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); color: var(--navy); background: var(--paper);
  line-height: 1.6; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.1; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--g); width: 100%; }
.section { padding-block: clamp(48px, 13vw, 88px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font-family: var(--sans); font-weight: 700;
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); }

.section__head { max-width: 54ch; margin-bottom: clamp(28px, 6vw, 40px); }
.section__head h2 { font-size: clamp(28px, 8vw, 44px); letter-spacing: -.8px; margin: 14px 0 12px; }
.section__head p { font-size: 16px; color: var(--muted); }

/* ── Boutons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; min-height: 58px; padding: 0 24px;
  border-radius: 15px; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--gold { background: linear-gradient(135deg, #d8ad52, #b7841e); color: #231a06; box-shadow: 0 14px 30px -12px rgba(183, 132, 30, .7); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(183, 132, 30, .8); }
.btn--ghost { background: transparent; border-color: rgba(246, 243, 236, .28); color: var(--cream); }
.btn--ghost:hover { background: rgba(246, 243, 236, .1); }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* ── Header ────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 236, .92);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(50, 55, 91, .10);
}
.header__bar { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__logo, .brand svg { height: 40px; width: auto; display: block; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--navy); }
.brand__tag { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-top: 3px; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav > a { padding: 9px 12px; border-radius: 9px; font-weight: 500; font-size: .95rem; color: var(--navy); }
.nav > a:hover { background: rgba(50, 55, 91, .06); }
.header__cta { margin-inline-start: 6px; min-height: 44px; padding: 0 18px; border-radius: 12px; }

.lang { position: relative; display: inline-flex; align-items: center; }
.lang select {
  appearance: none; -webkit-appearance: none; font-family: var(--sans); font-size: .85rem; font-weight: 600;
  color: var(--navy); background: transparent; border: 1.5px solid var(--line-2); border-radius: 999px;
  padding-block: 8px; padding-inline: 32px 30px; cursor: pointer;
}
.lang::before { content: "🌐"; position: absolute; inset-inline-start: 10px; pointer-events: none; font-size: .85rem; }
.lang::after { content: "▾"; position: absolute; inset-inline-end: 12px; color: var(--muted); pointer-events: none; font-size: .7rem; }

.burger {
  display: none; width: 46px; height: 46px; border: 1.5px solid var(--line-2); border-radius: 13px;
  background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin-inline-start: 6px;
}
.burger span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ── Hero (colonne centrée) ────────────────────────────────────────────── */
.hero {
  position: relative; color: var(--cream); overflow: hidden;
  background: radial-gradient(120% 90% at 80% 0%, #3a4068, #2a2e4d 45%, #1f2238);
}
.hero__grid { display: block; padding-inline: var(--g); padding-block: clamp(40px, 11vw, 72px) clamp(48px, 13vw, 84px); }
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before { background: var(--gold-light); }
.hero h1 { color: var(--cream); font-size: clamp(38px, 11.5vw, 68px); line-height: 1.04; letter-spacing: -1.5px; margin: 16px 0 18px; }
.hero h1 .accent { color: var(--gold-light); }
.hero p { color: rgba(246, 243, 236, .82); font-size: clamp(16px, 4.4vw, 19px); max-width: 54ch; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero__actions .btn { width: 100%; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(246, 243, 236, .18);
  border-radius: 999px; padding: 9px 15px; font-size: .82rem; font-weight: 600; color: var(--cream);
}
.chip svg { width: 15px; height: 15px; color: var(--gold-light); }
.hero__panel {
  margin-top: 30px; background: linear-gradient(135deg, #32375b, #272b47);
  border: 1px solid rgba(246, 243, 236, .12); border-radius: var(--radius); padding: 20px;
}
.hero__panel h2 { color: var(--cream); font-size: 1.05rem; margin-bottom: 14px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--gold-light); }
.stat span { font-size: .76rem; color: rgba(246, 243, 236, .72); }

/* ── Prestations ───────────────────────────────────────────────────────── */
.presta { background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 14px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(31, 34, 56, .5); border-color: rgba(50, 55, 91, .14); }
.card__ico { width: 48px; height: 48px; border-radius: 13px; background: rgba(183, 132, 30, .10); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card__ico svg { width: 26px; height: 26px; color: var(--gold); }
.card h3 { font-size: 1.18rem; margin-bottom: 7px; }
.card p { color: var(--muted); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag { font-size: .72rem; font-weight: 600; color: var(--navy); background: rgba(50, 55, 91, .06); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

/* ── Réalisations (galerie, fond foncé) ────────────────────────────────── */
.realisations { background: var(--dark); color: var(--cream); }
.realisations h2 { color: var(--cream); }
.realisations .eyebrow { color: var(--gold-light); }
.realisations .eyebrow::before { background: var(--gold-light); }
.realisations .section__head p { color: rgba(246, 243, 236, .72); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shot { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #2a2e4d; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-weight: 600; font-size: .9rem;
  background: linear-gradient(to top, rgba(20, 22, 38, .88), transparent);
}

/* ── Confiance ─────────────────────────────────────────────────────────── */
.confiance { background: var(--paper); }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.trust__item { display: flex; gap: 13px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.trust__item svg { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; }
.trust__item b { display: block; color: var(--navy); }
.trust__item span { color: var(--muted); font-size: .9rem; }
.showroom { position: relative; margin-top: 18px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.showroom img { width: 100%; height: 100%; object-fit: cover; }
.showroom figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 18px 14px; color: #fff; font-weight: 600; background: linear-gradient(to top, rgba(20, 22, 38, .85), transparent); }
.adresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.adr { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.adr .lbl { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.adr p { color: var(--navy); margin-top: 6px; }

/* ── Devis ─────────────────────────────────────────────────────────────── */
.devis { background: var(--paper-2); }
.devis__grid { display: grid; gap: 24px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 20px 50px -30px rgba(31, 34, 56, .55); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; font-family: var(--sans); font-size: 16px; color: var(--navy);
  background: var(--field); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 110px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(50, 55, 91, .12); background: #fff; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form__submit { width: 100%; margin-top: 6px; }
.form__status { margin-top: 12px; font-size: .92rem; min-height: 1.2em; font-weight: 600; }
.form__status.is-success { color: #1c7a4b; }
.form__status.is-error { color: #b23b32; }
.rgpd { font-size: .78rem; color: var(--mention); margin-top: 12px; }
.devis__aside h3 { font-size: 1.15rem; margin-bottom: 6px; }
.devis__aside ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.devis__aside li { display: flex; gap: 11px; align-items: flex-start; }
.devis__aside li svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.devis__aside b { color: var(--navy); }
.devis__aside span { color: var(--muted); }

/* ── Contact (fond foncé) ──────────────────────────────────────────────── */
.contact { background: var(--dark); color: var(--cream); }
.contact h2 { color: var(--cream); }
.contact .eyebrow { color: var(--gold-light); }
.contact .eyebrow::before { background: var(--gold-light); }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.contact__item { display: flex; gap: 13px; align-items: flex-start; background: rgba(246, 243, 236, .05); border: 1px solid rgba(246, 243, 236, .12); border-radius: 14px; padding: 16px; }
.contact__item svg { width: 24px; height: 24px; color: var(--gold-light); flex-shrink: 0; }
.contact__item .lbl { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(246, 243, 236, .6); font-weight: 700; }
.contact__item a, .contact__item p { color: var(--cream); font-weight: 600; margin-top: 4px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--footer); color: rgba(246, 243, 236, .72); padding-block: 36px 26px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--cream); }
.footer__brand svg, .footer__brand img { height: 30px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px; font-size: .9rem; }
.footer__links a:hover { color: var(--gold-light); }
.footer__copy { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(246, 243, 236, .1); font-size: .82rem; }

/* ── Apparition au scroll ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Breakpoints ───────────────────────────────────────────────────────── */
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions .btn { width: auto; }
}
@media (min-width: 940px) {
  .presta .wrap, .realisations .wrap { max-width: var(--maxw-wide); }
  .devis__grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
}

/* ── Menu mobile (burger) ──────────────────────────────────────────────── */
@media (max-width: 879px) {
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset-block-start: 68px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px var(--g) 22px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); transform: translateY(-135%); transition: transform .28s ease; margin-inline-start: 0;
  }
  body.nav-open .nav { transform: translateY(0); }
  .nav > a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .lang { margin-top: 10px; }
  .nav .header__cta { display: inline-flex; margin-top: 12px; }
}
