html{
    font-family: Arial, sans-serif;
}

body {
    font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    min-height: 100px;
    background:rgb(193, 232, 249);
}

.center-case {
    width: 60%;
    margin: auto;
    padding: 20px;
}

.center-box {
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    width: 100%;
    max-width: 350px;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #ccc;
    border-radius: 10px;
}

.center-box div{
    text-align: center;
    width: 90%;
}

.container{
    display: flex;
    width: 100%;
    margin-left: 200px;
    margin-right: 0px;
    padding-right: 0px;
}

.container_accueil {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}


.event-container{

    margin-bottom: 50px;;

}

.texte_header{

    margin-left: 100px;
}

.header, .navbar {
    background-color: #90c3ec;
    color: #0e0d0d;
}

.header h5{
    color: black;
}

.header{

    background-color: #90c3ec;
    color: #ffffff;

}

.header, .navbar ul {
    padding: 0px;
}

.header h1 {
    margin: 0;
}

.container h1, p{

    text-align: right;

}

.container img{
    width: 25%;
    height: auto;
}

.logo-club {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.presentation{
    width: 75%;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 100px;
    block-size: auto;
}


/* Super-container centré en pleine page */
.super-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    margin: 0;
}

/* Refus d'une fiche */
.container-refus {
    background-color: rgb(255, 255, 255);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.container-refus h2 {
    color: red;
    font-size: 24px;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid red;
    padding-bottom: 10px;
    font-weight: bold;
}

.container-refus a {
    color: black;
    font-style: italic;
    font-weight: bold;
}

.container-refus p {
    text-align: justify;
}

/* Style de la fiche */
.container-fiche {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Style du titre */
.container-fiche h2 {
    font-weight: bold;
    color: #333;
    font-size: 24px;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
}

/* Style des libellés */
.container-fiche a {
    color: black;
    font-style: italic;
    font-weight: bold;
}

/* Style du texte */
.container-fiche p {
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
}

.container-fiche p a {
    color: blue;
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
    font-style: normal;
    font-weight: initial;
}

.container-fiche p a:hover {
    color: rgb(99, 99, 255);
}

/* Espacement entre les sections */
.container-fiche div {
    margin-bottom: 10px;
}

.container-fiche li a{
    color: blue;
}

.container-fiche li a:hover{
    color: rgb(99, 99, 255);
}

.elt-liste-fiches {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #000000;
    gap:20px;
    text-align: center;
}

.elt-liste-fiches div {
    width: 150px;
}

.elt-liste-fiches p {
    text-align: center;
}

.elt-liste-fiches div p a {
    color: blue;
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
    font-style: normal;
    font-weight: initial;
}

/* Style spécifique pour le montant */
.container-fiche .montant {
    font-size: 18px;
    font-weight: bold;
}

/* Fiche sanitaire */
.container-fiche .fiche-sanitaire {
    font-size: 14px;
    color: #dc3545;
    font-style: italic;
}

/* Champs de saisie */
input, select, textarea {
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* Zone de texte */
textarea {
    min-height: 100px;
    resize: vertical;
}

.validation-button{
    margin: 2px;
    padding: 10px;
    width: 100%;
    background-color: #0c9c2b;
    color: #ffffff;
    border:none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    margin-bottom: 10px;
}

.refus-button{
    margin: 2px;
    padding: 10px;
    width: 100%;
    background-color: #950000;
    color: #ffffff;
    border:none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

.refus-button:hover {
    background-color: #a32727;
}


/* ---------------------------------------------------------------------------------------------------------------------- */
/* Pour le menu */

nav{
    width: 100%;
    margin: 0 auto;
    background-color: #005795;
    position: sticky;
    top: 0px;
    z-index: 1;
    margin-top : -16px;
}

nav ul{
    list-style-type: none;
    padding-inline-start: 0px;
}

nav ul li{
    float: left;
    width: 20%;
    text-align: center;
    position: relative;
}

nav ul::after{
    content: "";
    display: table;
    clear: both;
}

nav a{
    display: block;
    text-decoration: none;
    color: white;
    border-bottom: 2px solid transparent;
    padding: 10px 0px;
    z-index: 1;
}

nav > ul li:hover .sous{
    display: block;
    z-index: 1;
    color: white;
}

nav a:hover {
    color: white;
    background-color: #07324a;
}

.sous{
    display: none;
    box-shadow: 0px 1px 2px #CCC;
    background-color: #07324a;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.sous li{
    float:none;
    width: 100%;
    text-align: left;
    z-index: 1;
}

.sous a {
    padding: 10px;
    color: rgb(255, 255, 255);
    z-index: 1;
}

.sous a:hover{
    border-bottom: none;
    background-color: RGBa(200,200,200,0.1);
    z-index: 1;
}

.deroulant ul{
    position: absolute;
    top: 100%; 
    left: 0;
    z-index: 1000; 
}

.deroulant {
    position: relative;
}


/* ---------------------------------------------------------------------------------------------------------------------- */


/* Footer */

/* Style pour le footer */
.footer {
    background-color: #003366; /* Bleu foncé, assorti à votre thème EILCO */
    color: #ffffff;
    padding: 20px 0;
    margin-top: 20px;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #0099cc;
    padding-bottom: 5px;
    display: inline-block;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}


/* ---------------------------------------------------------------------------------------------------------------------- */

/*Partie droite*/

.event-table {
    background-color: #005795;
    flex: 1;
    width:25%;
    /* float: right; */
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 100px;
    color:#07324a;
}

.carousel-item {

    float: right;
    width: 100%;
    height: auto;

}

.carousel-item :active{

    float: right;
    width: 100%;
    height: auto;

}

.LeCarousel h2{
    text-align: left;
    font-weight: bold;
}

.calendrier{
    margin-top: 10px;
}

.calendrier h3{
    text-align: left;
    font-weight: bold;
}

table {
    margin-top: 10px;
    float: right;
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

th {
    background-color: #f2f2f2;
}

/* ---------------------------------------------------------------------------------------------------------------------- */
.login-button-admin {
    margin: 10px 0;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #005795;
    color: #ffffff;
    border:none;
    border-radius: 4px;
    width : 325px;
}

.login-button-admin:hover{
    background-color: #0068b2;
}

.login-button, .signup-button, .interet {
    margin: 2px;
    padding: 10px;
    background-color: #005795;
    color: #ffffff;
    border:none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

.search-button {
    padding: 10px;
    background-color: #005795;
    color: #ffffff;
    border:none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    width: 100%;
    margin-top: 10px;
}

.login-button:hover, .signup-button:hover, .interet:hover {
    background-color: #0068b2;
}

.login-button.active {
    background-color: #00406b; /* Plus foncé */
}
.login-button.active:hover {
    background-color: #003a61; /* Encore plus foncé au survol */
}

.logo_tableau{

    width: 50px; /* Remplacez par la largeur souhaitée en pixels */
    height: 50px;

}

.photo-caroussel{
    width: 40%; /* Remplacez par la largeur souhaitée en pixels */
    height: auto;

}

.signup-button{

    margin-right: 20px;

}

main{
    display: flex;
    
}

.presentation h2{
    flex: 75%;
    font-size: 40px;
    color: #005795;
    font-weight: bold;
}

.content-section{
    margin-bottom: 30px;
}

main a{
    color:#005795;
}

.vie_etudiante_evenement h4{
    border-bottom: 1px solid rgb(255,255,255, .2);
}

.vie_etudiante_evenement h5{
    border-bottom: 1px solid rgb(255,255,255, .2);
}

.vie_etudiante_evenement a {
    color: #90c3ec;
}

.vie_etudiante_evenement a:hover {
    color: white;
}

.vie_etudiante_evenement {
    background-color: #005795;
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, .25);
    color: white;
}

.vie_etudiante_evenement_php {

    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);

}

.profil h1{
    flex: 75%;
    margin-left: 20px;
    font-size: 40px;
    color: #005795;
    font-weight: bold;
}

.cases-form{
    border-bottom: 1px solid rgb(255,255,255, .2);
}

/* Bannière */
.banner {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

/*Vidéo en arrière-plan */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    width: 100vw; /* Prend toute la largeur de la fenêtre */
    height: 100vh; /* Prend toute la hauteur de la fenêtre */
}

/* Overlay pour améliorer la lisibilité du texte */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.63); /* Ajuste l'opacité si nécessaire */
}

/* Contenu de la bannière */
.banner-content {
    position: absolute;
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    color: #005795;
  }

/* Logo aligné à gauche */
.logo-containerEilco {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.logoEilco {
    width: 333px;
    height: auto;
}

.logo-containerUlco {
    flex: 0.4;
    display: flex;
    justify-content: flex-end;
}

.logoUlco {
    width: 98px;
    height: auto;
}

nav ul label, #toggle, #toggle-campus {
    display: none;
}

.pages-mobile, .deroulant-mobile{
    display: none;
}

.banner-text {
    flex: 0.6; /* Réduit l'espace pris par le texte */
    text-align: center;
}

/* Texte aligné à droite */
.texte_header {
    flex: 2;
    text-align: right;
}

/* Boutons sous la bannière */
.button-container {
    text-align: center;
    margin-top: -41px;
    margin-bottom: 41px;
    position: relative;
  }


.button-container-notif {
    position: relative;
    display: inline-block;
}
.badge {
    position: absolute;
    top: 2px;
    right: 4.5px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20%;
    padding: 3px 6px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.button-with-badge {
    position: relative;
}

.button-with-badge.active {
    position: relative;
    background-color: #00406b; /* Plus foncé */
}
.button-with-badge.active:hover {
    position: relative;
    background-color: #003a61; /* Encore plus foncé au survol */
}

.badge-header {
    position: absolute;
    top: -10px;
    right: 5px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20%;
    padding: 3px 6px;
    height: 15px;
    line-height: 15px;
    text-align: center;
}

.retour-button {
    background-color: #005795;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-left: 6px;
    z-index: 1;
    position: relative;
}

.retour-button:hover {
    background-color: #07324a;
}

.bouton-vert {
    margin: 10px 0;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #28a745;
    color: #ffffff;
    border:none;
    border-radius: 4px;
    width: 325px;
}

.bouton-rouge {
    margin: 10px 0;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #dc3545;
    color: #ffffff;
    border:none;
    border-radius: 4px;
    width: 325px;
}

.valid-container {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 95%;
}

.valid-container input[type="text"] {
    flex: 1; /* L'input prend toute la place disponible */
}

.valid-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    gap: 5px;
}

/* Boutons */
.formbutton {
    background-color: #005795; /* Bleu vif */
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    display: block;
    width: 100%;
    margin-top: 15px;
}

.formbutton:hover {
    background-color: #07324a;
}

.formbutton:active {
    transform: scale(0.98); /* Effet de pression */
}

/*---------------------Calendrier---------------------------*/

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: -4.8px;
  }

.nav-calendrier a:hover {
    color: #2f85c3;
}

table {
    width: 100%;
    border-collapse: collapse;
}
th {
    background-color: #005795;
    color: white;
}
td {
    width: 14.28%;
    height: 100px;
    vertical-align: top;
    border: 1px solid #ccc;
    padding: 5px;
}
.day-number {
    font-weight: bold;
}
.event {
    margin-top: 5px;
    padding: 3px;
    border-radius: 5px;
    font-size: 0.9em;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    cursor: pointer;
}

.nav-calendrier {
    text-align: center;
    margin-bottom: 10px;
}
.nav-calendrier a {
    text-decoration: none;
    margin: 0 10px;
    color:  #005795;
    font-weight: bold;
}
.calendar-title h2 {
    text-align: center;
}
.calendar-title {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #005795;
}

.legend {
    margin-top: 20px;
    text-align: center;
}
.legend-item {
    display: inline-block;
    margin: 5px 15px;
    font-size: 1em;
    vertical-align: middle;
}
.legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
    border: 1px solid #aaa;
}

