@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --black:      #0B0B0B;
  --black2:     #141414;
  --black3:     #1C1C1C;
  --black4:     #242424;
  --beige:      #F4F1EC;
  --beige2:     #E8E3D8;
  --gold:       #C6A75E;
  --gold2:      #A8893A;
  --gold-glow:  rgba(198,167,94,0.18);
  --white:      #FAFAF8;
  --muted:      #5A5A5A;
  --muted2:     #8A8A8A;
  --border:     rgba(255,255,255,0.07);
  --border-g:   rgba(198,167,94,0.3);
  --ease:       cubic-bezier(0.4,0,0.2,1);
  --ease-out:   cubic-bezier(0,0,0.2,1);
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; scroll-behavior:smooth; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; }
body { font-family:'Inter',sans-serif; background:var(--black); color:var(--white); overflow-x:hidden; }
img { display:block; max-width:100%; }
button { font-family:'Inter',sans-serif; }
a { color:inherit; }

/* ── PROGRESS ── */
.progress-bar { position:fixed; top:0; left:0; right:0; z-index:200; height:2px; background:rgba(255,255,255,0.05); display:none; }
.progress-fill { height:100%; background:linear-gradient(90deg,var(--gold2),var(--gold)); transition:width .6s var(--ease); }
.progress-label { position:fixed; top:14px; right:24px; font-size:.68rem; font-weight:600; letter-spacing:2.5px; color:var(--muted2); text-transform:uppercase; z-index:200; display:none; }
.back-btn { position:fixed; top:14px; left:20px; z-index:200; background:none; border:none; color:var(--muted2); font-size:.72rem; font-weight:500; letter-spacing:2px; text-transform:uppercase; cursor:pointer; display:flex; align-items:center; gap:6px; padding:8px 0; transition:color .2s; }
.back-btn:hover { color:var(--white); }
.back-btn.hidden { opacity:0; pointer-events:none; }

/* ── SCREEN ENGINE ── */
.screen { position:fixed; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; opacity:0; pointer-events:none; transform:translateY(20px); transition:opacity .45s var(--ease),transform .45s var(--ease); }
.screen.active { opacity:1; pointer-events:auto; transform:translateY(0); position:relative; min-height:100vh; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.screen.exit { opacity:0; transform:translateY(-20px); pointer-events:none; position:fixed; }

/* ── STEP 1 — HERO ── */
#step1 { padding:0; justify-content:flex-end; overflow:hidden; }
.hero-bg {
  position:absolute; inset:0; z-index:0;
  background-size:cover;
  background-position:center 20%;
  background-repeat:no-repeat;
}
.hero-bg::after {
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(to bottom, rgba(11,11,11,.45) 0%, rgba(11,11,11,.65) 50%, rgba(11,11,11,.96) 100%);
}
.hero-logo {
  position:absolute; top:36px; left:50%; transform:translateX(-50%);
  font-family:'Playfair Display',serif; font-size:1.4rem; font-weight:700;
  letter-spacing:8px; color:var(--gold); text-transform:uppercase; z-index:2;
  white-space:nowrap;
}
.hero-content { position:relative; z-index:2; text-align:center; padding:0 28px 64px; max-width:700px; margin:0 auto; width:100%; }
.hero-eyebrow { font-size:.7rem; font-weight:600; letter-spacing:4px; text-transform:uppercase; color:var(--gold); margin-bottom:20px; display:block; }
.hero-h1 { font-family:'Playfair Display',serif; font-size:clamp(2rem,5.5vw,3.8rem); font-weight:900; line-height:1.08; letter-spacing:-.5px; margin-bottom:20px; }
.hero-h1 em { font-style:italic; color:var(--gold); }
.hero-sub { font-size:clamp(.95rem,2vw,1.1rem); font-weight:300; color:rgba(255,255,255,.55); line-height:1.75; margin-bottom:44px; max-width:500px; margin-left:auto; margin-right:auto; }
.hero-note { font-size:.72rem; color:var(--muted2); letter-spacing:1.5px; margin-top:14px; }

/* ── PRODUCT STRIP (step 1 bottom) ── */
.product-strip { position:absolute; bottom:0; left:0; right:0; z-index:1; display:flex; justify-content:center; gap:2px; overflow:hidden; height:5px; }
.strip-seg { flex:1; background:var(--gold); opacity:.15; }
.strip-seg:nth-child(2) { opacity:.4; }
.strip-seg:nth-child(3) { opacity:.7; }
.strip-seg:nth-child(4) { opacity:.4; }
.strip-seg:nth-child(5) { opacity:.15; }

/* ── INNER WRAP ── */
.inner { width:100%; max-width:540px; padding:60px 28px 80px; margin:0 auto; display:flex; flex-direction:column; align-items:center; }
.inner-wide { max-width:720px; }

/* ── TYPOGRAPHY ── */
.step-eyebrow { font-size:.68rem; font-weight:600; letter-spacing:3px; text-transform:uppercase; color:var(--gold); display:block; margin-bottom:14px; text-align:center; }
.step-title { font-family:'Playfair Display',serif; font-size:clamp(1.7rem,4vw,2.8rem); font-weight:700; line-height:1.15; text-align:center; margin-bottom:14px; }
.step-title em { font-style:italic; color:var(--gold); }
.step-sub { font-size:.9rem; font-weight:300; color:var(--muted2); text-align:center; line-height:1.7; margin-bottom:40px; max-width:440px; }

/* ── SOUSMOI BRAND MARK ── */
.brand-mark { font-family:'Playfair Display',serif; font-size:.9rem; font-weight:700; letter-spacing:5px; color:var(--gold); text-transform:uppercase; text-align:center; opacity:.5; margin-bottom:6px; }

/* ── PRODUCT REVEAL CARD (step 1 inline) ── */
.product-reveal { width:100%; background:var(--black2); border:1px solid var(--border-g); border-radius:12px; overflow:hidden; margin-bottom:36px; }
.product-reveal img { width:100%; height:220px; object-fit:cover; object-position:center 30%; }
.product-reveal-body { padding:20px 24px; }
.product-reveal-body h3 { font-family:'Playfair Display',serif; font-size:1.1rem; font-weight:700; color:var(--gold); margin-bottom:6px; }
.product-reveal-body p { font-size:.84rem; color:var(--muted2); line-height:1.65; }

/* ── CONCEPT CARDS ── */
.concept-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; width:100%; margin-bottom:32px; }
.concept-card { background:var(--black2); border:1px solid var(--border); border-radius:10px; overflow:hidden; position:relative; }
.concept-card img { width:100%; height:140px; object-fit:cover; filter:brightness(.75); transition:filter .3s; }
.concept-card:hover img { filter:brightness(.9); }
.concept-card-label { position:absolute; bottom:10px; left:12px; font-family:'Playfair Display',serif; font-size:.9rem; font-weight:700; color:var(--white); text-shadow:0 1px 8px rgba(0,0,0,.7); }

