/* ===================================
   VARIABLES CSS ET CONFIGURATION GLOBALE
   =================================== */
:root {
    /* Palette de couleurs principale */
    --primary-color: #1e40af;        /* Bleu profond professionnel */
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;      /* Jaune/Orange (couleurs du drapeau gabonais) */
    --secondary-dark: #d97706;
    --secondary-light: #fbbf24;
    --accent-color: #fbbf24;         /* Jaune (couleurs du drapeau gabonais) */

    /* Couleurs neutres */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;

    /* Ombres et effets */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   RESET ET STYLES DE BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'LT Vin', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #00933B;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* ===================================
   SLIDESHOW D'ARRIÈRE-PLAN
   =================================== */
.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

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

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

/* ===================================
   CONTENEUR PRINCIPAL
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   LOGO DANS LE HERO
   =================================== */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.logo-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-md);
    animation: logoFloat 3s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo {
    height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all var(--transition-normal);
}

.logo-wrapper:hover {
    transform: scale(1.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* ===================================
   SECTION HERO PRINCIPALE
   =================================== */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
    animation: fadeIn 0.8s ease;
}

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

.hero-content {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: slideUp 0.8s ease;
}

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

/* Badge République */
.badge {
    display: inline-block;
    background: #FCD116;
    color: #1f2937;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
}

/* Badge Plateforme - Grand format */
.badge-platform {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 700;
    padding: var(--spacing-sm) var(--spacing-lg);
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    margin-top: var(--spacing-md);
}

.badge-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Titre principal */
.main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Sous-titre */
.subtitle {
    font-size: 1.125rem;
    color: #e5e7eb;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   BOUTONS D'ACTION (CTA)
   =================================== */
.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Styles de base des boutons */
.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50%;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    width: 200px;
    height: 200px;
    position: relative;
    text-align: center;
}

/* Icônes des boutons */
.btn-icon {
    width: 64px;
    height: 64px;
    transition: transform var(--transition-normal);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    padding: 0.75rem;
}

.btn:hover .btn-icon {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

/* Bouton primaire (Administration) */
.btn-primary {
    background: #00933B;
    color: #ffffff;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #00B347;
    background: #007A2F;
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Bouton secondaire (Formulaire) */
.btn-secondary {
    background: #FCD116;
    color: #1f2937;
    border-color: transparent;
}

.btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #FFE066;
    background: #E5BD00;
}

.btn-secondary:active {
    transform: translateY(-1px);
}

/* Bouton tertiaire (Autres Formulaire) */
.btn-tertiary {
    background: #0050A5;
    color: #ffffff;
    border-color: transparent;
}

.btn-tertiary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #0066CC;
    background: #003D7A;
}

.btn-tertiary:active {
    transform: translateY(-1px);
}

/* ===================================
   CARTES D'INFORMATION
   =================================== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.info-card {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.info-icon svg {
    width: 32px;
    height: 32px;
}

.info-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.info-card p {
    font-size: 0.938rem;
    color: var(--text-secondary);
}

/* ===================================
   COPYRIGHT
   =================================== */
.copyright-text {
    margin-top: var(--spacing-lg);
    font-size: 0.875rem;
    color: #e5e7eb;
    text-align: center;
    opacity: 0.9;
    font-weight: 500;
}

/* ===================================
   RESPONSIVE - TABLETTES
   =================================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .logo {
        height: 90px;
    }

    .logo-wrapper {
        margin-bottom: var(--spacing-md);
    }

    .hero-content {
        padding: var(--spacing-lg);
        border-radius: 20px;
    }

    .main-title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.875rem;
        padding: 1.5rem;
        width: 150px;
        height: 150px;
    }

    .btn-icon {
        width: 48px;
        height: 48px;
        padding: 0.5rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

/* ===================================
   RESPONSIVE - MOBILES
   =================================== */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .logo {
        height: 70px;
    }

    .logo-wrapper {
        margin-bottom: var(--spacing-sm);
        padding: 1rem 1.5rem;
    }

    .hero-section {
        padding: var(--spacing-md) 0;
    }

    .hero-content {
        padding: var(--spacing-md);
        border-radius: 16px;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.938rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
    }

    .cta-buttons {
        gap: var(--spacing-sm);
    }

    .btn {
        font-size: 0.75rem;
        padding: 1rem;
        width: 110px;
        height: 110px;
        gap: 0.5rem;
    }

    .btn-icon {
        width: 32px;
        height: 32px;
        padding: 0.375rem;
    }

    .info-icon {
        width: 50px;
        height: 50px;
    }

    .info-icon svg {
        width: 26px;
        height: 26px;
    }
}

/* ===================================
   ANIMATIONS SUPPLÉMENTAIRES
   =================================== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ===================================
   ACCESSIBILITÉ
   =================================== */
/* Focus visible pour la navigation au clavier */
.btn:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/* Réduction des animations si préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
