/* ============================================
   ikkos Performance — Landing Page (Mobile-First)
   ============================================
   Architecture :
   - Base : styles mobile (< 480px)
   - @media (min-width: 480px) : large mobile
   - @media (min-width: 768px) : tablette
   - @media (min-width: 1024px) : desktop
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --landing-primary: #151c26;
    --landing-primary-light: #1e2a38;
    --landing-accent: #C19E6F;
    --landing-accent-hover: #a8895f;
    --landing-text: #333;
    --landing-text-light: #6b7280;
    --landing-text-muted: #9ca3af;
    --landing-bg: #ffffff;
    --landing-bg-alt: #f8f9fb;
    --landing-bg-dark: #151c26;
    --landing-border: #e5e7eb;
    --landing-radius: 12px;
    --landing-radius-lg: 20px;
    --landing-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    --landing-shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --landing-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --landing-font-display: 'Big Shoulders Display', 'Inter', sans-serif;
    --landing-max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body.landing-page {
    font-family: var(--landing-font);
    color: var(--landing-text);
    background: var(--landing-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.landing-container {
    max-width: var(--landing-max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Navbar (mobile : burger visible, links cachés) --- */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.landing-nav.scrolled {
    box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 4px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 8px 0;
}

.nav-inner {
    max-width: var(--landing-max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: white;
    padding: 8px 16px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    gap: 0;
    border-top: 1px solid var(--landing-border);
    /* Hidden by default — animated */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

/* Mobile menu ouvert */
.nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

.nav-links a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--landing-text-light);
    transition: color 0.2s ease;
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--landing-bg-alt);
}

.nav-links li:last-child a {
    border-bottom: none;
}

/* CTA "Inscrire mon club" dans le menu burger : on lui redonne du style */
.nav-links li.nav-cta-mobile {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--landing-bg-alt);
}

.nav-links li.nav-cta-mobile a {
    display: inline-flex;
    width: 100%;
    text-align: center;
    justify-content: center;
    border-bottom: none;
    padding: 11px 16px;
    color: white;
}

.nav-links a:hover {
    color: var(--landing-primary);
}

.nav-scrolled-link {
    color: var(--landing-text-light) !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* En mobile : si la nav a un burger, on cache ghost ET primary (accessibles via menu) */
.landing-nav:has(.nav-mobile-toggle) .nav-actions .btn-landing-ghost,
.landing-nav:has(.nav-mobile-toggle) .nav-actions .btn-landing-primary {
    display: none;
}

.nav-mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--landing-primary);
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}

/* --- Buttons --- */
.btn-landing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    min-height: 38px;
}

.btn-landing-ghost {
    color: var(--landing-primary);
    background: transparent;
}

.btn-landing-ghost:hover {
    background: var(--landing-bg-alt);
}

.btn-landing-primary {
    background: var(--landing-accent);
    color: white;
}

