/*
Theme Name: Reptiles Passion Jungle
Theme URI: https://www.reptiles-passion.com
Author: Metin
Description: Thème WordPress ambiance forêt / jungle pour Reptiles Passion (reptiles & dinosaures).
Version: 1.0
Text Domain: reptiles-passion-jungle
*/

:root {
    /* Palette jungle / forêt */
    --rp-bg: #050a06;          /* fond global très sombre, vert-noir (base) */
    --rp-bg-alt: #101a11;      /* fond de cartes / blocs */
    --rp-card: #101a11;
    --rp-card-soft: #151f15;
    --rp-accent: #4B8B3B;      /* vert feuille */
    --rp-accent-light: #A9D18E;/* vert clair */
    --rp-accent-warm: #C9C1A3; /* sable chaud */
    --rp-text: #F5F5F5;
    --rp-text-muted: #A7B9A7;
    --rp-border: #223324;
    --rp-radius-lg: 20px;
    --rp-radius-sm: 10px;
    --rp-max-width: 1180px;
    --rp-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --rp-font-title: "Trebuchet MS", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.site-logo img {
    height: 45px;       /* Ajuste si tu veux plus grand */
    width: auto;
    display: block;
    border-radius: 8px; /* Optionnel – si tu veux un léger arrondi */
}


html, body {
    margin: 0;
    padding: 0;
}

/* FOND TRAVAILLÉ TERRE / PRÉHISTORIQUE */
body {
    font-family: var(--rp-font-body);
    color: var(--rp-text);
    line-height: 1.7;

    background:
        /* Taches terreuses claires */
        radial-gradient(circle at 30% 20%, rgba(85, 70, 40, 0.25), transparent 70%),
        radial-gradient(circle at 70% 80%, rgba(40, 60, 30, 0.25), transparent 65%),

        /* Couches organiques (terre/mousse) */
        linear-gradient(160deg, rgba(60, 50, 30, 0.30), rgba(20, 35, 20, 0.60)),

        /* Fond principal jungle terreuse */
        linear-gradient(135deg, #122015, #0c1a0c 50%, #091309 100%);

    background-attachment: fixed;
    background-size: cover;
}

/* ===== Layout global ===== */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.content-area {
    max-width: var(--rp-max-width);
    margin: 1.8rem auto 2.6rem;
    padding: 0 1.5rem;
}

/* ===== Header ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(18, 37, 18, 0.85);
    background:
        linear-gradient(90deg, rgba(5, 10, 6, 0.96), rgba(9, 19, 11, 0.97));
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.site-header-inner {
    max-width: var(--rp-max-width);
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

/* Petit sigle RP style écusson */



.site-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.site-title {
    margin: 0;
    font-family: var(--rp-font-title);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.site-title a {
    text-decoration: none;
    color: var(--rp-text);
}

.site-title-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(169, 209, 142, 0.7);
    background: rgba(12, 22, 12, 0.95);
    color: var(--rp-accent-light);
}

.site-description {
    margin: 0;
    font-size: 0.8rem;
    color: var(--rp-text-muted);
}

/* ===== Navigation (sans JS) ===== */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.main-navigation li {
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border: 1px solid transparent;
    color: var(--rp-text-muted);
    background: rgba(6, 15, 7, 0.4);
    transition: all 0.15s ease-out;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #fff;
    border-color: rgba(169, 209, 142, 0.9);
    background: linear-gradient(90deg, rgba(75, 139, 59, 0.65), rgba(16, 26, 17, 0.95));
    box-shadow: 0 0 14px rgba(75, 139, 59, 0.7);
}

/* Pas de burger / JS : on masque le bouton */
.menu-toggle {
    display: none;
}

/* Version mobile : le menu passe sur plusieurs lignes si besoin */
@media (max-width: 780px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* ===== Grille de la page d'accueil (derniers articles) ===== */

.post-list {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .post-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.post-list-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

/* ===== Cards articles (home) avec image à la une ===== */

.post-card {
    position: relative;
    background:
        radial-gradient(circle at top, rgba(75, 139, 59, 0.18), transparent 55%),
        radial-gradient(circle at bottom, rgba(51, 82, 46, 0.15), transparent 55%),
        var(--rp-card);
    border-radius: var(--rp-radius-lg);
    border: 1px solid var(--rp-border);
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transform: translateY(0);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.9);
    border-color: rgba(169, 209, 142, 0.8);
}

/* Image à la une */

.post-card-thumb {
    position: relative;
    overflow: hidden;
}

.post-card-thumb a {
    display: block;
}

.post-card-thumb img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.25s ease-out, filter 0.25s ease-out;
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.08);
    filter: saturate(1.2);
}

/* Petit ruban catégorie sur la miniature */

.thumb-ribbon {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    background: rgba(5, 10, 6, 0.92);
    border: 1px solid rgba(169, 209, 142, 0.9);
    color: var(--rp-accent-light);
}

/* Contenu de la card */

.post-card-inner {
    padding: 0.9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--rp-text-muted);
}