/* ── BUTTONS ── */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; border:none; cursor:pointer; font-weight:600; font-size:.85rem; letter-spacing:2px; text-transform:uppercase; text-decoration:none; transition:all .25s var(--ease); border-radius:3px; -webkit-tap-highlight-color:transparent; }
.btn-primary { background:var(--white); color:var(--black); padding:20px 48px; width:100%; }
.btn-primary:hover { background:var(--beige); transform:translateY(-1px); box-shadow:0 8px 32px rgba(255,255,255,.08); }
.btn-gold { background:rgba(198,167,94,.06); border:1.5px solid var(--gold); color:var(--gold); padding:20px 48px; width:100%; box-shadow:0 0 18px rgba(198,167,94,.12); }
.btn-gold:hover { background:rgba(198,167,94,.13); box-shadow:0 0 28px rgba(198,167,94,.22); transform:translateY(-1px); }
.btn:disabled { opacity:.5; cursor:not-allowed; transform:none !important; }
@keyframes goldpulse { 0%,100%{box-shadow:0 0 0 0 rgba(198,167,94,.35)} 50%{box-shadow:0 0 0 12px rgba(198,167,94,0)} }
.btn-primary.pulse { animation:goldpulse 2.5s infinite; }

/* ── STICKY CTA (bouton toujours visible) ── */
.screen > .btn-gold,
.screen > .btn-primary {
  position:sticky;
  bottom:24px;
  z-index:10;
  margin-top:24px;
  box-shadow:0 4px 24px rgba(0,0,0,.55), 0 0 20px rgba(198,167,94,.18);
}

