body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #000;
}

.center {text-align: center;}
.gras {font-weight: bold;}
.small {font-size: 10pt;}
.xsmall {font-size: 8pt;}
.titre_resultats{ font-size: 14pt;}
.italic { font-style:italic; }

.lien_no_deco {
    text-decoration: none;
}

.rouge {color:#FF0000;}
.orange {color:#FF6600;}
.blanc {color:#FFFFFF;}
.vert {color:#0BBF18;}
.bleu {color:#2494b5;}
.jaune {color:#FFFF00;}
.noir {color:#000;}

.titre-img {
    height: 100%;
    max-height: 60px;
}
.img-va-ttop {
    vertical-align: text-top;
}

@media (max-width: 700px) {
    .titre-img {
        height: 50%; /* Réduit la taille de l'image à 50% de sa taille originale */
        max-height: 50px; /* Redimensionne l'image pour qu'elle soit deux fois plus petite */
    }
    .hide-li { 
        display: none;
    }
}

a.link:link {text-decoration: none; color: inherit;}
a.link:active {text-decoration: none;}
a.link:visited {text-decoration: none; color: inherit;}
a.link:hover {text-decoration: none;}

a.link_part:link {text-decoration: none; color: #2494b5;}
a.link_part:active {text-decoration: underline;}
a.link_part:visited {text-decoration: none; color: #2494b5;}
a.link_part:hover {text-decoration: underline;}

a.lost_password {text-decoration: none; color: #FFF;}
a.lost_password:active {text-decoration: none;}
a.lost_password:visited {text-decoration: none; color: #FFF;}
a.lost_password:hover {text-decoration: underline;}

.title {
    font-family: 'Futura PT Book', sans-serif;
    font-size: 35px;
    font-weight: normal;
    color: #00AEEF;
    text-align: center;
    line-height: 0.9;
}

.title .line-1 {
    display: block;
    padding-right: 75px; /* Décalage par rapport à la ligne 1 */
}

.title .line-2 {
    display: inline-block;
    padding-left: 75px; /* Décalage par rapport à la ligne 1 */
    text-align: center;
}

.title .first-letter {
    font-weight: 800;
}

.title .sub-text {
    font-size: 0.5em;
    vertical-align: top;
    margin-right: -5px;
}

.lost_password {
    font-size: 0.9em;
    line-height: 0.9;
    margin-top: 0;
    text-align: right;
}

/* HEADER */
.header {
    /* text-align: center; */
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #000;
    color: #20b1e6;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding-top: 5px;
    transition: all 0.4s;
}

.header_space {
	padding-top: 80px;
}

/* Logo */
.logo {
    /* margin-top: 8px;
    margin-bottom: 8px; */
    margin: 0;
}
.logo-image {
    height: 55px;
}

/* Menu de navigation */
.menu {
    display: flex;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}
.menu a.active {
        color: #fff; /* Text color set to white */
        text-decoration: none; /* Remove underline */
        position: relative; /* Needed to position the after pseudo-element */
}
.menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px; /* Position the glow 10px below the text */
    width: 100%;
    height: 3px; /* Height of the glow effect */
    background: rgba(32, 177, 230); /* Blue glow color */
    /*filter: blur(2px); *//* Blur to create the glowing effect */
    z-index: -1; /* Place it behind the text */
}

.menu a:hover {
    color: #aaa;
}

.user-logon-container {
    position: relative;
    display: inline-block;
}

.user-logon {
    cursor: pointer;
    width: 30px; /* Ajustez la taille de l'image si nécessaire */
}
.user-logon-container.mobile-logout {
    display: none; /* Afficher directement le lien "Se déconnecter" */
}  

/* Cacher l'infobulle par défaut */
.tooltip {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 0;
    position: absolute;
    /*bottom: 100%; */ /* Positionner au-dessus de l'image */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

/* Afficher l'infobulle lors du survol */
.user-logon-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Styles pour la version mobile */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
}

.burger-menu span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin: 4px;
    transition: all 0.3s ease;
}

/* Styles lorsque le menu est ouvert (actif) */
.burger-menu.open span:nth-child(1) {
    transform: rotate(45deg); /* Premier trait : rotation de 45° */
    position: relative;
    top: 11px; /* Décalage vers le bas */
}

.burger-menu.open span:nth-child(2) {
    opacity: 0; /* Masque le deuxième trait */
}

.burger-menu.open span:nth-child(3) {
    transform: rotate(-45deg); /* Troisième trait : rotation de -45° */
    position: relative;
    top: -11px; /* Décalage vers le haut */
}


/* Media query pour mobile */
@media (max-width: 700px) {
    /* Place the burger menu to the left and center the logo */
    .header {
        justify-content: space-between;
        padding: 0 20px;
    }
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px; /* Position en dessous du header */
        left: 0;
        width: 100%;
        background-color: #000;
        padding: 10px 0 0 10px;
    }
    .user-logon-container {
        display: none; /* Cacher l'icône de l'utilisateur */
    }
    
    .user-logon-container.mobile-logout {
        display: block; /* Afficher directement le lien "Se déconnecter" */
    }    

    .logo {
        flex-grow: 1;
        display: flex;
        justify-content: center;
        padding: 5px;
        margin-right: 40px;
    }
    
    .menu ul {
        flex-direction: column;
        gap: 10px;
        align-items: normal;
    }
    .menu li {
        padding-top: 3px;
        padding-bottom: 3px;
    }

    .burger-menu {
        display: flex;
    }

    /* Affiche le menu en mode responsive quand actif */
    .menu.active {
        display: flex;
    }
}

/* FOOTER */
#FooterBar {
	width: 100%;
	height: 28px;
	background: #000;
    font-size: 13px;
    color: #20b1e6;
    font-weight: bold;
}

#Footer {
	width: 100%;
	line-height: 28px;
	text-align: center;	
	z-index: 999;
	position: fixed;
	bottom: 0px;
}

A.footer_link:link {color:#20b1e6; font-weight: bold; text-decoration: none}
A.footer_link:visited {color: #20b1e6;font-weight: bold;text-decoration: none}
A.footer_link:hover {color:#FFF; text-decoration:underline}

.footer_separator{
    padding-left: 10px;
    padding-right: 10px;    
}

/* INDEX */
/* Style principal pour la forme de connexion */
 .loginForm {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* Style pour le conteneur du formulaire */
.loginForm div {
    background-color: #000;
    padding: 20px;
    flex-direction: column;
    width: 100%;
    max-width: 400px; /* Limite la largeur sur grands écrans */
    border: 2px solid #20b1e6;
    border-radius: 15px;
}

/* Titre du formulaire */
.loginForm h1 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #FFF;
}

/* Style pour le formulaire */
.loginForm form {
    display: flex;
    flex-direction: column;
}

/* Style pour les champs de saisie */
.loginForm form input {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #20b1e6;
    border-radius: 6px;
    width: 100%;  /* Les champs prennent toute la largeur disponible */
    box-sizing: border-box;
}

/* Style pour le bouton de soumission */
.loginForm form input[type='submit'] {
    background-color: #20b1e6;
    border: 0;
    color: #fff;
    padding: 12px 0;
    cursor: pointer;
    margin-top: 15px;
    font-size: 1.1em;
}

.loginForm form input[type='submit']:hover {
    color: #000;
}

.loginForm label {
    font-size: 1.2em;
}

/* Style principal pour la forme de connexion */
#maintenance {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Media Query pour les petits écrans */
@media (max-width: 700px) {
    .loginForm {
        padding: 20px;
    }

    .loginForm div {
        width: 100%; /* Utilise 100% de la largeur sur petits écrans */
        max-width: none;
        padding: 15px;
    }

    .loginForm h1 {
        font-size: 1.2em;  /* Taille du titre plus petite */
    }

    .loginForm label {
        font-size: 0.9em;
    }

    .loginForm form input {
        padding: 12px;
    }

    .loginForm form input[type='submit'] {
        padding: 15px 0;
    }
    #Footer {
        display: none;
    }
}

.erreurMsg {
    color: #f00;
    margin: 10px 0;
    text-align: center;
}

.maintenance {
	height: 70px;
	margin-top: 30px;
}

.container {
    text-align: center;
}
h2 {
    margin-bottom: 5px;
}
.code-input {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 10px;
}
.code-input input {
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}
.code-input input:focus {
    border-color: #20b1e6;
    outline: none;
    box-shadow: 0 0 5px rgba(32, 177, 230, 0.5);
}
.submit-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #20b1e6;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}
.submit-btn:hover {
    background-color: #20b1e6;
}
.return_button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    border: 1px solid #AAA;
    background-color: #FFF;
    color: #AAA;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.return_button:hover {
    background-color: #FFF;
}

.titreMois{
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 1.4em;
    font-weight: bold;
}

/* Effet de transition pour l'élément #editable-course et #editable-lieu */
#editable-course, #editable-lieu, #editable-infoClub, #editable-url {
    transition: all 0.3s ease;
}

/* Effet quand le champ devient editable */
#editable-course input, #editable-lieu input, #editable-infoClub input, #editable-url input {
    min-width: 150px; /* Largeur minimale pour éviter que l'input soit trop petit */
    width: fit-content; /* Ajuste la largeur en fonction du contenu */
    white-space: nowrap; /* Empêche le texte de se couper sur plusieurs lignes */
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #fff;
    /*font-weight: bold;*/
    color: #333;
    outline: none;
    opacity: 0;  /* Commence avec une opacité à 0 pour l'animation */
    transition: opacity 0.3s ease; /* Transition fluide lors de l'apparition */
}

/* Animation de l'apparition de l'input */
#editable-course input, #editable-lieu input, #editable-infoClub input, #editable-url input {
    opacity: 1; /* L'input devient visible après la transition */
}

/* Effet de focus élégant sur le champ d'entrée */
#editable-course input:focus, #editable-lieu input:focus, #editable-infoClub input:focus, #editable-url input:focus {
    border-color: #3498db; /* Bordure bleue lors du focus */
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5); /* Légère ombre portée */
}

/* Style pour le texte éditable normal (avant transformation en input) */
#editable-course {
    font-weight: bold;
    color: #333;
    cursor: pointer;
}
#editable-lieu, #editable-infoClub, #editable-url{
    font-weight: normal;
    color: #333;
    cursor: pointer;
}