.btn-landing-primary:hover {
    background: var(--landing-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(193, 158, 111, 0.35);
}

.btn-landing-dark {
    background: var(--landing-primary);
    color: white;
}

.btn-landing-dark:hover {
    background: var(--landing-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(21, 28, 38, 0.25);
}

.btn-landing-outline {
    border: 1.5px solid var(--landing-border);
    color: var(--landing-primary);
    background: white;
}

.btn-landing-outline:hover {
    border-color: var(--landing-primary);
    background: var(--landing-bg-alt);
}

.btn-landing-lg {
    padding: 11px 20px;
    font-size: 14px;
    border-radius: 10px;
    min-height: 42px;
}

/* --- Hero (mobile) --- */
.hero {
    padding: 92px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(193, 158, 111, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(193, 158, 111, 0.08);
    border: 1px solid rgba(193, 158, 111, 0.15);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--landing-accent);
    margin-bottom: 16px;
}

.hero h1 {
    font-family: var(--landing-font-display);
    font-size: clamp(32px, 9vw, 44px);
    font-weight: 800;
    line-height: 1;
    color: var(--landing-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.hero h1 .accent {
    color: var(--landing-accent);
}

.hero-subtitle {
    font-size: 15px;
    color: var(--landing-text-light);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.hero-actions .btn-landing {
    width: auto;
}

.hero-mockup {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.hero-mockup-img {
    width: 100%;
    border-radius: var(--landing-radius);
    box-shadow: var(--landing-shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
}

.hero-mockup-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--landing-radius);
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    box-shadow: var(--landing-shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--landing-text-muted);
}

.hero-mockup-placeholder i {
    font-size: 36px;
    opacity: 0.4;
}

.hero-mockup-placeholder span {
    font-size: 12px;
    font-weight: 500;
}

/* --- Section base --- */
.landing-section {
    padding: 48px 0;
}

.landing-section.alt {
    background: var(--landing-bg-alt);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--landing-accent);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--landing-font-display);
    font-size: clamp(28px, 7vw, 36px);
    font-weight: 700;
    color: var(--landing-primary);
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 14px;
    color: var(--landing-text-light);
    line-height: 1.6;
}

/* --- Features grid (mobile : 1 col) --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.features-grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
}

.feature-card {
    background: white;
    border: 1px solid var(--landing-border);
    border-radius: var(--landing-radius);
    padding: 24px 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.feature-icon.orange {
    background: rgba(193, 158, 111, 0.1);
    color: var(--landing-accent);
}

.feature-icon.blue {
    background: rgba(21, 28, 38, 0.08);
    color: var(--landing-primary);
}

.feature-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.feature-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.feature-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.feature-icon.teal {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.feature-icon.indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.feature-icon.amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.feature-icon.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.feature-icon.emerald {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.feature-icon.slate {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.feature-icon.pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--landing-primary);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--landing-text-light);
    line-height: 1.55;
}

/* --- Profiles grid (mobile : 1 col) --- */
.profiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.profile-card {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--landing-radius);
    background: white;
    border: 1px solid var(--landing-border);
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-lg);
    border-color: transparent;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.profile-avatar.coach {
    background: rgba(193, 158, 111, 0.1);
    color: var(--landing-accent);
}

.profile-avatar.physique {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.profile-avatar.medical {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.profile-avatar.joueur {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.profile-avatar.admin {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.profile-avatar.analyste {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.profile-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--landing-primary);
    margin-bottom: 6px;
}

.profile-card p {
    font-size: 13px;
    color: var(--landing-text-light);
    line-height: 1.5;
}

/* --- Stats / Social proof (mobile : 2 cols) --- */
.stats-section {
    background: var(--landing-bg-dark);
    padding: 48px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item .stat-number {
    font-family: var(--landing-font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--landing-accent);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.stat-item .stat-suffix {
    font-size: 0.6em;
    margin-left: 2px;
    opacity: 0.85;
}

.stat-item .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* --- Screenshots grid (mobile : 1 col) --- */
.screenshots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.screenshot-card {
    border-radius: var(--landing-radius);
    overflow: hidden;
    background: white;
    border: 1px solid var(--landing-border);
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-lg);
}

.screenshot-img-wrapper {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--landing-text-muted);
    overflow: hidden;
}

.screenshot-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-img-wrapper i {
    font-size: 36px;
    opacity: 0.3;
}

.screenshot-caption {
    padding: 16px 20px;
}

.screenshot-caption h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--landing-primary);
    margin-bottom: 4px;
}

.screenshot-caption p {
    font-size: 13px;
    color: var(--landing-text-light);
}

/* --- CTA Final (mobile) --- */
.cta-section {
    padding: 48px 0;
    text-align: center;
}

.cta-box {
    background: var(--landing-bg-dark);
    border-radius: var(--landing-radius);
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(193, 158, 111, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--landing-font-display);
    font-size: clamp(26px, 7vw, 36px);
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    position: relative;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.cta-box p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 480px;
    margin: 0 auto 24px;
    position: relative;
    line-height: 1.6;
}

.cta-box .cta-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.cta-box .cta-actions .btn-landing {
    width: 100%;
}

/* --- Footer (mobile : stack) --- */
.landing-footer {
    background: var(--landing-bg-alt);
    border-top: 1px solid var(--landing-border);
    padding: 48px 0 24px;
}

/* Footer 4-col layout (home.html) */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--landing-border);
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--landing-text-light);
    line-height: 1.65;
    max-width: 260px;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--landing-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact:hover {
    color: var(--landing-primary);
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--landing-text);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col ul li {
    font-size: 13px;
    color: var(--landing-text-light);
}

.footer-col ul li a {
    color: var(--landing-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--landing-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 12px;
    color: var(--landing-text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-legal a {
    font-size: 12px;
    color: var(--landing-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--landing-primary);
}

/* Simple 1-row footer (other pages) */
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand-img {
    height: 32px;
    width: auto;
    display: block;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 13px;
    color: var(--landing-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--landing-primary);
}

.footer-copy {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--landing-border);
    font-size: 12px;
    color: var(--landing-text-muted);
}

/* --- Trust logos --- */
.trust-section {
    padding: 32px 0 16px;
    background: var(--landing-bg);
}

.trust-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--landing-text-muted);
    margin-bottom: 20px;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    opacity: 0.7;
}

.trust-logo {
    height: 28px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.trust-logo:hover {
    filter: grayscale(0);
}

.trust-logo-placeholder {
    height: 30px;
    min-width: 80px;
    padding: 0 12px;
    border: 1.5px dashed var(--landing-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--landing-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Difference / Bento rows (mobile : stack) --- */
.difference-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.difference-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}

.difference-row.reverse {
    direction: ltr;
}

.difference-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--landing-accent);
    margin-bottom: 12px;
}

.difference-content h3 {
    font-family: var(--landing-font-display);
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 700;
    color: var(--landing-primary);
    line-height: 1.15;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.difference-content p {
    font-size: 15px;
    color: var(--landing-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.difference-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.difference-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--landing-text);
}

.difference-bullets i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(193, 158, 111, 0.12);
    color: var(--landing-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.difference-visual {
    aspect-ratio: 16 / 10;
    border-radius: var(--landing-radius);
    background: linear-gradient(135deg, #f8f9fb 0%, #eef0f3 100%);
    box-shadow: var(--landing-shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.difference-visual .visual-fallback-label {
    display: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--landing-text-muted);
    padding: 12px 16px;
    border: 1.5px dashed var(--landing-border);
    border-radius: 8px;
    background: white;
}

.difference-visual.placeholder-fallback .visual-fallback-label {
    display: inline-block;
}

/* --- Testimonials (mobile : 1 col) --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.testimonial-card {
    background: white;
    border: 1px solid var(--landing-border);
    border-radius: var(--landing-radius);
    padding: 24px 22px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-lg);
    border-color: transparent;
}

.testimonial-quote-mark {
    font-family: var(--landing-font-display);
    font-size: 64px;
    font-weight: 800;
    color: var(--landing-accent);
    line-height: 0.6;
    margin-bottom: 8px;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--landing-text);
    flex: 1;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--landing-border);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--landing-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-info strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--landing-primary);
}

.testimonial-info span {
    font-size: 12px;
    color: var(--landing-text-light);
}

/* --- Screenshot fallback --- */
.screenshot-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--landing-text-muted);
}

.screenshot-fallback i {
    font-size: 36px;
    opacity: 0.3;
}

.screenshot-fallback span {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.6;
}

/* --- Register page (mobile) --- */
.register-section {
    padding: 88px 0 48px;
    min-height: 100vh;
}

.register-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.register-header {
    text-align: center;
    margin-bottom: 28px;
}

.register-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--landing-primary);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.register-header p {
    font-size: 14px;
    color: var(--landing-text-light);
    line-height: 1.5;
}

.register-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
}

.register-alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.register-alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--landing-border);
}

