/* UHTGL - Styles principaux inspirés d'UCLouvain */
:root {
    --bleu-institutionnel: #021774;
    --blanc: #ffffff;
    --jaune-or: #fefd05;
    --rouge-accent: #e10409;
    --gris-clair: #f8f9fa;
    --gris-moyen: #6c757d;
    --bleu-fonce: #011050;
    --bleu-clair: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

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

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.cdnfonts.com/css/nexa');

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, system-ui, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    font-weight: 400;
    background-color: var(--blanc);
    margin-top: 130px; /* Top bar fixe (40px) + Header flottant (70px + 3rem) */
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.003em;
}

/* ===== TYPOGRAPHIE GLOBALE ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', system-ui, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.125rem;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ===== POLICE NEXA POUR LES CHIFFRES ===== */
.number,
.stat-number,
.price,
.count,
.year,
.percentage {
    font-family: 'Nexa', 'Montserrat', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Sélecteur pour tous les éléments contenant uniquement des chiffres */
*:not(script):not(style) {
    font-variant-numeric: tabular-nums;
}

/* Classes utilitaires pour les chiffres */
.nexa-light { 
    font-family: 'Nexa', 'Montserrat', system-ui, sans-serif; 
    font-weight: 300; 
}
.nexa-regular { 
    font-family: 'Nexa', 'Montserrat', system-ui, sans-serif; 
    font-weight: 400; 
}
.nexa-bold { 
    font-family: 'Nexa', 'Montserrat', system-ui, sans-serif; 
    font-weight: 700; 
}
.nexa-black { 
    font-family: 'Nexa', 'Montserrat', system-ui, sans-serif; 
    font-weight: 900; 
}

/* Styles spéciaux pour les statistiques */
.stat-card .number,
.hero-stats .number,
.counter .number,
.metric .number {
    font-family: 'Nexa', 'Montserrat', system-ui, sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--bleu-institutionnel);
}

.stat-card .label,
.hero-stats .label,
.counter .label,
.metric .label {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Années et dates avec Nexa */
.date-year,
.academic-year,
.founded-year {
    font-family: 'Nexa', 'Montserrat', system-ui, sans-serif;
    font-weight: 700;
}

/* Prix et montants avec Nexa */
.price-amount,
.tuition-fee,
.scholarship-amount {
    font-family: 'Nexa', 'Montserrat', system-ui, sans-serif;
    font-weight: 700;
    color: var(--bleu-institutionnel);
}

/* Pourcentages et scores */
.percentage-value,
.score-value,
.rating-value {
    font-family: 'Nexa', 'Montserrat', system-ui, sans-serif;
    font-weight: 800;
    color: var(--jaune-or);
}

/* ===== COMPOSANTS MODERNES ===== */
.btn {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.003em;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--jaune-or);
    color: var(--bleu-institutionnel);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #e6e605;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 253, 5, 0.4);
}

.btn-outline {
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid var(--bleu-institutionnel);
    color: var(--bleu-institutionnel);
    background: transparent;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--bleu-institutionnel);
    color: var(--blanc);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 3, 85, 0.3);
}

.btn-secondary {
    background: var(--blanc);
    color: var(--bleu-institutionnel);
    border: 2px solid var(--bleu-institutionnel);
}

.btn-secondary:hover {
    background: var(--bleu-institutionnel);
    color: var(--blanc);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 3, 85, 0.2);
}

.btn-accent {
    background: var(--jaune-or);
    color: var(--bleu-institutionnel);
}

.btn-accent:hover {
    background: #e6e205;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 253, 5, 0.3);
}

/* Cards modernes */
.modern-card {
    background: var(--blanc);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modern-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.modern-card:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.1s ease;
}

/* Icônes modernes */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    font-size: 1.25rem;
}

.icon-primary {
    background: rgba(2, 3, 85, 0.1);
    color: var(--bleu-institutionnel);
}

.icon-accent {
    background: rgba(254, 253, 5, 0.2);
    color: var(--bleu-institutionnel);
}

/* Formulaires modernes */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.003em;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: var(--blanc);
    color: var(--text-dark);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--bleu-institutionnel);
    box-shadow: 0 0 0 3px rgba(2, 3, 85, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

/* Tables modernes */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--blanc);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.modern-table th,
.modern-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.modern-table th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.modern-table tr:hover {
    background: #f9fafb;
}

/* ===== RESPONSIVE DESIGN AMÉLIORÉ ===== */

/* Breakpoints modernes */
/* Mobile: 320px - 767px */
/* Tablet: 768px - 1023px */
/* Desktop: 1024px+ */

/* Mobile First - Styles de base pour mobile */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Responsive Components */
@media (max-width: 480px) {
    .btn {
        font-size: 0.85rem;
        padding: 0.625rem 1.25rem;
    }
    
    .modern-card {
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.75rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .btn {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .modern-card {
        border-radius: 12px;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .btn {
        font-size: 1rem;
        padding: 0.875rem 1.75rem;
    }
}

/* Grid System Responsive */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 767px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .grid {
        gap: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Spacing System */
.section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 5rem 0;
    }
}

/* ===== UTILITIES MODERNES ===== */

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--bleu-institutionnel); }
.text-accent { color: var(--jaune-or); }
.text-muted { color: var(--text-light); }
.text-dark { color: var(--text-dark); }
.text-white { color: var(--blanc); }

/* Spacing Utilities */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-5 { margin: 1.25rem; }
.m-6 { margin: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flex Utilities */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

/* Background Utilities */
.bg-primary { background-color: var(--bleu-institutionnel); }
.bg-accent { background-color: var(--jaune-or); }
.bg-white { background-color: var(--blanc); }
.bg-gray { background-color: var(--gris-clair); }
.bg-dark { background-color: var(--bleu-fonce); }

/* Slight transparency for the stats section background */
.stats-section {
    /* Slight transparent overlay + fixed image like hero */
    background-color: rgba(2, 3, 85, 0.94); /* fallback */
    background-image:
        linear-gradient(135deg, rgba(2, 3, 85, 0.86), rgba(2, 3, 85, 0.86)),
        url('../assets/images/IMG_4741 - Copie.JPG');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll, fixed;
}

/* UHTGL en Chiffres */
.stats-section .grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.stats-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.35);
}

