/* ===============================================================
   La Marchande de sable — feuille de style
   Palette « nuit douce » : bleu nuit, sable chaud, crème
   =============================================================== */

:root {
  --cream:      #FBF6EE;
  --cream-2:    #F3EADD;
  --night:      #2E3556;
  --night-2:    #3C466F;
  --blue:       #7C99C9;
  --blue-soft:  #AFC2E0;
  --sand:       #E4B57C;
  --sand-deep:  #D49B54;
  --ink:        #35374A;
  --ink-soft:   #5C5E72;
  --white:      #FFFFFF;

  --shadow:     0 18px 40px -22px rgba(46, 53, 86, 0.45);
  --shadow-sm:  0 8px 22px -14px rgba(46, 53, 86, 0.4);
  --radius:     22px;
  --radius-sm:  14px;

  --font-title: "Fraunces", Georgia, serif;
  --font-body:  "Nunito Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.15; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--sand), var(--sand-deep));
  color: #4a3313;
  box-shadow: 0 12px 26px -12px rgba(212, 155, 84, .9);
}
.btn-ghost {
  background: rgba(255, 255, 255, .14);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.btn-soft {
  background: var(--cream-2);
  color: var(--night);
  box-shadow: var(--shadow-sm);
}
.btn-soft:hover { background: #eaddca; }

/* ===== Étoiles décoratives ===== */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(124,153,201,.5), transparent),
    radial-gradient(1.4px 1.4px at 78% 14%, rgba(228,181,124,.45), transparent),
    radial-gradient(1.5px 1.5px at 62% 68%, rgba(124,153,201,.35), transparent),
    radial-gradient(1.3px 1.3px at 30% 82%, rgba(228,181,124,.35), transparent),
    radial-gradient(1.4px 1.4px at 88% 60%, rgba(124,153,201,.3), transparent);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6vw;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.site-header.scrolled {
  background: rgba(251, 246, 238, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -18px rgba(46,53,86,.6);
  padding: 8px 6vw;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: auto; }
.brand-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.05;
  color: var(--night);
}
/* le hero est sombre : au tout début le header est transparent sur fond nuit */
.site-header:not(.scrolled) .brand-name { color: var(--white); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  position: relative;
  transition: color .25s ease;
}
.site-header.scrolled .site-nav a { color: var(--ink); }
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--sand);
  transition: width .25s ease;
}
.site-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--sand);
  color: #4a3313 !important;
  padding: 9px 20px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--sand-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--night); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 6vw 140px;
  color: var(--white);
  background:
    radial-gradient(120% 90% at 50% -10%, #4a5688 0%, var(--night-2) 45%, var(--night) 100%);
  overflow: hidden;
}
.moon {
  position: absolute;
  top: 16%; right: 14%;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fdf3dc, #f0d9a3 60%, #e4b57c);
  box-shadow: 0 0 60px 18px rgba(240, 217, 163, .35);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-18px);} }

.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hero h1 span { color: var(--sand); font-style: italic; }
.hero-lead {
  margin: 26px auto 34px;
  max-width: 560px;
  font-size: 1.12rem;
  color: rgba(255,255,255,.86);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 90px;
  background: var(--cream);
  clip-path: polygon(0 55%, 12% 46%, 28% 55%, 45% 42%, 62% 54%, 80% 44%, 100% 56%, 100% 100%, 0 100%);
  z-index: 1;
}

/* ===== Sections génériques ===== */
section { position: relative; z-index: 1; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sand-deep);
  margin-bottom: 14px;
}
.kicker.light { color: var(--sand); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--night); }
.section-intro { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; }

/* ===== À propos ===== */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
  max-width: 1120px;
  margin: 40px auto;
  padding: 80px 6vw;
}
.about-media {
  position: relative;
  background: linear-gradient(160deg, var(--cream-2), #e7d9c4);
  border-radius: var(--radius);
  padding: 50px;
  box-shadow: var(--shadow);
}
.about-media img { margin: 0 auto; max-width: 220px; }
.about-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  background: var(--night);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.about-text h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--night); margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; color: var(--ink-soft); }
.about-text blockquote {
  border-left: 4px solid var(--sand);
  padding: 6px 0 6px 22px;
  margin: 24px 0;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--night);
}
.signature { font-family: var(--font-title); font-style: italic; color: var(--night) !important; }

/* ===== Philosophie ===== */
.philo { padding: 90px 6vw; max-width: 1160px; margin: 0 auto; }
.philo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.philo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(228,181,124,.18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.philo-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -24px rgba(46,53,86,.5); }
.philo-ico {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: var(--cream-2);
  border-radius: 16px;
  margin-bottom: 20px;
}
.philo-card h3 { font-size: 1.3rem; color: var(--night); margin-bottom: 12px; }
.philo-card p { color: var(--ink-soft); font-size: 0.98rem; }

