/*
Theme Name: Evolve Geek Enfant
Theme URI: https://actu-geek.com
Description: Thème enfant personnalisé pour Evolve, optimisé pour un site geek / high-tech / jeux vidéos.
Author: TonNom
Author URI: https://tonsite.com
Template: evolve
Version: 1.0
*/

/* ================================
   Polices
================================ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Inter:wght@400;600&display=swap');

/* --- RESET DE BASE --- */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #111;
  color: #f0f0f0;
}
a {
  color: #ffaa00;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- ARTICLES HOVER --- */
.articles-slider {
  display: flex;
  gap: 15px;
  overflow: hidden; /* empêche tout scroll */
  max-width: 1100px;
  padding: 0 20px;
  margin: 0 auto;       /* centre le slider */
  transition: transform 0.3s ease;
  position: relative;
  margin-bottom: 60px; /* espace pour .matrix-text */
  z-index: 5;
}
/* Cache la scrollbar */
.articles-slider::-webkit-scrollbar {
  display: none;
}
.articles-slider {
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
}
.articles-slider .article {
  position: relative;
  flex: 0 0 200px;
}

.articles-slider .matrix-text {
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  text-align: center;
}

.article {
  width: 220px;
  height: 375px;
  overflow: visible;
  filter: grayscale(100%);
  transition: all 0.4s ease;
  position: relative;
  border-radius: 8px;
  cursor: pointer;
}

.article:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
  z-index: 2;
}

.article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  z-index: 1;
}
.article:nth-child(1) {
  margin-top: 60px;
}
.article:nth-child(2) {
  margin-top: 30px;
}
.article:nth-child(3) {
  margin-top: 0;
}
.article:nth-child(4) {
  margin-top: 20px;
}
.article:nth-child(5) {
  margin-top: 50px;
}

.matrix-text {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  font-size: 20px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #5d43c5;
  text-shadow: 0 0 5px #5d43c5, 0 0 10px #5d43c5;
  font-family: monospace;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Mode sombre */
body.dark-mode .matrix-text {
  color: #00f3ff !important;
  text-shadow: 0 0 5px #00f3ff, 0 0 10px var(--heading-color) !important;
}

.matrix-text.show {
  opacity: 1;
}

.matrix-column {
  display: flex;
  flex-direction: column;
}

.matrix-letter {
  opacity: 0.9;
}

.reveal {
  color:#0f0;
}

.falling {
  animation: fall 0.4s linear forwards;
}

@keyframes fall {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- GRILLE D'ARTICLES --- */
.articles-container-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.card-article {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1rem;
  transition: box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.card-article:hover {
  box-shadow: 0 0 20px var(--heading-color) !important;
  transform: translateY(-4px);
}
.card-article img {
  width: 100%;
  border-radius: 8px;
}
.card-article h2 {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}
.post-meta {
  font-size: 0.85rem;
  color: #000 !important;
  margin-bottom: 0.5rem;
}
.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  border: 2px solid var(--heading-color) !important;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s;
}
.read-more:hover {
  background: #000;
  color: var(--heading-color) !important;
}

/* --- ANIMATION DE DESCENTE DE LA GRILLE --- */
.articles-grid {
  transition: transform 0.3s ease;
}
.articles-grid.grid-shifted {
  transform: translateY(40px);
}

/* --- PAGINATION --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5rem auto 3rem;
  font-family: 'Orbitron', sans-serif;
}
.pagination ul {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination li {
  display: inline-block;
}
.pagination a,
.pagination .current {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #111;
  border: 1px solid #222;
  color: #fff;
  transition: all 0.25s ease;
  box-shadow:
    0 0 6px rgba(0, 255, 200, 0.08),
    inset 0 0 4px rgba(0, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}
.pagination a:hover {
  color: var(--heading-color) !important;
  background: #1a1a1a;
  border-color: var(--heading-color) !important;
  box-shadow:
    0 0 8px rgba(0, 255, 255, 0.4),
    inset 0 0 10px rgba(0, 255, 255, 0.2);
  transform: scale(1.05);
}
.pagination .current {
  color: #0ff;
  background: #000;
  border: 1px solid #0ff;
  box-shadow:
    0 0 10px rgba(0, 255, 255, 0.3),
    inset 0 0 10px rgba(0, 255, 255, 0.3);
}

/* --- DARK MODE EXTENSIONS --- */
body.dark-mode {
  background: #000;
  color: #eee;
}
body.dark-mode .card-article {
  background: #111;
}
body.dark-mode .read-more {
  border-color: var(--heading-color) !important;
  color: var(--heading-color) !important;
}
body.dark-mode .read-more:hover {
  background: #000;
  color: #111;
}
body.dark-mode header {
  background-color: #000 !important;
}
body.dark-mode a {
  color: var(--heading-color) !important;
}
body.dark-mode .slide-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
body.dark-mode .slider-wrapper::-webkit-scrollbar {
  display: none;
}

body,
body .content,
body .site-content,
body .main-content,
body .wrapper,
body .container {
  background-color: #fff !important;
  color: #f0f0f0 !important;
}
body.dark-mode,
body.dark-mode .content,
body.dark-mode .site-content,
body.dark-mode .main-content,
body.dark-mode .wrapper,
body.dark-mode .container {
  background-color: #000 !important;
  color: #eee !important;
}

body.dark-mode .post-content, body.dark-mode .post-meta{
  color:#fff !important;
}

body.dark-mode .translations-loaded{
  background-color: #000;
}

body.dark-mode .archive-title{
  color:#fff;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 768px) {
  .slider-wrapper {
    padding: 1rem 0.5rem;
  }
  .slide {
    width: 250px;
  }
}

@media screen and (min-width: 768px) {
  .col-md-8 {
    max-width: 100%;
  }
}

/* --- TOP HIGHLIGHTS --- */
.top-highlights {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.highlight-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.highlight-thumb {
  position: relative;
}
.highlight-thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.highlight-thumb:hover img {
  transform: scale(1.05);
}
.highlight-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  transition: opacity 0.3s ease;
}
.highlight-card:hover .highlight-overlay {
  opacity: 1;
}
.highlight-overlay h2 {
  font-size: 1.1rem;
  margin: 0;
}

/* --- MENU PRINCIPAL HORIZONTAL --- */
.menu-2025 {
  display: flex !important;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 15px 0;
}
.menu-2025 li {
  display: inline-block !important;
  margin: 0;
  padding: 0;
}
.menu-2025 li a {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: var(--heading-color) !important;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.menu-2025 li a:hover,
.menu-2025 .current-menu-item > a {
  background-color: #000;
  color: #111;
  box-shadow: 0 0 10px var(--heading-color) !important;
  transform: translateY(-2px);
}

/* Article contenu */
#primary > nav:nth-child(1){
  display: none;
}

.navbar-nav.menu-2025 {
  display: flex !important;
  gap: 20px;
  list-style: none;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.navbar-nav.menu-2025 li {
  display: inline-block !important;
  white-space: nowrap;
}
.navbar-nav.menu-2025 li a {
  color: var(--heading-color) !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.navbar-nav.menu-2025 li a:hover {
  color: #ffffff;
}

/* --- HEADER FUSION --- */
.header-fusion .container {
  display: flex !important;
  justify-content: space-between;
  align-items: center !important;
  gap: 30px;
  flex-wrap: nowrap !important;
}
.header-fusion .site-title {
  flex-shrink: 0;
  margin: 0;
  white-space: nowrap;
  font-size: 1.6rem;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 100%;
}
.header-fusion nav.primary-nav {
  flex: 1;
  text-align: center;
}
.header-fusion .navbar-nav.menu-2025 {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  flex-wrap: nowrap;
}
.header-fusion .navbar-nav.menu-2025 li {
  display: inline-block !important;
}
.header-fusion .header-right {
  flex-shrink: 0;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: flex-end;
}
.header-fusion .header-right a {
  color: var(--heading-color);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
}
.header-fusion .header-right a:hover {
  background-color: #111;
  color: var(--heading-color);
}

/* --- SINGLE POST --- */
.single-post .entry-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
  text-shadow: 0 0 8px var(--heading-color);
}
.single-post .entry-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #fff;
}
.single-post .entry-content a {
  color: #0ff;
  text-decoration: underline;
}
.single-post .entry-content a:hover {
  color: #0ff;
  text-shadow: 0 0 10px #0ff;
}

/* --- Variables CSS --- */
:root {
  --heading-color: #5d43c5;
  --background-color: #111;
  --text-color: #f0f0f0;
}

/* =========================
   Navigation Articles Suivant / Précédent
   ========================= */

nav.infinite.navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
  text-align: center;
  padding: 0 15px;
}

nav.infinite.navigation .nav-next,
nav.infinite.navigation .nav-previous {
  width: 100%;
  max-width: 600px;
}

nav.infinite.navigation a {
  display: block;
  padding: 20px;
  background: #0e0e0e;
  border: 1px solid #333;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--heading-color) !important;
  transition: background 0.3s, transform 0.2s;
}

nav.infinite.navigation a:hover {
  background: #1a1a1a;
  transform: scale(1.02);
}

nav.infinite.navigation img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 0 15px rgba(0, 255, 230, 0.15);
}

