/* Importation des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* === Thème Celte Sombre & Moderne - ESTHÉTIQUE === */
:root {
  /* Couleurs de la nuit, de la pierre sombre et de l'émeraude mystique */
  --bg: #0d0f10; /* Fond très sombre, quasi noir */
  --panel: #1a1c1e; /* Panneau/carte : gris très foncé, texturé comme de la pierre polie */
  --muted: #a6b2c2; /* Texte secondaire : gris-bleuâtre pâle (brume) */
  --accent: #00bfa5; /* Vert Émeraude Vif - accent "magique" */
  --accent-light: #26ffda; /* Pour les ombres portées (glow) */

  /* Polices */
  --font-heading: 'Cinzel Decorative', serif; /* Police pour les titres (gravée, ancienne) */
  --font-body: 'Lato', sans-serif; /* Police pour le corps de texte (moderne, lisible) */
}

/* --- Fond global : Nœud Celtique en arrière-plan --- */
body {
  font-family: var(--font-body); /* Applique la police pour le corps de texte */
  background-color: var(--bg);
  color: #e6e6e6;
  position: relative;
  overflow-x: hidden;

  /* Utilisation de l'image comme fond principal */
  background-image: url('celtic_background_dark.png'); /* Remplacez par le chemin correct de votre image */
  background-size: cover; /* Couvre toute la page */
  background-attachment: fixed; /* Reste fixe au scroll */
  background-position: center center;
  background-repeat: no-repeat;
}
.main-nav a {
  border-radius: 6px;
}
.btn {
border-radius: 6px;
}
.pagination a, .pagination span {
  border-radius: 6px;
 } 
 .tag-cloud a {
   border-radius: 6px;
  } 
  .hero-content .btn {
    border-radius: 8px;
}
.sidebar {
  border-radius: 14px;
}
.contact {
  border-radius: 12px;
}
.contact .captcha img {
  border-radius: 6px;
 }
 .contact button {
   border-radius: 8px;
}
form {
border-radius: 10px;
}
input[type="text"],
input[type="email"],
textarea {
border-radius: 4px;
}


.card {
border-radius: 10px;
}
.hero-card {
  border-radius: 16px;
 }
.article-full::before {
    content: ""; 
    border-radius: 10px;
}
.article-photo img {
    border-radius: 8px;
}
.article-video-block .video-container {
    border-radius: 8px;
}
.article-video-block .video-container iframe {
    border-radius: 8px;
}
.article-link {
    border-radius: 8px;
}
@media (max-width: 768px) {
 .card { 
  border-radius:12px;
    }
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Overlay sombre pour améliorer la lisibilité */
  /* Vous pouvez ajouter une texture subtile ici si l'image de fond est trop lisse */
  /* background-image: url('data:image/svg+xml,...'); */ /* Exemple de texture bruit */
  pointer-events: none;
  z-index: -1;
}

/* --- Header --- */
.site-header {
  background: linear-gradient(90deg, #131518, #0d0f10);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.header-inner { background: transparent !important; }
.site-title {
  color: var(--accent-light);
  text-shadow: 0 0 6px var(--accent-light);
  font-family: var(--font-heading); /* Police titre pour le titre du site */
  font-weight: 700;
  letter-spacing: 1px;
}
.main-nav a { color: var(--muted); text-decoration: none; }
.main-nav a:hover {
  color: var(--accent);
  background: rgba(0, 191, 165, 0.1);
  transform: translateY(-1px);
}


/* === Bouton menu mobile === */
#menu-toggle {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  border: none;
}
#menu-toggle:hover {
  background: var(--accent-light);
  box-shadow: 0 0 15px var(--accent-light);
}

/* --- Sidebar --- */
.sidebar {
  background: var(--panel);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 191, 165, 0.1);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.sidebar ul li.menu-title {
  color: var(--accent);
  transition: all 0.25s ease-in-out;
  font-family: var(--font-heading); /* Police titre pour les titres de menu */
  font-weight: 700;
}

