/* ═══════════════════════════════════════════
   HITOKI — style.css
   Palette, typographie, layout, composants
   ═══════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --orange:      #F4845F;
  --orange-dark: #E06840;
  --peach-bg:    #FFF0EB;
  --peach-mid:   #FFDDD2;
  --peach-dark:  #F4D5C8;
  --night:       #1E1A18;
  --night-soft:  #3A3330;
  --muted:       #9A8880;
  --green:       #3D9A7A;
  --amber:       #F0B429;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BASE ── */
body {
  font-family: 'Inter', sans-serif;
  background: var(--peach-bg);
  color: var(--night);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 5%;
  background: rgba(255, 240, 235, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 133, 95, 0.12);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Shippori Mincho', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--night); text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-cta {
  background: var(--night);
  color: var(--peach-bg);
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: -0.01em;
}
.nav-cta:hover { background: var(--night-soft); transform: translateY(-1px); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--peach-mid);
  border: 1px solid var(--peach-dark);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--orange-dark);
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}

.hero-badge span {
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(42px, 7vw, 50px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--night);
  max-width: 820px;
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 520px;
  line-height: 1.65;
  margin: 24px auto 44px;
  font-weight: 400;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-cta-group {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: fadeUp 0.7s ease 0.3s both;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange);
  color: white;
  padding: 16px 36px;
  border-radius: 99px;
  font-size: 16px; font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: -0.01em;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

.hero-reassurance {
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}

/* ── HERO VISUAL ── */
.hero-visual {
  margin-top: 72px;
  width: 100%; max-width: 480px;
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero-visual--two {
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 720px) {
  .hero-visual--two {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

.phone-frame {
  background: var(--peach-mid);
  border-radius: 28px;
  border: 1px solid var(--peach-dark);
  padding: 20px;
}

.phone-doc {
  background: white;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--peach-dark);
  margin-bottom: 12px;
}

.phone-doc-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}

.doc-icon {
  width: 36px; height: 36px;
  background: var(--peach-mid);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.doc-title { font-size: 14px; font-weight: 600; color: var(--night); }
.doc-sub   { font-size: 11px; color: var(--muted); margin-top: 2px; }

.doc-result {
  background: var(--peach-bg);
  border-radius: 10px;
  padding: 12px;
}

.doc-result-label {
  font-size: 10px; font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.doc-result-text {
  font-size: 12px; color: var(--night-soft);
  line-height: 1.6;
}

.doc-result-fade {
  position: relative;
  max-height: 115px;
  overflow: hidden;
}

.doc-result-fade::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--peach-bg));
}

.hero-preview-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 20px;
  letter-spacing: 0.01em;
}

.phone-reminder {
  background: white;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid var(--peach-dark);
  display: flex; align-items: center; gap: 12px;
}

.reminder-dot   { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }
.reminder-text  { font-size: 13px; font-weight: 600; color: var(--night); flex: 1; }
.reminder-badge {
  background: var(--peach-mid);
  color: var(--orange);
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 99px;
}

/* ═══════════════════════════════════════════
   SECTIONS GÉNÉRIQUES
   ═══════════════════════════════════════════ */
.section { padding: 96px 5%; }

.section-label {
  font-size: 12px; font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--night);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px; color: var(--muted);
  max-width: 520px; line-height: 1.7;
  margin-bottom: 56px;
}

/* ═══════════════════════════════════════════
   PROBLÈME — Pain cards
   ═══════════════════════════════════════════ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.pain-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--peach-dark);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.pain-card:hover { transform: translateY(-3px); }

.pain-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  opacity: 0.4;
}

.pain-emoji { font-size: 32px; margin-bottom: 16px; display: block; }
.pain-title { font-size: 16px; font-weight: 700; color: var(--night); margin-bottom: 10px; letter-spacing: -0.01em; }
.pain-text  { font-size: 14px; color: var(--muted); line-height: 1.7; }

.pain-quote {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--peach-bg);
  border-radius: 10px;
  font-size: 13px;
  color: var(--night-soft);
  font-style: italic;
  line-height: 1.6;
  border-left: 3px solid var(--orange);
}

/* ═══════════════════════════════════════════
   SOLUTION — Dark block
   ═══════════════════════════════════════════ */
.solution-bg {
  background: var(--night);
  border-radius: 32px;
  margin: 0 3%;
  padding: 80px 5%;
}

