/* Importation des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Raleway:wght@300;700&display=swap');

/* === Thème Sobriété Élégante === */
:root {
  --bg: #f5f5f5; /* Fond clair neutre */
  --panel: #ffffff; /* Fond plein pour cartes, articles, formulaires */
  --muted: #7a7a7a; /* Texte secondaire gris doux */
  --accent: #3a6ea5; /* Bleu gris profond */
  --accent-light: #6b8dbd; /* Bleu clair pour accents et reflets */
  --text-dark: #1f2b38; /* Texte principal sombre */

  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Lato', sans-serif;
}

/* --- Fond global --- */
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-dark);
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(58, 110, 165, 0.05);
  pointer-events: none;
  z-index: -1;
}

/* --- Arrondis --- */
.main-nav a, .btn, .pagination a, .pagination span, .tag-cloud a, .hero-content .btn,
.sidebar, .contact, .contact .captcha img, .contact button, form,
input[type="text"], input[type="email"], textarea, .card, .hero-card,
.article-full::before, .article-photo img, .article-video-block .video-container,
.article-video-block .video-container iframe, .article-link {
  border-radius: 6px; /* Conservé pour tous les éléments */
}
.hero-content .btn { border-radius: 8px; }
.sidebar { border-radius: 14px; }
.contact { border-radius: 12px; }
form { border-radius: 10px; }
.hero-card { border-radius: 16px; }

/* --- Header --- */
.site-header {
  background: linear-gradient(90deg, var(--panel), #e3eaf0);
  border-bottom: 2px solid var(--accent-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.header-inner { background: transparent !important; }
.site-title {
  color: var(--accent);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: 2px;
}
.main-nav a { 
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.main-nav a:hover {
  color: var(--accent);
  background: #e3eaf0;
  box-shadow: inset 0 -4px 0 0 var(--accent-light);
  transform: translateY(-2px);
}

/* --- Boutons --- */
.btn {
  background: linear-gradient(45deg, var(--accent), var(--accent-light));
  color: white;
  box-shadow: 0 4px 15px rgba(58,110,165,0.4);
  transition: all 0.4s ease;
}
.btn:hover {
  background: linear-gradient(45deg, var(--accent-light), var(--accent));
  box-shadow: 0 0 20px var(--accent-light), 0 8px 20px rgba(58,110,165,0.6);
  transform: scale(1.05);
}

/* --- Sidebar --- */
.sidebar {
  background: var(--panel);
  box-shadow: 4px 0 20px rgba(0,0,0,0.08), inset 0 0 5px rgba(58,110,165,0.05);
  border: 1px solid var(--accent-light);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.sidebar ul li.menu-title {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  transition: all 0.25s ease-in-out;
}
.sidebar ul li.menu-title:hover {
  text-shadow: 0 0 5px var(--accent-light);
}
.sidebar h3 {
  color: var(--text-dark);
  border-bottom: 1px solid rgba(58,110,165,0.2);
  font-family: var(--font-heading);
  font-weight: 700;
}
.sidebar ul li a {
  color: var(--muted);
  transition: all 0.4s cubic-bezier(0.19,1,0.22,1);
}
.sidebar ul li a:hover {
  background: rgba(58,110,165,0.08);
  color: var(--accent);
  transform: translateX(8px);
  text-shadow: 0 0 8px rgba(58,110,165,0.4);
  font-weight: bold;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar-track { background: var(--bg); }
.sidebar::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }
.sidebar { scrollbar-color: var(--accent) var(--bg); }

/* --- Cards --- */
.card {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: 1px solid rgba(58,110,165,0.1);
  transition: all 0.5s cubic-bezier(0.25,0.8,0.25,1);
}
.card:hover {
  transform: translateY(-8px) rotateZ(-0.5deg);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15), 0 0 25px var(--accent-light);
}

/* --- Article Titles --- */
article.card div.excerpt h3 a {
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.25,0.8,0.25,1);
  box-shadow: inset 0 -3px 0 0 rgba(58,110,165,0.1);
  display: inline-block;
}
article.card div.excerpt h3 a:hover {
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: inset 0 -4px 0 0 var(--accent-light);
  text-shadow: 0 0 8px rgba(58,110,165,0.3);
}

/* --- Hero / Catégories --- */
.categories-hero { background: linear-gradient(180deg, var(--bg) 0%, #e3eaf0 100%); }
.hero-card {
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15), inset 0 0 8px rgba(58,110,165,0.05);
  border: 1px solid rgba(58,110,165,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeUp 0.8s ease both;
}
.hero-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.2), 0 0 25px var(--accent-light);
}

/* --- Fil d’actualité (Timeline) --- */
.sidebar-right.news-feed {
  background: var(--panel);
  border: 1px solid var(--accent-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.sidebar-right.news-feed::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}
.news-feed li::before {
  content: '';
  position: absolute;
  left: 28px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--panel);
  border: 3px solid var(--accent);
  box-shadow: 0 0 8px rgba(58,110,165,0.5);
  transition: all 0.3s ease;
}
.news-feed li:hover::before {
  background: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 15px var(--accent-light);
}
.news-feed li {
  position: relative;
  border-bottom: 1px dashed rgba(58,110,165,0.15);
  padding-left: 60px;
  margin-bottom: 20px;
}
.news-feed h2 {
  color: var(--text-dark);
  border-bottom: 2px solid var(--accent);
  margin-bottom: 10px;
  padding-bottom: 5px;
  font-family: var(--font-heading);
  font-weight: 700;
}
.news-feed li strong { color: var(--text-dark); font-weight: 700; }
.news-feed li p { color: var(--muted); }

/* --- Article plein fond --- */
.article-full {
  background: var(--panel); /* Fond plein garanti */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(58,110,165,0.1);
}
.article-full::before {
  background: linear-gradient(135deg, rgba(107,141,189,0.05), rgba(255,255,255,0.05));
}

/* --- Formulaire de contact plein fond --- */
.contact, .contact form {
  background: var(--panel); /* Fond plein garanti */
  border: 1px solid rgba(58,110,165,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1), inset 0 0 8px rgba(58,110,165,0.05);
}

/* --- Footer / mentions --- */
.site-footer {
  background: var(--panel); /* Fond plein garanti */
  color: var(--muted);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}
/* === Nuage de tags - Bulles d'oxygène === */
#tags h2 {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-light);
  font-family: var(--font-heading);
  font-weight: 700;
}

.tag-cloud a {
  color: var(--muted);
  background: #f0f4f8; /* léger fond pour les bulles */
  padding: 5px 10px;
  display: inline-block;
  margin: 4px;
  border-radius: 12px;
  transition: all 0.5s ease;
  opacity: 0.85;
  animation: bubbleFloat 12s ease-in-out infinite;
}

.tag-cloud a:hover {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.3) rotateZ(-3deg);
  text-shadow: 0 0 15px var(--accent-light);
  background: var(--panel); /* fond clair accentué au survol */
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0px) rotateZ(0deg); }
  33% { transform: translateY(-10px) rotateZ(2deg); }
  66% { transform: translateY(5px) rotateZ(-1deg); }
}

/* === Formulaire de contact - Champs de saisie === */
.contact input[type="text"],
.contact input[type="email"],
.contact textarea {
  background-color: #f0f4f8; /* bleu-gris très clair pour contraste doux */
  color: var(--text-dark);
  border: 1px solid #d0d8e0;
  padding: 8px 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 6px;
}

.contact input:focus,
.contact textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
  outline: none;
}