/* Style de l'icône de modification */
.edit-icon {
    width: 11px;
    height: 11px;
    margin-left: 5px;
    vertical-align: text-top;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* Lorsque l'élément est survolé */
#editable-course:hover .edit-icon, #editable-lieu:hover .edit-icon, #editable-infoClub:hover .edit-icon, #editable-url:hover .edit-icon {
    opacity: 1; /* L'icône devient plus visible au survol */
}

/* Effet au focus sur le texte cliquable */
#editable-course:focus, #editable-lieu:focus, #editable-infoClub:focus, #editable-url:focus {
    outline: none; /* Évite la bordure par défaut du navigateur */
}

/* Effet d'agrandissement lors de l'apparition de l'input */
#editable-course input, #editable-lieu input, #editable-infoClub input, #editable-url input {
    transform: scale(0.8); /* Commence petit */
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#editable-course input, #editable-lieu input, #editable-infoClub input, #editable-url input {
    transform: scale(1); /* L'input grandit à sa taille normale */
    opacity: 1;
}

.bloc-date {
    padding-top: 8px;
}
.bloc-lieu {
    margin-top: 15px;
}
.bloc-infoClub {
    padding-top: 20px;
    padding-left: 5px;
    padding-right: 5px;
}
.bloc-url {
    margin-top: 10px;
}