.stats-icon {
    font-size: 1.75rem;
    color: var(--jaune-or);
    margin-bottom: 0.5rem;
}

.stats-number {
    font-family: 'Nexa', 'Montserrat', system-ui, sans-serif;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.01em;
}

.stats-label {
    color: rgba(255,255,255,0.9);
    margin-top: 0.35rem;
    font-weight: 600;
}

@media (min-width: 992px) {
    .stats-number { font-size: 2.4rem; }
}

/* Border Utilities */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow Utilities */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Responsive Utilities */
@media (max-width: 767px) {
    .d-md-none { display: none; }
    .d-md-block { display: block; }
    .text-md-center { text-align: center; }
    .text-md-left { text-align: left; }
}

@media (min-width: 768px) {
    .d-sm-none { display: none; }
    .d-sm-block { display: block; }
    .text-sm-center { text-align: center; }
    .text-sm-left { text-align: left; }
}

/* Responsive Typography */
@media (max-width: 768px) {
    body {
        margin-top: 70px; /* Header mobile seulement */
        font-size: 15px;
        width: 100%;
        overflow-x: hidden;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .container {
        width: 100%;
        overflow-x: hidden;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.375rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
}

/* ===== TOP BAR ORIGINAL ===== */
.top-bar {
    background: var(--bleu-fonce);
    color: var(--blanc);
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 40px;
}

.top-bar-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 100%;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-btn,
.user-btn,
.search-btn {
    background: none;
    border: none;
    color: var(--blanc);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
}

.lang-btn:hover,
.user-btn:hover,
.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: rgba(254, 253, 5, 0.2);
}

.search-overlay {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    background: var(--blanc);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border-bottom: 2px solid var(--jaune-or);
}

.search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--gris-clair);
    border-radius: 50px;
    padding: 0.5rem;
    gap: 1rem;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    outline: none;
    color: var(--text-dark);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-submit,
.search-close {
    background: var(--bleu-institutionnel);
    color: var(--blanc);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close {
    background: var(--text-light);
}

.search-submit:hover {
    background: var(--bleu-fonce);
    transform: scale(1.05);
}

.search-close:hover {
    background: var(--text-dark);
    transform: scale(1.05);
}

/* ===== HEADER PRINCIPAL GLASSMORPHISM ===== */
.header {
    background: rgba(2, 3, 85, 0.20); /* blue-tinted transparency */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(2, 3, 85, 0.30);
    position: fixed;
    top: 3rem;
    left: 0.5rem;
    right: 0.5rem;
    z-index: 1000;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(2, 3, 85, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header:hover {
    background: rgba(2, 3, 85, 0.30);
    border-color: rgba(2, 3, 85, 0.40);
    box-shadow: 0 12px 40px rgba(2, 3, 85, 0.30);
    transform: translateY(-1px);
}

/* ===== ANIMATIONS GLOBALES ===== */

/* Animation d'apparition du header */
@keyframes headerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    animation: headerSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation d'apparition en fondu */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Classes d'animation */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation avec délai */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Animations pour les sections au scroll */
.section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.section-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animation pour les cartes au scroll */
.card, .modern-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.animate-in, .modern-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animation pour les éléments de grille */
.grid > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid > *.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Délais pour les éléments de grille */
.grid > *:nth-child(1).animate-in { transition-delay: 0.1s; }
.grid > *:nth-child(2).animate-in { transition-delay: 0.2s; }
.grid > *:nth-child(3).animate-in { transition-delay: 0.3s; }
.grid > *:nth-child(4).animate-in { transition-delay: 0.4s; }
.grid > *:nth-child(5).animate-in { transition-delay: 0.5s; }
.grid > *:nth-child(6).animate-in { transition-delay: 0.6s; }

/* Animations spécifiques UHTGL */
.hero-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.news-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.org-card {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.org-card.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.org-card:nth-child(even) {
    transform: translateX(30px);
}

/* Animation pour les statistiques */
.stat-number {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-number.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Animation pour les boutons CTA */
.cta-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animation pour les boutons */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

/* Animation pour les images */
img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

img:hover {
    transform: scale(1.02);
}

/* Animation pour les liens */
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation de pulsation subtile pour les éléments importants */
@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.pulse-subtle {
    animation: subtlePulse 3s ease-in-out infinite;
}

/* Animation de brillance pour les éléments premium */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s ease-in-out infinite;
}


.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    position: relative;
    height: 70px;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.header-right {
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    gap: 1rem;
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.02em;
    text-shadow: none;
}

.logo-sub {
    font-size: 0.7rem;
    color: #000;
    font-weight: 600;
    line-height: 1.2;
    max-width: 280px;
    text-shadow: none;
}

.nav-menu.desktop-nav {
    gap: 1.5rem;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.25s ease;
    padding: 0.5rem 0.25rem;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bleu-institutionnel);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--bleu-institutionnel);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: var(--bleu-institutionnel);
    font-weight: 700;
}

.nav-link.active::after {
    width: 100%;
    background: var(--jaune-or);
}

.login-icon-btn {
    background: var(--rouge-accent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--rouge-accent);
    color: var(--blanc);
    padding: 0.75rem;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 45px;
    height: 45px;
    margin-right: 0.5rem;
}

.login-icon-btn:hover {
    background: #c00307;
    color: var(--blanc);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 4, 9, 0.4);
}

.cta-btn {
    background: rgba(254, 253, 5, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(254, 253, 5, 0.5) !important;
    color: var(--bleu-institutionnel) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-left: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: 0 4px 15px rgba(254, 253, 5, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    background: rgba(2, 3, 85, 0.9) !important;
    border-color: rgba(2, 3, 85, 0.5) !important;
    color: var(--blanc) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(2, 3, 85, 0.4) !important;
}

.cta-btn:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

.desktop-only {
    display: flex;
}

/* Menu Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0.75rem;
    margin-left: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(2, 3, 85, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.mobile-menu-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px) rotate(90deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle:active {
    transform: translateY(0) rotate(90deg) scale(0.95);
    transition: all 0.1s ease;
}

/* Responsive Design Glassmorphism */
@media (max-width: 768px) {
    .top-bar-container {
        padding: 0 1rem;
    }
    
    .header {
        top: 3rem;
        left: 0.25rem;
        right: 0.25rem;
        border-radius: 20px;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 1rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo img {
        height: 40px;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-left: 0.5rem;
        padding: 0.6rem;
        font-size: 1.1rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .desktop-only {
        display: none;
    }
    
    .header-center {
        display: none;
    }
    
    body {
        margin-top: 110px; /* Top bar (40px) + Header mobile flottant (60px + 3rem) */
    }
}

@media (max-width: 480px) {
    .top-bar-container {
        padding: 0 0.75rem;
    }
    
    .header {
        left: 0.125rem;
        right: 0.125rem;
        border-radius: 18px;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .search-container {
        padding: 1rem;
    }
    
    .search-box {
        padding: 0.3rem;
    }
    
    .search-input {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    .search-submit,
    .search-close {
        width: 40px;
        height: 40px;
    }
    
    body {
        margin-top: 100px; /* Top bar (40px) + Header très petit écran (60px) */
    }
}

/* Menu Mobile - Style UCLouvain */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--blanc);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 0;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--gris-clair);
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-header h2 {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-login {
    padding: 1.5rem;
}

.mobile-login-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: #ff0000;
    color: var(--blanc);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.mobile-login-btn:hover {
    background: #cc0000;
}

.mobile-menu-sections {
    padding: 0 1.5rem;
}

.mobile-menu-section {
    border-bottom: 1px solid #e5e7eb;
}

.mobile-section-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.mobile-section-toggle i {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.mobile-section-toggle.active i {
    transform: rotate(45deg);
}

.mobile-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1rem;
}

.mobile-section-content.active {
    max-height: 300px;
    padding-bottom: 1rem;
}

.mobile-section-content a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.mobile-section-content a:hover {
    color: var(--bleu-institutionnel);
}

.mobile-section-link {
    display: block;
    padding: 1.25rem 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-section-link:hover {
    color: var(--bleu-institutionnel);
}

.mobile-menu-profile {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.mobile-profile-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gris-clair);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
}

.mobile-menu-language {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: var(--gris-clair);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--bleu-institutionnel);
    color: var(--blanc);
    border-color: var(--bleu-institutionnel);
}

.lang-btn:hover:not(.active) {
    background: #e5e7eb;
}

.logo {
    color: var(--blanc);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 60px !important;
    width: auto !important;
    margin: 0 !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--blanc);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover {
    color: var(--jaune-or);
}

.nav-menu a.active {
    color: var(--jaune-or);
    font-weight: 600;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--jaune-or);
}

.cta-btn {
    background: var(--jaune-or);
    color: var(--bleu-institutionnel);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 27, 85, 0.7), rgba(30, 27, 85, 0.7)), url('../assets/images/IMG-20250911-WA0036 - Copie.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanc);
    margin-top: -50px;
    padding: 2rem 0;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
}

.hero-content {
    text-align: left;
}

.hero-news {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.news-header {
    background: var(--bleu-institutionnel);
    color: var(--blanc);
    padding: 1rem 1.5rem;
    text-align: center;
}

.news-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.carousel-container {
    position: relative;
    height: 350px;
}

.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
}

.news-slide.active {
    opacity: 1;
}

.news-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--gris-clair);
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--bleu-institutionnel);
}

