/* ===== Campus France Comores - Landing Page ===== */
/* Flat design - Couleurs du logo : bleu royal #003366, rouge #C41E3A */

:root {
    --blue-primary: #003366;
    --blue-light: #004080;
    --blue-soft: #e8f0f8;
    --red-primary: #C41E3A;
    --red-light: #e03550;
    --red-soft: #fef0f2;
    --white: #ffffff;
    --gray-100: #f7f8fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
    --shadow-sm: 0 2px 8px rgba(0, 51, 102, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 51, 102, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 51, 102, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--gray-200);
}

.header .nav-links a {
    color: inherit;
}

.header:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.95);
}

.header:not(.scrolled) .logo {
    color: var(--white);
}

.header:not(.scrolled) .logo img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header.scrolled .logo {
    color: var(--blue-primary);
}

.header.scrolled .logo img {
    filter: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--blue-primary) !important;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 64, 128, 0.75) 50%, rgba(196, 30, 58, 0.4) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero .hero-title,
.hero .hero-subtitle {
    color: var(--white);
}

.hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.hero .hero-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(8px);
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--red-soft);
    color: var(--red-primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}

.hero-title .highlight {
    color: #ffb3bd;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.btn small {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.95;
}

.btn strong {
    font-size: 1.05rem;
}

.store-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.btn-app-store {
    background: var(--gray-900);
    color: var(--white);
}

.btn-app-store:hover {
    background: var(--blue-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero .btn-app-store {
    background: var(--white);
    color: var(--blue-primary);
}

.hero .btn-app-store:hover {
    background: var(--red-soft);
    color: var(--red-primary);
}

.hero .btn-google-play {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.hero .btn-google-play:hover {
    background: var(--white);
    color: var(--blue-primary);
    border-color: var(--white);
}

.hero .btn-web {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.hero .btn-web:hover {
    background: var(--white);
    color: var(--blue-primary);
    border-color: var(--white);
}

.btn-google-play {
    background: var(--white);
    color: var(--gray-900);
    border: 2px solid var(--gray-200);
}

.btn-google-play:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
    background: var(--red-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero visual - Phone mockup */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, var(--blue-primary) 0%, var(--blue-light) 100%);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-preview-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.app-preview-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== Features ===== */
.features {
    width: 100%;
    margin: 0;
    padding: 4rem 1.5rem;
}

.features .section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 0.5rem;
}

.features .section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: 880px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    border: none;
    border-bottom: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    padding: 2.5rem 2.25rem;
    transition: background var(--transition);
}

.feature-card:nth-child(odd) {
    border-right: 1px solid var(--gray-200);
}

.feature-card:nth-child(even) {
    border-right: none;
}

.feature-card:hover {
    background: var(--gray-100);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--blue-soft);
    color: var(--blue-primary);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 100%);
    color: var(--white);
    padding: 4rem 1.5rem;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-section .cta-buttons {
    justify-content: center;
}

.cta-section .btn-app-store {
    background: var(--white);
    color: var(--blue-primary);
}

.cta-section .btn-app-store:hover {
    background: var(--red-soft);
    color: var(--red-primary);
}

.cta-section .btn-google-play {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-section .btn-google-play:hover {
    background: var(--white);
    color: var(--blue-primary);
    border-color: var(--white);
}

.cta-section .btn-web {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-section .btn-web:hover {
    background: var(--white);
    color: var(--blue-primary);
    border-color: var(--white);
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-100);
    padding: 3rem 1.5rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    height: 96px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.footer-copyright {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-sep {
    margin: 0 0.35rem;
    opacity: 0.6;
}

.footer-legal {
    color: var(--blue-primary);
    text-decoration: none;
}

.footer-legal:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-bottom: 2rem;
    }

    .hero .cta-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
        border-radius: 28px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 1rem;
    }

    .logo span {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card:nth-child(odd),
    .feature-card:nth-child(even) {
        border-right: none;
    }

    .feature-card {
        border-bottom: 1px solid var(--gray-200);
    }
}