/* COURSES */
.lien_courses {
    text-decoration: none;
}

.container {
    display: flex;
    flex-direction: column; /* Pour empiler les éléments en colonne */
    align-items: center;
    /*flex-wrap: wrap;*/
    /*justify-content: center;*/
    /*padding: 20px;*/
}

.course {
    background: #fff;
    border: 2px solid #20b1e6;
    border-radius: 10px;
    /* box-shadow: 0 2px 4px rgb(255, 255, 255); */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px;
    padding: 15px;
    /* width: 80%;*/
    /*width: calc(33% - 40px);*/
    box-sizing: border-box;
    /*transition: transform 0.2s;*/
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.course:hover {
    transform: scale(1.05);
}

.course h2 {
    margin-top: 0;
    color: #20b1e6;
}

.course p {
    margin: 5px 0;
    color: #20b1e6;
}

.date {
    text-align: center;
    line-height: .7em;
    font-size: .67em;
    font-weight: 700;
    height: 6em;
    width: 6em;
    background: #000;
    color: #fff;
    float: left;
    flex-direction: column;
    /*box-sizing: border-box;*/
    display: flex;
    max-height: 100%;
    place-content: center space-evenly;
    align-items: center;
    border-radius: 50%;
    border: .4em solid #20b1e6;
    position: relative;
    z-index: 10;
    font-family: Arial,Tahoma,sans-serif;
    text-transform: uppercase;
}
.jour {
    font-size: 2.5em;
    font-weight: 700;
}

.epreuve {
    border: .15em solid #20b1e6;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 5px;
    font-weight: bold;
    color: #000;
    background-color: #f0f0f0;
    position: relative;
    /* Version black
    width: 60px;
    height: 60px;
    color: #FFF;
    background-color: #000;
    */
}

.epreuves-container {
    display: flex;
    gap: 5px;
    /*margin-top: 7px;*/
    justify-content: center;
}

.coursesPG {
    /*border: 1px solid #000;*/
    width: 100px;
    display: flex;
    justify-content: center;
    padding-right: 5px;
    align-items: center;
}
.coursesPC {
    /*border: 1px solid #000;*/
    width: 500px;
    color: #20b1e6;
}
.coursesPD {
    /*border: 1px solid #000;*/
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.participe {
    font-size: 8pt;
    position: absolute;  /* Position absolue par rapport à .epreuve */
    top: 0;           /* Aligne le texte en bas de .epreuve */
    left: 50%;           /* Place le texte à 50% de la largeur de .epreuve */
    transform: translateX(-50%);
}
.img-participe {
    width: 10px;
    height: 10px;
    content: url('images/valid.png');
    padding-top: 2px;
}

.nbInscrits {
    font-size: 8pt;
    position: absolute;  /* Position absolue par rapport à .epreuve */
    bottom: 0;           /* Aligne le texte en bas de .epreuve */
    left: 50%;           /* Place le texte à 50% de la largeur de .epreuve */
    transform: translateX(-50%);
}

.img-run{
    width: 10px;
    height: 10px;
    padding-right: 2px;
}
.img-run-red {
    content: url('images/run-red.png');
}
.img-run-orange {
    content: url('images/run-orange.png');
}
.img-run-green {
    content: url('images/run-green.png');
}
.img-run-black {
    content: url('images/run-black.png');
}

#filtreCourse{
    padding: 8px;
    width: 300px;
    max-width: 90%;
    border: 1px solid #ccc;
    border-radius: 5px;
    /*margin-bottom: 20px;*/
    font-size: 16px;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .container {
        align-items: stretch;
        padding: 14px;
    }
    .course {
        /*width: calc(50% - 40px);*/
        flex-direction: column;
        margin-left: auto;
        margin-right: auto;
    }
    .coursesPG {
        width: 100%;
    }
    .coursesPC {
        width: 100%;
    }
    .coursesPD {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .course h2 {
        margin: 10px;
    }
    .edit-icon {
        display: none;
    }
}

/* RESULTATS */
#resultats {
	width: 50%;
	margin-left: auto;
	margin-right: auto;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	/* background-color: #000000; */
	padding: 5px;
	border: 2px solid #20b1e6;
	background-color: #FFF;
}

#resultats_club {
    width: auto; /* Allows the table to adjust based on content */ 
    max-width: 1000px; /* Adjust this value as needed */
    margin: 0 auto; /* Center the table */
	border-radius: 5px;
	-webkit-border-radius: 5px;
	/* background-color: #000000; */
	padding: 5px;
	border: 2px solid #20b1e6;
	background-color: #FFF;
}