.news-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.news-content p {
    font-size: 0.9rem;
    color: var(--gris-moyen);
    margin-bottom: 1rem;
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-top: auto;
}

.news-meta span {
    color: var(--gris-moyen);
}

.news-meta a {
    color: var(--bleu-institutionnel);
    font-weight: bold;
    text-decoration: none;
}

.carousel-dots {
    text-align: center;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.8);
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 3px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active, .dot:hover {
    background-color: var(--bleu-institutionnel);
}

/* Hero variants pour différentes pages */
.hero-contact {
    background: linear-gradient(rgba(30, 27, 85, 0.7), rgba(30, 27, 85, 0.7)), url('../assets/images/IMG_3008 - Copie.jpg');
}

.hero-application {
    background: linear-gradient(rgba(30, 27, 85, 0.7), rgba(30, 27, 85, 0.7)), url('../assets/images/IMG_4741 - Copie.JPG');
}

.hero-faculties {
    background: linear-gradient(rgba(30, 27, 85, 0.7), rgba(30, 27, 85, 0.7)), url('../assets/images/IMG-20250911-WA0036 - Copie.jpg');
}

.hero-news {
    background: linear-gradient(rgba(30, 27, 85, 0.7), rgba(30, 27, 85, 0.7)), url('../assets/images/IMG-20250908-WA0095.jpg');
}

.hero-content h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--blanc);
    text-shadow: none;
    background: none;
    -webkit-text-fill-color: initial;
}

/* Variantes de couleur pour les titres Hero */
.hero-content h1.hero-title--white,
.about-hero h1.hero-title--white {
    color: var(--blanc);
    text-shadow: none;
}

.hero-content h1.hero-title--yellow,
.about-hero h1.hero-title--yellow {
    color: var(--jaune-or);
    text-shadow: none;
}

/* Utilitaires génériques pour titres Hero, utilisables partout */
h1.hero-title--white,
.hero-title--white {
    color: var(--blanc) !important;
    text-shadow: none !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

h1.hero-title--yellow,
.hero-title--yellow {
    color: var(--jaune-or) !important;
    text-shadow: none !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Bouton primaire déjà défini plus haut */

.btn-secondary {
    background: transparent;
    color: var(--blanc);
    padding: 1.2rem 2.5rem;
    border: 2px solid var(--blanc);
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 1.875rem;
    margin-bottom: 2.5rem;
    color: var(--bleu-institutionnel);
    font-weight: 600;
}

.bg-dark {
    background: var(--bleu-institutionnel);
    color: var(--blanc);
}

.bg-dark .section-title {
    color: var(--blanc);
}

.bg-light {
    background: var(--gris-clair);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    text-align: center;
    padding: 2rem;
    background: var(--blanc);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 2rem;
    color: var(--jaune-or);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--bleu-institutionnel);
}

/* Footer */
.footer {
    background: var(--bleu-institutionnel);
    color: var(--blanc);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--jaune-or);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--blanc);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--jaune-or);
}

