
/* Global Styles */
* {
    box-sizing: border-box;
}
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
}
h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
	text-align: center;
}

h4 {
	margin:0 0 20px 0;
	font-size: 1.4em;
	width: 100%;
	text-align: center;
}

/************/
/* BANNIERE */
/* --- Conteneur principal --- */
.banner {
    position: relative;
    height: 380px;
    overflow: hidden;
    color: white;
}

/* --- Image responsive --- */
.banner-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 1;
}

/* --- Bouton transparent responsive (zone cliquable) --- */
.btn-zone {
    position: absolute;
    background-color: transparent; /* transparent mais cliquable */
    cursor: pointer;
    z-index: 3; /* au-dessus du texte et image */
	/*border: 2px solid #d90000;*/
}

.oeil-elephant {
    top: 30%; /* ajustez selon votre image */
    left: 40%; /* ajustez selon votre image */
    width: 300px;
    height: 300px;
    border-radius: 50%;
}

/* --- Texte & dégradé positionnés absolument --- */
.banner-content {
    position: absolute;  /* ABSOLU au lieu de relatif (IMPORTANT !) */
    top: 0;
    left: 0;
    width: 100%; /* largeur complète */
    height: 100%; /* hauteur complète pour couvrir l'image entièrement si souhaité */
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to right, rgba(7, 46, 99, 0.8) 20%, rgba(7, 46, 99, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: center; /* centrer verticalement le texte */
	padding-left:10px;
}

/* --- Styles texte --- */
.title {
    font-size: 3.5rem;
    font-family: 'Raleway', sans-serif;
    margin: 0;
}

.subtitle {
    font-size: 1.8rem;
    margin: 10px 0 0;
    font-weight: 500;
}

/*****************/
/* SCORE GENERAL */
.scoreboard {
    text-align: center;
	background-color: #fdfdff;
	margin: 0;
	padding: 20px 0 20px 0;
}

.scoreboard .scores {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scoreboard .team {
    width: 200px;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
    position: relative;
	box-shadow: inset 0 0 10px 5px #eeeeee;
}

.scoreboard .team.winner {
 	border-color: #ccc;
	background-color: #ffffff;
    box-shadow: inset 0 0 15px 5px #fffbb2, 4px 8px 10px grey;/*rgba(0, 128, 0, 0.4);4px 8px 14px*/
}

.scoreboard .team .team-name {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.scoreboard .team .team-points {
    font-size: 5em;
    font-weight: bold;
    line-height: 1;
    margin: 0;
}

.scoreboard .team .team-label {
    font-size: 0.8em;
    color: #666;
    margin-top: -5px;
}

/******************************/
/* CALENDRIER DES EVENNEMENTS */

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px;
}

.event {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 100px;
	cursor: pointer;
	padding-bottom: 0;
	display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Status-based event colors */
.past-event { background-color: #e6e6e6; color: #606060; border: 2px solid #727272; }
.next-event { background-color: #ffe7cc; color: #ff9000; border: 2px solid #ff9000; }
.future-event { background-color: #e7f5ff; color: #007bff; border: 2px solid #007bff; }
.ongoing-event { background-color: #bfffbf; color: #2eb800; border: 2px solid #2eb800; }
/*.cancelled-event { background-color: #f7d7d7; border: 2px solid #ff0000; color: #727272; opacity: 0.8;}*/
/* Tag "ANNULÉ" */
.cancelled-banner {
    position: absolute;
    top: 10px; /* Place en haut de la tuile */
    right: 10px; /* Place à droite de la tuile */
    background-color: red;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 5px 10px; /* Ajuste la taille du tag */
    border-radius: 5px; /* Coins arrondis */
    z-index: 10;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Légère ombre */
	animation: blink 1.5s infinite alternate;
}
.event:hover {transform: scale(1.03); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);}
.event:hover .event-extra-container {display: block;}

.event-details {
	flex-grow: 1; /* Prend tout l'espace disponible pour pousser event-header en bas */
	gap:10px;
}
.event-details p { margin : 7px 0 7px 0 ;}
.event-date { margin : 7px 0 7px 0 ;}

/* Bandeau d'icones d'épreuve */
.event-zone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(150, 150, 150, 0.1);
    /*padding: 5px0 5px 0;*/
	padding:0 5px 0 0;
	margin:0;
    border-radius: 0 0 8px 8px;
	margin-top: auto;
	min-height:40px;
	bottom: 0;
	box-sizing: border-box;
    /*position: absolute;*/
	left: 0;
	width: calc(100% + 30px); /* Force l'élément à dépasser les bords en ajoutant la valeur du padding */
    margin-left: -15px; /* Annule l'effet du padding de .event */

}

/*
.event .event-extra-container {
    display: none;
    margin-top: 10px;
	color: #424251;
	font-size: 0.8em;
	font-style: italic;
}
*/

/* Team tags */
/*.team-tags {
	position: absolute;
    top: 3px;
    right: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}*/

/* Zone centrale : affichage du score */


/* Style des tags pour le score */
.event-score .team-tag {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 5px;
    text-align: center;
    min-width: 50px;
}
.event-score {
    display: flex;
    align-items: center;
    gap: 2px;
}
.team-tag {
    margin-top: 3px;
	padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    color: white;
}

.team-tag.winner {
    border: 3px solid #fff64c;
    background-color: #aaa;
}

.team-tag.loser {
    border: 2px solid #888888;
    background-color: #aaa;
    color:#eee;
}
/* Coupe 🏆 pour le vainqueur */
.winner-trophy { font-size: 1rem;}

/* Icônes Joker à gauche */
.event-joker {font-size: 1.5rem;}
.joker-mkt-icon {}
.joker-dsi-icon {}

/* Couleurs des équipes */
/*.team-tag.mkt {
    background-color: pink;
    color: white;
}

.team-tag.dsi {
    background-color: blue;
    color: white;
}*/

/* Superbonus à droite */
.event-superbonus {
    display: flex;
    gap: 5px;
}

/* Style des superbonus */
.superbonus-mkt, .superbonus-dsi {
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
	line-height: 25px;   
    margin: 6px 0 4px 0;
	padding: 3px 4px 0 4px;
	vertical-align: bottom;
}

.superbonus-mkt {
    background-color: #f664bd;
	box-shadow: inset 2px -2px 7px 1px #db3f98;
}

.superbonus-dsi {
    background-color: #59acf9;
	box-shadow: inset 2px -2px 7px 1px #447adc;
}

@keyframes blink {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

/*************/
/* REGLEMENT */
.rules {
    padding: 20px;
    background-color: #ffffff;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rules ul {
    list-style: none;
    padding: 0;
}

.rules li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.rules li:before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

/* EPREUVE.PHP Mise en page de la page d'affichage des épreuves */
.epreuve-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.epreuve-activite {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
}

.epreuve-details {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.epreuve-type {
    font-weight: bold;
    margin: 10px 0;
    text-align: left;  /* Aligne le texte à gauche */
    display: inline-block;  /* Garde le bloc centré dans son parent */
}

.asynchrone, .bonus, .joker, .joker-mkt, .joker-dsi {
    color: #ff9800;
    font-weight: bold;
}

.joker-mkt, .joker-dsi {
	font-size:1.5rem;
}

.epreuve-commentaire {
    font-style: italic;
    font-size: 1.2rem;
    color: #444;
    margin-top: 20px;
    padding: 10px;
    border-left: 5px solid #ccc;
    background: #f9f9f9;
}

.epreuve-resultats, .epreuve-participants {
    text-align: center;
    margin-top: 20px;
}

/*.epreuve-scores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 15px;
}

.score-dsi {
    color: blue;
}

.score-mkt {
    color: pink;
}
*/

/* Event Details Page */
/*.event-details-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.event-details-page h2, .event-details-page h3 {
    text-align: center;
}

.event-details-page p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.back-button {
    display: block;
    text-align: center;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.back-button:hover {
    background-color: #0056b3;
}*/

.epreuve-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /*justify-content: center;*/
    margin-top: 20px;
	border-left: 5px solid #ccc;
	background-color:#f9f9f9;
	flex-direction: column; /* Permet d'afficher le titre au-dessus des images */
    align-items: center; /* Centre le titre et les images */
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement les images de tailles différentes */
    max-width: 600px;
}

.gallery-thumb {
    width: 100px;
    height: 100px;
    object-fit: contain; /* Assure que l'image entière s'affiche sans être coupée */
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    background-color: white; /* Ajoute un fond pour voir l'espacement */
}

.gallery-thumb:hover {
    transform: scale(1.1);
}