.philo-quote {
  text-align: center;
  max-width: 680px;
  margin: 60px auto 0;
  padding: 40px;
}
.philo-quote blockquote {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--night);
  line-height: 1.4;
}
.philo-quote figcaption { margin-top: 18px; color: var(--sand-deep); font-weight: 700; }

/* ===== Services & Tarifs ===== */
.services { padding: 90px 6vw; max-width: 1160px; margin: 0 auto; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-align: center;
  border: 1px solid rgba(228,181,124,.2);
  transition: transform .3s ease;
}
.price-card:hover { transform: translateY(-8px); }
.price-card.featured {
  background: linear-gradient(165deg, var(--night-2), var(--night));
  color: var(--white);
  transform: scale(1.04);
}
.price-card.featured:hover { transform: scale(1.04) translateY(-8px); }
.price-card.featured h3,
.price-card.featured .price { color: var(--white); }
.price-card.featured p { color: rgba(255,255,255,.82); }

.ribbon {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--sand);
  color: #4a3313;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-age {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sand-deep);
  background: var(--cream-2);
  padding: 6px 16px;
  border-radius: 999px;
  margin: 0 auto 18px;
}
.price-card.featured .price-age { color: var(--night); background: var(--sand); }
.price-card h3 { font-size: 1.5rem; color: var(--night); margin-bottom: 14px; }
.price-card p { color: var(--ink-soft); font-size: 0.98rem; flex-grow: 1; }
.price {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--night);
  margin: 22px 0 26px;
}
.price small { font-size: 0.9rem; font-weight: 400; color: var(--ink-soft); font-family: var(--font-body); }
.price span { font-size: 1rem; color: var(--sand-deep); font-family: var(--font-body); font-weight: 700; }
.price-card .btn { margin-top: auto; }

/* ===== Consultation offerte ===== */
.offer {
  margin: 60px 6vw;
  border-radius: 30px;
  background:
    radial-gradient(120% 120% at 85% 10%, #4a5688 0%, var(--night-2) 45%, var(--night) 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.offer::before {
  content: "🌙";
  position: absolute;
  font-size: 12rem;
  right: -20px; bottom: -40px;
  opacity: .08;
}
.offer-inner { max-width: 720px; margin: 0 auto; padding: 80px 6vw; text-align: center; }
.offer-inner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 22px; }
.offer-inner p { color: rgba(255,255,255,.85); margin-bottom: 18px; font-size: 1.08rem; }
.offer-note {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  font-size: 1rem !important;
}
.offer .btn { margin-top: 14px; }

/* ===== Contact ===== */
.contact { padding: 90px 6vw; max-width: 860px; margin: 0 auto; }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(228,181,124,.2);
}
/* Champ piège anti-robot : totalement invisible et hors flux */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; overflow: hidden;
}

.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--night); margin-bottom: 8px; }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid #e5dccd;
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border .25s ease, box-shadow .25s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sand);
  box-shadow: 0 0 0 4px rgba(228,181,124,.18);
}
.form-bottom { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-feedback { font-weight: 700; font-size: 0.95rem; }
.form-feedback.ok { color: #3f8a5f; }
.form-feedback.err { color: #c05b4d; }

/* ===== Footer ===== */
.site-footer {
  background: var(--night);
  color: rgba(255,255,255,.8);
  padding: 60px 6vw 40px;
  margin-top: 40px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; }
.footer-brand img { width: 44px; }
.footer-brand span { font-family: var(--font-title); font-size: 1.2rem; color: var(--white); }
.footer-nav { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-bottom: 26px; }
.footer-nav a { font-weight: 600; font-size: 0.94rem; transition: color .25s ease; }
.footer-nav a:hover { color: var(--sand); }
.footer-legal { font-size: 0.85rem; color: rgba(255,255,255,.55); }

/* ===== Bouton retour haut ===== */
.back-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--sand);
  color: #4a3313;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 90;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ===== Animations d'apparition ===== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 420px; margin: 0 auto; }
  .philo-grid, .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: scale(1); }
  .price-card.featured:hover { transform: translateY(-8px); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--night);
    box-shadow: -12px 0 40px -20px rgba(0,0,0,.6);
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a,
  .site-header.scrolled .site-nav a { color: var(--white); font-size: 1.1rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-header.scrolled .nav-toggle.open span { background: var(--white); }
  .contact-form { grid-template-columns: 1fr; padding: 32px; }
  .moon { width: 90px; height: 90px; top: 12%; right: 10%; }
}