.post-meta-date {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(9, 18, 10, 0.95);
    border: 1px solid rgba(75, 139, 59, 0.85);
}

.post-meta-cat {
    color: var(--rp-accent-light);
}

.post-title {
    margin: 0.2rem 0 0.1rem;
    font-size: 1.1rem;
    font-family: var(--rp-font-title);
    line-height: 1.3;
}

.post-title a {
    color: var(--rp-text);
    text-decoration: none;
}

.post-title a:hover {
    text-decoration: underline;
}

.post-excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: var(--rp-text-muted);
}

/* Bouton "Lire l'article" */

.read-more {
    margin-top: 0.6rem;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(75, 139, 59, 0.9);
    background: linear-gradient(90deg, rgba(75, 139, 59, 0.5), rgba(21, 33, 22, 0.95));
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #fff;
    text-decoration: none;
}

.read-more span {
    font-size: 1.1rem;
}


/* ===== Sidebar (home & autres) ===== */

.sidebar {
    background: var(--rp-bg-alt);
    border-radius: var(--rp-radius-lg);
    border: 1px solid var(--rp-border);
    padding: 1.1rem 1.2rem 1.3rem;
    font-size: 0.9rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
    position: relative;
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 0 0, rgba(169, 209, 142, 0.12), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(60, 50, 30, 0.18), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.sidebar > * {
    position: relative;
    z-index: 1;
}

/* Bloc d’intro du site en haut de la sidebar (page d’accueil) */

.sidebar-intro {
    background: radial-gradient(circle at 0 0, rgba(169, 209, 142, 0.18), transparent 60%),
                rgba(9, 17, 10, 0.95);
    border-radius: var(--rp-radius-sm);
    border: 1px solid rgba(169, 209, 142, 0.7);
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.sidebar-intro-title {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--rp-accent-light);
}

.sidebar-intro p {
    margin: 0 0 0.45rem;
    font-size: 0.86rem;
    color: var(--rp-text-muted);
}

.sidebar-intro-note {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--rp-accent-warm);
}

/* Conteneur des widgets sous l’intro */

.sidebar-widgets {
    margin-top: 0.5rem;
}

.sidebar .widget {
    margin-bottom: 1.1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px dashed rgba(45, 69, 45, 0.9);
}

.sidebar .widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar .widget-title {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--rp-accent-light);
}

/* Description, listes et liens dans la sidebar */

.sidebar p {
    margin: 0 0 0.6rem;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar li {
    margin: 0.15rem 0;
}

.sidebar a {
    color: var(--rp-text-muted);
    text-decoration: none;
}

.sidebar a:hover {
    color: var(--rp-accent-light);
}



/* ===== Page article (single) : plus large ===== */

.single-post-card {
    max-width: 960px; /* plus large */
    margin: 0 auto;
    background:
        radial-gradient(circle at top, rgba(75, 139, 59, 0.22), transparent 55%),
        radial-gradient(circle at bottom, rgba(26, 45, 27, 0.22), transparent 55%),
        var(--rp-card-soft);
    border-radius: var(--rp-radius-lg);
    border: 1px solid var(--rp-border);
    padding: 1.6rem 1.8rem 1.8rem;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.9);
}

/* Image à la une en haut de l’article */

.single-thumb {
    margin: -1.3rem -1.8rem 1rem;
    overflow: hidden;
    border-radius: var(--rp-radius-lg) var(--rp-radius-lg) 0 0;
}

