/* ========== STYLES GÉNÉRAUX ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f0f8ff;  /* Fond légèrement bleu ciel */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== HEADER ========== */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #87CEEB 0%, #5DADE2 100%);
    color: white;
    padding: 10px 30px;
    flex-wrap: wrap;
}


/* Titre centré */
.title-center {
    flex: 1;
    text-align: center;
}

.title-center h1 {
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.title-center .subtitle {
    font-size: 0.8rem;
    opacity: 0.95;
    margin-top: 5px;
    color: #fff;
}

/* Espace connexion à droite */
.logo-right {
    flex: 0 0 auto;
    min-width: 180px;
    text-align: right;
}

/* Boutons de connexion */
.btn-connexion {
    background-color: #FF8C42;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-connexion:hover {
    background-color: #e67e22;
    transform: scale(1.02);
}

.btn-connexion-admin {
    background-color: #e74c3c;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-connexion-admin:hover {
    background-color: #c0392b;
    transform: scale(1.02);
}

.btn-compte {
    background-color: #2ECC71;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-compte:hover {
    background-color: #27ae60;
    transform: scale(1.02);
}

.btn-deconnexion {
    background-color: #e74c3c;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-deconnexion:hover {
    background-color: #c0392b;
    transform: scale(1.02);
}

.user-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-info a {
    margin-left: 5px;
}

/* ========== NAVIGATION ========== */
nav {
    background: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

nav ul li a:hover {
    background-color: #2E86C1;
    color: #fff;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%);
    min-width: 220px;
    z-index: 1000;
    border-radius: 8px;
    top: 100%;
    left: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dropdown-content a {
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.dropdown-content a:hover {
    background-color: #2E86C1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ========== MAIN CONTENT ========== */
main {
    flex: 1;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    width: 100%;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cartes */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

/* Grilles */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ========== TYPOGRAPHIE ========== */
h1, h2, h3 {
    color: #2C3E50;
    margin-bottom: 20px;
}

h1 {
    font-size: 2rem;
    border-left: 4px solid #3498DB;
    padding-left: 15px;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #3498DB;
    padding-bottom: 10px;
    display: inline-block;
}

h3 {
    font-size: 1.2rem;
}

/* Liens */
a {
    color: #3498DB;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #5DADE2;
    text-decoration: underline;
}

/* ========== FORMULAIRES ========== */
form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2C3E50;
}

input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3498DB;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

button, .btn {
    background-color: #3498DB;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

button:hover, .btn:hover {
    background-color: #5DADE2;
    transform: scale(1.02);
}

/* ========== ALERTES ========== */
.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: #e7f3ff;
    color: #004085;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498DB;
}

/* ========== TABLEAUX ========== */
table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

th {
    background: #3498DB;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: #f8f9fa;
}

/* ========== PAGE MEMBRES ========== */
.membre-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.membre-card:hover {
    transform: translateY(-5px);
}

.membre-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #3498DB;
}

.membre-nom {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 5px;
}

.membre-type {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.membre-specialite {
    font-size: 0.8rem;
    color: #3498DB;
}

/* ========== PAGE ÉVÉNEMENTS ========== */
.event-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #3498DB;
}

.event-date {
    color: #3498DB;
    font-weight: bold;
    margin-bottom: 10px;
}

.event-lieu {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ========== PAGE PUBLICATIONS ========== */
.publication-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.publication-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 10px;
}

.publication-authors {
    color: #666;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.publication-journal {
    color: #3498DB;
    font-size: 0.85rem;
    font-style: italic;
}

/* ========== STATISTIQUES ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, #3498DB 0%, #5DADE2 100%);
    color: white;
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* ========== FOOTER ========== */
footer {
    background: linear-gradient(135deg, #87CEEB 0%, #5DADE2 100%);
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info p {
    margin: 5px 0;
    font-size: 0.85rem;
}

.footer-social {
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s;
    background-color: rgba(255,255,255,0.2);
}

.social-link:hover {
    opacity: 0.9;
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo-right {
        text-align: center;
    }
    
    .title-center h1 {
        font-size: 1.4rem;
    }
    
    .logo-img {
        height: 50px;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        background: #5DADE2;
        box-shadow: none;
    }
    
    .dropdown-content a {
        padding-left: 35px;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .user-info {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        padding: 10px 15px;
    }
    
    main {
        padding: 0 15px;
    }
}