/* Mobile First Responsive Design */

/* Base styles (mobile) */
.container {
    padding: 0 1rem;
}

.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    padding: 1.5rem;
}

.hero-content {
    padding-top: 15rem;
}

.hero-content h1 {
    font-size: 2rem;
}

.hero-content p {
    font-size: 1rem;
}

.hero-buttons {
    flex-direction: column;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

/* Navigation mobile */
.nav-menu {
    display: none;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--blanc);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero mobile */
.hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

.hero-content {
    text-align: center;
}

.hero-news {
    max-width: 100%;
    margin: 0 auto;
}

.carousel-container {
    height: 280px;
}

.news-image {
    height: 120px;
}

/* Forms mobile */
.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    font-size: 16px; /* Prevent zoom on iOS */
}

/* Tables mobile */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    min-width: 600px;
}

/* Back to Top Button - Design moderne */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background: linear-gradient(145deg, var(--bleu-institutionnel), #1e3a8a);
    border: none;
    border-radius: 20px;
    color: var(--blanc);
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) rotate(10deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    box-shadow: 
        0 10px 30px rgba(2, 3, 85, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.back-to-top:hover::before {
    left: 100%;
}

.back-to-top:hover {
    background: linear-gradient(145deg, var(--jaune-or), #f59e0b);
    color: var(--bleu-institutionnel);
    transform: translateY(-8px) rotate(0deg) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(254, 253, 5, 0.5),
        0 0 0 1px rgba(2, 3, 85, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 25px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) rotate(0deg);
}

.back-to-top i {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.back-to-top:hover i {
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Animation pulse moderne */
@keyframes modern-pulse {
    0%, 100% {
        box-shadow: 
            0 10px 30px rgba(2, 3, 85, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 15px 40px rgba(2, 3, 85, 0.6),
            0 0 20px rgba(254, 253, 5, 0.4),
            0 0 0 1px rgba(254, 253, 5, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: scale(1.02);
    }
}

.back-to-top.pulse {
    animation: modern-pulse 2.5s infinite ease-in-out;
}

/* Animation d'apparition */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(10deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

.back-to-top.show {
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        border-radius: 18px;
    }
    
    .back-to-top:hover {
        border-radius: 22px;
        transform: translateY(-6px) rotate(0deg) scale(1.03);
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        border-radius: 16px;
    }
    
    .back-to-top:hover {
        border-radius: 20px;
    }
}

/* ===== LIGHTBOX STYLES ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--jaune-or);
    transform: scale(1.1);
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* Gallery Images */
.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-img {
        max-width: 95%;
        max-height: 85vh;
    }
}

/* Gallery Page Styles */
.gallery-filters {
    margin-bottom: 3rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-card {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: var(--blanc);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card .gallery-image {
    margin-bottom: 0;
}

.gallery-card-content {
    padding: 1.5rem;
}

.gallery-card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.gallery-card-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-buttons .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

/* Responsive Section CTA */
@media (max-width: 768px) {
    .section-cta {
        margin-top: 2rem;
    }
}

/* Fin des styles */
@media (min-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .carousel-container {
        height: 320px;
    }
    
    .news-image {
        height: 140px;
    }
}

/* Desktop small */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr 350px;
        gap: 2.5rem;
        padding: 0 2rem;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .carousel-container {
        height: 350px;
    }
    
    .news-image {
        height: 160px;
    }
}

/* Desktop large */
@media (min-width: 992px) {
    .section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr 400px;
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    .carousel-container {
        height: 380px;
    }
    
    .news-image {
        height: 180px;
    }
}

/* Desktop extra large */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
}

/* ===== NOUVEAUX STYLES UCLouvain ===== */

/* Hero Section - Style UCLouvain */
.hero-uclouvain {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: -50px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bleu-institutionnel) 0%, var(--bleu-fonce) 100%);
    background-image: 
        linear-gradient(rgba(2, 3, 85, 0.7), rgba(2, 3, 85, 0.7)),
        url('../assets/images/IMG_3008 - Copie.jpg'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(254,253,5,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    background-size: cover, cover, auto;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, repeat;
    background-attachment: scroll, fixed, scroll;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 3, 85, 0.8);
}

.hero-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    color: var(--blanc);
    text-align: center;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    background: var(--jaune-or);
    color: var(--bleu-institutionnel);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 253, 5, 0.3);
}

/* Sélecteur de profils */
.profile-selector {
    background: var(--blanc);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.profile-header h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.profile-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.profile-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.profile-option:hover {
    background: var(--gris-clair);
    border-color: var(--jaune-or);
}

.profile-option i:first-child {
    color: var(--bleu-institutionnel);
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 20px;
}

.profile-option span {
    flex: 1;
    font-weight: 500;
}

.profile-option i:last-child {
    color: var(--gris-moyen);
    font-size: 0.8rem;
}

.profile-dropdown {
    position: relative;
}

.dropdown-toggle {
    width: 100%;
    padding: 1rem;
    background: var(--gris-clair);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    border-color: var(--jaune-or);
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Section Title White Variant */
.section-title--white {
    color: var(--blanc) !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
}

.dropdown-menu a {
    display: block;
    padding: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--gris-clair);
}

/* Section Actualités */
.news-highlights {
    padding: 5rem 0;
    background: var(--gris-clair);
}

.news-highlights .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-highlights .section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.news-highlights .section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.news-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.news-card {
    background: var(--blanc);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-link {
    color: var(--bleu-institutionnel);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: var(--jaune-or);
}

/* Responsive pour le hero UCLouvain */
@media (max-width: 767px) {
    .hero-content {
        padding-top: 3rem;
    }
    
    .profile-selector {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .profile-header h3 {
        font-size: 1rem;
    }
    
    .profile-option {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .profile-option i:first-child {
        font-size: 1rem;
    }
    
    .dropdown-toggle {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 400px;
        text-align: left;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-content p {
        margin-left: 0;
        margin-right: 0;
    }
    
    .profile-selector {
        margin: 0;
    }
}

@media (min-width: 992px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Section À Propos - Style UCLouvain */
.section-about {
    padding: 4rem 0;
    padding: 5rem 0;
    background: var(--blanc);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item i {
    color: var(--bleu-institutionnel);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-item h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Bouton outline déjà défini plus haut */

/* Discovery Grid - Partie droite de la section À Propos */
.discovery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.discovery-card {
    background: var(--blanc);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.discovery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--jaune-or);
}

.discovery-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bleu-institutionnel), #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.discovery-card:hover .discovery-icon {
    background: linear-gradient(135deg, var(--jaune-or), #fbbf24);
}

.discovery-icon i {
    color: var(--blanc);
    font-size: 1.5rem;
}

.discovery-card:hover .discovery-icon i {
    color: var(--bleu-institutionnel);
}

.discovery-card h3 {
    color: var(--bleu-institutionnel);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discovery-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--gris-clair);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bleu-institutionnel);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Responsive pour la section À Propos */
@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .discovery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .discovery-card {
        padding: 2.5rem 2rem;
        min-height: 160px;
    }
}

@media (min-width: 992px) {
    .about-content {
        gap: 5rem;
    }
    
    .about-text h2 {
        font-size: 3rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 2.5rem 1.5rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

/* Section Formations - Style UCLouvain */
.formations-section {
    padding: 5rem 0;
    background: var(--gris-clair);
}

.formations-header {
    text-align: center;
    margin-bottom: 4rem;
}

.formations-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.formations-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.formations-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.formation-category {
    background: var(--blanc);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--jaune-or);
}

.formation-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--bleu-institutionnel);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-icon i {
    font-size: 2rem;
    color: var(--blanc);
}

.formation-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.formation-category p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.category-link {
    color: var(--bleu-institutionnel);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: var(--jaune-or);
}

.faculties-showcase {
    background: var(--blanc);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faculties-showcase h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2.5rem;
}

.faculties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.faculty-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.faculty-card:hover {
    border-color: var(--jaune-or);
    background: var(--gris-clair);
}

.faculty-icon {
    width: 50px;
    height: 50px;
    background: var(--bleu-institutionnel);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faculty-icon i {
    font-size: 1.2rem;
    color: var(--blanc);
}

.faculty-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.faculty-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.faculty-link {
    color: var(--bleu-institutionnel);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.faculty-link:hover {
    color: var(--jaune-or);
}

.faculties-cta {
    text-align: center;
}

/* Responsive pour les formations */
@media (min-width: 768px) {
    .formations-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .formations-header h2 {
        font-size: 2rem;
    }
    
    .formations-categories {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .faculties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer - Style UCLouvain */
.footer-uclouvain {
    background: var(--bleu-institutionnel);
    color: var(--blanc);
    margin-top: 0;
}

.footer-main {
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.footer-brand {
    max-width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
}

.footer-brand-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--blanc);
}

.footer-brand-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanc);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--jaune-or);
    color: var(--bleu-institutionnel);
    transform: translateY(-3px);
}

/* Couleurs spécifiques pour chaque réseau social */
.social-link:has(.fa-facebook-f):hover {
    background: #1877f2;
    color: white;
}

.social-link:has(.fa-instagram):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link:has(svg):hover {
    background: #000000;
    color: white;
}

/* Style spécifique pour le SVG X */
.social-link svg {
    transition: all 0.3s ease;
}

.social-link:has(.fa-whatsapp):hover {
    background: #25d366;
    color: white;
}

.social-link:has(.fa-linkedin-in):hover {
    background: #0077b5;
    color: white;
}

.social-link:has(.fa-youtube):hover {
    background: #ff0000;
    color: white;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--blanc);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--jaune-or);
}

.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--blanc);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: var(--jaune-or);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--blanc);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--jaune-or);
}

.footer-powered p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 0;
}

