/* ========================================
   Climbr — page de l'app
   Thème sable / encre / terre brûlée : la palette « Grès » de l'app.
   ======================================== */
:root {
    --bg: #F4EFE8;
    --bg-deep: #E9E2D8;
    --surface: #FFFDFA;
    --surface-raised: #FBF7F1;
    --ink: #1E1A16;
    --ink-soft: #726657;
    --muted: #A99C8B;
    --line: #E6DCD0;
    --accent: #B4531F;
    --accent-dark: #8A3F17;
    --on-accent: #FFFFFF;
    --sent: #4F7A3E;
    --shadow-sm: 0 2px 8px rgba(30, 26, 22, 0.05);
    --shadow-md: 0 8px 32px rgba(30, 26, 22, 0.08);
    --shadow-lg: 0 30px 70px rgba(30, 26, 22, 0.22);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-hero: clamp(2.4rem, 5.2vw, 4rem);
    --fs-h2: clamp(1.875rem, 3.8vw, 2.75rem);
    --fs-h3: clamp(1.125rem, 1.8vw, 1.375rem);
    --fs-body: clamp(1rem, 1.15vw, 1.0625rem);
    --fs-small: 0.875rem;
    --fs-xs: 0.75rem;
    --letter-tight: -0.028em;
    --letter-wide: 0.08em;
    --container-max: 1160px;
    --container-narrow: 720px;
    --container-padding: clamp(1.25rem, 4vw, 2rem);
    --section-padding: clamp(4rem, 9vw, 7rem);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }

/* Navbar */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(244, 239, 232, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--transition); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: var(--container-max); margin: 0 auto; padding: 0.85rem var(--container-padding); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; letter-spacing: var(--letter-tight); font-size: 1.125rem; }
.nav-wordmark { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft); transition: color var(--transition); }
.nav-link:hover { color: var(--ink); }
.nav-burger { display: none; background: none; border: 0; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; border-radius: 2px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 600; border-radius: var(--radius-full); padding: 0.8rem 1.4rem; font-size: 0.9375rem; transition: transform var(--transition), background var(--transition), box-shadow var(--transition); border: 0; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; }
.store-badge { display: inline-flex; align-items: center; gap: 0.7rem; background: var(--ink); color: #fff; border-radius: 14px; padding: 0.65rem 1.15rem 0.65rem 0.95rem; line-height: 1.1; transition: transform var(--transition), opacity var(--transition); }
.store-badge:hover { transform: translateY(-1px); }
.store-badge.soon { opacity: 0.55; cursor: default; }
.store-badge.soon:hover { transform: none; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { display: flex; flex-direction: column; }
.store-badge small { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.02em; opacity: 0.8; }
.store-badge strong { font-size: 1.05rem; font-weight: 700; }

/* Hero */
.hero { padding: calc(84px + clamp(2rem, 6vw, 4.5rem)) 0 var(--section-padding); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--letter-wide); text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.hero-title { font-size: var(--fs-hero); font-weight: 800; letter-spacing: var(--letter-tight); line-height: 1.04; text-wrap: balance; }
.hero-title .accent { color: var(--accent); }
.hero-sub { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 34rem; }
.hero-cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-trust { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.hero-trust li { font-size: var(--fs-small); font-weight: 500; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-full); padding: 0.35rem 0.8rem; }

/* Téléphones : le vrai boîtier, un écran dedans */
.phones { position: relative; height: 600px; display: flex; justify-content: center; align-items: flex-end; }
.phone { position: absolute; bottom: 0; width: 250px; aspect-ratio: 886 / 1851; filter: drop-shadow(0 30px 40px rgba(30, 26, 22, 0.28)); }
.phone-screen { position: absolute; left: 3.5%; top: 1.67%; width: 92.9%; height: 96.65%; border-radius: 11.6% / 5.55%; overflow: hidden; background: #000; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.phone-center { z-index: 3; width: 268px; }
.phone-left { z-index: 2; transform: translateX(-150px) scale(0.86); transform-origin: bottom center; }
.phone-right { z-index: 2; transform: translateX(150px) scale(0.86); transform-origin: bottom center; }

/* Sections */
.section { padding: var(--section-padding) 0; }
.section-deep { background: var(--bg-deep); }
.section-header { max-width: var(--container-narrow); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-title { font-size: var(--fs-h2); font-weight: 800; letter-spacing: var(--letter-tight); line-height: 1.1; text-wrap: balance; }
.section-lead { margin-top: 0.9rem; color: var(--ink-soft); font-size: var(--fs-body); max-width: 40rem; }

/* Fonctions */
.features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-raised); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); margin-bottom: 0.4rem; }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }
.feature p { color: var(--ink-soft); font-size: var(--fs-body); }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.step { text-align: center; padding: 0 0.5rem; }
.step-badge { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; margin: 0 auto 1rem; }
.step h3 { font-size: var(--fs-h3); font-weight: 700; margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); }

/* Progression : le disque */
.disc-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.disc { display: flex; align-items: center; gap: 0.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-full); padding: 0.5rem 1rem 0.5rem 0.5rem; font-weight: 600; font-size: var(--fs-small); }
.disc svg { width: 40px; height: 40px; }

/* CTA final */
.final-card { background: var(--ink); color: #F4EFE8; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2rem; align-items: center; overflow: hidden; position: relative; }
.final-card h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: var(--letter-tight); line-height: 1.1; }
.final-card p { margin-top: 0.9rem; color: rgba(244, 239, 232, 0.75); }
.final-card .store-badge { background: #F4EFE8; color: var(--ink); margin-top: 1.5rem; }
.final-phone { justify-self: center; width: 230px; aspect-ratio: 886 / 1851; position: relative; margin-bottom: -45%; }

/* Contact / support */
.support { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.support-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.support-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.support-card p, .support-card a { color: var(--ink-soft); font-size: var(--fs-small); }
.support-card a { color: var(--accent); font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: var(--fs-small); color: var(--ink-soft); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a:hover { color: var(--ink); }

/* Apparitions */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity var(--transition-slow), transform var(--transition-slow); }
.fade-up.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 1200px) { .phones { transform: scale(0.85); transform-origin: bottom center; } }
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .phones { height: 560px; margin-top: 1rem; }
    .final-card { grid-template-columns: 1fr; }
    .final-phone { margin-bottom: -60%; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 1rem var(--container-padding) 1.25rem; gap: 1rem; }
    .nav-links.open { display: flex; }
    .nav-burger { display: flex; }
    .features-grid, .steps { grid-template-columns: 1fr; }
    .phones { transform: scale(0.7); height: 440px; }
}
@media (max-width: 480px) { .phones { transform: scale(0.56); height: 360px; } }
