/*
Theme Name: CFTC ESR-EN
Theme URI: https://cftc-esr.fr
Author: CFTC ESR-EN
Author URI: https://cftc-esr.fr
Description: Thème personnalisé pour CFTC ESR-EN avec charte graphique basée sur le logo
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cftc-esr
*/

/* === Variables CSS pour la charte graphique === */
:root {
    --color-primary: #A4D233;      /* Vert lime */
    --color-secondary: #00D4D8;    /* Cyan */
    --color-dark: #003D7A;         /* Bleu marine */
    --color-light: #F5F5F5;        /* Gris clair */
    --color-white: #FFFFFF;
    --color-text: #333333;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === Reset et base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

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

/* === Header === */
.site-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    margin-right: 20px;
}

.site-logo img {
    max-height: 80px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.site-branding {
    flex: 1;
}

.site-title {
    font-size: 1.8rem;
    color: var(--color-white);
    font-weight: bold;
    margin-bottom: 5px;
}

.site-slogan {
    font-size: 1.4rem;
    color: var(--color-white);
    font-style: italic;
    opacity: 0.95;
    margin: 0;
    font-weight: 300;
}

/* === Navigation === */
.main-navigation {
    flex: 2;
    text-align: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-navigation a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* === Contenu principal === */
.site-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* === Grille de billets (posts) === */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-block {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.post-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.post-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.post-block:hover .post-background {
    transform: scale(1.1);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 61, 122, 0.3) 0%,
        rgba(0, 212, 216, 0.6) 50%,
        rgba(164, 210, 51, 0.8) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.post-date {
    font-size: 0.9rem;
    color: var(--color-white);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.post-title {
    font-size: 1.8rem;
    color: var(--color-white);
    font-weight: bold;
    line-height: 1.3;
    margin: 0;
}

/* === Articles individuels === */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.post-meta {
    color: var(--color-secondary);
    font-size: 1rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* === Footer === */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 10px 0;
}

.footer-content a {
    color: var(--color-primary);
}

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

/* === Responsive === */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .site-logo {
        margin: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-block {
        height: 250px;
    }

    .post-title {
        font-size: 1.4rem;
    }
}