.total-row {
    font-weight: bold;
    text-align: center;
}

@media (max-width: 1536px) {
    #resultats {
        width: 85%; /* Ajuster la largeur pour les écrans plus petits */
    }
}
table.dataTable td {
	font-size: 0.9em;
  }

.bouton_retour {
	background: linear-gradient(to bottom, rgba(230, 230, 230, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr="rgba(230, 230, 230, 0.1)", EndColorStr="rgba(0, 0, 0, 0.1)");
	padding: 0.5em 1em;
	border-radius: 8px;
	color: #FFF;
	background-color: #20b1e6;
	border: 2px solid #FFF;
	cursor: pointer;
	margin-bottom: 20px;
}

.bouton_retour:hover {
    color: #000;
	font-weight: bold;
}

a.buttons-collection {
	margin-left: 1em;
}

#idt-table_filter .form-control{
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICB2ZXJzaW9uPSIxLjEiICAgaWQ9InN2ZzQ0ODUiICAgdmlld0JveD0iMCAwIDIxLjk5OTk5OSAyMS45OTk5OTkiICAgaGVpZ2h0PSIyMiIgICB3aWR0aD0iMjIiPiAgPGRlZnMgICAgIGlkPSJkZWZzNDQ4NyIgLz4gIDxtZXRhZGF0YSAgICAgaWQ9Im1ldGFkYXRhNDQ5MCI+ICAgIDxyZGY6UkRGPiAgICAgIDxjYzpXb3JrICAgICAgICAgcmRmOmFib3V0PSIiPiAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9zdmcreG1sPC9kYzpmb3JtYXQ+ICAgICAgICA8ZGM6dHlwZSAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4gICAgICAgIDxkYzp0aXRsZT48L2RjOnRpdGxlPiAgICAgIDwvY2M6V29yaz4gICAgPC9yZGY6UkRGPiAgPC9tZXRhZGF0YT4gIDxnICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLC0xMDMwLjM2MjIpIiAgICAgaWQ9ImxheWVyMSI+ICAgIDxnICAgICAgIHN0eWxlPSJvcGFjaXR5OjAuNSIgICAgICAgaWQ9ImcxNyIgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNjAuNCw4NjYuMjQxMzQpIj4gICAgICA8cGF0aCAgICAgICAgIGlkPSJwYXRoMTkiICAgICAgICAgZD0ibSAtNTAuNSwxNzkuMSBjIC0yLjcsMCAtNC45LC0yLjIgLTQuOSwtNC45IDAsLTIuNyAyLjIsLTQuOSA0LjksLTQuOSAyLjcsMCA0LjksMi4yIDQuOSw0LjkgMCwyLjcgLTIuMiw0LjkgLTQuOSw0LjkgeiBtIDAsLTguOCBjIC0yLjIsMCAtMy45LDEuNyAtMy45LDMuOSAwLDIuMiAxLjcsMy45IDMuOSwzLjkgMi4yLDAgMy45LC0xLjcgMy45LC0zLjkgMCwtMi4yIC0xLjcsLTMuOSAtMy45LC0zLjkgeiIgICAgICAgICBjbGFzcz0ic3Q0IiAvPiAgICAgIDxyZWN0ICAgICAgICAgaWQ9InJlY3QyMSIgICAgICAgICBoZWlnaHQ9IjUiICAgICAgICAgd2lkdGg9IjAuODk5OTk5OTgiICAgICAgICAgY2xhc3M9InN0NCIgICAgICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLjY5NjQsLTAuNzE3NiwwLjcxNzYsMC42OTY0LC0xNDIuMzkzOCwyMS41MDE1KSIgICAgICAgICB5PSIxNzYuNjAwMDEiICAgICAgICAgeD0iLTQ2LjIwMDAwMSIgLz4gICAgPC9nPiAgPC9nPjwvc3ZnPg==);
    background-repeat: no-repeat;
    background-color: #fff;
    background-position: 0px 3px !important;
}

