/* Base */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Évite tout défilement horizontal intempestif */
}

.banner {
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(0, 0, 0, 0.5) 70%, 
        rgba(40, 5, 5, 0.85) 100%
    ), 
    url('images/bandeau_site.png') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    padding: 60px 15px; /* Réduit de 100px à 60px pour un bandeau plus compact */
    position: relative;
    border-bottom: 3px solid #3a1c1c;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.8);
}

.banner h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem; /* Ajusté légèrement pour s'adapter à la nouvelle hauteur */
    font-weight: 800;
    letter-spacing: 5px;
    margin: 0;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(184, 134, 11, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.8);
}

/* Navigation principale */
.navbar {
    background-color: #ffffff;
    border-bottom: 2px solid #e0e0e0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 12px 14px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #0056b3;
    background-color: #f0f0f0;
}

/* Menus déroulants (Niveau 1) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
    z-index: 1000;
    padding: 0;
    list-style: none;
}

.dropdown-menu a {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

/* Sous-menus en cascade (Niveaux 2 et 3) */
.dropdown-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
    z-index: 1001;
    padding: 0;
    list-style: none;
}

.dropdown-submenu:hover > .submenu {
    display: block;
}

/* Alignement du sous-menu vers la gauche (évite le débordement d'écran) */
.submenu.align-left {
    left: auto;
    right: 100%;
}

/* Layout Pleine Largeur (sans Sidebar) */
.container {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.content {
    width: 100%;
}

/* Cartes d'accueil avec aperçu visuel */
.visual-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .visual-features {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.feature-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card img {
    width: 100%;
    height: 250px;
    object-fit: contain; /* Conserve le ratio sans déformer les aperçus */
    background-color: #f8f9fa;
    padding: 10px;
    box-sizing: border-box;
}

.card-caption {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

.card-caption h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.card-caption p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}
/* Zone d'affichage Google AdSense bas de page */
.adsense-container {
    max-width: 1200px;
    margin: 40px auto 20px auto;
    padding: 15px;
    background-color: #fafafa;
    border: 1px dashed #d0d0d0;
    border-radius: 6px;
    text-align: center;
    box-sizing: border-box;
}

.adsense-label {
    font-family: sans-serif;
    font-size: 0.75rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
/* Pied de page : fond très sombre (presque noir) avec un reflet discret */
.main-footer {
    text-align: center;
    padding: 60px 15px 35px 15px;
    
    /* Image calée en bas avec dégradé fluide */
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.5) 70%, 
        rgba(40, 5, 5, 0.85) 100%
    ), 
    url('images/bandeau_site.png') center bottom/cover no-repeat;
    
    color: #ffffff;
    margin-top: 60px; /* Espace propre avec les cartes du dessus */
    border-top: 3px solid #b8860b;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.6);
}

.main-footer p {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    font-family: 'Cinzel', serif;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.9);
}

/* Styles pour les pages d'articles (ex: Homo Erectus) */
.article-page h2 {
    font-family: 'Cinzel', serif;
    color: #3a1c1c;
    border-bottom: 2px solid #b8860b;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.article-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.article-img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.quick-facts {
    flex: 1;
    min-width: 280px;
}

/* Frise indicative */
.timeline-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eee;
    border-radius: 4px;
    padding: 6px 12px;
    margin: 15px 0;
    font-weight: bold;
    font-size: 0.85rem;
}

.bar-fill {
    flex: 1;
    height: 8px;
    background: #3a1c1c;
    margin: 0 10px;
    border-radius: 4px;
}

.key-points {
    padding-left: 20px;
    margin: 10px 0 0 0;
}

.key-points li {
    margin-bottom: 6px;
}

/* Corps d'article */
.article-body {
    line-height: 1.6;
    margin-bottom: 25px;
}

.sites-section {
    margin-bottom: 25px;
}

.sites-section h3 {
    font-family: 'Cinzel', serif;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.data-list {
    list-style-type: square;
    padding-left: 20px;
    line-height: 1.5;
}

.data-list li {
    margin-bottom: 12px;
}

/* Encadré résumé */
.summary-box {
    background: #f9f8f6;
    border-left: 4px solid #b8860b;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
}

.conclusion-text {
    font-weight: bold;
    color: #3a1c1c;
    margin-top: 10px;
}

.profile-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Fluidité de l'animation */
    cursor: pointer;
}

.profile-card img:hover {
    transform: scale(1.08); /* Agrandit l'image de 8% */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Ajoute une légère ombre de relief */
}