/*
Theme Name: OceanWP Child Nature Writing
Template: oceanwp
Version: 1.0
Description: Thème enfant pour Nature Writing - Blog littéraire minimaliste
Author: Chinouk
*/

/* ========================================
   PALETTE NATURE WRITING
======================================== */
:root {
  --vert-foret: #2d5a3d;
  --vert-sauge: #6b8e6f;
  --beige-naturel: #d4a574;
  --creme: #f5f3ed;
  --gris-anthracite: #333333;
  --blanc-casse: #ffffff;

  /* --- NOUVELLES COULEURS COMPLEMENTAIRES --- */
  --brun-ecorce: #4a3b32; /* Pour le TEXTE courant (remplace le noir) */
  --terracotta: #c67b5c; /* Pour les BOUTONS / Liens au survol */
  --vert-brume: #e3e8e4; /* Pour les FONDS de blocs (encadrés, sidebar) */
  --blanc-pur: #ffffff; /* Toujours utile pour les cartes articles */
}

.minimal-header,
#site-header.minimal-header {
  border-bottom: 3px solid #2d5a3d !important; /* Bordure 4px grise */
  padding-bottom: 20px !important;
}

/* ========================================
   ARTICLES - IMAGE GAUCHE / TEXTE DROITE
======================================== */
.blog-entry {
  margin-bottom: 40px !important;
  clear: both !important;
  overflow: hidden !important;
}

.blog-entry-inner {
  background: var(--blanc-casse) !important;
  padding: 25px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  transition: box-shadow 0.3s ease !important;
}

.blog-entry-inner:hover {
  box-shadow: 0 4px 16px rgba(45, 90, 61, 0.15) !important;
}

/* Image à gauche */
.blog-entry .thumbnail,
.blog-entry .thumbnail-style-circle-img {
  float: left !important;
  width: 30% !important;
  max-width: 300px !important;
  margin: 0 30px 20px 0 !important;
}

.blog-entry .thumbnail a {
  display: block !important;
}

.blog-entry .thumbnail img {
  width: 100% !important;
  height: auto !important;
  border-radius: 6px !important;
  display: block !important;
}

/* Contenu texte */
.blog-entry .blog-entry-header,
.blog-entry-title,
.blog-entry-meta,
.blog-entry-summary,
.blog-entry-readmore {
  clear: none !important;
  overflow: hidden !important;
}

/* Titre */
.blog-entry .blog-entry-title {
  margin: 0 0 10px 0 !important;
}

.blog-entry .blog-entry-title a {
  font-family: Georgia, serif !important;
  font-size: 1.2em !important;
  font-weight: 700 !important;
  color: var(--vert-foret) !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
}

.blog-entry .blog-entry-title a:hover {
  color: var(--vert-sauge) !important;
}

/* Métadonnées */
.blog-entry .meta,
.blog-entry-meta {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 15px 0 !important;
  font-size: 0.85em !important;
  color: var(--vert-sauge) !important;
  font-style: italic !important;
}

.blog-entry .meta li {
  display: inline-block !important;
  margin-right: 15px !important;
}

.blog-entry .meta a,
.blog-entry-meta a {
  color: var(--vert-sauge) !important;
}

.blog-entry .meta a:hover {
  color: var(--vert-foret) !important;
}

/* Extrait */
.blog-entry .blog-entry-summary p {
  font-family: Georgia, serif !important;
  font-size: 1em !important;
  line-height: 1.7 !important;
  color: var(--gris-anthracite) !important;
  margin: 0 0 15px 0 !important;
}

/* Bouton Lire la suite */
.blog-entry .blog-entry-readmore a {
  display: inline-block !important;
  padding: 12px 28px !important;
  background-color: var(--beige-naturel) !important;
  color: var(--blanc-casse) !important;
  font-family: Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 1em !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.blog-entry .blog-entry-readmore a:hover {
  background-color: var(--vert-foret) !important;
  transform: translateY(-2px) !important;
}

/* Clearfix */
.blog-entry::after,
.blog-entry-inner::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

/* ========================================
   SIDEBAR - STYLE COMPLET
======================================== */
#right-sidebar,
#right-sidebar-inner {
  background: transparent !important;
  padding: 0 !important;
}

