@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

:root {
    --primary: #ff3e60;
    --glass: rgba(255, 255, 255, 0.07);
}

body {
    background: radial-gradient(circle at bottom left, #1a1a2e, #000);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 40px 15px;
}

.ticket-container {
    width: 100%;
    max-width: 650px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: ticketSlide 0.8s ease-out;
}

.ticket-header {
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.notch {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 50%;
    bottom: -20px;
}

.left {
    left: -20px;
}

.right {
    right: -20px;
}

h1 {
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 2px;
}

h1 span {
    color: var(--primary);
}

.ticket-divider {
    border-top: 2px dashed rgba(255, 255, 255, 0.15);
    margin: 0 30px;
}

.ticket-body {
    padding: 40px 30px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Grille flexible */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
}

input,
textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    /* Crucial pour le responsive */
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 15px;
    border-radius: 12px;
}

.slider {
    flex-grow: 1;
    accent-color: var(--primary);
    cursor: pointer;
}

.submit-ticket {
    padding: 18px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
}

.submit-ticket:hover {
    background: #ff1a40;
    transform: translateY(-2px);
}

.submit-ticket:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading-msg {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
    padding: 40px 0;
}


/* --- RESPONSIVE DESIGN --- */

@media (max-width: 600px) {
    .ticket-container {
        border-radius: 20px;
        /* Coins un peu moins arrondis sur petit écran */
    }

    .ticket-header {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.5rem;
        /* Texte plus petit sur mobile */
    }

    .ticket-body {
        padding: 30px 20px;
    }

    .input-grid {
        grid-template-columns: 1fr;
        /* On passe sur une seule colonne */
        gap: 25px;
    }

    .notch {
        width: 30px;
        height: 30px;
        bottom: -15px;
    }

    .left {
        left: -15px;
    }

    .right {
        right: -15px;
    }

    .rating-bar {
        flex-direction: column;
        /* Slider au dessus du chiffre sur mobile */
        align-items: flex-start;
    }

    #rangeValue {
        align-self: flex-end;
    }
}

/* --- SECTION AVIS --- */
.reviews-container {
    width: 100%;
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

.reviews-header {
    margin-bottom: 50px;
    text-align: center;
}

.reviews-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reviews-header .line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Le Wrapper en colonnes réelles */
.reviews-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.review-item {
    position: relative;
    width: calc(33.33% - 20px);
    min-width: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 2px;
    /* Pour l'effet de bordure dégradée */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* L'effet de lueur en arrière plan */
.review-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), #7000ff);
    opacity: 0.15;
    z-index: 1;
}

.review-content {
    position: relative;
    z-index: 2;
    background: #0f0f1b;
    /* Fond sombre pur */
    padding: 30px;
    border-radius: 22px;
    height: 100%;
}

.review-item:hover {
    transform: translateY(-10px) scale(1.02);
}

.review-item:hover .review-glow {
    opacity: 1;
    /* La bordure s'allume au survol */
}

/* Détails internes */
.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.artist-tag {
    background: rgba(255, 62, 96, 0.15);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--primary);
}

.stars-mini {
    color: #ffb800;
    font-size: 0.8rem;
}

.review-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: rgba(255, 62, 96, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.author strong {
    display: block;
    font-size: 0.9rem;
}

.author span {
    font-size: 0.75rem;
    color: #64748b;
}

/* Responsive spécifique pour les avis */
@media (max-width: 900px) {
    .review-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 650px) {
    .review-item {
        width: 100%;
    }

    .reviews-header h2 {
        font-size: 1.8rem;
    }
}