@import url('https://fonts.googleapis.com/css?family=Muli:300,700|Nunito');

body {
    background: #ffffff;
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
    margin:0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/*---------------------------------------
TYPOGRAPHY              
-----------------------------------------*/
h1,h2,h3,h4,h5,h6 {
    font-family: "Raleway", sans-serif;
    font-weight: bold;
    line-height: inherit;
}


h1 {
    font-family: "Raleway", sans-serif;
    font-size: 2.2em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 20px;
}

/* Style pour petit écran (téléphone) */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 1em;
        padding: 0 12px;
        text-align: center;
    }
}


h1 a:hover {
    color: #3f51b5;
}

h2 {
    color: #353535;
    font-size: 2em;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5em;
}

h3,
h3 a {
    color: #454545;
}

p {
    color: #757575;
    font-size: 14px;
    font-weight: normal;
    line-height: 24px;
}

/*---------------------------------------
STYLE GENERAL               
-----------------------------------------*/

.video {
    width: 100%;
    height: 500px;
}

html{
    height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #252525;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    text-decoration: none !important;
}

a,
input, button,
.form-control {
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

a:hover, a:active, a:focus {
    color: #0000ff;
    outline: none;
}

::-webkit-scrollbar{
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-thumb {
    cursor: pointer;
    background: #aaa;
}

.section-title {
    padding-bottom: 40px;
}

.section-title h2 {
    margin: 0;
}

.section-title small {
    display: block;
}

.overlay {
    background: rgba(20,20,20,0.5);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.entry-form {
    background: #252020;
    border-radius: 100%;
    text-align: center;
    padding: 6em;
    width: 450px;
    height: 450px;
}

.entry-form h2 {
    color: #ffffff;
    margin: 0;
}

.form .form-control,
.entry-form .form-control {
    background: transparent;
    border: 0;
    border-bottom: 1px solid;
    border-radius: 0;
    box-shadow: none;
    height: 45px;
    margin: 10px 0;
}

.form-control {
    width: 100%;
}

.form .input-group {
    margin: 10px 0;
}

.input-group-addon {
    border: 0;
}

.form .input-group .form-control {
    margin: 0;
}

.form textarea.form-control,
.entry-form textarea.form-control { height: 120px;  }
.entry-form .submit-btn {
    background: #ffffff;
    border-radius: 50px;
    border: 0;
    color: #252020;
    width: 50%;
    height: 50px;
    margin: 30px auto;
    margin-bottom: 10px;
}
.entry-form .submit-btn:hover {
    background: #3f51b5;
    color: #ffffff;
}

section {
    position: relative;
    padding: 40px 0;
}

.section-title {
    padding-bottom:0;
}

.main-title {
    margin-top: 60px;
}

#team, 
#testimonial {
    text-align: center;
}

#google-map iframe {
    border: 0;
    width: 100%;
    height: 390px;
}


/*---------------------------------------
STYLE DES BUTTONS (HOME/TÉMOIGNAGE)              
-----------------------------------------*/

.section-btn {
    background: transparent;
    border-radius: 50px;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: inherit;
    font-weight: normal;
    padding: 15px 30px;
    transition: 0.5s;
}
.section-btn:hover {
    background: #ffffff;
    border-color: transparent;
}
/*---------------------------------------
STYLE DE LA PAGE FAQ - COLLAPSIBLE             
-----------------------------------------*/
.collapsible {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.collapsible .symbol {
    font-weight: bold; /* Rendre le symbole en gras */
    margin-right: 10px;
}

.col_content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.col_content p {
    margin: 10px 0;
    border-left: 2px solid #337ab76e;
    padding-left: 20px;
}

#faq-voir-plus{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

/*---------------------------------------
STYLE DES FORMULAIRES GÉNÉRIQUES            
-----------------------------------------*/

.form-name-container {
    display: flex;
    gap: 20px; /* Espace entre les champs, ajustez selon vos besoins */
}

.flex-item {
    flex: 1;
}

.form-container {
    margin: 30px auto;
    text-align: center;
    width: 90%; /* Pour permettre au formulaire de s'adapter mieux à l'écran */
    max-width: 600px; /* Limite maximale pour éviter d'être trop large */
}


.form-group {
    display: flex;
    flex-direction: column; /* Aligner les éléments en colonne */
    align-items: left; /* Centrer les éléments horizontalement */
    text-align: center; /* Centrer le texte des libellés */
}

.form-group label {
    font-weight: bold; /* Optionnel : rendre les libellés en gras */
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    /* Styles supplémentaires pour les champs */
}

label {
    margin-right: 10px;
    white-space: nowrap; /* Empêche les sauts de ligne */
}

input[type="number"],
select {
    border-radius: 5px;
}


/*---------------------------------------
STYLE DU MENU HEADER         
-----------------------------------------*/

.navbar-header img {
    display: block; /* Assure que l'image se comporte comme un élément de bloc */
    float: left; /* Aligne l'image à gauche */
    margin: 5px; /* Ajoute une marge à droite pour séparer l'image du texte */
    height: 65px;
    width: auto;
}

@media (max-width: 767px) {
  .navbar-mobile-simple img {
    max-height: 50px;
    height: auto;
  }
}

.navbar-header{
    margin-left:1% !important;
}

.fix-navbar {
    display:flex !important;
    justify-content:center !important;
    width: 100% !important;
}


.custom-navbar {
    background: #ffffff;
    border-top: 5px solid #3e6ca8;
    border-bottom: 0;
    -webkit-box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    margin-bottom: 0;
    padding: 0;
}
.custom-navbar .navbar-brand {
    color: #454545;
    font-size: 18px;
    font-weight: bold;
    line-height: 40px;
}
.custom-navbar .navbar-nav.navbar-nav-first {
    margin-left: 8em;
}
.custom-navbar .navbar-nav.navbar-right li a {
    padding-right: 12px;
    padding-left: 12px;
}
.custom-navbar .navbar-nav.navbar-right li a .fa {
    background: #3e6ca8;
    border-radius: 100%;
    color: #ffffff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    display: inline-block;
    margin-right: 5px;
}

.custom-navbar .nav li a {
    line-height: 40px;
    color: #575757;
    padding-right: 22px;
    padding-left: 22px;
}

.custom-navbar .navbar-nav > li > a:hover,
.custom-navbar .navbar-nav > li > a:focus {
    background-color: transparent;
}

.custom-navbar .nav li a:hover {
    background-color: #3e6ca8;
    color: #ffffff;
}

.custom-navbar .nav li.active > a {
    background-color: #3e6ca8;
    color: #ffffff;
}

.custom-navbar .navbar-toggle {
    border: none;
    padding-top: 10px;
}

.custom-navbar .navbar-toggle {
    background-color: transparent;
}

.custom-navbar .navbar-toggle .icon-bar {
    background: #252525;
    border-color: transparent;
}


.dropdown-item {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.dropdown-item span {
    height: 40px; 
    padding: 10px 30px; 
    background-color: white; 
    color:#3e6ca8; 
    border: 1px solid #3e6ca8;
    width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    
}

.dropdown-item span:hover {
    height: 40px; 
    padding: 10px 30px; 
    background-color: #3e6ca8; 
    color: white    ; 
    border: 1px solid #3e6ca8;
    
}

.nav-item {
    position: relative !important; /* Nécessaire pour que le menu déroulant soit positionné par rapport à cet élément */
}

.nav-item.dropdown .dropdown-menu {
    display: none; /* Caché par défaut */
    position: absolute; /* Position absolue pour permettre l'extension en dehors du parent */
    top: 100%; /* Positionne le menu directement sous le bouton */
    left: 0; /* Aligne le menu avec le début du parent */
    margin-top: 0; /* Élimine tout espace entre le bouton et le menu */
    padding: 0; /* Élimine les marges internes du menu déroulant */
    border: none; /* Assure qu'il n'y a pas de bordure non désirée */
    z-index: 1000; /* Assure que le menu est au-dessus des autres éléments */
    background-color: transparent; /* Fond transparent */
    box-shadow: none; /* Supprime les ombres */
    width: 100%; /* Assure que le menu déroulant a la même largeur que le parent */
}


.nav-item.show .dropdown-menu {
    display: block !important; /* Affiche le menu déroulant lorsqu'il a la classe show */
}

.dropdown-item {
    background-color: transparent !important;
    box-shadow: none !important; /* Supprime les ombres */
}

/* Style pour les éléments de liste du menu déroulant */
.dropdown-menu ul {
    padding-left: 0 !important; /* Élimine le padding interne de la liste */
    margin: 0 !important; /* Élimine les marges de la liste */
    list-style: none !important; /* Supprime les puces de la liste */
}

.dropdown-menu li {
    margin: 0 !important; /* Élimine les marges des éléments de liste */
    background-color: transparent !important; /* Fond transparent */
    box-shadow: none !important; /* Supprime les ombres */
}

.dropdown-menu .dropdown-item {
    display: block !important; /* Affiche chaque élément de menu sur une ligne */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    color: #333 !important; /* Couleur du texte */
    text-decoration: none !important; /* Supprime la décoration de lien */
    background-color: transparent !important; /* Couleur de fond opaque */
    position: relative !important;
    box-shadow: none !important; /* Supprime les ombres */
}

.dropdown-menu .dropdown-item:hover {
    background-color: transparent !important; /* Couleur de fond au survol */
    color: #000 !important; /* Couleur du texte au survol */
    box-shadow: none !important; /* Supprime les ombres */
}

/* Maintien l'état actif du bouton lorsque le menu est visible */
.nav-item.show > a,
.nav-item:hover > a {
    background-color: #3e6ca8 !important; /* Couleur de fond du bouton actif */
    color: white !important; /* Couleur du texte du bouton actif */
}

.nav-item > a {
    display: block !important; /* Assure que le lien parent occupe tout l'espace du parent */
    padding: 10px !important; /* Ajoute du padding pour le lien parent */
    color: #333 !important; /* Couleur du texte par défaut */
    text-decoration: none !important; /* Supprime la décoration de lien */
}


/*---------------------------------------
STYLE DE LA PAGE HOME - IMAGE BG           
-----------------------------------------*/
#home {
    padding: 0;
    max-height: 650px;
}

#home h1 {
    color: #ffffff;
}

#home h3 {
    color: #f9f9f9;
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    padding: 5px 0 40px 0;
}

