/* Import de la police si disponible, sinon fallback system */
@font-face { font-family: 'Grobold'; src: url('fonts/grobold.ttf'); }

:root {
    --pel-orange: #e74011;
    --pel-white: #ffffff;
    --pel-dark: #17191e;
    --pel-gray: #2a2d34;
}

* { box-sizing: border-box; }

body { 
    background-color: var(--pel-dark); 
    color: var(--pel-white); 
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0; padding: 0;
    line-height: 1.2;
}

/* Titres sans uppercase avec Grobold */
h1, h2, h3, h4 { 
    font-family: 'Grobold', sans-serif; 
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
	text-shadow:2px 3px 5px #000; 
}

.site-header {
  --z-index-nav: 50;
  padding: .4rem 0;
  position: sticky;
  z-index: 50;
  top: 0;
  text-align:center;
  padding:5px ;
  background-color:var(--pel-gray);
  border-bottom:5px solid var(--pel-orange);
}
.site-content {
	margin:15px;
}

h1 { font-size: 3rem; color:#000; padding-bottom: 10px; -webkit-text-stroke: 1px var(--pel-white); text-shadow: 5px 5px #000 5px;}
h1 i { font-size: inherit; color:var(--pel-orange); -webkit-text-stroke: 1px var(--pel-white); text-shadow: 5px 5px #000 5px; font-style:normal;}

h2 { font-size: 1.8rem; color:var(--pel-white);}
h3 { font-size: 1.4rem; color:var(--pel-orange); -webkit-text-stroke: 1px var(--pel-white);}
h4 { font-size: 1.2rem; color: var(--pel-orange); border-left: 3px solid var(--pel-orange); padding-left: 10px; }

/* Formulaires & Filtres */
.search-container {
    background: var(--pel-gray);
    padding: 15px;
    border: 2px solid var(--pel-orange);
    border-radius: 10px;
    margin-bottom: 10px;
	display: flex;
}
a.back-link {
 color:var(--pel-white);
}
.search-container label { display: block; font-weight: bold; margin-bottom: 5px; color: var(--pel-white); }

div.input-form {float:left;
margin-right:10px;
}

input, select, button {
    width: auto;
    padding: 12px;
    margin-bottom: 15px;
    background: var(--pel-dark);
    color: var(--pel-white);
    border: 2px solid var(--pel-white); /* Contraste fort */
    border-radius: 5px;
    font-size: 1rem;
}


/* Structure décalée des jeux (Polygones) */
.game-outer {
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    margin-bottom: 30px;
}

.game-inner {
    padding: 10px;
    /* Création d'un polygone légèrement asymétrique */
    clip-path: polygon(0% 2%, 100% 0%, 98% 100%, 1% 98%);
    transition: transform 0.2s ease;
	overflow:hidden;
}

.game-outer:nth-child(even) .game-inner {
    clip-path: polygon(2% 0%, 98% 2%, 100% 98%, 0% 100%);
}

.game-card-link { text-decoration: none; color: inherit; display: block; }

/* Responsive */
@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
}

/* Bénévoles */
.volunteer-grid { display: grid; grid-template-columns: repeat(auto-fill, 195px); gap: 10px; margin-top: 15px;}
.v-card { background: var(--pel-white); color: var(--pel-dark); padding: 8px; text-align: center;  clip-path: polygon(0% 2%, 100% 0%, 98% 100%, 1% 100%); }
.v-card img { width: 180px; height: 180px; object-fit: cover; clip-path: polygon(2% 2%, 98% 0%, 98% 96%, 3% 98%);}
.v-card span {font-size: 1rem; display: block; margin-top: 5px; font-family:Grobold, sans-serif; }


/* Conteneur parent pour aligner les blocs */
.games-list {
    float:left;
	width:100%;
}

/* Chaque bloc de jeu */
.game-outer {
	background-color:var(--pel-white);
    display: inline-block;
    vertical-align: top;
    width: 100%; /* Par défaut pour mobile */
    max-width: 390px; /* Largeur max demandée */
    margin: 5px;
	clip-path: polygon(0% 2%, 100% 0%, 98% 100%, 1% 98%);
}

/* La vignette du jeu */
.game-vignette {
    width: 100px;
    height: 100px;
	object-fit: cover;
    float:right; /* Aligne l'image à gauche du texte */
    border-radius: 5px;
}

/* Nettoyage après le float de l'image */
.game-card-link::after {
    content: "";
    display: table;
    clear: both;
}

/* On ajuste le inner pour qu'il soit bien visible */
.game-inner {
    background: var(--pel-white);
	color: var(--pel-gray);
	margin:10px;
    min-height: 150px; /* Hauteur min pour harmoniser la grille */
    clip-path: polygon(0% 2%, 100% 0%, 98% 100%, 1% 98%);
}
p.game-specs {
	margin:0;
}

/* Container principal de la fiche jeu */
.jeu-detail-container {
    display: flex;
    flex-wrap: wrap; /* Permet d'empiler sur mobile */
    gap: 30px;
	margin:0;
}

/* Image à gauche */
.jeu-detail-image {
	flex: 0 1 300px; /* Largeur de 300px max */
}

.jeu-detail-image img {
    width: 300px;
    height: 300px;
	object-fit: cover;
    border: 2px solid var(--pel-white);
    background-color:#fff;
    
}


/* Infos à droite */
.jeu-detail-infos {
    flex: 1 1 300px; /* Prend le reste de la place */
}

/* Grille des bénévoles en dessous (pleine largeur) */
.benevoles-full-width {
    width: 100%;
    margin-top: 20px;
}
