/* ============================================
   Loslo — landing page (version simple)
   Palette : beige paresseux, vert lime, joues
   roses, fond crème.
   ============================================ */

:root {
  /* Brand */
  --loslo-fur: #c9a57e;
  --loslo-fur-dark: #a07e5a;
  --loslo-belly: #c4d45a;        /* vert lime (couleur de référence) */
  --loslo-belly-deep: #7e8e2e;   /* version foncée pour texte/CTA */
  --loslo-belly-light: #d9e37d;  /* version claire pour reflets */
  --loslo-cheek: #f4b6b6;
  --loslo-cheek-deep: #e89898;
  --loslo-eye: #3d2a1e;

  /* Surfaces */
  --bg: #f7ede6;
  --bg-soft: #f3ede2;
  --bg-card: #ffffff;
  --bg-tint-green: #eef3d2;
  --bg-tint-blue: #e6effa;
  --bg-tint-pink: #fbe9e9;
  --bg-tint-cream: #f7eed9;

  /* Text */
  --ink: #2b2118;
  --ink-soft: #5a4a3c;
  --ink-mute: #8b7a6a;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(82, 60, 35, 0.06);
  --shadow-md: 0 10px 30px rgba(82, 60, 35, 0.08);
  --shadow-lg: 0 25px 60px rgba(82, 60, 35, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  /* Type — stack qui pioche SF Pro Rounded sur Apple, Nunito ailleurs */
  --font-rounded:
    ui-rounded,
    "SF Pro Rounded",
    "SF Pro Display",
    -apple-system,
    "Nunito",
    "Segoe UI Variable",
    "Segoe UI",
    system-ui,
    Roboto,
    sans-serif;
  --font-sans: var(--font-rounded);
  --font-display: var(--font-rounded);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin: 0;
}

h1 { font-weight: 900; }

p { margin: 0; }

/* ---------- Décor de fond ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.leaf {
  position: absolute;
  font-size: 28px;
  opacity: 0.35;
  animation: float 12s ease-in-out infinite;
  filter: blur(0.3px);
}

.leaf-1 { top: 12%; left: 6%;  animation-delay: 0s; }
.leaf-2 { top: 28%; right: 8%; animation-delay: 2s; font-size: 22px; opacity: .3; }
.leaf-3 { top: 62%; left: 4%;  animation-delay: 4s; font-size: 24px; }
.leaf-4 { top: 78%; right: 6%; animation-delay: 1s; }
.leaf-5 { top: 45%; left: 50%; animation-delay: 3s; font-size: 18px; opacity: .22; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-18px) rotate(6deg); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 16px clamp(20px, 5vw, 60px);
  background: rgba(247, 237, 230, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(82, 60, 35, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-tint-green);
  box-shadow: var(--shadow-sm);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Version légèrement plus petite pour le footer */
.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* ---------- Bouton App Store ---------- */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 18px;
  background: #111;
  color: #fff;
  font-family: var(--font-sans);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.btn-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.appstore-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  text-align: left;
}

.appstore-small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.appstore-big {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 60px) clamp(60px, 8vw, 100px);
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}

.hero-copy { max-width: 620px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid rgba(82, 60, 35, 0.08);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--loslo-belly-deep);
  box-shadow: 0 0 0 4px rgba(126, 142, 46, 0.18);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 36px;
}

.grad {
  background: linear-gradient(110deg, var(--loslo-belly-deep) 0%, var(--loslo-belly) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.lede strong { color: var(--ink); font-weight: 700; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Mascotte ---------- */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.mascot-frame {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.mascot-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 60% at 50% 45%,
    rgba(196, 212, 90, 0.40),
    rgba(244, 182, 182, 0.16) 60%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(6px);
}

.mascot {
  position: relative;
  width: 86%;
  height: auto;
  animation: bob 5s ease-in-out infinite;
  filter: drop-shadow(0 25px 30px rgba(82, 60, 35, 0.18));
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.mascot-shadow {
  position: absolute;
  bottom: 6%;
  left: 50%;
  width: 55%;
  height: 24px;
  background: rgba(82, 60, 35, 0.18);
  border-radius: 50%;
  filter: blur(10px);
  transform: translateX(-50%);
  animation: shadow-pulse 5s ease-in-out infinite;
}

@keyframes shadow-pulse {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: .35; }
  50%      { transform: translateX(-50%) scaleX(.85); opacity: .25; }
}

.cloud,
.sparkle {
  position: absolute;
  font-size: 28px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.05));
}

.cloud-1 { top: 8%;  left: 4%;  font-size: 38px; animation: float 9s ease-in-out infinite; }
.cloud-2 { top: 14%; right: 6%; font-size: 30px; animation: float 11s ease-in-out infinite reverse; opacity: .85; }

.sparkle-1 { top: 28%; right: 12%; animation: twinkle 2.6s ease-in-out infinite; }
.sparkle-2 { bottom: 22%; left: 8%; animation: twinkle 3.2s ease-in-out infinite .8s; }

@keyframes twinkle {
  0%, 100% { transform: scale(1)    rotate(0deg);  opacity: .9; }
  50%      { transform: scale(1.35) rotate(15deg); opacity: 1; }
}

.zzz {
  position: absolute;
  top: 10%;
  right: 10%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--loslo-belly-deep);
}

