/*
Theme Name: Ecole Saint-François
Theme URI: https://ecole-saint-francois.be
Author: Nicolas Scaut
Author URI: https://technic-consult.com
Description: Thème fidèle à la maquette avec menu coloré arrondi.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecole-saint-francois
*/

body {
  font-family: 'Baloo 2', cursive;
  margin: 0;
  padding: 0;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em;
}

.hero-header {
  background: url('hero.png') no-repeat center top;
  height: 500px;
  background-size: cover;
  text-align: center;
  color: #fff;
  padding: 1px;
}

nav.custom-menu {
  display: flex;
  justify-content: center;
  gap: 2em;
  margin-top: -3em;
  flex-wrap: wrap;
}

.custom-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 100%;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1em;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s ease-in-out;
  text-align: center;
}

.custom-menu a:hover {
  transform: scale(1.08);
}



footer {
  background: #FFD966;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
  color: #333;
}

footer a {
  color: #333 !important;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


.header_soustitre {
	font-size: 3vw;
}

.header_titre {
	font-size: 4vw;
	color: rgb(220, 20, 60);
}

.page_titre {
	font-size: 3em;
	color: rgb(220, 20, 60);
}

.actu_titre {
	color: #fbc02d;
}

.actu_bouton {
	background-color: #fbc02d;
	border: none;
}

.is-style-titre_orange { 
	color: #fbc02d;
	border-bottom: 2px solid #fbc02d;
	padding-bottom: 5px; 
}


@media (max-width: 768px) {


  .hero-header {
    height: 150px;
  }

}

/* Réinitialisation du menu sur mobile */
.navbar-nav .menu-item {
  list-style: none;
}

/* Style des boutons */
.navbar-nav .menu-item a {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column; /* Pour placer l'icône au-dessus du texte */
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  line-height: 1.1;
  padding: 6px;
  margin: 0 10px; /* Plus d'espace entre les boutons */
  color: white !important;
  transition: transform 0.3s ease;
  background-color: #0d6efd; /* couleur par défaut si pas personnalisée */
}

/* Icône */
.navbar-nav .menu-item a i {
  font-size: 2rem;
  margin-bottom: 4px;
  pointer-events: none;
}

/* Texte */
.navbar-nav .menu-item a span {
  display: block;
  font-weight: 500;
  pointer-events: none;
}

/* Hover */
.navbar-nav .menu-item a:hover {
  transform: scale(1.1);
}

/* Exemples de couleurs personnalisées */
.menu-item.btn-accueil a { background-color: #f58a4b; }
.menu-item.btn-actus a { background-color: #ff6b6e; }
.menu-item.btn-photos a  { background-color: #8bcb84; }
.menu-item.btn-menu a   { background-color: #38b6cf; }
.menu-item.btn-contact a { background-color: #7fd4ec; }

/* Mobile : centrer les boutons en colonne */
@media (max-width: 991.98px) {
  .navbar-nav {
    flex-direction: column !important;
    align-items: center;
    gap: 10px;
  }
}

/* Forcer le fond blanc du menu mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #ffffff !important;
    padding: 1rem 0;
  }

  .navbar-nav .menu-item a {
    color: #fff !important; /* Texte noir */
  }
	
	.navbar-nav .menu-item a {
    width: 60px;
    height: 60px;
    font-size: 0.65rem;
    padding: 6px;
    margin: 5px 0;
		font-size: 0.5rem;
  }
}


.custom-toggler i {
  color: #000; /* Icône noire */
  font-size: 1.8rem;
}

.custom-toggler {
  border: none;
  background: transparent;
  padding: 0.5rem;
}

@media (min-width: 992px) {
  .navbar {
    margin-top: -40px; /* Ajuste cette valeur selon l'effet souhaité */
    position: relative;
    z-index: 10;
  }

}
