/*
Theme Name: La Gazette de Moutier
Theme URI: https://gazette-moutier.ch
Author: ICI Media District
Author URI: https://ici-media.ch
Description: Thème WordPress personnalisé pour La Gazette de Moutier - Journal local de Moutier et du Cornet
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gazette-moutier
Tags: news, magazine, blog, local-news, custom-header, custom-menu, featured-images, threaded-comments

La Gazette de Moutier - Actualités locales de Moutier et du Cornet
Belprahon · Corcelles · Crémines · Eschert · Grandval · Moutier · Perrefitte · Roches
*/

:root {
    --primary: #1a1a1a;
    --secondary: #d4af37;
    --accent: #c41e3a;
    --bg: #fafaf8;
    --card-bg: #ffffff;
    --text: #2a2a2a;
    --text-light: #666666;
    --border: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Header */
.site-header {
    background: var(--primary);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-top {
    background: linear-gradient(135deg, var(--accent) 0%, #a01829 100%);
    padding: 8px 0;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
}

.masthead {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    border-bottom: 3px double var(--secondary);
}

.masthead h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.masthead .tagline {
    font-size: 0.9rem;
    color: var(--secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

/* Navigation */
.main-navigation {
    background: var(--primary);
    padding: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 1rem 1.75rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary);
}

.main-navigation a:hover::before {
    transform: translateX(0);
}

/* Container */
.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Article Cards */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.article-card {
    background: var(--card-bg);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: var(--secondary);
}

.article-thumbnail {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.article-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.5) 100%);
}

.article-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    width: fit-content;
}

.article-content h2,
.article-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 700;
}

.article-content h2 a,
.article-content h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h2 a:hover,
.article-content h3 a:hover {
    color: var(--accent);
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Single Post */
.single-post .entry-header {
    margin-bottom: 2rem;
}

.single-post .entry-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post .featured-image {
    margin-bottom: 2rem;
    max-width: 100%;
    height: auto;
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: white;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .masthead h1 {
        font-size: 2.5rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .single-post .entry-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .main-navigation a {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}

.article-thumbnail-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.article-thumbnail-link:hover .article-thumbnail {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}


/* ========================================
   AJOUTS CSS POUR CARTE ARTICLE CLIQUABLE
   Copiez-collez ce code À LA FIN de style.css
   ======================================== */

/* Image cliquable */
.article-thumbnail-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-thumbnail-link:hover .article-thumbnail {
    opacity: 0.85;
    transform: scale(1.05);
}

/* Extrait cliquable */
.article-excerpt-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    margin-bottom: 1rem;
}

.article-excerpt-link:hover {
    color: var(--primary);
}

.article-excerpt-link:hover .article-excerpt {
    color: var(--text);
}

/* Bouton Lire l'article */
.btn-read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
}

.btn-read-more:hover {
    background: transparent;
    color: var(--accent);
    transform: translateX(5px);
}

/* Ajustement article-excerpt */
.article-excerpt {
    color: var(--text-light);
    margin-bottom: 0; /* Enlever margin car on a le lien maintenant */
    flex-grow: 1;
}