.footer-powered a {
    color: var(--jaune-or);
    text-decoration: none;
    font-weight: 500;
}

.footer-powered a:hover {
    text-decoration: underline;
}

/* Responsive pour le footer */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
        gap: 2rem;
    }
    
    .footer-main {
        padding: 5rem 0 3rem;
    }
}

/* ===== PAGE À PROPOS - STYLES SPÉCIFIQUES ===== */

/* Hero Section À Propos */
.about-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    margin-top: -50px;
}

.about-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bleu-institutionnel) 0%, var(--bleu-fonce) 100%);
    background-image: 
        linear-gradient(rgba(2, 3, 85, 0.7), rgba(2, 3, 85, 0.7)),
        url('../assets/images/IMG-20250911-WA0037 - Copie.jpg'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(254,253,5,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    background-size: cover, auto;
    background-position: center, center;
    background-repeat: no-repeat, repeat;
}

.about-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 3, 85, 0.8);
}

.about-hero .hero-content {
    position: relative;
    color: var(--blanc);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--blanc);
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--jaune-or);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Section Mission & Vision */
.mission-vision-section {
    padding: 5rem 0;
    background: var(--blanc);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.mission-card, .vision-card {
    background: var(--gris-clair);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.mission-card {
    border-left: 5px solid var(--bleu-institutionnel);
}

.vision-card {
    border-left: 5px solid var(--jaune-or);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--bleu-institutionnel);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.vision-card .card-icon {
    background: var(--jaune-or);
    color: var(--bleu-institutionnel);
}

.card-icon i {
    font-size: 2rem;
    color: var(--blanc);
}

.mission-card h2, .vision-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.mission-card p, .vision-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.mission-points, .vision-points {
    list-style: none;
    padding: 0;
}

.mission-points li, .vision-points li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding-left: 2rem;
}

.mission-points li::before, .vision-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bleu-institutionnel);
    font-weight: bold;
}

/* Section Valeurs */
.values-section {
    padding: 5rem 0;
    background: var(--gris-clair);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-item {
    background: var(--blanc);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--bleu-institutionnel);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon i {
    font-size: 1.5rem;
    color: var(--blanc);
}

.value-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.value-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Section Histoire */
.history-section {
    padding: 5rem 0;
    background: var(--blanc);
}

.history-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
}

.history-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.history-text .lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.history-timeline {
    position: relative;
    padding-left: 2rem;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--jaune-or);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--bleu-institutionnel);
    border-radius: 50%;
    border: 3px solid var(--blanc);
    box-shadow: 0 0 0 3px var(--jaune-or);
}