.form-section:first-of-type {
    padding-top: 0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.form-section-number {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--landing-accent);
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-section-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--landing-primary);
    margin-bottom: 2px;
}

.form-section-header p {
    font-size: 12px;
    color: var(--landing-text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-grid:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--landing-text);
}

.form-optional {
    font-weight: 400;
    color: var(--landing-text-muted);
    font-style: italic;
}

.landing-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--landing-border);
    border-radius: 10px;
    font-size: 16px; /* 16px évite le zoom auto sur iOS */
    font-family: var(--landing-font);
    color: var(--landing-text);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.landing-input::placeholder {
    color: var(--landing-text-muted);
}

.landing-input:focus {
    border-color: var(--landing-accent);
    box-shadow: 0 0 0 3px rgba(193, 158, 111, 0.1);
}

.landing-input:has(+ .form-error),
.form-group:has(.form-error) .landing-input {
    border-color: #ef4444;
}

select.landing-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-error {
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
}

.form-hint {
    font-size: 12px;
    color: var(--landing-text-muted);
}

.form-actions {
    padding-top: 24px;
}

.form-legal {
    text-align: center;
    font-size: 12px;
    color: var(--landing-text-muted);
    margin-top: 14px;
    line-height: 1.5;
}

/* Success page */
.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon i {
    font-size: 36px;
    color: #10b981;
}