.sidebar ul li.menu-title:hover {
  background: transparent;
  color: var(--accent);
  transform: none;
  text-shadow: none;
}

.sidebar h3 {
  color: var(--accent);
  border-bottom: 1px solid rgba(0, 191, 165, 0.2);
  font-family: var(--font-heading); /* Police titre pour les h3 */
  font-weight: 700;
}

.sidebar ul li a {
  color: var(--muted);
  transition: all 0.25s ease-in-out;
}

.sidebar ul li a:hover {
  background: rgba(0, 191, 165, 0.05);
  color: var(--accent-light);
  transform: translateX(6px);
  text-shadow: 0 0 10px var(--accent-light);
  font-weight: bold;
}
/* Scrollbar Celte */
.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 191, 165, 0.5);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
/* Firefox */
.sidebar {
    scrollbar-color: rgba(0, 191, 165, 0.5) rgba(255,255,255,0.05);
}


/* --- Cards (Effet sculpté) --- */
.card {
  background: linear-gradient(135deg, #1f2225, #141618);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8),
              inset 0 0 10px rgba(0, 191, 165, 0.05);
  border: 1px solid rgba(0, 191, 165, 0.1);
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 1), 0 0 15px rgba(0, 191, 165, 0.4);
}

.meta { color: var(--muted); }
.btn {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}
.btn:hover {
  background: var(--accent-light);
  box-shadow: 0 0 15px var(--accent-light);
}

/* === Footer === */
.site-footer {
  background: #090b0d;
  color: var(--muted);
  border-top: 1px solid rgba(0, 191, 165, 0.05);
}
.footer-links a { color: var(--accent); }
.footer-links a:hover { text-decoration: none; color: var(--accent-light); }

/* === Pagination : Pierre lumineuse --- */
.pagination a, .pagination span { transition: all 0.3s ease; }

.pagination a {
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  border: 1px solid rgba(0, 191, 165, 0.1);
}
.pagination a:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 10px var(--accent);
}
.pagination .current {
  background: var(--accent);
  color: var(--bg);
  font-weight: bold;
  box-shadow: 0 0 12px var(--accent-light);
}
.pagination .dots { color: #555; }

/* === Nuage de tags : Énergie Mère-Terre === */
#tags h2 {
  color: var(--accent-light);
  text-shadow: 0 0 12px var(--accent);
  font-family: var(--font-heading); /* Police titre pour les h2 de tags */
  font-weight: 700;
}
.tag-cloud a {
  color: var(--muted);
  transition: all 0.4s ease;
  opacity: 0.9;
  animation: floaty 8s ease-in-out infinite;
}
.tag-cloud a:hover {
  color: var(--accent-light);
  opacity: 1;
  transform: scale(1.2) rotateY(8deg);
  text-shadow: 0 0 15px var(--accent);
}
@keyframes floaty {
  0%,100% { transform: translateY(0px) rotateY(0deg); }
  25% { transform: translateY(-6px) rotateY(3deg); }
  50% { transform: translateY(3px) rotateY(-3deg); }
  75% { transform: translateY(-5px) rotateY(2deg); }
}

