/*
 * T *heme Name: Pixerecourt (fork)
 * Theme URI: https://www.pixerecourt.fr/
 * Author: Assistant
 * Description: Theme minimal pour Pixerecourt - hero image / slider sans plugin.
 * Version: 1.2 (optimisé)
 * License: GNU General Public License v2 or later
 * Text Domain: pixerecourt
 */

/* ============================================
 *  VARIABLES CSS
 *  ============================================ */
:root {
  --color-yellow: #ffd003;
  --color-green-light: #54af3a;
  --color-green-dark: #1b692f;
  --color-blue: #0073aa;
  --color-black: #222;
  --nav-bg-default: rgba(255, 208, 3, 0.53);
  --nav-bg-scrolled: rgba(84, 175, 58, 0.8);
}

/* ============================================
 *  RESET & BASE
 *  ============================================ */

html,body{ margin:0; padding:0; overflow-x: hidden; font-family:Arial,Helvetica,sans-serif; color:var(--color-black); width: 100%;}

@media (max-width: 500px) { .nojq { display: none; } }

/* ============================================
 *  HEADER: Bloc comprenant pix-hero (slide en dessous du menu), avec son overlay + nav-bar-icon-wrapper (icone outils numériques) + site-nav ( menu principal de navigation ou toggle ) 
 *  ============================================ */
.site-header {
  margin-top: 55px;
  position: relative;
}

body.admin-bar .site-header {
  margin-top: 38px !important;
}

/* ============================================
 *  Toggle hamburger mobile 
 *  ============================================ */
.site-nav-toggle { display: none; }
@media (max-width: 500px) {
    .site-nav-toggle {
        font-size: 20px;
        display: block;
        cursor: pointer;
        color: #fff;
        line-height: 1;
        user-select: none;
        position: fixed; 
        left: 1px; 
        top: 10px; 
        z-index: 201;
    }
}


/* ============================================
 *  LOGOS DE NAVIGATION
 *  ============================================ */

/* Lien visible uniquement sur desktop */
.logo-gauche {
  display: block;
  position: absolute;
  top: 2px;
  left: 40px;
  background: transparent;
  z-index: 9999 !important;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
}
.logo-gauche img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); */
  position: relative;
  width: 100px;
}
.logo-gauche:hover {
  transform: scale(1.1);
}
@media (max-width: 500px) { .logo-gauche {display: none;} }

/* Lien visible uniquement sur mobile */
.logo-droite { display: none; }

