/*
Theme Name: Studio Sépia - Laboratoire 1
Description: Base de thème pour le Laboratoire 1 - studio de photographie.
Author: Votre Nom
Version: 1.0.0
Text Domain: fampr-labo1-theme
*/

/* VARIABLES ET STYLES DE BASE (FOURNIS) ============================================================ */

:root {
    --ink: #141311;
    --ink-soft: #1c1a17;
    --paper: #f6f2ea;
    --paper-text: #211f1b;
    --brass: #ad8657;
    --brass-soft: #cbab7e;
    --stone: #514c44;
    --mist: #c9c2b2;

    /* Si vous chargez des polices externes (Google Fonts), assignez-les ici */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--ink);
    color: var(--mist);
    font-family: var(--font-body);
    line-height: 1.6;
}

a {
    color: inherit;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: #fff;
    font-weight: 500;
}

/* NAVIGATION (surcharge des classes Bootstrap navbar-light / bg-light) ============================= */

.navbar-light.bg-light {
    background-color: var(--ink) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1.2rem 0;
}

.navbar-light .navbar-brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #fff;
}

.navbar-light .nav-link {
    color: var(--mist);
    padding-right: 0 !important;
    padding-left: 1.75rem !important;
}

.navbar-light .nav-link:hover,
.navbar-light .nav-link.active {
    color: #fff;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.2);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.site-logo {
    max-height: 60px;
    width: auto;
}

/* ENTÊTE DE PAGE (optionnel, si ajouté dans index.php) ============================================= */

.page-intro {
    padding: 2.75rem 0 3.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.page-intro h1 {
    font-size: 2.6rem;
}

.page-intro p {
    max-width: 46ch;
    margin: 0.85rem 0 0;
    font-size: 1.02rem;
    color: var(--mist);
}

/* PROJETS (boucle) ================================================================================== */

.article-card {
    background: var(--ink-soft);
    border: none;
    border-radius: 2px;
    box-shadow: none;
    padding: 0;
    margin-bottom: 2.25rem;
    overflow: hidden;
    transition: none;
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.article-title a {
    color: #fff;
    text-decoration: none;
}

.article-title a:hover {
    color: var(--brass-soft);
}

.article-meta {
    color: #8f8676;
    font-size: 0.82rem;
    margin-bottom: 0.9rem;
}

.article-meta i {
    margin-right: 0.5rem;
}

.featured-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    text-decoration: none;
    color: var(--brass-soft);
    border-bottom: 1px solid rgba(203,171,126,0.4);
}

.read-more:hover {
    color: #fff;
    border-color: #fff;
}

/* Styles pour la navigation entre projets (single.php) */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-links a {
    color: var(--mist);
    text-decoration: none;
}

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

/* SIDEBAR / WIDGETS ================================================================================== */

.widget {
    margin-bottom: 2.25rem;
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.widget-content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

.widget-content a {
    color: var(--mist);
}

.widget-content a:hover {
    color: #fff;
}

.widget-content .text-muted {
    color: #8f8676 !important;
}

.widget-content .form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    border-radius: 0;
    color: var(--mist);
}

.widget-content .form-control::placeholder {
    color: #6f6a5e;
}

.widget-content .form-control:focus {
    background: transparent;
    box-shadow: none;
    border-color: var(--brass-soft);
    color: #fff;
}

.btn-outline-secondary {
    color: var(--brass-soft);
    border-color: rgba(255,255,255,0.2);
}

.btn-outline-secondary:hover {
    background: var(--brass-soft);
    border-color: var(--brass-soft);
    color: var(--ink);
}

.btn-outline-primary {
    color: var(--brass-soft);
    border-color: var(--brass-soft);
}

.btn-outline-primary:hover {
    background: var(--brass-soft);
    border-color: var(--brass-soft);
    color: var(--ink);
}

/* PIED DE PAGE ======================================================================================= */

.site-footer {
    background-color: var(--ink-soft);
    color: var(--mist);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-menu a {
    color: var(--mist);
    text-decoration: none;
}

.footer-menu a:hover {
    color: #fff;
}

.site-footer hr {
    border-color: rgba(255,255,255,0.1);
}

.site-footer small {
    color: var(--stone);
}

/* STYLES RESPONSIVE (FOURNIS) ======================================================================= */

@media (max-width: 768px) {
    .article-card {
        padding: 0;
    }

    .article-card .featured-image {
        aspect-ratio: 16 / 10;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-menu ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
