.loader-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  height: 300px;
  width: 300px;
}

.loader-inner img {
    width: 100%;
}

.map-responsive{

    overflow:hidden;

    padding-bottom:56.25%;

    position:relative;

    height:0;

}

.map-responsive iframe{

    left:0;

    top:0;

    height:100%;

    width:100%;

    position:absolute;

}

.video_wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9, for an aspect ratio of 1:1 change to this value to 100% */
  }

  .video_wrapper iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  }

a.scroll-down-btn {
  display: inline-block;
  margin-top: 15px;
  color: #FFF;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  font-weight: 700;
}

a.scroll-down-btn:hover {
  color: #C70102;
  transform: scale(1.5) translate(0px, 25px);
}



a.open-video span {
  width: 100%;
  height: 100%;
  position: absolute;
  background: url(/img/play.png) no-repeat;
  background-position: 50% 50%;
  background-size: 20%;
}

.breadcrumb-min {
  padding: 50px 0;
  padding-top: 100px;
}

.total-data td span{
	font-size: 1.5rem;
}

select.presence-form {
  width: 100%;
  padding: 15px;
  margin-bottom:25px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 20px;
  font-weight: bold;
}


nav.main-menu ul li span.welcome {
  color: #fff;
  font-weight: 700;
  display: block;
  padding: 15px;
}

.mean-container .mean-nav ul li span.welcome {
	display: block;
    width: 90%;
    padding: 1em 5%;
    margin: 0;
    text-align: left;
    color: #fff;
}


.white-popup {
  position: relative;
  background: #FFF;
  padding: 20px;
  width: auto;
  max-width: 500px;
  margin: 20px auto;
}


.edit-user-from-section input[type=email],
.edit-user-from-section input[type=text],
.edit-user-from-section input[type=tel],
.edit-user-from-section input[type=date],
.edit-user-from-section select,
.edit-user-from-section textarea {
  width:100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.edit-user-from-section a, .edit-user-from-section button[type="submit"] {
    background-color: #c70102;
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    border: none !important;
    cursor: pointer;
    padding: 15px 25px;
    border-radius: 10px;
}

.edit-user-from-section a:hover,.edit-user-from-section button[type="submit"]:hover {
    background-color: #051922;
    color: #c70102;
}

#modal-flash-message > div > div.success{
    background-color: #32a53a;
    color:#FFFFFF;
}

#modal-flash-message > div > div.error{
    background-color: #c70102;
    color:#FFFFFF;
}

#modal-flash-message > div > div > div > h5.modal-title{
    color:#FFFFFF;
    font-weight: normal;
}

#modal-flash-message > div > div > div.modal-header{
    border:none;
}

#modal-flash-message > div > div > div > button > span{
    color:#FFFFFF;
}

.mean-container .mean-nav ul li a{
	text-transform: none;
}

.white-text {
    color: #FFFFFF;
}

.img-thumbnail {
    padding: 0;
    border: none;
    object-fit: cover;  /* Do not scale the image */
  	object-position: center; /* Center the image within the element */
  	width: 100%;
  	max-height: 100px;
}


.contact-form p input {
  width:100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.contact-form input[type=text], .contact-form input[type=tel], .contact-form input[type=email], .contact-form select, .contact-form textarea{
  width:100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

a.red {
	outline: none;
	text-decoration: none;
}


a.red:link {
	color:#c70102;
}

a.red:visited {
	color:#c70102;
}

a.red:focus {
	border-bottom: 1px solid;
	color:#fe3636;
}

a.red:hover {
	border-bottom: 1px solid;
	color:#fe3636;
}

.mfp-title{
  background-color: #222;
}

.tab {
  background:#FFFFFF;
  color:#c70102;
  -webkit-box-shadow: 0 0 20px #dddddd;
  box-shadow: 0 0 20px #dddddd;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  font-size: 20px;
  line-height: 3em;
  font-weight: 600;
}

.tab a {
  color:#c70102;
}

.tab.active {
  background:#c70102;
  color:#FFFFFF;
}

.tab:not(.active):hover {
  opacity: 0.6;
}

.tabs {

  margin-left:0px;
  margin-right:0px;
  margin-bottom:20px;


}

.bg-orange button[type="submit"], .bg-orange, a.bg-orange{
  background-color: darkorange !important;
}

.bg-green button[type="submit"], .bg-green, a.bg-green{
  background-color: darkgreen !important;
}

.mean-container .mean-nav ul li {
   font-size: 1.4rem;
}


@media only screen and (max-width: 768px) {
  h2, .h2 {
    font-size: 1.4rem;
    line-height: 1.8rem;
  }
  .img-thumbnail {
    max-height:none;
  }
}

.hidden{display:none !important}

/*
 * STYLES POUR LES ACTIONS DE PRÉSENCE (NOUVELLE VERSION SIMPLIFIÉE)
 */

/* 1. Conteneur principal : empilement vertical */
.actions-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espace entre le bouton de présence et le bouton de groupe */
    width: 100%;
}

/* 2. Style du bouton-bascule de présence */
.presence-toggle-btn {
    display: inline-block;
    width: 100px; /* Largeur fixe pour l'alignement */
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none; /* Empêche la sélection du texte au clic */
}

/* --- La magie du :checked --- */

/* Par défaut (case non cochée = ABSENT) */
.presence-toggle-btn {
    background-color: #dc3545; /* Rouge pour Absent */
}
.presence-toggle-btn .text-present {
    display: none; /* On cache le texte "Présent" */
}
.presence-toggle-btn .text-absent {
    display: inline; /* On montre le texte "Absent" */
}

/* Quand la case est cochée (input:checked), on cible le label qui suit (+) */
input.event-count:checked + .presence-toggle-btn {
    background-color: #28a745; /* Vert pour Présent */
}
input.event-count:checked + .presence-toggle-btn .text-present {
    display: inline; /* On montre le texte "Présent" */
}
input.event-count:checked + .presence-toggle-btn .text-absent {
    display: none; /* On cache le texte "Absent" */
}


/* 3. Style du bouton "Changer de groupe" (inchangé) */
.action-button {
    display: inline-block;
    width: 100px;
    text-align: center;
    padding: 8px 12px;
    border-radius: 5px;
    background-color: #86baf5; /* Orange */
    color: #fff !important;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background-color: #2b83e7;
    color: #fff !important;
}