.solution-bg .section-label { color: var(--orange); }
.solution-bg .section-title { color: white; }
.solution-bg .section-sub   { color: rgba(255, 240, 235, 0.5); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: rgba(255, 240, 235, 0.05);
  border: 1px solid rgba(244, 133, 95, 0.15);
  border-radius: 20px;
  padding: 28px;
  transition: background 0.2s, transform 0.2s;
}
.feature-card:hover {
  background: rgba(255, 240, 235, 0.08);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px; height: 48px;
  background: rgba(244, 133, 95, 0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 17px; font-weight: 700;
  color: white;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-text {
  font-size: 14px;
  color: rgba(255, 240, 235, 0.55);
  line-height: 1.7;
}

.feature-tag {
  display: inline-block;
  margin-top: 16px;
  background: rgba(244, 133, 95, 0.15);
  color: var(--orange);
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   COMMENT ÇA MARCHE — Steps
   ═══════════════════════════════════════════ */
.steps { display: flex; flex-direction: column; max-width: 640px; }

.step {
  display: flex; gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--peach-dark);
}
.step:last-child { border-bottom: none; }

.step-num {
  width: 42px; height: 42px;
  background: var(--orange);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px; font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.step-title { font-size: 17px; font-weight: 700; color: var(--night); margin-bottom: 6px; letter-spacing: -0.01em; }
.step-text  { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ═══════════════════════════════════════════
   SOCIAL PROOF
   ═══════════════════════════════════════════ */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.proof-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--peach-dark);
}

.proof-stars  { color: var(--orange); font-size: 14px; margin-bottom: 12px; }
.proof-text   { font-size: 14px; color: var(--night-soft); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.proof-author { display: flex; align-items: center; gap: 10px; }

.proof-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--peach-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  color: var(--orange);
}

.proof-name { font-size: 13px; font-weight: 600; color: var(--night); }
.proof-meta { font-size: 11px; color: var(--muted); }

/* ═══════════════════════════════════════════
   FORMULAIRE
   ═══════════════════════════════════════════ */
.form-section {
  background: var(--orange);
  border-radius: 32px;
  margin: 0 3% 80px;
  padding: 80px 5%;
  text-align: center;
}

.form-section .section-title { color: white; margin: 0 auto 12px; }
.form-section .section-sub   { color: rgba(255, 255, 255, 0.75); margin: 0 auto 48px; }

.form-wrapper { max-width: 480px; margin: 0 auto; }

.form-row {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 12px;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: background 0.2s;
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.6); }
.form-input:focus        { background: rgba(255, 255, 255, 0.28); }

.form-submit {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: var(--night);
  color: var(--peach-bg);
  font-size: 16px; font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: -0.01em;
}
.form-submit:hover { background: var(--night-soft); transform: translateY(-1px); }

.form-legal {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 14px;
  line-height: 1.5;
}

/* ── CONFIRMATION ── */
.confirmation {
  display: none;
  flex-direction: column; align-items: center; gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: white;
}
.confirmation-icon  { font-size: 40px; }
.confirmation-title { font-size: 20px; font-weight: 700; }
.confirmation-text  { font-size: 14px; opacity: 0.8; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  padding: 32px 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--peach-dark);
}

.footer-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--night);
  letter-spacing: -0.03em;
}

.footer-links     { display: flex; gap: 24px; }
.footer-links a   { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--night); }
.footer-copy      { font-size: 12px; color: var(--muted); }

/* ═══════════════════════════════════════════
   PAGES LÉGALES
   ═══════════════════════════════════════════ */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 5% 80px;
}

.legal-page h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--night);
  margin-bottom: 8px;
}

.legal-page .legal-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--night);
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  color: var(--night-soft);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-page a {
  color: var(--orange);
  text-decoration: none;
}
.legal-page a:hover { text-decoration: underline; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--peach-dark);
  background: white;
  color: var(--night);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--orange); }

.contact-form textarea { min-height: 140px; }

.contact-form button {
  align-self: flex-start;
  padding: 14px 32px;
  border-radius: 99px;
  border: none;
  background: var(--orange);
  color: white;
  font-size: 15px; font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.contact-form button:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 640px) {
  nav                             { padding: 14px 4%; }
  .section                        { padding: 64px 4%; }
  .solution-bg, .form-section     { margin: 0 2%; padding: 56px 4%; }
  footer                          { padding: 24px 4%; }
  .hero                           { padding: 100px 4% 60px; }
  .legal-page                     { padding: 120px 4% 60px; }
}

/* ═══════════════════════════════════════════
   PAIN GRID 2 COLONNES
   ═══════════════════════════════════════════ */
.pain-grid--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .pain-grid--2col { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   SECTION RAPPELS
   ═══════════════════════════════════════════ */
.reminders-section { padding: 80px 24px; max-width: 860px; margin: 0 auto; text-align: center; }
.reminders-categories { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; text-align: left; }
.reminder-category { display: flex; align-items: flex-start; gap: 16px; }
.reminder-category-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); white-space: nowrap; min-width: 110px; padding-top: 4px; }
.reminder-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.reminder-tag { background: var(--peach-mid); border: 1px solid var(--peach-dark); border-radius: 20px; padding: 4px 14px; font-size: 0.85rem; color: var(--night-soft); }
.reminders-note { margin-top: 32px; font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* ═══════════════════════════════════════════
   BOUTON RETOUR EN HAUT
   ═══════════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(244,132,95,0.4);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--orange-dark); }
