
/* --- Header Événement Premium --- */
.event-header-premium {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(45, 19, 190, 0.4) 0%, 
        rgba(250, 111, 30, 0.3) 50%, 
        rgba(244, 238, 215, 0.2) 100%), 
        url({{event.cover_url}});
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
 
.event-header-premium::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(transparent, #f8faff);
    z-index: 1;
}

.event-header-premium::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><polygon points="50,0 100,50 50,100 0,50" fill="%232d13be"/></svg>');
    background-size: 80px 80px;
}

/* --- Section Image Premium --- */
.event-image-premium-section {
    margin-top: -200px;
    position: relative;
    z-index: 3;
}

.event-image-premium-container {
    position: relative;
}

.event-image-premium-main {
    border-radius: 24px;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 12px solid white;
    box-shadow: 
        0 25px 60px rgba(45, 19, 190, 0.15),
        0 8px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-image-premium-main::before {
    content: "";
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--orange), var(--blue));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-image-premium-main:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 35px 80px rgba(45, 19, 190, 0.25),
        0 15px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.event-image-premium-main:hover::before {
    opacity: 1;
}

/* Badge flottant */
.event-image-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--orange), #ff8c42);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(250, 111, 30, 0.4);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Bouton Partage Premium --- */
.share-premium-box {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    padding-top: 50px;
}