#home .caption {
    display: flex;
    align-items: center;  /* Centrer verticalement */
    flex-direction: column;
    text-align: center;  /* Centrer horizontalement */
    height: 100%;
    color: #fff;
    padding-bottom: 80px; 
    padding-top: 130px; 
}

#home .item {
    background-image: url('../images/salle.jpg');  /* Image statique en arrière-plan */
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: cover;
    background-position: top;
    height: 1050px;
    display: flex;
    justify-content: center;  /* Centrer horizontalement */
    align-items: center;  /* Centrer verticalement */
    margin-top: 80px;
}

@media only screen and (min-width: 1920px) {
    #home .item {
        background-image: url('../images/salle.jpg');  /* Image statique en arrière-plan */
        background-repeat: no-repeat;
        background-attachment: local;
        background-size: contain;
        background-position: top;
        height: 1050px;
        display: flex;
        justify-content: center;  /* Centrer horizontalement */
        align-items: center;  /* Centrer verticalement */
        margin-top: 80px;
    }
}


.caption h3 a {
    color: #FFF;
}

.caption h3 a:hover {
    color: #FF3;
}

/*---------------------------------------
STYLE DE LA PAGE COURS - IMAGE BG
----------------------------------------*/

#home2 {
    padding: 0;
    height: 460px;
}

