/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f2f2f2;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
.header {
    background: #0b1c2d;
    color: #fff;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    color: #e10600;
}

nav a {
    margin-left: 20px;
    font-weight: 600;
    color: #fff;
}

nav a:hover {
    color: #e10600;
}

/* TITRES */
h1, h2, h3 {
    margin: 15px 0;
    color: #0b1c2d;
}

/* ARTICLES LISTE */
.article {
    background: #fff;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.article-content {
    padding: 15px;
}

.article-content h2 {
    font-size: 20px;
}

.badge {
    display: inline-block;
    background: #e10600;
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
}

/* PAGE ARTICLE */
.article-full img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    margin-bottom: 15px;
}

.meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

/* COMMENTAIRES */
.comment {
    background: #f7f7f7;
    padding: 10px;
    margin-top: 10px;
    border-left: 4px solid #e10600;
}

/* FORMULAIRES */
input, textarea, select, button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

button {
    background: #e10600;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: #b80000;
}

/* FOOTER */
.footer {
    background: #0b1c2d;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .article img {
        height: 160px;
    }
}
/* ===== FORMULAIRES LOGIN / REGISTER / PROFILE ===== */
.form-container {
    max-width: 400px;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.form-container h2 {
    text-align: center;
    color: #0b1c2d;
    margin-bottom: 20px;
    font-size: 24px;
}

.form-container input,
.form-container textarea,
.form-container select,
.form-container button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus {
    outline: none;
    border-color: #e10600;
    box-shadow: 0 0 5px rgba(225,6,0,0.4);
}

.form-container button {
    background: #e10600;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.form-container button:hover {
    background: #b80000;
}

.form-container p {
    text-align: center;
    font-size: 14px;
}

.form-container a {
    color: #e10600;
    font-weight: bold;
}

.form-container a:hover {
    text-decoration: underline;
}

.error-message {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}
/* ===== LOGO ===== */
.logo {
    font-size: 28px;           /* Taille du texte */
    font-weight: 900;          /* Gras comme RMC Sport */
    color: #00b140;            /* Vert personnalisé du logo */
    text-transform: uppercase; /* Majuscules */
    letter-spacing: 1px;
}

.header .logo img {
    height: 50px;              /* Si tu as un logo image */
    width: auto;
    vertical-align: middle;
}


.article-card {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    align-items: flex-start;
}

.article-image img {
    width: 150px;       /* largeur carrée */
    height: 150px;      /* hauteur carrée */
    object-fit: cover;   /* remplissage complet sans déformation */
    border-radius: 5px;
}

.article-content {
    flex: 1;             /* prend le reste de l'espace */
}

.article-content h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.article-content p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

.article-content small {
    color: #666;
}
.menu-toggle {
    display: none;                 /* caché par défaut sur desktop */
    font-size: 28px;               /* taille de l’icône */
    cursor: pointer;               /* pointeur pour cliquer */
    color: #fff;                   /* couleur blanche */
}
@media screen and (max-width: 768px) {

    /* Hamburger visible sur mobile */
    .menu-toggle {
        display: block;            /* visible sur mobile */
    }

    /* Menu caché par défaut */
    .header nav {
        display: none;             /* caché par défaut */
        flex-direction: column;    /* menu vertical sur mobile */
        background-color: #2e7d32; /* même couleur que header */
        width: 100%;               /* prend toute la largeur */
        margin-top: 10px;          /* espace sous le header */
        border-radius: 5px;        /* coins arrondis */
        padding: 10px 0;           /* espace intérieur */
    }

    /* Liens et numéro en ligne verticale */
    .header nav a,
    .header nav span.contact-number,
    .header nav span {
        display: block;            /* chaque élément sur sa ligne */
        text-align: center;        /* centré */
        padding: 8px 0;            /* espace entre les liens */
    }

    /* Quand JS ajoute .show, menu devient visible */
    .header nav.show {
        display: flex;             /* menu visible */
    }

    /* Numéro caché par défaut sur mobile */
    .header nav span.contact-number {
        display: none;             /* caché tant que .show n’est pas activé */
    }

    /* Numéro visible seulement quand menu ouvert */
    .header nav.show span.contact-number {
        display: block;
    }
}