.timeline-year {
    background: var(--bleu-institutionnel);
    color: var(--blanc);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.timeline-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--gris-clair);
    border-radius: 12px;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bleu-institutionnel);
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Direction */
.leadership-section {
    padding: 5rem 0;
    background: var(--gris-clair);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.leader-card {
    background: var(--blanc);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.leader-image {
    height: 250px;
    overflow: hidden;
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-info {
    padding: 2rem;
}

.leader-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.leader-title {
    color: var(--bleu-institutionnel);
    font-weight: 600;
    margin-bottom: 1rem;
}

.leader-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Section Accréditations */
.accreditations-section {
    padding: 5rem 0;
    background: var(--blanc);
}

.accreditations-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
}

.accreditations-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.accreditation-list, .partnership-list {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
}

.accreditation-list li, .partnership-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accreditation-list i, .partnership-list i {
    color: var(--bleu-institutionnel);
    font-size: 1.2rem;
}

.accreditations-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.achievement-card {
    background: var(--gris-clair);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid var(--jaune-or);
}

.achievement-card i {
    font-size: 2.5rem;
    color: var(--bleu-institutionnel);
    margin-bottom: 1rem;
}

.achievement-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.achievement-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Section Campus */
.campus-section {
    padding: 5rem 0;
    background: var(--gris-clair);
}

.campus-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.campus-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.campus-info .lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.campus-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.campus-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.campus-features .feature-item i {
    color: var(--bleu-institutionnel);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.campus-features .feature-item h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.campus-features .feature-item p {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.campus-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.campus-stat {
    text-align: center;
    padding: 2rem;
    background: var(--blanc);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.campus-stat i {
    font-size: 2rem;
    color: var(--bleu-institutionnel);
    margin-bottom: 1rem;
}

.campus-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bleu-institutionnel);
    margin-bottom: 0.5rem;
}

.campus-stat .stat-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Contact CTA */
.contact-cta-section {
    padding: 5rem 0;
    background: var(--bleu-institutionnel);
    color: var(--blanc);
}

.contact-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-cta-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Bouton primaire déjà défini plus haut */

/* Responsive Design */
@media (min-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .history-content {
        grid-template-columns: 2fr 1fr;
    }
    
    .history-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .accreditations-content {
        grid-template-columns: 2fr 1fr;
    }
    
    .campus-content {
        grid-template-columns: 2fr 1fr;
    }
    
    .campus-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .about-hero h1 {
        font-size: 3.5rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .leadership-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .accreditations-visual {
        grid-template-columns: 1fr;
    }
    
    .campus-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== STYLES HERO GÉNÉRIQUES POUR TOUTES LES PAGES ===== */

/* Hero sections génériques avec fallback images */
.formations-hero,
.news-hero,
.contact-hero,
.campus-hero,
.gallery-hero,
.application-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanc);
    margin-top: -50px;
    background: linear-gradient(135deg, var(--bleu-institutionnel) 0%, var(--bleu-fonce) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Images spécifiques pour chaque section hero */
.formations-hero {
    background-image: 
        linear-gradient(rgba(2, 3, 85, 0.7), rgba(2, 3, 85, 0.7)),
        url('../assets/images/IMG-20250911-WA0036 - Copie.jpg');
}

.news-hero {
    background-image: 
        linear-gradient(rgba(2, 3, 85, 0.7), rgba(2, 3, 85, 0.7)),
        url('../assets/images/IMG-20250911-WA0037 - Copie.jpg');
}

.contact-hero {
    background-image: 
        linear-gradient(rgba(2, 3, 85, 0.7), rgba(2, 3, 85, 0.7)),
        url('../assets/images/IMG_3008 - Copie.jpg');
}

.campus-hero {
    background-image: 
        linear-gradient(rgba(2, 3, 85, 0.7), rgba(2, 3, 85, 0.7)),
        url('../assets/images/IMG-20250824-WA0043 - Copie.jpg');
}

.gallery-hero {
    background-image: 
        linear-gradient(rgba(2, 3, 85, 0.7), rgba(2, 3, 85, 0.7)),
        url('../assets/images/IMG_4741 - Copie.JPG');
}

.application-hero {
    background-image: 
        linear-gradient(rgba(2, 3, 85, 0.7), rgba(2, 3, 85, 0.7)),
        url('../assets/images/IMG_4741 - Copie.JPG');
}

/* Contenu des sections hero */
.formations-hero .hero-content,
.news-hero .hero-content,
.contact-hero .hero-content,
.campus-hero .hero-content,
.gallery-hero .hero-content,
.application-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.formations-hero h1,
.news-hero h1,
.contact-hero h1,
.campus-hero h1,
.gallery-hero h1,
.application-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.formations-hero p,
.news-hero p,
.contact-hero p,
.campus-hero p,
.gallery-hero p,
.application-hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive pour les sections hero */
@media (min-width: 768px) {
    .formations-hero,
    .news-hero,
    .contact-hero,
    .campus-hero,
    .gallery-hero,
    .application-hero {
        min-height: 60vh;
    }
    
    .formations-hero h1,
    .news-hero h1,
    .contact-hero h1,
    .campus-hero h1,
    .gallery-hero h1,
    .application-hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    .formations-hero h1,
    .news-hero h1,
    .contact-hero h1,
    .campus-hero h1,
    .gallery-hero h1,
    .application-hero h1 {
        font-size: 3.5rem;
    }
}

/* ===== SECTION 10 RAISONS - CARROUSEL ===== */

.reasons-section {
    padding: 6rem 0;
    background: #f8f9fa;
    position: relative;
}

.reasons-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.reasons-section .section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.reasons-section .section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.reasons-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.single-reason-card {
    display: flex;
    gap: 2rem;
    min-height: 400px;
    transition: all 0.4s ease;
    opacity: 1;
    visibility: visible;
}

.reason-left {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reason-image-card {
    background: var(--blanc);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.reason-image-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.reason-image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.reason-image-card:hover img {
    transform: scale(1.05);
}

.reason-info {
    padding: 0;
}

.reason-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1;
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
}

.reason-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.reason-right {
    flex: 1;
    background: var(--blanc);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}

.reason-right:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.reason-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    text-align: justify;
}

/* Flèches de navigation */
.reasons-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.reason-nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--blanc);
    color: var(--bleu-institutionnel);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--bleu-institutionnel);
}

.reason-nav-btn:hover {
    background: var(--bleu-institutionnel);
    color: var(--blanc);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(2, 3, 85, 0.3);
}

.reason-nav-btn:active {
    transform: scale(0.95);
}

/* Indicateurs de pagination */
.reasons-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(2, 3, 85, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--bleu-institutionnel);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--bleu-fonce);
    transform: scale(1.1);
}

