/* Définition des variables CSS pour simuler les couleurs de l'original (Approximation) */
:root {
    --bs-primary: #003066; /* Simuler 'text-primary' ou 'navy' */
    --bs-secondary: #e9eef8; /* Simuler 'bg-secondary' */
    --bs-accent: #f59e0b; /* Simuler 'bg-accent' ou 'gold' */
    --bs-cream: #fef3c7; /* Simuler 'bg-cream' */
    --bs-primary-light: #ffffff; /* Simuler 'text-primary-foreground' (blanc) */
    --bs-muted-foreground: #6b7280; /* Simuler 'text-muted-foreground' */
    --navy-gradient: linear-gradient(to right, #003066, #00234b); /* Approximation gradient-navy */
}

/* Utilitaires personnalisés */
.bg-navy-gradient { background: var(--navy-gradient); }
.text-accent-custom { color: var(--bs-accent) !important; }
.bg-accent-custom { background-color: var(--bs-accent) !important; color: var(--bs-primary-light) !important; }
.bg-cream-custom { background-color: var(--bs-cream) !important; }
.text-muted-custom { color: var(--bs-muted-foreground) !important; }
.btn-gold-shadow { box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.5), 0 4px 6px -2px rgba(245, 158, 11, 0.05); }

/* HEADER */
.navbar-custom { transition: background-color 0.3s, box-shadow 0.3s; background-color: #ffffff !important; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important; }
.navbar-brand-text { line-height: 1.2; }

.icon-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-circle-lg {
    width: 2.5rem;
    height: 2.5rem;
}
.icon-circle-md {
    width: 3.5rem;
    height: 3.5rem;
}

/* NAVIGATION */
.nav-link-custom { 
    padding: 0.5rem 1rem; 
    border-radius: 0.25rem;
    transition: all 0.2s;
}
.nav-link-custom:hover { 
    color: var(--bs-primary) !important;
    background-color: rgba(0, 0, 0, 0.05); /* Simuler hover:bg-muted */
}
.nav-link-custom.active {
    color: var(--bs-primary) !important;
    background-color: var(--bs-secondary) !important;
}

/* SECTIONS */
.section-padding { padding: 4rem 0; }

/* HERO SECTION */
.hero-section {
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    /* Utilisé par index.php pour charger l'image */
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* bg-gradient-to-r from-navy/90 via-navy/70 to-navy/40 */
background: linear-gradient(
    to right,
    rgba(0, 48, 102, 0.774), /* from: navy/90 */
    rgba(0, 48, 102, 0.575), /* via: navy/70 */
    rgba(0, 48, 102, 0.26)  /* to: navy/40 */
);


}
.hero-title { font-size: 3rem; font-weight: 800; }
.hero-subtitle { font-size: 1.5rem; }

.bounce-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1.5s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-30px);}
    60% {transform: translateX(-50%) translateY(-15px);}
}
/* MISSION CARD */
.mission-card img {
    transition: transform 0.5s;
    height: 100%;
}
.mission-card:hover img {
    transform: scale(1.05);
}
.bg-secondary {
    background-color: var(--bs-secondary) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}
.nav-link.active {
    color: #003066 !important;
    font-weight: 700;
    border-bottom: 3px solid #003066;
}
.navbar-brand-text {
    color: #003066 !important;
    font-size: 20px !important;
    margin-top: -10px !important;
}
.error-message{
    text-align: center !important;
    color: red !important;
    font-weight: bold !important;
    animation: error-message 2s ease-in-out infinite alternate;
    margin-top: 5px !important;
}

/* ---------------------------------------------------- */
/* ANIMATION COMBINÉE : Fade In Down + Vibration continue */
/* ---------------------------------------------------- */
@keyframes error-message {
    /* Étape 1: Démarrage (caché et décalé vers le haut) - pour l'effet FadeInDown */
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    
    /* Étape 2: Fin du FadeIn (apparition complète) */
    30% {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Étape 3 et suivantes: Le secouage vertical subtil et continu */
    65% {
        transform: translateY(-2px);
    }
    100% {
        transform: translateY(2px);
    }
}


