/* Site vitrine FlowMande (flowmande.com) — même univers caramel que l'application */
:root {
  --bg: #f7efe6;
  --bg-soft: #f2e5d7;
  --card: #fffaf4;
  --ink: #1f1612;
  --muted: #6e5d52;
  --line: rgba(95, 63, 47, 0.13);
  --accent: #c88a63;
  --accent-deep: #77513d;
  --caramel: #4e3226;
  --success: #34715f;
  --shadow: 0 22px 50px rgba(78, 50, 38, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 32px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease, filter 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--caramel));
  box-shadow: 0 14px 28px rgba(78, 50, 38, 0.25);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn-ghost {
  border: 1px solid rgba(95, 63, 47, 0.25);
  background: rgba(255, 250, 244, 0.7);
  color: var(--caramel);
}
.btn-ghost:hover { transform: translateY(-2px); background: #fffaf4; }
.btn-small { padding: 10px 18px; font-size: 0.92rem; }
.btn-large { padding: 17px 32px; font-size: 1.08rem; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  background: rgba(247, 239, 230, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.brand img { border-radius: 10px; }
.header-nav { display: flex; gap: 24px; margin-left: 12px; }
.header-nav a { color: var(--muted); font-weight: 600; text-decoration: none; }
.header-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.link-login { color: var(--accent-deep); font-weight: 700; text-decoration: none; }

/* ---------- Accroche ---------- */
.hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(800px 500px at 85% 10%, rgba(200, 138, 99, 0.22), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(234, 217, 198, 0.8), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.07; letter-spacing: -0.02em; }
.accent { color: var(--accent-deep); }
.lead { margin: 22px 0 0; font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.reassure { margin: 18px 0 0; color: var(--success); font-size: 0.92rem; font-weight: 600; }

/* Aperçu de l'application */
.hero-visual { position: relative; }
.mock {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #faf4ec;
  box-shadow: 0 40px 80px rgba(78, 50, 38, 0.2);
  transform: rotate(-1.2deg);
}
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: #efe1d1; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(95, 63, 47, 0.25); }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; }
.mock-side { display: grid; align-content: start; gap: 6px; padding: 16px 12px; background: linear-gradient(180deg, #f0e0cf, #e9d4bf); }
.mock-side img { margin-bottom: 10px; border-radius: 8px; }
.mock-side i { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 10px; color: var(--accent-deep); font-size: 0.78rem; font-style: normal; font-weight: 600; }
.mock-side i.active { background: #fffaf4; box-shadow: inset 3px 0 0 var(--accent); color: var(--ink); }
.mock-side b { padding: 0 6px; border-radius: 999px; background: rgba(184, 102, 99, 0.18); color: #a14b48; font-size: 0.7rem; }
.mock-main { padding: 18px; }
.mock-title { margin: 0 0 12px; font-weight: 800; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.mock-stats div { padding: 10px; border-radius: 12px; background: #fffaf4; box-shadow: 0 6px 14px rgba(78, 50, 38, 0.06); border-top: 3px solid var(--accent); }
.mock-stats div:nth-child(2) { border-top-color: var(--success); }
.mock-stats div:nth-child(3) { border-top-color: #b97a43; }
.mock-stats small { display: block; color: var(--muted); font-size: 0.68rem; }
.mock-stats strong { font-size: 1.05rem; }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 8px; border-radius: 12px; background: #fffaf4; }
.mock-row strong { display: block; font-size: 0.85rem; }
.mock-row small { color: var(--muted); font-size: 0.72rem; }
.tag { padding: 4px 9px; border-radius: 999px; font-size: 0.68rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.tag-partial { background: rgba(200, 138, 99, 0.18); color: var(--accent-deep); }
.tag-progress { background: rgba(185, 122, 67, 0.16); color: #8e5a2c; }
.tag-paid { background: rgba(52, 113, 95, 0.14); color: var(--success); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf4;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 0.85rem; }
.float-card small { color: var(--muted); font-size: 0.74rem; }
.float-dm { left: -28px; bottom: -26px; max-width: 270px; }
.float-req { right: -18px; top: -24px; animation-delay: -3s; }
.float-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); flex: none; }
.float-card .globe { font-size: 1.3rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section h2, .final-cta h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.015em; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-lead { margin: 16px auto 0; color: var(--muted); font-size: 1.08rem; }
.problem, .who { text-align: center; background: var(--bg-soft); }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; text-align: left; }
.before-after > div { padding: 22px 24px; border-radius: 20px; }
.before { background: rgba(255, 250, 244, 0.6); border: 1px dashed rgba(95, 63, 47, 0.25); }
.after { background: var(--card); box-shadow: var(--shadow); border: 1px solid rgba(52, 113, 95, 0.25); }
.before-after .label { margin: 0 0 10px; font-weight: 800; }
.before .label { color: var(--muted); }
.after .label { color: var(--success); }
.before-after ul { margin: 0; padding-left: 1.2rem; }
.before-after li { margin: 6px 0; }
.before li { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 24px rgba(78, 50, 38, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature .icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #f6e6d4, #ecd0b4); font-size: 1.35rem; }
.feature h3 { margin: 16px 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.steps-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; padding: 28px 24px; border-radius: 20px; background: var(--card); box-shadow: 0 10px 24px rgba(78, 50, 38, 0.06); }
.step-num { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--accent-deep), var(--caramel)); color: #fff; font-weight: 800; }
.steps h3 { margin: 16px 0 6px; }
.steps p { margin: 0; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.chips span { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 600; }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 20px; }
.price-card { position: relative; display: grid; gap: 6px; padding: 30px 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 12px 28px rgba(78, 50, 38, 0.07); text-align: center; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); transform: translateY(-6px); }
.badge { position: absolute; top: -14px; left: 50%; margin: 0; padding: 5px 14px; border-radius: 999px; background: var(--success); color: #fff; font-size: 0.8rem; font-weight: 700; transform: translateX(-50%); white-space: nowrap; }
.price-name { margin: 0; color: var(--accent-deep); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; }
.price { margin: 6px 0 0; }
.price strong { font-size: 2.6rem; letter-spacing: -0.02em; }
.price span { color: var(--muted); }
.price-note { margin: 0 0 16px; color: var(--muted); }
.included { display: grid; gap: 6px; max-width: 520px; margin: 34px auto 0; padding: 0; list-style: none; }
.included li { font-weight: 600; }
.fineprint { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: 0.88rem; text-align: center; }

/* ---------- Questions ---------- */
.faq-section { background: var(--bg-soft); }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.faq summary { position: relative; padding: 18px 52px 18px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; color: var(--accent-deep); font-size: 1.4rem; transform: translateY(-50%); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.faq a { color: var(--accent-deep); }

/* ---------- Dernier appel ---------- */
.final-cta {
  padding: 90px 0;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(255, 233, 205, 0.4), transparent 70%),
    linear-gradient(135deg, #b88560, #8f5f42);
  color: #fffaf3;
  text-align: center;
}
.final-cta p { margin: 14px 0 28px; font-size: 1.1rem; opacity: 0.92; }
.final-cta .btn-primary { background: #fffaf4; color: var(--caramel); box-shadow: 0 16px 32px rgba(40, 24, 16, 0.25); }

/* ---------- Pied de page ---------- */
.site-footer { padding: 40px 0; background: #efe2d4; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 800; }
.footer-brand img { border-radius: 8px; }
.footer-brand small { width: 100%; color: var(--muted); font-weight: 400; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.85rem; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.features .reveal:nth-child(4n + 2), .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.features .reveal:nth-child(4n + 3), .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.features .reveal:nth-child(4n + 4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .header-nav { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 36px 0 70px; }
  .link-login { display: none; }
  .header-actions .btn-small { padding: 9px 14px; font-size: 0.85rem; }
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-stats strong { font-size: 0.95rem; }
  .hero h1 { font-size: 2.1rem; }
  .mock-side { display: none; }
  .float-dm { left: 8px; bottom: -34px; max-width: 240px; }
  .float-req { right: 8px; top: -28px; }
  .section { padding: 64px 0; }
  .before-after, .features, .steps, .pricing { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  .btn, .feature { transition: none; }
}

/* Pourquoi FlowMande */
.why-section { background: var(--bg-soft); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}
.why h3 { margin: 0 0 6px; font-size: 1.05rem; }
.why h3::before { content: "✓"; margin-right: 8px; color: var(--success); font-weight: 800; }
.why p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.compare { margin-top: 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.93rem; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.compare tbody th { text-align: left; font-weight: 650; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td { color: var(--muted); }
.compare .is-us { background: rgba(200, 138, 99, 0.1); color: var(--ink); font-weight: 700; }
.compare thead .is-us { color: var(--accent-deep); }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Logo complet (symbole + nom) */
.brand .brand-logo { height: 40px; width: auto; border-radius: 0; }
.footer-brand .brand-logo { height: 30px; width: auto; border-radius: 0; }

/* Choix de la langue (FR / NL / EN) */
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 250, 244, 0.7); }
.lang-switch a { padding: 5px 9px; border-radius: 999px; color: var(--muted); font-size: 0.78rem; font-weight: 700; line-height: 1.2; text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--caramel); color: #fff; }
.app-lang-note { margin: 10px 0 0; color: var(--muted); font-size: 0.88rem; }
.faq details ul { margin: 0; padding: 0 20px 14px 40px; color: var(--muted); }
.faq details li + li { margin-top: 6px; }

@media (max-width: 640px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .lang-switch a { padding: 6px 7px; font-size: 0.74rem; }
}

/* Petits téléphones : le symbole seul laisse la place aux langues et au bouton. */
@media (max-width: 430px) {
  .brand .brand-logo { height: 32px; width: 28px; object-fit: cover; object-position: left center; }
  .header-actions .btn-small { padding: 9px 12px; font-size: 0.8rem; white-space: nowrap; }
}

/* Mots longs (néerlandais) : ne débordent pas sur les petits téléphones. */
h1, h2, h3 { overflow-wrap: break-word; }
.header-actions .btn-small, .link-login { white-space: nowrap; }
.mock-side i { align-items: center; }
.hero-inner > *, .price-card { min-width: 0; }

/* Écrans moyens : le menu laisse la place aux langues et aux boutons. */
@media (max-width: 1120px) {
  .header-nav { display: none; }
}

/* Encadré du calculateur sur la page d'accueil */
.calc-teaser { padding: 64px 0 0; }
.calc-teaser-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 30px 34px; border: 1px solid rgba(200, 138, 99, 0.4); border-radius: 24px; background: linear-gradient(135deg, #fffaf4, #f6e6d4); }
.calc-teaser-inner > div { flex: 1 1 380px; }
.calc-teaser h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.calc-teaser p { margin: 8px 0 0; color: var(--muted); }
.calc-teaser .eyebrow { margin: 0 0 8px; color: var(--accent-deep); }

@media (max-width: 640px) {
  .calc-teaser { padding-top: 48px; }
  .calc-teaser-inner { padding: 24px 20px; }
}

.final-cta .final-note { margin: 16px 0 0; font-size: 0.9rem; opacity: 0.85; }

/* ---------- Téléphone : cartes compactes (fonctionnalités, pourquoi) et tableau lisible ---------- */
@media (max-width: 640px) {
  .features { gap: 10px; }
  .feature {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 16px;
  }
  .feature .icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; font-size: 1.15rem; }
  .feature h3 { margin: 2px 0 3px; font-size: 1rem; }
  .feature p { font-size: 0.88rem; line-height: 1.45; }

  .why-grid { gap: 10px; }
  .why { padding: 14px 16px; border-radius: 16px; }
  .why h3 { font-size: 1rem; margin-bottom: 3px; }
  .why p { font-size: 0.88rem; line-height: 1.45; }

  /* Tableau comparatif : la colonne des critères reste visible quand on fait défiler */
  .compare table { min-width: 560px; font-size: 0.86rem; }
  .compare th, .compare td { padding: 11px 10px; }
  .compare tbody th, .compare thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 128px;
    max-width: 128px;
    background: var(--card);
    box-shadow: 1px 0 0 var(--line);
  }
}

/* ---------- L'app en vrai : captures de téléphone ---------- */
.preview-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 32px; }
.phone-shot { margin: 0; text-align: center; }
.phone-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 7px solid #2b2522;
  border-radius: 34px;
  background: #fbf3e9;
  box-shadow: 0 24px 50px rgba(63, 40, 30, 0.22);
}
.phone-shot figcaption { margin-top: 14px; font-weight: 650; color: var(--ink); }
.preview-cta { margin: 36px 0 0; text-align: center; }

@media (max-width: 760px) {
  /* Téléphone : les captures défilent sur le côté */
  .preview-phones {
    display: flex;
    gap: 16px;
    margin: 0 -16px;
    padding: 4px 16px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .preview-phones::-webkit-scrollbar { display: none; }
  .phone-shot { flex: 0 0 68%; scroll-snap-align: center; }
  .phone-shot img { border-width: 5px; border-radius: 28px; }
}

/* Étiquettes des métiers : liens vers les pages par métier (vitrine et pages métier). */
.chips a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.chips a:hover, .chips a:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.chips a[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: #fffaf4; }

/* Pages par métier */
.trade-price { text-align: center; }
.trade-price .reassure { margin: 18px 0 24px; }
.trade-more { margin-top: 22px; text-align: center; }
.trade-more a { color: var(--accent-deep); font-weight: 700; }