/* ── RYTHME CARDS ── */
.cards-row { display:flex; gap:10px; width:100%; margin-bottom:36px; }
.card { flex:1; background:var(--black2); border:1.5px solid var(--border); border-radius:10px; padding:24px 16px 20px; text-align:center; cursor:pointer; transition:all .25s var(--ease); position:relative; -webkit-tap-highlight-color:transparent; }
.card:hover { border-color:rgba(198,167,94,.3); }
.card.selected { border-color:var(--gold); background:var(--black3); box-shadow:0 0 0 1px var(--gold),0 8px 32px var(--gold-glow); }
.card-badge { display:inline-block; font-size:.6rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--gold); border:1px solid var(--border-g); padding:3px 8px; border-radius:2px; margin-bottom:10px; }
.card-title { font-family:'Playfair Display',serif; font-size:1rem; font-weight:700; color:var(--white); margin-bottom:6px; }
.card-sub { font-size:.75rem; color:var(--muted2); line-height:1.5; }
.card-check { position:absolute; top:9px; right:10px; width:17px; height:17px; border-radius:50%; background:var(--gold); color:var(--black); font-size:.6rem; font-weight:700; display:none; align-items:center; justify-content:center; }
.card.selected .card-check { display:flex; }

/* ── COUPE CARDS ── */
.coupe-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; width:100%; margin-bottom:6px; }
.coupe-card { background:var(--black2); border:1.5px solid var(--border); border-radius:10px; overflow:hidden; cursor:pointer; transition:all .25s var(--ease); position:relative; -webkit-tap-highlight-color:transparent; }
.coupe-card:hover { border-color:rgba(198,167,94,.3); }
.coupe-card.selected { border-color:var(--gold); box-shadow:0 0 0 1px var(--gold),0 4px 24px var(--gold-glow); }
.coupe-card-body { padding:14px 16px 16px; }
.coupe-name { font-family:'Playfair Display',serif; font-size:.95rem; font-weight:700; color:var(--white); margin-bottom:3px; }
.coupe-sub { font-size:.75rem; color:var(--muted2); }
.coupe-card .card-check { display:none; }
.coupe-card.selected .card-check { display:flex; }

