/* --- IMPORTATION POLICE --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Poppins:wght@700;900&display=swap');

:root {
    --primary: #0056b3; /* Bleu Sport Pro */
    --accent: #00d1b2;  /* Vert Eau / Cyan */
    --bg-body: #f4f7f9; /* Gris très clair bleuté */
    --bg-card: #ffffff; /* Blanc pur */
    --bg-header: #ffffff;
    --text-main: #1a202c; /* Gris très foncé (presque noir) */
    --text-dim: #718096;  /* Gris texte secondaire */
    --border: #e2e8f0;    /* Bordures fines et claires */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0; padding: 0;
    line-height: 1.6;
}

/* --- HEADER --- */
header {
    background-color: var(--bg-header);
    padding: 15px 0;
    border-bottom: 2px solid var(--primary);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow);
}

.main-nav {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1250px; margin: auto; padding: 0 25px;
}

.logo {
    font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 900;
    color: var(--primary); text-decoration: none;
}
.logo span { color: var(--accent); }

.nav-links a {
    color: var(--text-main); text-decoration: none; font-weight: 700;
    font-size: 14px; text-transform: uppercase; transition: 0.3s;
}
.nav-links a:hover { color: var(--accent); }

/* --- LAYOUT --- */
.main-layout {
    display: flex; max-width: 1250px; margin: 40px auto; gap: 40px; padding: 0 25px;
}

.content-left { flex: 2.5; }
.sidebar-right { flex: 1; }

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #003366 100%);
    color: white; padding: 60px 40px; border-radius: 15px; margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.2);
}

.hero-section h1 { font-family: 'Poppins', sans-serif; font-size: 2.8rem; margin-bottom: 10px; }
.hero-section p { color: #e2e8f0; font-size: 1.1rem; }

.btn-main-signup {
    display: inline-block; background: var(--accent); color: #003366;
    padding: 14px 30px; text-decoration: none; font-weight: 800;
    border-radius: 8px; margin-top: 20px; transition: 0.3s;
}
.btn-main-signup:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 209, 178, 0.4); }

/* --- GRILLE ARTICLES --- */
.news-grid { display: flex; flex-wrap: wrap; gap: 20px; }

.card-article-home {
    width: 200px; background: var(--bg-card); border-radius: 12px;
    border: 1px solid var(--border); overflow: hidden; transition: 0.3s;
    box-shadow: var(--shadow);
}
.card-article-home:hover { transform: translateY(-5px); border-color: var(--accent); }

.card-img-container { width: 100%; height: 110px; background: #eee; overflow: hidden; }
.card-img-container img { width: 100%; height: 100%; object-fit: cover; }

.card-content { padding: 12px; }
.card-content h3 { 
    font-size: 0.9rem; color: var(--text-main); margin: 0 0 10px 0; 
    height: 2.6em; overflow: hidden; 
}

.read-more-link { color: var(--primary) !important; font-weight: 700; font-size: 12px; text-decoration: none; }
.read-more-link:hover { color: var(--accent) !important; }

/* --- SIDEBAR LOGIN --- */
.login-block {
    background: var(--bg-card); padding: 30px; border-radius: 15px;
    border: 1px solid var(--border); box-shadow: var(--shadow);
}

.login-block h3 { color: var(--primary); margin-top: 0; }
.login-block input {
    width: 100%; padding: 12px; margin-bottom: 15px;
    border: 1px solid var(--border); border-radius: 8px; background: #f8fafc;
}
.login-block button {
    width: 100%; padding: 12px; background: var(--primary);
    color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
}

/* --- BOUTON PLUS D'ARTICLES --- */
.container-more-btn { margin: 40px 0; text-align: center; }
.btn-more-articles {
    display: inline-block; padding: 12px 35px; border: 2px solid var(--primary);
    color: var(--primary); text-decoration: none; font-weight: 800;
    border-radius: 50px; transition: 0.3s;
}
.btn-more-articles:hover { background: var(--primary); color: white; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .main-layout { flex-direction: column; }
}