#home2 h1 {
    color: #ffffff;
}

#home2 h3 {
    color: #f9f9f9;
    font-size: 22px;
    font-weight: 300;
    margin: 0;
    padding: 5px 0 40px 0;  
}

#home2 .caption {
    display: flex;
    justify-content: center;
    align-items: center;  /* Centrer verticalement */
    flex-direction: column;
    text-align: center;  /* Centrer horizontalement */
    background-color: rgba(20, 20, 20, 0.45);
    height: 100%;
    color: #fff;
    padding-bottom: 80px; 
}

#home2 .item {
    background-image: url(../images/AdobeStock_475429595.jpeg);
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: cover;
    background-position: top;
    display: flex;
    justify-content: center;  /* Centrer horizontalement */
    align-items: center;  /* Centrer verticalement */
    margin-top: 40px;
}


/*---------------------------------------
STYLE DE LA PAGE TARIF - TABLEAU           
-----------------------------------------*/


/* Styles pour le tableau */
.course-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #3e6ca8; /* Bordure bleue */
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}


.course-table th, .course-table td {
    border: 1px solid #3e6ca8;
    padding: 12px;
    text-align: center;
}

.course-table thead {
    background-color: #3e6ca8;
    color: white;
}

.course-table tbody tr:nth-child(even) {
    background-color: #f2f2f2
}

#assosdiv{
    display: flex;
    align-items: center;
}

#hours{
    margin-left: 10px;
}
/* Styles spécifiques pour les colonnes */

.course-table td {
    text-align: center;
}

.cell-with-asterisk {
    position: relative;
    text-align: center; /* Centrer le contenu de la cellule */
    vertical-align: middle; /* Centrer verticalement */
    padding: 8px; /* Ajustement de l'espacement intérieur */
}

.cell-with-asterisk .text {
    position: relative; /* Ne pas nécessaire mais laissé ici pour clarification */
}

.cell-with-asterisk .asterisk {
    position: absolute;
    left: 0;
    width: 100%; /* Assure que l'astérisque occupe toute la largeur de la cellule */
    font-size: 0.58em;
    font-weight: lighter;
    text-align: center; /* Centre le texte de l'astérisque */
    margin-bottom: 3px;
    top:64%;
}



/*---------------------------------------
STYLE DE LA PAGE HOME - TABLEAU A ONGLETS             
-----------------------------------------*/

.tab-container {
    width: 800px;
    margin: auto;
    justify-content: center;
    text-align: center;
}

.tab-menu {
    margin-bottom: 30px;  
}

.tab-menu button.active {
    background-color: rgba(142, 148, 153, 0.644);
    color: #3e6ca8;
    border-radius: 5px; /* Rendre les boutons arrondis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ajouter une ombre */
}

.tab-menu button {
    background-color: #ddd;
    border: none;
    padding: 10px 20px; /* Ajouter du padding pour un bouton plus large */
    margin: 5px; /* Ajouter un espace entre les boutons */
    border-radius: 5px; /* Rendre les boutons arrondis */
    cursor: pointer;
    width: 380px;
    transition: background-color 0.3s ease, color 0.3s ease; /* Ajouter une transition pour une meilleure interaction */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ajouter une ombre */
}

.tab-menu button:hover {
    background-color: #bbb; /* Changer la couleur au survol */
    color: #fff; /* Changer la couleur du texte au survol */
}


/*---------------------------------------
STYLE DE LA PAGE HOME - DEUXIEME ONGLET             
-----------------------------------------*/

.cadre-arrondi {
    border: none;
    width: 800px; /* Largeur du cadre */
    background: none;
    height: 600px;
}



/*---------------------------------------
STYLE DE LA PAGE CONTACT             
-----------------------------------------*/


#contact-form {
    padding: 1em 0;
}

#contact-form .col-md-12,
#contact-form .col-md-4 {
    padding-left: 0;
}

.form .form-control,
#contact-form .form-control {
    border: 0;
    border-radius: 5px;
    box-shadow: none;
    margin: 10px 0;
}

#contact-form input {
    height: 50px;
}

#contact-form input[type='submit'] {
    border-radius: 50px;
    border: 1px solid transparent;
}

#contact-form input[type='submit']:hover {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

#submit-btn{
    width:60%;
}


/*---------------------------------------
STYLE DU FOOTER              
-----------------------------------------*/
footer {
  background: #BBB;
  text-align: center;
  padding: 3vh;
  font-size: 14px;
  color: #555;
}

      .footer-content {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
      }

      .facebook-icon {
        width: 20px;
        height: 20px;
        cursor: pointer;
      }

      .footer-link {
        text-decoration: none;
      }


/*---------------------------------------
STYLES RESPONSIFS          
-----------------------------------------*/
@media screen and (max-width: 1170px) {
    .custom-navbar .navbar-nav.navbar-nav-first {
        margin-left: inherit;
    }
}

