@import url("brand.css");
/* UA [hidden] must win over author display:flex on .btn etc. */
[hidden] { display: none !important; }

/* APP preview site — mobile first. Direction 01 « Écrin »: ivory grounds, navy sections, thin gold rules, no gradients. */
:root {
  /* Palette and logo live in brand.css so they can be swapped in one file. */
  --ink: var(--app-ink);
  --muted: var(--app-muted);
  --cream: var(--app-surface);
  --paper: var(--app-paper);
  --line: var(--app-line);
  --accent: var(--app-accent);
  --accent-contrast: var(--app-accent-contrast);
  --invert: var(--app-invert);
  --invert-text: var(--app-invert-text);
  --max: 1120px;
  --header-h: 4.75rem;
  --radius: 0.35rem;
  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ar: "IBM Plex Sans Arabic", "Noto Naskh Arabic", "Noto Kufi Arabic", sans-serif;
  --font-zh: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body, html[dir="rtl"] body { font-family: var(--font-ar); }
html[lang="zh-CN"] body, html[lang="zh"] body { font-family: var(--font-zh); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--app-kicker); }
button, input, select, textarea { font: inherit; }
h1, h2, h3,
.stat b {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin: 0 0 0.6em;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .stat b,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .stat b {
  font-family: var(--font-ar);
  font-weight: 600;
  letter-spacing: 0;
}
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] .stat b,
html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3,
html[lang="zh"] .stat b {
  font-family: var(--font-zh);
  font-weight: 600;
  letter-spacing: 0;
}
p { margin: 0 0 1em; }
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus, .skip:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
  white-space: normal;
  top: 1rem;
  inset-inline-start: 1rem;
  z-index: 80;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
}

/* Preview banner — this branch is not public */
.preview-banner {
  background: var(--invert);
  color: var(--invert-text);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.45rem 1rem;
  line-height: 1.4;
  border-bottom: 1px solid var(--app-gold-dark);
}
.preview-banner strong { font-weight: 500; color: var(--invert-text); }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--app-logo-clear) 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  /* Keep at least X of clear space from other marks and the header edge. */
  padding: 0;
  margin-inline-end: var(--app-logo-clear);
}
.logo img {
  width: auto;
  max-width: 100%;
  height: auto;
}
.logo .logo-full {
  display: none;
  width: var(--app-logo-width);
  height: auto;
  min-width: 180px;
}
.logo .logo-icon {
  display: block;
  width: var(--app-logo-icon-size);
  height: auto;
  min-width: 32px;
}
@media (min-width: 900px) {
  .logo .logo-full { display: block; }
  .logo .logo-icon { display: none; }
}
footer.site .logo .logo-full {
  display: block;
  width: var(--app-logo-width);
  min-width: 180px;
  height: auto;
}
footer.site .logo .logo-icon { display: none; }
.logo-mark { display: block; height: 44px; width: 44px; background: var(--app-logo-icon) left center / contain no-repeat; }
.nav-toggle {
  margin-inline-start: auto;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
nav.primary { display: none; width: 100%; }
nav.primary.is-open {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.2rem 0 0.4rem;
}
nav.primary a {
  text-decoration: none;
  padding: 0.55rem 0.2rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
nav.primary a.is-active { color: var(--app-kicker); }
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 500;
}
.lang button {
  border: 0;
  background: transparent;
  padding: 0.32rem 0.5rem;
  cursor: pointer;
  color: var(--muted);
}
.lang button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { color: var(--accent-contrast); background: var(--app-bleu-minuit); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--app-ivoire); }
.btn-light { background: var(--app-ivoire); color: var(--ink); }
.btn-whatsapp,
a[href^="https://wa.me/"] {
  color: var(--app-whatsapp);
  font-weight: 500;
}
a[href^="https://wa.me/"]:hover { color: var(--app-bleu-nuit); }
.btn-whatsapp,
a.btn[href^="https://wa.me/"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--app-whatsapp);
  color: var(--app-whatsapp-text);
  border: 1px solid var(--app-whatsapp);
  font-weight: 500;
  text-decoration: none;
}
.btn-whatsapp:hover,
a.btn[href^="https://wa.me/"]:hover {
  color: var(--app-whatsapp-text);
  filter: brightness(1.08);
}
.header-cta { display: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.15rem; }
.section { padding: 3.2rem 0; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--app-kicker);
  margin: 0 0 0.7rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.hero {
  padding: 2.2rem 0 2.6rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 8.4vw, 5.2rem);
  max-width: 14ch;
  margin-bottom: 0.7rem;
}
.hero .lead { margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.8rem; }
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--app-gold-light);
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.stats {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.stat {
  background: var(--app-bleu-minuit);
  color: var(--app-ivoire);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  border-top: 1px solid var(--app-gold-dark);
}
.stat b { display: block; font-size: 1.55rem; letter-spacing: 0.01em; color: var(--app-ivoire); }
.stat span { color: color-mix(in srgb, var(--app-ivoire) 78%, var(--app-or-champagne)); font-size: 0.92rem; }

.grid-3, .grid-2, .grid-4 { display: grid; gap: 1rem; }
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--app-gold-light);
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1rem 1.05rem 1.15rem; }
.card h3 { font-size: 1.5rem; margin: 0 0 0.25rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card:hover { color: inherit; border-color: var(--app-bronze); }
.card-text {
  background: var(--cream);
  justify-content: center;
  min-height: 10rem;
}
.card-text .card-body { padding-top: 1.5rem; }
.product-hero-text { max-width: 40rem; }

.band {
  margin: 0;
  overflow: hidden;
}
.band img { width: 100%; max-height: 280px; object-fit: cover; }

.values { display: grid; gap: 1rem; }
.value {
  border-top: 1px solid var(--app-gold-light);
  padding-top: 0.9rem;
}
.value h3 { font-size: 1.55rem; }

.cta-band {
  background: var(--invert);
  color: var(--invert-text);
  padding: 3.2rem 0;
  border-top: 1px solid var(--app-gold-dark);
  border-bottom: 1px solid var(--app-gold-dark);
}
.cta-band h2 { font-size: clamp(1.9rem, 5vw, 3.1rem); max-width: 16ch; color: var(--invert-text); }
.cta-band p { color: color-mix(in srgb, var(--invert-text) 80%, var(--app-or-champagne)); max-width: 36rem; }
.cta-band .btn-primary {
  margin-top: 0.4rem;
  background: var(--app-or-champagne);
  color: var(--app-bleu-nuit);
  border-color: var(--app-or-champagne);
}
.cta-band .btn-primary:hover {
  background: var(--app-ivoire);
  color: var(--app-bleu-nuit);
  border-color: var(--app-ivoire);
}
.cta-band a:hover { color: var(--app-or-champagne); }
.cta-band .btn-primary:hover { color: var(--app-bleu-nuit); }

.product-hero, .split { display: grid; gap: 1.4rem; }
.product-hero img, .split img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--cream);
  border: 1px solid var(--app-gold-light);
}
.meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.6rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 0 0 1rem; }
.crumbs a { text-decoration: none; }

