/* style.css - Thème vert */
:root {
    --vert-principal: #27ae60;
    --vert-fonce: #219653;
    --vert-clair: #e7fce7;
    --vert-sombre: #1e8449;
    --vert-pale: #d4efdf;
    --gris-fonce: #2c3e50;
    --gris-clair: #7f8c8d;
    --blanc: #ffffff;
    --fond: #e7fce7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Header */
.header {
    text-align: center;
    margin-top: 10px;
}

h1 , h2 {
    color: var(--gris-fonce);
    font-size: 1.8em;
    margin-bottom: 10px;
    text-align: center;
}

.sous-titre {
    color: var(--gris-clair);
    font-size: 1.2em;
    margin-bottom: 15px;
}

.lieu-info {
    background: var(--vert-pale);
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: var(--vert-sombre);
    border-left: 4px solid var(--vert-principal);
}
/* Logo jaune en haut à gauche (fixe) */
.logo-top-left {
    position: absolute ;
    top: 15px;
    left: 12px;
    width: 10%;
    height: auto;
    z-index: 1200;
}

@media (max-width: 480px) {
    .logo-top-left { width: 48px; top: 24px; left: 8px; }
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #1CE000;
    color: black;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: opacity 0.3s;
}

.back-to-top:hover {
    background-color: #2F7E33;
    transform: scale(1.1);
}

/* Header (logo + titre) */

.header-logo {
    width: 100%;
    display: flex;
    justify-content: center;
}
.header-logo img {
    width: 30%; /* fill the same width as the form */
    margin: 15px;
    height: auto;
    display: block;
    object-fit: contain;
 
}


/* Réseaux sociaux en haut à droite */
.social-media-top {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    backdrop-filter: blur(5px);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.social-icon svg {
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* Facebook spécifique */
.social-icon:nth-child(1):hover {
    background: #1877F2;
}

.social-icon:nth-child(1):hover svg {
    fill: white;
}

/* Instagram spécifique */
.social-icon:nth-child(2):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon:nth-child(2):hover svg {
    fill: white;
}


/* Filtres */
.filtres {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filtre-btn {
    padding: 12px 25px;
    border: 2px solid var(--vert-principal);
    background: var(--vert-pale);
    color: var(--vert-principal);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filtre-btn.active,
.filtre-btn:hover {
    background: var(--vert-principal);
    color: var(--blanc);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
}

/* Grille spectacles */
.grille-spectacles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Carte spectacle */
.carte-spectacle {
    background: var(--blanc);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.carte-spectacle:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(39, 174, 96, 0.15);
}

/* Affiche */
.affiche-container {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

.affiche {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.carte-spectacle:hover .affiche {
    transform: scale(1.05);
}

.badge-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(39, 174, 96, 0.9);
    color: var(--blanc);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1em;
    backdrop-filter: blur(5px);
}

/* Infos rapides */
.infos-rapides {
    padding: 25px;
}

.titre-spectacle {
    color: var(--gris-fonce);
    margin-bottom: 12px;
    font-size: 1.5em;
    min-height: 70px;
}

.compagnie {
    color: #e74c3c; /* Garder le rouge pour la compagnie */
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.infos-complementaires {
    display: flex;
    justify-content: space-between;
    color: #666;
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.infos-fixes {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 0.9em;
    color: var(--vert-sombre);
    border-left: 3px solid var(--vert-clair);
}

.synopsis-court {
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
    min-height: 60px;
}

.voir-plus-btn {
    background: linear-gradient(135deg, var(--vert-principal), var(--vert-sombre));
    color: var(--blanc);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    font-size: 1em;
    transition: background 0.3s;
}

.voir-plus-btn:hover {
    background: linear-gradient(135deg, var(--vert-fonce), #186a3b);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    overflow-y: auto;
    
}

.modal-content {
    background: var(--blanc);
    max-width: 900px;
    margin: 50px auto;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--vert-principal);
   
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    color: var(--blanc);
    cursor: pointer;
    z-index: 10;
    background: rgba(39, 174, 96, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    transition: background 0.3s;
}

.close-modal:hover {
    background: rgba(33, 150, 83, 0.9);
}

.modal-body {
    padding: 40px;
}

.modal-affiche-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: #000; /* optionnel, joli contraste */
}

.modal-affiche {
    max-width: 85%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.modal-affiche-wrapper {
    min-height: 300px;
}



/* Bouton réserver dans le modal */
.btn-reserver {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1em;
    margin: 10px;
    transition: background 0.3s;
}

.btn-reserver:hover {
    background: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
    .grille-spectacles {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
    }
    
    .filtres {
        flex-direction: column;
        align-items: center;
    }
    
    h1 {
        font-size: 2em;
    }
}

/* Message si pas de spectacles */
.no-spectacles {
    text-align: center;
    padding: 60px;
    color: var(--gris-clair);
    font-size: 1.2em;
}

/* Lien admin */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gris-fonce);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    border: 1px solid var(--vert-principal);
}

.admin-link:hover {
    background: var(--vert-sombre);
}
.button {
    display: inline-block;
    margin: 20px auto;
}

/* Pied de page */
.site-footer {
    text-align: center;
    margin-top: 30px;
    padding: 12px 10px;
    font-size: 0.95rem;
    color: #333;
    border-top: 1px solid rgba(0,0,0,0.08);
    background: transparent;
}
.site-footer a {
    color: #1CE000;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}

