/* Reset + base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Arial Narrow', Arial, 'Tahoma', sans-serif;
    background: #ffffff;
    color: #1e293b;
    line-height: 1.5;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: #0a2a3a;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}
header.scrolled { padding: 10px 0; background: #051e2a; }
.header-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 50px; width: auto; }
.logo-text strong { display: block; color: #d4af37; font-size: 1.4rem; }
.logo-text span { font-size: 0.75rem; color: #cbd5e1; letter-spacing: 0.3px; }

nav { position: relative; }
nav ul { display: flex; gap: 28px; list-style: none; }
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s;
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover, nav a.active { color: #d4af37; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    nav { width: 100%; }
    nav ul {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #0a2a3a;
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 15px;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    nav ul.show { display: flex !important; }
    nav ul li a { display: block; padding: 12px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
    nav ul li a::after { display: none; }
    .container { padding: 0 16px; }
}
/* =====================================================
   PRELOADER (ÉCRAN DE CHARGEMENT)
   ===================================================== */
#page-preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #f1f5f9; /* Couleur de fond de ton site */
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Classe ajoutée par le JS quand la page est chargée */
#page-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Le conteneur du cercle et du logo */
.loader-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Le logo au centre */
.preloader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centre parfaitement l'image */
    width: 50px; /* Ajuste la taille de ton logo ici */
    height: auto;
    z-index: 2;
    animation: pulse-logo 2s infinite ease-in-out; /* Petit effet de respiration */
}

/* Le cercle animé (fait avec des ombres CSS) */
.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: spin-ring 1.5s linear infinite;
}

/* Création des 8 points autour du cercle */
.spinner-ring::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 12px; height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: #84cc16; /* Vert de ton image */
    box-shadow: 
        0 0 10px #84cc16, /* Effet lumineux sur le point principal */
        28px 28px 0 0 rgba(132, 204, 22, 0.7),
        40px 0 0 0 rgba(132, 204, 22, 0.5),
        28px -28px 0 0 rgba(132, 204, 22, 0.3),
        0 -40px 0 0 rgba(132, 204, 22, 0.1),
        -28px -28px 0 0 rgba(132, 204, 22, 0.3),
        -40px 0 0 0 rgba(132, 204, 22, 0.5),
        -28px 28px 0 0 rgba(132, 204, 22, 0.7);
}

.preloader-text {
    color: #0a2a3a;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: pulse-text 1.5s infinite;
}

/* Animations */
@keyframes spin-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-logo {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}