@media only screen and (max-width: 992px) {
    section,
    footer {
        padding: 10px 0;
    }
    .home-slider .item {
        background-position: center center;
    }
    .feature-thumb,
    .about-info,
    .team-thumb,
    .footer-info {
        margin-bottom: 50px;
    }
    .contact-image {
        margin-top: 50px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .custom-navbar .nav li a {
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* ELEMENTs 
POUR LE 
TELEPHONE */

@media only screen and (max-width: 767px) {
    
    /* Cas pathologique pour la responsivité : */
    
    .fix-navbar {
        display:unset !important;
        justify-content:unset !important;
        width: unset !important;
        margin: 0;
        padding: 0;
    }
    
    /* Réglage de la section vidéo */
    .tab-container{
        width: 100%;
    }
    
    .tab-container .tab-menu{
        width: 100%;
    }
    
    .tab-container .tab-menu button{
        width: 90%;
    }
    
    .cadre-arrondi { 
        height: 100%;
    }
    
    .video { 
        height: 200px;
    }
    
    .cadre-arrondi button {
        width: 100% !important;
    }
    
    .cadre-arrondi iframe {
        width: 100% !important;
    }
    
    /* Réglage de la section témoignage */

    #fb-container{
        width:100% !important;
    }
    
    /* Réglage du footer */
    .footer_icons_container {
        display: flex;
        flex-direction: unset;
        align-items: unset;
        justify-content: space-around;
        width: 100%;
    }
    
    .footer_icons_container .icon_text{
        width: 100%;
        display: block;
        text-align: center;
    }
    
    .footer_icons_container .icon_text img {
        margin-left:0;
    }
    
    .footer_logo_container {
        display: none;
    }
    
    .footer_text_container {
        display: none;
    }
    
    .footer-info{
        text-align: center;
        line-height: 2em;
    }

/* Réglage du bouton dans Contact*/

#submit-btn{
    width:80%;
}


/* Correction du devis dans la page Tarifs */

#hoursdiv{
    display: flex;
    flex-direction: column;
    justify-content: center;

}
#hoursnumber{
    width:unset;
    margin-right: 0px;
}

#hours{
    display:flex;
    width:unset;
    margin-left: 0px;
}

#assosdiv{
    display: grid;
}

#boutonAlerte{
    width:80%;
}


.course-table.table-largeur th,
.course-table.table-largeur td{
    width:unset;
    padding:4% !important ;
}



/*Correction de l'affichage des évènements.*/

.event{
    width:100% !important;
}

.event button{
    position: unset !important;
}

#load-previous-event{
    position:unset !important;
}

#load-next-event{
    position: unset !important;
}

.evdate{
    padding-left: 10%;
    padding-right: 10%;
    padding-bottom: 10%;
}

.no-event-btn{
    white-space: unset !important;
}

/* Correction de la page des Cours*/


#gotoes{
    margin:unset !important;
}


.quote{
    display: none;
}

.quote_2{
    display: none;
}

.mid-item{
    display: unset !important;
}

.photo1{
    height:100px !important;
    width:100px !important;
}

.text-content{
    max-width: unset !important;
}

.navigation-container{
    max-width: 100% !important;

}

.navigation-container.active{
    display: block !important;

}
.arrow-item img{
    height: 35px !important;
}


/*Correction dans offre découverte*/

.discoform{
    display: unset;
}

#selectdate{
    width:100% !important;
}

.cguandgametext{
    white-space: unset;
}


/* Correction dans le mode admin*/
.block-container-div{
    margin:5% 5% 5% 5% !important;
}

.importantsection{
    justify-content: center !important;
}

.admin-btn{
    width: unset !important;
}

.delete-section{
    overflow-x: auto !important;
}
.section-edit{
    overflow-x: auto !important;
}
/*---------------------------------------
STYLE DU TEMPLATE         
-----------------------------------------*/
    h1 {
        font-size: 1.5em;
    }
    
    h1,h2,h3 {
        line-height: normal;
    }
    
    .custom-navbar {
        background: #ffffff;
        -webkit-box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
        -moz-box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
        box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        text-align: center;
    }
    
    .custom-navbar .navbar-brand,
    .custom-navbar .nav li a {
        line-height: normal;
    }
    
    .navbar-fixed-bottom .navbar-collapse, .navbar-fixed-top .navbar-collapse {
        max-height: 380px !important;
    }
    
    .custom-navbar .nav li a {
        padding: 10px;
    }
    .custom-navbar .navbar-brand,
    .top-nav-collapse .navbar-brand {
        color: #252525;
        font-weight: 600;
    }
    
    .custom-navbar .nav li a,
    .top-nav-collapse .nav li a {
        color: #575757;
    }
    
    .custom-navbar .navbar-nav.navbar-right li {
        display: inline-block;
    }
    
    .footer-info {
        margin-right: 0;
    }
    
    .footer-info.newsletter-form {
        margin-bottom: 0;
    }
    
    .entry-form {
        display: block;
        margin: 0 auto;
    }
}  



.lead { font-family: "Muli"; font-weight: 300; line-height: 1.8; }

.team-thumb-actions { padding: 10px; border-top: 1px solid rgba(0,0,0,.05); }

