/* parflorane — direction 4a
   Fond blanc, beaucoup d'air, aucun filet.
   Times pour les titres, Helvetica pour le reste, boutons ronds fins. */

:root {
  --ink: #111;
  --mut: #777;
  --line: #ccc;
  --soft: #e6e6e6;
  --cream: #f5ead8;
  --serif: "Times New Roman", Times, "Cormorant Garamond", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --gutter: clamp(20px, 4.4vw, 48px);
  --max: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}

h1, h2, h3, .tnr {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

img, video { display: block; max-width: 100%; }

.mut { color: var(--mut); }

.wrap { max-width: var(--max); margin: 0 auto; }

/* Boutons ronds fins */
.sb {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.sb:hover { text-decoration: none; background: var(--ink); color: #fff; }
.sb-fill { background: var(--ink); color: #fff; }
.sb-fill:hover { background: #fff; color: var(--ink); }
.sb-ghost { background: transparent; border-color: #fff; color: #fff; }
.sb-ghost:hover { background: #fff; color: var(--ink); }
.sb[aria-disabled="true"] { border-color: var(--line); color: var(--mut); background: #fff; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: clamp(560px, 88svh, 820px);
  background: #111;
  overflow: hidden;
  color: #fff;
}
.hero video, .hero .hero-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%; /* vidéo portrait recadrée : garder le visage dans le cadre */
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,0) 40%, rgba(0,0,0,.45));
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; gap: 32px;
  padding: 24px var(--gutter);
  font-size: 14px;
}
.nav a { color: #fff; }
.nav-brand { font-family: var(--serif); font-size: 26px; margin-right: auto; }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 32px; }
.lang { display: flex; gap: 8px; font-size: 12px; }
.lang a { color: #fff; opacity: .55; }
.lang a[aria-current="true"] { opacity: 1; text-decoration: underline; }

.nav-toggle {
  display: none;
  background: none; border: 0; color: #fff; font: inherit; font-size: 13px;
  padding: 6px 0; cursor: pointer;
}

.hero-copy {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 64px;
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.02;
  margin: 0 0 24px;
  color: #fff;
}

/* ---------- Sections ---------- */
.section { padding: 96px var(--gutter) 40px; }

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 32px;
}
.sec-head h2 { font-size: 36px; }
.sec-head .mut { font-size: 13px; text-align: right; }

/* Grille boutique */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.piece { margin: 0; }
.piece-img { aspect-ratio: 3 / 4; overflow: hidden; background: #f3f3f3; }
.piece-img img { width: 100%; height: 100%; object-fit: cover; }
.piece figcaption { margin-top: 14px; display: grid; gap: 12px; font-size: 14px; }
.piece .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.piece .row .mut { font-size: 13px; }
.piece.sold .piece-img { opacity: .85; }
.piece.sold .price { color: var(--mut); text-decoration: line-through; }

/* À propos */
.about {
  padding: 120px var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about p { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin: 0; }
.about .actions { display: flex; gap: 12px; justify-self: end; flex-wrap: wrap; }

/* Contact */
.contact {
  margin: 0 var(--gutter);
  padding: 96px 0 120px;
  border-top: 1px solid var(--soft);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.contact h2 { font-size: 36px; line-height: 1.1; margin: 14px 0 12px; }
.contact .lede { margin: 0 0 20px; max-width: 38ch; }
.contact .links { margin: 0; font-size: 14px; line-height: 1.7; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--mut); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 14px; color: var(--ink);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  width: 100%;
  -webkit-appearance: none; appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.form textarea { border-radius: 20px; padding: 14px 16px; min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form .submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form .submit .mut { font-size: 12px; }
.hidden { display: none !important; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 13px; min-height: 1.2em; }
.form-status.ok { color: var(--ink); }
.form-status.err { color: #a33; }
.form button[disabled] { opacity: .6; cursor: wait; }

/* FAQ */
.faq {
  margin: 0 var(--gutter);
  padding: 0 0 120px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px;
}
.faq h2 { font-size: 36px; line-height: 1.1; margin: 14px 0 0; }
.faq dl { margin: 0; display: grid; gap: 28px; }
.faq dt { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; }
.faq dd { margin: 0; color: var(--mut); max-width: 52ch; }

/* Footer */
.foot {
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  padding: 28px var(--gutter);
  font-size: 13px; color: var(--mut);
}
.foot a { color: var(--mut); }
.foot .tnr { font-size: 18px; color: var(--ink); margin-right: auto; }

/* Page merci */
.thanks { min-height: 70svh; display: grid; place-content: center; text-align: center; padding: 64px var(--gutter); }
.thanks h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.thanks p { margin: 0 0 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .about { grid-template-columns: 1fr; gap: 32px; padding: 96px var(--gutter); }
  .about .actions { justify-self: start; }
  .contact, .faq { grid-template-columns: 1fr; gap: 40px; }
  .contact { padding: 72px 0 96px; }
  .faq { padding-bottom: 96px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { height: clamp(520px, 92svh, 760px); }
  .hero-copy { bottom: 40px; }
  .nav { gap: 16px; padding: 18px var(--gutter); }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(17,17,17,.92);
    padding: 8px var(--gutter) 16px;
  }
  .nav-links a { padding: 12px 0; font-size: 16px; }
  .nav.open .nav-links { display: flex; }
  .nav-toggle { display: inline-block; }
  .section { padding: 64px var(--gutter) 24px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sec-head h2 { font-size: 30px; }
  .sec-head .mut { text-align: left; }
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .form { grid-template-columns: 1fr; }
  .form .full { grid-column: auto; }
  .contact h2, .faq h2 { font-size: 30px; }
  .foot { gap: 16px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Pages intérieures (boutique, pièce) ---------- */
.page-head { position: relative; background: #fff; }
.page-head .nav { position: static; }
.nav-dark, .nav-dark a, .nav-dark .nav-toggle { color: var(--ink); }
.nav-dark .lang a { color: var(--ink); }
.section-first { padding-top: 40px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.piece-img { display: block; }
.piece .row a:hover { text-decoration: underline; }
.more { margin: 40px 0 0; text-align: center; }

.product {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px;
  padding: 24px var(--gutter) 120px; align-items: start;
}
.product-gallery { display: grid; gap: 16px; }
.product-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #f3f3f3; }
.product-info { position: sticky; top: 24px; }
.product-info .back { display: inline-block; font-size: 13px; margin-bottom: 20px; }
.product-info h1 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; margin: 0 0 12px; }
.product-price { font-size: 20px; margin: 0 0 24px; }
.product-price .tag { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--mut); margin-left: 8px; vertical-align: middle; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0 0 24px; font-size: 14px; }
.specs div { display: contents; }
.specs dt { color: var(--mut); }
.specs dd { margin: 0; }
.product-desc { font-size: 15px; line-height: 1.65; margin: 0 0 28px; max-width: 48ch; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.product-actions form { margin: 0; }
.sb-lg { padding: 14px 26px; font-size: 14px; }
.small { font-size: 12px; line-height: 1.6; }
.ok { color: var(--ink); }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; gap: 32px; padding-bottom: 80px; }
  .product-info { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav-dark .nav-links { background: #fff; border-bottom: 1px solid var(--soft); }
  .nav-dark .nav-links a { color: var(--ink); }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Sections libres (admin → Sections) ---------- */
.custom { padding: 96px var(--gutter) 24px; }
.custom h2 { font-size: 36px; line-height: 1.1; margin: 0 0 20px; }
.custom p { font-size: 15.5px; line-height: 1.65; margin: 0 0 16px; max-width: 60ch; }
.custom.has-img { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.custom-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #f3f3f3; }
.custom-body { padding-top: 8px; }
@media (max-width: 900px) { .custom.has-img { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 640px) { .custom { padding-top: 64px; } .custom h2 { font-size: 30px; } }
