/* ================================================
   Kroustie — landing.css
   Styles de la landing page, chargés via functions.php
================================================ */

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

:root {
  --creme:   #F9F3E8;
  --terre:   #C45C2A;
  --olive:   #5A6A3A;
  --brun:    #2E1A0E;
  --or:      #D4913A;
  --fond:    #FDF8F0;
  --card-bg: #FFFCF5;
}

html { scroll-behavior: smooth; }

body.kroustie-landing {
  font-family: 'DM Sans', sans-serif;
  background: var(--fond);
  color: var(--brun);
  overflow-x: hidden;
  margin: 0 !important;
}

/* ================================================
   NAVIGATION
================================================ */
.k-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196, 92, 42, 0.12);
}

.k-nav__logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--terre);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.k-nav__logo span { color: var(--olive); }

.k-nav__cta {
  background: var(--terre);
  color: #fff !important;
  border: none;
  padding: 0.55rem 1.3rem;
  border-radius: 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.k-nav__cta:hover { background: var(--brun); transform: scale(1.03); }

/* ================================================
   HERO
================================================ */
.k-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.k-hero__deco {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}
.k-hero__deco--1 { width: 600px; height: 600px; background: var(--terre); top: -200px; right: -150px; }
.k-hero__deco--2 { width: 400px; height: 400px; background: var(--olive); bottom: -100px; left: -100px; }

.k-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(196, 92, 42, 0.1);
  color: var(--terre);
  border: 1px solid rgba(196, 92, 42, 0.25);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.8rem;
  letter-spacing: 0.02em;
}

.k-badge__dot {
  width: 8px; height: 8px;
  background: var(--terre);
  border-radius: 50%;
  display: inline-block;
  animation: k-pulse 1.8s infinite;
}

@keyframes k-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.k-hero__h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--brun);
  max-width: 800px;
  margin-bottom: 1.5rem;
}
.k-hero__h1 em { font-style: italic; color: var(--terre); }

.k-hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #6B5544;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.k-hero__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* Compteur avatars */
.k-hero__counter {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.k-avatars { display: flex; }
.k-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--fond);
  margin-right: -10px;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500;
  color: #fff;
}
.k-counter-text { font-size: 0.88rem; color: #6B5544; }
.k-counter-text strong { color: var(--brun); font-weight: 500; }

/* ================================================
   BOUTONS GLOBAUX
================================================ */
.k-btn--primary {
  background: var(--terre);
  color: #fff !important;
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 3rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}
.k-btn--primary:hover { background: var(--brun); transform: translateY(-2px); }

.k-btn--ghost {
  background: transparent;
  color: var(--brun) !important;
  border: 1.5px solid rgba(46, 26, 14, 0.25);
  padding: 0.9rem 2.2rem;
  border-radius: 3rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}
.k-btn--ghost:hover { border-color: var(--terre); color: var(--terre) !important; }

/* ================================================
   SECTION GÉNÉRIQUE
================================================ */
.k-section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.k-section-label {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--olive);
  font-weight: 500;
  margin-bottom: 1rem;
}

.k-h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  color: var(--brun);
  margin-bottom: 3.5rem;
  line-height: 1.15;
}

/* ================================================
   FEATURES GRID
================================================ */
.k-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.k-card {
  background: var(--card-bg);
  border: 1px solid rgba(196, 92, 42, 0.12);
  border-radius: 1.2rem;
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.k-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(196, 92, 42, 0.1);
}

.k-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.k-card__icon--terre { background: rgba(196, 92, 42, 0.12); }
.k-card__icon--olive { background: rgba(90, 106, 58, 0.12); }
.k-card__icon--or    { background: rgba(212, 145, 58, 0.12); }

.k-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brun);
  margin-bottom: 0.6rem;
}
.k-card p {
  font-size: 0.92rem;
  color: #6B5544;
  line-height: 1.7;
  font-weight: 300;
}

/* ================================================
   DIVIDER
================================================ */
.k-divider {
  text-align: center;
  padding: 2rem;
  color: rgba(196, 92, 42, 0.3);
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
}

/* ================================================
   SECTION WAITLIST
================================================ */
.k-waitlist {
  background: var(--brun);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.k-waitlist__deco {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--creme);
  pointer-events: none;
}