.single-thumb img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.single-post-card .post-meta {
    margin-bottom: 0.6rem;
}

.single-post-card .post-title {
    font-size: 1.8rem;
}

/* Contenu de l’article */

.post-content {
    margin-top: 0.9rem;
    font-size: 0.98rem;
}

.post-content p {
    margin: 0 0 1.1rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 1.3rem;
    margin-bottom: 0.5rem;
}

.post-content a {
    color: var(--rp-accent-light);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.post-content a:hover {
    color: var(--rp-accent);
}

/* ===== Pagination ===== */

.pagination {
    margin-top: 1.6rem;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 0.15rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--rp-text-muted);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: rgba(75, 139, 59, 0.5);
    border-color: rgba(75, 139, 59, 0.9);
    color: #fff;
}

/* ===== Footer ===== */

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--rp-border);
    background: #030603;
}

.site-footer-inner {
    max-width: var(--rp-max-width);
    margin: 0 auto;
    padding: 1.2rem 1.5rem 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--rp-text-muted);
}

.site-footer a {
    color: var(--rp-text-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--rp-accent-light);
}

/* ===== Images ===== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ===== Articles récents sous un article ===== */

.recent-posts {
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--rp-border);
}

.recent-posts-title {
    font-size: 1.2rem;
    margin: 0 0 1rem;
    font-family: var(--rp-font-title);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rp-accent-light);
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

/* Carte article récent */

.recent-post-card {
    background: var(--rp-card-soft);
    border-radius: var(--rp-radius-sm);
    border: 1px solid var(--rp-border);
    padding: 0.7rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.recent-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.7);
    border-color: var(--rp-accent-light);
}

/* Miniature */

.recent-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--rp-radius-sm);
    display: block;
}

.recent-thumb-placeholder {
    width: 100%;
    height: 140px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--rp-radius-sm);
}

/* Titre + date */

.recent-post-title {
    font-size: 1rem;
    margin: 0.6rem 0 0.2rem;
    line-height: 1.3;
}

.recent-post-title a {
    color: var(--rp-text);
    text-decoration: none;
}

.recent-post-title a:hover {
    color: var(--rp-accent-light);
}

.recent-post-date {
    font-size: 0.75rem;
    color: var(--rp-text-muted);
}

/* ===== Header : forcer le nom du site sur une seule ligne en mobile ===== */

@media (max-width: 600px) {

    .site-title {
        font-size: 1.05rem;       /* réduit la taille du titre */
        white-space: nowrap;      /* empêche le retour à la ligne */
        overflow: hidden;
        text-overflow: ellipsis;  /* si jamais ça dépasse un peu */
    }

    .site-title-tag {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }

    .site-title-group {
        max-width: 90%; /* évite que le badge/logo pousse le titre sur 2 lignes */
    }

    .site-logo img {
        height: 38px; /* logo un peu réduit aussi */
    }
}

/* ===== Header : réduire l'espace sous le nom du site en mobile ===== */

@media (max-width: 600px) {

    /* Réduction de la description + marges */
    .site-description {
        font-size: 0.68rem;
        margin-top: 0.1rem;
        margin-bottom: 0;      /* supprime l’espace inutile */
        line-height: 1.2;
    }

    /* Réduction de la hauteur du header */
    .site-header-inner {
        padding-top: 0.4rem;
        gap: 0.3rem;           /* rapproche tout verticalement */
    }

    /* Groupe titre + description plus compact */
    .site-title-group {
        gap: 0.05rem;
    }
}

html {
    background:
        radial-gradient(circle at 30% 20%, rgba(85, 70, 40, 0.25), transparent 70%),
        radial-gradient(circle at 70% 80%, rgba(40, 60, 30, 0.25), transparent 65%),
        linear-gradient(160deg, rgba(60, 50, 30, 0.30), rgba(20, 35, 20, 0.60)),
        linear-gradient(135deg, #122015, #0c1a0c 50%, #091309 100%);
    background-attachment: fixed;
    background-size: cover;
}

body {
    background: none !important; /* IMPORTANT : empêchons le double fond */
}

html, body {
    min-height: 100%;
    height: auto;
    background-color: #122015; /* fallback sombre */
}

@supports(padding: max(0px)) {
    body {
        padding-top: env(safe-area-inset-top);
    }
}
