/*
Theme Name: Ragecraft IV Adventure Journal
Author: Ton Nom
Version: 1.0
Description: Thème sur la map Ragecraft IV par Heliceo.
*/

/* 1. Set les truc de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #101010; /* Fond très sombre */
    color: #f0f0f0;
    line-height: 1.6;
}

h1, h2 {
    font-family: 'MedievalSharp', cursive; /* Police */
    font-weight: normal;
}

/* 2. Utilitaires Flexbox & Centrage */
.flex-nav { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-column-center { display: flex; flex-direction: column; align-items: center; }
.text-center { text-align: center; }

/* 3. Header & Nav */
.site-header {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1.5rem 5%;
    position: fixed; /* Reste collé en haut */
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #333;
}

.logo a {
    font-size: 1.8rem;
    color: #ffcc00; /* Couleur or */
    text-decoration: none;
    font-family: 'MedievalSharp', cursive;
}

.nav-links {
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover { color: #ffcc00; }

/* ============================================= */
/* 4. HERO BANNER               */
/* ============================================= */
.hero-banner {
    width: 100%;
    height: 100vh;
    position: relative;
    background-color: #101010; /* Fond de sécurité */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Overlay sombre pour améliorer le contraste du texte */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    z-index: 2; /* Reste au-dessus de l'overlay */
    text-align: center;
    padding: 0 2rem;
}

.hero-title {
    font-size: 6rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 204, 0, 0.7);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #e0e0e0;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

.hero-icon-scroll {
    font-size: 2.5rem;
    color: #ffcc00;
    margin-top: 3rem;
    animation: bounce 2s infinite; /* Petite animation sympa */
}

/* Animation de rebond pour l'icône de scroll */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-15px);}
    60% {transform: translateY(-7px);}
}

/* ============================================= */
/* 4. Galerie des screenshots Funny :)           */
/* ============================================= */

.gallery-section {
    padding: 2rem 5%;
    background-color: #1a1a1a;
    text-align: center;
}

.grid-gallery {
    display: grid;
    /* Création de 3 colonnes égales */
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem;
    margin: 2rem auto;
    max-width: 90vw;
}

.gallery-item {
    aspect-ratio: 16/9; /* Garde toutes les images au même format */
    overflow: hidden;
    border: 2px solid #333;
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le cadre sans déformer */
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: #ffcc00;
}

/* Cacher les images au-delà du 3x3 */
.hidden-item {
    display: none;
}

/* Style du bouton */
.btn-primary {
    background: #ffcc00;
    color: #111;
    border: none;
    padding: 15px 30px;
    font-family: 'MedievalSharp', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 5px;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
}

/* ============================================= */
/* 5. JOURNAL ARTICLES                           */
/* ============================================= */

/* Conteneur principal qui force le centrage de tout ce qu'il contient */
.journal-container {
    width: 100%;
    padding: 100px 0; /* Espace après le hero */
}

/* Style de chaque Article/Post */
.journal-entry {
    width: 90%;             /* Largeur adaptative pour mobile */
    max-width: 65vw; 
    margin-bottom: 3rem;   /* Espace entre les posts */
    display: flex;
    flex-direction: column; /* Force les éléments de l'article à s'empiler verticalement */
    align-items: center;    /* Centre les éléments (image, titre) horizontalement */
}

.entry-title {
    font-size: 3.5rem;
    color: #f0f0f0;
    margin-bottom: 2rem;
}

.separator-icon {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 40px;
}

/* Style de l'image (Screenshot) */
.entry-image {
    width: 100%;
    margin-bottom: 2rem;
}

.centered-img {
    max-width: 100%;
    height: auto;
    border: 5px solid #222;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s;
}

/* Interactivité JS simple ou CSS : effet de focus sur l'image */
.centered-img:hover {
    transform: scale(1.1);
    border-color: #ffcc00;
}

/* Style du texte (paragraphes et contenu éditeur WP) */
.entry-content {
    font-size: 1.25rem;
    color: #ccc;
    line-height: 1.9;
}

.entry-content p {
    margin-bottom: 25px; /* Espace entre paragraphes */
    text-align: center; /* Force le texte au centre */
}

/* Ligne de séparation finale */
.post-divider {
    width: 350px;
    border: 0;
    border-top: 2px solid #333;
    margin-top: 5rem;
}

/* ============================================= */
/* 6. Footer                                     */
/* ============================================= */
.adventure-footer {
    background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
    color: #b0b0b0;
    padding: 0;
    position: relative;
    border-top: 1px solid #333;
}

/* Ligne décorative dorée en haut du footer */
.footer-top-border {
    height: 0.25rem;
    background: linear-gradient(90deg, transparent, #ffcc00, transparent);
    width: 100%;
    margin-bottom: 3rem;
}

.footer-inner {
    display: flex;
    justify-content: space-around;
    gap: 4rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-col h4 {
    color: #fff;
    font-family: 'MedievalSharp', cursive;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Logo dans le footer */
.footer-brand .site-logo a {
    font-family: 'MedievalSharp', cursive;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
}

.footer-brand .site-logo span { color: #ffcc00; }

.brand-description {
    margin-top: 1rem;
    max-width: 15.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Icônes Sociales */
.social-links {
    display: flex;
    gap: 2rem;
}

.social-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    transform: translateY(-0.5rem);
    background: #ffcc00;
    color: #000;
}

/* Bas du footer */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
}

.footer-info .legal {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 1rem;
}

.mc-badge {
    background: #222;
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #2ecc71;
}

/* ============================================= */
/* 6. RESPONSIVE DESIGN (Adaptatif)              */
/* ============================================= */

@media (max-width: 768px) {
    .site-header { padding: 10px 3%; }
    .logo a { font-size: 1.4rem; }
    .nav-links { gap: 2rem; font-size: 0.9rem; }

    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .entry-title { font-size: 2.5rem; }
    .entry-content { font-size: 1.1rem; }
        .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-col h4 { justify-content: center; }
    .brand-description { margin: 1.5rem auto; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
}

/* Images globales pour éviter les débordements */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    /* Menu Header mobile */
    .nav-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Galerie mobile : 1 seule colonne */
    .grid-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Hero Banner mobile */
    .hero-title {
        font-size: 2.8rem;
    }

    /* Journal mobile */
    .journal-entry {
        max-width: 95vw;
    }
    
    .entry-title {
        font-size: 2rem;
    }

    /* Footer mobile : on centre tout */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}