/*
Theme Name: Le Journal Eco
Author: Votre Nom
Version: 1.2
Description: Thème WordPress
*/

/* ================== BASE ================== */
/* ================== BASE ================== */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #004080;
    transition: color 0.3s;
}

a:hover { color: #21b14b; }

h1,h2,h3,h4,h5,h6 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #004080;
    margin: 0 0 10px 0;
}

/* ================== HEADER ================== */
.site-header {
    background: #004080;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10000;
}

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

.logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    border-left: 4px solid #21b14b;
    padding: 5px 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.main-nav .menu {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.main-nav .menu li a {
    display: block;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
    transition: background 0.3s, color 0.3s;
}

.main-nav .menu li a:hover,
.main-nav .menu li.current-menu-item > a {
    background: #21b14b;
    color: #fff;
}

.header-extra {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-form input[type="search"] {
    padding: 6px 14px;
    border-radius: 25px;
    border: 1px solid #ccc;
    transition: border 0.3s;
}

.search-form input[type="search"]:focus {
    border-color: #21b14b;
    outline: none;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #004080;
    margin-left: 6px;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background: #21b14b;
    transform: scale(1.1);
}

/* ================== SECTION À PROPOS ================== */
.section-about {
    background: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
}

.section-about h2 {
    font-size: 2.2em;
    color: #004080;
    margin-bottom: 20px;
}

.section-about p {
    font-size: 1em;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background: #21b14b;
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-primary:hover { background: #004080; }

/* ================== BLOC CATEGORIES ================== */
.alaune-categories-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
}

.alaune-category-block {
    position: relative;
    width: 180px;
    height: 100px;
    background: #004080;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
}

.alaune-category-block:hover {
    transform: translateY(-5px);
    background: #21b14b;
}

.alaune-category-overlay h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 700;
}

.alaune-category-overlay span {
    font-size: 0.85em;
    display: block;
    margin-top: 4px;
    color: #fff;
}

/* ================== SECTION À LA UNE ================== */
.alaune-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.section-alaune {
    background: #f9f9f9;
    padding: 80px 0;
}

.section-alaune h2 {
    font-size: 2.8em;
    margin-bottom: 50px;
    color: #004080;
    font-weight: 700;
}


.alaune-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
}

.alaune-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.alaune-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.alaune-image {
    position: relative;
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid #21b14b;
}

.alaune-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.1);
    transition: background 0.3s;
}

.alaune-card:hover .alaune-image::after {
    background: rgba(0,0,0,0.25);
}

.alaune-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #21b14b;
    color: #fff;
    font-size: 0.85em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

.alaune-content {
    padding: 25px;
    text-align: center;
}

.alaune-content h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #004080;
}

.alaune-content p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-alaune {
    display: inline-block;
    background: #004080;
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-alaune:hover {
    background: #21b14b;
	color: #004080; 
}

/* ================== ARTICLES RECENTS ================== */
.section-posts {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.recent-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.article-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #004080;
}

.article-content p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}