/*-----------------------index-----------------*/


.page-accueil {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.calendrier-wrapper {
    width: 90%;
    max-width: 1000px;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-radius: 10px;
}

h2 {
    text-align: center;
    color: #005795;
}

/*-------------------export-----------------------*/

.column-selection {
    margin: 0 auto;
    border-collapse: collapse;
    text-align: center;
}

.column-selection td {
    padding: 10px;
    height: 20 px;
    text-align: center;
    vertical-align: middle;
}

.column-selection td:first-child {
    text-align: center;
    vertical-align: middle;
    width: 80%;
    height: 20px;
}

.column-selection td:last-child {
    text-align: center;
    vertical-align: middle;
    width: 20%;
    height: 20px;
}

.lien{
    color: blue !important;
}

.lien:hover{
    color: rgb(99, 99, 255);
}

.bouton-suppression-membre{
    color: red!important;
    font-style: normal!important;
}

.bouton-suppression-membre:hover{
    color: rgb(255, 123, 123)!important;
}

.delete-button{
    padding: 10px;
    background-color: #ff0000;
    color: #ffffff;
    border:none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    width: 100%;
    margin-top: 10px;
}

/* --------------------------------------------------------------------- */

@media (max-width: 768px) { 
    .center-case {
        width: 95%;
        margin: auto;
        padding: 20px;
    }

    header h1, p {
        display: none;
    }

    .logoEilco {
        width: 150px;
        height: auto;
    }

    .logoUlco {
        height: 75px;
        width: 75px;
    }

    .banner {
        height: 150px;
    }

    nav {
        height: 60px;
    }

    nav ul li {
        display: none;
    }

    nav ul label {
        width: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        font-size: 40px;
        color: white;
        cursor: pointer;
    }

    .div-deroulant {
        display: flex;
        color: white;
        padding: 10px 0px;
    }

    nav ul .pages-mobile, .deroulant-mobile {
        display: none;
        flex-direction: column;
        background: #005795;
        height: auto;
    }

    .pages-mobile li {
        display: block;
    }

    #toggle:checked + .pages-mobile {
        display: flex;
    }

    nav ul li{
        float: left;
        width: 100%;
        text-align: left;
        position: relative;
        padding: 0px 10px;
    }

    .button-container{
        display: none;
    }

    nav ul li a {
        background: #005795; 
    }

    nav a:hover {
        background-color: #005795;
    }
    
    .sous{
        background-color: #005795;
    }

    .pages-mobile form {
        margin: 0;
        padding: 0;
    }
    
    .pages-mobile form button,
    .pages-mobile .login-button {
        all: unset; /* Réinitialise tous les styles hérités */
        display: block;
        width: 100%;
        padding: 10px 0px;
        background-color: #005795;
        color: white;
        cursor: pointer;
        font-size: inherit;
        text-align: left;
    }
    .pages-mobile .login-button:hover {
        background-color: #004c85;
    }

    .super-container{
        padding: 0px;
    }

    .container-fiche {
        padding: 15px;
        max-width: 700px;
        margin-top: 10px;
        width: 95%;
        box-sizing: border-box;
    }

    .filter-form{
        max-width: 700px;
        width: 95%;
        padding: 10px;
    }

    .elt-liste-fiches {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 0;
    }

    .elt-liste-fiches div {
        width: 100%; /* ou auto */
    }

    .elt-liste-fiches p, .container-fiche p {
        text-align: center;
        margin: 5px 0;
        line-height: 1.4;
        height: auto !important;
        display: block;
    }

    .container-fiche .head{
        display:none;
    }

    .retour-button{
        display:none;
    }

    .login-button{
        margin: 10px;
    }

    .center-case{
        width: 100%;
    }

    .center-box{
        width: 95%;
        padding: 10px;
    }
}