body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

.header{
    background-color: #fff;
    height: 100vh;
    background-size: cover;
    background-position: center;
    min-height: 100px;
}
ul {
    display: flex;
    padding: 0;
    margin: 0;
}

ul li {
    flex: 1; /* tous les onglets prennent la même largeur */
    list-style: none;
}

ul li a {
    display: block;
    text-align: center;
    padding: 15px 0;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Onglets couleurs douces */
.jaune    { background-color: #ceab5d; }
.bleu     { background-color: #7ca7b9; }
.violet   { background-color: #92542a; }
.gris     { background-color: #8b97af; }
.orange   { background-color: #78151e; }

/* Effet au survol */
ul li a:hover {
    transform: scale(1.05);
}

.jaune:hover {
    background-color: #c29953; /* un jaune plus foncé */
    color: white;
}

.bleu:hover {
    background-color: #5e8596; /* bleu plus foncé */
    color: white;
}

.violet:hover {
    background-color: #7a4423; /* violet plus foncé */
    color: white;
}

.gris:hover {
    background-color: #6e788d; /* gris plus foncé */
    color: white;
}


.orange:hover {
    background-color: #5e1018;
    color: white;
}


/* Top bar avec logo et icônes */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #fff
}

.logo {
    height: 90px;
}

.social-icons {
    display: flex;
    align-items: center;
}

.social-icons a {
    margin-left: 20px;
    color: #333;
    font-size: 35px;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pour le logo IENT */
.ient-icon {
    height: 60px;        /* Taille visuelle proche des icônes Font Awesome */
    width: auto;
    display: block;
}

h1 {
  text-align: center;
}

.gold-italic {
  font-style: italic;
  color: gold;
}


.hero-banner {
  background-image: url('vache2.jpg');
  background-size: cover;
  background-position: 50% 75%;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  overflow: hidden; /* pour contenir l’overlay */
}

/* Overlay pour améliorer la lisibilité du texte */
.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4); /* noir avec 40% d’opacité */
  z-index: 1;
}

.hero-text {
  position: relative; /* pour être au-dessus de l’overlay */
  z-index: 2;
  padding: 20px 40px;
  border-radius: 8px;
  text-align: center;
  color: white; /* changer la couleur du texte en blanc pour mieux contraster */
}

.hero-text h1 {
  font-size: 3em;
  margin-bottom: 0.2em;
}

.hero-text p {
  font-size: 1.2rem;
}

.texte p {
  font-size: 1.1em;
  line-height: 1.6;
}


/* Positionnement du parent pour sous-menu */
ul li.dropdown {
  position: relative;
}

/* Sous-menu caché par défaut */
ul li .submenu {
  display: none;
  position: absolute;
  top: 100%; /* juste en dessous du parent */
  left: 50%;
  transform: translateX(-50%); /* décalage pour vrai centrage */
  background-color: #ceab5d;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 180px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 10;
}

/* Affiche le sous-menu au survol */
ul li.dropdown:hover .submenu {
  display: block;
}

/* Style des liens du sous-menu */
ul li .submenu li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  font-weight: normal;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* Jaune : sous-menu sous "Accueil" */
li.jaune .submenu li a:hover {
  background-color: #c29953; /* jaune foncé plus vif */
  color: white;
}

/* Violet : sous-menu sous "Formations" */
li.violet .submenu li a:hover {
  background-color: #7a4423; /* violet foncé plus profond */
  color: white;
}

/* Sous-menu pour Accueil actif (jaune) */
ul li.dropdown.active.jaune .submenu {
    background-color: #ceab5d; /* jaune clair plus lumineux */
}

ul li.dropdown.active.jaune .submenu li a:hover {
    background-color: #c29953; /* jaune foncé plus vif */
    color: white;
}

/* Sous-menu pour Formations actif (violet) */
ul li.dropdown.active.violet .submenu {
    background-color: #92542a; /* violet clair légèrement différent */
}

ul li.dropdown.active.violet .submenu li a:hover {
    background-color: #7a4423; /* violet plus foncé */
    color: white;
}

/* Sous-menu pour Formations actif (bleu) */
ul li.dropdown.active.bleu .submenu {
    background-color: #7ca7b9; /* bleu clair plus doux */
}

ul li.dropdown.active.bleu .submenu li a:hover {
    background-color: #5e8596; /* bleu plus foncé amélioré */
    color: white;
}

/* Sous-menu pour Formations actif (gris) */
ul li.dropdown.active.gris .submenu {
    background-color: #8b97af; /* gris clair légèrement modifié */
}

ul li.dropdown.active.gris .submenu li a:hover {
    background-color: #6e788d; /* gris foncé un peu plus doux */
    color: white;
}


/* Ajustement style général du menu principal pour que rien ne casse */
ul {
  position: relative;
  padding: 0;
  margin: 0;
  display: flex;
}

ul li {
  list-style: none;
  flex: 1;
}

ul li a {
  display: block;
  text-align: center;
  padding: 15px 0;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, background-color 0.2s ease;
  color: white;
}


.site-footer {
  background-color: #333;
  color: white;
  padding: 40px 20px 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  text-align: left;
}

.footer-section {
  flex: 1 1 250px;
  margin: 10px;
}

.footer-section h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #f0f0f0;
}

.footer-section p {
  margin: 6px 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #555;
  padding-top: 15px;
  font-size: 13px;
  color: #bbb;
}
















/* Calendrier personnalisé */
#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  max-width: 600px;
  margin: 20px auto 80px;
  text-align: center;
}

.day {
  padding: 10px;
  border: 1px solid #ccc;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s;
}

.day:hover {
  background-color: #eee;
}

.day.selected {
  background-color: #78151e;
  font-weight: bold;
}

.calendar-header {
  text-align: center;
  margin-top: 20px;
  font-size: 1.5em;
  font-weight: bold;
}

.day-name {
  font-weight: bold;
  background-color: #ddd;
  padding: 10px;
}

.calendar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.calendar-nav button {
  padding: 5px 15px;
  font-size: 1.2em;
  cursor: pointer;
  background-color: #ddd;
  border: none;
  border-radius: 5px;
}

.calendar-nav button:hover {
  background-color: #bbb;
}

.day.disabled {
  background-color: #eee;
  color: #999;
  cursor: not-allowed;
  pointer-events: none;
}

#reservation-form {
  max-width: 500px;
  margin: 20px auto;
  padding: 15px;
  border: 1px solid #ccc;
  background: #fefefe;
  border-radius: 5px;
}

#reservation-form div {
  margin-bottom: 10px;
}

#reservation-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

#reservation-form input,
#reservation-form select {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}

#reservation-form button {
  padding: 10px 15px;
  background-color: #5e1018;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#reservation-form button:hover {
  background-color: #5e1018;
}
