@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap");

:root {
  --bg: #f5f4f0;
  --fg: #111;
  --muted: #6d6b66;
  --line: #dedbd3;
  --card: #ebe9e3;
  --accent: #111;
  --bleu: #1677d2;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.bleu { color: var(--bleu); }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.logo img { height: 44px; width: auto; }
.pied .logo img { height: 56px; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a, .nav button { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.nav a:hover, .nav button:hover { opacity: .55; }
.annonce { background: var(--fg); color: var(--bg); text-align: center; padding: 8px 16px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 28px; width: 100%;
  background: var(--fg); color: var(--bg);
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--fg); }
.btn.auto { width: auto; }

/* Accueil */
.hero { padding: clamp(56px, 12vw, 140px) 0 clamp(40px, 8vw, 90px); border-bottom: 1px solid var(--line); }
.hero h1 {
  font-size: clamp(44px, 10vw, 136px); font-weight: 900; line-height: .9;
  letter-spacing: -.035em; text-transform: uppercase;
}
.hero p { margin: 28px 0 32px; max-width: 420px; color: var(--muted); }

.section { padding: clamp(40px, 7vw, 80px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }

.manifeste { border-top: 1px solid var(--line); }
.manifeste p { font-size: clamp(22px, 3.4vw, 40px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; max-width: 900px; }

/* Grille produits */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 20px; }
.card .media { background: var(--card); aspect-ratio: 4/5; display: grid; place-items: center; overflow: hidden; position: relative; }
.card .media img, .card .media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .media img, .card:hover .media svg { transform: scale(1.03); }
.card .meta { display: flex; justify-content: space-between; margin-top: 12px; gap: 12px; }
.card .nom { font-weight: 500; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--bg); padding: 4px 8px; }

/* Fiche produit */
.produit { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); padding: 32px 0 80px; align-items: start; }
.galerie { display: grid; gap: 12px; }
.galerie .media { background: var(--card); aspect-ratio: 4/5; }
.galerie .media img, .galerie .media svg { width: 100%; height: 100%; object-fit: cover; }
.infos { position: sticky; top: 92px; }
.infos h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.prix { font-size: 18px; margin: 8px 0 24px; }
.infos .desc { margin-bottom: 28px; }
.choix { margin-bottom: 24px; }
.choix .label { display: flex; justify-content: space-between; margin-bottom: 10px; }
.choix .label button { text-decoration: underline; font-size: 11px; letter-spacing: .14em; }
.tailles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tailles button { height: 44px; border: 1px solid var(--line); font-size: 13px; }
.tailles button:hover { border-color: var(--fg); }
.tailles button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tailles button:disabled { color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.liste { list-style: none; border-top: 1px solid var(--line); margin-top: 32px; }
.liste li { padding: 12px 0; border-bottom: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
details summary { padding: 14px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
details summary::after { content: "+"; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 16px; color: var(--muted); }
.note { margin-top: 12px; font-size: 13px; }

/* Panier (tiroir) */
.voile { position: fixed; inset: 0; background: rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.tiroir {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--bg); z-index: 50; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
}
body.panier-ouvert .voile { opacity: 1; pointer-events: auto; }
body.panier-ouvert .tiroir { transform: none; }
.tiroir header { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 60px; border-bottom: 1px solid var(--line); }
.tiroir .lignes { flex: 1; overflow-y: auto; padding: 8px 20px; }
.ligne { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ligne .mini { background: var(--card); aspect-ratio: 4/5; }
.ligne .mini svg, .ligne .mini img { width: 100%; height: 100%; object-fit: cover; }
.qte { display: inline-flex; border: 1px solid var(--line); margin-top: 8px; }
.qte button { width: 28px; height: 28px; }
.qte span { min-width: 24px; display: grid; place-items: center; font-size: 13px; }
.retirer { font-size: 12px; text-decoration: underline; color: var(--muted); }
.tiroir footer { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; font-weight: 500; }
.vide { padding: 48px 0; text-align: center; color: var(--muted); }
.erreur { color: #b3261e; font-size: 13px; }

/* Pages de texte */
.page { padding: 48px 0 96px; max-width: 760px; }
.page h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; letter-spacing: -.03em; text-transform: uppercase; line-height: 1; margin-bottom: 32px; }
.page h2 { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin: 40px 0 12px; }
.page p, .page li { color: #333; margin-bottom: 10px; }
.page ul { padding-left: 18px; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-weight: 500; }
.todo { background: #fff3c4; padding: 0 4px; }

/* Infolettre */
.infolettre p { font-size: 15px; font-weight: 400; letter-spacing: 0; }
.infolettre form { display: flex; gap: 8px; max-width: 460px; margin-top: 16px; }
.infolettre input { flex: 1; height: 48px; padding: 0 14px; border: 1px solid var(--fg); background: transparent; font: inherit; min-width: 0; }

/* Page d'attente (coming soon) */
.bientot {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px var(--gutter);
}
.bientot-logo { width: min(440px, 80vw); height: auto; }
.bientot-label { margin-top: 36px; font-size: 13px; letter-spacing: .3em; }
.bientot-texte { margin-top: 12px; color: var(--muted); max-width: 380px; }
.bientot .infolettre { width: 100%; max-width: 460px; margin-top: 8px; }
.bientot .infolettre form { margin: 16px auto 0; }
.bientot-reseaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 40px; }
.bientot-reseaux a:hover { opacity: .55; }

/* Pied */
.pied { border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: auto; }
.pied .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 20px; }
.pied .bas { margin-top: 32px; font-size: 12px; }

@media (max-width: 760px) {
  .nav { gap: 18px; }
  .nav .cache-mobile { display: none; }
  .produit { grid-template-columns: 1fr; padding-top: 16px; }
  .infos { position: static; }
  .grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .card .meta { flex-direction: column; gap: 2px; font-size: 13px; }
}