nav.infinite.navigation span {
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  margin-top: 10px;
  color: var(--heading-color) !important;
}

/* =========================
   Navigation Personnalisée (Articles Précédent / Suivant)
   ========================= */

.post-nav-custom {
  margin-top: 50px;
  padding: 20px 0;
  text-align: center;
}

.nav-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  max-width: 320px;
  width: 100%;
  transition: transform 0.3s ease;
}

.nav-item:hover {
  transform: translateY(-5px);
}

.nav-item a {
  color: var(--heading-color) !important;
  text-decoration: none;
  display: block;
  height: 100%;
}

.nav-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 10px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.nav-content {
  padding: 15px;
  text-align: left;
}

.nav-arrow {
  font-size: 0.9rem;
  color: #fff;
  display: block;
  margin-bottom: 5px;
}

.nav-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #00ffe7;
  margin: 0;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .nav-content {
    text-align: center;
  }
}

/* =========================
   Sidebar Droite
   ========================= */

/* Conteneur principal */
.single-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

/* Contenu principal */
.single-main {
  flex: 1;
  min-width: 0;
  max-width: 750px;
}

/* Sidebar sticky */
.sidebar-right {
  max-width: 300px;
  width: 100%;
  position: sticky;
  top: 120px; /* Ajuster selon la hauteur de la navbar sticky */
  align-self: flex-start;
  height: fit-content; /* Important pour que sticky fonctionne */
}

/* Titre de section sidebar */
.sidebar-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--heading-color) !important;
  padding-bottom: 6px;
  color: #00ffe7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Articles récents */
.latest-posts {
  list-style: none;
  padding: 0;
  margin: 0;
  color:#000;
}

.latest-post-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.latest-post-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  margin-right: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #222;
}

.latest-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.latest-post-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #000;
  line-height: 1.3;
  transition: color 0.3s;
}

.latest-post-item a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.latest-post-item a:hover .latest-post-title {
  color: #00ffe7;
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
  .single-container {
    flex-direction: column;
  }

  .sidebar-right {
    position: static;
    margin-top: 40px;
  }
}

/* =========================
   Catégories & Archive
   ========================= */

.archive-header {
  margin-bottom: 30px;
}

.archive-title {
  font-size: 2rem;
  color: #000;
  font-weight: bold;
  margin-bottom: 10px;
}

.archive-description {
  color: #aaa;
  font-size: 1rem;
  max-width: 600px;
}

.archive-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.cat-article-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cat-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 255, 231, 0.1);
}

.cat-article-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.cat-article-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #111;
}

.cat-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-article-content {
  padding: 15px 18px;
}

.cat-article-title {
  font-size: 1.2rem;
  color: var(--heading-color) !important;
  font-weight: bold;
  margin: 0 0 10px;
}

.cat-article-excerpt {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
}

/* =========================
   Conteneur Global & Pages
   ========================= */

.page-template,
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #000;
  background-color: #fff;
  font-family: 'Inter', sans-serif;
  line-height: 1.8;
}

