/* ============================================
   PROXIVOTE — style.css
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #FFFFFF;
    --bg-alt: #F2F4F7;
    --text: #0D1B2A;
    --text-muted: #5A6B7E;
    --accent: #2C5F8A;
    --accent-light: #EBF3FB;
    --accent2: #4A9E8E;
    --border: #D6DCE4;
    --success: #2D7D46;
    --danger: #B03A2E;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(13,27,42,.08);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Marianne', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: var(--text);
    padding: .875rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.3px;
}

.logo span {
    color: var(--accent2);
}

.header-tag {
    font-size: .75rem;
    color: var(--text-muted);
    letter-spacing: .3px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    padding: 5rem 0 3.5rem;
    background: var(--text);
    color: #fff;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -.5px;
}

.hero h1 br {
    display: block;
}

.hero-sub {
    font-size: 1.1rem;
    color: #A8B8C8;
    max-width: 560px;
    line-height: 1.7;
}

/* ============================================
   CHAMBRE SECTION
   ============================================ */

.chambre-section {
    padding: 3rem 0;
    background: var(--bg-alt);
}

.chambre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.chambre-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.chambre-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.chambre-icon {
    font-size: 2rem;
    line-height: 1;
    margin-top: .1rem;
}

.chambre-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.chambre-header p {
    font-size: .85rem;
    color: var(--text-muted);
}

.niveaux {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.niveau-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 1.125rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, background .2s, transform .15s;
    background: var(--bg);
}

.niveau-btn:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateX(3px);
}

.niveau-btn--featured {
    border-color: var(--accent);
    background: var(--accent-light);
}

.niveau-label {
    font-weight: 700;
    font-size: .95rem;
}

.niveau-desc {
    font-size: .8rem;
    color: var(--text-muted);
}

/* ============================================
   EXPLAINER
   ============================================ */

.explainer {
    padding: 4rem 0;
    background: var(--bg);
}

.explainer h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding-top: .4rem;
}

.step-text strong {
    font-weight: 700;
    font-size: .95rem;
}

.step-text span {
    font-size: .875rem;
    color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    margin-top: auto;
    background: var(--text);
    color: #A8B8C8;
    padding: 2rem 0;
    font-size: .8rem;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #A8B8C8;
    text-decoration: none;
    transition: color .2s;
}

.footer-links a:hover {
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
    .chambre-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}