/* DadouGlow — Maquette Phase 1. Palette : bleu nuit, bordeaux, rose poudré, doré. */
:root {
  --nuit: #0e1a2e;
  --nuit-2: #16263f;
  --bordeaux: #7c2233;
  --bordeaux-2: #9a2f44;
  --rose: #f6dfe0;
  --rose-2: #efd0d2;
  --gold: #d9a95c;
  --gold-2: #b98a3e;
  --ink: #2b2b33;
  --muted: #6b6b76;
  --bg: #faf6f4;
  --card: #ffffff;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5;
  padding-bottom: 76px;
}
.mock-banner {
  background: var(--nuit); color: #ffe9a8; text-align: center;
  font-size: 12px; padding: 6px 10px; font-weight: 600; letter-spacing: .3px;
}
/* ---------- Header ---------- */
.site-header { background: var(--nuit); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo-box {
  background: #fff; border-radius: 10px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.logo-box img { width: 34px; height: 34px; object-fit: contain; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .3px; }
.brand-name::after {
  content: "MAQUETTE"; font-size: 9px; font-weight: 700; color: var(--nuit);
  background: #ffe9a8; border-radius: 4px; padding: 2px 6px; margin-left: 8px; vertical-align: middle;
}
.main-nav { display: flex; gap: 4px; }
.main-nav button {
  background: none; border: none; color: #cfd8e6; font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
}
.main-nav button.active, .main-nav button:hover { color: #fff; background: rgba(255,255,255,.12); }
/* ---------- Views ---------- */
.view { display: none; max-width: 1100px; margin: 0 auto; padding: 0 16px 24px; }
.view.active { display: block; }
/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 -16px 8px;
  background: linear-gradient(135deg, var(--nuit) 0%, var(--bordeaux) 70%, #5e1830 100%);
  color: #fff; overflow: hidden;
}
.hero-text { padding: 36px 24px; }
.hero-text h1 { font-size: 42px; font-weight: 800; margin-bottom: 6px; }
.slogan { font-size: 19px; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.hero-desc { color: #e8dfe4; margin-bottom: 20px; max-width: 420px; }
.free-note { margin-top: 10px; font-size: 14px; color: #ffe9a8; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 420px; }
/* ---------- Bands & sections ---------- */
.band-steps { background: var(--bordeaux); color: #fff; margin: 0 -16px; padding: 32px 24px; }
.band-steps h2, .section h2 { text-align: center; margin-bottom: 20px; font-size: 24px; }
.section { padding: 32px 0; }
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 900px; margin: 0 auto; }
.step { background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 20px; text-align: center; }
.step-n {
  display: inline-flex; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--nuit); font-weight: 800; font-size: 20px;
  align-items: center; justify-content: center; margin-bottom: 10px;
}
.step h3 { margin-bottom: 6px; font-size: 17px; }
.step p { font-size: 14px; color: #f0dfe2; }
/* ---------- Look cards ---------- */
.look-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 800px; margin: 0 auto 20px; }
.look-card {
  border: none; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--card); box-shadow: 0 4px 14px rgba(14,26,46,.12); padding: 0;
  font: inherit; color: inherit; transition: transform .15s;
}
.look-card:hover { transform: translateY(-3px); }
.look-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.look-card span { display: block; padding: 10px; font-weight: 700; font-size: 14px; }
.center { text-align: center; }
/* ---------- Beauty Pass band ---------- */
.band-pass {
  background: linear-gradient(135deg, var(--nuit), var(--nuit-2)); color: #fff;
  margin: 0 -16px; padding: 36px 24px; text-align: center;
}
.band-pass h2 { margin-bottom: 8px; }
.pass-prices { display: flex; gap: 16px; justify-content: center; margin: 18px 0; }
.pass-price {
  background: rgba(255,255,255,.08); border: 1px solid rgba(217,169,92,.4);
  border-radius: var(--radius); padding: 14px 28px;
}
.pass-price strong { font-size: 26px; color: var(--gold); display: block; }
.pass-price span { font-size: 13px; color: #cfd8e6; }
.pass-quota { color: #ffe9a8; font-weight: 600; margin-bottom: 6px; }
.mock-note { font-size: 12px; color: var(--muted); }
.band-pass .mock-note { color: #9aa7bd; }
/* ---------- Ecosystem ---------- */
.eco-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 700px; margin: 0 auto; }
.eco-card {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  text-decoration: none; color: inherit; box-shadow: 0 4px 14px rgba(14,26,46,.08);
  border-top: 4px solid var(--bordeaux);
}
.eco-card strong { display: block; font-size: 17px; margin-bottom: 4px; }
.eco-card span { font-size: 14px; color: var(--muted); }
/* ---------- Panels, buttons ---------- */
.panel {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  margin-bottom: 14px; box-shadow: 0 2px 10px rgba(14,26,46,.06);
}
.panel h3 { margin-bottom: 12px; font-size: 16px; }
.page-head { padding: 20px 0 12px; }
.page-head h2 { font-size: 24px; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: 14px; }
.btn {
  border: none; border-radius: 12px; padding: 13px 22px; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: inherit; display: inline-block; text-align: center;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--nuit); }
.btn-outline { background: #fff; color: var(--bordeaux); border: 2px solid var(--bordeaux); }
.btn-block { display: block; width: 100%; margin-top: 14px; }
.btn-lg { font-size: 18px; padding: 16px 28px; }
.btn-row { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.free-badge {
  background: var(--nuit); color: #ffe9a8; font-size: 11px; padding: 3px 8px;
  border-radius: 20px; vertical-align: middle; margin-left: 6px;
}
/* ---------- Photo ---------- */
.photo-zone {
  background: var(--nuit); border-radius: var(--radius); min-height: 300px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 6px;
}
.photo-placeholder { text-align: center; color: #8fa0b8; padding: 40px; }
.photo-placeholder span { font-size: 64px; }
#photo-preview { width: 100%; max-height: 420px; object-fit: contain; }
.tips ul, .tight { padding-left: 20px; }
.tips li, .tight li { margin-bottom: 6px; font-size: 14px; }
/* ---------- Tabs / chips / swatches ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; }
.tab {
  border: 2px solid var(--rose-2); background: #fff; border-radius: 24px;
  padding: 10px 20px; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap;
  font-family: inherit; color: var(--ink);
}
.tab.active { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 2px solid var(--rose-2); background: #fff; border-radius: 20px;
  padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.chip.active { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 0 0 2px #ddd; cursor: pointer; padding: 0;
}
.swatch.active { box-shadow: 0 0 0 3px var(--gold); }
.val { color: var(--bordeaux); font-weight: 800; }
.slider { width: 100%; accent-color: var(--bordeaux); height: 32px; }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
/* ---------- Avant/Après — identité préservée ---------- */
.ba-tag { font-size: 13px; font-weight: 800; color: var(--bordeaux); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.ba-user-wrap { max-width: 420px; margin: 12px auto; }
.ba-user-wrap img { width: 100%; border-radius: var(--radius); display: block; box-shadow: 0 4px 14px rgba(14,26,46,.12); }
.ba-pending { max-width: 420px; margin: 0 auto; }
.ba-pending-box {
  border: 2px dashed var(--bordeaux); border-radius: var(--radius);
  padding: 32px 20px; text-align: center; background: #fff;
}
.ba-pending-icon { font-size: 40px; }
.ba-pending-box p { margin: 6px 0; }
.ba-pending-note { font-size: 12px; color: var(--muted); font-style: italic; }
#result-nophoto { text-align: center; padding: 24px 16px; }
#result-nophoto .btn { margin-top: 12px; }
/* Ancien comparateur démo (retiré Phase 1 : jamais d'autre visage comme résultat) */
.ba-wrap { display: none; }
.ba-wrap { position: relative; border-radius: var(--radius); overflow: hidden; max-width: 420px; margin: 12px auto; }
.ba-wrap img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.ba-after-wrap { position: absolute; inset: 0; overflow: hidden; width: 50%; border-right: 3px solid var(--gold); }
.ba-after-wrap img { width: 100%; height: 100%; }
.ba-slider { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-labels { display: flex; justify-content: space-between; max-width: 420px; margin: 0 auto 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
/* ---------- Looks grid ---------- */
.looks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.look-tile {
  border: none; border-radius: var(--radius); padding: 22px 8px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--bordeaux), var(--nuit)); min-height: 110px;
}
.look-tile small { display: block; font-weight: 400; font-size: 11px; opacity: .8; margin-top: 4px; }
.fav-row { display: flex; align-items: center; gap: 12px; }
.fav-row img { width: 56px; height: 72px; object-fit: cover; border-radius: 8px; }
/* ---------- Bottom nav / footer ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
  display: flex; border-top: 1px solid #e8e0de; z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav button {
  flex: 1; background: none; border: none; padding: 10px 4px; font-size: 20px;
  cursor: pointer; color: var(--muted); font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.bottom-nav button span { font-size: 10px; font-weight: 600; }
.bottom-nav button.active { color: var(--bordeaux); }
.site-footer { text-align: center; padding: 24px 16px 12px; color: var(--muted); font-size: 13px; }
.site-footer .legal a { color: var(--bordeaux); text-decoration: none; margin: 0 6px; }
/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .hero-text { padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .hero-text h1 { font-size: 56px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .main-nav button { font-size: 15px; }
}

.look-card { position: relative; }
.illus-badge { position: absolute; top: 8px; left: 8px; background: rgba(14,26,46,.75); color: #ffe9a8; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 12px; z-index: 2; }