/* Widgets */
#right-sidebar .sidebar-box,
#right-sidebar .widget {
  background: var(--blanc-casse) !important;
  padding: 25px !important;
  margin-bottom: 30px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;

  transition: all 0.3s ease !important;
}

#right-sidebar .widget:hover {
  box-shadow: 0 4px 16px rgba(45, 90, 61, 0.12) !important;
}

/* Titres widgets */
#right-sidebar .widget-title,
#right-sidebar h4.widget-title {
  font-family: Georgia, serif !important;
  font-size: 1.4em !important;
  font-weight: 700 !important;
  color: var(--vert-foret) !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 3px solid var(--beige-naturel) !important;
}

/* Listes */
#right-sidebar ul,
#right-sidebar .widget ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#right-sidebar li {
  margin-bottom: 12px !important;
  padding: 8px 0 !important;
  position: relative !important;
  border-bottom: 1px solid var(--creme) !important;
}

#right-sidebar li:last-child {
  border-bottom: none !important;
}

/* Liens */
#right-sidebar a {
  color: var(--gris-anthracite) !important;
  text-decoration: none !important;
  font-size: 1em !important;
  transition: all 0.3s ease !important;
  display: block !important;
}

#right-sidebar a:hover {
  color: var(--vert-foret) !important;
  padding-left: 15px !important;
}

#right-sidebar a:hover::before {
  content: "→ " !important;
  position: absolute !important;
  left: 0 !important;
  color: var(--beige-naturel) !important;
}

/* Recherche */
#right-sidebar .widget_search .field,
#right-sidebar input[type="search"] {
  width: 100% !important;
  padding: 12px 15px !important;
  border: 2px solid var(--vert-sauge) !important;
  font-family: Georgia, serif !important;
  background: white !important;
}

#right-sidebar input[type="search"]:focus {
  border-color: var(--vert-foret) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1) !important;
}

/* Widget Image */
#right-sidebar .widget_media_image img {
  width: 100% !important;
  border: 4px solid var(--beige-naturel) !important;
}

/* Page active */
#right-sidebar .current_page_item a {
  color: var(--vert-foret) !important;
  font-weight: 700 !important;
  border-left: 3px solid var(--beige-naturel) !important;
  padding-left: 12px !important;
}

/* ========================================
   SUPPRIME BORDURES FOCUS
======================================== */
#site-header a:focus,
#sidebar a:focus,
#right-sidebar a:focus,
a:focus,
input:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* ========================================
   RESPONSIVE MOBILE
======================================== */
@media (max-width: 959px) {
  #content-wrap {
    flex-direction: column !important;
  }

  #primary,
  .content-left-wrap,
  #sidebar-wrap,
  #right-sidebar {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .blog-entry .thumbnail {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
  }
}

/* Titres widgets Gutenberg sidebar - AVEC bordure beige */
#right-sidebar .wp-block-heading,
#right-sidebar h2.wp-block-heading,
#right-sidebar .wp-block-group h2 {
  font-family: Georgia, serif !important;
  font-size: 1.4em !important;
  font-weight: 700 !important;
  color: var(--vert-foret) !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 3px solid var(--beige-naturel) !important;
}

/* Liste articles récents Gutenberg */
#right-sidebar .wp-block-latest-posts {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#right-sidebar .wp-block-latest-posts li {
  margin-bottom: 12px !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--creme) !important;
}

#right-sidebar .wp-block-latest-posts a {
  color: var(--gris-anthracite) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

#right-sidebar .wp-block-latest-posts a:hover {
  color: var(--vert-foret) !important;
  padding-left: 15px !important;
}
/* Widget Recherche Gutenberg */
#right-sidebar .wp-block-search__label {
  font-family: Georgia, serif !important;
  font-size: 1.4em !important;
  font-weight: 700 !important;
  color: var(--vert-foret) !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 3px solid var(--beige-naturel) !important;
  display: block !important;
}

#right-sidebar .wp-block-search__inside-wrapper {
  display: flex !important;
  gap: 10px !important;
}

#right-sidebar .wp-block-search__input {
  flex: 1 !important;
  padding: 12px 15px !important;
  border: 2px solid var(--vert-sauge) !important;
  border-radius: 6px !important;
  font-family: Georgia, serif !important;
  font-size: 1em !important;
  background: white !important;
  transition: all 0.3s ease !important;
}

