/* ============================================================
   Prompts & Flow — Landing food trucks
   main.css — mobile-first, responsive
   Breakpoints : 600px (mobile+) · 900px (tablette) · 1200px (desktop)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --primary: #E63946;      /* rouge tomate */
  --secondary: #F4A261;    /* jaune moutarde */
  --text: #1A1A1A;         /* noir charbon */
  --bg: #FFF8F0;           /* crème */
  --accent: #52796F;       /* vert basilic */
  --bg-warm: #FCE4D5;      /* crème saturée */
  --white: #ffffff;

  --primary-dark: #c32f3b;
  --muted: #6b625b;
  --border: #ecdcce;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-hand: "Caveat", cursive;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(26, 26, 26, .08);
  --shadow-lg: 0 18px 50px rgba(230, 57, 70, .18);
  --maxw: 1200px;
  --nav-h: 66px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* Accessibilité : focus visible */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }
.section { padding: 64px 0; }
.section--warm { background: var(--bg-warm); }
.section__title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  text-align: center;
  max-width: 18ch;
  margin-inline: auto;
}
.section__title--left { text-align: left; margin-inline: 0; }
.section__subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 50ch;
  margin: 0 auto 2.5rem;
}
.section__subtitle--left { text-align: left; margin-inline: 0; }
.eyebrow {
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--primary);
  margin-bottom: .6rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-lg); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--light { background: var(--white); color: var(--primary); }
.btn--light:hover { background: var(--bg); }