table.dataTable td.dt-control:before {
	font-weight: bold;
}

.particularite {
	background-color: #d1cfe7;
	border: 1px #3c2de7 solid;
    border-radius: 4px;
}

/* AGENDA */
#agenda {
	width: 1100px;
	margin-left: auto;
	margin-right: auto;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	background-color: #FFF;
	padding: 5px;
	position: relative;
	border: 2px solid #20b1e6;
}

.demo-topbar + #external-events { /* will get stripped out */
	top: 60px;
}

#calendar-container {
    position: relative;
    z-index: 1;
    /* margin-left: 160px; */
}

#calendar {
    max-width: 1100px;
    margin: 0px auto;
}

.fc-daygrid-event {
	padding-left: 2px;
	padding-right: 2px;
}

.qtip.tooltips {
	max-width: none;
}

#legend {
    margin-top: 10px;
    font-size: 14px;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
}
.color-box {
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border-radius: 2px;
    display: inline-block;
}
.color-box.past {
    background-color: #8f8f8f;
}
.color-box.upcoming {
    background-color: #007bff;
}
.color-box.registered {
    background-color: #28a745;
}

/* Styles pour le modal */
#eventModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: #000;
    color:#20b1e6;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#eventForm input, #eventForm button {
    margin-top: 10px;
    width: 100%;
}

/* TABLEAU de BORD */

.sec_maj {
	margin-bottom: 5px;
}

.bandeau {
    width: 80%;              /* Le bandeau occupe toute la largeur */
    background-color: #FFF;   /* Couleur de fond */
    color: #000;             /* Couleur du texte */
    /*padding: 10px 0;       */   /* Espacement vertical */
    text-align: center;       /* Centrer le texte horizontalement */
    overflow: hidden;         /* Empêcher le texte de déborder */
    position: relative;       /* Nécessaire pour positionner le texte */
    border-radius: 10px;
    box-shadow: 0px 0px 5px #20b1e6, 0px 0px 5px #20b1e6;
    margin: auto;
}
  
