/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rose: #f9c6d0;
  --rose-deep: #c0607a;
  --rose-dark: #9b4060;
  --rose-light: #fdf0f3;
  --rose-border: #f0c0d0;
  --bois: #c8b89a;
  --bois-dark: #8a7055;
  --text: #2a1a20;
  --text-muted: #8a7080;
  --bg: #fffbfc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(180,100,120,0.08);
  --shadow-hover: 0 6px 24px rgba(180,100,120,0.15);
  --transition: 0.2s ease;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
em { font-style: italic; color: var(--rose-deep); }
a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,251,252,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rose-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rose-dark);
  white-space: nowrap;
}
.logo span { color: var(--rose-deep); }

.nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}
.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav a:hover { color: var(--rose-dark); }

.nav-cta { margin-left: 0.5rem; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rose-deep);
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--rose-deep);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1.5px solid var(--rose-border);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost:hover { background: var(--rose-light); }

.btn-full { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

.btn-small {
  display: inline-flex;
  align-items: center;
  background: var(--rose-deep);
  color: white;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background var(--transition);
}
.btn-small:hover { background: var(--rose-dark); }

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 80px 24px 72px;
  background: linear-gradient(180deg, #fff5f7 0%, #fffbfc 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(249,198,208,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rose-light);
  border: 1px solid var(--rose-border);
  color: var(--rose-dark);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin-bottom: 16px;
  position: relative;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stats strong { font-size: 1.5rem; color: var(--rose-dark); font-family: var(--font-display); }
.hero-stats span { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.stat-sep { width: 1px; height: 32px; background: var(--rose-border); }

/* ===== SECTIONS ===== */
.section-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 1rem;
}

/* ===== PERSONNALISATEUR ===== */
.personaliser-section {
  padding: 80px 0;
  background: white;
}

.personaliser-section h2 { margin-bottom: 4px; }

.builder {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

/* Preview */
.preview-panel {
  position: sticky;
  top: 84px;
}

.preview-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.preview-canvas {
  background: linear-gradient(145deg, #fff5f7, #fdf0f3);
  border: 1.5px solid var(--rose-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.preview-canvas svg {
  width: 100%;
  max-width: 260px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(180,100,120,0.12));
  transition: all 0.3s ease;
}

.preview-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Config */
.config-panel { display: flex; flex-direction: column; gap: 24px; }

.config-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rose-light);
  border: 1.5px solid var(--rose-border);
  color: var(--rose-dark);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content { flex: 1; }

.step-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.input-field, .textarea-field {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e8d0d8;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  transition: border-color var(--transition);
  outline: none;
}
.input-field:focus, .textarea-field:focus { border-color: var(--rose-deep); }

.char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

/* Toggle type */
.toggle-group { display: flex; gap: 10px; }

.toggle-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 12px;
  border: 1.5px solid #e8d0d8;
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.toggle-btn:hover { border-color: var(--rose-deep); }
.toggle-btn.active { border-color: var(--rose-deep); background: var(--rose-light); }

.toggle-icon { font-size: 1.4rem; }
.toggle-label { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.toggle-desc { font-size: 0.75rem; color: var(--text-muted); }

/* Color grid */
.color-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.color-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  padding: 2px;
  cursor: pointer;
  background: transparent;
  transition: all var(--transition);
}
.color-btn span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.color-btn.active, .color-btn:hover { border-color: var(--rose-dark); transform: scale(1.12); }

.color-name-display {
  font-size: 0.82rem;
  color: var(--rose-dark);
  font-weight: 500;
}

/* Récap */
.recap-card {
  background: var(--rose-light);
  border: 1px solid var(--rose-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.recap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 5px 0;
  color: var(--text-muted);
}
.recap-row strong { color: var(--text); font-weight: 500; }

.recap-sep {
  height: 1px;
  background: var(--rose-border);
  margin: 8px 0;
}

.recap-prix {
  font-size: 1rem;
}
.recap-prix strong { font-size: 1.2rem; font-family: var(--font-display); color: var(--rose-dark); }

.livraison-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== COLLECTIONS ===== */
.collections-section {
  padding: 80px 0;
  background: #fdf8f9;
}

.collections-section h2 { margin-bottom: 4px; }

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.collection-card {
  background: white;
  border: 1px solid var(--rose-border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.collection-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.collection-img {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.broderie-img { background: linear-gradient(135deg, #fff0f4, #ffdde5); }
.gravure-img { background: linear-gradient(135deg, #fdf4e8, #f0e0c0); }
.coffret-img { background: linear-gradient(135deg, #f8f0ff, #ead8f8); }

.collection-visual svg { width: 120px; height: 90px; }

.collection-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--rose-deep);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 50px;
}
.collection-badge.gravure { background: var(--bois-dark); }
.collection-badge.coffret { background: #7a4fa0; }

.collection-info { padding: 20px; }
.collection-info h3 { margin-bottom: 8px; font-size: 1rem; }
.collection-info p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.55; }

.collection-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rose-dark);
}

/* ===== AVIS ===== */
.avis-section {
  padding: 80px 0;
  background: white;
}

.avis-section h2 { margin-bottom: 4px; }

.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.avis-card {
  background: var(--rose-light);
  border: 1px solid var(--rose-border);
  border-radius: 16px;
  padding: 24px;
}

.stars { color: #f5a623; font-size: 1rem; margin-bottom: 12px; }

.avis-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.avis-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose-deep);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avis-author div { display: flex; flex-direction: column; }
.avis-author strong { font-size: 0.88rem; }
.avis-author span { font-size: 0.78rem; color: var(--text-muted); }

/* ===== COMMANDE ===== */
.commander-section {
  padding: 80px 0;
  background: #fdf8f9;
}

.commander-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.commander-inner h2 { margin-bottom: 8px; }

.garanties {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.garantie-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.commande-form {
  background: white;
  border: 1px solid var(--rose-border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.optional { color: var(--text-muted); font-weight: 400; }

.form-group input,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid #e8d0d8;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--rose-deep); }

.creation-recap {
  background: var(--rose-light);
  border: 1px solid var(--rose-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 48px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -4px;
}

/* ===== FOOTER ===== */
.footer {
  background: #2a1a20;
  color: #d0b0bc;
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo { color: #f9c6d0; font-size: 1.4rem; }
.footer-brand .logo span { color: #f0a0b4; }
.footer-brand p { font-size: 0.85rem; color: #a08090; margin-top: 10px; line-height: 1.6; }

.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-links strong, .footer-contact strong { color: white; font-size: 0.85rem; font-weight: 500; margin-bottom: 4px; }
.footer-links a, .footer-contact a { font-size: 0.82rem; color: #a08090; transition: color var(--transition); }
.footer-links a:hover, .footer-contact a:hover { color: var(--rose); }
.footer-contact p { font-size: 0.82rem; color: #a08090; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 24px;
  text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: #705060; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #2a1a20;
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .collections-grid { grid-template-columns: 1fr; gap: 16px; }
  .avis-grid { grid-template-columns: 1fr; gap: 14px; }
  .commander-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .hero { padding: 56px 24px 48px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-stats { gap: 18px; }
  .stat-sep { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .collections-section, .personaliser-section, .avis-section, .commander-section { padding: 56px 0; }
  .toggle-group { flex-direction: column; }
}
