/* 
   style.css - Feuille de style principale
   Site Académique du Pr. Jean Martin
   Version: 1.0.0
   Date: 2024
*/

/* ==========================================================================
   TABLE DES MATIÈRES
   ==========================================================================
   1. Variables CSS et Reset
   2. Typographie et Styles de base
   3. Layout et Conteneurs
   4. Header et Navigation
   5. Sections communes
   6. Composants (Cartes, Boutons, Formulaires)
   7. Pages spécifiques
   8. Footer
   9. Responsive Design
   10. Animations et Effets
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES CSS ET RESET
   ========================================================================== */

:root {
    /* Palette de couleurs principale */
    --primary-color: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #34495e;
    
    --secondary-color: #3498db;
    --secondary-dark: #2980b9;
    --secondary-light: #5dade2;
    
    --accent-color: #e74c3c;
    --accent-dark: #c0392b;
    --accent-light: #f1948a;
    
    /* Couleurs de statut */
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    
    /* Couleurs neutres */
    --light-color: #ecf0f1;
    --light-gray: #bdc3c7;
    --medium-gray: #95a5a6;
    --dark-gray: #7f8c8d;
    --dark-color: #2c3e50;
    
    /* Couleurs de texte */
    --text-color: #333333;
    --text-light: #7f8c8d;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    
    /* Espacements */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-xxl: 3rem;     /* 48px */
    
    /* Bordures et rayons */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-round: 50%;
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.18);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* Largeurs max */
    --max-width-sm: 540px;
    --max-width-md: 720px;
    --max-width-lg: 960px;
    --max-width-xl: 1140px;
    --max-width-xxl: 1320px;
}

/* Reset et normalisation */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. TYPOGRAPHIE ET STYLES DE BASE
   ========================================================================== */

/* Hiérarchie des titres */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

/* Paragraphes et texte */
p {
    margin-bottom: var(--spacing-md);
    text-align: justify;
    hyphens: auto;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.4;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-justify {
    text-align: justify;
}

/* Liens */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Listes */
ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

li {
    margin-bottom: var(--spacing-sm);
}

ul.list-unstyled {
    list-style: none;
    padding-left: 0;
}

ul.list-inline {
    list-style: none;
    padding-left: 0;
}

.list-inline li {
    display: inline-block;
    margin-right: var(--spacing-sm);
}

/* Citations */
blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    font-style: italic;
    color: var(--text-light);
}

cite {
    display: block;
    margin-top: var(--spacing-sm);
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
}

/* Code et préformaté */
code {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--light-color);
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9em;
}

pre {
    background-color: var(--light-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-fluid {
    width: 100%;
    height: auto;
}

.img-thumbnail {
    padding: 4px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius-md);
}

.figure {
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.figure-caption {
    font-size: 0.875em;
    color: var(--text-light);
    text-align: center;
    margin-top: var(--spacing-sm);
}

/* ==========================================================================
   3. LAYOUT ET CONTENEURS
   ========================================================================== */

/* Conteneurs responsives */
.container {
    width: 100%;
    padding-right: var(--spacing-md);
    padding-left: var(--spacing-md);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: var(--max-width-sm);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: var(--max-width-md);
    }
}

@media (min-width: 992px) {
    .container {
        max-width: var(--max-width-lg);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: var(--max-width-xl);
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: var(--max-width-xxl);
    }
}

.container-fluid {
    width: 100%;
    padding-right: var(--spacing-md);
    padding-left: var(--spacing-md);
    margin-right: auto;
    margin-left: auto;
}

/* Grille */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col {
    flex: 1 0 0%;
    padding: 0 15px;
}

/* Espacements */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-xs) !important; }
.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }
.mt-5 { margin-top: var(--spacing-xl) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-xs) !important; }
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
.mb-5 { margin-bottom: var(--spacing-xl) !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: var(--spacing-xs) !important; }
.pt-2 { padding-top: var(--spacing-sm) !important; }
.pt-3 { padding-top: var(--spacing-md) !important; }
.pt-4 { padding-top: var(--spacing-lg) !important; }
.pt-5 { padding-top: var(--spacing-xl) !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: var(--spacing-xs) !important; }
.pb-2 { padding-bottom: var(--spacing-sm) !important; }
.pb-3 { padding-bottom: var(--spacing-md) !important; }
.pb-4 { padding-bottom: var(--spacing-lg) !important; }
.pb-5 { padding-bottom: var(--spacing-xl) !important; }

/* Utilitaires d'affichage */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flexbox utilities */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }

/* ==========================================================================
   4. HEADER ET NAVIGATION
   ========================================================================== */