@media (max-width: 500px) { 
    .logo-droite {
      display: block !important;
      position: fixed !important;
      top: 2px !important;
      right: -1px !important;
      background: transparent;
      z-index: 9999 !important;
      transition: opacity 0.3s ease, transform 0.3s ease;
      opacity: 1;
    }
    .logo-droite img {
      width: 80px;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    /* Masquer le lien mobile lors du scroll */
    .logo-droite.scrolled {
      opacity: 0.7;
/*           pointer-events: none; /* Empêche les clics quand invisible */ */
    }
    .logo-droite:hover {
      transform: scale(1.1);
    }
}

/* ============================================
 *  NAVIGATION PRINCIPALE
 *  ============================================ */
.site-nav {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: 200;
  display: flex;
  justify-content: center; /* Menu centré */
  align-items: center;
  z-index: 200;
  padding: 15px 20px;
  background-color: var(--nav-bg-default);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-nav.scrolled {
  background-color: var(--nav-bg-scrolled);
  backdrop-filter: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  height: 40px;
  align-items: flex-start;
}

.site-nav ul li {
  position: relative;
}

.site-nav ul a {
  color: #000;
  text-decoration: none;
 /* padding: 5px;*/
  padding: 30px 5px 5px 5px;
  display: block;
  font-weight: 500;
  font-size: 1.3em;
}

@media (max-width: 1600px) { .site-nav ul a {font-size: 1.2em;} }
@media (max-width: 1500px) { .site-nav ul a {font-size: 1.1em;} }
@media (max-width: 1400px) { .site-nav ul a {font-size: 1em;} }
@media (max-width: 1200px) { .site-nav ul a {font-size: 1em;} .site-nav { padding: 15px 2px; } }
@media (max-width: 1060px) { .site-nav ul a {font-size: 1em;} }
@media (max-width: 990px) { .site-nav ul a {font-size: 0.9em;} .site-nav ul { gap: 3px; } }
@media (max-width: 870px) { .site-nav ul a {font-size: 0.8em;} .site-nav ul { gap: 1px; } }
@media (max-width: 750px) { .site-nav ul a {font-size: 0.65em;} .site-nav ul { gap: 0px; } }
@media (max-width: 600px) { .site-nav ul a {font-size: 0.61em;} .site-nav { padding: 15px 0px; } }
@media (max-width: 550px) { .site-nav ul a {font-size: 0.55em;} }

.site-nav.scrolled ul a {
  color: #000;
}

.site-nav ul a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Sous-menus desktop - Niveau 2 */
.site-nav ul ul {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff !important;
  min-width: 220px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 99;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 4px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: visible !important;
  height: auto !important;
}

.site-nav ul ul li {
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  list-style: none !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.site-nav ul ul a {
  padding: 10px 20px !important;
  font-size: 0.9em !important;
  color: #000 !important;
  background: #fff !important;
  width: 100% !important;
  text-align: left !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}


/* Sous-menus desktop - Niveau 3 */
.site-nav ul ul ul {
  position: absolute;
  top: 0;
  left: 100%;
  transform: translateX(0) translateY(0);
  background: #f8f9fa !important;
  min-width: 220px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 4px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: visible !important;
  height: auto !important;
}
/* Items de niveau 3 avec fond différent */
.site-nav ul ul ul li {
  background: #f8f9fa !important;
}

/* Liens de niveau 3 */
.site-nav ul ul ul a {
  background: #f8f9fa !important;
  padding: 10px 20px !important;
}

.site-nav ul ul a:hover {
  background: var(--color-blue) !important;
  color: #fff !important;
}

/* Affichage des sous-menus au survol */
.site-nav li:hover > ul {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Affichage du niveau 3 au survol du niveau 2 */
.site-nav ul ul li:hover > ul {
  opacity: 1;
  transform: translateX(0) translateY(0);
  pointer-events: auto;
}

@media (max-width: 500px) {
    /* Navigation mobile */
  .site-nav {
    justify-content: flex-start;
    height: 20px;
    font-size: 20px;
  }
  .site-nav.scrolled {
    width: 15px;
    padding: 0px 0px;
    height: 50px;
  }
  .site-nav ul {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 0;
    left: 15px;
    width: calc(100vw - 60px);
    max-width: 280px;
    border-radius: 4px;
    padding: 10px;
    gap: 0;
    height: auto;
  }
  .site-nav ul.show {
    display: flex;
    animation: fadeIn 1.3s ease;
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .site-nav ul a {
    color: #fff !important;
    font-size: 0.8em !important;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
  }
  /* Affichage du niveau 2 quand niveau 1 est ouvert */
  .site-nav ul li.submenu-open ul {
    display: flex !important;
    max-height: 2000px;
  }
  /* Sous-menus mobile - Niveau 2 */
  .site-nav ul ul {
    position: static !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    padding: 0 !important;
    margin: 5px 0 !important;
    display: none !important;
    min-width: auto !important;
    width: 100% !important;
    border-radius: 0 !important;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  /* Affichage du niveau 3 quand niveau 2 est ouvert */
  .site-nav ul ul li.submenu-open > ul {
    display: flex !important;
    max-height: 1000px !important;
  }
  .site-nav ul ul li {
    width: 100% !important;
    background: transparent !important;
  }
  /* Liens de niveau 2 */
  .site-nav ul ul a {
    font-size: 0.95em !important;
    color: #fff !important;
    background: transparent !important;
    padding: 8px 15px 8px 30px !important;
    line-height: 1.3 !important;
  }
  .site-nav ul ul a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
  }

  /* Rotation de la flèche sur mobile quand le sous-menu est ouvert */
  .site-nav ul ul li.submenu-open > a .submenu-arrow {
    transform: rotate(180deg);
  }
  /* Sous-menus mobile - Niveau 3 - toujours caché par défaut */
  .site-nav ul ul ul {
    position: static !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-left: 3px solid rgba(255, 255, 255, 0.4) !important;
    margin: 5px 0 5px 15px !important;
    padding-left: 0 !important;
    display: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
  }
  /* Items de niveau 3 - s'assurer qu'ils n'ont pas de fond blanc */
  .site-nav ul ul ul li {
    width: 100% !important;
    background: transparent !important;
  }
  /* Liens de niveau 3 */
  .site-nav ul ul ul a {
    font-size: 0.9em !important;
    padding: 8px 15px 8px 30px !important;
    color: #fff !important;
    background: transparent !important;
  }
}

/* Flèches indicatrices sous-menus */
.submenu-arrow {
  display: inline-block;
  margin-left: 5px;
  font-size: 0.7em;
  transition: transform 0.3s ease;
}

.submenu-open > a .submenu-arrow {
  transform: rotate(180deg);
}

/* Flèche pour les items de niveau 2 ayant des sous-menus (niveau 3) */
.site-nav ul ul li.menu-item-has-children > a .submenu-arrow {
  transition: transform 0.3s ease;
}

/* Rotation de la flèche au survol (desktop uniquement) */
@media (min-width: 501px) {
  .site-nav ul ul li.menu-item-has-children:hover > a .submenu-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 500px) { 
    .submenu-arrow {
      margin-left: auto;
      padding-left: 10px;
      flex-shrink: 0;
    }
}

/* ============================================
 *  NAVBAR ICONS - Menu d'icônes à droite
 *  ============================================ */

/* Conteneur global (wrapper) pour titre + icônes */
.navbar-icons-wrapper {
  position: absolute;
  top: -61px;
  right: 4px;
  z-index: 201;
  background: linear-gradient(135deg, rgba(84, 175, 58, 0.12) 0%, rgba(27, 105, 47, 0.15) 100%); 
  
  /* Bordure subtile */
  border: 1.5px solid rgba(27, 105, 47, 0.25);
  border-radius: 10px;
  
  /* Effet 3D avec ombre portée */
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),           /* Ombre principale */
    0 1px 3px rgba(0, 0, 0, 0.08),          /* Ombre secondaire */
    inset 0 1px 0 rgba(255, 255, 255, 0.4); /* Reflet intérieur (effet 3D) */
  
  /* Padding pour créer de l'espace intérieur */
  padding: 3px;
  
  /* Transition pour le changement de position */
  transition: all 0.3s ease;
}

/* Titre "Outils numériques" */
.navbar-icons-title {
  position: relative;
  top: -3px;
  padding: 2px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1b692f;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 5px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-icons-area {
  position: relative;
}

.navbar-icons-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex !important;
  gap: 6px;
  flex-wrap: wrap; /* Permet le retour à la ligne si trop d'icônes */
}

/* Style pour les liens/icônes */
.navbar-icons-menu a {
  display: flex !important;
  flex-direction: column; /* ⭐ Image au-dessus, texte en dessous */
  align-items: center;
  justify-content: center;
  gap: 0px;
  color: #1b692f !important;
  text-decoration: none;
  padding: 1px;
  transition: all 0.3s ease;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.4);
  min-width: 40px;
  min-height: 40px;
  font-size: 10px !important; /* ⭐ Petit mais lisible */
  font-weight: 1000;
  line-height: 1;
  text-align: center;
}

.navbar-icons-menu a:hover {
  background: rgba(27, 105, 47, 0.25);
  transform: scale(1.08);
  color: #54af3a !important;
}

/* Style pour les images dans le menu icônes */
.navbar-icons-menu img {
  width: 28px !important;
  height: 28px !important;
}

@media (max-width: 1500px) {
  .navbar-icons-title { font-size: 10px; padding: 3px 10px; }
  .navbar-icons-menu { gap: 2px; }
  .navbar-icons-menu a { font-size: 9px; min-width: 32px; min-height: 32px; }
  .navbar-icons-menu img { width: 26px !important; height: 26px !important; }
}
@media (max-width: 1260px) {
  .navbar-icons-title { font-size: 9px; }
  .navbar-icons-menu { gap: 2px;}
  .navbar-icons-menu a { font-size: 7px; min-width: 25px; }
  .navbar-icons-menu img { width: 25px !important; height: 25px !important; }
}
/* Écrans moyens : Passage de la barre d'icône au dessus du texte */
@media (max-width: 1060px) {
  .navbar-icons-wrapper { right: 3px; }
  .navbar-icons-title { top: 6px; right: 3px; left: 2px; width: 40px; position: absolute; font-size: 8px; }
  .navbar-icons-area { top: -2px; position: relative; margin-left: 60px; }
  .navbar-icons-menu { gap: 1px; top: 2px; right: auto; position: relative; }
  .navbar-icons-menu ul{ left: 5px; }
}
@media (max-width: 500px) {
  .navbar-icons-wrapper { width: fit-content; left: 20px;}
  .navbar-icons-title { width: 55px; padding: 0px; font-size: 7px; }
  .navbar-icons-menu img { width: 18px !important; height: 18px !important; }
}

/* ============================================
 *  HERO SLIDER
 *  ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: var(--hero-height, 380px); /* Utiliser la hauteur définie par JS */
  background-size: contain; /* Changé de contain à cover pour mieux s'adapter */
  background-repeat: no-repeat;
  background-position: center;
  background-color: #FFF;
  overflow: hidden; /* Pour éviter que les images dépassent */
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.8s ease;
  opacity: 0;
}

.hero-slide.is-visible {
  opacity: 1;
}

@media (max-width: 1200px) { .hero-slider { height: 300px; } }
@media (max-width: 870px) { .hero-slider { height: 200px; } }
@media (max-width: 750px) { .hero-slider { height: 150px; } }
@media (max-width: 600px) { .hero-slider { height: 120px; } }
@media (max-width: 550px) { .hero-slider { height: 100px; } }
@media (max-width: 500px) { .hero-slider { height: 80px; } }


/* ============================================
 *  FIL D'ARIANE (BREADCRUMB)
 *  ============================================ */
.breadcrumb-nav {
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
  font-size: 0.9em;
}
.breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: #666;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: #999;
  font-weight: bold;
}
.breadcrumb a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: var(--color-green-light);
  text-decoration: underline;
}
.breadcrumb li.active {
  color: #333;
  font-weight: 500;
}