.section-btn.btn-primary { border-color: #29ca8e; color: #29ca8e; }
.section-btn.btn-primary:focus,
.section-btn.btn-primary:active,
.section-btn.btn-primary:focus:active,
.section-btn.btn-primary:hover {background: #29ca8e; color: #fff; border-color: #29ca8e; }

.courses-thumb .lead,
.team-info .lead { margin-bottom: 10px; }

.courses-thumb .lead strong,
.team-info .lead strong { color: #29ca8e;}

section,
.section-background .item,
.section-background .courses-thumb,
.section-background .team-thumb,
main > section:nth-child(even) .item,
main > section:nth-child(even) .courses-thumb,
main > section:nth-child(even) .team-thumb,
main > section { background: #fff;  }

section .item,
section .courses-thumb,
section .team-thumb,
.section-background,
main > section .item,
main > section .courses-thumb, 
main > section .team-thumb, 
main > section:nth-child(even) { background: #f8f8f8; }

.navbar-nav > li > .dropdown-menu { border-radius: 0; border: 0; }

.input-group-btn>.btn { height: 45px; }

.list { font-size: 16px; line-height: 1.6; }
.list li { margin-bottom: 15px;  }


/*---------------------------------------
STYLE DE LA PAGE COURS - MAP              
-----------------------------------------*/

#map{ /* la carte DOIT avoir une hauteur sinon elle n'apparaît pas */
height: auto;
width: 30%;
margin-bottom: 50px; 
margin-top: 50px;
margin-left: 20px;
margin-right: 20px;
}

.map2{
    height: auto;
    width: 70%;
    margin-bottom: 50px; 
    margin-top: 50px;
    margin-right: 20px; 
}
.map-column {
    display: flex; /* Utilisation de flexbox pour aligner les cartes côte à côte */
    justify-content: space-between; /* Pour espacer les cartes */
    background-color: #D4DEEC ;
}


/*---------------------------------------
STYLE DE LA PAGE TEMOIGNAGES
-----------------------------------------*/

.navigation-container {
    display: none;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    padding: 20px;
    max-width: 85%;
    border-radius: 60px;
    position: relative;
}

.navigation-container.active {
    display: flex;
}

.mid-item {
    display: flex;
    align-items: center;
    justify-content:center;
    flex-grow: 1;
    max-width: 700px;
}

.text-content {
    margin-right: 15px;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    max-width: 70%;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    flex-shrink: 0;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
}

.arrow-item {
    flex-shrink: 0;
}

.arrow-item button {
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.arrow-item button:hover {
    transform: scale(1.1);
}

.arrow-item img {
    height: 50px;
    width: auto;
}

.photo1, .photo2 {
    height: 280px;
    width: 280px;
    margin-top: 25px;
    margin-bottom: 25px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 15px;
    border: 2px solid rgba(128, 128, 128, 0.304);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 150px;
}

.quote {
    position: absolute;
    top:0;
    left:0;
    margin-left: 20px;
    font-size: 100px;
    color: #3f51b5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: rotate(6deg);
}
.quote_2 {
    position: absolute;
    top: 276px     ;  
    right:0;
    margin-right: 26px;
    font-size: 100px;
    color: #3f51b5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: rotate(6deg);
}


.star_rating {
    height:40px;
    width: 260px;
}

.stars-container{
    position: absolute;
    max-width: 280px;
    max-height: 40px;
    opacity: 0;
}

.star-button{
    width: 45px;
    height: 40px;
    margin-right: 6px;
}

.rating-container {
    margin-bottom: 40px;
}

.fb_stars_container {
    display: flex; /* Utilisation de Flexbox */
    align-items: center; /* Pour aligner verticalement le contenu */
}

.fb_stars_container b {
    margin-left: 10px; /* Espacement entre le titre et l'image */
}

.fb_star_rating {
    height: 16px;
    width: 110px;
}

.fb_content {
    margin-top: 8px;
}

.fb-form-container {
    max-width: 800px; 
    margin: 0 auto;
}

.custom-btn {
    background-color: #3e6ca8; /* Couleur bleu clair */
    color: white; /* Couleur du texte */
    border: none; /* Retirer la bordure */
}

.custom-btn:hover {
    background-color: #2e4f7a; /* Couleur bleu plus foncé au survol */
    color: white;
}


/*---------------------------------------
STYLE DE LA PAGE COURS - AVIS
-----------------------------------------*/


#load-previous, #load-next {
    display: inline-block;
    width: 300px;
    margin: 20px auto;
    padding: 10px 20px;
    color: #FFF;
    border: none;
    cursor: pointer;
}

#load-previous[disabled], #load-next[disabled] {
    background-color: #6c757d;
    cursor: not-allowed;
}

/*---------------------------------------
STYLE DE LA PAGE COURS - DEVIS
-----------------------------------------*/

.button-devis .button-label {
    display: inline-block;
    padding: 8px 16px;
    background-color: white;
    border-radius: 5px; /* Rendre les boutons arrondis */
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border:none;
    box-shadow: none;
}

.button-devis .button-label:hover {
    color: #0057b3ac;
    background-color: white;
    box-shadow: none;
}

.button-devis .button-label.active {
    color: #6eb76e;
    background-color: white;
    box-shadow: none;
}

.button-devis .button-label.active:hover {
    color: #5cb85c;
    background-color: white;
    box-shadow: none;
}

.form-container-devis {
    margin: 30px auto;
    text-align: center;
    width: 90%;
    max-width: 600px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.form-group-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.form-group-2 > div {
    display: flex;
    align-items: center;
}


/*---------------------------------------
STYLE DE LA PAGE RESSOURCE
-----------------------------------------*/


/* Styles pour les boutons de sélection */
#niveau button.active,
#matiere button.active {
    background-color: #3e6ca8;
}

#niveau,
#matiere {
    margin-top: 10px;
}

#niveau button,
#matiere button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #74859c;
    color: white;
    transition: background-color 0.3s;
}

#niveau button:hover,
#matiere button:hover {
    background-color: #3e6ca8;
}