#right-sidebar .wp-block-search__input:focus {
  border-color: var(--vert-foret) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1) !important;
}

#right-sidebar .wp-block-search__button {
  padding: 12px 24px !important;
  background: var(--beige-naturel) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: Georgia, serif !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

#right-sidebar .wp-block-search__button:hover {
  background: var(--vert-foret) !important;
  transform: translateY(-2px) !important;
}

/* ========================================
   AVATAR AUTEUR
======================================== */
.post-author-avatar {
  display: none !important;
}

/* ========================================
   RESPONSIVE MOBILE
======================================== */
@media (max-width: 959px) {
  #content-wrap {
    flex-direction: column !important;
  }

  #primary,
  .content-left-wrap,
  #sidebar-wrap,
  #right-sidebar {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .blog-entry .thumbnail {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
  }
}

/* Titres widgets Gutenberg sidebar - AVEC bordure beige */
#right-sidebar .wp-block-heading,
#right-sidebar h2.wp-block-heading,
#right-sidebar .wp-block-group h2 {
  font-family: Georgia, serif !important;
  font-size: 1.4em !important;
  font-weight: 700 !important;
  color: var(--vert-foret) !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 3px solid var(--beige-naturel) !important;
}

/* Liste articles récents Gutenberg */
#right-sidebar .wp-block-latest-posts {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#right-sidebar .wp-block-latest-posts li {
  margin-bottom: 12px !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--creme) !important;
}

#right-sidebar .wp-block-latest-posts a {
  color: var(--gris-anthracite) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

#right-sidebar .wp-block-latest-posts a:hover {
  color: var(--vert-foret) !important;
  padding-left: 15px !important;
}

/* Widget Recherche Gutenberg */
#right-sidebar .wp-block-search__label {
  font-family: Georgia, serif !important;
  font-size: 1.4em !important;
  font-weight: 700 !important;
  color: var(--vert-foret) !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 3px solid var(--beige-naturel) !important;
  display: block !important;
}

#right-sidebar .wp-block-search__inside-wrapper {
  display: flex !important;
  gap: 10px !important;
}

#right-sidebar .wp-block-search__input {
  flex: 1 !important;
  padding: 12px 15px !important;
  border: 2px solid var(--vert-sauge) !important;
  border-radius: 6px !important;
  font-family: Georgia, serif !important;
  font-size: 1em !important;
  background: white !important;
  transition: all 0.3s ease !important;
}

#right-sidebar .wp-block-search__input:focus {
  border-color: var(--vert-foret) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1) !important;
}

#right-sidebar .wp-block-search__button {
  padding: 12px 24px !important;
  background: var(--beige-naturel) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: Georgia, serif !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

#right-sidebar .wp-block-search__button:hover {
  background: var(--vert-foret) !important;
  transform: translateY(-2px) !important;
}

/* ========================================
   TEMPLATE TAXONOMY AUTEUR
======================================== */
.taxonomy-header {
  background: var(--blanc-casse);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-left: 8px solid var(--vert-foret);
  margin-bottom: 40px;
}

.taxonomy-header .page-title {
  font-family: Georgia, serif;
  font-size: 2.8em;
  color: var(--vert-foret);
  margin: 0 0 15px 0;
}

.taxonomy-description {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--gris-anthracite);
  margin: 20px 0;
}

.taxonomy-count {
  font-size: 1em;
  color: var(--vert-sauge);
  font-style: italic;
  margin: 15px 0 0 0;
}

/* Grille posts */
.taxonomy-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.taxonomy-post-card {
  background: var(--blanc-casse);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--vert-sauge);
}

.taxonomy-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(45, 90, 61, 0.15);
}

.taxonomy-post-thumbnail {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.taxonomy-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.taxonomy-post-card:hover .taxonomy-post-thumbnail img {
  transform: scale(1.05);
}

.taxonomy-post-content {
  padding: 25px;
}

.taxonomy-post-title {
  font-family: Georgia, serif;
  font-size: 1.4em;
  margin: 0 0 12px 0;
}

.taxonomy-post-title a {
  color: var(--vert-foret);
  text-decoration: none;
}

.taxonomy-post-title a:hover {
  color: var(--vert-sauge);
}

.taxonomy-post-meta {
  font-size: 0.9em;
  color: var(--vert-sauge);
  margin-bottom: 15px;
}

.taxonomy-post-meta i {
  margin-right: 5px;
}

.taxonomy-post-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--gris-anthracite);
  margin-bottom: 20px;
}