/* === Hero / Catégories : Dalles de pierre sculptées === */
.categories-hero {
  background: linear-gradient(180deg, #0d0f10 0%, #15181b 100%);
}
.hero-card {
  background: linear-gradient(160deg, #1f2225, #141618);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7),
              inset 0 0 8px rgba(0, 191, 165, 0.1);
  border: 1px solid rgba(0, 191, 165, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeUp 0.8s ease both;
}
.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 191, 165, 0.4);
}
.hero-card figure { background: #222528; }
.hero-content {
  background: linear-gradient(to top, #141618 0%, #1a1c1e 100%);
  color: #e0e0e0;
}
.hero-content h3.cat-name {
  color: var(--accent-light);
  text-shadow: 0 0 8px var(--accent);
  font-family: var(--font-heading); /* Police titre pour les noms de catégorie */
  font-weight: 700;
}
.hero-content h4 { color: #c0c0c0; }
.hero-content p { color: #a6b2c2; }
.hero-content .btn {
  background: linear-gradient(135deg, var(--accent), #00e0c0);
  color: var(--bg);
  box-shadow: 0 4px 12px rgba(0, 191, 165, 0.4);
  transition: all 0.3s ease;
}
.hero-content .btn:hover {
  background: linear-gradient(135deg, var(--accent-light), #00ffeb);
  transform: scale(1.08);
  box-shadow: 0 5px 16px rgba(0, 191, 165, 0.6);
}
@keyframes fadeUp { from { opacity:0; transform:translateY(20px);} to { opacity:1; transform:translateY(0);} }

/* --- Responsive général --- */
@media (max-width: 768px) {
  .card {
    background:rgba(0, 191, 165, 0.05);
    border:1px solid rgba(0, 191, 165, 0.15);
    box-shadow:0 6px 20px rgba(0, 0, 0, 0.6);
    transition:transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* === Sections Catégorie === */
.category-title {
  color: var(--accent-light);
  text-shadow: 0 0 10px var(--accent);
  font-family: var(--font-heading); /* Police titre pour les titres de catégorie */
  font-weight: 700;
}
.no-article { color:#777; }
/* === Formulaire de contact – Harmonie Celtique === */
.contact {
  background: linear-gradient(160deg, #1f2225, #141618);
  border: 1px solid rgba(0, 191, 165, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7),
              inset 0 0 8px rgba(0, 191, 165, 0.1);
  color: #ddd;
}

.contact h2 {
  color: var(--accent);
  font-family: var(--font-heading); /* Police titre pour les h2 de contact */
  font-weight: 700;
}

.contact input:focus,
.contact textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 10px var(--accent-light);
  outline: none;
}
.contact h2,
.category-title {
  color: var(--accent-light);
  text-shadow: 0 0 10px var(--accent);
  font-family: var(--font-heading); /* Police titre */
  font-weight: 700;
}

/* Captcha */
.contact .captcha img {
  background: #333;
  border: 1px solid var(--accent);
}

.contact .captcha a { color: var(--muted); }
.contact .captcha a:hover { color: var(--accent); }

/* Bouton d’envoi */
.contact button {
  background: linear-gradient(135deg, var(--accent), #00e0c0);
  color: var(--bg);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 191, 165, 0.3);
}

.contact button:hover {
  background: linear-gradient(135deg, var(--accent-light), #00ffeb);
  transform: scale(1.08);
  box-shadow: 0 5px 16px rgba(0, 191, 165, 0.6);
}

/* Messages de feedback */
.contact .feedback-success { color: #5cff87; }
.contact .feedback-error { color: #ff4c4c; }

form {
  background: linear-gradient(160deg, #1f2225 0%, #141618 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7),
              inset 0 0 8px rgba(0, 191, 165, 0.1);
  border: 1px solid rgba(0, 191, 165, 0.1);
}

label {
  color: #f5f5f5;
  text-shadow: 0 0 6px rgba(0, 191, 165, 0.3);
}

input[type="text"],
input[type="email"],
textarea {
  background: #0d0f10;
  color: #eee;
  border: 1px solid #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 10px var(--accent-light);
  outline: none;
}

button[type="submit"] {
  background: linear-gradient(135deg, var(--accent), #00e0c0);
  color: var(--bg);
  box-shadow: 0 4px 12px rgba(0, 191, 165, 0.3);
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--accent-light), #00ffeb);
  transform: scale(1.08);
  box-shadow: 0 5px 16px rgba(0, 191, 165, 0.6);
}

section.contact form p.info-rgpd {
  color: #aaa;
}

/* === ARTICLE HERO-LIKE CENTRÉ === */
.article-full {
    background: var(--panel);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid rgba(0, 191, 165, 0.1);
}

/* --- fond léger derrière l'article (effet aura) --- */
.article-full::before {
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.08), rgba(0,0,0,0.05));
}

/* --- image/video centrée dans l’article --- */
.article-photo img,
.article-video-block img,
.article-video-block .video-container,
.article-video-block .video-container iframe {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}


/* --- texte et metadonnees inchanges --- */
article .result-meta {
    color: var(--muted);
}

.article-link {
    background: #25282c;
    border-radius: 8px;
    border: 1px solid rgba(0, 191, 165, 0.1);
}

.article-link .link-comment {
    color: var(--muted);
}

.article-link .link-item a {
    color: var(--accent);
}

.article-link .link-item a:hover {
    text-decoration: none;
    color: var(--accent-light);
}

.article-content p {
    color: #ddd;
}

/* --- Partage social (Icones metalliques) --- */
.social-share a {
  color: white;
  background-color: #333;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.social-share a:hover {
  transform: scale(1.2);
  box-shadow: 0 0 12px var(--accent-light);
}

/* Couleurs specifiques aux reseaux sociaux */
.facebook:hover { background-color: #3b5998; }
.twitter:hover  { background-color: #00acee; }
.linkedin:hover { background-color: #0077b5; }
.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #00bfa5 0%, #00e0c0 45%, #00bfa5 60%, #1a1c1e 90%);
}
/* =========================================================
   news et timeline (Thème Celte Sombre Harmonisé)
   ========================================================= */

/* Le conteneur du fil d'actualité */
.sidebar-right.news-feed {
    /* Utilise la couleur de vos cartes/panneaux (Pierre polie) */
    background: var(--panel); 
    /* Bordure émeraude très subtile */
    border: 1px solid rgba(0, 191, 165, 0.1); 
    border-radius: 8px;
    /* Ombre profonde comme vos autres cartes */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); 
}

/* 2a. La ligne verticale de la timeline */
.sidebar-right.news-feed::before {
    /* Ligne très sombre, gravée dans la pierre */
    background: rgba(255,255,255,0.1); 
}

/* 2d. L'horloge / Montre en haut de la timeline */
.sidebar-right.news-feed::after {
    /* L'icône prend la couleur Accent ou Muted. Accent est plus visible. */
    color: var(--accent); 
    /* Le fond doit correspondre au panneau pour "ouvrir" un trou dans le panneau */
    background: var(--panel); 
    /* Légère ombre pour donner un effet de "glow" sur l'icône */
    text-shadow: 0 0 6px var(--accent);
}

/* 2c. Le point de la timeline (généré sur chaque li) */
.news-feed li::before {
    /* Remplissage du point en Émeraude */
    background: var(--accent); 
    /* Bordure en couleur de panneau pour un effet 'trou' ou 'sertissage' */
    border: 3px solid var(--panel); 
    /* Petit effet lumineux sur le point */
    box-shadow: 0 0 8px rgba(0, 191, 165, 0.5); 
}

/* Bordure de séparation des éléments de la liste */
.news-feed li {
    /* Ligne de séparation très discrète (brume) */
    border-bottom: 1px dashed rgba(166, 178, 194, 0.1); 
}


/* 3. STYLES VISUELS ET TYPOGRAPHIE */
.news-feed h2 {
    /* Titre peut être la couleur accent ou la couleur principale */
    color: var(--accent); 
    border-bottom: 2px solid rgba(0, 191, 165, 0.2); /* Bordure Émeraude subtile */
    margin-bottom: 10px;
    padding-bottom: 5px;
    font-family: var(--font-heading); /* Utilise la police des titres */
    font-weight: 700;
}

.news-feed li strong {
    /* Date/titre en couleur principale pour la lisibilité */
    color: #e6e6e6; 
    font-weight: 700;
}

.news-feed li p {
    /* Description en couleur muted (brume) */
    color: var(--muted); 
}