/* =====================
   Global & Body
===================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom, #E7ABC5, #fce7f3);
    min-height: 100vh;
    color: #333;
}

/* =====================
   Header & Logo
===================== */
header {
    text-align: center;
    padding: 30px 0 10px;
}

.logo {
    max-width: 180px;
    height: auto;
}

/* =====================
   Galerie & Conteneur
===================== */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.image-container {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.image-container:hover {
    transform: translateY(-4px);
}

/* =====================
   Miniatures
===================== */
.thumb {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* =====================
   Boutons d'action
===================== */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.share-btn,
.download-btn {
    background: none;
    border: none;
    color: #111;
    font-size: 24px;
    cursor: pointer;
    padding: 6px;
    transition: transform 0.2s;
}

.share-btn:hover,
.download-btn:hover {
    transform: scale(1.2);
}

/* =====================
   Titre événement
===================== */
main h1 {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 6px #be185d;
    margin-top: 20px;
    margin-bottom: 40px;
    font-weight: 800;
}

/* =====================
   Message vide
===================== */
.empty-message {
    font-size: 1.2rem;
    color: #666;
    margin-top: 80px;
    text-align: center;
}

/* =====================
   Fancybox custom
===================== */
.fancybox__container {
    backdrop-filter: blur(5px);
}

.fancybox__toolbar .fancybox__button {
    color: white !important;
    font-size: 20px;
}

/* =====================
   Responsive
===================== */
@media screen and (max-width: 900px) {
    .image-container {
        width: 45%;
    }
}

@media screen and (max-width: 600px) {
    .image-container {
        width: 47%;
    }

    .logo {
        max-width: 120px;
    }

    .action-buttons {
        gap: 10px;
    }

    .share-btn,
    .download-btn {
        font-size: 20px;
    }
}

/* =====================
   Page d'accueil et OTP Code
===================== */
.home-content {
    max-width: 500px;
    margin: 40px auto;
    /* Réduit l'écart haut */
    text-align: center;
    padding: 20px;
}

.home-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    /* Ajusté pour meilleure compacité */
    color: #333;
}

.code-form {
    margin: 20px auto;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.code-otp {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0;
    /* Plus serré entre le champ et le bouton */
}

.code-otp input {
    width: 55px;
    height: 65px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    border: 2px solid #E7ABC5;
    border-radius: 10px;
    background: white;
    transition: border-color 0.3s;
}

.code-otp input:focus {
    outline: none;
    border-color: #be185d;
}

.code-form button {
    background-color: #E7ABC5;
    color: white;
    border: none;
    padding: 16px 0;
    font-size: 1.4rem;
    /* Texte plus gros */
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: calc(55px * 5 + 10px * 4);
    /* Ajuste la largeur du bouton à celle des inputs + leurs gaps */
}

.code-form button:hover {
    background-color: #d38aa8;
}


/* =====================
   Liste des événements
===================== */
.event-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.event-list li a {
    display: block;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border: 2px solid #E7ABC5;
    border-radius: 14px;
    background-color: white;
    color: #333;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(231, 171, 197, 0.25);
    transition: all 0.25s ease-in-out;
}

.event-list li a:hover {
    background-color: #fce7f3;
    transform: scale(1.02);
}