/* ==========================================================================
    1. STYLES GLOBAUX & REINITIALISATION
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

:root {
    --dark-header: #2b2e33;
    --red-accent: #e30613;
    --light-cream: #fbf6eb;
    --border-gray: #e6e6e6;
    --text-main: #333333;
    --text-light: #666666;
    --font-blue: #004b93;
}

body {
    background-color: #ffffff; /* Changer la couleur de fond des pages. */
    color: var(--text-main);
}

/* Suppression globale du soulignement de tous les liens */
a {
    text-decoration: none;
}

/* ==========================================================================
    1b. AJOUT : CENTRAGE DU CONTENU (ACCESSIBLE PARTOUT)
   ========================================================================== */
    /* Style épuré pour la zone principale */
    .main-content {
        max-width: 800px;
        margin: 60px auto;
        padding: 40px;
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: #333333;
    }

    /* Titre principal discret et moderne */
    .main-content h1 {
        font-size: 2rem;
        color: #0056b3; /* Bleu standard, s'accorde souvent avec la CNL */
        margin-bottom: 20px;
        border-bottom: 2px solid #f0f0f0;
        text-align: center;
        padding-bottom: 10px;
    }

    /* Zone de bienvenue */
    .welcome-text h2 {
        font-size: 1.4rem;
        color: #555555;
        text-align: center;
        margin-top: 0;
    }

    .welcome-text p {
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: center;
        color: #0501fd;
    }


/* ==========================================================================
    2. BANDEAU SUPERIEUR (TOP BAR)
   ========================================================================== */
.top-bar {
    background-color: var(--dark-header);
    color: #ffffff;
    font-size: 13px;
    padding: 10px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left i {
    color: #b0b3b8;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-container {
    position: relative;
    margin-right: 10px;
}

.search-container input {
    background-color: #3e4146;
    border: none;
    padding: 6px 30px 6px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    outline: none;
    width: 150px;
}

.search-container i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b3b8;
    font-size: 11px;
    cursor: pointer;
}

.social-icons a {
    color: #b0b3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    margin-left: 8px;
}

.social-icons a:hover {
    color: #ffffff;
}

.btn-top-contact {
    background-color: var(--red-accent);
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    transition: background-color 0.3s;
}

.btn-top-contact:hover {
    background-color: #be050f;
}

/* Container global de la date et de l'heure */
.top-time {
    margin-left: 15px;
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
}

/* Force la couleur, la taille et la police sur les textes, les icônes et le séparateur */
.top-time, 
.top-time span, 
.top-time i, 
.top-time .clock-separator {
    color: #07ffc1 !important;
    font-size: 20px !important;
    font-weight: bold !important;
}

.top-time .clock-separator {
    opacity: 0.7;
}

/* ==========================================================================
    3. EN-TETE ET MENU PRINCIPAL (RESTAURE A LA TAILLE NORMALE)
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background-color: #ffffff;
    border-bottom: 2px solid var(--border-gray);
    padding: 0 5%;
    height: 110px; 
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.logo-container img {
    height: 65px; 
    width: auto;
}

.main-menu {
    display: flex;
    list-style: none;
    height: 100%;
}

.main-menu > li {
    display: flex;
    align-items: stretch;
    border-left: 1px solid var(--border-gray);
}

.main-menu > li:last-child {
    border-right: 1px solid var(--border-gray);
}

.main-menu > li > a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 0 35px;
    text-decoration: none;
    color: #050505;
    font-weight: 500;
    font-size: 14px; 
    transition: background-color 0.2s;
}

.main-menu > li > a span.sub {
    font-weight: normal;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
    font-style: italic;
    line-height: 1.2;
}

.main-menu > li > a i {
    font-size: 12px;
    margin-left: 3px;
    color: #999999;
}

.main-menu > li.active > a {
    background-color: var(--light-cream);
    color: var(--red-accent);
}

.main-menu > li > a:hover {
    background-color: #fafafa;
}

/* ==========================================================================
    4. SECTION HERO (BANNIERE D'ACCUEIL)
   ========================================================================== */
.hero-section {
    background-color: var(--light-cream);
    display: flex;
    align-items: stretch;
    min-height: 480px;
    overflow: hidden;
    position: relative;
}

