/* ================================================================
   VEGANAO — FEUILLE DE STYLE PRINCIPALE
   ----------------------------------------------------------------
   Organisation :
   1. Variables et règles globales
   2. En-tête
   3. Hero
   4. Sections de contenu
   5. Formulaire bêta
   6. Pied de page
   7. Tablette
   8. Mobile

   IMPORTANT — POLICE SOUR GUMMY
   Sour Gummy fait partie de l'identité visuelle de Veganao.
   Elle est chargée dans index.html depuis Google Fonts et utilisée
   ici sur les mots éditoriaux en <em>, les numéros de cartes et les
   légendes des captures d'écran.

   La police de secours (Trebuchet MS) n'est utilisée que si le
   chargement de Sour Gummy échoue. À terme, on pourra héberger la
   police directement sur veganao.com pour éviter l'appel externe.
   ================================================================ */

:root {
  --violet: #391253;
  --ink: #24102e;
  --background: #f1efef;
  --muted: #8a8790;
  --border: #e1dedf;
  --white: #fff;
  --lavender: #f4eef6;
  --content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* Header */
header {
  position: sticky; top: 0; z-index: 20;
  height: 88px; padding: 0 max(5vw, 28px);
  display: flex; align-items: center; gap: 34px;
  background: rgba(241,239,239,.95); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.brand img { display: block; width: 82px; }
nav { margin-left: auto; display: flex; gap: 30px; }
nav a { font-size: 14px; }
.pill, .cta { display: inline-block; background: var(--violet); color: #fff; border-radius: 999px; padding: 15px 23px; font-weight: 650; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: #fff; padding: 0; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; margin: auto; background: var(--violet); content: ""; transition: .2s ease; }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(4px); }

/* Shared typography */
.eyebrow { color: var(--violet); font-size: 12px; font-weight: 750; letter-spacing: .14em; }
.light { color: #d9c9df; }
h1, h2 { color: var(--violet); letter-spacing: -.05em; }
h1 em, h2 em { color: var(--violet); font-family: "Sour Gummy", "Trebuchet MS", sans-serif; font-style: normal; font-weight: 300; letter-spacing: 0; }

/* Hero */
.hero { max-width: 1260px; min-height: 760px; margin: auto; padding: 78px 34px 95px; display: grid; grid-template-columns: minmax(0,.92fr) minmax(520px,1.08fr); align-items: center; gap: 64px; }
.hero-copy { min-width: 0; position: relative; z-index: 5; }
.hero h1 { max-width: 620px; margin: 20px 0 28px; font-size: clamp(48px,4.7vw,76px); line-height: 1.02; font-weight: 650; }
.hero-copy > p { max-width: 620px; color: #5f5763; font-size: 19px; line-height: 1.65; }
.actions { margin-top: 34px; display: flex; align-items: center; gap: 24px; }
.link { font-weight: 650; }
.hero-product { position: relative; height: 610px; }
.shot-card { position: absolute; overflow: hidden; background: #fff; border: 8px solid var(--ink); border-radius: 38px; box-shadow: 0 30px 70px rgba(57,18,83,.13); }
.shot-card img { display: block; width: 100%; }
.shot-card.front { z-index: 2; top: 0; left: 50%; width: 305px; height: 610px; transform: translateX(-35%); }
.shot-card.back { top: 75px; left: 5%; width: 245px; height: 490px; transform: rotate(-7deg); opacity: .96; }
.floating-note { position: absolute; z-index: 4; display: flex; align-items: center; gap: 9px; padding: 11px 16px 11px 12px; background: #fff; color: var(--ink); border: 2px solid var(--violet); border-radius: 999px; box-shadow: 0 16px 38px rgba(57,18,83,.28); font-weight: 700; }
.floating-note svg, .caption-icon svg { width: 23px; height: 23px; flex: none; fill: none; stroke: var(--violet); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.n1 { top: 18%; right: -1%; } .n2 { right: 3%; bottom: 25%; } .n3 { left: -2%; bottom: 7%; }

/* Statement */
.statement { padding: 100px max(8vw,35px); background: var(--ink); color: #fff; text-align: center; }
.statement p { color: #cfc7d1; font-size: 17px; }
.statement h2 { max-width: 1050px; margin: 20px auto; color: #fff; font-size: clamp(42px,5vw,70px); line-height: 1.06; }
.statement h2 em { color: #fff; }

/* Possibilities */
.possibles { padding: 120px max(5vw,30px); background: #fff; }
.section-intro, .possibility-grid { max-width: var(--content); margin-inline: auto; }
.section-intro h2 { margin: 20px 0 28px; font-size: 58px; line-height: 1.02; }
.section-intro > p { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.possibility-grid { margin-top: 55px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; }
.possibility-card { min-width: 0; min-height: 390px; padding: 28px 26px; display: flex; flex-direction: column; background: var(--background); border-radius: 28px; transition: background .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease; }
.card-top b { display: block; margin-bottom: 28px; color: var(--violet); font-family: "Sour Gummy", "Trebuchet MS", sans-serif; font-size: 30px; font-weight: 300; }
.card-top h3 { margin: 0 0 22px; color: var(--ink); font-size: 23px; line-height: 1.15; }
.card-detail p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.possibility-card:hover { background: var(--violet); color: #fff; transform: translateY(-5px); box-shadow: 0 18px 40px rgba(57,18,83,.18); }
.possibility-card:hover b, .possibility-card:hover h3, .possibility-card:hover p { color: #fff; }

/* Why */
.principle { max-width: var(--content); margin: auto; padding: 130px 30px; display: grid; grid-template-columns: 1fr .72fr; gap: 90px; align-items: center; }
.principle h2 { margin: 20px 0 28px; font-size: 60px; line-height: 1; }
.principle-copy > p { color: #5f5763; font-size: 18px; line-height: 1.75; }
.values { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.values span { padding: 10px 15px; background: #fff; border: 1px solid var(--border); border-radius: 999px; }
.principle-shot { position: relative; }
.principle-shot > img { display: block; width: 100%; max-width: 350px; margin: auto; border: 7px solid var(--ink); border-radius: 34px; }
.caption { position: absolute; right: -25px; bottom: 65px; display: flex; align-items: flex-start; gap: 11px; padding: 16px 20px; background: #fff; border: 2px solid var(--violet); border-radius: 20px; box-shadow: 0 16px 40px rgba(57,18,83,.2); font-weight: 650; line-height: 1.45; }
.caption-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: var(--lavender); border-radius: 50%; }
.caption-icon svg { width: 18px; height: 18px; }

/* Community */
.community { min-height: 610px; margin: 0 3vw 120px; padding: 65px 8%; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 65px; overflow: hidden; background: var(--violet); color: #fff; border-radius: 42px; }
.community h2 { margin: 20px 0 28px; color: #fff; font-size: 62px; line-height: 1; }
.community h2 em { color: #fff; }
.community p { color: #ded4e2; font-size: 18px; line-height: 1.7; }
.community-products { position: relative; height: 540px; }
.community-products img { position: absolute; border: 7px solid var(--ink); border-radius: 32px; box-shadow: 0 25px 60px rgba(0,0,0,.2); }
.agenda-shot { top: 15px; left: 5%; width: 270px; transform: rotate(-5deg); }
.messages-shot { right: 4%; bottom: 0; width: 255px; transform: rotate(5deg); }

/* App gallery */
.appshow { padding: 80px 30px 150px; overflow: hidden; }
.appshow-head { max-width: 900px; margin: 0 auto 65px; text-align: center; }
.appshow h2 { margin: 20px 0 28px; font-size: 58px; line-height: 1; }
.appshow-head p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.screen-gallery { max-width: var(--content); margin: auto; padding: 28px 0; display: flex; align-items: flex-end; justify-content: center; gap: 20px; }
.screen-gallery figure { width: 215px; margin: 0; flex: 0 0 215px; text-align: center; transform-origin: center bottom; transition: transform .25s ease; }
.screen-gallery figure:hover { z-index: 2; transform: scale(1.1) translateY(-8px); }
.screen-gallery img { display: block; width: 100%; height: 430px; object-fit: cover; object-position: top; border: 6px solid var(--ink); border-radius: 28px; box-shadow: 0 20px 45px rgba(57,18,83,.09); }
.screen-gallery figcaption { margin-top: 12px; color: var(--violet); font-family: "Sour Gummy", "Trebuchet MS", sans-serif; font-size: 20px; }

/* Beta */
.beta { margin: 0 3vw 70px; padding: 80px 30px; background: #fff; border-radius: 42px; text-align: center; }
.beta > img { width: 130px; }
.beta > span { display: block; margin-top: 18px; color: var(--violet); font-weight: 650; }
.beta h2 { margin: 20px 0 28px; font-size: 58px; line-height: 1; }
.beta > p { max-width: 620px; margin: auto; color: var(--muted); line-height: 1.6; }
.beta form { max-width: 980px; margin: 35px auto 0; }

/* Trois colonnes strictement identiques : email / ville / bouton. */
.beta-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: end; }
.beta input { width: 100%; min-width: 0; height: 58px; padding: 0 20px; border: 0; outline: 0; background: var(--background); border-radius: 999px; font-size: 16px; }
.beta button { width: 100%; height: 58px; padding: 0 20px; border: 0; background: var(--violet); color: #fff; border-radius: 999px; font-size: 16px; font-weight: 700; cursor: pointer; }
.beta button:hover { filter: brightness(1.08); }
.beta button:focus-visible, .beta input:focus-visible { outline: 3px solid rgba(57,18,83,.22); outline-offset: 3px; }
.beta .thanks { margin-top: 15px; color: var(--violet); }

/* ----------------------------------------------------------------
   FORMULAIRE BÊTA — champs, messages et information RGPD
   ---------------------------------------------------------------- */
.field { min-width: 0; text-align: left; }
.field label { display: block; margin: 0 0 7px 15px; color: var(--ink); font-size: 13px; font-weight: 650; }
/* Faux libellé invisible : réserve la même hauteur au-dessus du bouton. */
.field-spacer { display: block; margin: 0 0 7px 15px; font-size: 13px; visibility: hidden; }

/* Consentement newsletter séparé du formulaire bêta principal. */
/*
   IMPORTANT : la règle générale `.beta input` donne aux champs texte une
   largeur de 100 % et une hauteur de 58 px. La case newsletter est elle aussi
   un <input>, donc on neutralise explicitement ces dimensions ici.

   La grille à deux colonnes est plus robuste que flex sur petits écrans :
   18 px pour la case, tout le reste pour le texte.
*/
.newsletter-consent {
  width: 100%;
  max-width: 980px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 11px;
  align-items: start;
  text-align: left;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
  box-sizing: border-box;
}
.beta .newsletter-consent input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: initial;
  border-radius: 0;
  background: initial;
  accent-color: var(--violet);
  cursor: pointer;
}
.newsletter-consent span {
  display: block;
  min-width: 0;
  width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}
.privacy-note { max-width: 980px !important; margin: 18px auto 0 !important; color: var(--muted); font-size: 13px; line-height: 1.55; }
.privacy-note a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.form-status { max-width: 720px !important; margin: 16px auto 0 !important; padding: 12px 16px; border-radius: 14px; font-size: 14px; }
.form-status.success { background: #edf7ef; color: #235c2e; }
.form-status.error { background: #fff0f0; color: #7d2525; }
.beta button[disabled] { cursor: wait; opacity: .65; }

/* Honeypot anti-spam : caché visuellement, mais présent dans le DOM. */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* ----------------------------------------------------------------
   PIED DE PAGE
   ---------------------------------------------------------------- */
footer { padding: 55px max(5vw,30px); display: flex; align-items: center; gap: 30px; background: var(--ink); color: #cfc7d1; }
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--white); text-decoration: underline; }

/* ----------------------------------------------------------------
   ANCRES ET EN-TÊTE STICKY
   Quand on clique dans le menu, cette marge évite que le titre de la
   section soit caché sous l'en-tête fixe. La communauté garde un peu
   plus d'air car son grand bloc violet est visuellement plus massif.
   ---------------------------------------------------------------- */
.anchor-section { scroll-margin-top: 110px; }
#communaute { scroll-margin-top: 132px; }

/* Tablet: 801–1180px */
@media (min-width: 801px) and (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-product { max-width: 650px; width: 100%; margin: auto; }

  .possibility-grid { display: flex; flex-direction: column; gap: 14px; }
  .possibility-card { min-height: 0; padding: 22px 28px; display: grid; grid-template-columns: 64px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 22px; row-gap: 6px; }
  .card-top { display: contents; }
  .card-top b { grid-column: 1; grid-row: 1 / span 2; margin: 0; font-size: 28px; }
  .card-top h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 21px; }
  .card-detail { grid-column: 2; grid-row: 2; min-width: 0; }
  .card-detail p { font-size: 15px; line-height: 1.45; }

  .principle { grid-template-columns: 1fr .65fr; gap: 45px; }
  .community { grid-template-columns: .9fr 1.1fr; padding-inline: 5%; }

  .appshow { padding-inline: 0; }
  .appshow-head { padding-inline: 30px; }
  .screen-gallery { max-width: none; overflow-x: auto; justify-content: flex-start; gap: 22px; padding: 28px 6vw 42px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .screen-gallery::-webkit-scrollbar { display: none; }
  .screen-gallery figure { flex: 0 0 clamp(250px,31vw,300px); width: clamp(250px,31vw,300px); scroll-snap-align: center; }
  .screen-gallery figure:hover { transform: none; }
  .screen-gallery img { height: auto; aspect-ratio: 1 / 2; }
}

/* Mobile */
@media (max-width: 800px) {
  header { height: 78px; padding: 0 18px; gap: 10px; }
  .brand img { width: 64px; }
  .menu-toggle { display: block; margin-left: auto; order: 2; }
  header > .pill { order: 3; padding: 12px 15px; white-space: nowrap; font-size: 12px; }
  header nav { position: absolute; top: 77px; left: 0; right: 0; display: none; margin: 0; padding: 12px 22px 20px; flex-direction: column; gap: 0; background: rgba(241,239,239,.99); border-bottom: 1px solid var(--border); box-shadow: 0 14px 30px rgba(36,16,46,.1); }
  header nav.open { display: flex; }
  header nav a { padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: 16px; }
  header nav a:last-child { border-bottom: 0; }

  .hero { min-height: auto; padding: 55px 22px 70px; grid-template-columns: 1fr; gap: 45px; }
  .hero h1 { font-size: clamp(46px,14vw,60px); }
  .hero-copy > p { font-size: 17px; }
  .actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-product { height: 500px; }
  .shot-card.front { width: 245px; height: 490px; }
  .shot-card.back { top: 65px; left: 0; width: 185px; height: 370px; }
  .floating-note { padding: 9px 12px; font-size: 11px; }
  .n1 { right: 0; } .n2 { right: 0; bottom: 22%; } .n3 { left: 0; }

  .statement { padding: 75px 22px; }
  .possibles { padding: 85px 22px; }
  .section-intro h2, .principle h2, .community h2, .appshow h2, .beta h2 { font-size: 43px; }

  .possibility-grid { display: flex; flex-direction: column; gap: 12px; }
  .possibility-card { min-height: 0; padding: 24px; }
  .card-top b { margin-bottom: 12px; }
  .card-top h3 { margin-bottom: 14px; }

  .principle { padding: 90px 22px; grid-template-columns: 1fr; gap: 55px; }
  .caption { right: -4px; bottom: 45px; max-width: 240px; font-size: 13px; }

  .community { min-height: 0; margin: 0 14px 90px; padding: 55px 24px; grid-template-columns: 1fr; gap: 35px; border-radius: 32px; }
  .community-products { height: 440px; }
  .agenda-shot { width: 210px; left: 0; }
  .messages-shot { width: 195px; right: 0; }

  .appshow { padding: 70px 0 110px; }
  .appshow-head { padding-inline: 22px; }
  .screen-gallery { max-width: none; overflow-x: auto; justify-content: flex-start; gap: 18px; padding: 28px 12vw 38px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .screen-gallery::-webkit-scrollbar { display: none; }
  .screen-gallery figure { flex: 0 0 min(72vw,280px); width: min(72vw,280px); scroll-snap-align: center; }
  .screen-gallery figure:hover { transform: none; }
  .screen-gallery img { height: auto; aspect-ratio: 1 / 2; }

  .beta { margin: 0 14px 55px; padding: 60px 20px; border-radius: 32px; }
  .beta > img { width: 120px; }
  .beta form { max-width: 520px; }
  .beta-fields { grid-template-columns: 1fr; gap: 12px; }
  .beta input, .beta button { width: 100%; margin: 0; }
  .field-spacer { display: none; }
  .newsletter-consent {
    width: 100%;
    max-width: 520px;
    grid-template-columns: 18px minmax(0, 1fr);
  }

  footer { padding: 50px 28px; flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }
}

@media (max-width: 800px) {
  .anchor-section { scroll-margin-top: 96px; }
  #communaute { scroll-margin-top: 112px; }
}

@media (max-width: 430px) {
  header > .pill { padding: 11px 13px; font-size: 11px; }
  .hero-product { height: 450px; }
  .shot-card.front { width: 220px; height: 440px; }
  .shot-card.back { width: 165px; height: 330px; }
  .floating-note { font-size: 10px; }
}

