/* --- Global Styles & Fonts --- */
:root {
    --primary-blue: #005A9C;      /* Un bleu fort et professionnel */
    --light-blue-bg: #F0F8FF;     /* Couleur de fond légère */
    --dark-blue-header: #0d2c4a;   /* Couleur foncée pour header et footer */
    --text-color: #333;           /* Couleur principale du texte */
    --white-color: #FFFFFF;        /* Blanc */
    --accent-green: #1eb53a;      /* Vert d'accentuation */
    --accent-red: #CE1126;        /* Rouge d'accentuation */
    --footer-text-color: #d1e3f3; /* Couleur du texte dans le footer */
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-blue-bg);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1; /* Permet au contenu principal de pousser le footer vers le bas */
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--primary-blue);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Header --- */
.site-header {
    background-color: var(--dark-blue-header);
    padding: 10px 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    color: var(--white-color);
    font-size: 1.5em;
    font-weight: bold;
}

.logo-image {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--white-color);
}

.main-nav a {
    color: var(--white-color);
    margin-left: 20px;
    font-size: 1.1em;
}

.main-nav a.nav-button {
    background-color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.main-nav a.nav-button:hover {
    background-color: var(--accent-red);
    color: var(--white-color);
}

/* --- Hero Section --- */
/* --- Hero Section --- */
.hero {
    /* Suppression de la position relative et de l'image */
    text-align: center;
    color: var(--white-color);
    background-color: var(--dark-blue-header); /* Nouvelle couleur de fond bleue */
    margin-top: 80px; /* Espace de 80px sous le header */
    padding: 40px 20px; /* Aération interne */
    border-radius: 8px;
    max-width: 1400px; /* On aligne la largeur avec le reste du contenu */
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.hero-image {
   /* Cette section peut être supprimée car l'image n'existe plus, mais la laisser vide ne pose pas de problème */
   display: none; /* Cache complètement l'élément */
}

.hero-text {
    /* On supprime le positionnement absolu et le fond noir semi-transparent */
    position: static; /* Rétablit le flux normal */
    transform: none;
    background: none;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.hero h1 {
    font-size: 3em;
    margin: 0;
    color: var(--white-color);
}

.hero p {
    font-size: 1.2em;
    margin: 10px 0 0;
    opacity: 0.9;
}

/* --- Section Image & Publicité --- */
.intro-feature-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    gap: 30px;
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-image, .feature-ad {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: #e9ecef; /* Couleur de fond si l'image ou la pub est vide */
}

.feature-image {
    width: 400px;
    height: 280px;
}
.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-ad {
    width: 338px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-fallback-text {
    color: #888;
    font-size: 0.9em;
    display: none;
}
.adsbygoogle:not([data-ad-status="filled"]) + .ad-fallback-text {
    display: block;
}

/* --- Mise en Page Principale --- */
.main-content-area {
    display: flex;
    gap: 30px;
    padding: 0 5% 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.content-column {
    flex: 3;
}

.sidebar-column {
    flex: 1;
}

/* --- Blocs de Contenu --- */
.intro-text, .explore-section, .flags-list {
    background-color: var(--white-color);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.intro-text p {
    font-size: 1.1em;
}

.article-meta {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #666;
}
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.share-buttons img {
    width: 32px;
    height: 32px;
}

/* --- Section Explorer --- */

.explore-btn {
    display: inline-block;
    background-color: var(--accent-red); /* Couleur rouge pour un fort contraste */
    color: var(--white-color);
    padding: 20px 35px; /* Augmentation de la taille */
    border-radius: 8px; /* Bords plus arrondis */
    font-weight: bold;
    font-size: 0.8em; /* Police légèrement plus grande */
    text-align: center;
    text-transform: uppercase; /* Met le texte en majuscules pour plus d'impact */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Ombre portée pour un effet de relief */
    transition: all 0.3s ease; /* Transition douce pour toutes les propriétés */
}

.explore-btn:hover {
    background-color: #A80F20; /* Un rouge légèrement plus foncé au survol */
    color: var(--white-color);
    transform: translateY(-3px); /* Effet de soulèvement au survol */
    box-shadow: 0 6px 12px rgba(0,0,0,0.3); /* Ombre plus prononcée */
}

/* --- Liste des Drapeaux --- */
.flags-list h2 {
    text-align: center;
    font-size: 2.2em;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
    margin-bottom: 30px;
}
.flag-entry {
   margin-bottom: 40px;
}
.flag-entry h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}
.flag-container {
    width: 100%;
    max-width: 450px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* --- Barre Latérale & Pubs --- */
.ad-placeholder {
    background-color: #f9f9f9;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #999;
}

/* --- Footer Complet --- */
.site-footer {
    background-color: var(--dark-blue-header);
    color: var(--footer-text-color);
    padding: 50px 5% 20px;
    margin-top: auto; /* Pousse le footer vers le bas */
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    text-align: left;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column h4 {
    color: var(--white-color);
    font-family: 'Oswald', sans-serif;
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-blue);
}

.footer-column.about p {
    font-size: 0.95em;
    line-height: 1.7;
}

.footer-column.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column.links li {
    margin-bottom: 10px;
}

.footer-column.links a {
    color: var(--footer-text-color);
    transition: all 0.3s;
}

.footer-column.links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
}

.social-icons img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s;
}

.social-icons a:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2a4a6a;
    font-size: 0.9em;
    color: #a9c1d8;
}

/* --- AJOUTS POUR LES ANIMATIONS JAVASCRIPT --- */

/* 1. Style pour la Flèche "Retour en Haut" */
.scroll-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-blue);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
}

.scroll-top-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-button:hover {
    background-color: var(--accent-red);
    color: var(--white-color);
}

/* 2. Styles pour les Animations d'Apparition au Défilement */
/* On cache les éléments au départ */
.flag-entry {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* La classe 'visible' sera ajoutée par JS pour faire apparaître l'élément */
.flag-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Style pour le Header Dynamique */
.site-header.scrolled {
    background-color: rgba(13, 44, 74, 0.95); /* Un peu plus transparent */
    padding-top: 5px;
    padding-bottom: 5px;
    backdrop-filter: blur(5px); /* Effet de flou stylé sur les navigateurs compatibles */
    transition: padding 0.3s, background-color 0.3s;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .main-content-area {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav {
        width: 100%;
        display: flex;
        justify-content: space-around;
        margin-left: 0;
    }
    .main-nav a {
        margin-left: 0;
    }
    .hero-image {
        height: 300px;
    }
    .hero-text {
        padding: 15px 20px;
    }
    .hero h1 {
        font-size: 2.2em;
    }
    .hero p {
        font-size: 1em;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
	/* --- AMÉLIORATIONS RESPONSIVES POUR LES BOUTONS SUR MOBILE --- */
/* --- AMÉLIORATIONS RESPONSIVES POUR LES BOUTONS SUR MOBILE (Version corrigée) --- */
@media (max-width: 768px) {
    
    .explore-buttons {
        display: flex; /* On s'assure que le mode flex est actif */
        flex-direction: column; /* Aligne les boutons verticalement */
        align-items: center;    /* Centre les boutons horizontalement */
    }

    .explore-btn {
        width: 90%;             /* Les boutons occupent 90% de la largeur */
        max-width: 400px;
        box-sizing: border-box; /* Important pour que le padding ne s'ajoute pas à la largeur */
        margin-bottom: 20px;    /* AJOUT CLÉ : Ajoute un espace de 20px SOUS chaque bouton */
    }

    .explore-btn:last-child {
        margin-bottom: 0;       /* CORRECTION CLÉ : Supprime la marge du TOUT DERNIER bouton */
    }
    
}
    
}
	