/* ============================================
 *  CONTENU PAGES
 *  ============================================ */

.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.main-content h1 {
  display: none;
}
.main-content h2 {
  text-align: center;
  border-top: 3px solid var(--color-green-dark);
  padding-top: 15px;
  margin-top: 30px;
}
.main-content h2 a{
  text-decoration: none;
}
.main-content h6 {
  text-align: center;
  color: var(--color-green-dark);
  font-size: 1.1em;
  font-style: italic;
}

.main-content p {
  text-align: justify;
  font-size: 1.1em;
}

@media (max-width: 500px) {
      .main-content h2 { font-size: 0.9em; padding-top: 5px; margin-top: 10px; }
      .main-content h6 { font-size: 0.8em; }
      .main-content p { font-size: 0.7em; }
}

/* ============================================
 *  ENTETE DES ARTICLE DANS LES PAGES
 *  ============================================ */
.wp-block-latest-posts__post-title {
  text-align: left;
  text-decoration: none;
  font-size: 1.2em !important;
  font-weight: bold;
}

.wp-block-latest-posts__post-excerpt a {
  font-size: 1em !important;
  font-weight: bold;
  text-align: center;
  color: var(--color-green-dark) !important;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  padding: 0px 10px;
  box-sizing: border-box;
  background-color: #FFF;
  vertical-align: middle;
  line-height: 50px;
  min-height: 50px;
  font-size: 1.25rem;
  position: relative;
  border: 3px solid var(--color-yellow) !important;
  border-radius: 28px;
  overflow: hidden;
  -webkit-transition: color .4s, background .2s;
  transition: color .4s, background .2s;
  z-index: 1;
  box-sizing: border-box;
  transition: color .4s, background .2s;
}

