:root {
    --primary-blue: #0055FF;
    --primary-blue-hover: #0040CC;
    --bg-light: #F4F6F9;
    --card-bg: #FFFFFF;
    --text-main: #111827;
    --text-muted: #4B5563;
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    padding-bottom: 70px; /* Espace pour le footer fixe */
    -webkit-font-smoothing: antialiased;
}

main {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.hero {
    background-color: var(--card-bg);
    padding: 24px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hero h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.hero p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
}

.switcher-container {
    display: flex;
    background: var(--bg-light);
    padding: 4px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.switch-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.switch-btn.active {
    background: var(--card-bg);
    color: var(--primary-blue);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-weight: 700;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-block {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-block h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-share {
    font-size: 11px;
    background: rgba(0, 85, 255, 0.1);
    color: var(--primary-blue);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.carousel-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.activity-card {
    min-width: 180px;
    background: var(--bg-light);
    padding: 14px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
}

.activity-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.activity-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.btn-action {
    display: block;
    width: 100%;
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-action:hover {
    background-color: var(--primary-blue-hover);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.stat-box {
    background: var(--bg-light);
    padding: 12px;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-box span {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-box small {
    font-size: 11px;
    color: var(--text-muted);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 320px;
    padding: 20px;
    border-radius: var(--border-radius);
}

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

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg-light);
}