/* Boxer CSS illustration */
.coupe-visual {
  width:100%; height:120px;
  background:#000;
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.boxer-shape {
  width:72px; height:56px;
  background:#111;
  border-radius:6px 6px 18px 18px;
  position:relative;
  border:1px solid #222;
  overflow:hidden;
}
.boxer-shape--short {
  height:42px;
  border-radius:4px 4px 14px 14px;
}
.boxer-elastic {
  position:absolute; top:0; left:0; right:0;
  height:14px;
  border-bottom:1px solid #333;
}
.coupe-visual--trunk .boxer-elastic { background:linear-gradient(90deg,#111,#1a1a1a); }
.coupe-visual--shorty .boxer-elastic { background:linear-gradient(90deg,#111,#1a1a1a); }
.coupe-visual.coupe-visual--trunk .boxer-elastic { background:#111; box-shadow:0 1px 0 rgba(198,167,94,.15); }
.coupe-tag {
  position:absolute; bottom:8px; left:50%; transform:translateX(-50%);
  font-family:'Playfair Display',serif; font-size:.65rem; color:rgba(198,167,94,.6);
  letter-spacing:2px; text-transform:uppercase; white-space:nowrap;
}

/* Gammes visual */
.gammes-visual {
  width:100%; margin-bottom:28px; text-align:center;
}
.gammes-caption {
  font-family:'Playfair Display',serif;
  font-size:.8rem; color:var(--muted2);
  letter-spacing:2px; margin-top:10px;
  text-transform:uppercase;
}

/* ── STYLES GRID — kept for backward compat (hidden now) ── */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 32px;
}

.style-card {
  background: var(--black2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: border-color .25s, transform .25s;
  cursor: default;
}

.style-card:hover {
  border-color: var(--border-g);
  transform: translateY(-3px);
}

.style-swatch {
  width: 100%;
  height: 90px;
  position: relative;
}

.style-swatch::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.4));
}

.style-label {
  font-family: 'Playfair Display', serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  padding: 10px 8px 4px;
}

.style-sub {
  font-size: .68rem;
  color: var(--muted2);
  padding: 0 8px 12px;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .styles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── TAILLE SELECTOR ── */
.taille-grid { display:flex; flex-wrap:wrap; gap:8px; width:100%; margin-bottom:10px; }
.taille-btn { min-width:50px; padding:11px 8px; background:var(--black2); border:1.5px solid var(--border); border-radius:6px; color:var(--muted2); font-size:.8rem; font-weight:600; letter-spacing:1px; text-align:center; cursor:pointer; transition:all .2s var(--ease); user-select:none; -webkit-tap-highlight-color:transparent; }
.taille-btn:hover { border-color:rgba(198,167,94,.35); color:var(--white); }
.taille-btn.selected { border-color:var(--gold); color:var(--gold); background:rgba(198,167,94,.07); box-shadow:0 0 0 1px var(--gold); }
.taille-guide-toggle { font-size:.72rem; color:var(--muted); cursor:pointer; border-bottom:1px solid var(--muted); padding-bottom:1px; display:inline-block; margin-bottom:6px; transition:color .2s; }
.taille-guide-toggle:hover { color:var(--muted2); }
.taille-guide-content { display:none; flex-direction:column; gap:4px; font-size:.75rem; color:var(--muted2); line-height:1.7; margin-top:8px; margin-bottom:4px; }

/* ── GAMME CARDS ── */
.gamme-cards { display:flex; flex-direction:column; gap:8px; width:100%; margin-bottom:36px; }
.gamme-card { background:var(--black2); border:1.5px solid var(--border); border-radius:10px; padding:20px 22px; cursor:pointer; transition:all .25s var(--ease); display:flex; justify-content:space-between; align-items:center; -webkit-tap-highlight-color:transparent; }
.gamme-card:hover { border-color:rgba(198,167,94,.3); }
.gamme-card.selected { border-color:var(--gold); box-shadow:0 0 0 1px var(--gold),0 4px 24px var(--gold-glow); }
.gamme-name { font-family:'Playfair Display',serif; font-size:1rem; font-weight:700; color:var(--white); margin-bottom:3px; }
.gamme-desc { font-size:.78rem; color:var(--muted2); }
.gamme-price { font-size:.85rem; font-weight:600; color:var(--gold); flex-shrink:0; margin-left:16px; }
.gamme-dot { width:16px; height:16px; border-radius:50%; border:1.5px solid rgba(255,255,255,.15); flex-shrink:0; margin-left:12px; transition:all .2s; }
.gamme-card.selected .gamme-dot { background:var(--gold); border-color:var(--gold); }

/* ── SECTION LABEL ── */
.section-label { font-size:.68rem; font-weight:700; letter-spacing:3px; text-transform:uppercase; color:var(--muted); margin-bottom:12px; align-self:flex-start; width:100%; margin-top:8px; }

/* ── BENEFIT LIST ── */
.benefit-list { width:100%; margin-bottom:28px; }
.benefit-item { display:flex; align-items:center; gap:14px; padding:13px 0; border-bottom:1px solid var(--border); font-size:.88rem; color:var(--muted2); }
.benefit-item:last-child { border-bottom:none; }
.benefit-check { color:var(--gold); font-size:.9rem; flex-shrink:0; }

/* ── SUMMARY CARD ── */
.summary-card { width:100%; background:var(--black2); border:1.5px solid var(--border-g); border-radius:10px; padding:26px; margin-bottom:24px; }
.summary-card-title { font-family:'Playfair Display',serif; font-size:1.1rem; font-weight:700; color:var(--white); margin-bottom:16px; padding-bottom:14px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:8px; }
.summary-card-title .gold-dot { width:6px; height:6px; border-radius:50%; background:var(--gold); flex-shrink:0; }
.summary-line { display:flex; justify-content:space-between; align-items:center; padding:7px 0; font-size:.85rem; color:var(--muted2); }
.summary-line strong { color:var(--white); font-weight:500; }
.summary-line.price { margin-top:12px; padding-top:14px; border-top:1px solid var(--border); font-size:1rem; color:var(--white); font-weight:600; }
.summary-line.price span:last-child { font-family:'Playfair Display',serif; font-size:1.25rem; color:var(--gold); }
.summary-note { font-size:.75rem; color:var(--muted); text-align:center; font-style:italic; }

/* ── SIDE RECAP ── */
.side-recap { width:100%; background:var(--black2); border:1px solid var(--border); border-radius:10px; padding:16px 20px; margin-bottom:24px; display:flex; justify-content:space-around; flex-wrap:wrap; gap:12px; }
.recap-item { font-size:.75rem; color:var(--muted2); text-align:center; }
.recap-item strong { display:block; font-size:.85rem; color:var(--white); font-weight:600; margin-bottom:2px; }

/* ── FORM ── */
.form-wrap { width:100%; margin-bottom:24px; }
.form-row2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.form-group { margin-bottom:12px; }
.form-label { display:block; font-size:.67rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--muted); margin-bottom:7px; }
.form-input,.form-select { width:100%; background:var(--black2); border:1.5px solid var(--border); border-radius:7px; color:var(--white); font-family:'Inter',sans-serif; font-size:.95rem; font-weight:300; padding:13px 15px; outline:none; transition:border-color .2s; -webkit-appearance:none; appearance:none; }
.form-input:focus,.form-select:focus { border-color:var(--gold); }
.form-input::placeholder { color:rgba(255,255,255,.15); }
.form-input.error { border-color:#e74c3c; }
.form-error { font-size:.72rem; color:#e74c3c; margin-top:4px; display:none; }
.form-error.show { display:block; }

/* ── PAYMENT ── */
.apple-pay-btn { width:100%; background:var(--white); border:none; border-radius:8px; padding:17px; display:flex; align-items:center; justify-content:center; cursor:pointer; margin-bottom:14px; transition:background .2s; font-size:1.05rem; font-weight:600; color:var(--black); letter-spacing:.5px; gap:6px; -webkit-tap-highlight-color:transparent; }
.apple-pay-btn:hover { background:var(--beige); }
.pay-divider { display:flex; align-items:center; gap:12px; width:100%; margin-bottom:14px; color:var(--muted); font-size:.68rem; letter-spacing:2.5px; text-transform:uppercase; }
.pay-divider::before,.pay-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.card-fields { width:100%; margin-bottom:20px; }
.secure-mention { display:flex; align-items:center; justify-content:center; gap:8px; font-size:.73rem; color:var(--muted); letter-spacing:.5px; margin-bottom:12px; }
.confirm-note { font-size:.74rem; color:var(--muted); text-align:center; line-height:1.7; margin-bottom:18px; }

/* ── CONFIRM ── */
#step9 { background:radial-gradient(ellipse 70% 50% at 50% 30%,rgba(198,167,94,.07) 0%,transparent 70%),var(--black); }
.confirm-icon { width:72px; height:72px; border-radius:50%; border:1px solid var(--border-g); background:rgba(198,167,94,.06); display:flex; align-items:center; justify-content:center; font-size:1.8rem; margin-bottom:28px; }
.confirm-details { width:100%; background:var(--black2); border:1px solid var(--border); border-radius:10px; padding:22px; margin:28px 0; text-align:left; }
.confirm-line { display:flex; justify-content:space-between; font-size:.85rem; color:var(--muted2); padding:8px 0; border-bottom:1px solid var(--border); }
.confirm-line:last-child { border-bottom:none; }
.confirm-line strong { color:var(--white); font-weight:500; }

/* ── MATIÈRES GRID ── */
.matieres-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; width:100%; margin-bottom:24px; }
.matiere-card { background:var(--black2); border:1px solid var(--border); border-radius:10px; padding:22px 16px 20px; text-align:center; }
.matiere-icon { font-size:1.2rem; color:var(--gold); margin-bottom:12px; }
.matiere-name { font-family:'Playfair Display',serif; font-size:.9rem; font-weight:700; color:var(--white); margin-bottom:8px; }
.matiere-desc { font-size:.7rem; color:var(--muted2); line-height:1.6; }

/* ── CYCLE BANNER ── */
.cycle-banner { width:100%; background:var(--black3); border:1px solid var(--border-g); border-radius:10px; padding:18px 22px; margin-bottom:28px; display:flex; align-items:flex-start; gap:16px; }
.cycle-icon { font-size:1.4rem; color:var(--gold); flex-shrink:0; margin-top:2px; }
.cycle-banner p { font-size:.83rem; color:var(--muted2); line-height:1.7; }
.cycle-banner strong { color:var(--white); }

/* ── PACK RECAP ── */
.pack-recap { width:100%; background:var(--black2); border:1.5px solid var(--border-g); border-radius:10px; padding:26px; margin-bottom:20px; }
.pack-recap-title { font-family:'Playfair Display',serif; font-size:1.1rem; font-weight:700; color:var(--white); margin-bottom:16px; padding-bottom:14px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:8px; }
.pack-recap-title .gold-dot { width:6px; height:6px; border-radius:50%; background:var(--gold); flex-shrink:0; }
.price-big { font-family:'Playfair Display',serif; font-size:1.3rem; color:var(--gold); font-weight:700; }

/* ── LOGO WATERMARK ── */
.logo-wm { font-family:'Playfair Display',serif; font-size:.85rem; font-weight:700; letter-spacing:5px; color:var(--gold); text-transform:uppercase; text-align:center; opacity:.35; margin-bottom:28px; }

/* ── RESPONSIVE ── */
@media (max-width:600px) {
  .inner { padding:52px 20px 72px; }
  .cards-row { flex-direction:column; }
  .form-row2 { grid-template-columns:1fr; }
  .progress-label { display:none; }
  .back-btn { top:13px; left:14px; }
  .hero-logo { font-size:1.1rem; letter-spacing:6px; top:28px; }
  .hero-content { padding:0 20px 52px; }
  .concept-grid { grid-template-columns:1fr 1fr; }
  .matieres-grid { grid-template-columns:1fr; }
}