.bandeau span {
    font-size: 1em;          /* Taille du texte */
    white-space: nowrap;      /* Empêche le texte de se casser */
    animation: defilement 10s linear infinite; /* Animation de défilement */
}
  
@keyframes defilement {
    0% {
      transform: translateX(100%);  /* Commence à droite */
    }
    100% {
      transform: translateX(-100%); /* Termine à gauche */
    }
}

.cadreTB {
    display: flex;
    justify-content: center; /* Centre le contenu horizontalement */
    padding: 20px;
    gap : 10px;
}

/* Bloc utilisateur à gauche */
.user-info {
    width: 320px;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #20b1e6;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /*position: fixed;*//* Position fixe pour rester en place */
    /*top: 118px; /* Décalage depuis le haut */
    /*left: 440px;*/ /* Décalage depuis le côté gauche */
}

.user-info h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.user-part {
    width: 320px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #20b1e6;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.user-part ul{
    margin: 0;
    padding-left: 20px;
}
.user_part_title_next_part{
    font-weight: bold;
    padding-bottom: 5px;
}

/* Liste des activités */
.activity-list {
    /*margin-left: 320px; *//* Décale les activités à droite du cadre utilisateur */
    /* padding: 15px; */
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 600px; /* Largeur fixe pour la liste d'activités */
    min-height: 100vh;
    /* margin-top: 100px; */ /* Décalage pour prendre en compte la hauteur de l'en-tête */
}

/* Style pour chaque carte d'activité */
.activity-card {
    /*width: 100%;*/
    padding: 15px;
    border: 2px solid #20b1e6;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    /*margin: 0 auto;*/ /* Centre les cartes d'activité */
}

.titre-TB-course  {
    font-size: 16px;
    margin-bottom: 5px;
}

/* .activity-card p {
    font-size: 14px;
    margin: 5px 0;
} */

.util_chiffres {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.util_chiffres div {
    flex: 1;
    border-left: 1px solid #f2f2f0;
    border-right: 1px solid #f2f2f0;
    padding: 10px;
    font-size: 10pt;
}

.util_chiffres div:first-child {
    border-left: none; /* Pas de bordure gauche pour le premier */
}

.util_chiffres div:last-child {
    border-right: none; /* Pas de bordure droite pour le dernier */
}

.util_chiffres span {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 8px;
}

.bloc-TB-results {
    display: flex;
    flex-direction: row;
    padding-top: 10px;
}

.util_infos_saison{
    padding-bottom: 10px;
}

.titre-TB-course-nom {
    font-size: 1rem;
    font-weight: bold;
    color: #20b1e6;
}
.titre-TB-course-date{
    font-size: 0.7rem;
    padding-bottom: 5px;
}
.titre-TB-course-lieu{
    font-size: 0.8rem;
    padding-top: 5px;
    font-weight: bold;
}
.bloc-TB-result-distance{
    border-right: 1px solid #e1e1e1;
    padding-right: 30px;
}
.bloc-TB-result-titre{
    font-size: 0.9rem;

}
.bloc-TB-result-value{
    font-size: 1rem;
    font-weight: bold;
}
.bloc-TB-result-temps{
    border-right: 1px solid #e1e1e1;
    padding-left: 30px;
    padding-right: 30px;
}
.bloc-TB-result-points{
    padding-left: 30px;
    padding-right: 30px;
}
.bloc-TB-classement{
    position: absolute;
    right: 0;
    padding-right: 10px;
    font-size: 0.9rem;
    margin-top: -10px;
}
.img-classement-scratch{
    width: 13px;
    height: 13px;
    /*padding-right: 3px;*/
    vertical-align: middle;
    content: url('images/medal.png');
}
.img-classement-scratch-or{
    width: 13px;
    height: 13px;
    /*padding-right: 3px;*/
    vertical-align: middle;
    content: url('images/medal_gold.png');
}
.img-classement-scratch-argent{
    width: 13px;
    height: 13px;
    /*padding-right: 3px;*/
    vertical-align: middle;
    content: url('images/medal_silver.png');
}
.img-classement-scratch-bronze{
    width: 13px;
    height: 13px;
    /*padding-right: 3px;*/
    vertical-align: middle;
    content: url('images/medal_bronze.png');
}
.titre-TB-course-classement{
    font-size: 0.9rem;
    vertical-align: middle;
    color: #6e6e6e;
}
.user-part-epreuve{
    font-size: 0.8rem;
}
.user-part-course{
    font-size: 0.8rem;
    color: #20b1e6;
}
.user-part-date{
    font-size: 0.8rem;
}

@media (max-width: 700px) {
    .cadreTB {
        display: flex;
        flex-direction: column; /* Garde les groupes en colonne */
    }
    .user-info{
        width: auto; 
    }
    .user-part{
        width: auto; 
    }
    .activity-list {
        width: 100%; 
    }
    .bloc-TB-result-distance{
        padding-right: 25px;
    }
    .bloc-TB-result-temps{
        padding-right: 25px;
        padding-left: 25px;
    }
    .bloc-TB-result-points{
        padding-left: 25px;
        padding-right: 25px;
    }
}

/* PARAMETRES - UTILISATEURS */
#utilisateurs {
	width: 50%;
	margin-left: auto;
    margin-right: auto;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	background-color: #FFF;
    border: 2px solid #20b1e6;
	padding: 5px;
}