.btn-share-premium {
    background: linear-gradient(135deg, var(--blue), #3a1fd0);
    color: white;
    font-family: "FirsBold", sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    padding: 18px 32px;
    font-size: 1.1rem;
    box-shadow: 
        0 10px 30px rgba(45, 19, 190, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-share-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-share-premium:hover {
    background: linear-gradient(135deg, var(--orange), #ff8c42);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(250, 111, 30, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-share-premium:hover::before {
    left: 100%;
}

.btn-share-premium:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-share-premium i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-share-premium:hover i {
    transform: scale(1.2);
}

/* Effets de brillance */
.share-premium-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transition: all 0.4s ease;
    border-radius: 50%;
}

.btn-share-premium:hover .share-premium-glow {
    width: 200px;
    height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .event-header-premium {
        height: 400px;
        background-attachment: scroll;
    }
    
    .event-image-premium-section {
        margin-top: -120px;
    }
    
    .event-image-premium-main {
        height: 300px;
        border-width: 8px;
    }
    
    .event-image-badge {
        top: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .share-premium-box {
        padding-top: 30px;
        justify-content: center;
    }
    
    .btn-share-premium {
        padding: 16px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .event-header-premium {
        height: 300px;
    }
    
    .event-image-premium-section {
        margin-top: -80px;
    }
    
    .event-image-premium-main {
        height: 250px;
    }
    
    .btn-share-premium {
        width: 100%;
        justify-content: center;
    }
}




/* --- Section Infos Événement Premium --- */
.event-info-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-radius: 24px;
    padding: 40px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(45, 19, 190, 0.1);
    box-shadow: 
        0 10px 40px rgba(45, 19, 190, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.event-info-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--blue));
    border-radius: 24px 24px 0 0;
}

.event-info-premium::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><polygon points="50,0 100,50 50,100 0,50" fill="%232d13be"/></svg>');
    background-size: cover;
}

/* Layout principal */
.event-info-layout {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Date stylisée */
.event-date-premium {
    background: linear-gradient(135deg, var(--blue) 0%, #3a1fd0 100%);
    color: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 12px 35px rgba(45, 19, 190, 0.3);
    position: relative;
    overflow: hidden;
}

.event-date-premium::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% {
        transform: rotate(45deg) translate(-100%, -100%);
    }
    50% {
        transform: rotate(45deg) translate(100%, 100%);
    }
}

.event-day-premium {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.event-date-number-premium {
    font-family: "FirsBold", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin: 10px 0;
    position: relative;
    z-index: 2;
}

.event-month-premium {
    font-size: 1rem;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

/* Contenu central */
.event-content-premium {
    padding: 0 20px;
}

.event-title-premium {
    font-family: "FirsBold", sans-serif;
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--black) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.event-date-text {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-date-text i {
    color: var(--orange);
}

/* Badge type */
.event-type-badge {
    background: linear-gradient(135deg, var(--green) 0%, #a5e06b 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(146, 218, 75, 0.4);
    transition: all 0.3s ease;
}

.event-type-badge.paid {
    background: linear-gradient(135deg, var(--black) 0%, #333 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.event-type-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(146, 218, 75, 0.5);
}

.event-type-badge.paid:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Badge billets */
.ticket-badge-premium {
    background: linear-gradient(135deg, var(--orange) 0%, #ff8c42 100%);
    color: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 12px 35px rgba(250, 111, 30, 0.3);
    position: relative;
    overflow: hidden;
}

.ticket-badge-premium.sold-out {
    background: linear-gradient(135deg, var(--red) 0%, #ff6b6b 100%);
    box-shadow: 0 12px 35px rgba(231, 84, 84, 0.3);
}

.ticket-badge-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M30,30 L70,70 M30,70 L70,30" stroke="white" stroke-width="2"/></svg>');
    background-size: 60% 60%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
}

.ticket-count {
    font-family: "FirsBold", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.ticket-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.ticket-icon {
    font-size: 2rem;
    opacity: 0.8;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.ticket-badge-premium:hover .ticket-icon {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .event-info-layout {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .event-date-premium {
        justify-self: center;
        min-width: 100px;
        padding: 20px;
    }
    
    .event-content-premium {
        padding: 0;
    }
    
    .event-title-premium {
        font-size: 1.8rem;
    }
    
    .ticket-badge-premium {
        justify-self: center;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .event-info-premium {
        padding: 30px 25px;
        margin-top: 30px;
    }
    
    .event-title-premium {
        font-size: 1.6rem;
    }
    
    .event-date-number-premium {
        font-size: 2rem;
    }
    
    .ticket-count {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .event-info-premium {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .event-title-premium {
        font-size: 1.4rem;
    }
    
    .event-date-premium {
        padding: 15px;
        min-width: 90px;
    }
    
    .event-date-number-premium {
        font-size: 1.8rem;
    }
    
    .ticket-badge-premium {
        padding: 15px;
        min-width: 110px;
    }
}


.ticket-quantity {
        width: 60px; /* Réduit la largeur pour correspondre aux autres éléments */
        height: 40px; /* Ajuste la hauteur pour un meilleur alignement */
        text-align: center; /* Centre le texte horizontalement */
        vertical-align: middle; /* Centre le texte verticalement */
        border-radius: 8px; /* Coins arrondis */
        border: 1px solid #ccc; /* Bordure légère */
        font-size: 16px; /* Ajuste la taille du texte */
        padding: 0; /* Supprime les marges internes */
    }
    

    .ticket-price,
.total-price,
.ticket-type,
.quantity-control {
    min-width: 0;
    overflow-wrap: break-word; /* Force les longs mots (comme un prix énorme) à se couper si besoin */
}

    .quantity-control .ticket-quantity {
        width: 60px; /* Largeur fixe pour éviter les changements */
        text-align: center; /* Centrer le contenu */
        border-radius: 8px; /* Coins arrondis */
        font-size: 16px; /* Taille de police adaptée */
        padding: 5px; /* Espacement interne */
    }
    
    .quantity-control button {
        width: 35px; /* Taille uniforme pour les boutons */
        height: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px; /* Taille de police pour correspondre au design */
        border-radius: 8px; /* Coins arrondis */
    }
    
    .total-price {
        width: max-content;
        font-weight: bold; /* Rendre le prix plus visible */
        font-size: 18px;
        max-width: 100px;
    }

    .hidden {
        display: none !important;
    }
    
      .ticket-list {
          margin-top: 1rem;
      }
  
      .ticket-item {
    display: flex;
    flex-wrap: wrap; /* 👈 Permet aux éléments de passer à la ligne si l’espace manque */
    gap: 10px; /* 👈 Un petit espacement entre les lignes pour éviter que ça se colle */
    justify-content: space-between;
    align-items: center;
}
  
      .ticket-type {
          font-size: 1.2rem;
          color: #333;
      }
  
      .ticket-price {
        width: max-content;
          font-size: 18px;
          font-weight: bold;
          color: #ff9800;
      }


      
        .event-calendar {
            border: 1px solid #ccc;
            padding: 1rem;
        }
    
        .event-time h4 {
            font-size: 1.2rem;
            color: #333;
        }
    
        .event-time p {
            margin: 0.2rem 0;
            font-size: 1rem;
            color: #555;
        }
    
        .event-note {
            margin-top: 1rem;
            font-style: italic;
            color: #777;
        }
    
       
          #eventGallery img {
              max-height: 400px;
              object-fit: cover;
          }
      
          .ratio iframe {
              border-radius: 10px;
          }
      
      
          .modal-header {
            background-color: #f8f9fa;
            border-bottom: 1px solid #ddd;
        }
        .modal-title {
            color: #333;
        }


  @media (max-width: 576px) {
    .ticket-price,
    .total-price {
        font-size: 14px;
    }

    .ticket-type {
        font-size: 1rem;
    }

    .ticket-item {
        padding: 10px;
    }

    .quantity-control {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ticket-quantity {
        width: 50px;
    }

    .quantity-control button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

.ticket-item > div:nth-child(2) {
    flex-grow: 1;
    display: flex;
    align-items: center;
}