/* --- Reset et Styles de Base (Kinema+ Dark Theme) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; /* Police moderne */
    background: linear-gradient(160deg, #0A0A0A 0%, #1A1A1A 100%); /* Dégradé sombre profond */
    min-height: 100vh;
    color: #E0E0E0; /* Blanc cassé pour le texte principal */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Container Principal --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    /* Pas de fond spécifique ici, le body gère le fond principal */
}

/* --- Header --- */
.header {
    background: linear-gradient(135deg, #1C1C1E 0%, #111111 100%); /* Fond sombre pour le header */
    border-radius: 18px; /* Plus arrondi */
    padding: 25px 30px; /* Plus d'espace */
    margin-bottom: 35px; /* Plus d'espace sous le header */
    box-shadow: 0 15px 40px rgba(0,0,0,0.7); /* Ombre profonde */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #282828; /* Bordure subtile */
    color: #FFFFFF; /* Texte blanc pur */
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px; /* Plus d'espace */
}

.user-photo {
    width: 60px; /* Plus grande */
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2E8B57; /* Bordure verte Kinema+ prononcée */
    box-shadow: 0 0 0 2px rgba(255,255,255,0.05); /* Halo discret */
}

.user-info h2 {
    color: #FFFFFF; /* Blanc pur */
    font-size: 1.6rem; /* Plus grand et proéminent */
    margin-bottom: 4px; /* Moins d'espace */
    font-weight: 700;
}

.user-info p {
    color: #A0A0A0; /* Gris doux pour le texte secondaire */
    font-size: 1rem; /* Légèrement plus grand */
}

.balance-info {
    background: linear-gradient(45deg, #2E8B57, #3BCC7A); /* Dégradé vert Kinema+ */
    color: white;
    padding: 15px 25px; /* Plus de padding */
    border-radius: 30px; /* Plus arrondi */
    font-weight: bold;
    font-size: 1.25rem; /* Plus grand */
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.4); /* Ombre plus marquée */
    transition: transform 0.2s ease;
}

.balance-info:hover {
    transform: translateY(-2px); /* Effet au survol */
}

/* --- Messages (Success/Error) --- */
.message {
    padding: 18px; /* Plus de padding */
    border-radius: 12px; /* Plus arrondi */
    margin: 25px 0; /* Plus d'espace */
    font-weight: bold;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0; /* Caché par défaut */
    visibility: hidden;
    transform: translateY(10px);
}

.message.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.message.success {
    background: rgba(46, 139, 87, 0.2); /* Vert Kinema+ translucide */
    color: #3BCC7A;
    border: 1px solid #2E8B57;
}

.message.error {
    background: rgba(204, 59, 59, 0.2); /* Rouge translucide */
    color: #FF6B6B;
    border: 1px solid #CC3B3B;
}

.hidden {
    display: none;
}

/* --- Grille des services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); /* Min-width légèrement plus grand */
    gap: 35px; /* Plus d'espace entre les cartes */
    margin-bottom: 50px;
}