/* PARAMETRES - REGLAGES */

#reglages {
	width: 60%;
	margin-left: auto;
    margin-right: auto;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	background-color: #FFF;
	padding: 5px;
}

/* PARTICIPATIONS */
#participations {
    display: flex;
    flex-direction: column; /* Garde les groupes en colonne */
    align-items: center; /* Centre les groupes horizontalement */
    gap: 10px;
}

.epreuves_container {
    display: flex; /* Aligne les épreuves sur une seule ligne */
    flex-direction: row; /* Les épreuves sont alignées sur une ligne */
    gap: 10px; /* Espace entre les épreuves */
    flex-wrap: wrap;
    justify-content: center;
}

.participation_container {
    display: flex; /* Affiche l'épreuve et les inscrits en colonne */
    flex-direction: column; /* Contenu en colonne */
    align-items: center; /* Centre les éléments horizontalement */
}

.participation_container2 {
    display: flex; /* Affiche l'épreuve et les inscrits en colonne */
    flex-direction: row; /* Contenu en colonne */
    align-items: center; /* Centre les éléments horizontalement */
    padding-bottom: 10px;
}

.participation_epreuve {
    display: flex; /* Aligne les éléments d'épreuve verticalement */
    flex-direction: column; /* Contenu en colonne */
    align-items: center; /* Centre les éléments horizontalement */
    width: 300px; /* Largeur fixe pour les épreuves */
    padding: 15px; /* Espacement intérieur */
    border: 2px solid #20b1e6; /* Bordure pour le cadre de l'épreuve */
    border-radius: 8px; /* Coins arrondis */
    background-color: #fff; /* Couleur de fond */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre légère */
}

.resultats {
    width: 100%; /* Occupe toute la largeur du cadre de l'épreuve */
    padding: 10px; /* Espacement à l'intérieur */
    text-align: center; /* Centre le texte */
    font-size: 1.1rem;
}

.participation_inscrits {
    padding: 5px;
    border: 2px solid #20b1e6; /* Bordure pour les inscrits */
    border-radius: 8px; /* Coins arrondis */
    background-color: #fff; /* Couleur de fond */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: auto; /* Largeur dynamique */
    min-width: 100px; /* Largeur minimale pour le cadre */
    text-align: center; /* Centre le texte des inscrits */
    /*margin-top: 15px;*/
}

.participation_liste_inscrits {
    padding: 5px;
    margin-top: 5px;
    margin-left: 10px;
}

.participation-button {
    display: inline-block;
    padding: 6px 20px; /* Taille du bouton */
    font-size: 16px; /* Taille du texte */
    font-weight: normal;
    color: #fff; /* Couleur du texte */
    background: #20b1e6;
    border-radius: 8px; /* Bords arrondis */
    text-decoration: none; /* Enlever le soulignement */
    text-align: center; /* Centrer le texte */
    transition: all 0.3s ease; /* Animation de transition pour les effets */
    cursor: pointer; /* Curseur pointer pour l'ergonomie */
    border: 1px solid #FFF;
}
.participation-button-red {
    background: red !important;
}

.participation-button:hover {
    background: #000;
    border: 1px solid #20b1e6;
}

.placeholder {
    color: gray;
    font-style: italic;
    font-size: 14px;
}