.btn-primary-small {
    display: inline-block;
    background: #004080;
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    margin-top: 10px;
    font-size: 0.9em;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-primary-small:hover {
    background: #21b14b;
	color: #004080; 
}

/* ================== SIDEBAR ================== */
.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.sidebar h3 {
    margin-bottom: 15px;
    color: #004080;
    font-size: 1.2em;
    font-weight: 700;
}

.sidebar ul { list-style: none; padding: 0; }
.sidebar ul li { margin-bottom: 12px; }
.sidebar ul li a { color: #333; font-weight: 500; transition: color 0.3s; }
.sidebar ul li a:hover { color: #21b14b; }

/* ================== FOOTER ================== */
.site-footer {
    background: #004080;
    color: #fff;
    padding: 60px 20px 20px 20px;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-about, .footer-links, .footer-social { flex: 1 1 220px; }

.footer-about h3, .footer-links h3, .footer-social h3 { font-size: 16px; margin-bottom: 12px; color: #21b14b; }

.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { color: #fff; transition: color 0.3s; }
.footer-links ul li a:hover { color: #21b14b; }

.footer-social .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #21b14b;
    margin-right: 8px;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s;
}

.footer-social .social-icons a:hover {
    background: #fff;
    color: #004080;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    font-size: 13px;
    color: #ccc;
}

/* ================== RESPONSIVE ================== */
@media screen and (max-width: 992px) {
    .container-header { flex-direction: column; align-items: flex-start; }
    .main-nav .menu { flex-direction: column; width: 100%; margin-top: 10px; }
    .main-nav .menu li { margin: 8px 0; }
    .header-extra { width: 100%; justify-content: space-between; margin-top: 10px; }
    .alaune-grid, .alaune-categories-container, .recent-articles-grid { display: flex; flex-direction: column; align-items: center; }
    .footer-container { flex-direction: column; gap: 25px; }
}

@media screen and (max-width: 600px) {
    .logo img { max-height: 36px; }
    .search-form input[type="search"] { width: 120px; }
    .alaune-card { width: 90%; }
    .alaune-category-block { width: 90%; height: 100px; }
    .footer-social .social-icons a { margin-bottom: 8px; }
}

/* ================== CATEGORY HEADER ================== */
.category-header {
    background: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
}

.category-title {
    font-size: 2.5em;
    color: #004080;
    margin-bottom: 15px;
}

.category-description {
    font-size: 1.1em;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ================== CATEGORY ARTICLES GRID ================== */
.category-articles {
    padding: 60px 20px;
}

.category-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 10px;
}

.pagination ul li a,
.pagination ul li span {
    display: block;
    padding: 8px 14px;
    background: #004080;
    color: #fff;
    border-radius: 50px;
    transition: background 0.3s;
}

.pagination ul li a:hover { background: #21b14b; }

.pagination ul li span.current { background: #21b14b; }

/* Sidebar reuse existing sidebar CSS */

/* ================== BLOCS TEXTE ================== */
.text-block {
    background: #fff;
    padding: 60px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 40px 0;
}

.text-block-container {
    max-width: 1200px;
    margin: 0 auto;
}

.text-block h2 {
    font-size: 2.2em;
    color: #004080;
    margin-bottom: 25px;
}

.text-block p {
    font-size: 1.05em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* ================== BLOCS IMAGE + TEXTE ================== */
.flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.text-block-image {
    flex: 1 1 400px;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
}

.text-block-text {
    flex: 1 1 400px;
}

.reverse {
    flex-direction: row-reverse;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .flex-container {
        flex-direction: column;
        gap: 20px;
    }
    .text-block-image, .text-block-text {
        flex: 1 1 100%;
    }
}

/* Bloc catégories : titres */
.alaune-categories-container .alaune-category-overlay h3 {
    color: #ffffff;        /* Blanc */
    font-size: 1.2em;      /* Taille harmonieuse */
    font-weight: 700;      /* Gras pour le contraste */
    margin: 0;
    text-transform: uppercase; /* Optionnel : style pro */
}

/* Optionnel : le nombre d'articles sous le titre */
.alaune-categories-container .alaune-category-overlay span {
    color: #d9f2e6;       /* Vert clair pour contraste avec fond bleu */
    font-size: 0.85em;
}

/* ================== SINGLE ARTICLE ================== */
/* ================== SINGLE ARTICLE ================== */
.single-article-page {
    padding: 60px 20px;
    background: #f9f9f9;
}

.container-single {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Article principal */
.single-article {
    flex: 1 1 650px;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Fil d'Ariane */
.breadcrumb {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: #555;
}

.breadcrumb a {
    color: #004080;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #21b14b;
}

.breadcrumb span {
    color: #333;
    font-weight: 600;
}

.single-title {
    font-size: 2.5em;
    color: #004080;
    margin-bottom: 15px;
}

.single-meta {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 20px;
}

.single-meta span {
    margin-right: 10px;
}

.single-image img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
}

.single-content {
    font-size: 1.05em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.single-content p {
    margin-bottom: 18px;
}

/* Tags */
.single-tags {
    margin-bottom: 25px;
    font-size: 0.95em;
    color: #004080;
}

.single-tags strong { font-weight: 700; }

/* Partage réseaux sociaux */
.single-share {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-share span { font-weight: 600; }

.single-share a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: #004080;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.single-share a:hover {
    background: #21b14b;
    transform: scale(1.1);
}

/* Commentaires */
.single-comments {
    margin-top: 40px;
}

/* Sidebar */
.sidebar {
    flex: 1 1 300px;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .container-single {
        flex-direction: column;
    }
    .sidebar { flex: 1 1 100%; }
}

/* ================== ÉCONOMIE PAR RÉGION ================== */
/* ================== ÉCONOMIE PAR RÉGION ================== */
.economie-region {
    padding: 80px 20px;
    background: #f5f5f5;
	#background: #004080;
    text-align: center;
}

.economie-region h2 {
    font-size: 2.5em;
    color: #004080;
    margin-bottom: 15px;
}

.economie-region p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 50px;
}

.france-map {
    position: relative;
    display: inline-block;
    max-width: 600px;
    width: 100%;
}

.map-france {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.region-marker {
    position: absolute;
    display: inline-block;
    padding: 6px 10px;
    background: #21b14b;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.85em;
    text-decoration: none;
    transform: translate(-50%, -50%);
    transition: transform 0.3s, background 0.3s;
}

.region-marker:hover {
    background: #004080;
    transform: translate(-50%, -50%) scale(1.2);
}

/* conteneur général */
.page-wrapper {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 15px;
}

/* fil d'ariane */
.breadcrumbs {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.breadcrumbs a {
    color: #004080;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* titre */
.page-title {
    font-size: 2.2em;
    color: #0f2b5b;
    margin-bottom: 10px;
    text-align: center;
}

/* image mise en avant */
.page-featured-image img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin: 20px 0;
}

/* contenu */
.page-content {
    font-size: 1.05em;
    line-height: 1.8;
    color: #222;
}

.page-content p {
    margin-bottom: 15px;
}

/* bloc SEO */
.seo-extra-text {
    margin-top: 40px;
    padding: 20px;
    background: #f6fbff;
    border-left: 5px solid #21b14b;
    border-radius: 10px;
}

.seo-extra-text h2 {
    margin-top: 0;
    color: #004080;
}

##########################

/* ===========================
   Container général
=========================== */
.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===========================
   Fil d’Ariane
=========================== */
.breadcrumbs {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.breadcrumbs a {
    color: #004080;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #21b14b;
    text-decoration: underline;
}

/* ===========================
   Titres de la page
=========================== */
.page-title {
    font-size: 2.2em;
    color: #004080;
    text-align: center;
    margin-bottom: 8px;
}

.page-subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 40px;
    font-size: 1.05em;
}

/* ===========================
   Grid des catégories
=========================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* ===========================
   Carte de catégorie
=========================== */
.category-card {
    background: #fff;
    border-radius: 14px;
    padding: 25px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.category-card h2 {
    font-size: 1.3em;
    color: #0f2b5b;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.category-card:hover h2 {
    color: #21b14b;
}

.category-card p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    min-height: 40px; /* pour aligner les cartes */
}

/* ===========================
   Bouton “Voir les articles”
=========================== */
.category-card a {
    text-decoration: none;
}

.btn-cat {
    display: inline-block;
    background: #004080;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9em;
    transition: .3s;
}

.category-card a:hover .btn-cat {
    background: #21b14b;
    color: #004080;
}

/* ===========================
   Responsive
=========================== */
@media(max-width: 900px){
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 600px){
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Actualités */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.news-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-content h2 {
    margin: 8px 0;
    color: #004080;
    font-size: 1.1em;
}

.news-meta {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 10px;
}

.btn-read {
    display: inline-block;
    background: #004080;
    color: #fff;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.9em;
    text-decoration: none;
    transition: 0.3s;
}

.btn-read:hover {
    background: #21b14b;
    color: #004080;
}

/* Responsive */
@media(max-width: 900px){
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 600px){
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Contact */
.contact-form {
    max-width: 700px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    font-weight: 600;
    color: #004080;
}

.contact-form label span {
    color: red;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    font-size: 1em;
    transition: border 0.3s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #21b14b;
    outline: none;
}

.contact-form input[type="submit"] {
    background: #004080;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.contact-form input[type="submit"]:hover {
    background: #21b14b;
    color: #004080;
}

/* Messages succès / erreur */
.form-success {
    color: #21b14b;
    font-weight: 600;
    margin-bottom: 15px;
}

.form-error {
    color: red;
    font-weight: 600;
    margin-bottom: 15px;
}