/* ============================================
   480px+ : Large mobile
   ============================================ */
@media (min-width: 480px) {

    .landing-container {
        padding: 0 20px;
    }

    .nav-inner {
        padding: 0 20px;
    }

    .hero {
        padding: 100px 0 56px;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-actions .btn-landing {
        width: auto;
    }

    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-box .cta-actions {
        flex-direction: row;
    }

    .cta-box .cta-actions .btn-landing {
        width: auto;
    }

    .register-header h1 {
        font-size: 28px;
    }

    .stat-item .stat-number {
        font-size: 44px;
    }
}

/* ============================================
   768px+ : Tablette
   ============================================ */
@media (min-width: 768px) {

    .landing-container {
        padding: 0 24px;
    }

    .nav-inner {
        padding: 0 24px;
    }

    /* Navbar : transparente avant scroll */
    .landing-nav {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border-bottom: 1px solid transparent;
        padding: 16px 0;
    }

    .landing-nav.scrolled {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.07);
        border-bottom: 1px solid rgba(0,0,0,0.06);
        padding: 10px 0;
    }

    .nav-logo-img {
        height: 40px;
    }

    .landing-nav:has(.nav-mobile-toggle) .nav-actions .btn-landing-ghost,
    .landing-nav:has(.nav-mobile-toggle) .nav-actions .btn-landing-primary {
        display: inline-flex;
    }

    .btn-landing {
        padding: 10px 22px;
        min-height: auto;
    }

    .btn-landing-lg {
        padding: 14px 32px;
        font-size: 15px;
        min-height: auto;
    }

    /* Hero */
    .hero {
        padding: 130px 0 80px;
    }

    .hero::before {
        width: 800px;
        height: 800px;
    }

    .hero-badge {
        padding: 6px 16px;
        font-size: 13px;
        gap: 8px;
        margin-bottom: 24px;
    }

    .hero h1 {
        font-size: clamp(48px, 6vw, 72px);
        margin-bottom: 20px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 17px;
        margin-bottom: 36px;
        line-height: 1.7;
    }

    .hero-actions {
        gap: 16px;
        margin-bottom: 56px;
    }

    .hero-mockup-img,
    .hero-mockup-placeholder {
        border-radius: var(--landing-radius-lg);
    }

    .hero-mockup-placeholder i {
        font-size: 48px;
    }

    .hero-mockup-placeholder span {
        font-size: 14px;
    }

    /* Sections */
    .landing-section {
        padding: 72px 0;
    }

    .section-header {
        margin: 0 auto 48px;
    }

    .section-label {
        font-size: 12px;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
    }

    .section-title {
        font-size: clamp(36px, 4.5vw, 50px);
        margin-bottom: 16px;
    }

    .section-subtitle {
        font-size: 16px;
        line-height: 1.7;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .features-grid-4 {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .feature-card {
        padding: 28px 24px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        margin-bottom: 18px;
    }

    .feature-card h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    /* Profiles */
    .profiles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .profile-card {
        padding: 32px 20px;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        margin: 0 auto 14px;
        font-size: 26px;
    }

    /* Stats */
    .stats-section {
        padding: 64px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }

    .stat-item .stat-number {
        font-size: 52px;
        margin-bottom: 8px;
        letter-spacing: -1px;
    }

    .stat-item .stat-label {
        font-size: 13px;
    }

    /* Screenshots */
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .screenshot-card {
        border-radius: var(--landing-radius-lg);
    }

    .screenshot-img-wrapper i {
        font-size: 40px;
    }

    .screenshot-caption {
        padding: 20px 24px;
    }

    .screenshot-caption h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    /* Difference */
    .difference-list {
        gap: 64px;
    }

    .difference-row {
        gap: 40px;
    }

    .difference-tag {
        font-size: 12px;
        letter-spacing: 1.5px;
        margin-bottom: 16px;
    }

    .difference-content h3 {
        font-size: clamp(28px, 3vw, 36px);
        margin-bottom: 16px;
    }

    .difference-content p {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 24px;
    }

    .difference-visual {
        aspect-ratio: 4 / 3;
        border-radius: var(--landing-radius-lg);
    }

    /* Testimonials : 2 cols à tablette */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .testimonial-card {
        border-radius: var(--landing-radius-lg);
        padding: 28px 26px;
    }

    .testimonial-quote-mark {
        font-size: 80px;
    }

    .testimonial-text {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 22px;
    }

    .testimonial-avatar,
    .testimonial-avatar-fallback {
        width: 44px;
        height: 44px;
    }

    /* CTA */
    .cta-section {
        padding: 80px 0;
    }

    .cta-box {
        padding: 56px 36px;
        border-radius: var(--landing-radius-lg);
    }

    .cta-box::before {
        width: 500px;
        height: 500px;
        right: -20%;
    }

    .cta-box h2 {
        font-size: clamp(32px, 4vw, 48px);
        margin-bottom: 16px;
    }

    .cta-box p {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .cta-box .cta-actions {
        gap: 16px;
    }

    /* Footer */
    .landing-footer {
        padding: 44px 0 28px;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-brand-img {
        height: 36px;
    }

    .footer-links {
        gap: 24px;
    }

    .footer-copy {
        margin-top: 32px;
        padding-top: 24px;
        font-size: 13px;
    }

    /* Footer 4-col responsive — tablette : 2+2 */
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-tagline {
        max-width: 100%;
    }

    /* Trust */
    .trust-section {
        padding: 44px 0 20px;
    }

    .trust-label {
        margin-bottom: 24px;
        letter-spacing: 1.5px;
    }

    .trust-logos {
        gap: 40px;
    }

    .trust-logo {
        height: 36px;
        max-width: 140px;
    }

    /* Register */
    .register-section {
        padding: 110px 0 64px;
    }

    .register-header {
        margin-bottom: 36px;
    }

    .register-header h1 {
        font-size: 30px;
        margin-bottom: 12px;
    }

    .register-header p {
        font-size: 16px;
        line-height: 1.6;
    }

    .form-section {
        padding: 28px 0;
    }

    .form-section-header {
        gap: 14px;
        margin-bottom: 24px;
    }

    .form-section-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .form-section-header h3 {
        font-size: 16px;
    }

    .form-section-header p {
        font-size: 13px;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .landing-input {
        padding: 11px 14px;
        font-size: 14px;
    }

    .form-actions {
        padding-top: 32px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 24px;
    }

    .success-icon i {
        font-size: 40px;
    }
}

/* ============================================
   1024px+ : Desktop
   ============================================ */
@media (min-width: 1024px) {

    /* Navbar : afficher links, cacher burger */
    .nav-links {
        display: flex;
        align-items: center;
        gap: 32px;
        position: static;
        flex-direction: row;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border-top: none;
        /* Reset animation props from mobile */
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

    .nav-links a {
        font-size: 14px;
        padding: 4px 0;
        border-bottom: none;
        position: relative;
    }

    /* Hover underline animation */
    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--landing-primary);
        border-radius: 1px;
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links a:hover::after,
    .nav-links a.nav-active::after {
        transform: scaleX(1);
    }

    .nav-links a.nav-active {
        color: var(--landing-primary);
        font-weight: 600;
    }

    /* Lien Connexion : visible uniquement dans le menu mobile, masqué en desktop */
    .nav-link-mobile-only {
        display: none;
    }

    .nav-mobile-toggle {
        display: none;
    }

    .nav-actions {
        gap: 12px;
    }

    /* Hero */
    .hero {
        padding: 160px 0 100px;
    }

    .hero h1 {
        font-size: clamp(56px, 7vw, 92px);
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 19px;
        margin-bottom: 40px;
        max-width: 600px;
    }

    .hero-actions {
        margin-bottom: 64px;
    }

    /* Sections */
    .landing-section {
        padding: 100px 0;
    }

    .section-header {
        margin: 0 auto 64px;
    }

    .section-title {
        font-size: clamp(40px, 4.5vw, 58px);
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .features-grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .features-grid-4 .feature-card {
        padding: 24px 20px;
    }

    .features-grid-4 .feature-card h3 {
        font-size: 15px;
    }

    .features-grid-4 .feature-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin-bottom: 16px;
    }

    .feature-card {
        padding: 32px 28px;
    }

    /* Profiles */
    .profiles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .profile-card {
        padding: 36px 20px;
    }

    .profile-avatar {
        width: 64px;
        height: 64px;
        margin: 0 auto 16px;
        font-size: 28px;
    }

    /* Stats */
    .stats-section {
        padding: 80px 0;
    }

    .stats-grid {
        gap: 32px;
    }

    .stat-item .stat-number {
        font-size: 64px;
    }

    .stat-item .stat-label {
        font-size: 14px;
    }

    /* Screenshots */
    .screenshots-grid {
        gap: 32px;
    }

    /* Difference : 2 cols + reverse */
    .difference-list {
        gap: 80px;
    }

    .difference-row {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }

    .difference-row.reverse {
        direction: rtl;
    }

    .difference-row.reverse > * {
        direction: ltr;
    }

    /* Testimonials : 3 cols */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .testimonial-card {
        padding: 32px 28px;
    }

    /* CTA */
    .cta-section {
        padding: 100px 0;
    }

    .cta-box {
        padding: 72px 48px;
    }

    .cta-box h2 {
        font-size: clamp(36px, 4vw, 56px);
    }

    .cta-box p {
        margin-bottom: 36px;
    }

    /* Footer */
    .landing-footer {
        padding: 48px 0 32px;
    }

    /* Footer 4-col — desktop : 4 colonnes */
    .footer-main {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 48px;
    }

    .footer-brand-col {
        grid-column: auto;
    }

    /* Trust */
    .trust-section {
        padding: 48px 0 24px;
    }

    .trust-logos {
        gap: 56px;
    }

    /* Register */
    .register-section {
        padding: 120px 0 80px;
    }

    .register-header {
        margin-bottom: 40px;
    }

    .register-header h1 {
        font-size: 32px;
    }
}