.wp-block-latest-posts__featured-image {
  width: 30%;
  text-align: center;
}

.wp-block-latest-posts__featured-image img {
  overflow: hidden !important;
  width: 50%;
}

.wp-block-latest-posts__post-excerpt a:hover {
  background-color:  var(--color-yellow);
}

/* ============================================
 *  CONTENU ARTICLES
 *  ============================================ */

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

.article-featured-image {
  display: inline-block;
  vertical-align: middle;
  width: 15%;
  text-align: center;
  margin-top: 20px;
}

.article-featured-image img {
  width: 200px;
  height: auto;
}

.article-title {
  text-decoration: none;
  font-size: 1.5em !important;
  font-weight: bold;
  text-align: center;
  width: 70%;
  display: inline-flex;
  min-height: 100px;
}

.article-date {
  text-align: left;
  color: #666;
  font-size: 1.3em;
  font-style: italic;
  margin: 0 0 20px; /* Pas de marge en haut, marge en bas */
  width: 100%; /* Pour que ça prenne toute la largeur */
  clear: both; /* Force un retour à la ligne */
}

.article-content {
  text-decoration: none;
  font-size: 1.1em !important;
  text-align: justify;
  width: 100%;
  border-top: 3px solid var(--color-green-dark);
}

/* ============================================
 *  GRILLE ARTICLES ACCUEIL
 *  ============================================ */
.home .posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
  padding: 0;
}

