/* ====================================================================
   KLYK - SYSTEME DE DESIGN (V2.0 - APPLE GRADE)
   Thème : Light Mode Premium / Horeca Tech
==================================================================== */

/* -----------------------------------------------------------------
   1. VARIABLES & CONFIGURATION
----------------------------------------------------------------- */
:root {
    /* --- COULEURS --- */
    /* Marque KLYK */
    --klyk-navy: #1d1d1f;       /* Noir "Apple" (pas #000 pur, plus doux) */
    --klyk-blue: #0071e3;       /* Le Bleu Apple officiel */
    --klyk-blue-dark: #005bb5;  /* Hover */
    --klyk-bg-light: #f5f5f7;   /* Le fond gris clair iconique */
    
    /* Textes */
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #a1a1a6;
    --text-white: #ffffff;

    /* États */
    --success: #008738;         /* Vert confirmation */
    --error: #cc2229;
    
    /* --- BORDURES & OMBRES (La clé du design premium) --- */
    --border-light: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.12);
    
    /* Ombres étagées pour la profondeur */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
    --shadow-blue: 0 10px 30px rgba(0, 113, 227, 0.25); /* Glow bleu sous les boutons */

    /* --- LAYOUT --- */
    --container-width: 1080px; /* Largeur lecture confortable */
    --header-height: 64px;
    
    /* Arrondis */
    --radius-sm: 8px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* --- ANIMATIONS --- */
    /* Courbe de Bézier Apple "Ease" pour le naturel */
    --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1); 
    --transition-fast: 0.2s var(--ease-apple);
    --transition-medium: 0.5s var(--ease-apple);
}

/* -----------------------------------------------------------------
   2. RESET & BASES
----------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased; /* Lissage police Mac */
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
button { font-family: inherit; }

/* Conteneur principal centré */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* -----------------------------------------------------------------
   3. TYPOGRAPHIE
----------------------------------------------------------------- */
h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em; /* Kerning serré "Tech" */
}

h1 {
    font-size: clamp(48px, 6vw, 72px); /* Taille fluide responsive */
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
}

h2 {
    font-size: clamp(36px, 4vw, 48px);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 24px;
    font-weight: 600;
}

p {
    font-size: 19px; /* Taille corps Apple */
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 400;
}

.text-highlight {
    color: var(--klyk-blue);
    /* Dégradé subtil sur le texte */
    background: linear-gradient(135deg, #0071e3 0%, #00c6fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* -----------------------------------------------------------------
   4. NAVIGATION (BLUR EFFECT)
----------------------------------------------------------------- */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent */
    backdrop-filter: saturate(180%) blur(20px); /* L'effet verre dépoli */
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: transform 0.3s;
}

.nav-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 21px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.nav-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--klyk-bg-light);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px; height: 8px;
    background: var(--klyk-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
    animation: pulse 2s infinite;
}

/* -----------------------------------------------------------------
   5. COMPOSANTS UI
----------------------------------------------------------------- */

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    gap: 8px;
}

.btn-primary {
    background: var(--text-main); /* Noir */
    color: white;
}

.btn-primary:hover {
    background: #333; /* Gris très foncé */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Formulaire */
.form-container {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 6px;
    display: flex;
    box-shadow: var(--shadow-md);
    max-width: 480px;
    margin: 40px auto 20px;
    transition: var(--transition-fast);
}

.form-container:focus-within {
    border-color: var(--klyk-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.form-input {
    flex: 1;
    border: none;
    padding: 0 24px;
    font-size: 16px;
    border-radius: var(--radius-full);
    outline: none;
    color: var(--text-main);
}

/* Badges */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--klyk-bg-light);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 32px;
    border: 1px solid rgba(0,0,0,0.02);
}

.badge-icon {
    color: #f5a623; /* Or */
    display: flex;
}

/* -----------------------------------------------------------------
   6. HERO SECTION
----------------------------------------------------------------- */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    text-align: center;
}

.subtitle {
    font-size: 21px;
    max-width: 640px;
    margin: 24px auto 40px;
    color: var(--text-secondary);
}

/* Timer */
.timer-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.timer-block {
    background: var(--klyk-bg-light);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    min-width: 100px;
    text-align: center;
}

.time-val {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.time-unit {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-weight: 600;
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
}

.avatar-pile { display: flex; }
.avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: #ddd;
    margin-left: -10px;
}
.avatar:first-child { margin-left: 0; background: #a1a1a6; }
.avatar:nth-child(2) { background: #86868b; }
.avatar:nth-child(3) { background: #1d1d1f; }

/* -----------------------------------------------------------------
   7. SECTIONS & CARTES
----------------------------------------------------------------- */
.section {
    padding: 120px 0;
}

.section-bg-secondary {
    background-color: var(--klyk-bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- GRID PROCESS (Cercles connectés) --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* La ligne grise derrière les cercles */
.process-grid::before {
    content: '';
    position: absolute;
    top: 40px; left: 15%; right: 15%;
    height: 2px;
    background: linear-gradient(90deg, #e5e5e5 50%, transparent 50%);
    background-size: 10px 1px;
    z-index: 0;
}

.process-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    border: 1px solid rgba(0,0,0,0.04);
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.icon-circle {
    width: 80px; height: 80px;
    background: var(--klyk-bg-light);
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    color: var(--klyk-blue);
    font-size: 32px;
}

.step-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--klyk-blue);
    font-weight: 700;
    margin-bottom: 12px;
}

/* --- TABLET MOCKUP (CSS PUR) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.value-visual {
    background: var(--klyk-bg-light);
    border-radius: var(--radius-lg);
}

/* -----------------------------------------------------------------
   8. MARQUEE (PARTENAIRES) - LE FIX EST ICI
----------------------------------------------------------------- */
.partners-section {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    /* Compatibilité Apple/Chrome */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 60px;
    animation: scroll 40s linear infinite;
    align-items: center;
    /* Force l'alignement en ligne même si flex bug */
    flex-direction: row; 
    width: max-content;
}

.partner-logo {
    font-size: 18px;
    font-weight: 700;
    color: #d2d2d7;
    white-space: nowrap;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* -----------------------------------------------------------------
   9. TARIFS & ROI (Les boites prix)
----------------------------------------------------------------- */
.roi-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* -----------------------------------------------------------------
   10. FAQ (ACCORDION)
----------------------------------------------------------------- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-question {
    padding: 24px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active .icon-plus { transform: rotate(45deg); }
.icon-plus { transition: transform 0.3s; color: var(--klyk-blue); }

/* -----------------------------------------------------------------
   11. FOOTER
----------------------------------------------------------------- */
footer {
    background: var(--text-main); /* Noir */
    color: #86868b; /* Gris texte */
    padding: 80px 0 40px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h5 {
    color: white;
    margin-bottom: 16px;
    font-size: 12px;
}

.footer-col a {
    color: #86868b;
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-col a:hover { color: white; }

/* -----------------------------------------------------------------
   12. ANIMATIONS & RESPONSIVE
----------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeIn 0.8s var(--ease-apple) forwards;
    opacity: 0; /* Caché au départ */
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* MOBILE */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }
    
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    
    /* On empile tout en colonne */
    .process-grid, 
    .about-grid, 
    .footer-grid, 
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-grid::before { display: none; } /* On cache la ligne */
    
    .form-container {
        flex-direction: column;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }
    
    .form-input {
        background: white;
        border: 1px solid var(--border-light);
        margin-bottom: 12px;
        height: 56px;
        box-shadow: var(--shadow-sm);
    }
    
    .btn-primary { width: 100%; height: 56px; }
}