/* ==========================================
   NUIT LIBRE — Global Stylesheet
   Mobile-first, < 2s load
   Playfair Display + Lato
   ========================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* === VARIABLES === */
:root {
  --bleu-nuit: #1A2744;
  --lavande: #C9B8E8;
  --lavande-cta: #7B5EA7;
  --lavande-cta-hover: #6A4E94;
  --blanc-creme: #F8F5F0;
  --blanc-pur: #FFFFFF;
  --gris-texte: #3D3D3D;
  --gris-clair: #6B7280;
  --rouge-urgence: #DC2626;
  --vert-succes: #16A34A;
  --font-titre: 'Playfair Display', Georgia, serif;
  --font-corps: 'Lato', system-ui, -apple-system, sans-serif;
  --max-width: 720px;
  --border-radius: 12px;
  --shadow: 0 4px 24px rgba(26, 39, 68, 0.10);
  --shadow-lg: 0 8px 40px rgba(26, 39, 68, 0.16);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-corps);
  background: var(--blanc-creme);
  color: var(--gris-texte);
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lavande-cta); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--font-corps); border: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-titre);
  color: var(--bleu-nuit);
  line-height: 1.2;
  margin-bottom: 1rem;
}
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p { margin-bottom: 1.2rem; }
strong { font-weight: 700; color: var(--bleu-nuit); }
em { font-style: italic; }
blockquote {
  border-left: 4px solid var(--lavande);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(201, 184, 232, 0.12);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  color: var(--gris-texte);
}

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container--wide { max-width: 960px; }

/* === HEADER === */
.site-header {
  background: var(--bleu-nuit);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  color: var(--blanc-creme);
  font-family: var(--font-titre);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo span { color: var(--lavande); }
.tagline {
  color: rgba(201, 184, 232, 0.7);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  display: none;
}
@media (min-width: 480px) { .tagline { display: block; } }

/* === HERO SECTIONS === */
.hero {
  background: var(--bleu-nuit);
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.hero h1 { color: var(--blanc-creme); margin-bottom: 0.75rem; }
.hero p { color: rgba(248, 245, 240, 0.8); font-size: 1.1rem; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
  max-width: 480px;
}
.btn--primary {
  background: var(--lavande-cta);
  color: var(--blanc-pur);
  box-shadow: 0 4px 16px rgba(123, 94, 167, 0.4);
}
.btn--primary:hover {
  background: var(--lavande-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 94, 167, 0.5);
  text-decoration: none;
}
.btn--secondary {
  background: transparent;
  color: var(--gris-clair);
  border: 1px solid #ddd;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}
.btn--secondary:hover {
  background: #f0f0f0;
  text-decoration: none;
}
.btn--large {
  padding: 1.2rem 2.5rem;
  font-size: 1.15rem;
}
.btn-wrap { text-align: center; margin: 1.5rem 0; }

/* === BADGES & LABELS === */
.badge {
  display: inline-block;
  background: rgba(201, 184, 232, 0.25);
  color: var(--lavande-cta);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* === CARDS & BOXES === */
.card {
  background: var(--blanc-pur);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.highlight-box {
  background: linear-gradient(135deg, rgba(201,184,232,0.2), rgba(26,39,68,0.05));
  border: 1.5px solid rgba(201, 184, 232, 0.5);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.guarantee-box {
  background: rgba(22, 163, 74, 0.06);
  border: 1.5px solid rgba(22, 163, 74, 0.3);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.guarantee-box h3 { color: var(--vert-succes); }
.price-box {
  text-align: center;
  background: var(--blanc-pur);
  border: 2px solid var(--lavande-cta);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-lg);
}
.price-original {
  font-size: 1.2rem;
  color: var(--gris-clair);
  text-decoration: line-through;
}
.price-current {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bleu-nuit);
  font-family: var(--font-titre);
}
.price-label {
  font-size: 0.9rem;
  color: var(--gris-clair);
  margin-bottom: 0.25rem;
}

/* === TIMER === */
.timer-wrap {
  background: var(--rouge-urgence);
  color: var(--blanc-pur);
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
  font-weight: 700;
}
.timer-display {
  font-size: 2rem;
  font-family: var(--font-titre);
  letter-spacing: 0.1em;
}
.timer-label {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

/* === CHECKLIST === */
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--lavande-cta);
  font-weight: 700;
}

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid rgba(26,39,68,0.1);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 700;
  color: var(--bleu-nuit);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.faq-a { color: var(--gris-texte); margin: 0; }

/* === FORM ELEMENTS === */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--bleu-nuit);
}
.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--font-corps);
  background: var(--blanc-pur);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus {
  outline: none;
  border-color: var(--lavande-cta);
  box-shadow: 0 0 0 3px rgba(123, 94, 167, 0.15);
}
.form-hint {
  font-size: 0.8rem;
  color: var(--gris-clair);
  margin-top: 0.3rem;
}
.form-error {
  color: var(--rouge-urgence);
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}

/* === FOOTER === */
.site-footer {
  background: var(--bleu-nuit);
  color: rgba(248,245,240,0.6);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}
.site-footer a {
  color: rgba(201, 184, 232, 0.8);
  margin: 0 0.5rem;
}
.site-footer a:hover { color: var(--lavande); }

/* === SECURE BADGE === */
.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gris-clair);
  font-size: 0.8rem;
  margin-top: 0.75rem;
}
.secure-badge svg { flex-shrink: 0; }