.k-waitlist__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.k-waitlist__inner .k-section-label { color: var(--or); }
.k-waitlist__inner .k-h2 { color: var(--creme); }

.k-waitlist__desc {
  color: rgba(249, 243, 232, 0.65);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ================================================
   SURCHARGE FORMINATOR (fond sombre)
   Ces règles s'appliquent uniquement dans .k-waitlist.
   ADAPTER selon ta version de Forminator si besoin.
   Tu peux aussi les copier dans
   Apparence > Personnaliser > CSS additionnel.
================================================ */
.k-waitlist .forminator-ui,
.k-waitlist .forminator-custom-form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.k-waitlist .forminator-input,
.k-waitlist .forminator-textarea,
.k-waitlist .forminator-select {
  background: rgba(249, 243, 232, 0.1) !important;
  border: 1px solid rgba(249, 243, 232, 0.2) !important;
  border-radius: 0.8rem !important;
  color: var(--creme) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.95rem !important;
  padding: 0.9rem 1.2rem !important;
}

.k-waitlist .forminator-input:focus,
.k-waitlist .forminator-textarea:focus,
.k-waitlist .forminator-select:focus {
  border-color: var(--or) !important;
  background: rgba(249, 243, 232, 0.15) !important;
  outline: none !important;
  box-shadow: none !important;
}

.k-waitlist .forminator-input::placeholder,
.k-waitlist .forminator-textarea::placeholder {
  color: rgba(249, 243, 232, 0.4) !important;
}

.k-waitlist label.forminator-label {
  color: rgba(249, 243, 232, 0.6) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.85rem !important;
}

.k-waitlist .forminator-btn-submit,
.k-waitlist .forminator-button-submit {
  width: 100% !important;
  background: var(--terre) !important;
  color: #fff !important;
  border: none !important;
  padding: 1rem !important;
  border-radius: 0.8rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
  margin-top: 0.5rem !important;
}
.k-waitlist .forminator-btn-submit:hover,
.k-waitlist .forminator-button-submit:hover {
  background: var(--or) !important;
  transform: scale(1.01) !important;
}

.k-waitlist .forminator-response-output--success {
  color: #A8C27A !important;
  background: rgba(90, 106, 58, 0.15) !important;
  border: 1px solid rgba(90, 106, 58, 0.35) !important;
  border-radius: 1rem !important;
  padding: 1.5rem !important;
  font-family: 'DM Sans', sans-serif !important;
}

.k-waitlist .forminator-response-output--error {
  color: #F09595 !important;
  background: rgba(163, 45, 45, 0.15) !important;
  border: 1px solid rgba(163, 45, 45, 0.35) !important;
  border-radius: 1rem !important;
  padding: 1.5rem !important;
}

.k-waitlist .forminator-checkbox-label,
.k-waitlist .forminator-radio-label {
  color: rgba(249, 243, 232, 0.7) !important;
  font-family: 'DM Sans', sans-serif !important;
}

.k-waitlist .forminator-gdpr-field-text,
.k-waitlist .forminator-privacy-policy-text {
  color: rgba(249, 243, 232, 0.35) !important;
  font-size: 0.78rem !important;
}

/* ================================================
   FOOTER
================================================ */
.k-footer {
  background: var(--brun);
  border-top: 1px solid rgba(249, 243, 232, 0.08);
  padding: 2rem;
  text-align: center;
}
.k-footer__logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--creme);
  margin-bottom: 0.5rem;
}
.k-footer__logo span { color: var(--or); }
.k-footer p {
  font-size: 0.82rem;
  color: rgba(249, 243, 232, 0.35);
}
.k-footer a {
  color: rgba(249, 243, 232, 0.4);
  text-decoration: none;
}
.k-footer a:hover { color: var(--or); }

/* ================================================
   ANIMATIONS AU SCROLL
================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 768px) {
  .k-nav { padding: 1rem 1.2rem; }
  .k-section { padding: 4rem 1.2rem; }
  .k-waitlist { padding: 4rem 1.2rem; }
  .k-hero { padding: 7rem 1.5rem 4rem; }
}

@media (max-width: 480px) {
  .k-hero__actions { flex-direction: column; width: 100%; }
  .k-btn--primary, .k-btn--ghost { width: 100%; text-align: center; }
}