.zzz span {
  display: inline-block;
  animation: zzz-rise 3s ease-in-out infinite;
}

.zzz span:nth-child(1) { font-size: 28px; animation-delay: 0s; }
.zzz span:nth-child(2) { font-size: 22px; animation-delay: .4s; }
.zzz span:nth-child(3) { font-size: 16px; animation-delay: .8s; }

@keyframes zzz-rise {
  0%   { transform: translateY(0)     scale(1);   opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-22px) scale(1.1); opacity: 0; }
}

/* ---------- 4 objectifs ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 60px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--loslo-belly-deep);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-lede {
  font-size: 18px;
  color: var(--ink-soft);
}

.features {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 60px);
}

/* ---------- 4 objectifs : anneaux de progression ---------- */
.objectives {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(32px, 4vw, 56px) 24px;
}

.objective {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.ring {
  position: relative;
  width: clamp(120px, 14vw, 160px);
  height: clamp(120px, 14vw, 160px);
  transition: transform 0.3s ease;
}

.objective:hover .ring {
  transform: translateY(-4px) scale(1.04);
}

.ring svg {
  width: 100%;
  height: 100%;
  /* Démarre l'anneau en haut, dans le sens horaire */
  transform: rotate(-90deg);
  overflow: visible;
}

.ring-track,
.ring-progress {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.ring-progress {
  /* circonférence ≈ 2π × 42 ≈ 264 */
  stroke-dasharray: 264;
  stroke-dashoffset: calc(264 - 264 * var(--progress, 0.75));
  animation: ring-fill 1.6s cubic-bezier(0.4, 0, 0.2, 1) both;
  filter: drop-shadow(0 4px 10px rgba(82, 60, 35, 0.12));
}

@keyframes ring-fill {
  from { stroke-dashoffset: 264; }
}

.ring-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(38px, 4.5vw, 52px);
  line-height: 1;
}

/* Variantes couleur par objectif */
.ring-blue  .ring-track    { stroke: #D8E8F4; }
.ring-blue  .ring-progress { stroke: #5DAEDC; }

.ring-green .ring-track    { stroke: #EEF3D2; }
.ring-green .ring-progress { stroke: #9CB73B; }

.ring-coral .ring-track    { stroke: #FBE9E9; }
.ring-coral .ring-progress { stroke: #F4906E; }

.ring-amber .ring-track    { stroke: #F7EED9; }
.ring-amber .ring-progress { stroke: #F89B3E; }

.objective h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  margin: 0;
}

/* ---------- Pages légales (privacy, terms…) ---------- */
.legal {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 60px) clamp(60px, 8vw, 100px);
}

.legal-inner {
  max-width: 740px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.legal-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.legal-head .eyebrow { margin-bottom: 14px; }

.legal-head h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--ink);
}

.legal-updated {
  color: var(--ink-mute);
  font-size: 14px;
  font-weight: 700;
}

.legal-intro {
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 0 0 clamp(40px, 5vw, 56px);
  box-shadow: var(--shadow-sm);
}

.legal-intro p {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.7;
}

.legal section { margin-bottom: clamp(32px, 4vw, 44px); }

.legal section h2 {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.legal section p { margin: 0; }
.legal section p + p { margin-top: 14px; }

.legal strong { color: var(--ink); font-weight: 800; }

.legal a:not(.btn-back) {
  color: var(--loslo-belly-deep);
  text-decoration: underline;
  text-decoration-color: rgba(126, 142, 46, 0.4);
  text-underline-offset: 3px;
  font-weight: 700;
}

.legal a:not(.btn-back):hover {
  text-decoration-color: var(--loslo-belly-deep);
}

.legal code {
  font-family:
    ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    "Cascadia Mono",
    monospace;
  font-size: 0.92em;
  background: rgba(126, 142, 46, 0.10);
  color: #5e6b1f;
  padding: 2px 8px;
  border-radius: 6px;
}

.legal-updated-footer {
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
  margin: clamp(40px, 5vw, 56px) 0 0;
}

.legal-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 6vw, 72px);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background: var(--loslo-belly-deep);
  color: #fff;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(126, 142, 46, 0.32);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(126, 142, 46, 0.42);
  text-decoration: none;
  color: #fff;
}

.btn-back svg {
  transition: transform 0.2s ease;
}

.btn-back:hover svg {
  transform: translateX(-4px);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 40px clamp(20px, 5vw, 60px) 32px;
  border-top: 1px solid rgba(82, 60, 35, 0.06);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

.footer-nav a {
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s ease;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--loslo-belly-deep);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.footer-nav a:hover {
  color: var(--loslo-belly-deep);
}

.footer-nav a:hover::after {
  transform: scaleX(1);
}

.copyright {
  color: var(--ink-mute);
  font-size: 14px;
  margin-top: 4px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
