@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --purple: #6B4FFF;
    --purple-dark: #5538DB;
    --bg-light: #F5F4FD;
    --border: #E8E6F0;
    --text-dark: #1A1A2E;
    --text-gray: #64748B;
}

html { background: #7C3AED; }

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background: #7C3AED;
    min-height: 100vh;
    color: var(--text-dark);
}

/* ─── HERO ─── */
.hero {
    background: linear-gradient(to bottom, #7C3AED 0%, #4F8EF7 100%);
    padding: env(safe-area-inset-top, 0px) 20px 100px;
    position: relative;
    text-align: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ─── LOGO ─── */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-icon-box svg { width: 20px; height: 20px; }

.logo-euro, .logo-dot, .logo-deals {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    letter-spacing: -0.5px;
}
.logo-euro { font-weight: 700; }
.logo-dot  { font-weight: 700; margin: 0 1px; }
.logo-deals { font-weight: 800; }

/* Dark variant — fond gradient */
.logo-dark .logo-icon-box {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
}
.logo-dark .logo-icon-box svg { fill: white; }
.logo-dark .logo-euro  { color: white; }
.logo-dark .logo-dot   { color: #34d399; }
.logo-dark .logo-deals { color: #34d399; }

/* Light variant — fond blanc */
.logo-light .logo-icon-box { background: #ede9fe; }
.logo-light .logo-icon-box svg { fill: #7c3aed; }
.logo-light .logo-euro { color: #1e1b4b; }
.logo-light .logo-dot  { color: #7c3aed; }
.logo-light .logo-deals {
    background: linear-gradient(90deg, #7c3aed 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; }

.btn-login {
    background: rgba(255,255,255,0.15) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    border: 1px solid rgba(255,255,255,0.25);
}

.hero-content {
    max-width: 760px;
    margin: 40px auto 0;
    padding-top: 40px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 32px;
    color: white;
}

h1 {
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
}

h1 .accent { color: #67E8F9; }

.subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 48px;
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 620px;
    margin: 0 auto 16px;
}

.hero-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-size: 0.95rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.hero-form input::placeholder { color: #999; }

.hero-form button {
    background: #1a1a2e;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.hero-form button:hover { background: #2d2d4e; }

.reassurance { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ─── SECTIONS COMMUNES ─── */
.section-title {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 56px;
    color: var(--text-dark);
    text-align: center;
}

.section-title .accent { color: var(--purple); }

/* ─── HOW IT WORKS ─── */
.how {
    text-align: center;
    padding: 100px 60px;
    background: var(--bg-light);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    flex-wrap: wrap;
}

.step { max-width: 220px; text-align: center; }

.step-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #7C3AED, #6B4FFF);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon svg { width: 30px; height: 30px; color: white; stroke: white; }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 0.88rem; color: var(--text-gray); line-height: 1.6; }

/* ─── POUR QUI ─── */
.pour-qui {
    text-align: center;
    padding: 80px 60px 100px;
    background: var(--bg-light);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.audience-card {
    background: white;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.audience-icon { color: var(--purple); margin-bottom: 16px; }
.audience-icon svg { width: 36px; height: 36px; }
.audience-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.audience-card p { font-size: 0.85rem; color: var(--text-gray); line-height: 1.5; }

/* ─── DEALS ─── */
.deals-section {
    padding: 100px 60px;
    background: var(--bg-light);
    text-align: center;
}

.deals-subtitle {
    color: var(--text-gray);
    margin-bottom: 48px;
    font-size: 0.95rem;
    margin-top: -40px;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 0 auto 12px;
}

.deal-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: left;
}

.deal-route-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.deal-city { display: flex; flex-direction: column; }
.deal-city-right { text-align: right; }
.city-label { font-size: 0.75rem; color: var(--text-gray); margin-bottom: 2px; }
.iata { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); }

.deal-plane {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ccc;
    font-size: 0.7rem;
}
.deal-plane svg { width: 16px; height: 16px; color: var(--purple); }

.deal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.deal-type { font-size: 0.85rem; color: var(--text-gray); }
.deal-price { font-size: 1.6rem; font-weight: 900; color: var(--purple); }
.deal-meta { font-size: 0.78rem; color: #aaa; margin-top: 8px; }
.deals-note { font-size: 0.8rem; color: #aaa; margin-top: 16px; }

.btn-reserver {
    display: block;
    text-align: center;
    background: var(--purple);
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-top: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.btn-reserver:hover { background: var(--purple-dark); }

/* ─── TRUST ─── */
.trust-section {
    background: var(--bg-light);
    padding: 48px 60px;
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
}
.trust-item svg { color: var(--purple); width: 20px; height: 20px; flex-shrink: 0; }

/* ─── FOOTER ─── */
footer {
    text-align: center;
    padding: 32px;
    background: white;
    border-top: 1px solid var(--border);
}
.footer-brand { color: var(--purple); font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }
footer p { font-size: 0.85rem; color: var(--text-gray); }

/* ─── AUTH PAGES ─── */
.auth-center-page {
    min-height: 100vh;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-center-box {
    background: white;
    border-radius: 20px;
    padding: 48px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.auth-logo {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-center-box h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 8px; }
.auth-sub { color: var(--text-gray); margin-bottom: 32px; font-size: 0.95rem; }

.auth-success {
    background: #f0fff4;
    color: #276749;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 3px solid #38a169;
}

.auth-error {
    background: #fff0f0;
    color: #e53e3e;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 3px solid #e53e3e;
}

.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form label { font-size: 0.85rem; font-weight: 600; color: #333; }

.input-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8F8FC;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
}

.input-icon i, .input-icon svg { color: #aaa; width: 18px; height: 18px; flex-shrink: 0; }

.input-icon input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.auth-form button {
    background: linear-gradient(135deg, #7C3AED, #6B4FFF);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
}

.auth-form button:hover { opacity: 0.9; }

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-gray);
}
.auth-switch a { color: var(--purple); font-weight: 700; text-decoration: none; }

.forgot {
    text-align: right;
    font-size: 0.85rem;
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
}

/* ─── HAMBURGER MENU ─── */
.nav-hamburger {
    display: none;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    align-items: center;
}
.nav-hamburger svg { width: 20px; height: 20px; stroke: white; display: block; }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
}
.mobile-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu-cta {
    margin-top: 10px;
    background: white !important;
    color: #7C3AED !important;
    text-align: center;
    padding: 12px !important;
    border-radius: 8px;
    font-weight: 700 !important;
    border-bottom: none !important;
    display: block;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    nav { padding: 20px 24px; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .mobile-menu.open { display: flex; }
    .logo-euro, .logo-dot, .logo-deals { font-size: 17px; }
    .logo-icon-box { width: 36px; height: 36px; }
    .nav-logo { gap: 8px; }
    h1 { font-size: 2.4rem; }
    .hero-form { flex-direction: column; }
    .how, .pour-qui, .deals-section { padding: 60px 24px; }
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-section { gap: 32px; padding: 40px 24px; }
    .steps { gap: 40px; }
}