/* --- Catégories de services --- */
.service-category {
    background: linear-gradient(135deg, #1C1C1E 0%, #111111 100%); /* Fond sombre pour les catégories */
    border-radius: 20px;
    padding: 30px; /* Plus de padding */
    box-shadow: 0 15px 40px rgba(0,0,0,0.7); /* Ombre plus profonde */
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid #282828; /* Bordure subtile */
}

.service-category:hover {
    transform: translateY(-8px); /* Effet de soulèvement plus marqué */
    border-color: #2E8B57; /* Bordure verte au survol */
}

.category-title {
    font-size: 2em; /* Plus grand */
    font-weight: 700;
    color: #FFFFFF; /* Blanc pur */
    margin-bottom: 30px; /* Plus d'espace */
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #2E8B57; /* Vert Kinema+ pour le soulignement */
    position: relative;
    letter-spacing: -0.5px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* Plus large */
    height: 4px; /* Plus épais */
    background: linear-gradient(90deg, #3BCC7A, #2E8B57); /* Dégradé pour le pseudo-élément */
    border-radius: 2px;
}

/* --- Articles de service (Génériques) --- */
.service-item,
.projection-item { /* Applique les styles communs aux deux types d'articles */
    background: #0F0F0F; /* Fond très sombre pour les articles */
    border-radius: 15px;
    padding: 25px; /* Plus de padding */
    margin-bottom: 20px;
    border: 1px solid #282828; /* Bordure subtile */
    transition: all 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.service-item::before,
.projection-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px; /* Plus épais */
    background: linear-gradient(90deg, #2E8B57, #3BCC7A); /* Vert Kinema+ par défaut */
    transition: left 0.3s ease;
}

.service-item:hover,
.projection-item:hover {
    border-color: #2E8B57; /* Bordure verte au survol */
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transform: translateY(-4px); /* Effet de soulèvement plus prononcé */
}

.service-item:hover::before,
.projection-item:hover::before {
    left: 0;
}

/* Couleurs spécifiques pour les barres de survol de projection */
.projection-item::before {
    background: linear-gradient(90deg, #42A5F5, #2196F3); /* Bleu pour les projections */
}
.projection-item:hover {
    border-color: #2196F3; /* Bordure bleue au survol */
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4); /* Ombre bleue */
}


.item-name, .city-name {
    font-size: 1.4rem; /* Plus grand */
    font-weight: bold;
    color: #FFFFFF; /* Blanc pur */
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.item-catchphrase {
    font-style: italic;
    color: #3BCC7A; /* Vert Kinema+ pour la phrase d'accroche */
    margin-bottom: 15px; /* Plus d'espace */
    font-size: 1rem;
    font-weight: 500;
}

.item-description {
    color: #B0B0B0; /* Gris clair */
    margin-bottom: 25px; /* Plus d'espace */
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Section de tarification */
.pricing-section {
    background: #151515; /* Fond légèrement plus clair que l'article, pour la distinction */
    border-radius: 15px;
    padding: 22px; /* Plus de padding */
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid #282828;
}

.price-options {
    display: flex;
    gap: 15px; /* Plus d'espace */
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center; /* Centre les options */
}

.price-option {
    background: #2A2A2E; /* Fond gris foncé pour les options */
    padding: 12px 20px; /* Plus de padding */
    border-radius: 30px; /* Très arrondi */
    font-size: 1rem; /* Plus grand */
    color: #E0E0E0; /* Texte blanc cassé */
    border: 2px solid #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    flex: 1;
    text-align: center;
    min-width: 120px; /* Assure une taille minimale */
    max-width: 180px; /* Limite la largeur si beaucoup d'options */
}

.price-option:hover {
    background: #3A3A3F; /* Devient plus clair au survol */
    transform: translateY(-2px);
    border-color: #444444;
}

.price-option.active {
    background: linear-gradient(45deg, #2E8B57, #3BCC7A); /* Dégradé vert Kinema+ pour l'actif */
    color: white;
    border-color: #3BCC7A;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4);
    transform: translateY(-2px); /* Maintient l'effet de soulèvement pour l'actif */
}

/* --- Contrôles de quantité --- */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Plus d'espace */
    margin-bottom: 20px;
}

.quantity-btn {
    background: #2E8B57; /* Vert Kinema+ */
    color: white;
    border: none;
    width: 40px; /* Plus grand */
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem; /* Plus grand */
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.4);
}

.quantity-btn:hover {
    background: #246B44; /* Vert plus foncé au survol */
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(46, 139, 87, 0.5);
}

.quantity-btn:active {
    transform: translateY(0);
}

.quantity-btn:disabled {
    background: #444444; /* Gris sombre désactivé */
    color: #888888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.quantity-display {
    font-weight: bold;
    font-size: 1.3rem; /* Plus grand */
    min-width: 60px; /* Assure une bonne largeur */
    text-align: center;
    color: #E0E0E0; /* Blanc cassé */
    background: #1A1A1A; /* Fond sombre */
    padding: 10px 18px;
    border-radius: 25px;
    border: 2px solid #282828;
}

/* --- Prix total --- */
.total-price {
    font-size: 1.4rem; /* Plus grand et proéminent */
    font-weight: bold;
    color: #3BCC7A; /* Vert Kinema+ pour le prix */
    margin-bottom: 20px;
    text-align: center;
    padding: 15px;
    background: #151515; /* Fond sombre */
    border-radius: 12px;
    border: 2px solid #2E8B57; /* Bordure verte */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- Boutons d'action (location/réservation) --- */
.rent-btn,
.reservation-btn {
    background: linear-gradient(45deg, #2E8B57, #3BCC7A); /* Dégradé vert Kinema+ */
    color: white;
    border: none;
    padding: 16px 30px; /* Plus de padding */
    border-radius: 30px; /* Très arrondi */
    cursor: pointer;
    font-size: 1.1rem; /* Plus grand */
    font-weight: 700; /* Plus gras */
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px; /* Plus d'espacement pour l'effet pro */
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.4);
}

.rent-btn:hover,
.reservation-btn:hover {
    background: linear-gradient(45deg, #246B44, #2E8B57); /* Vert plus foncé au survol */
    transform: translateY(-4px); /* Effet de soulèvement plus marqué */
    box-shadow: 0 10px 25px rgba(46, 139, 87, 0.5);
}

.rent-btn:active,
.reservation-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.4);
}

.rent-btn:disabled,
.reservation-btn:disabled {
    background: linear-gradient(45deg, #444444, #555555); /* Gris désactivé */
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #BBBBBB;
}

/* Styles spécifiques au bouton de réservation (bleu) */
.reservation-btn {
    background: linear-gradient(45deg, #2196F3, #42A5F5); /* Dégradé bleu */
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.reservation-btn:hover {
    background: linear-gradient(45deg, #1976D2, #2196F3); /* Bleu plus foncé */
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.5);
}

.reservation-btn:active {
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}


/* --- Informations sur les places (pour projection) --- */
.seats-info {
    background: #1A1A1A; /* Fond sombre */
    padding: 15px;
    border-radius: 12px;
    margin: 18px 0;
    text-align: center;
    font-weight: bold;
    color: #42A5F5; /* Bleu pour les infos de places */
    border: 2px solid #2196F3; /* Bordure bleue */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-size: 1rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
    .user-info h2 {
        font-size: 1.4rem;
    }
    .balance-info {
        font-size: 1.1rem;
        padding: 12px 20px;
    }
    .category-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Une colonne sur mobile */
        gap: 25px;
    }

    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px 15px;
        border-radius: 15px;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .user-photo {
        width: 50px;
        height: 50px;
    }
    .user-info h2 {
        font-size: 1.3rem;
    }
    .user-info p {
        font-size: 0.9rem;
    }
    .balance-info {
        padding: 10px 18px;
        font-size: 1rem;
    }

    .price-options {
        flex-direction: column; /* Options de prix en colonne sur mobile */
        gap: 10px;
    }

    .price-option {
        min-width: auto;
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .category-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .service-category {
        padding: 25px;
    }

    .item-name, .city-name {
        font-size: 1.3rem;
    }
    .item-description {
        font-size: 0.9rem;
    }
    .quantity-btn {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }
    .quantity-display {
        font-size: 1.2rem;
    }
    .total-price {
        font-size: 1.3rem;
    }
    .rent-btn, .reservation-btn {
        padding: 14px 25px;
        font-size: 1rem;
        border-radius: 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .header {
        padding: 15px;
        margin-bottom: 25px;
    }
    .user-photo {
        width: 45px;
        height: 45px;
        border-width: 3px;
    }
    .user-info h2 {
        font-size: 1.2rem;
    }
    .balance-info {
        font-size: 0.95rem;
    }
    .service-category {
        padding: 20px;
        border-radius: 15px;
    }
    .category-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    .service-item,
    .projection-item {
        padding: 20px;
        border-radius: 12px;
    }
    .item-name, .city-name {
        font-size: 1.2rem;
    }
    .item-catchphrase {
        font-size: 0.9rem;
    }
    .item-description {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }
    .pricing-section {
        padding: 18px;
    }
    .price-option {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    .quantity-display {
        font-size: 1.1rem;
        padding: 6px 12px;
    }
    .total-price {
        font-size: 1.2rem;
        padding: 12px;
    }
    .rent-btn, .reservation-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        border-radius: 20px;
    }
    .seats-info {
        font-size: 0.9rem;
        padding: 12px;
    }
}