/* === NOTIFICATION BAR === */
.notification-bar {
  background: var(--lavande-cta);
  color: var(--blanc-pur);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
}

/* === PROGRESS BAR (Quiz) === */
.progress-wrap {
  background: #e5e7eb;
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.progress-bar {
  background: var(--lavande-cta);
  height: 100%;
  border-radius: 50px;
  transition: width 0.4s ease;
}
.progress-label {
  text-align: right;
  font-size: 0.8rem;
  color: var(--gris-clair);
  margin-bottom: 0.25rem;
}

/* === RADIO CARDS (Quiz) === */
.radio-options { list-style: none; padding: 0; }
.radio-option {
  margin-bottom: 0.75rem;
}
.radio-option label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--blanc-pur);
  border: 2px solid #e5e7eb;
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.97rem;
  line-height: 1.5;
}
.radio-option label:hover {
  border-color: var(--lavande);
  background: rgba(201, 184, 232, 0.08);
}
.radio-option input[type="radio"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--lavande-cta);
  margin-top: 2px;
}
.radio-option input[type="radio"]:checked + .radio-text {
  font-weight: 700;
  color: var(--bleu-nuit);
}
.radio-option:has(input:checked) label {
  border-color: var(--lavande-cta);
  background: rgba(123, 94, 167, 0.06);
}

/* === LOADING SPINNER === */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(123,94,167,0.2);
  border-top-color: var(--lavande-cta);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === SEPARATOR === */
hr.fancy {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--lavande), transparent);
  margin: 2rem 0;
}

/* === SECTION SPACING === */
.section { padding: 2.5rem 0; }
.section--dark {
  background: var(--bleu-nuit);
  color: var(--blanc-creme);
}
.section--dark h2, .section--dark h3 { color: var(--blanc-creme); }
.section--lavande {
  background: rgba(201, 184, 232, 0.12);
}

/* === TESTIMONIAL === */
.testimonial {
  background: var(--blanc-pur);
  border-left: 4px solid var(--lavande-cta);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
.testimonial-name {
  font-weight: 700;
  color: var(--lavande-cta);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* === PRODUCT ITEM === */
.product-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.product-item:last-child { border-bottom: none; }
.product-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}
.product-title { font-weight: 700; color: var(--bleu-nuit); margin-bottom: 0.15rem; }
.product-value { font-size: 0.85rem; color: var(--gris-clair); margin: 0; }

/* === ALERT BOX === */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.alert--warning {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #92400e;
}
.alert--success {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.3);
  color: #166534;
}

/* === RESPONSIVE === */
@media (min-width: 640px) {
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .card { padding: 2rem; }
  h1 { margin-bottom: 1rem; }
}

/* === UTILITY === */
.text-center { text-align: center; }
.text-muted { color: var(--gris-clair); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