.taxonomy-read-more {
  display: inline-block;
  padding: 10px 20px;
  background: var(--beige-naturel);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.taxonomy-read-more:hover {
  background: var(--vert-foret);
  transform: translateX(5px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination a,
.pagination .current {
  padding: 10px 18px;
  background: var(--blanc-casse);
  color: var(--vert-foret);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
  background: var(--vert-foret);
  color: white;
}

/* Mobile */
@media (max-width: 768px) {
  .taxonomy-posts-grid {
    grid-template-columns: 1fr;
  }

  .taxonomy-header {
    padding: 25px;
  }
}

/* ========================================
   FICHE AUTEUR COMPLETE - NOUVEAU LAYOUT
======================================== */
.fiche-auteur {
  max-width: 100%;
}

/* Container principal */
.auteur-header {
  margin-bottom: 50px;
  background: linear-gradient(
    135deg,
    var(--vert-foret) 0%,
    var(--vert-sauge) 100%
  );
  padding: 40px;
  border-radius: 15px;
  color: white;
}

/* Section photo + infos (côte à côte) */
.auteur-main {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.auteur-photo {
  flex-shrink: 0;
}

.auteur-photo img {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.3);
}

.auteur-info {
  flex: 1;
}

.auteur-info h1 {
  font-size: 3em;
  margin: 0 0 15px 0;
  color: white;
}

.auteur-tagline {
  font-size: 1.3em;
  opacity: 0.9;
  margin: 0 0 20px 0;
}

/* Détails auteur */
.auteur-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  font-size: 1.1em;
}

.detail-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  color: white;
}

.detail-item i {
  margin-right: 8px;
}

/* Liens externes */
.auteur-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.external-link {
  background: white;
  color: var(--vert-foret);
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.external-link:hover {
  background: var(--beige-naturel);
  color: white;
  transform: translateY(-2px);
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--vert-foret);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.3em;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--beige-naturel);
  color: white;
  transform: scale(1.1);
}

/* ========================================
   STATISTIQUES AUTEUR - VERSION CORRIGÉE
   (Style conservé, mais layout "forcé" en ligne)
   ======================================== */

.auteur-stats {
  /* LAYOUT : On force la ligne */
  display: flex !important;
  flex-wrap: nowrap !important; /* Interdit le retour à la ligne */
  justify-content: space-between !important;
  align-items: stretch; /* Hauteur égale pour tous */

  /* ESPACE : On réduit légèrement pour que ça tienne */
  gap: 8px !important; /* Était 15px -> Réduit pour gagner de la place */
  padding: 15px !important; /* Était 20px */

  /* STYLE VISUEL (Vos couleurs d'origine) */
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.stat-item {
  /* LAYOUT : Flexibilité totale */
  flex: 1 1 0px !important; /* Largeur égale et flexible */
  min-width: 0 !important; /* CRUCIAL : Autorise à rétrécir sous 120px */
  width: auto !important;

  /* ESPACE INTERNE : On réduit les marges latérales */
  padding: 12px 4px !important; /* Était 15px 20px -> On garde la hauteur, on réduit la largeur */

  /* STYLE VISUEL (Vos couleurs d'origine) */
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  transition: all 0.3s ease;

  /* Gère le contenu qui déborde */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.3);
}

.stat-number,
.stat-date {
  font-size: 1.6em !important; /* Légèrement réduit (1.8 -> 1.6) pour sécurité */
  font-weight: bold;
  color: white;
  line-height: 1;
  margin-bottom: 5px;
  display: block;
  white-space: nowrap; /* Empêche la date de se couper */
}

.stat-label {
  font-size: 0.8em !important; /* Légèrement réduit (0.85 -> 0.8) */
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;

  /* GESTION DU TEXTE LONG */
  white-space: normal !important; /* Autorise le texte à passer sur 2 lignes si besoin */
  line-height: 1.2 !important;
  overflow: hidden;
}