/* Contrôles de navigation */
.reasons-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.reason-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: var(--blanc);
    color: var(--bleu-institutionnel);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    pointer-events: all;
}

.reason-btn:hover {
    background: var(--bleu-institutionnel);
    color: var(--blanc);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(2, 3, 85, 0.3);
}

.reason-btn:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .reasons-section {
        padding: 4rem 0;
    }
    
    .reasons-section .section-header h2 {
        font-size: 1.625rem;
    }
    
    .single-reason-card {
        flex-direction: column;
        min-height: auto;
        gap: 1.5rem;
    }
    
    .reason-left {
        flex: none;
        gap: 1rem;
    }
    
    .reason-image-card img {
        height: 200px;
    }
    
    .reason-number {
        font-size: 2.5rem;
        text-decoration-thickness: 3px;
        text-underline-offset: 6px;
    }
    
    .reason-info h3 {
        font-size: 1.2rem;
    }
    
    .reason-right {
        padding: 2rem 1.5rem;
    }
    
    .reason-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .reason-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .reasons-section {
        padding: 3rem 0;
    }
    
    .reasons-carousel {
        margin: 0 1rem;
    }
    
    .single-reason-card {
        gap: 1rem;
    }
    
    .reason-image-card img {
        height: 180px;
    }
    
    .reason-number {
        font-size: 2rem;
    }
    
    .reason-info h3 {
        font-size: 1.1rem;
    }
    
    .reason-right {
        padding: 1.5rem;
    }
    
    .reason-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===== SECTION ORGANISATION DE L'INSTITUTION ===== */

.organization-section {
    padding: 6rem 0;
    background: var(--blanc);
}

.organization-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.organization-section .section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--bleu-institutionnel);
    margin-bottom: 1rem;
}

.organization-section .section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.organization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.org-card {
    background: var(--blanc);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    border-top: 4px solid var(--jaune-or);
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.org-card.management {
    border-top-color: var(--jaune-or);
}

.org-card.academic {
    border-top-color: var(--bleu-institutionnel);
}

.org-card.administrative {
    border-top-color: #28a745;
}

.org-card.technical {
    border-top-color: #17a2b8;
}

.org-card.quality {
    border-top-color: #ffc107;
}

.org-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--gris-clair);
}

.org-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--blanc);
    background: linear-gradient(135deg, var(--jaune-or), #f1c40f);
}

.org-card.management .org-icon {
    background: linear-gradient(135deg, var(--jaune-or), #f1c40f);
}

.org-card.academic .org-icon {
    background: linear-gradient(135deg, var(--bleu-institutionnel), var(--bleu-fonce));
}

.org-card.administrative .org-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.org-card.technical .org-icon {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

.org-card.quality .org-icon {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.org-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bleu-institutionnel);
    margin: 0;
}

.org-content {
    padding: 2rem;
}

.org-member {
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.org-member:last-child {
    border-bottom: none;
}

.member-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bleu-institutionnel);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.service-group {
    margin-bottom: 2rem;
}

.service-group:last-child {
    margin-bottom: 0;
}

.service-group h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bleu-fonce);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--jaune-or);
    display: inline-block;
}

.service-group .org-member {
    padding: 0.8rem 0;
    margin-left: 1rem;
}

.service-group .org-member .member-name {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .organization-section {
        padding: 4rem 0;
    }
    
    .organization-section .section-header h2 {
        font-size: 1.625rem;
    }
    
    .organization-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .org-header {
        padding: 1.5rem 1.5rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .org-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .org-content {
        padding: 1.5rem;
    }
    
    .org-member {
        padding: 0.8rem 0;
    }
    
    .member-role {
        font-size: 0.8rem;
    }
    
    .member-name {
        font-size: 1rem;
    }
}

/* ===== SECTION PARTENAIRES - CARROUSEL ===== */

.partners-section {
    padding: 5rem 0;
    background: var(--gris-clair);
    overflow: hidden;
}

.partners-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.partners-section .section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.partners-section .section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.partners-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
    padding: 2rem 0;
}

.partners-track {
    display: flex;
    gap: 3rem;
    align-items: center;
    animation: slidePartners 15s linear infinite;
    width: calc(200% + 3rem);
}

.partner-item {
    flex: 0 0 200px;
    height: 120px;
    background: var(--blanc);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.partners-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.partner-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--bleu-institutionnel);
    color: var(--blanc);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-btn:hover {
    background: var(--bleu-fonce);
    transform: scale(1.1);
}

.partner-btn:active {
    transform: scale(0.95);
}

/* Animation automatique continue */
@keyframes slidePartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partners-track:hover {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
    .partners-section {
        padding: 3rem 0;
    }
    
    .partners-section .section-header h2 {
        font-size: 1.625rem;
    }
    
    .partner-item {
        flex: 0 0 150px;
        height: 100px;
        padding: 1rem;
    }
    
    .partners-track {
        gap: 2rem;
        animation: slidePartners 12s linear infinite;
    }
}

@media (max-width: 480px) {
    .partner-item {
        flex: 0 0 120px;
        height: 80px;
        padding: 0.5rem;
    }
    
    .partners-track {
        gap: 1.5rem;
        animation: slidePartners 10s linear infinite;
    }
}


/* ===== HERO MODERN - NOUVEAU DESIGN ===== */
.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -50px;
}

.hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 3, 85, 0.85) 0%, rgba(30, 58, 138, 0.85) 50%, rgba(59, 130, 246, 0.85) 100%);
    animation: gradientShift 15s ease infinite;
}