@media (max-width: 700px) {
    #participations {
        display: flex;
        flex-direction: column; /* Garde les groupes en colonne */
    }
    .epreuves_container {
        display: flex; /* Aligne les épreuves sur une seule ligne */
        flex-direction: column;
        gap: 10px; /* Espace entre les épreuves */
    }
}

/* INSCRIPTION */
#inscriptions {
	width: 50%;
	margin-left: auto;
	margin-right: auto;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	/* background-color: #000000; */
	padding: 5px;    
	border: 2px solid #20b1e6;
    background-color: #FFF;
	/* color: #fff; */
}

.inscription-info {
    position: relative;
}

td.editor-edit button,
td.editor-delete button {
    background: transparent;
    border: none;
    color: inherit;
    background-image: url('images/trash.png');
    background-size: cover;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

@media (max-width: 700px) {
    #inscriptions {
        width: auto;
        margin-left: 10px;
        margin-right: 10px;
    }
    .hide-button { 
        display: none !important;
    }
}

.info_club{
    color: #959595;
    font-size: 0.8em;
    /* font-style: italic; */
    margin: 5px;
}

.h2_max{
    font-size: 1.5em;
}
.h2_moy{
    font-size: 1.2em;
}
.h2_min{
    font-size: 1.0em;
}

/* VERIFICATION CODE */
.verifCode {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    text-align: center;
}

/* RESET PASSWORD */
.resetPassword{
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}
/* Style pour les champs de saisie */
.resetPassword form input {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #20b1e6;
    border-radius: 6px;
    width: 100%;  /* Les champs prennent toute la largeur disponible */
    box-sizing: border-box;
}
/* Style pour le bouton de soumission */
.resetPassword form input[type='submit'] {
    background-color: #20b1e6;
    border: 0;
    color: #fff;
    cursor: pointer;
    margin-top: 15px;
    font-size: 1.1em;
}

.resetPassword form input[type='submit']:hover {
    background-color: #000;
}
.info_mdp{
    padding-bottom: 10px;
}

/* STATISTIQUES */

#graph1 {
    /*width: 1200px;*/
    /*min-width: 60%;*/
    max-width: 70%;
    margin: 0 auto;
}

#graph2 {
    /*width: 1200px;*/
    /* min-width: 60%; */
    max-width: 70%;
    margin: 0 auto;
}

/* SYNCHRO */

.synchro{
    max-width: 50%;
    margin: 0 auto;
    background: #FFF;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9em;
}

/* MISE a JOURS */

#TabGestionMAJ {
	width:600px;
	margin:auto;
	border-spacing: 3px;
    color: #000;
}

.listing_maj {
	background-color: #FFF;
	border-radius: 10px;
	padding: 10px;
	font-size: 0.9em;
}

.div_maj {
    padding: 10px;
}

/* LOST PASSWORD */
.lostPassword{
    /* display: flex; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    text-align: center;
    /* width: 100%; */
}
/* Style pour les champs de saisie */
.lostPassword form input {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #20b1e6;
    border-radius: 6px;
    width: 100%;  /* Les champs prennent toute la largeur disponible */
    box-sizing: border-box;
}
/* Style pour le bouton de soumission */
.lostPassword form input[type='submit'] {
    background-color: #20b1e6;
    border: 0;
    color: #fff;
    cursor: pointer;
    margin-top: 15px;
    font-size: 1.1em;
}

.lostPassword form input[type='submit']:hover {
    background-color: #000;
}

/* Courses PROG info bulles */
/* Conteneur de l'infobulle */
.epreuve[data-tooltip] {
  position: relative;
  cursor: pointer;
}

/* Infobulle cachée par défaut */
.epreuve[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%; /* au-dessus du carré */
  left: 50%;
  transform: translateX(-50%);

  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.80em;
  line-height: 1.4;
  min-width: 125px;
  white-space: pre-line;   /* affiche les \n comme des retours */
  text-align: left; 

  opacity: 0;
  visibility: hidden;   /* <- ajout essentiel */
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10;
}

/* Petite flèche SOUS l’infobulle */
.epreuve[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: 105%; /* pile sous l’infobulle */
  left: 50%;
  transform: translateX(-50%);

  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;

  opacity: 0;
  visibility: hidden;   /* <- pareil que le texte */
  transition: opacity 0.25s ease;
  z-index: 10;
}

/* Affichage au survol */
.epreuve[data-tooltip]:hover::after,
.epreuve[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;   /* <- important sinon la flèche reste "dans" le bloc */
}
