/* ===========================================================
   Popotégo — landing statique (liste d'attente)
   Palette et typo reprises de components/landing/ du repo Next.js
   =========================================================== */

/* -----------------------------------------------------------
   Nunito — police variable hébergée localement.
   Aucun appel à Google Fonts : l'IP des visiteurs n'est
   transmise à aucun tiers. Licence SIL Open Font License 1.1.
   Un seul fichier couvre tous les poids (400 à 900).
   ----------------------------------------------------------- */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #14342a;
  --ink-soft: #3d5a4f;
  --muted: #5b7a6e;
  --muted-2: #4b6a5e;
  --green: #2e9e6b;
  --green-dark: #1f7d52;
  --green-tint: #eef7f1;
  --sand: #f4f7f2;
  --line: rgba(20, 52, 42, 0.1);
  --white: #fff;
  --radius: 22px;
  --pad-y: clamp(56px, 7vw, 88px);
  --pad-x: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

section {
  padding: var(--pad-y) var(--pad-x);
}

.wrap {
  margin: 0 auto;
  max-width: 1240px;
}

/* ---------- Typo ---------- */

h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(34px, 4.4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.06;
}

h2 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.02em;
}

.lede {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.section-head {
  margin: 0 auto;
  max-width: 620px;
  text-align: center;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 22px -14px rgba(46, 158, 107, 0.9);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  background: var(--sand);
}

.btn-block {
  width: 100%;
}

/* ---------- Navbar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad-x);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand svg {
  width: 30px;
  height: 30px;
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--green-dark);
}

/* En mobile, la navbar se réduit au logo : le CTA du hero prend le relais,
   il est visible immédiatement sous la barre. */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--pad-x);
}

.hero-col {
  flex: 1;
  min-width: min(100%, 320px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: 12.5px;
  font-weight: 800;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.hero p {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--muted-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-visual {
  height: clamp(280px, 32vw, 420px);
  border-radius: 26px;
  overflow: hidden;
  /* Visible pendant le chargement, et si l'image externe ne répond plus */
  background: linear-gradient(140deg, #1f7d52 0%, #2e9e6b 55%, #7fd0a6 100%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Sections ---------- */

.alt {
  background: var(--sand);
}

.grid {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}

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

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.step {
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 8px 22px -16px rgba(20, 52, 42, 0.25);
}

.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: 17px;
  font-weight: 900;
}

.step h3 {
  margin: 16px 0 0;
  font-size: 17px;
  font-weight: 900;
}

.step p {
  margin: 8px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Modes de vente ---------- */

.mode {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
}

.mode-highlight {
  border-color: var(--green);
  background: #f4faf6;
}

.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.tag-solid {
  background: var(--green);
  color: var(--white);
}

.mode h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.mode p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--muted);
}

.checks {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.mode-highlight .checks {
  color: var(--green-dark);
}

/* ---------- Tarifs ---------- */

.price-card {
  margin: 44px auto 0;
  max-width: 400px;
}

.price-badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.price-box {
  padding: 32px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--white);
  text-align: center;
}

.price {
  margin-top: 10px;
  font-size: 38px;
  font-weight: 900;
}

.price span {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

.price-note {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.price-note s {
  opacity: 0.6;
}

.price-box .checks {
  margin-top: 20px;
  text-align: left;
}

.price-legal {
  margin: 18px auto 0;
  max-width: 400px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Formulaire ---------- */

.contact {
  background: var(--ink);
  color: var(--white);
}

.contact h2,
.contact .section-head h2 {
  color: var(--white);
}

.contact .lede {
  color: #cfe3d8;
}

.form {
  margin: 36px auto 0;
  max-width: 620px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 26px;
  background: var(--white);
  color: var(--ink);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 800;
}

.req {
  color: var(--green-dark);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 158, 107, 0.15);
}

.row {
  display: grid;
  gap: 0 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 22px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
}

.consent input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--green);
}

.consent a {
  color: var(--green-dark);
}

/* Honeypot anti-spam — hors écran, invisible aux humains */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 22px;
  font-size: 13.5px;
  font-weight: 700;
}

.alert-error {
  background: #fdecec;
  color: #a02323;
  border: 1.5px solid #f3c9c9;
}

/* ---------- Page de confirmation / légale ---------- */

.center-page {
  display: grid;
  place-items: center;
  min-height: 76vh;
  text-align: center;
}

.thanks-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: 32px;
  font-weight: 900;
}

.center-page p {
  margin: 14px auto 28px;
  max-width: 460px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--muted);
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink-soft);
}

.legal h2 {
  margin: 36px 0 10px;
  font-size: 20px;
}

.legal .todo {
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1.5px solid #f0d9a0;
  color: #7a5a12;
  font-size: 13.5px;
}

/* ---------- Footer ---------- */

.footer {
  padding: 44px var(--pad-x);
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
}

.footer nav {
  display: flex;
  gap: 22px;
}

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer a:hover {
  color: var(--green-dark);
}

.footer-made {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}