.page-template h1,
.page h1 {
  font-size: 2.2rem;
  color: var(--heading-color) !important;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

/* Liens dans le contenu */
body.dark-mode .page-template a,
.page a {
  color: #ffaa00;
  text-decoration: none;
}

body.dark-mode .page-template a,
.page h2, h3 {
  color: var(--heading-color) !important;
}

body.dark-mode .page-template a:hover,
.page a:hover {
  color: var(--heading-color) !important;
}

.page-template a,
.page a {
  color: var(--heading-color) !important;
  text-decoration: none;
}

.page-template a:hover,
.page a:hover {
  color: var(--heading-color) !important;
}

/* Listes et paragraphes */
.page-template p,
.page p,
.page-template li,
.page li {
  font-size: 1rem;
  color: #000;
}

/* =========================
   Formulaires (Contact)
   ========================= */

.page-template input[type="text"],
.page-template textarea,
.page input[type="text"],
.page textarea {
  width: 100%;
  max-width: 600px;
  padding: 10px;
  margin-bottom: 15px;
  background: #222;
  border: 1px solid #333;
  color: #eee;
  border-radius: 6px;
}

.page-template input[type="submit"],
.page input[type="submit"] {
  background: var(--heading-color) !important;
  color: #111;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.page-template input[type="submit"]:hover,
.page input[type="submit"]:hover {
  background: #00cca9;
}

.cntctfrm_label {
  color: var(--heading-color) !important;
}

/* =========================
   Dark Mode Styling
   ========================= */

body.dark-mode .page-template,
body.dark-mode .page {
  background-color: #000 !important;
  color: #eee !important;
}

body.dark-mode .page-template a,
body.dark-mode .page a {
  color: var(--heading-color) !important;
}

body.dark-mode input[type="text"],
body.dark-mode textarea {
  background: #111;
  border: 1px solid #222;
  color: #eee;
}

body.dark-mode input[type="submit"] {
  background: var(--heading-color) !important;
  color: #fff;
}

body.dark-mode .cntctfrm_label {
  color: var(--heading-color) !important;
}

body.dark-mode .page-template a,
body.dark-mode .page h1, h2, h3 {
  color: var(--heading-color) !important;
}

body.dark-mode .nav-arrow{
  color:#fff;
}

body.dark-mode .site-footer{
  color:#fff;
}

body.dark-mode.page p {
  color: #fff;
}

body.dark-mode.page li {
  color: #fff;
}

body.dark-mode .latest-post-title {
  color: #fff;
}

/* =========================
   Footer Links
   ========================= */

.site-footer a {
  color: var(--heading-color) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

body.dark-mode .site-footer a {
  color: var(--heading-color) !important;
}

body.dark-mode .site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

/* =========================
   Formulaire Contact - Conteneur Principal
   ========================= */

#cntctfrm_contact_form {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
}

/* Colonnes en largeur 100% */
#cntctfrm_first_column,
#cntctfrm_submit_first_column {
  width: 100%;
  box-sizing: border-box;
}

/* Supprimer restrictions largeur */
.cntctfrm_column,
.cntctfrm_field_wrap,
.cntctfrm_input {
  max-width: 100% !important;
  width: 100% !important;
}

/* Ajustement textarea */
textarea#cntctfrm_contact_message {
  width: 100% !important;
  max-width: 100% !important;
  resize: vertical;
}

/* Bouton submit clair */
.page-template input[type="submit"],
.page input[type="submit"] {
  background: var(--heading-color) !important;
  color: #fff;
}

/* =========================
   Titres & Couleurs selon mode (clair / sombre)
   ========================= */

.single-post h1.post-title {
  color: var(--heading-color) !important;
}

aside.sidebar-right h2.sidebar-title {
  color: var(--heading-color) !important;
  border-bottom: 2px solid var(--heading-color) !important;
}

.nav-content .nav-title {
  color: var(--heading-color) !important;
}

body.dark-mode.single-post h1.post-title {
  color: var(--heading-color) !important;
}

body.dark-mode aside.sidebar-right > h2.sidebar-title {
  color: var(--heading-color) !important;
  border-bottom: 2px solid var(--heading-color) !important;
}

body.dark-mode .nav-content .nav-title {
  color: var(--heading-color) !important;
}

/* =========================
   Variables CSS pour gestion couleurs dynamiques
   ========================= */

:root {
  --heading-color: #492fb1; /* Couleur par défaut (mode clair) */
}

/* Override variables en mode sombre */
body.dark-mode {
  --heading-color: #00f3ff;
}

/* Appliquer la variable */
.post-content h1,
.post-content h2,
.post-content h3 {
  color: var(--heading-color) !important;
}

.latest-post-item a:hover .latest-post-title {
  color: var(--heading-color) !important;
}

.site-title a {
  color: var(--heading-color) !important;
  text-decoration: none;
}

.post-content{
  color:#000 !important;
}

/* =========================
   Alerte success
   ========================= */
.ias-noneleft {
    display: none !important;
}

/* =======================
   Variables globales
   ======================= */