.hero-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/IMG_3008 - Copie.jpg');
    background-size: cover;
    background-position: center;
    animation: bgSlide 20s ease-in-out infinite;
    opacity: 0.4;
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes bgSlide {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content-modern {
    color: var(--blanc);
    padding: 3rem 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(254, 253, 5, 0.2);
    border: 1px solid rgba(254, 253, 5, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--jaune-or);
    margin-bottom: 2rem;
    margin-top: 8rem;
    backdrop-filter: blur(10px);
}

.hero-title-modern {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--blanc);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.highlight-gradient {
    background: linear-gradient(135deg, var(--jaune-or), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description-modern {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 650px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-stats-inline {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-inline {
    display: flex;
    flex-direction: column;
}

.stat-inline .stat-number {
    font-family: 'Nexa', 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--jaune-or);
}

.stat-inline .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--jaune-or);
    color: var(--bleu-institutionnel);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(254, 253, 5, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(254, 253, 5, 0.4);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--blanc);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
}

.hero-card-stack {
    position: relative;
    height: 400px;
}

.hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    width: 280px;
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-card-1 {
    top: 0;
    left: 0;
    z-index: 3;
}

.hero-card-2 {
    top: 80px;
    left: 60px;
    z-index: 2;
}

.hero-card-3 {
    top: 160px;
    left: 120px;
    z-index: 1;
}

.hero-card i {
    font-size: 2.5rem;
    color: var(--jaune-or);
    margin-bottom: 1rem;
}

.hero-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blanc);
    margin-bottom: 0.5rem;
}

.hero-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 4rem;
        padding: 0 2rem;
    }
    
    .hero-content-modern {
        padding: 2rem 0;
    }
    
    .hero-title-modern {
        font-size: 3.8rem;
    }
    
    .hero-description-modern {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .hero-modern {
        min-height: 85vh;
    }
    
    .hero-content-modern {
        padding: 4rem 2rem;
    }
    
    .hero-title-modern {
        font-size: 1.8rem;
    }
    
    .hero-description-modern {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-top: 0;
    }
    
    .hero-stats-inline {
        gap: 1.5rem;
    }
    
    .stat-inline .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}


/* ===== HERO SLIDER - NOUVEAU DESIGN ===== */
.hero-slider {
    position: relative;
    height: auto;
    min-height: 100vh;
    overflow: hidden;
    margin-top: 0;
    padding: 2rem 0;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 23, 116, 0.96), rgba(1, 16, 80, 0.94));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content-center {
    text-align: center;
    color: var(--blanc);
    max-width: 900px;
    padding: 0 2rem;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    margin-top: 4rem;
}

.hero-main-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fffb00;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-hero-yellow {
    background: var(--jaune-or);
    color: var(--bleu-institutionnel);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(254, 253, 5, 0.3);
}

.btn-hero-yellow:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(254, 253, 5, 0.5);
}

.btn-hero-outline {
    background: transparent;
    color: var(--blanc);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--blanc);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-number {
    font-family: 'Nexa', 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--jaune-or);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    font-weight: 500;
}

.hero-slider-controls {
    display: none;
}

.hero-slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--blanc);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-slider-btn:hover {
    background: var(--jaune-or);
    color: var(--bleu-institutionnel);
    border-color: var(--jaune-or);
    transform: scale(1.1);
}

.hero-slider-dots {
    display: none;
}

@media (max-width: 768px) {
    .hero-slider {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content-left {
        padding-top: 6rem;
    }
    
    .hero-subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
        margin-top: 0;
    }
    
    .hero-main-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-motto {
        font-size: 1rem;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-lead {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-hero-yellow,
    .btn-hero-outline {
        width: 100%;
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.8rem;
    }
}

/* Hero Motto */
.hero-motto {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--jaune-or);
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero-motto {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        min-height: 100vh;
    }
    
    .hero-content-left {
        padding-top: 4rem;
    }
    
    .hero-subtitle {
        font-size: 0.65rem;
        margin-top: 0;
    }
    
    .hero-main-title {
        font-size: 1.5rem;
    }
    
    .hero-motto {
        font-size: 0.9rem;
    }
    
    .hero-lead {
        font-size: 0.85rem;
    }
    
    .btn-hero-yellow,
    .btn-hero-outline {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-stats {
        gap: 0.75rem;
    }
    
    .hero-stat-number {
        font-size: 1.25rem;
    }
    
    .hero-stat-label {
        font-size: 0.75rem;
    }
}

/* ===== PARTICULES ACADÉMIQUES FLOTTANTES ===== */
.academic-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.academic-particles .particle {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(254, 253, 5, 0.12);
    animation: floatParticle 20s infinite ease-in-out;
}

.academic-particles .particle:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.academic-particles .particle:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
    animation-duration: 22s;
}

.academic-particles .particle:nth-child(3) {
    top: 60%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.academic-particles .particle:nth-child(4) {
    top: 70%;
    right: 20%;
    animation-delay: 1s;
    animation-duration: 19s;
}

.academic-particles .particle:nth-child(5) {
    top: 40%;
    left: 80%;
    animation-delay: 3s;
    animation-duration: 21s;
}

.academic-particles .particle:nth-child(6) {
    top: 30%;
    left: 25%;
    animation-delay: 5s;
    animation-duration: 23s;
}

.academic-particles .particle:nth-child(7) {
    top: 80%;
    left: 70%;
    animation-delay: 2.5s;
    animation-duration: 18s;
}

.academic-particles .particle:nth-child(8) {
    top: 15%;
    right: 30%;
    animation-delay: 4.5s;
    animation-duration: 20s;
}

.academic-particles .particle:nth-child(9) {
    top: 50%;
    right: 5%;
    animation-delay: 1.5s;
    animation-duration: 22s;
}

.academic-particles .particle:nth-child(10) {
    top: 90%;
    left: 40%;
    animation-delay: 3.5s;
    animation-duration: 19s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.12;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 0.18;
    }
    50% {
        transform: translateY(-60px) translateX(-20px) rotate(180deg);
        opacity: 0.12;
    }
    75% {
        transform: translateY(-30px) translateX(30px) rotate(270deg);
        opacity: 0.18;
    }
}

@media (max-width: 768px) {
    .academic-particles .particle {
        font-size: 1.8rem;
    }
}

/* ===== LIGHTBOX GALERIE ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--jaune-or);
    transform: scale(1.1);
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-img {
        max-width: 95%;
        max-height: 85vh;
    }
}