.cadre-arrondi_2 {
    border: 2px solid #ccc; /* Bordure de 2 pixels, couleur grise */
    border-radius: 5px; /* Rayon de courbure des coins de 15 pixels */
    padding: 20px; /* Espacement à l'intérieur du cadre */
    background-color: #f0f0f0; /* Couleur de fond grise claire */
    height: 500px;
    margin-top: 5   0px;
}


#ressources-container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 20px;
    box-sizing: border-box;
}

.ressource-table {
    width: 100%;
    max-width: 1500px;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.ressource-table th, .ressource-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

.ressource-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.ressource-table td a {
    color: blue;
    text-decoration: none;
}

.ressource-table td a:hover {
    text-decoration: underline;
}

.download_link_button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: black;
    background-color: #d9cccc67;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.download_link_button:hover {
    background-color: #d6d6d6;
}

/*---------------------------------------
STYLE D'AFFICHAGE DES ARTICLES DANS LE BLOG
-----------------------------------------*/

.article {
    flex: 0 0 calc(30% - 20px);
    box-sizing: border-box;
    margin: 20px;
    position: relative;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    width: 60px;
    height: auto; /* Permet à l'article de s'ajuster à la hauteur de son contenu */
}

.article img {
    width: 100%;
    height: auto; /* Permet à l'image de s'ajuster à la hauteur définie par sa largeur tout en maintenant son ratio */
    object-fit: cover;
    object-position: center;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.article-container {
    flex-wrap: wrap;
}

.article-container-row {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: stretch;
    height: auto;
}

.article-content {
    padding: 15px;
}

.article-content h3, p {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.article-content P { width: 80%; }


/*---------------------------------------
STYLE DE LA PAGE DE EVENEMENT 
-----------------------------------------*/

.event-container {
    text-align: left;
    min-height: 300px;
}
.event {
    position: relative;
    background-color: #f0f0f0;
    border-left: 5px solid #007bff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
}

.event button {
    position: absolute;
    bottom: 14px;
    right: 14px;
}

.event-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.event-date {
    font-size: 14px;
    color: #666;
}

.date-event-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.date-event-title button {
    margin: 0 20px;
    all: unset;
    cursor: pointer;
    font-size: 1.35em;
}

.date-event-title button:hover {
    color: #3e6ca8;
}

.date-event-title button:disabled {
    color: #F8F8F8;
    cursor: default;
}

#load-previous-event, #load-next-event {
    position: absolute;
}

#load-previous-event {
    left: 38%;
}

#load-next-event {
    right: 38%;
}

.beating {
    animation: battement 0.6s infinite alternate;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.beating-one {
    animation: battement-large 1s ease-in-out alternate;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@keyframes battement {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}


@keyframes battement-large {
    0% {
        transform: scale(1);
        opacity: 0.0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1.0;
    }
}

/*---------------------------------------
PRE LOADER              
-----------------------------------------*/

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background: none repeat scroll 0 0 #ffffff;
}

.spinner {
    border: 1px solid transparent;
    border-radius: 3px;
    position: relative;
}

.spinner:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 1px solid #575757;
    border-top-color: #ffffff;
    animation: spinner .9s linear infinite;
}

@keyframes spinner {
    to {transform: rotate(360deg);}
}

/*---------------------------------------
STYLE DE LA PAGE DECOUVERTE           
-----------------------------------------*/


.flatpickr-day.disabled {
    background-color: white;
    color: red;
}
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container label {
    margin: 0;
}

.checkbox-container .reglement {
    margin: 0 0 0 10px; /* Ajuster la marge selon vos besoins */
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px; /* Ajuster l'espace entre la checkbox et le label */
}

.reglement{
    font-size: 12px;
}
.concdesc{
    color: black;
    font-size:15px;
    margin-top:10px;
}
.concdesc2{
    color:black;
    font-size:15px;
    margin-top:0px;
}
/*---------------------------------------
FILTRES          
-----------------------------------------*/
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-select select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-search input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 250px;
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        gap: 15px;
    }

    .filter-search input {
        width: 100%;
        max-width: 300px;
    }
}
/*---------------------------------------
CONNEXION           
-----------------------------------------*/



.connexion-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}
.connexion-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}
.connexion-container .connexion-title {
    margin-bottom: 20px;
}
.connexion-container .connexion-logo {
    width: 50px;
    margin-bottom: 20px;
}
.connexion-container .connexion-input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.connexion-container .connexion-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(to right, #00d2ff, #3a7bd5);
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}
.connexion-container .connexion-link {
    display: block;
    margin-top: 10px;
    color: #888;
    text-decoration: none;
}
.connexion-container .connexion-link:hover {
    text-decoration: underline;
}

.error-message {
    color: red;
    margin-top: 10px;
    text-align: center;
}

.return-button {
    display: block;
    padding: 10px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.return-button:hover {
    background-color: #e0e0e0;
}


.smiley {
    height: 30%;
    width: 30%;
}


/** slider note **/
.slidecontainer { 
    width: 100%; 
    display : flex;
    flex-direction: column;
    background-color: white;
    padding: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border: 1px solid black;
}

.slide_all_container {
    display : flex;
    flex-direction: column;
}

#styledContainer .slider {
    margin: 10px 0;
}

#show_number_for_slider_1,
#show_number_for_slider_2,
#show_number_for_slider_3,
#show_number_for_slider_4 {
    display : flex;
    justify-content: center;
    margin: 4px 0 0 0;
    font-size: 1.2em;
    color: #333;
}
/*---------------------------------------*/
/*---------------------------------------
CSS GLOBAL - BASE ET RESPONSIVE
-----------------------------------------*/