:root {
  --bg: #0b0b0d;
  --card-bg: #111;
  --text: #e6eef6;
  --muted: #9aa6b2;
  --heading-color: #492fb1; /* accent par défaut */
  --accent-cyan: #00ffe1;
  --container-max: 1100px;
  --radius: 10px;
  --transition: 200ms ease;
  --bg-clair : #111111;
  --bg-footer-clair:#000000;
  --bg-search-bar-op:#000000;
}
body.dark-mode { --heading-color: #00f3ff; }

/* === Header / ligne principale === */
.site-header{
  background: var(--bg-clair);
  color: var(--text);
  position: sticky; top: 0; z-index: 999;
  /*box-shadow: 0 2px 6px rgba(0,0,0,.6);*/
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-header .site-header-inner{
  /*max-width: var(--container-max);*/
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand */
.brand .site-title{
  font-family: 'Orbitron', Inter, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--heading-color);
  text-decoration: none;
  display: inline-flex; align-items: center;
}

/* NAV commun */
.primary-nav .menu-2025,
.navbar-nav.menu-2025{
  display: flex; align-items: center; gap: 20px;
  list-style: none; margin: 0; padding: 0;
  flex-wrap: wrap; /* wrap propre si manque de place */
}
.menu-2025 li{ display: inline-block; }
.menu-2025 li a{
  font-family: 'Orbitron', sans-serif;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
/* Empêche toute coupure du glow */
header.site-header,
header .container,
header .site-header-inner,
header nav,
header ul {
  overflow: visible !important;
}

/* Donne un peu plus de place pour la box-shadow au-dessus 
header .primary-nav,
header .main-menu {
  padding-top: 6px; 
}*/

/* Lien normal */
.menu-2025 li a {
  position: relative;
  border-radius: 8px;
  transition: 
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.35s ease,
    transform 0.25s ease;
}

/* Hover glow fluide */
.menu-2025 li a:hover,
.menu-2025 .current-menu-item > a {
  background: rgba(255,255,255,0.06);
  color: var(--heading-color);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(0,255,255,0.8),
              0 0 25px rgba(0,255,255,0.4);
  z-index: 5;
}

/* Permet à l'ombre de ne pas être coupée */
.menu-2025 li {
  overflow: visible; /* shadow visible */
  position: relative;
}

/* Contrôles à droite (réseaux côte à côte, boutons) */
.header-controls{ display:flex; gap:12px; align-items:center; }
.header-controls .social-links{ display:flex; gap:10px; align-items:center; }
.header-controls .social-links a{
  text-decoration:none; font-size:1.1rem; line-height:1;
  color: var(--accent-cyan);
}
.header-controls .search-toggle,
.header-controls .dark-toggle{
  /*background:none; border:2px solid var(--accent-cyan);*/
  color:var(--accent-cyan);
  padding:6px 10px; border-radius:8px; cursor:pointer;
}

/* Formulaire de recherche déroulant */

/* =========================
   Barre de recherche unifiée
   ========================= */

/* Conteneur */
.header-search-wrapper {
  position: relative;
}

/* Bouton loupe */
.search-toggle {
  background: none !important;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: none !important;
}

.search-toggle:hover,
.search-toggle:focus,
.search-toggle:active {
  background: none !important;
  color: var(--accent-cyan) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Conteneur animé du formulaire */
.header-search-form-container {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

/* Ouvert */
.header-search-form-container.open {
  max-height: 80px; /* hauteur suffisante */
}

/* Formulaire */
.header-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  padding: 8px;
  border-bottom: 2px solid var(--heading-color);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Formulaire ouvert */
.header-search-form-container.open .header-search-form {
  transform: translateY(0);
  opacity: 1;
}

/* Champ input */
.header-search-form input[type="search"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.2);
  background: #fff;
  color: #000;
  font-size: 15px;
}

/* Placeholder */
.header-search-form input[type="search"]::placeholder {
  color: #666;
}

/* Mode sombre */
body.dark-mode .header-search-form {
  background: #111;
  border-color: var(--heading-color);
}

body.dark-mode .header-search-form input[type="search"] {
  background: #222;
  color: var(--heading-color);
  border-color: rgba(255,255,255,0.2);
}

body.dark-mode .header-search-form input[type="search"]::placeholder {
  color: rgba(0, 255, 225, 0.7);
}

/*bouton header*/
.social-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-btn {
  background: transparent;
  border: none;
  color: #fff; /* couleur par défaut */
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-links a svg,
.social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-btn:hover {
  background: rgba(255,255,255,0.1);
}

/*.social-btn.fb:hover { color: #4267B2; }
.social-btn.x:hover { color: #000; }
.social-btn.rss:hover { color: #ff6600; }
.social-btn.search-toggle:hover { color: #1e90ff; }*/

/* Hover personnalisés */
.social-btn.x:hover,
.social-links a[aria-label="X"]:hover { background: #000; }

.social-btn.fb:hover,
.social-links a[aria-label="Facebook"]:hover { background: #4267B2; }

.social-btn.rss:hover,
.social-links a[aria-label="RSS"]:hover { background: #ff6600; }

/*.social-btn.search-toggle:hover { background: #1e90ff; }

.social-btn.dark-toggle:hover { background: #ffd700; color: #000; }*/

.social-links {
  display: flex;
  gap: 10px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--text-color);
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
  cursor:pointer;
}
/*.social-links a:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-3px);
}*/
/* Hover générique */
.social-links a:hover,
.social-btn:hover {
  transform: translateY(-3px);
  color: #fff;
}

/* Accueil : menu sous la ligne principale */
.main-menu{
  /*border-top: 1px solid rgba(255,255,255,0.06);*/
  background: var(--bg);
}
.main-menu .container{
  max-width: var(--container-max);
  margin: 0 auto; padding: 10px 20px;
}
.main-menu .menu-2025{ justify-content: center; }

/* Effet "shrink" au scroll (pages internes) */
.site-header.shrunk .site-header-inner{ padding: 6px 20px; }
.site-header.shrunk .brand .site-title{ font-size: 1.3rem; }
.site-header.shrunk .menu-2025{ gap: 14px; }
.site-header.shrunk .menu-2025 li a{ padding: 6px 10px; }

body.dark-mode .site-header-inner{
  background: var(--bg-clair);
}

.site-header-inner{
  background: var(--bg-search-bar-op);
  border-bottom: 2px solid var(--heading-color);
  transition: transform 0.3s ease;
}

/* Mobile */
@media (max-width: 900px){
  /* Sur mobiles, on autorise le wrap propre de la ligne */
  .site-header .site-header-inner{ flex-wrap: wrap; gap: 10px; }
  /* Accueil : le menu dessous reste lisible */
  .main-menu .menu-2025{ gap: 14px; overflow-x: auto; }
  /* Pages internes : le menu reste sur la ligne mais peut wrap */
  .primary-nav .menu-2025{ gap: 14px; }
}

/* --- Effet carte globale (sauf page article) --- */
.search-result-item,
.archive article,
.related-post,
.card-article {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1rem;
  transition: box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Hover identique à l'accueil */
.search-result-item:hover,
.archive article:hover,
.related-post:hover,
.card-article:hover {
  box-shadow: 0 0 20px var(--heading-color) !important;
  transform: translateY(-4px);
}

/* Images arrondies partout */
.search-result-item img,
.archive article img,
.related-post img,
.card-article img {
  width: 100%;
  border-radius: 8px;
}

/* Pas de style "carte" en page single */
.single-post article {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Barre de recherche insérée sous le header */

body.dark-mode .search-bar-drop, body.dark-mode .search-bar-drop.open {
  background: var(--card-bg, #111);
  border-bottom: 2px solid var(--heading-color);
}
body.dark-mode .search-bar-drop input[type="search"] {
  background: #222;
  color: var(--heading-color);
  border-color: rgba(255,255,255,0.2);
}

/* Animation slide */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Champ de recherche centré et stylé */
/* Conteneur déroulant de la recherche */
.search-bar-drop {
   overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height 0.35s ease, opacity 0.25s ease;
  background: var(--card-bg);
  border-bottom: 2px solid var(--heading-color);
  padding: 0; /* le padding se met en open */
}

/* Quand ouvert */
.search-bar-drop.open {
  opacity: 1;
  padding: 12px;
  background: var(--bg-search-bar-op);
}

/* Centrage du formulaire */
.search-bar-drop form.search-form {
  display: flex;
  justify-content: center;
/*  width: 100% !important; */
}

/* Le label prend toute la largeur et gère la mise en page */
.search-bar-drop form.search-form label {
  display: block !important;
  align-items: center;
  width: 100% !important;
}

/* Input avec largeur 66.666% */
.search-bar-drop form.search-form input[type="text"].form-control {
  display: block;
  margin: 0 auto;              /* centre horizontalement */
  width: 66.666667% !important;
  max-width: 700px;            /* limite sur grands écrans */
  min-width: 280px;            /* sur mobiles */
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text-color) !important;
  font-size: 1rem !important;
  text-align: center !important; /* texte et placeholder au centre */
}

/* Placeholder adaptatif */
.search-bar-drop input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.6); /* pour dark mode */
}

body.light-mode .search-bar-drop input[type="text"]::placeholder {
  color: rgba(0, 0, 0, 0.6); /* pour light mode */
}

/* Supprimer la loupe/bouton WP */
.search-bar-drop input[type="submit"],
.search-bar-drop button {
  display: none !important;
}

/* Animation underline focus */
.search-bar-drop input[type="search"].form-control {
  border-bottom: 2px solid var(--heading-color);
}

.search-bar-drop input[type="search"].form-control:focus {
  border-color: var(--accent-color, #ff6600);
  box-shadow: 0 2px 0 var(--accent-color, #ff6600);
}

.search-bar-drop input[type="text"]:focus {
  outline: none !important; /* supprime le contour par défaut */
  box-shadow: none !important; /* supprime le halo bleu de certains navigateurs */
}

.search-bar-drop input[type="text"] {
  width: 66.666667% !important; /* largeur relative */
  min-width: 300px; /* pour ne pas être trop petit sur mobile */
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text-color); /* adaptatif dark/light mode */
  white-space: nowrap; /* pas de retour à la ligne */
  overflow: hidden; /* cache le dépassement */
  text-overflow: ellipsis; /* … si ça dépasse */
}
.search-bar-drop input[type="text"]:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Conteneur du formulaire : autoriser l'input à grandir */
.search-bar-drop form,
.header-search-form-container form {
  display: flex;
  justify-content: center; /* centré horizontalement */
  width: 100%;
}

/* Input de recherche : largeur réelle */
.search-bar-drop input[type="text"],
.header-search-form-container input[type="text"] {
  flex: 0 0 66.666667%; /* prend exactement 2/3 de la largeur dispo */
  background-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: var(--text-color); /* s'adapte au darkmode */
}

.search-bar-drop svg.icon-search,
.search-bar-drop button.search-button {
  display: none !important;
}

#siteHeader,
#main-menu,
#site-navigation {
  margin: 0 !important;
  padding: 0 !important;
}

/* Barre de recherche pleine largeur */
.page-politique-de-confidentialite .search-bar-drop,
.page-contact .search-bar-drop,
.page-concernant .search-bar-drop {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    border-radius: 0;
}

/* Barre de recherche full-bleed sur ces pages */
.page-fullwide #searchBarDrop {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
}

/* Si #searchBarDrop est dans un .container, on le force à sortir */
.page-fullwide .search-bar-drop .container,
.page-fullwide .search-bar-drop form {
  max-width: none !important;
  width: 100% !important;
}

/* Footer full-bleed (adapte .site-footer à ton sélecteur réel) */
.page-fullwide .site-footer {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
}

/* Optionnel : enlever l’espace entre header, menu et contenu sur ces pages */
.page-fullwide .main-menu { margin-top: 0 !important; }
.page-fullwide #siteHeader { margin-bottom: 0 !important; }
.page-fullwide #site-content { margin-top: 0 !important; }

/* Layout pleine hauteur uniquement pour les pages ciblées */
/* Pour les pages spéciales */
body.page-template-contact,
body.page-template-politique-de-confidentialite,
body.page-template-concernant {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Le conteneur prend l'espace */
body.page-template-contact .fullpage-template,
body.page-template-politique-de-confidentialite .fullpage-template,
body.page-template-concernant .fullpage-template {
  flex: 1;
}

/* Footer collé en bas */
body.page-template-contact .site-footer,
body.page-template-politique-de-confidentialite .site-footer,
body.page-template-concernant .site-footer {
  margin: 0 !important;
  padding: 0 !important; /* haut / droite / bas / gauche */
}

/* 1) Réinitialisations nécessaires */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* 2) Layout "sticky footer" global */
/* Force layout en mode "colonne" uniquement sur les pages fullwide */
/* Mise en page globale */
/* Structure de base en flex pour coller le footer en bas */
body.page-fullwide {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Le contenu prend l'espace restant */
body.page-fullwide main#site-content,
body.page-fullwide .content-page {
  flex: 1;
}

/* Footer toujours collé en bas */
body.page-fullwide .site-footer {
  margin-top: auto;
  width: 100%;
}

/* 5) Optionnel : supprime tout espace externe résiduel autour du footer */
.site-footer {
  border: 0;
}

/* 6) Évite les “marges qui débordent” à la fin du contenu */
#site-content > *:last-child {
  margin-bottom: 0;
}

/* On ne touche qu'au contenu, pas au header/footer */
.content-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #fff;
  background-color: var(--bg);
  font-family: 'Inter', sans-serif;
  line-height: 1.8;
}

body.dark-mode .content-page {
  background-color: var(--bg-clair);
}

/* --- FIX 0 : ne jamais contraindre le <body> --- */
/* (idéalement supprime la règle .page-template, .page ; sinon on annule ici) */
body.page {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- FIX 1 : Header / Recherche / Menu = 100% largeur sur les pages concernées --- */
body.page-fullwide .site-header,
body.page-fullwide #searchBarDrop,
body.page-fullwide .main-menu {
  max-width: 100% !important;
  width: 100% !important;
}

/* Les .container internes du header/menu/recherche ne doivent pas recoller à 1100px */
body.page-fullwide .site-header .container,
body.page-fullwide #searchBarDrop .container,
body.page-fullwide .main-menu .container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- FIX 2 : Le contenu des pages reste centré à 1100px (et seulement lui) --- */
body.page-fullwide #site-content,
body.page-fullwide #site-content > .content-page,
body.page-fullwide .entry-content,
body.page-fullwide .content-with-sidebar {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 40px 20px !important;
}

/* Optionnel : enlève tout éventuel débordement qui créerait un faux scroll horizontal */
body.page-fullwide, 
body.page-fullwide .site-header, 
body.page-fullwide #searchBarDrop, 
body.page-fullwide .main-menu {
  overflow: visible;
}

#siteHeader { flex: 0 0 auto; }
main#site-content { flex: 1 0 auto; }
.site-footer { flex: 0 0 auto; margin-top: auto; text-align:center; padding:20px; background:var(--bg-footer-clair); color:#fff; font-size:0.9rem; }

body.dark-mode .site-footer {
  background: var(--bg-clair);
}

.site-header-inner {
  background: var(--bg-search-bar-op);
  position: relative;
}

/* Bordure mobile en pseudo-élément */
.site-header-inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--heading-color);
  transform: translateY(0);
  transition: transform 0.35s ease;
  z-index: 5;
}

/* Quand la recherche est ouverte → la bordure descend */
.site-header-inner.search-open::after {
  transform: translateY(var(--search-bar-offset, 60px));
}

/* On enlève la bordure directe de la search-bar */
.search-bar-drop {
  border-bottom: none !important;
}

/* Footer avec ligne au-dessus */
.site-footer {
  border-top: 2px solid var(--heading-color);
  position: relative;
  z-index: 1;
}

/* Barre de progression en lecture */
.article-progress {
  position: fixed;
  bottom: 0; /* toujours collée en bas de la fenêtre */
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--heading-color);
  z-index: 1001; /* au-dessus du footer */
  transition: width 0.1s linear;
}

.display-4{
  color: var(--heading-color);
}

.cmplz-cookiebanner .cmplz-title {
  color:var(--heading-color) !important;
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-description{
  color:#ffffff !important;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner{
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1rem;
  transition: box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 2px 10px var(--heading-color);
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-category-title{
  color:var(--heading-color) !important;
}

body.dark-mode .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept {
  border-color: var(--heading-color) !important;
  color: var(--heading-color) !important;
  background: var(--bg-clair) !important;
}

body.dark-mode .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover{
  background: #000 !important;
}

body.dark-mode .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny{
  border-color: var(--heading-color) !important;
  color: var(--heading-color) !important;
  background: var(--bg-clair) !important;
}

body.dark-mode .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny:hover{
  background: #000 !important;
}

body.dark-mode .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences {
  border-color: var(--heading-color) !important;
  color: var(--heading-color) !important;
  background: var(--bg-clair) !important;
}

body.dark-mode .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences:hover {
  background: #000 !important;
}

body.dark-mode .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences{
  border-color: var(--heading-color) !important;
  color: var(--heading-color) !important;
  background: var(--bg-clair) !important;
}

body.dark-mode .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences:hover{
  background: #000 !important;
}

.cmplz-cookiebanner{
  border-color:#fff !important;
}

#cmplz-message-1-optin.cmplz-message{
  color:#fff !important;
}

.cmplz-cookiebanner .cmplz-close{
  color: var(--heading-color) !important;
}

button.cmplz-blocked-content-notice.cmplz-accept-category.cmplz-accept-marketing{
  color: var(--heading-color) !important;
  background: #1a1a1a !important;
  border-radius: 12px;
  padding: 1rem;
  transition: box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 2px 10px var(--heading-color) !important;
  border: none;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept {
  border-color: var(--heading-color) !important;
  color: var(--heading-color) !important;
  background: var(--bg-clair) !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover{
  background: #000 !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny{
  border-color: var(--heading-color) !important;
  color: var(--heading-color) !important;
  background: var(--bg-clair) !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny:hover{
  background: #000 !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences {
  border-color: var(--heading-color) !important;
  color: var(--heading-color) !important;
  background: var(--bg-clair) !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences:hover {
  background: #000 !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences{
  border-color: var(--heading-color) !important;
  color: var(--heading-color) !important;
  background: var(--bg-clair) !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences:hover{
  background: #000 !important;
}

.cmplz-category-header {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1rem;
  transition: box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 2px 10px var(--heading-color) !important;
  margin-left: 2px;
  margin-bottom: 1px;
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category{
  border-radius: 12px;
  background-color: #000 !important;
}

.cmplz-icon .cmplz-open{
  color: var(--heading-color);
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-banner-checkbox .cmplz-label::after{
 background: var(--heading-color) !important;
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category 
.cmplz-banner-checkbox .cmplz-label {
  background-color: #fff !important; 
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category 
.cmplz-banner-checkbox .cmplz-label::before {
  background-color: #000 !important; 
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category 
.cmplz-banner-checkbox input[type="checkbox"]:checked + .cmplz-label {
  background-color: #000 !important;
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category 
.cmplz-banner-checkbox input[type="checkbox"]:checked + .cmplz-label::before {
  background-color: #fff !important; 
}

/* === Bouton Dark Mode vidéo === */
#themeToggle {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

#themeToggle video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
}

#themeToggle:focus {
  outline: none;
}

.post-badge{
  display:inline-block;
  margin-right:.5rem;
  padding:.15rem .5rem;
  border-radius:.45rem;
  font-size:.8rem;
  font-weight:700;
  line-height:1;
  color:#fff;
  background: var(--heading-color);
  vertical-align: middle;
}
body.dark-mode .post-badge{
  color:#000;
  background: var(--heading-color);
}

/* Liens auteur */
a.url.fn {
  color: var(--heading-color) !important;
  text-decoration: none;
}
a.url.fn:hover {
  color: #fff !important;
}

/* Lien "laisser un commentaire" */
.comments-link a,
.comment-count a,
a[href*="#respond"] {
  color: var(--heading-color) !important;
  text-decoration: none;
}
.comments-link a:hover,
.comment-count a:hover,
a[href*="#respond"]:hover {
  color: #fff !important;
}

/* =========================================================
   HAMBURGER / CLOSE : plus grands, sans contours
========================================================= */
.nav-toggle{
  display: none;
  background: transparent !important;
  border: none !important;
  padding: 4px !important;
  width: 44px; height: 44px; /* plus grand */
  border-radius: 10px;
  cursor: pointer;
  box-shadow: none !important;
}
.nav-toggle .icon-hamburger rect{ fill: var(--text-color, #f0f0f0); }
.nav-toggle:hover .icon-hamburger rect{ fill: var(--heading-color); }
.nav-toggle:focus{ outline: none; }
.nav-toggle:focus-visible{ outline: 2px solid var(--heading-color); outline-offset: 2px; }

.mobile-drawer__close{
  background: transparent !important;
  border: none !important;
  padding: 4px !important;
  width: 44px; height: 44px; /* plus grand */
  border-radius: 10px;
  cursor: pointer;
  box-shadow: none !important;
}
.mobile-drawer__close .icon-close path{ fill: var(--text-color, #f0f0f0); }
.mobile-drawer__close:hover .icon-close path{ fill: var(--heading-color); }
.mobile-drawer__close:focus{ outline: none; }
.mobile-drawer__close:focus-visible{ outline: 2px solid var(--heading-color); outline-offset: 2px; }

/* Layout header mobile (titre centré / hamburger gauche / dark+search droite) */
@media (max-width: 900px){
  .nav-toggle{ display: inline-flex; align-items:center; justify-content:center; }
  .site-header .site-header-inner{
    display: grid;
    grid-template-columns: 48px 1fr 88px;
    align-items: center;
    gap: 10px;
  }
  .brand{ grid-column: 2; justify-self: center; }
  .header-controls{ grid-column: 3; justify-self: end; }
  .header-controls .social-bar .social-btn{ display: none; }
  .header-controls .social-bar .dark-toggle,
  .header-controls .social-bar .search-toggle{ display: inline-flex; }
  header .primary-nav, header #main-menu{ display: none !important; }
}

/* =========================================================
   LIENS : hover = var(--heading-color) partout (desktop+mobile)
========================================================= */
a:hover{ color: var(--heading-color) !important; text-decoration: none; }

.navbar-nav.menu-2025 li a{
  background: none !important; border: none !important; box-shadow: none !important;
}
.navbar-nav.menu-2025 li a:hover,
.navbar-nav.menu-2025 .current-menu-item > a{ color: var(--heading-color) !important; }

.mobile-menu-list > li > a{
  background: none !important; border: none !important; box-shadow: none !important;
  color: var(--text-color, #f0f0f0) !important; padding: 6px 4px;
}
.mobile-menu-list > li > a:hover,
.mobile-menu-list > li.current-menu-item > a{ color: var(--heading-color) !important; }

/* =========================================================
   Réseaux en SVG, empilés sous le menu (texte brut)
========================================================= */
.mobile-drawer__actions{
  margin-top: 8px;
  padding: 10px 12px 16px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 10px;
}

.drawer-social{
  display: flex; align-items: center; gap: 10px;
  background: none !important; border: none !important; box-shadow: none !important;
  color: var(--text-color, #f0f0f0) !important;
  text-decoration: none; line-height: 1.3; padding: 6px 4px;
}
.drawer-social svg path{ fill: currentColor; }
.drawer-social:hover{ color: var(--heading-color) !important; }

/* (Optionnel) réduire un peu la taille des labels si tu veux très “brut” */
/* .drawer-social span{ font-size: .95rem; } */

/* =========================================================
   Drawer 80% (si pas déjà en place)
========================================================= */
.mobile-overlay{
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 1000;
}
.mobile-overlay.is-visible{ opacity: 1; pointer-events: auto; }

.mobile-drawer{
  position: fixed; top: 0; left: 0; height: 100vh; width: 80vw; max-width: 640px;
  z-index: 1001; transform-origin: left center; transform: scaleX(0);
  transition: transform .28s ease; will-change: transform; pointer-events: none;
}
.mobile-drawer.is-open{ transform: scaleX(1); pointer-events: auto; }
.mobile-drawer__inner{ height: 100%; background: var(--bg, #0b0b0d); border-right: 2px solid var(--heading-color); display: flex; flex-direction: column; }
.mobile-drawer__head{ display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 14px 14px 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-drawer__title{ font-family: 'Orbitron', Inter, sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--heading-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-drawer__nav{ padding: 10px 12px 6px 12px; overflow: auto; }
.mobile-menu-list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

/* HEADER MOBILE : burger gauche, Titre parfaitement centré, actions à droite */
@media (max-width: 900px){
  .site-header .site-header-inner{
    display: grid;
    grid-template-columns: 48px 1fr 88px; /* burger | titre | actions */
    align-items: center;
    gap: 10px;
  }
  .nav-toggle{ grid-column: 1; justify-self: start; }

  .brand{ 
    grid-column: 2; 
    justify-self: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-width: 0; /* autorise l'ellipsis */
  }
  .brand .site-title{
    display: block;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* évite que ça pousse le layout */
    max-width: 100%;
  }

  .header-controls{ grid-column: 3; justify-self: end; }
}

/* iPad Pro 11" : 3 items centrés */
@media (min-width: 768px) and (max-width: 900px){
  .articles-slider{
    justify-content: center !important; 
    gap: 15px !important;
  }
  /* n'afficher que les 3 premiers */
  .articles-slider .article{ display: none !important; }
  .articles-slider .article:nth-child(-n+3){ display: block !important; }

  /* largeur adaptée si besoin */
  .articles-slider .article{
    width: 28vw; max-width: 280px; min-width: 200px; height: auto;
    aspect-ratio: 220 / 375; /* garde la proportion d'origine */
  }
  .articles-slider .article img{ height: 100%; object-fit: cover; }
}

/* iPhone & petits mobiles : on enlève le slider */
@media (max-width: 480px){
  .articles-slider{ display: none !important; }

  .brand .site-title{
    font-size: 1rem;          /* réduit la taille du texte */
    max-width: 60vw;          /* ne prend jamais toute la largeur */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;  /* si trop long, coupe avec … */
  }

  .pagination{ margin: 2.5rem auto 2rem; }
  .pagination ul{
    gap: 6px;
    flex-wrap: wrap;         /* permet de revenir à la ligne */
    justify-content: center; 
    max-width: 100%;
  }
  .pagination a,
  .pagination .current{
    font-size: .85rem;       /* plus petit */
    padding: .4rem .6rem;    /* moins de padding */
    border-radius: 10px;
  }
  /* évite que certains numéros trop longs cassent la mise en page */
  .pagination li{ min-width: 0; }
  .pagination a{ white-space: nowrap; }

  #themeToggle.video-disabled video{ display:none!important; }

  /* Soleil (mode clair) */
  #themeToggle.video-disabled::before{
    content:"";
    display:block;
    width:24px; height:24px;
    background:currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 4.5a1 1 0 0 1-1-1V1a1 1 0 1 1 2 0v2.5a1 1 0 0 1-1 1zM12 22.5a1 1 0 0 1-1-1V19a1 1 0 0 1 2 0v2.5a1 1 0 0 1-1 1zM4.22 5.64a1 1 0 0 1 0-1.41L5.64 2.8a1 1 0 1 1 1.41 1.41L5.64 5.64a1 1 0 0 1-1.42 0zM18.36 19.78a1 1 0 0 1 0-1.42l1.42-1.42a1 1 0 0 1 1.41 1.42l-1.42 1.42a1 1 0 0 1-1.41 0zM1 13a1 1 0 1 1 0-2h2.5a1 1 0 0 1 0 2H1zm19.5 0a1 1 0 1 1 0-2H23a1 1 0 0 1 0 2h-2.5zM4.22 18.36a1 1 0 0 1 1.42 0l1.42 1.42a1 1 0 1 1-1.42 1.41L4.22 19.8a1 1 0 0 1 0-1.41zM19.78 4.22a1 1 0 0 1 1.42 0l1.42 1.42a1 1 0 0 1-1.42 1.41L19.78 5.64a1 1 0 0 1 0-1.42zM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10z'/>\
</svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M12 4.5a1 1 0 0 1-1-1V1a1 1 0 1 1 2 0v2.5a1 1 0 0 1-1 1zM12 22.5a1 1 0 0 1-1-1V19a1 1 0 0 1 2 0v2.5a1 1 0 0 1-1 1zM4.22 5.64a1 1 0 0 1 0-1.41L5.64 2.8a1 1 0 1 1 1.41 1.41L5.64 5.64a1 1 0 0 1-1.42 0zM18.36 19.78a1 1 0 0 1 0-1.42l1.42-1.42a1 1 0 0 1 1.41 1.42l-1.42 1.42a1 1 0 0 1-1.41 0zM1 13a1 1 0 1 1 0-2h2.5a1 1 0 0 1 0 2H1zm19.5 0a1 1 0 1 1 0-2H23a1 1 0 0 1 0 2h-2.5zM4.22 18.36a1 1 0 0 1 1.42 0l1.42 1.42a1 1 0 1 1-1.42 1.41L4.22 19.8a1 1 0 0 1 0-1.41zM19.78 4.22a1 1 0 0 1 1.42 0l1.42 1.42a1 1 0 0 1-1.42 1.41L19.78 5.64a1 1 0 0 1 0-1.42zM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10z'/>\
</svg>") center / contain no-repeat;
    color: var(--text-color,#f0f0f0);
  }

  /* Lune (mode sombre) */
  body.dark-mode #themeToggle.video-disabled::before{
    -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M21.64 13a1 1 0 0 0-1.05-.14A8 8 0 1 1 11.14 3.41a1 1 0 0 0-.14-1.05A1 1 0 0 0 9.91 2 10 10 0 1 0 22 14.09a1 1 0 0 0-.36-1.09z'/>\
</svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M21.64 13a1 1 0 0 0-1.05-.14A8 8 0 1 1 11.14 3.41a1 1 0 0 0-.14-1.05A1 1 0 0 0 9.91 2 10 10 0 1 0 22 14.09a1 1 0 0 0-.36-1.09z'/>\
</svg>") center / contain no-repeat;
  }

  #themeToggle.video-disabled:hover::before{
    color: var(--heading-color);
  }
}


/* Hover universel = couleur d’accent (dark/light via --heading-color) */
a:hover{ color: var(--heading-color) !important; text-decoration: none; }

.navbar-nav.menu-2025 li a,
.mobile-menu-list > li > a,
.drawer-social{
  background: none !important; border: none !important; box-shadow: none !important;
}
.navbar-nav.menu-2025 li a:hover,
.navbar-nav.menu-2025 .current-menu-item > a,
.mobile-menu-list > li > a:hover,
.mobile-menu-list > li.current-menu-item > a,
.drawer-social:hover{
  color: var(--heading-color) !important;
}

.gc-register-btn,
.gc-comment-send-as-guest {
color: var(--heading-color) !important; /* fond du bouton */  
}

input#cntctfrm_contact_email.text{
  background-color: #222;
}

body.dark-mode input#cntctfrm_contact_email.text{
  background-color: none;
}

.site-footer p {
  color: #fff;
}  

a.page-numbers {
  color:#fff;
}

/* === Anti-overflow sur les pages article (mobile & desktop) ============= */

/* 1) Ne jamais dépasser la largeur écran */
.single .entry-content,
.single .post-content,
.single article.post {
  max-width: 100%;
  overflow-wrap: anywhere;   /* casse les URL trop longues */
  word-break: break-word;
}

/* 2) Médias responsive (images, vidéos, iframes, objets) */
.single .entry-content img,
.single .entry-content video,
.single .entry-content iframe,
.single .entry-content embed,
.single .entry-content object {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* 3) Tables & code : scroll horizontal dans le bloc, pas la page */
.single .entry-content table {
  display: block;
  overflow-x: auto;
  width: 100%;
}
.single .entry-content pre,
.single .entry-content code,
.single .entry-content kbd,
.single .entry-content samp {
  white-space: pre-wrap;
  word-break: break-word;
}

/* 4) Gutenberg — colonnes et blocs wide/full */
.single .entry-content .wp-block-columns { overflow: hidden; }
.single .entry-content .wp-block-column { min-width: 0; }

@media (max-width: 768px) {
  .single .entry-content .alignwide,
  .single .entry-content .alignfull {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* 5) GraphComment : forcer la largeur à 100% si besoin */
#graphcomment,
#graphcomment iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/* (Optionnel) béquille globale si un élément déborde encore ponctuellement */
html, body { overflow-x: hidden; }

/* le conteneur du widget côté site (pas l’intérieur) */
#graphcomment { 
  background: var(--bg);
  color: var(--text);
}
/* optionnel : plein large & sans bordure */
#graphcomment iframe { width:100%; max-width:100%; border:0; }

.gc-body.gc-theme-dark {
  background: #fff;
}

/* /category/* seulement, en mode clair */
body.category:not(.dark-mode) .navigation a,
body.category:not(.dark-mode) .navigation .page-numbers,
body.category:not(.dark-mode) .navigation .nav-links a,
body.category:not(.dark-mode) .navigation .nav-links .page-numbers,
body.category:not(.dark-mode) .navigation .nav-links .current {
  color: #fff !important;
}

/* (optionnel) survol + actif : reste blanc */
body.category:not(.dark-mode) .navigation a:hover,
body.category:not(.dark-mode) .navigation .page-numbers:hover {
  color: var(--heading-color) !important;
}

body.category:not(.dark-mode) .navigation .page-numbers.current,
body.category:not(.dark-mode) .navigation .nav-links .page-numbers.current,
body.category:not(.dark-mode) .navigation .nav-links .current {
  color: var(--heading-color) !important;
  border-color: var(--heading-color) !important;
}

p.lead{
  color: #000;
}

body.dark-mode p.lead{
  color: #fff;
}