/* Header principal */
.site-header {
    background-color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-lg);
    padding-top: 5px;
    padding-bottom: 5px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: var(--primary-color);
}

.logo:hover {
    text-decoration: none;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    transition: transform var(--transition-normal);
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Navigation principale */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--primary-color);
    font-weight: 500;
    padding: var(--spacing-sm) 0;
    position: relative;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.nav-link.active {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: var(--spacing-sm);
    transition: color var(--transition-fast);
}

.menu-toggle:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   5. SECTIONS COMMUNES
   ========================================================================== */

/* Section Hero (commune à toutes les pages) */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 152, 219, 0.8) 100%);
    color: var(--text-on-dark);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.hero-section h1 {
    color: var(--text-on-dark);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section générique */
.section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title.center {
    display: block;
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-icon {
    margin-right: var(--spacing-sm);
    color: var(--secondary-color);
}

/* Section avec fond alterné */
.section-alt {
    background-color: var(--light-color);
}

/* ==========================================================================
   6. COMPOSANTS
   ========================================================================== */

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    user-select: none;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Variantes de boutons */
.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #219653;
    border-color: #219653;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
    border-color: var(--warning-color);
}

.btn-warning:hover {
    background-color: #e67e22;
    border-color: #e67e22;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* Tailles de boutons */
.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Cartes */
.card {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--light-color);
    background-color: #f8f9fa;
}

.card-body {
    padding: var(--spacing-lg);
    flex-grow: 1;
}

.card-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--light-color);
    background-color: #f8f9fa;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.card-text {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--border-radius-sm);
}

.badge-primary {
    background-color: var(--secondary-color);
    color: white;
}

.badge-secondary {
    background-color: var(--medium-gray);
    color: white;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

/* Alertes */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid transparent;
}

.alert-primary {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.2);
    color: var(--secondary-dark);
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.2);
    color: var(--success-color);
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.2);
    color: var(--warning-color);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
}

/* Formulaires */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: white;
    background-clip: padding-box;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
}

.form-control.error {
    border-color: var(--danger-color);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: none;
}

.form-control.error + .error-message {
    display: block;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.form-check-input {
    width: 18px;
    height: 18px;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Tableaux */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-lg);
    background-color: white;
    box-shadow: var(--shadow-sm);
}

.table th {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-dark);
}

.table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-xl) 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-md);
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.page-link:hover {
    background-color: var(--light-color);
    text-decoration: none;
}

