/* public/css/style.css */
:root {
    --primary: #d4af37; /* Or Saint-Gimer */
    --primary-dark: #b5952f;
    --dark: #1a1a1a;    /* Noir profond */
    --light: #f9f9f9;
    --text: #4a4a4a;
    --border: #e5e5e5;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background-color: #fcfcfc;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    font-weight: 700;
}

a { text-decoration: none; transition: all 0.3s ease; }

/* --- HEADER PREMIUM CENTRÉ --- */
header.site-header {
    background: white;
    padding: 2rem 0 1rem;
    border-bottom: 1px solid var(--border);
}

.brand-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark) !important;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 0;
    margin: 0;
}

.navbar-brand::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 15px auto 0;
}

.brand-baseline {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #999;
    margin-top: 15px;
}

/* Navigation */
.navbar { padding: 0; }

.navbar-nav {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    gap: 40px;
}

.nav-link {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555 !important;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover { color: var(--primary) !important; }
.nav-link:hover::before { width: 100%; }

.btn-admin-lock {
    color: #e0e0e0 !important;
    font-size: 0.8rem;
}
.btn-admin-lock:hover { color: var(--dark) !important; }

/* --- HERO SECTION (ACCUEIL) --- */
.hero-header {
    background: linear-gradient(rgba(26, 26, 26, 0.4), rgba(26, 26, 26, 0.4)), url('../uploads/ma-boutique.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 160px 0;
    text-align: center;
    margin-bottom: 80px;
}

.hero-title {
    font-size: 4rem;
    color: white;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
}

.btn-gold {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    border-radius: 0;
    padding: 12px 35px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-top: 30px;
    transition: 0.3s;
}
.btn-gold:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* --- CARTES ARTICLES --- */
.card-custom {
    border: none;
    background: white;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.card-img-wrap {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-custom:hover .card-img-wrap img {
    transform: scale(1.1);
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.card-title a {
    color: var(--dark);
    background-image: linear-gradient(to right, var(--primary) 0%, var(--primary) 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s;
}
.card-custom:hover .card-title a { background-size: 100% 2px; }

.card-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* --- PAGE ARTICLE : HERO & GLASSMORPHISM --- */
.article-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
    background-color: #222; /* Fond sombre par défaut */
}

.article-hero.no-image {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 3rem;
    border-radius: 15px;
    max-width: 900px;
    width: 90%;
    text-align: center;
    color: white;
}

.glass-panel h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.glass-panel .article-meta {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* --- GESTION DES IMAGES DANS L'ARTICLE (CORRECTION) --- */

/* 1. L'image "À la une" répétée en bas */
.article-bottom-image {
    display: block;
    max-width: 100%;        /* Ne dépasse jamais le conteneur */
    width: auto;            /* Garde les proportions naturelles */
    max-height: 600px;      /* Limite la hauteur pour éviter l'effet géant */
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;      /* Centre l'image */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 2. Toutes les images importées de l'ancien site (dans le texte) */
.content-body img {
    max-width: 100%;       /* Empêche le dépassement */
    height: auto !important; /* Force le ratio */
    margin: 20px 0;
    border-radius: 5px;
}

.content-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    font-family: 'Lato', sans-serif;
}

/* --- PAGINATION --- */
.pagination { justify-content: center; margin-top: 50px; }
.page-item .page-link {
    border: none;
    color: var(--text);
    padding: 10px 20px;
    margin: 0 5px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}
.page-item.active .page-link {
    background-color: transparent;
    color: var(--primary);
    font-weight: bold;
    border-bottom: 2px solid var(--primary);
}
.page-item .page-link:hover {
    background-color: transparent;
    color: var(--primary);
}

/* --- FOOTER --- */
footer {
    background-color: #151515;
    color: #888;
    padding: 80px 0 40px;
    margin-top: auto;
}
footer h5 { color: white; margin-bottom: 25px; font-size: 1.2rem; }
footer a { color: #888; }
footer a:hover { color: var(--primary); text-decoration: none; }
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-nav { flex-direction: column; gap: 15px; text-align: center; padding: 20px 0; }
    .navbar-brand { font-size: 2rem; }
    .hero-title { font-size: 2.5rem; }
    .glass-panel { padding: 1.5rem; }
    .glass-panel h1 { font-size: 1.8rem; }
}
/* FORCER LE TEXTE JUSTIFIÉ SUR LES ARTICLES */
.article-content {
    text-align: justify !important;
    text-justify: inter-word;
}

/* Optionnel : Garder les titres et sous-titres alignés à gauche ou centrés si vous préférez */
.article-content h1, 
.article-content h2, 
.article-content h3 {
    text-align: left; /* ou center */
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #d4af37; /* Titres en doré */
}