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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.6;
}

/* LAYOUT GLOBAL */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    background: rgba(245, 245, 247, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.nav-links a {
    margin-left: 24px;
    text-decoration: none;
    font-size: 15px;
    color: #1d1d1f;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.nav-links a:hover {
    opacity: 1;
}

/* HERO */
.hero {
    padding: 80px 0 60px 0;
}

.hero-content {
    max-width: 720px;
}

.badge {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6e6e73;
    background: #e5e5ea;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    color: #4b4b4f;
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* BOUTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease,
        border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
    background: #0071e3;
    color: #fff;
}

.btn-primary:hover {
    background: #007aff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: #0071e3;
    border-color: rgba(0, 113, 227, 0.3);
}

.btn-ghost:hover {
    background: rgba(0, 113, 227, 0.06);
}

/* SECTIONS */
.section {
    padding: 40px 0 20px 0;
}

.section-light {
    background: #ffffff;
    border-radius: 26px;
    padding: 40px 24px 30px 24px;
    margin-bottom: 26px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

.section-header {
    margin-bottom: 26px;
}

.section-header h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.section-header p {
    color: #6e6e73;
    font-size: 15px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

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

.card p {
    font-size: 14px;
    color: #555;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

/* À PROPOS */
.about {
    max-width: 780px;
    font-size: 15px;
    color: #4b4b4f;
}

.about p + p {
    margin-top: 10px;
}

/* CONTACT */
.contact-box {
    max-width: 680px;
    font-size: 15px;
    color: #4b4b4f;
}

.contact-box p + p {
    margin-top: 8px;
}

.hint {
    font-size: 13px;
    color: #86868b;
}

/* FOOTER */
.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 18px 40px 28px 40px;
    font-size: 12px;
    color: #8e8e93;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .site-header {
        padding: 12px 20px;
    }

    main {
        padding: 0 16px 40px 16px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 50px;
    }

    .hero h1 {
        font-size: 32px;
    }
}

/* Ombre du header quand on scroll — DOIT être hors du @media */
.site-header.scrolled {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}