/*
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: #999;
  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: #ccc;
  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;
}
/* Forcer fond sombre même si thème parent applique un fond blanc */
body,
body .content,
body .site-content,
body .main-content,
body .wrapper,
body .container {
  background-color: #111 !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;
}

/* --- 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: #ccc;
}
.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: #888;
  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;
}

.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: #fff;
  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: #fff;
  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: #ccc;
  line-height: 1.5;
}

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

.page-template,
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #ccc;
  background-color: #111;
  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: #ccc;
}

/* =========================
   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;
}

/* =========================
   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;
}

/* =========================
   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;
}
body.dark-mode { --heading-color: #00f3ff; }

/* === Header / ligne principale === */
.site-header{
  background: var(--bg);
  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: #ccc; /* 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; }

/* 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.4s ease, opacity 0.3s ease;
  background: var(--card-bg);
  border-bottom: 2px solid var(--heading-color);
  padding: 0;
}

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

/* 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; }