/* ============================================================
   1. NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--primary);
  height: var(--nav-h);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1rem; }
.nav__logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  color: var(--white); white-space: nowrap;
}
.nav__logo:hover { text-decoration: none; }
.nav__logo-amp { color: var(--secondary); }
.nav__links { display: none; gap: 1.6rem; }
.nav__links a { color: var(--white); font-weight: 500; }
.nav__links a:hover { color: var(--secondary); text-decoration: none; }
.nav__cta { display: none; }

.nav__burger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__burger span { width: 26px; height: 3px; background: var(--white); border-radius: 2px; transition: .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav__mobile {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--primary); padding: 1rem 20px 1.5rem;
  display: flex; flex-direction: column; gap: .4rem; z-index: 99;
  box-shadow: 0 12px 20px rgba(0,0,0,.15);
}
/* L'attribut hidden doit l'emporter sur display:flex ci-dessus (état fermé par défaut) */
.nav__mobile[hidden] { display: none; }
.nav__mobile a { color: var(--white); padding: .7rem 0; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.15); }
.nav__mobile a:hover { color: var(--secondary); text-decoration: none; }
.nav__mobile .btn { margin-top: .6rem; }

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-warm) 100%);
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 56px;
  min-height: 92vh; display: flex; align-items: center;
}
.hero__inner { display: grid; gap: 2rem; align-items: center; }
.hero__title { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
.hero__subtitle { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero__hand { font-family: var(--font-hand); font-size: 1.45rem; color: var(--accent); margin-top: 1.4rem; }
.hero__adapt { font-style: italic; color: var(--muted); font-size: .98rem; max-width: 42ch; margin-top: .9rem; }
.hero__adapt strong { color: var(--primary); font-style: normal; }
.hero__visual { justify-self: center; max-width: 380px; width: 100%; }
.hero__visual svg { filter: drop-shadow(0 16px 30px rgba(230,57,70,.18)); }

/* Camion : légère pulsation ; icônes : flottement vertical */
.ht-truck { animation: ht-pulse 6s ease-in-out infinite; transform-box: view-box; transform-origin: 180px 200px; }
.ht-float { animation: ht-bob 4s ease-in-out infinite; }
@keyframes ht-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes ht-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

/* ============================================================
   3. DEMO
   ============================================================ */
.demo__frame {
  max-width: 920px; margin: 0 auto; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: var(--white);
  border: 1px solid var(--border);
}
.demo__browser {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: #f0e7dd; border-bottom: 1px solid var(--border);
}
.demo__dot { width: 11px; height: 11px; border-radius: 50%; background: #d7c6b6; }
.demo__dot:nth-child(1) { background: #e6675f; }
.demo__dot:nth-child(2) { background: #f4b14e; }
.demo__dot:nth-child(3) { background: #6fae8f; }
.demo__url { margin-left: 10px; font-size: .85rem; color: var(--muted); }
.demo__iframe { width: 100%; height: 520px; border: 0; background: var(--white); }
.demo__link { text-align: center; margin-top: 1rem; font-weight: 600; }

/* ---------- Cards génériques ---------- */
.cards { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
.cards--2 { grid-template-columns: 1fr; }
.cards--3 { grid-template-columns: 1fr; }
.cards--4 { grid-template-columns: 1fr; }

.minicard {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem; text-align: center;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.minicard:hover { transform: translateY(-4px); }
.minicard__icon { font-size: 2.2rem; margin-bottom: .6rem; }
.minicard h3 { font-size: 1.2rem; }
.minicard p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ============================================================
   4. PROBLEMS
   ============================================================ */
.problemcard {
  background: var(--white); border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.problemcard__problem { font-weight: 600; margin-bottom: .6rem; }
.problemcard__solution { color: var(--accent); font-weight: 600; margin: 0; }

/* ============================================================
   4bis. MARGETRUCK (lead magnet + Gumroad)
   ============================================================ */
.margetruck__inner { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; margin-top: 2rem; }
.margetruck__name { font-size: 1.5rem; }
.margetruck__hook { font-size: 1.15rem; font-weight: 600; color: var(--primary); }
.margetruck__desc { color: var(--muted); }
.margetruck__quote {
  margin: 1.2rem 0; padding: 1rem 1.2rem; background: var(--white);
  border-left: 5px solid var(--secondary); border-radius: var(--radius-sm);
  font-size: 1.02rem; box-shadow: var(--shadow);
}
.margetruck__features { display: flex; flex-direction: column; gap: .6rem; }
.margetruck__features li { position: relative; padding-left: 1.7rem; }
.margetruck__features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.margetruck__paths { display: flex; flex-direction: column; gap: 1.2rem; }

.mtcard { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.mtcard--free { border: 2px solid var(--primary); }
.mtcard--paid { border: 1px solid var(--border); }
.mtcard h4 { font-family: var(--font-display); font-size: 1.25rem; margin: .4rem 0 1rem; }
.mtcard__badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  background: var(--bg-warm); color: var(--primary); padding: .3rem .75rem; border-radius: 999px;
}
.mtcard__badge--paid { background: var(--accent); color: var(--white); }
.mtform { display: flex; flex-direction: column; gap: .8rem; }
.mtcard__reassure { color: var(--muted); font-size: .85rem; margin: .8rem 0 0; }
.mtcard--paid p { color: var(--muted); }

/* ============================================================
   5. PACKS
   ============================================================ */
.packs__grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; align-items: start; }
.pack {
  position: relative; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow);
}
.pack--featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}
.pack__badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  background: var(--bg-warm); color: var(--primary);
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.pack__badge--pro { background: var(--primary); color: var(--white); }
.pack__name { font-size: 1.6rem; }
.pack__price { font-size: 2.1rem; font-weight: 800; font-family: var(--font-display); margin: .2rem 0 0; }
.pack__price-rec { font-size: 1rem; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.pack__subprice { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: 1.3rem; }
.pack__features { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.6rem; }
.pack__features li { position: relative; padding-left: 1.7rem; font-size: .96rem; }
.pack__features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.pack__feature-plus { font-weight: 700; }
.pack__feature-plus::before { color: var(--primary) !important; }

/* ============================================================
   6. OPTIONS
   ============================================================ */
.optioncard {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--secondary);
}
.optioncard h3 { font-size: 1.2rem; }
.optioncard p { color: var(--muted); margin: 0 0 .6rem; }
.optioncard__price { color: var(--text) !important; font-weight: 700; margin: 0 !important; }
.optioncard__note { color: var(--accent); font-weight: 600; font-size: .85rem; }

/* ============================================================
   8. FAQ
   ============================================================ */
.faq__list { display: flex; flex-direction: column; gap: .8rem; }
.faq__item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow);
}
.faq__item summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600;
  list-style: none; position: relative; padding-right: 3rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--primary); transition: transform .2s;
}
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding: 0 1.3rem 1.1rem; color: var(--muted); }
.faq__answer p { margin: 0; }

/* ============================================================
   9. CONTACT
   ============================================================ */
.contact__inner { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form__row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.form__field { display: flex; flex-direction: column; gap: .35rem; }
.form__field label { font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: .75rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(230,57,70,.15);
}
.form textarea { resize: vertical; }
.form__success { background: #e7f3ee; color: #2c6b52; padding: .9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.form__error { background: #fdecec; color: #b3261e; padding: .9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }

.contact__direct {
  background: var(--bg-warm); border-radius: var(--radius);
  padding: 1.8rem; border: 1px solid var(--border); align-self: start;
}
.contact__direct h3 { font-size: 1.3rem; }
.contact__list { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.2rem; }
.contact__list li { font-size: 1rem; }
.contact__list em { color: var(--muted); font-size: .82rem; }
.contact__reassure { font-family: var(--font-hand); font-size: 1.3rem; color: var(--accent); margin: 0; }

/* ============================================================
   10. FOOTER
   ============================================================ */
.footer { background: var(--text); color: #d9d2cb; padding: 2.5rem 0 1.5rem; }
.footer__inner { display: flex; flex-direction: column; gap: 1.4rem; justify-content: space-between; }
.footer__logo { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--white); margin: 0; }
.footer__logo span { color: var(--secondary); }
.footer__tag { color: #a89f97; margin: .2rem 0 0; font-size: .92rem; }
.footer__contact { color: #a89f97; margin: .6rem 0 0; font-size: .85rem; line-height: 1.7; }
.footer__contact a { color: #d9d2cb; }
.footer__contact a:hover { color: var(--secondary); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; }
.footer__links a { color: #d9d2cb; }
.footer__links a:hover { color: var(--secondary); }
.footer__bottom {
  display: flex; flex-direction: column; gap: .4rem; margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.12); color: #a89f97; font-size: .85rem;
}

/* ============================================================
   FAB WhatsApp (mobile)
   ============================================================ */
.fab-whatsapp {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.fab-whatsapp:hover { transform: scale(1.06); text-decoration: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
  .cards--2 { grid-template-columns: 1fr 1fr; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .footer__inner { flex-direction: row; align-items: center; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr .9fr; }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .packs__grid { grid-template-columns: 1fr 1fr; }
  .pack--featured { transform: scale(1.03); }
  .contact__inner { grid-template-columns: 1.4fr 1fr; }
  .margetruck__inner { grid-template-columns: 1.1fr .9fr; }
  .demo__iframe { height: 600px; }

  /* Nav desktop */
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger, .nav__mobile { display: none !important; }

  /* FAB visible surtout mobile, mais on le garde discret en desktop */
  .fab-whatsapp { right: 24px; bottom: 24px; }
}

@media (min-width: 1200px) {
  .section { padding: 80px 0; }
}

/* Préférence mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