/* Empêche le scroll horizontal de toute la page sur mobile */
html, body {
    display: flex;
    overflow-x: hidden;
    min-height: 100dvh;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Assure que tous les éléments respectent la largeur de l'écran */
* {
    box-sizing: border-box;
}

/*---------------------------------------
STYLE DES TABLEAUX DE LISTES - VERSION RESPONSIVE GÉNÉRIQUE
-----------------------------------------*/
.wrapper {
    width: 100%;
    margin: 0 auto;
    margin-bottom: 0%;

}

/* Simule un tableau avec des divs */
.table {
    margin: 0 0 10px 0;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: table;
    border-collapse: collapse;
    table-layout: auto;
}

.row {
    display: table-row;
    width: 100%;
}

.cell {
   display: table-cell;
    padding: 14px 18px;
    border: 1px solid #ccc;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    max-width: none; 
    word-wrap: break-word;
    overflow-wrap: break-word; 
    white-space: normal; 
}

/* Header styling */
.row.header {
    font-weight: bold;
    background-color: #3e6ca8;
    color: white;
    font-size:15px;
}

/* Alternating row colors */
.table .row:not(.header):nth-child(even) {
    background-color: #f8f8f8;
}

/* Align left for specific cells if needed */
.cell[align="left"] {
    text-align: left;
}

/* Icon styling */
.cell a img {
    vertical-align: middle;
    transition: transform 0.2s ease-in-out;
    max-width: 30px;
    height: auto;
}

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

#contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6% 10%;
    max-width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    flex: 1;
}

/*---------------------------------------
MEDIA QUERIES - RESPONSIVE DESIGN
-----------------------------------------*/

/* TABLETTES ET PETITS ÉCRANS */
@media screen and (max-width: 768px) {
    body {
        padding: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 100dvh;
        margin: 0;
    }
    
    #contents {
        position: relative;
        display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6% 10%;
    max-width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    flex: 1;
    }
    
    #contents h1 {
        text-align: center;
    }
    
    .wrapper {
        width: 100%;
        padding: 0 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
        margin: 0 auto;
        max-width: 100vw;
        box-sizing: border-box;
        /* Crée un contexte de scroll isolé */
        contain: layout;
    }
    
    .table {
        min-width: 500px;
        font-size: 12px;
        width: max-content;
        max-width: none;
        white-space: nowrap;
    }
    
    .cell {
        padding: 6px 3px;
        font-size: 12px;
        min-width: 60px;
        white-space: nowrap;
    }
    
    .cell a img {
        max-width: 20px;
        max-height: 20px;
    }
    
    /* Distribution équitable des colonnes */
    .row .cell {
        width: auto;
        flex: 1;
    }
    
    /* Colonnes contenant des noms/texte plus long */
    .cell[align="left"] {
        min-width: 120px;
    }
}

/* SMARTPHONES */
@media screen and (max-width: 480px) {
    .wrapper {
        padding: 0 5px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .table {
        min-width: 400px;
        font-size: 11px;
        width: max-content;
    }
    
    .cell {
        padding: 4px 2px;
        font-size: 11px;
        min-width: 50px;
    }
    
    .cell a img {
        max-width: 18px;
        max-height: 18px;
    }
    
    /* Colonnes contenant des noms/texte plus long */
    .cell[align="left"] {
        min-width: 100px;
    }
}


/*---------------------------------------
CLASSES UTILITAIRES OPTIONNELLES
-----------------------------------------*/

/* Pour les colonnes courtes (numéros, codes) */
.cell.col-short {
    min-width: 40px !important;
}

/* Pour les colonnes moyennes */
.cell.col-medium {
    min-width: 80px !important;
}

/* Pour les colonnes longues (noms, descriptions) */
.cell.col-long {
    min-width: 150px !important;
}

/* Pour les colonnes d'actions (boutons, icônes) */
.cell.col-action {
    min-width: 60px !important;
    text-align: center !important;
}

@media screen and (max-width: 400px) {
    .cell.col-action:before {
        content: "Actions: ";
    }
    
    .cell.col-action:has(a) {
        padding-left: 10px !important;
    }
}
/*---------------------------------------*/

.container-centered {
    width: 100%;
    /* padding-top: 6%; */
}
        .button-blue {
            background-color: #3e6ca8;
            color: white;
            padding: 8px 16px;
            font-size: 1em;
            border-radius: 4px;
            font-weight: bold;
            border: none;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }

.container-centered-menu_deroulant{
    max-width: 100%;

    /* padding: 40px; */
}

.container-centered-menu_deroulant {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 6% 10%;
}

#contents-menu_deroulant{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6% 10%;
    max-width: 100%;
    margin: 0 auto;
    margin-left:6%;
    background-color: #ffffff;
    border-radius: 12px;
    flex: 1;
    width:90%;

}

