/* =========================================================
   Promenade — Landing page
   Design system : "Soft Structuralism" chaleureux
   Palette dérivée de l'app (vert forêt + crème + ambre)
   ========================================================= */

:root {
  /* Couleurs de marque */
  --green-900: #21340e;
  --green-800: #2f4a1e;   /* header de l'app */
  --green-700: #3a5a24;
  --green-600: #4c7526;
  --green-500: #6aa832;   /* vert vif des boutons */
  --green-300: #b7d89a;
  --green-100: #e6f0da;

  --cream:     #faf7ee;
  --cream-2:   #f2ecdd;
  --card:      #ffffff;

  --amber:     #e8873b;
  --amber-soft:#f6d9b8;
  --sky:       #cfe3f0;

  --ink:       #1b2a0e;
  --muted:     #5f6a4f;
  --hairline:  rgba(33, 52, 14, 0.10);

  /* Rayons */
  --r-lg: 2rem;
  --r-md: 1.25rem;
  --r-sm: 0.75rem;

  /* Ombres diffuses (jamais dures) */
  --shadow-soft: 0 24px 60px -24px rgba(33, 52, 14, 0.28);
  --shadow-card: 0 20px 50px -28px rgba(33, 52, 14, 0.35);
  --shadow-float:0 40px 90px -40px rgba(33, 52, 14, 0.45);

  /* Courbe de mouvement signature */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  --maxw: 1180px;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
}

/* ---------- Reset léger ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Grain fixe très subtil pour un rendu "matière" */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Utilitaires ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  border: 1px solid var(--hairline);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(106, 168, 50, 0.18);
}

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); color: var(--ink); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); margin-top: 1.1rem; }