.stat-label a {
  color: white;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s;
  display: inline; /* Important pour le retour à la ligne */
}

.stat-label a:hover {
  border-bottom-color: white;
}

/* MOBILE : On garde votre style responsive */
@media (max-width: 768px) {
  .auteur-stats {
    flex-wrap: wrap !important; /* Sur mobile, on autorise le retour ligne */
    justify-content: center !important;
  }
  .stat-item {
    flex: 0 0 45% !important; /* 2 blocs par ligne */
    min-width: auto !important;
    margin-bottom: 10px;
  }
}

/* Responsive fiche auteur */
@media (max-width: 768px) {
  .auteur-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }

  .auteur-info h1 {
    font-size: 2em;
  }

  .auteur-details {
    justify-content: center;
  }

  .auteur-stats {
    gap: 10px;
  }

  .stat-item {
    min-width: 100px;
    padding: 12px 15px;
  }

  .stat-number,
  .stat-date {
    font-size: 1.5em;
  }
}

/* Citation */
.auteur-citation {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 40px;
  border-radius: 15px;
  margin: 40px 0;
  text-align: center;
  position: relative;
}

.auteur-citation .fa-quote-left {
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 3em;
  color: rgba(102, 126, 234, 0.2);
}

.auteur-citation .fa-quote-right {
  position: absolute;
  bottom: 20px;
  right: 30px;
  font-size: 3em;
  color: rgba(102, 126, 234, 0.2);
}

.auteur-citation blockquote {
  font-size: 1.4em;
  font-style: italic;
  color: #2c3e50;
  margin: 0;
  line-height: 1.8;
}

/* Prix littéraires */
.auteur-prix {
  background: linear-gradient(
    135deg,
    var(--beige-naturel) 0%,
    var(--creme) 100%
  );
  padding: 30px;
  margin: 40px 0;
  border-left: 1px solid #c3cfe2;
  border-radius: 10px;
}

.auteur-prix h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #2c3e50;
}

.auteur-prix h2 i {
  margin-right: 10px;
  color: var(--creme);
}

/* Biographie */
.auteur-biographie {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 60px;
}

.auteur-biographie h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #2c3e50;
}

/* Section livres */
.auteur-livres {
  margin-top: 50px;
}

.auteur-livres > h2 {
  font-size: 2.2em;
  margin-bottom: 30px;
  color: #2c3e50;
  border-bottom: 4px solid var(--vert-foret);
  padding-bottom: 15px;
}

.livres-liste {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.livre-item {
  display: flex;
  gap: 30px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  transition: all 0.3s ease;
}

.livre-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.livre-thumbnail {
  flex-shrink: 0;
  width: 250px;
}

.livre-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.livre-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.livre-title {
  font-size: 1.8em;
  margin-bottom: 15px;
}

.livre-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
}

.livre-title a:hover {
  color: #667eea;
}

.livre-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.95em;
  color: #999;
}

.livre-meta i {
  margin-right: 5px;
}