.hero-left {
    width: 45%;
    padding: 60px 5% 60px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hero-logo {
    width: 200px;
    margin-bottom: 15px;
}

.hero-left h2 {
    font-size: 34px;
    color: #2b2e33;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero-left p {
    font-size: 18px;
    color: #555555;
    font-weight: 500;
}

.hero-right {
    width: 55%;
    background-image: url('img/images_menu/tours.png'); /* Pour la page d'accueil */
    background-size: cover;
    background-position: left bottom;
    clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
}

/* ==========================================================================
    4b. STYLE GLOBAL DE LA PAGINATION (PAGER) - ACCESSIBLE PARTOUT
   ========================================================================== */
.pager {
    display: flex;
    list-style-type: none !important; /* Enlève définitivement les puces noires */
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    align-items: center;
    justify-content: center; /* Centre les numéros au milieu */
}

.pager li {
    margin: 0 5px;
    list-style-type: none !important;
}

.pager li a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--font-blue); /* Utilise la couleur bleue globale du site */
    border: 1px solid var(--border-gray);
    background-color: #ffffff;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Style spécifique pour les CHIFFRES (Rond parfait) */
.pager li:not(.previous):not(.next) a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

/* Style pour les boutons Précédent et Suivant (Ovale) */
.pager li.previous a, 
.pager li.next a {
    padding: 8px 20px;
    border-radius: 20px;
}

/* Positionnement intelligent sur les côtés extérieurs */
.pager li.previous {
    margin-right: auto; /* Aimante "Précédent" tout à gauche */
}

.pager li.next {
    margin-left: auto; /* Aimante "Suivant" tout à droite */
}

/* Effets au survol */
.pager li a:hover {
    background-color: var(--light-cream);
    border-color: var(--red-accent);
    color: var(--red-accent);
}


/* ==========================================================================
    5. PIED DE PAGE (FOOTER)
   ========================================================================== */
footer {
    background-color: var(--dark-header);
    color: #ffffff;
    padding: 60px 10% 40px 10%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo-area img {
    width: 180px;
    margin-bottom: 20px;
}

.footer-logo-area p {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-footer-contact {
    background-color: var(--red-accent);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-footer-contact:hover {
    background-color: #be050f;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 700;
    color: #ffffff;
}

.footer-col p {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 12px;
}

.footer-col p strong {
    color: #ffffff;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-socials a {
    background-color: #3e4146;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.footer-socials a:hover {
    background-color: var(--red-accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    border-bottom: 1px solid #3e4146;
    padding-bottom: 8px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.footer-links a::before {
    content: "▼";
    font-size: 9px;
    color: #888;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links span.accent-text {
    color: var(--red-accent);
    font-weight: bold;
}

.copyright-bar {
    background-color: #202225;
    color: #888888;
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
    border-top: 1px solid #2b2e33;
}

/* ==========================================================================
    6. CORRECTIONS SYSTEMATIQUES DU PROFIL (CONNEXION SANS BUG)
   ========================================================================== */
.dropdown-toggle::after,
.custom-profile-dropdown .dropdown-toggle::after,
.profile-trigger::after,
.nav-link.dropdown-toggle::after {
    display: none !important;
    content: none !important;
    border: none !important;
}

.custom-profile-dropdown, 
.custom-profile-dropdown ul, 
.custom-profile-dropdown li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-profile-dropdown,
.custom-profile-dropdown .nav-link,
#navbarDropdown {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.custom-profile-dropdown i.fas.fa-user,
.custom-profile-dropdown i.fas.fa-user-circle {
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 20px !important;
    position: relative;
    top: 5px;
}

.user-avatar {
    border: none !important;
    box-shadow: none !important;
    position: relative;
    top: 5px;
}

#layoutAuthentication {
    margin-top: 0 !important;
    padding-top: 10px !important;
}

/* ==========================================================================
    7. ESPACEMENT DES ARTICLES (GLOBAL - HORS MEDIA QUERY)
   ========================================================================== */
#articles-container .article-card, 
#articles-container [class*="col-"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-bottom: 30px !important; /* Espace vertical entre les lignes */
}

/* ==========================================================================
    8. RESPONSIVE (POUR ECRANS TACTILES ET MOBILES)
   ========================================================================== */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        align-items: center;
        gap: 15px;
    }
    
    .hero-section {
        flex-direction: column;
    }
    
    .hero-left {
        width: 100%;
        padding: 40px 20px;
        text-align: center;
        align-items: center;
    }
    
    .hero-right {
        width: 100%;
        height: 300px;
        clip-path: none;
        background-position: center center;
    }
    
    .footer-grid {
        grid-template-columns: 6fr;
        gap: 40px;
    }
    
    body main {
        text-align: center;
    }

    .lien-profil {
        color: #68ff03;
        text-decoration: none;
    }

    .lien-profil:hover {
        color: #fd0606;
    }

    #intro-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #111;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: opacity 0.8s ease, visibility 0.8s;
    }

    #intro-screen.fade-out {
        opacity: 0;
        visibility: hidden;
    }

    #main-content {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 1s ease 0.4s, transform 1s ease 0.4s;
    }

    #main-content.show {
        opacity: 1;
        transform: translateY(0);
    }
}