@media screen and (max-width: 768px) {
    #contents-menu_deroulant {
        padding-top: 20%;
        padding-left: 5%;
        padding-right: 5%;
        align-items: center;
        justify-content: center;
        margin-left:auto;
        max-width: 370px;
    }
    #contents{
        padding-top: 20%;
        padding-left: 5%;
        padding-right: 5%;
        max-width: 370px;

    }
    
}
.tooWideElement {
  width: 500px; 
}

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.6); }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 800px; border-radius: 8px; position: relative; }
.modal-close { color: #aaa; position: absolute; top: 10px; right: 25px; font-size: 28px; font-weight: bold; }
.modal-close:hover, .modal-close:focus { color: black; text-decoration: none; cursor: pointer; }
@media (max-width: 768px) {
    .modal-content { width: 80%;
    margin: 20% auto }

}


legend{
    font-family: "Raleway", sans-serif;
    font-size: 1.5em;
    font-weight: 600;
    color: #2c3e50;

  position: absolute;
  top: 0;
  left: 0;
  background: white;
  padding: 0 10px;

}

.button-orange {
    background-color: rgb(246, 149, 32);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
}

textarea#inputText {
    flex: 1;
    width: 100%;
    height:30vh;
    resize: none;
    padding: 1rem;
    font-size: 1.6rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

button {
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    margin-top: 10px;
    cursor: pointer;
    background-color: #BBB;
    color: #555;
}
/*Icones pour les pages index*/
#icon {
    max-width: 600px;
    width: 100%;
    flex: 1;
}

#icon .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px;
}

#icon .icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 colonnes, c'est bon */
    grid-auto-rows: minmax(150px, auto);
    gap: 30px 50px;
    /* 30px vertical, 50px horizontal */
    width: 100%;
    max-width: 600px;
    justify-items: center;
    align-items: center;
}


#icon .icon-link {
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#icon .icon-link:hover {
    transform: scale(1.05);
}

#icon .icon-img {
    width: 20vh;
    height: 20vh;
    object-fit: contain;
    margin-bottom: 10px;
}

/* CSS de base */
fieldset {
    border: 2px solid #BBB;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-sizing: border-box;
    width: 100%;
  position: relative;
  padding-top: 1.5em;
}
fieldset::before {
  content: "";
  position: absolute;
  top: 1em; /* position du trait */
  left: 0;
  right: 0;
  height: 1px;
  background-color: #ccc;
}
.fieldset-wrap {
  margin-bottom: 30px;
  overflow: hidden;

  /* ✅ pleine largeur */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fieldset-title {
  font-family: "Raleway", sans-serif;
  font-size: 2em;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  margin-left: 5px;
  background: transparent;
  border: none;
}

@media screen and (max-width: 768px) {
  .fieldset-title {
    font-size: 1em;
  }
}

.fieldset-body {
  border: 2px solid #BBB;
  border-radius: 10px;
  padding: 20px;
  background-color: white;

  /* ✅ pleine largeur en tenant compte du padding/bordure */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ✅ indispensable : les conteneurs du graph doivent aussi être en 100% */
.chart-container,
.chart-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ton div id (annual_evolution / annual_production) doit remplir */
#annual_evolution,
#annual_production {
  width: 100%;
  min-height: 380px; /* ajuste si besoin */
}
table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
}

table tr td {
    padding: 8px 10px;
}

/* Styles pour les éléments de formulaire */
input, select {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* VERSION MOBILE FORCÉE - Media queries avec !important */
@media screen and (max-width: 768px) {
    fieldset {
        padding: 15px ;
        margin-bottom: 20px ;
        border-radius: 8px ;
    }
    
    /* Force la transformation du tableau */
    table, thead, tbody, th, td, tr {
        display: block ;
        width: 100% ;
    }
    
    /* Cache complètement l'en-tête */
    thead tr {
        position: absolute ;
        top: -9999px ;
        left: -9999px ;
        visibility: hidden ;
    }
    
    /* Force le style carte pour chaque ligne */
    tr {
        display: block ;
        border: 1px solid #ddd ;
        padding: 15px ;
        margin: 0 0 15px 0 ;
        border-radius: 8px ;
        background: #f9f9f9 ;
        width: 100% ;
        box-sizing: border-box ;
    }
    
    /* Force le style pour chaque cellule */
    td {
        display: block ;
        border: none ;
        padding: 8px 0 ;
        text-align: left ;
        width: 100% ;
        box-sizing: border-box ;
        position: relative;
    }
    
    /* Force l'affichage des labels */
    td:before {
        content: attr(data-label) ;
        font-weight: bold ;
        display: block ;
        margin-bottom: 5px ;
        color: #333 ;
        font-size: 14px ;
    }
    
    /* Force les styles des éléments de formulaire */
    td input, 
    td select {
        display: block ;
        width: 100% ;
        max-width: none ;
        margin: 0 ;
        font-size: 16px ;
        box-sizing: border-box ;
    }
    
    /* Cache les cellules d'espacement */
    td:empty, 
    td[width="100px"] {
        display: none ;
        visibility: hidden ;
    }
    
    /* Cache les labels originaux */
    fieldset table td label {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Assure que les select sont bien visibles */
    select {
        appearance: none ;
        -webkit-appearance: none;
        -moz-appearance: none ;
        background: white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8"><polygon points="0,0 12,0 6,8" fill="%23666"/></svg>') no-repeat right 10px center ;
        padding-right: 30px ;
    }
}

/* Version pour très petits écrans */
@media screen and (max-width: 480px) {
    fieldset {
        padding: 10px;
        margin-bottom: 15px;
        border-width: 1px;
    }
    
    tr {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    td {
        padding: 6px 0;
    }
    
    td:before {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    td input, 
    td select {
        font-size: 16px;
        padding: 10px;
    }
}

/* Fallback sans media query pour forcer sur tous les petits écrans */
@media (orientation: portrait) and (max-device-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    tr {
        border: 1px solid #ddd;
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 8px;
        background: #f9f9f9;
    }
    
    td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    
    td:before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
    }
    
    td input, td select {
        width: 100%;
        font-size: 16px;
    }
}

.bouton_suppr {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bouton_suppr img {
  width: 20px;
  height: 20px;
}
