/* --- VARIABLES DE COULEURS --- */
:root {
    --bleu-logo: #0033cc; /* Bleu inspiré de ton logo */
    --gris-clair: #f4f7f6;
    --gris-texte: #555555;
    --blanc: #ffffff;
/*    --bkgrndcl: #ffffffe6;  */
    --bkgrndcl: rgba(240, 240, 240, 0.75);
}

/* --- BASE --- */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    /* --- AJOUT DU FOND D'ÉCRAN --- */
/*  --- background-image: url('../img/fond1.jpeg'); --- */
    background-image: url('../img/fond2.webp');
    background-color: var(--bkgrndcl);
    background-size: cover; /* L'image s'adapte à tout l'écran */
    background-attachment: fixed; /* L'image reste fixe quand on scrolle */
    background-position: center;
}

/* --- EN-TÊTE ET NAVIGATION --- */
header {
    background: var(--bkgrndcl);
/* --- background-color: var(--blanc); --- */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Pour les téléphones */
}

header .logo h1 {
    color: var(--bleu-logo);
    margin: 0;
    font-size: 24px;
}

nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--gris-texte);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--blanc);
    background-color: var(--bleu-logo);
}

/* --- CONTENU PRINCIPAL --- */
main {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 70vh;
}

/* --- SECTION ACCUEIL (HERO) --- */
.hero {
    text-align: center;
    background: var(--bkgrndcl);
/* --- background-color: var(--blanc); --- */
    padding: 40px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-top: 5px solid var(--bleu-logo);
}

.hero h2 {
    color: var(--bleu-logo);
    font-size: 28px;
}

.hero p {
    font-size: 18px;
    color: var(--gris-texte);
}

/* --- GRILLES RESPONSIVE --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* LA BRIQUE DE BASE (Gère la transparence, l'ombre et les marges) */
.card {
    background: var(--bkgrndcl);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* REGLE POUR TOUS LES TITRES DANS LES CARTES */
.card h3 {
    color: var(--bleu-logo);
    margin-top: 0;
    border-bottom: 2px solid var(--gris-clair);
    padding-bottom: 10px;
}

/* LES BRIQUES DE DECORATION (Seulement la bordure !) */
.border-blue { border-top: 4px solid #412ca7; }
.border-red { border-top: 4px solid #a7302c; }
.border-green { border-top: 4px solid #28a745; }
.border-yellow { border-top: 4px solid #ffc107; } /* Au cas où pour plus tard ! */

/* Adaptation pour téléphones */
@media (max-width: 768px) {
    header { flex-direction: column; text-align: center; gap: 15px; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* --- PIED DE PAGE --- */
footer {
    background-color: #333;
    color: var(--blanc);
    text-align: center;
    padding: 15px 20px;
    margin-top: 40px;
}

/* --- VUE LISTE (1 colonne) --- */
.grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 15px;
    background-color: var(--blanc);
    color: var(--bleu-logo);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--bleu-logo);
    font-weight: bold;
    transition: 0.3s;
}

.pagination a:hover, .pagination a.actif {
    background-color: var(--bleu-logo);
    color: var(--blanc);
}
