/*
Theme Name: Thème Association
Author: Ton Nom
Description: Thème WordPress sur-mesure avec en-tête image, menu et sidebar widgetisée.
Version: 1.0
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f4f4f4;
    line-height: 1.6;
}

/* En-tête avec image de fond */
.site-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.site-title {
    position: relative;
    color: #fff;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    text-align: center;
    padding: 0 15px;
}

/* Navigation principale */
.main-navigation {
    background-color: #1a252f;
    position: relative;
}

.main-navigation-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Bouton Burger (masqué sur PC) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    padding: 10px 15px;
    cursor: pointer;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.main-navigation a:hover {
    background-color: #2c3e50;
}

/* Layout principal (Grid sur PC) */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.site-main {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
}

/* Sidebar & Widgets */
.site-sidebar .widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.assoc-logo-container {
    text-align: center;
    margin: 15px 0;
}

.assoc-logo-container img,
.custom-logo {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.widget-count {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
    text-align: center;
    margin-top: 5px;
}

/* Pied de page */
.site-footer {
    background-color: #1a252f;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* =========================================================================
   RESPONSIVE / MOBILE
   ========================================================================= */
@media screen and (max-width: 768px) {
    /* Layout passe sur 1 colonne */
    .container {
        grid-template-columns: 1fr;
    }

    /* Activation du bouton Burger */
    .menu-toggle {
        display: block;
    }

    /* Le menu se masque sur mobile */
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1a252f;
    }

    /* Classe toggle activée en JS */
    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation a {
        border-top: 1px solid #2c3e50;
        padding: 12px 20px;
    }
}