.page-link.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--secondary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid #eee;
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.timeline-period {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.timeline-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.timeline-description {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Barres de progression */
.progress {
    height: 8px;
    background-color: var(--light-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-bar {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Tags et étiquettes */
.tag {
    display: inline-block;
    background-color: var(--light-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-right: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

.tag-primary {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.tag-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.tag-warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.tag-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform var(--transition-normal);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--danger-color);
}

/* ==========================================================================
   7. PAGES SPÉCIFIQUES
   ========================================================================== */

/* Page Accueil */
.home-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1501504905252-473c47e087f8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
}

.presentation {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (max-width: 992px) {
    .presentation {
        grid-template-columns: 1fr;
    }
}

.profile-photo {
    text-align: center;
}

.profile-photo img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Page Publications */
.publications-filters {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: flex-end;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.filter-select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.publication-item {
    border-left: 4px solid transparent;
    transition: all var(--transition-normal);
}

.publication-item.article { border-left-color: var(--secondary-color); }
.publication-item.conference { border-left-color: var(--accent-color); }
.publication-item.book { border-left-color: var(--success-color); }
.publication-item.chapter { border-left-color: var(--warning-color); }

.publication-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-article { background-color: rgba(52, 152, 219, 0.1); color: var(--secondary-color); }
.type-conference { background-color: rgba(231, 76, 60, 0.1); color: var(--accent-color); }
.type-book { background-color: rgba(39, 174, 96, 0.1); color: var(--success-color); }
.type-chapter { background-color: rgba(243, 156, 18, 0.1); color: var(--warning-color); }

/* Page CV */
.cv-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-xl);
}

@media (max-width: 992px) {
    .cv-layout {
        grid-template-columns: 1fr;
    }
}

.cv-sidebar {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-md);
    border: 5px solid var(--light-color);
    box-shadow: var(--shadow-md);
}

.skill-item {
    margin-bottom: var(--spacing-md);
}

.skill-bar {
    height: 8px;
    background-color: var(--light-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 4px;
    transition: width 1.5s ease-in-out;
}

/* Page Enseignement */
.course-card {
    border: 1px solid #eaeaea;
    transition: all var(--transition-normal);
}

.course-level {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.level-license { background-color: rgba(52, 152, 219, 0.1); color: var(--secondary-color); }
.level-master { background-color: rgba(39, 174, 96, 0.1); color: var(--success-color); }
.level-doctorat { background-color: rgba(155, 89, 182, 0.1); color: #9b59b6; }

.student-card {
    border-left: 4px solid var(--secondary-color);
}

.student-status {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-ongoing { background-color: rgba(39, 174, 96, 0.1); color: var(--success-color); }
.status-completed { background-color: rgba(52, 152, 219, 0.1); color: var(--secondary-color); }

/* Page Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-info-section,
.contact-form-section {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.info-block {
    background-color: var(--light-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    border-left: 4px solid var(--secondary-color);
}

.info-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.map-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
    background-color: var(--light-color);
    position: relative;
}

/* Pages légales */
.legal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-xl);
}

.legal-content {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
}

.rgpd-badge {
    display: inline-block;
    background-color: rgba(52, 152, 219, 0.2);
    color: white;
    padding: var(--spacing-xs) var(--spacing-lg);
    border-radius: 30px;
    font-size: 0.9rem;
    margin-top: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.right-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--secondary-color);
    transition: all var(--transition-normal);
}

.right-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    padding-top: var(--spacing-xxl);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--text-on-dark);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: #ddd;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: white;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-normal);
    color: white;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    color: white;
    text-decoration: none;
}

.copyright {
    text-align: center;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ==========================================================================
   9. DESIGN RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    /* Header mobile */
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: var(--shadow-lg);
        display: none;
        padding: var(--spacing-md);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list li {
        border-bottom: 1px solid #eee;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-md) 0;
    }
    
    /* Ajustements typographiques */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Layout mobile */
    .presentation,
    .cv-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .cv-sidebar {
        position: static;
        margin-bottom: var(--spacing-lg);
    }
    
    /* Cartes et grilles */
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    /* Formulaires */
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group label {
        margin-bottom: var(--spacing-xs);
    }
}

@media (max-width: 576px) {
    /* Ajustements pour très petits écrans */
    .container {
        padding-right: var(--spacing-sm);
        padding-left: var(--spacing-sm);
    }
    
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-stats {
        gap: var(--spacing-lg);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Impression */
@media print {
    .site-header,
    .site-footer,
    .menu-toggle,
    .btn:not(.print-btn),
    .social-links {
        display: none !important;
    }
    
    body {
        background-color: white;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .card,
    .info-block,
    .right-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        color: black;
        text-decoration: none;
    }
    
    .section-title {
        page-break-after: avoid;
    }
    
    .timeline-item {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   10. ANIMATIONS ET EFFETS
   ========================================================================== */

/* Animations d'entrée */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Classes d'animation */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideInUp 0.5s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

/* Délais d'animation */
.animation-delay-1 { animation-delay: 0.1s; }
.animation-delay-2 { animation-delay: 0.2s; }
.animation-delay-3 { animation-delay: 0.3s; }
.animation-delay-4 { animation-delay: 0.4s; }
.animation-delay-5 { animation-delay: 0.5s; }

/* Transition pour le chargement progressif */
.lazy-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects */
.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-grow {
    transition: transform var(--transition-normal);
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-shadow {
    transition: box-shadow var(--transition-normal);
}

.hover-shadow:hover {
    box-shadow: var(--shadow-lg) !important;
}

/* Focus styles pour accessibilité */
.focus-ring {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.focus-ring-inset {
    outline: 2px solid var(--secondary-color) inset;
    outline-offset: -2px;
}

/* ==========================================================================
   UTILITAIRES FINAUX
   ========================================================================== */

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm);
    position: absolute;
    z-index: var(--z-tooltip);
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
/* Styles pour la section de tous les membres */
    #all-members {
        background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    }
    
    .members-description {
        max-width: 800px;
        margin: 0 auto 50px;
        text-align: center;
        font-size: 1.1rem;
        color: #4a5568;
        line-height: 1.7;
        padding: 0 20px;
    }
    
    .members-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        max-width: 1300px;
        margin: 0 auto;
    }
    
    .members-column {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .member-item {
        background: white;
        border-radius: 10px;
        padding: 18px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        border-left: 4px solid #3498db;
    }
    
    .member-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    /* Items spéciaux pour les fonctions importantes */
    .member-item.president {
        border-left-color: #2c5282;
        background: linear-gradient(to right, #ffffff, #f0f7ff);
    }
    
    .member-item.vice-president {
        border-left-color: #2b6cb0;
        background: linear-gradient(to right, #ffffff, #f7faff);
    }
    
    .member-item.secretary {
        border-left-color: #9b59b6;
        background: linear-gradient(to right, #ffffff, #faf5ff);
    }
    
    .member-marker {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #edf2f7;
        color: #2d3748;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.9rem;
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    .member-item.president .member-marker {
        background: #2c5282;
        color: white;
    }
    
    .member-item.vice-president .member-marker {
        background: #2b6cb0;
        color: white;
    }
    
    .member-item.secretary .member-marker {
        background: #9b59b6;
        color: white;
    }
    
    .member-details {
        flex-grow: 1;
    }
    
    .member-details h4 {
        font-size: 1rem;
        color: #2d3748;
        margin-bottom: 5px;
        font-weight: 600;
        line-height: 1.4;
    }
    
    .member-role {
        font-size: 0.85rem;
        color: #718096;
        font-weight: 600;
        background: #f7fafc;
        padding: 3px 10px;
        border-radius: 12px;
        display: inline-block;
    }
    
    /* Cartes spéciales (statistiques et info) */
    .statistics-card, .info-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        border-left: 4px solid #2ecc71;
    }
    
    .stats-icon, .info-icon {
        font-size: 2.5rem;
        color: #2ecc71;
        margin-bottom: 15px;
    }
    
    .stats-content h4, .info-content h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        color: #2d3748;
    }
    
    .stats-details {
        display: flex;
        justify-content: space-around;
        margin-top: 15px;
    }
    
    .stat {
        display: flex;
        flex-direction: column;
    }
    
    .stat-number {
        font-size: 1.5rem;
        font-weight: 800;
        color: #2c5282;
    }
    
    .stat-label {
        font-size: 0.8rem;
        color: #718096;
        margin-top: 5px;
    }
    
    .info-content p {
        font-size: 0.95rem;
        color: #4a5568;
        line-height: 1.6;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .members-grid {
            grid-template-columns: 1fr;
            max-width: 500px;
        }
        
        .members-description {
            padding: 0 15px;
            margin-bottom: 30px;
        }
        
        .member-item {
            padding: 15px;
        }
    }
    
    @media (min-width: 769px) and (max-width: 1200px) {
        .members-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
	 /* Styles pour la section Conseil Scientifique */
    #scientific-council {
        background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    }
    
    .council-description {
        max-width: 800px;
        margin: 0 auto 50px;
        text-align: center;
        font-size: 1.1rem;
        color: #4a5568;
        line-height: 1.7;
    }
    
    .council-members {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        margin-bottom: 60px;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .member-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .member-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
    
    .member-img-container {
        position: relative;
        height: 180px;
        background: linear-gradient(135deg, #2c5282 0%, #3498db 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .member-avatar {
        font-size: 4rem;
        color: white;
        opacity: 0.9;
    }
    
    .member-badge {
        position: absolute;
        bottom: 15px;
        left: 0;
        right: 0;
        text-align: center;
        background: rgba(255, 255, 255, 0.9);
        color: #2c5282;
        padding: 8px 15px;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
    
    .member-info {
        padding: 25px;
        text-align: center;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .member-name {
        font-size: 1.3rem;
        color: #2d3748;
        margin-bottom: 20px;
        font-weight: 700;
        line-height: 1.4;
    }
    
    .member-contributions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .contrib-tag {
        background-color: #edf2f7;
        color: #2d3748;
        padding: 6px 14px;
        border-radius: 15px;
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    /* Section des rôles */
    .council-roles {
        background: #f8fafc;
        border-radius: 15px;
        padding: 40px;
        margin-top: 40px;
    }
    
    .council-roles h3 {
        text-align: center;
        font-size: 1.6rem;
        color: #2c3e50;
        margin-bottom: 40px;
        font-weight: 700;
    }
    
    .roles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }
    
    .role-card {
        background: white;
        border-radius: 10px;
        padding: 25px;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
    }
    
    .role-card:hover {
        transform: translateY(-5px);
    }
    
    .role-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .role-card h4 {
        font-size: 1.2rem;
        color: #2d3748;
        margin-bottom: 12px;
        font-weight: 700;
    }
    
    .role-card p {
        color: #718096;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .council-members {
            grid-template-columns: 1fr;
            max-width: 400px;
        }
        
        .council-description {
            padding: 0 15px;
        }
        
        .council-roles {
            padding: 25px;
        }
        
        .roles-grid {
            grid-template-columns: 1fr;
        }
    }
    
    @media (min-width: 769px) and (max-width: 1024px) {
        .council-members {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .member-card:last-child {
            grid-column: span 2;
            max-width: 400px;
            margin-left: auto;
            margin-right: auto;
        }
    }