form.devis {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}
form.devis label { display: block; font-weight: 500; margin-bottom: 0.3rem; }
form.devis input, form.devis select, form.devis textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.7rem 0.8rem;
  background: var(--cream);
  color: var(--ink);
}
form.devis textarea { min-height: 8rem; resize: vertical; }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { margin: 0 0 0.7rem; }
.contact-list a { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a[href^="https://wa.me/"] {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--app-whatsapp);
  color: var(--app-whatsapp-text);
  border-bottom: 0;
  font-weight: 500;
}
.contact-list a[href^="https://wa.me/"]:hover {
  color: var(--app-whatsapp-text);
  filter: brightness(1.08);
}

footer.site {
  background: var(--invert);
  color: color-mix(in srgb, var(--invert-text) 80%, var(--app-or-champagne));
  border-top: 1px solid var(--app-gold-dark);
  padding: 2.4rem 0 2.6rem;
  font-size: 0.92rem;
}
.foot-grid { display: grid; gap: 1.4rem; }
footer .logo { margin-bottom: 0.85rem; }
footer a { text-decoration: none; color: var(--invert-text); }
footer a:hover { color: var(--app-or-champagne); }
footer a[href^="https://wa.me/"] {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--app-whatsapp);
  color: var(--app-whatsapp-text);
}
footer a[href^="https://wa.me/"]:hover {
  color: var(--app-whatsapp-text);
  filter: brightness(1.08);
}
.legal { margin-top: 1.6rem; font-size: 0.8rem; color: color-mix(in srgb, var(--invert-text) 70%, var(--app-or-champagne)); }

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .header-inner { gap: 1.1rem; }
  nav.primary, nav.primary.is-open {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.95rem;
    padding: 0;
    margin-inline-start: auto;
    width: auto;
    order: 3;
  }
  .header-tools { order: 4; }
  .header-inner { flex-wrap: nowrap; }
  nav.primary a { border: 0; padding: 0.2rem 0; font-size: 0.92rem; }
  .header-cta { display: inline-flex; }
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: end;
    padding: 3.4rem 0 4rem;
  }
  .hero-photo img { aspect-ratio: 4 / 5; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
  .product-hero, .split { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .product-hero img, .split img { aspect-ratio: 4 / 5; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .section { padding: 4.6rem 0; }
  .band img { max-height: 340px; }
}

/* Between tablet and the 180 px full-logo breakpoint, keep the icon so the nav fits. */
@media (min-width: 760px) and (max-width: 899px) {
  nav.primary a { font-size: 0.86rem; gap: 0.7rem; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: 5rem; }
  nav.primary, nav.primary.is-open { gap: 1.15rem; }
}

/* Official address map on Contact */
.map-embed-wrap {
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin: 1.1rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: var(--cream);
}
.map-embed-wrap iframe {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 100%;
  min-height: 220px;
  border: 0;
  display: block;
}
.foot-legal-name {
  font-weight: 500;
  color: var(--invert-text);
  margin: 0.7rem 0 0.25rem;
}
.foot-address { margin: 0 0 0.35rem; }
.legal-page { max-width: 42rem; }
.lang button { padding: 0.32rem 0.4rem; }

.about-identity { white-space: pre-line; }

.work-grid {
  display: grid;
  gap: 1.2rem;
}
.work-item { margin: 0; }
.work-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--app-gold-light);
  display: block;
}
.work-item figcaption { margin-top: 0.6rem; }
@media (min-width: 700px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
}

[data-i18n="legal_identity"] { white-space: pre-line; }

