/* Variables personnalisées - COULEURS THÈME HAITI */
:root {
    --haiti-primary: #D9043D;
    --haiti-secondary: #033E8C;
    --haiti-success: #107C41;
    --haiti-warning: #F28705;
    --haiti-info: #3498DB;
    --haiti-danger: #D90404;
}

/* ===== STYLES DE BASE ===== */
body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Suppression des styles redondants avec Bootstrap */
fieldset {
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

legend {
    font-weight: bold;
    padding: 0 10px;
}

/* ===== FORMULAIRES ET TABLEAUX ===== */
.form-section-title {
    background-color: #f8f9fa;
    padding: 10px;
    margin-bottom: 15px;
    border-left: 5px solid #0d6efd;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
}

.success-message {
    padding: 15px;
    border-radius: 5px;
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    margin-bottom: 20px;
}

.table th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
}

/* ===== LANDING PAGE ===== */
.landing-page {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, var(--haiti-primary) 0%, var(--haiti-secondary) 100%);
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-section .landing-content {
    background: rgba(7, 91, 94, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* ===== COMPOSANTS UI ===== */
.dashboard-card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.stat-card {
    border-radius: 0.375rem;
    border: none;
}

.auth-card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.375rem;
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 20px 0;
}

/* ===== BOUTONS ET NAVIGATION ===== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== NAVBAR STICKY ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* ===== CARTES ===== */
.card {
    position: relative;
    z-index: 1;
}

/* ===== FORMULAIRES ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--haiti-primary);
    box-shadow: 0 0 0 0.2rem rgba(217, 4, 61, 0.25);
}

/* ===== TABLES ET ÉLÉMENTS ===== */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.badge {
    font-weight: 600;
    font-size: 0.75em;
    border-radius: 6px;
}

/* ===== SCROLLBAR PERSONNALISÉE ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--haiti-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a7032f;
}

/* ===== LOGO AUTHENTIFICATION ===== */
.auth-logo {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) !important;
    transition: all 0.3s ease !important;
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 10 !important;
}

.auth-logo:hover {
    transform: scale(1.05) !important;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3)) !important;
}

.auth-container {
    position: relative !important;
    min-height: 100vh !important;
}

.auth-main-content {
    margin-top: 60px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .chart-container {
        height: 300px;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .auth-logo {
        width: 100px !important;
        height: 100px !important;
        top: 15px !important;
        left: 15px !important;
    }

    .auth-main-content {
        margin-top: 50px !important;
    }
}

@media (max-width: 576px) {
    .auth-logo {
        width: 80px !important;
        height: 80px !important;
        top: 10px !important;
        left: 10px !important;
    }

    .auth-main-content {
        margin-top: 40px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER - STYLES (Bootstrap 5 + animations)
═══════════════════════════════════════════════════════════════════════════ */

/* Animation d'entrée du footer */
@media (prefers-reduced-motion: no-preference) {
    footer {
        animation: fadeInUp 0.5s ease-out;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo du footer - Design original */
.footer-logo {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    transition: transform 0.3s ease;
    margin-right: 10px;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Taille des textes dans le footer */
.footer-text {
    font-size: 0.9rem;
    line-height: 1.7;
}

footer h6 {
    font-size: 0.85rem;
}

footer .small,
footer small {
    font-size: 0.85rem;
}

footer address p,
footer ul li a {
    font-size: 0.9rem;
}

/* Grille 2x2 pour les icônes sociales */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 100px;
}

/* Boutons sociaux - taille fixe et hover */
.social-btn {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    transform: translateY(-3px);
}

/* Icônes font-awesome dans le footer - taille et marge */
footer .footer-icon {
    width: 18px;
    font-size: 1rem;
    margin-right: 5px;
    text-align: center;
}

/* Icônes des titres de section du footer */
footer .footer-title-icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Lien EdCreative - bleu marine */
.edcreative-link {
    color: #001f5b !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.edcreative-link:hover {
    color: #003399 !important;
    text-shadow: 0 0 5px rgba(0, 31, 91, 0.3);
}

/* Print styles - masquer le footer lors de l'impression */
@media print {
    footer {
        display: none;
    }
}