/* --------------------------------------
   VARIABLES & RESET
---------------------------------------- */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --border-radius: 10px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.stadium-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* ---------------------------------------
   MATCH INFORMATION - UNIFIED STYLE
--------------------------------------- */
.eticket-match-info {
    margin: 25px 0 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    animation: fadeInUp 0.5s ease;
}

.eticket-match-info h3 {
    margin: 0 0 20px;
    font-size: 24px;
    text-align: center;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.match-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    text-align: center;
}

.match-info-item {
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.match-info-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.match-info-item .icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

.match-info-item .title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    color: white;
}

.match-info-item .subtitle {
    font-size: 14px;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Match info dans la liste des produits */
.eticket-loop-match-info {
    margin-top: 10px;
    padding: 10px;
    background: var(--light-color);
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.eticket-loop-match-info .match-name {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.eticket-loop-match-info .match-date {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* -------------------------------------
   SEATING PLAN - UNIFIED STYLE
--------------------------------------- */
.stadium-seating-plan {
    margin: 30px 0;
    padding: 30px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    box-shadow: var(--box-shadow);
}

.stadium-seating-plan h3 {
    margin: 0 0 25px;
    font-size: 26px;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.stadium-seating-plan h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* ---------------------------------------
   SPONSORS SECTION - MULTI-COLONNES
---------------------------------------- */
.stadium-sponsors {
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.stadium-sponsors h4 {
    margin: 0 0 25px;
    font-size: 20px;
    font-weight: 500;
    color: white;
}

.sponsors-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sponsors-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes par défaut */
    gap: 20px;
}

.sponsor-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.sponsor-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.sponsor-item img {
    max-height: 50px;
    max-width: 120px;
    border-radius: 5px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    object-fit: contain;
}

.sponsor-item .sponsor-name {
    font-weight: 500;
    font-size: 14px;
    color: white;
    margin: 0;
    line-height: 1.4;
}

/*------------------------------------
   LEGEND
------------------------------------- */
.seating-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    flex-wrap: wrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: var(--light-color);
    border-radius: 6px;
    font-weight: 500;
}

.color-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    vertical-align: middle;
    border: 2px solid transparent;
}

.color-swatch.vvip { 
    background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
    border-color: #d35400;
}
.color-swatch.vip { 
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #c0392b;
}
.color-swatch.normal { 
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #2980b9;
}
.color-swatch.economy { 
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-color: #27ae60;
}

/* -------------------------------------------------
   SEATING SECTIONS GRID
------------------------------------------------- */
.seating-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.seating-section-card {
    padding: 25px;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 4px solid;
}

.seating-section-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
    opacity: 0.3;
}

.seating-section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Catégories */
.seating-section-card.vvip {
    border-color: #f39c12;
    background: linear-gradient(135deg, #fef9e7 0%, #fcf3cf 100%);
    color: #b9690d;
}

.seating-section-card.vip {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fdf2f2 0%, #fadbd8 100%);
    color: #c0392b;
}

.seating-section-card.normal {
    border-color: #3498db;
    background: linear-gradient(135deg, #f2f9fd 0%, #e3f2fd 100%);
    color: #2980b9;
}

.seating-section-card.economy {
    border-color: #2ecc71;
    background: linear-gradient(135deg, #f2fdf5 0%, #d5f4e5 100%);
    color: #27ae60;
}

.seating-section-card h4 {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.section-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.section-details p {
    margin: 0;
    font-size: 14px;
}

.section-details strong {
    color: var(--dark-color);
    font-weight: 600;
    margin-right: 5px;
}

/* ----------------------------------
   OCCUPANCY BAR
---------------------------------------*/
.occupancy-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    margin-top: 15px;
    overflow: hidden;
    position: relative;
}

.occupancy-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border-radius: 5px;
}

.occupancy-fill:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0.1) 100%);
}

/* -----------------------------------
   ANIMATIONS
---------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* -------------------------------------
   RESPONSIVE DESIGN
---------------------------------------*/
@media (max-width: 992px) {
    .match-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .seating-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .eticket-match-info,
    .stadium-seating-plan,
    .stadium-sponsors {
        padding: 20px;
        margin: 20px 0;
    }
    
    .match-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .seating-sections {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .seating-legend {
        gap: 15px;
        padding: 15px;
    }
    
    .sponsors-grid {
        gap: 15px;
    }
    
    .sponsor-item {
        min-width: 120px;
        padding: 15px;
    }
    
    .stadium-seating-plan h3,
    .eticket-match-info h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .section-details {
        grid-template-columns: 1fr;
    }
    
    .seating-section-card {
        padding: 20px;
    }
    
    .legend-item {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Responsive pour les colonnes de sponsors */
@media (max-width: 1200px) {
    .sponsors-columns {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur tablettes */
    }
}

@media (max-width: 768px) {
    .sponsors-columns {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobiles */
        gap: 15px;
    }
    
    .sponsor-item {
        padding: 15px 10px;
        min-height: 100px;
    }
    
    .sponsor-item img {
        max-height: 40px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .sponsors-columns {
        grid-template-columns: 1fr; /* 1 colonne sur très petits écrans */
    }
}

/* ---------------------------------------
   UTILITY CLASSES
---------------------------------------- */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.pulse {
    animation: pulse 2s infinite;
}