.home .posts-list article {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home .posts-list article:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.home .posts-list .post-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.home .posts-list .post-title a {
  text-align: left;
  text-decoration: none !important;
  font-size: 1em !important;
  font-weight: bold;
  color: var(--color-green-dark);
  margin: 12px 16px 8px;
}

.home .posts-list .post-excerpt {
  font-size: 0.95rem;
  margin: 0 16px 16px;
  color: #555;
  flex-grow: 1;
}

.home .posts-list .read-more {
  margin: 0 16px 16px;
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 500;
}

.home .posts-list .read-more:hover {
  text-decoration: underline;
}

/* ============================================
 *  IMAGES PAGES INTERNES
 *  ============================================ */
.wp-block-columns img {
  width: 60%;
}

/* Galeries WordPress - cadres de taille fixe uniforme */
.wp-block-gallery,
.wp-block-gallery.has-nested-images {
  align-items: stretch !important;
  gap: 16px !important;
}

.wp-block-gallery figure,
.wp-block-gallery figure.wp-block-image {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.wp-block-gallery figure > div,
.wp-block-gallery figure > a,
.wp-block-gallery figure.wp-block-image > div,
.wp-block-gallery figure.wp-block-image > a {
  width: 100% !important;
  height: 400px !important;
  min-height: 400px !important;
  max-height: 400px !important;
  background: #fff;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  padding: 10px;
  box-sizing: border-box;
}

.wp-block-gallery img,
.wp-block-gallery figure.wp-block-image img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

.wp-block-gallery figcaption {
  padding: 8px 12px !important;
  line-height: 1.3 !important;
  background: var(--color-yellow) !important;
  color: #F00 !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  font-size: 1.3em !important;
}

/* ============================================
 *  DIAPO SLideshow
 *  ============================================ */
.slideshow-center {
  display: flex;
  justify-content: center;
  width: 100%;
}


/* ============================================
 *  WIDGETS PIED DE PAGE
 *  ============================================ */
.pied_de_page {
  width: 60%;
  margin-left: 20%;;
}
.pied_de_page img{
  width: 100px;
}

/* ============================================
 *  SOUS PIED DE PAGE (partie noire)
 *  ============================================ */

.sous_pied_de_page {
  background-color: #222;
}

.sous_pied_de_page .textwidget {
  color: #fff;
  margin-left: 100px;
}

.sous_pied_de_page .social-follow a {
  font-size: 1.4rem;
  margin-right: 25px;
  color: #fff;
}

.sous_pied_de_page .social-follow a:hover {
  background: #fff;
}

.sous_pied_de_page .menu-menu-principal-container a {
  text-decoration: none;
  color: #fff;
}

.sous_pied_de_page .menu-menu-principal-container a:hover {
  text-decoration: underline;
  color: var(--color-green-light);
}

/*.sous_pied_de_page .sub-menu {
  display: none;
}*/

.sous_pied_de_page a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sous_pied_de_page img {
  width: 70px;
}

.Logo_bas {
  width: 200px !important;
}

@media (max-width: 500px) { 
  .sous_pied_de_page ul ul { display: none; }
  .sous_pied_de_page .textwidget { font-size: 0.6em; }
}

/* ============================================
 *  GOOGLE MAPS - Masquer le bandeau My Maps
 *  ============================================ */
.google-map-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.google-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
/* Masquer le bandeau noir "Cette carte a été créée avec Google My Maps" */
.google-map-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: white;
  z-index: 1;
  pointer-events: none;
}

/* ============================================
 *  PAGE PLAN - Conteneur élargi
 *  ============================================ */
/* 
   WordPress ajoute automatiquement une classe .page-id-XXX au body
   Remplacez XXX par l'ID de votre page "Plan du campus"
   
   Pour trouver l'ID de votre page :
   1. Aller dans Pages > Toutes les pages
   2. Survoler le titre de la page "Plan du campus"
   3. L'ID apparaît dans l'URL : post=123 (ici l'ID est 123)
   
   Ou utilisez la classe par slug : .page-slug-plan-campus
*/

/* Option 1 : Cibler par ID de page (exemple avec ID 123) */
.page-id-3283 .main-content {
  max-width: 90%; /* Au lieu de 1100px par défaut */
  padding: 0 20px;
}

/* ============================================
 *  PUBLICATION FACEBOOK ( extension Smash Balloon Custom Facebook Feed ) 
 *  ============================================ */

.cff {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
  padding: 0;
}

.cff a {
  color: #000;
}

.cff-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cff-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}


/* Cache l'entête de la page facebook */
.cff-visual-header, .cff-has-name, .cff-media-link {
  display: none;
}