/* =========================================================
   Boutons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.4s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--green-800); color: #fff; box-shadow: 0 16px 30px -16px rgba(47, 74, 30, 0.8); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 22px 40px -18px rgba(47, 74, 30, 0.85); }
.btn-ghost { background: rgba(255,255,255,0.6); color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }

.btn .pill-ico {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.15);
  transition: transform 0.5s var(--ease);
}
.btn-ghost .pill-ico { background: rgba(33,52,14,0.06); }
.btn:hover .pill-ico { transform: translate(3px, -1px) scale(1.06); }

/* ---------- Badges de stores ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.4rem 0.7rem 1.15rem;
  border-radius: 1rem;
  background: var(--green-900);
  color: #fff;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), background 0.4s var(--ease);
  box-shadow: var(--shadow-card);
  will-change: transform;
}
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); background: #16240a; }
.store-badge:active { transform: scale(0.98); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge .txt small { font-size: 0.62rem; letter-spacing: 0.06em; opacity: 0.8; text-transform: uppercase; }
.store-badge .txt strong { font-size: 1.02rem; font-weight: 700; font-family: var(--font-display); }

/* =========================================================
   Navigation — pilule flottante en verre
   ========================================================= */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 70; display: flex; justify-content: center; padding-top: 1.1rem; }
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(var(--maxw), calc(100% - 2rem));
  padding: 0.55rem 0.7rem 0.55rem 1.15rem;
  border-radius: 999px;
  background: rgba(250, 247, 238, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 10px 30px -18px rgba(33,52,14,0.4), inset 0 1px 1px rgba(255,255,255,0.6);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-card), inset 0 1px 1px rgba(255,255,255,0.7); }
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 14px -6px rgba(0,0,0,0.5); }
.nav-links { display: flex; gap: 1.7rem; margin-left: auto; font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.3s var(--ease); }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-4px; height:2px; width:0; background: var(--green-500); transition: width 0.4s var(--ease); border-radius: 2px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav .btn { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.nav-cta { margin-left: 0.2rem; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(33,52,14,0.06); border: none; cursor: pointer; margin-left: auto; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.5s var(--ease), opacity 0.3s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { bottom: 17px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Overlay mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(250, 247, 238, 0.9);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.4rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; opacity: 0; transform: translateY(30px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
body.menu-open .mobile-menu a { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.16s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.22s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.28s; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding-top: clamp(8rem, 14vw, 11rem); padding-bottom: clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero-mesh { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-mesh .orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.hero-mesh .o1 { width: 460px; height: 460px; background: var(--green-300); top: -120px; left: -80px; }
.hero-mesh .o2 { width: 380px; height: 380px; background: var(--amber-soft); top: 40px; right: -60px; opacity: 0.5; }
.hero-mesh .o3 { width: 420px; height: 420px; background: var(--sky); bottom: -160px; left: 30%; opacity: 0.4; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "copy    devices"
    "actions devices";
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: 0;
  align-items: center;
}
.hero-copy    { grid-area: copy;    align-self: end; }
.hero-actions { grid-area: actions; align-self: start; }
.hero-grid .hero-devices { grid-area: devices; align-self: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero h1 .hl { color: var(--green-600); position: relative; white-space: nowrap; }
.hero .lead { max-width: 30rem; }
.hero-actions { margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.86rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.hero-note svg { width: 16px; height: 16px; color: var(--green-600); }

/* =========================================================
   Cadre téléphone (double-bezel)
   ========================================================= */
.phone {
  position: relative;
  width: 268px;
  aspect-ratio: 780 / 1690;
  border-radius: 2.6rem;
  padding: 0.55rem;
  background: linear-gradient(160deg, #2a2a2a, #050505);
  box-shadow: var(--shadow-float), inset 0 1px 1px rgba(255,255,255,0.14);
}
.phone::after { /* reflet */
  content:""; position:absolute; inset:0; border-radius: inherit;
  background: linear-gradient(140deg, rgba(255,255,255,0.16), transparent 42%);
  pointer-events:none;
}
.phone .screen { width: 100%; height: 100%; border-radius: 2.1rem; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.phone .notch { position: absolute; top: 0.55rem; left: 50%; transform: translateX(-50%); width: 44%; height: 22px; background: #050505; border-radius: 0 0 14px 14px; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; }

.hero-devices { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.hero-devices .phone.main { transform: rotate(-3deg); z-index: 2; }
.hero-devices .phone.back { position: absolute; transform: rotate(6deg) translate(90px, 30px) scale(0.9); z-index: 1; opacity: 0.96; }

/* Mockup déjà encadré (screenshot fourni avec châssis iPhone) */
.hero-devices .device-shot {
  position: relative;
  z-index: 2;
  width: min(320px, 80vw);
  transform: rotate(-2deg);
  filter: drop-shadow(0 45px 80px rgba(33, 52, 14, 0.42));
  transition: transform 0.7s var(--ease);
}
.hero-devices .device-shot:hover { transform: rotate(-1deg) translateY(-6px); }
.hero-devices .hero-glow {
  position: absolute; z-index: 1;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(106, 168, 50, 0.4), transparent 72%);
  filter: blur(20px);
}
.hero-devices .float-card {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.82rem; font-weight: 600;
}
.hero-devices .float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.hero-devices .fc-1 { top: 8%; left: -2%; }
.hero-devices .fc-2 { bottom: 10%; right: -4%; }
.hero-devices .fc-1 .ic { background: var(--green-100); color: var(--green-700); }
.hero-devices .fc-2 .ic { background: var(--amber-soft); color: var(--amber); }
.hero-devices .float-card small { display: block; font-weight: 500; color: var(--muted); font-size: 0.72rem; }

/* =========================================================
   Bandeau chiffres / confiance
   ========================================================= */
.strip { background: var(--green-800); color: #fff; }
.strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 2.6rem; }
.strip .stat { text-align: center; }
.strip .stat .n { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
.strip .stat .l { font-size: 0.82rem; opacity: 0.72; margin-top: 0.2rem; letter-spacing: 0.02em; }
.strip .stat + .stat { position: relative; }
.strip .stat + .stat::before { content:""; position:absolute; left:-0.75rem; top:15%; bottom:15%; width:1px; background: rgba(255,255,255,0.15); }

/* =========================================================
   Features — lignes alternées
   ========================================================= */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 9vw, 7rem); }
.feature.reverse .f-media { order: 2; }
.feature .f-media { display: flex; justify-content: center; }
.feature .tag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 600; color: var(--green-600); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.9rem; }
.feature .tag .idx { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-100); font-size: 0.72rem; }
.feature p { color: var(--muted); margin-top: 1rem; font-size: 1.04rem; }
.feature .mini-list { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
.feature .mini-list li { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; font-size: 0.95rem; }
.feature .mini-list .chk { width: 22px; height: 22px; border-radius: 50%; background: var(--green-500); display: grid; place-items: center; flex-shrink: 0; }
.feature .mini-list .chk svg { width: 13px; height: 13px; color: #fff; }

/* Media : téléphone posé dans un plateau (double-bezel externe) */
.tray {
  padding: 1.4rem;
  border-radius: 2.4rem;
  background: linear-gradient(165deg, rgba(255,255,255,0.7), rgba(230,240,218,0.5));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-soft), inset 0 1px 1px rgba(255,255,255,0.6);
}
.tray.amber { background: linear-gradient(165deg, rgba(255,255,255,0.7), rgba(246,217,184,0.45)); }
.tray.sky   { background: linear-gradient(165deg, rgba(255,255,255,0.7), rgba(207,227,240,0.45)); }
.tray .phone { transform: rotate(-2deg); }
.feature.reverse .tray .phone { transform: rotate(2deg); }

/* Plateau contenant un mockup déjà encadré (screenshot avec châssis) */
.tray.framed { display: flex; justify-content: center; }
.tray.framed img {
  width: min(280px, 82%);
  transform: rotate(-2deg);
  filter: drop-shadow(0 30px 55px rgba(33, 52, 14, 0.4));
  transition: transform 0.7s var(--ease);
}
.feature.reverse .tray.framed img { transform: rotate(2deg); }
.tray.framed img:hover { transform: rotate(-1deg) translateY(-5px); }

/* =========================================================
   Section chiots (imprégnation) — carte pleine largeur
   ========================================================= */
.puppy { position: relative; }
.puppy-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(140deg, var(--green-700), var(--green-900));
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  box-shadow: var(--shadow-float);
}
.puppy-card::before { content:""; position:absolute; width: 340px; height:340px; border-radius:50%; background: var(--green-500); opacity:0.25; filter: blur(50px); top:-120px; right:-60px; }
.puppy-card .inner { position: relative; max-width: 620px; }
.puppy-card h2 { color: #fff; }
.puppy-card p { color: rgba(255,255,255,0.82); margin-top: 1.1rem; font-size: 1.08rem; }
.puppy-card .eyebrow { background: rgba(255,255,255,0.12); color: #eaf4dd; border-color: rgba(255,255,255,0.16); }

/* =========================================================
   Galerie screenshots
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; justify-items: center; }
.gallery .phone { width: 100%; max-width: 240px; transition: transform 0.6s var(--ease); }
.gallery .g-item:nth-child(odd) .phone { transform: translateY(14px); }
.gallery .g-item:hover .phone { transform: translateY(0) scale(1.03); }
.gallery .cap { text-align: center; margin-top: 1rem; font-size: 0.9rem; font-weight: 600; }
.gallery .cap small { display: block; font-weight: 500; color: var(--muted); font-size: 0.8rem; margin-top: 0.15rem; }

/* =========================================================
   CTA final
   ========================================================= */
.cta { text-align: center; }
.cta-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  background: radial-gradient(120% 120% at 50% 0%, var(--green-100), var(--cream));
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.cta-card img.appicon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 1.4rem; box-shadow: var(--shadow-card); }
.cta-card .stores { justify-content: center; margin-top: 2rem; }
.cta-card h2 { max-width: 16ch; margin-inline: auto; }

/* =========================================================
   Footer
   ========================================================= */
.footer { padding-block: 3rem 2.5rem; border-top: 1px solid var(--hairline); }
.footer .container { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer .brand { font-size: 1rem; }
.footer .f-right { display: flex; gap: 1.5rem; font-size: 0.88rem; color: var(--muted); flex-wrap: wrap; }
.footer .f-right a:hover { color: var(--ink); }
.footer .made { width: 100%; font-size: 0.8rem; color: var(--muted); padding-top: 1.5rem; margin-top: 0.5rem; border-top: 1px solid var(--hairline); }

/* =========================================================
   Animations d'apparition au scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(38px); filter: blur(6px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; }
  * { scroll-behavior: auto !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "devices" "actions";
    text-align: center;
  }
  .hero-copy, .hero-actions, .hero-grid .hero-devices { align-self: auto; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { margin-top: 2.5rem; }
  .hero-actions .stores { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-devices { margin-top: 2.5rem; min-height: 500px; }
  .feature, .feature.reverse { grid-template-columns: 1fr; text-align: center; }
  .feature.reverse .f-media { order: 0; }
  .feature .tag, .feature .mini-list { justify-content: center; }
  .feature .mini-list li { justify-content: center; }
  .feature .f-media { margin-top: 0.5rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .gallery .g-item:nth-child(odd) .phone { transform: none; }
}

@media (max-width: 720px) {
  .nav-links, .nav .nav-cta { display: none; }
  .burger { display: block; }
  .strip .container { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
  .strip .stat + .stat::before { display: none; }
  .strip .stat:nth-child(3)::after,
  .strip .stat:nth-child(4)::after { display:none; }
}

@media (max-width: 460px) {
  .container { padding-inline: 1.15rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .phone { max-width: 230px; }
  .hero-devices .phone.back { display: none; }
  .store-badge { flex: 1 1 auto; justify-content: center; }
}