.livre-excerpt {
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.lire-plus {
  display: inline-block;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.lire-plus:hover {
  color: #764ba2;
  transform: translateX(5px);
}

.no-livres {
  text-align: center;
  padding: 40px;
  color: #999;
  font-style: italic;
  background: #f8f9fa;
  border-radius: 10px;
}

/* Wishlist */
.auteur-wishlist {
  background: linear-gradient(135deg, #6b8e6f 0%, #f5f3ed 100%);
  padding: 40px;
  border-radius: 20px;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.auteur-wishlist h2 {
  color: #2d5a3d;
  font-size: 2em;
  margin-bottom: 15px;
  text-align: center;
}

.auteur-wishlist h2 i {
  color: #2d5a3d;
}

.wishlist-intro {
  text-align: center;
  color: #555;
  font-style: italic;
  margin-bottom: 30px;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.wishlist-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.wishlist-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.wishlist-item i {
  font-size: 1.5em;
  color: #2d5a3d;
}

.wishlist-item span {
  color: #2c3e50;
  font-weight: 500;
}

/* ========================================
   PAGE LISTE AUTEURS
======================================== */
.auteurs-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 20px !important;
  margin-top: 30px !important;
}

.auteur-card {
  background: white !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 20px !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.auteur-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

.auteur-card-photo {
  margin-bottom: 12px !important;
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.auteur-card-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.auteur-card .fa-user-circle,
.auteur-card .fa-book {
  font-size: 50px !important;
  color: var(--vert-foret) !important;
  margin-bottom: 12px !important;
}

.auteur-link {
  font-size: 1.1em !important;
  font-weight: 600 !important;
  color: #2c3e50 !important;
  text-decoration: none !important;
  margin-bottom: 8px !important;
  transition: color 0.3s !important;
}

.auteur-link:hover {
  color: var(--vert-foret) !important;
}

.auteur-count {
  display: block !important;
  font-size: 0.85em !important;
  color: #999 !important;
  margin-top: 6px !important;
}

.auteur-tagline {
  font-size: 0.85em !important;
  color: #666 !important;
  margin-top: 8px !important;
  font-style: italic !important;
  line-height: 1.4 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .auteur-header {
    flex-direction: column;
    text-align: center;
  }

  .auteur-info h1 {
    font-size: 2em;
  }

  .livre-item {
    flex-direction: column;
  }

  .livre-thumbnail {
    width: 100%;
  }

  .auteur-stats {
    flex-direction: column;
  }

  .stat-item {
    max-width: 100%;
  }

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

  .auteurs-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================
   LAYOUT AVEC SIDEBAR - RESPONSIVE
   ======================================== */

.usa-etats-layout {
  display: flex;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 2rem;
}

/* Contenu principal */
.main-content-usa {
  flex: 1 1 calc(70% - 1rem);
  min-width: 0; /* Important pour le responsive */
}

/* Sidebar */
.sidebar-usa {
  flex: 0 0 300px;
  order: 2;
}

/* Header de page */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.page-description {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ========================================
   LÉGENDE DE LA CARTE
   ======================================== */

.map-legend {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.map-legend h3 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  color: #333;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.color-box {
  width: 24px;
  height: 24px;
  border: 2px solid #333;
  border-radius: 4px;
}

.color-box.lu {
  background-color: #4caf50;
}

.color-box.coup-coeur {
  background-color: #ffd700;
}

.color-box.non-lu {
  background-color: #e0e0e0;
}

/* ========================================
   CARTE SVG RESPONSIVE
   ======================================== */

#usa-map-wrapper {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#usa-map {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

#usa-map svg {
  width: 100%;
  height: auto;
  display: block;
}

/* États de la carte */
#usa-map path.state,
#usa-map path[id] {
  stroke: #333;
  stroke-width: 1.5;
  transition: all 0.3s ease;
  cursor: pointer;
}

#usa-map path.lu {
  fill: #4caf50;
}

#usa-map path.coup-coeur {
  fill: #ffd700;
}

#usa-map path.non-lu {
  fill: #e0e0e0;
}

#usa-map path:hover {
  opacity: 0.7;
  stroke-width: 2.5;
  filter: brightness(1.1);
}

/* ========================================
   TOOLTIP
   ======================================== */

.map-tooltip {
  position: fixed;
  background: white;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 320px;
  z-index: 1000;
  pointer-events: none;
}

.tooltip-content {
  display: flex;
  gap: 1rem;
}

.tooltip-content img {
  width: 80px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.tooltip-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #333;
}

.tooltip-info .book-title {
  font-weight: bold;
  display: block;
  margin-bottom: 0.25rem;
}

.tooltip-info .book-author {
  color: #666;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.tooltip-info .book-rating {
  color: #ffd700;
  font-size: 1.1rem;
}

/* ================================
   PAGE ÉTAT AMÉRICAIN
   ================================ */

/* Statistiques */
.state-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-box {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 1px;
  text-align: center;
  border: 1px solid var(--vert-sauge);
}

.stat-icon {
  font-size: 2em;
  display: block;
  margin-bottom: 10px;
}

.stat-number {
  display: block;
  font-size: 2.5em;
  font-weight: bold;
  color: #2d5a3d;
  margin-bottom: 5px;
}

.stat-label {
  display: block;
  font-size: 0.9em;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section description + carte côte à côte */
.state-intro-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  margin-bottom: 40px;
  align-items: start;
}

.state-description-col {
  background: #e8f5e9;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.8;
}

.state-map-col {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mini-map-container {
  width: 100%;
}

.mini-map-container svg {
  width: 100%;
  height: auto;
}

.mini-map-container svg path.state {
  fill: #e0e0e0;
  stroke: #ffffff;
  stroke-width: 1;
}

/* Bouton retour */
.back-to-map-section {
  text-align: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid #e8f5e9;
}

.btn-back-map {
  display: inline-block;
  background: var(--vert-foret);
  color: white;
  padding: 15px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-back-map:hover {
  background: var(--vert-sauge);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .state-intro-section {
    grid-template-columns: 1fr;
  }

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

/* ================================
   PAGE ÉTAT AMÉRICAIN - MINI CARTE
   ================================ */

/* Section description + carte côte à côte */
.state-intro-section {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
  margin-bottom: 40px;
  align-items: start;
}

.state-description-col {
  background: #e8f5e9;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.8;
}

.state-map-col {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.state-map-col .mini-map-container {
  width: 100%;
  overflow: visible;
}

.state-map-col .mini-map-container svg {
  width: 100%;
  height: auto;
  display: block;
}

.state-map-col .mini-map-container svg path.state {
  fill: #e0e0e0;
  stroke: #ffffff;
  stroke-width: 1;
}

/* ================================
   achat
   ================================ */
.boite-achat {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #ff9900;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.boite-achat h3 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.3em;
  text-align: center;
}

.info-prix {
  text-align: center;
  color: #555;
  margin-bottom: 20px;
  font-size: 1.05em;
}

.boutons-achat {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

@media (max-width: 600px) {
  .boutons-achat {
    flex-direction: column;
  }
}

.btn-achat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-achat:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-amazon {
  background: linear-gradient(135deg, #ff9900 0%, #f39c12 100%);
  color: white;
}

.btn-fnac {
  background: linear-gradient(135deg, #f5a623 0%, #e67e22 100%);
  color: white;
}

.btn-achat span {
  font-size: 1.1em;
}

.btn-achat small {
  font-size: 0.85em;
  opacity: 0.9;
  font-weight: normal;
}

.note-soutien {
  text-align: center;
  margin-bottom: 0;
  color: #666;
  font-style: italic;
}

.cta-final {
  background: #fff3cd;
  border-left: 5px solid #ffc107;
  padding: 20px;
  margin: 30px 0;
  text-align: center;
}

.mini-boutons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.mini-btn {
  background: #007bff;
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.mini-btn:hover {
  background: #0056b3;
  transform: scale(1.05);
}

/* Style 3 : Encadré Papier (Citation) */
.auteur-biographie {
  background-color: #ffffff;
  border-top: 3px solid var(--beige-naturel); /* Juste une ligne dorée en haut */
  color: var(--brun-ecorce);
  padding: 30px;
  margin: 25px 0;
  box-shadow: 0 4px 15px rgba(45, 90, 61, 0.08); /* Ombre teintée de vert très léger */
  font-style: italic;
}

/* Changer le fond de la zone article seul */
.single-post #content {
  background-color: #f9f9f9; /* Remplacez par votre code couleur (ex: #ffffff pour blanc) */
  padding: 30px; /* Ajoute un peu d'espace si besoin */
}

/* Si vous avez une barre latérale, pour qu'elle reste séparée */
.single-post .content-area {
  background-color: transparent;
}
/* Pas de style sur le A dans sidebar*/
#block-4.sidebar-box.widget_block.clr a,
#block-4.sidebar-box.widget_block.clr a * {
  all: unset !important; /* Reset TOTAL sur le lien seul */
  display: block !important; /* Garde le lien cliquable en bloc */
  line-height: 0 !important; /* Pas d'espacement vertical */
  cursor: pointer !important;
}
#block-4.sidebar-box.widget_block.clr img {
  width: 100% !important; /* Pleine largeur du conteneur */
  height: auto !important; /* Proportion gardée */
  max-width: 350px !important; /* Limite max si trop grande */
  display: block !important;
}

/* Style des liens avec les boutons achat dans articles*/
.acheter-btn {
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
}

.acheter-btn-amazon {
  background-color: #ff9900;
  color: white;
}

.acheter-btn-fnac {
  background-color: #0055a4;
  color: white;
  margin-left: 10px;
}
