/* HODEA - Fichier de styles globaux
 * Contient les styles communs à toutes les pages du site pour une apparence cohérente
 */

/* Variables de couleurs */
:root {
    --primary-color: #1a3a5f;
    --primary-color-light: #2a5a8f;
    --primary-color-dark: #102a47;
    --secondary-color: #3a7aaf;
    --background-light: #ffffff;
    --background-dark: #f8f9fa;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #888888;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 10px rgba(0,0,0,0.15);
}

/* Réinitialisation des styles de base */
html {
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Styles container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Styles des sections */
section {
    margin-bottom: 40px;
    padding: 30px 0;
}

.section-light {
    background-color: var(--background-light);
}

.section-dark {
    background-color: var(--background-dark);
}

/* Styles des titres */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-top: 0;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
}

/* Styles du header */
header {
    width: 100%;
    background-color: var(--background-light);
    box-shadow: var(--shadow-light);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

header img {
    height: 40px;
}

.menu-icon {
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.message-icon img {
    height: 24px;
}

.header-search-form {
    width: 100%;
    padding: 10px 20px;
    background-color: var(--background-dark);
    border-top: 1px solid var(--border-color);
}

.search-bar {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
}

/* Styles du menu de navigation */
.menu {
    position: fixed;
    top: 0;
    left: -300px; /* Caché par défaut */
    width: 250px;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.menu.active {
    left: 0;
}

.menu ul {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.menu li {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
    transition: all 0.3s ease;
    font-size: 1.1em;
    font-weight: 500;
}

.menu li:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 40px;
}

.menu a {
    color: white;
    text-decoration: none;
}

.close-menu {
    position: absolute !important;
    top: 15px !important;
    left: 20px !important; /* Positionner à gauche du menu */
    right: auto !important;
    color: white !important;
    font-size: 60px !important; /* Croix encore plus grosse */
    cursor: pointer !important;
    font-weight: 200 !important; /* Police encore plus fine */
    line-height: 50px !important; /* Améliorer l'alignement vertical */
    transition: all 0.3s ease !important;
    z-index: 1001 !important; /* S'assurer qu'elle est au-dessus */
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.close-menu:hover {
    color: rgba(255, 255, 255, 0.7) !important;
    transform: scale(1.15) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
}

/* Styles pour les cartes */
.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    font-size: 1.3em;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: white;
}

.card-content {
    padding: 20px;
}

/* Styles des boutons */
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    border: 1px solid var(--primary-color);
    transition: all 0.2s;
    cursor: pointer;
    text-align: center;
}

.btn-secondary:hover {
    background-color: var(--background-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Styles pour la section hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-light) 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Styles pour le footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 25px 20px;
    margin-top: 40px;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Formulaires */
form input, form textarea, form select {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Styles pour le forum */
.forum-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 15px;
}

.forum-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.forum-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.forum-excerpt {
    color: var(--text-medium);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.forum-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.8em;
}

/* Styles pour les événements */
.event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.event-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.event-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-date {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-bottom: 10px;
    align-self: flex-start;
}

/* Styles réactifs */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .hero p {
        font-size: 1em;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}