/*
 Theme Name:   creativ-education-fse Child
 Description:  Tcreativ-education-fse Child Theme
 Template:     creativ-education-fse
 Version:      1.0.0
 License:      GNU General Public License v2 or later

 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  creativ-education-fse-child
*/
h1{color:red;}
/* === SECTION ACTIVITÉS === */
.nos-activites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* 2 par ligne sur ordi, 1 sur mobile */
  gap: 25px;
  max-width: 1100px;
  margin: 40px auto;
}
main{
	padding-bottom:0!important}

/* === Chaque carte === */
.nos-activites figure,
.nos-activites .wp-block-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  height: 320px; /* même hauteur pour toutes */
}

/* === Image === */
.nos-activites img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
  transition: all 0.4s ease;
}

/* === Effet survol (doux et individuel) === */
.nos-activites figure:hover img,
.nos-activites .wp-block-image:hover img {
  filter: brightness(85%) saturate(105%);
  transform: scale(1.03);
}

/* === Bandeau texte === */
.nos-activites figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.3s ease;
}

/* === Bandeau légèrement plus foncé au survol === */
.nos-activites figure:hover figcaption,
.nos-activites .wp-block-image:hover figcaption {
  background: rgba(0, 0, 0, 0.7);
}
/* ======== CONTENEUR DES CARTES ======== */
.liste-evenements {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 60px auto;
}

/* ======== STYLE GÉNÉRAL DES CARTES ======== */
.carte-evenement,
.carte-evenement2,
.carte-evenement3,
.carte-evenement4 {
  position: relative;
  width: calc(50% - 20px);
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* ======== IMAGE DE FOND ======== */
.carte-evenement img,
.carte-evenement2 img,
.carte-evenement3 img,
.carte-evenement4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: filter 0.4s ease, transform 0.4s ease;
}

/* ======== EFFET SURVOL ======== */
.carte-evenement:hover img,
.carte-evenement2:hover img,
.carte-evenement3:hover img,
.carte-evenement4:hover img {
  filter: brightness(1.15);
  transform: scale(1.05);
}

.carte-evenement:hover,
.carte-evenement2:hover,
.carte-evenement3:hover,
.carte-evenement4:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

/* ======== TEXTE CENTRAL (TITRE) ======== */
.carte-evenement::after,
.carte-evenement2::after,
.carte-evenement3::after,
.carte-evenement4::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  white-space: normal;
  padding: 0 10px;
}



/* ======== CONTENU PERSONNALISÉ PAR CARTE ======== */
.carte-evenement::after {
  content: "Sortie Laser game à Flins";
}
.carte-evenement::before {
  content: "1 oct. 2025";
}

.carte-evenement2::after {
  content: "Sortie aquarium de Paris";
}
.carte-evenement2::before {
  content: "5 oct. 2025";
}

.carte-evenement3::after {
  content: "Atelier manuel Halloween";
}
.carte-evenement3::before {
  content: "10 oct. 2025";
}

.carte-evenement4::after {
  content: "Soirée pizzas + jeux";
}
.carte-evenement4::before {
  content: "15 oct. 2025";
}

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
  .carte-evenement,
  .carte-evenement2,
  .carte-evenement3,
  .carte-evenement4 {
    width: 100%;
    height: 250px;
  }

  .carte-evenement::after,
  .carte-evenement2::after,
  .carte-evenement3::after,
  .carte-evenement4::after {
    font-size: 20px;
  }

  .carte-evenement::before,
  .carte-evenement2::before,
  .carte-evenement3::before,
	
  .carte-evenement4::before {
    font-size: 14px;
  }
}
/* === GRILLE DES BLOCS === */
.blocs-objectif {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

/* === POSITION DU 3E EN BAS CENTRÉ === */
.blocs-objectif > *:nth-child(3) {
  grid-column: 1 / 3; /* occupe les 2 colonnes */
  justify-self: center;
  width: 70%; /* taille réduite et centrée */
}

/* === STYLE DES BLOCS === */
.blocs-objectif .carte {
  background: #f2f2f2; /* gris plus foncé que blanc */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

/* === HOVER : légère montée + éclaircissement === */
.blocs-objectif .carte:hover {
  background: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* === RESPONSIVE (TABLETTE / MOBILE) === */
@media (max-width: 768px) {
  .blocs-objectif {
    grid-template-columns: 1fr;
  }
  .blocs-objectif > *:nth-child(3) {
    grid-column: auto;
    width: 100%;
  }
}
.filters {
  text-align: center;
  margin-bottom: 20px;
}

.filter-btn {
  background-color: #F47B3D;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 8px 20px;
  margin: 0 5px;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn:hover {
  background-color: #e36a24;
}
/* --- Boutons du filtre --- */
.boutons-filtre {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-filtre {
  background: #fff;
  border: 2px solid #000;
  color: #000;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-filtre:hover,
.btn-filtre.actif {
  background-color: #ffa64d;
  border-color: #ffa64d;
  color: #000;
}

/* --- Sections liées --- */
#toutes, #loisirs, #sorties {
  scroll-margin-top: 100px; /* espace sous le menu lors du scroll */
  padding-top: 20px;
}
/* Texte visible quand on écrit dans la case email */
#sib-container input.input,
#sib-container input.input:focus,
#sib-container input[type="email"],
#sib-container input[type="email"]:focus {
  color: #000 !important;       /* Texte noir */
  background-color: #fff !important; /* Fond blanc si besoin */
}
/* Bloc des logos partenaires */
.partenaire-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur ordinateur */
  gap: 20px; /* espace entre les logos */
  justify-items: center;
  align-items: center;
}
#wp--skip-link--target{
	padding-top: 0 !important;
}
#wp--skip-link--target{
	margin-top:-18px !important;
}
/* Ajustement des logos */
.partenaire-logos img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Version mobile */
@media (max-width: 768px) {
  .partenaire-logos {
    grid-template-columns: 1fr; /* une seule colonne sur mobile */
    gap: 30px; /* un peu plus d’espace entre les logos */
  }
}

/* Version tablette (optionnel, pour 2 colonnes sur tablettes en mode paysage) */
@media (max-width: 1024px) and (min-width: 769px) {
  .partenaire-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}
.partenaires {
  text-align: center;
  padding: 40px 0;
}

.logos {
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center; /* centre verticalement */
  flex-wrap: wrap; /* passe à la ligne si trop long */
  gap: 40px; /* espace entre les logos */
}

.logos img {
  max-width: 120px;
  height: auto;
  transition: transform 0.3s ease;
}

.logos img:hover {
  transform: scale(1.1);
}
