/* Couleurs principales */
:root {
    --fond-principal: #f5f4f4;
    --bleu-fonce: #1d1f2f;
    --vert-sauge: #a5c6ae;
    --vert-sauge-hover: #8ab49a;
    --blanc-doux: #ffffffdd;
    --fond-icone: #fffbf7; 
}

/* RESET de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--fond-principal);
    color: #333;
    line-height: 1.6;
}

/* HEADER */
header {
    background-color: var(--bleu-fonce);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header img {
    height: 50px;
}

header a.logout {
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid white;
    padding: 8px 15px;
    border-radius: 8px;
    transition: 0.3s;
}

header a.logout:hover {
    background-color: white;
    color: var(--bleu-foncé);
}

/* CONTAINER principal (dashboard) */
.container {
    max-width: 1000px;
    margin: 40px auto;
    background: #ffffffdd;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* TITRES */
h1, h2 ,h3 {
    color: var(--bleu-fonce);
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
    margin-top: 30px;
}

/* GALERIE */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.gallery img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    height: 160px;
}

/* BLOCS DE FORMULAIRES (login, forgot password...) */
.auth-container {
    max-width: 400px;
    margin: 80px auto;
    background-color: #ffffffdd;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 30px;
    backdrop-filter: blur(4px);
}

.auth-container h2 {
    color: var(--bleu-fonce);
    margin-bottom: 20px;
    text-align: center;
}

.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fafafa;
}

.auth-container button {
    background-color: var(--vert-sauge);
    color: #fff;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.auth-container button:hover {
    background-color: var(--vert-sauge-hover);
}

.auth-container a {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--bleu-fonce);
    text-decoration: none;
    font-size: 14px;
}

.auth-container a:hover {
    text-decoration: underline;
}

/* INFO ÉVÉNEMENT */


.events-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}


.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.event-card {
    background-color: #fffbf7; /* Même fond que les icônes */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: scale(1.05);
}

.event-icon {
    margin-bottom: 10px;
}

.event-info {
    font-size: 14px;
    
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.type-option {
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    border-radius: 12px;
    text-align: center;
    padding: 15px 10px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.type-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-color: #ccc;
}

.type-option input[type="radio"] {
    display: none;
}

.type-option .icon-wrap img {
    height: 48px;
    display: block;
    margin: auto;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.type-option:hover .icon-wrap img {
    transform: scale(1.1);
}

.type-option .icon-wrap small {
    font-size: x-small;
    color: #333;
    display: block;
}

/* Sélectionné */
.type-option input[type="radio"]:checked + .icon-wrap {
    border: 2px solid #007bff;
    border-radius: 10px;
    background: #e6f0ff;
    padding: 10px;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}




/* Responsive design */
@media (max-width: 768px) {
    .container, .auth-container {
        width: 90%;
        margin: 40px auto;
        padding: 20px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header a.logout {
        margin-top: 10px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
