/*
 * HALLOWEEN THEME
 * Polices: 'Creepster' pour les titres, 'Special Elite' pour le corps du texte
 * Palette:
 * - Fond sombre: #1a1a1a
 * - Fond d'élément plus sombre: #2b2b2b
 * - Orange primaire: #ff6600
 * - Violet d'accentuation: #6a0dad
 * - Texte: #e0e0e0 (blanc cassé)
 * - Vert succès: #7fff00 (vert fluo/slime)
*/

body {
    font-family: 'Special Elite', monospace; /* Police style machine à écrire ancienne */
    background-color: #1a1a1a; /* Fond sombre et effrayant */
    color: #e0e0e0; /* Texte blanc cassé pour la lisibilité */
    margin: 0;
    line-height: 1.6;
}

header {
    background-color: #ff6600; /* Orange citrouille */
    color: #000000; /* Texte noir pour un contraste élevé */
    padding: 1.5rem 2rem;
    text-align: center;
    font-family: 'Creepster', cursive; /* Police horreur dégoulinante */
    border-bottom: 3px solid #000000; /* Bordure noire solide */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header h1 {
    margin: 0;
    font-size: 3rem; /* Plus grand pour plus d'impact */
}

/* --- Style du Bandeau Promo --- */
.promo-banner {
    background-color: #ff6600; /* Orange vif pour attirer l'attention */
    color: #000000; /* Texte noir contrasté */
    padding: 12px 20px;
    text-align: center;
    font-family: 'Special Elite', monospace;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); /* Ombre plus prononcée */
    border-bottom: 2px solid #000000;
}

.promo-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.promo-banner p {
    margin: 0;
    font-size: 1rem;
}

.promo-banner strong {
    background-color: #6a0dad; /* Violet effrayant pour le code promo */
    color: #ffffff; /* Texte blanc pour contraster avec le violet */
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #ffffff; /* Bordure blanche pour le faire ressortir */
    font-family: 'Creepster', cursive;
}

#countdown-timer {
    font-size: 1.1rem;
    font-weight: 700;
    color: #7fff00; /* Vert fluo pour le compte à rebours */
    text-shadow: 0 0 5px #000;
}

nav a {
    color: #000000;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2rem;
    transition: color 0.3s;
    font-family: 'Special Elite', monospace;
}

nav a:hover {
    color: #6a0dad; /* Violet effrayant au survol */
}

#cart-count {
    background-color: #6a0dad; /* Accent violet */
    color: #ffffff; /* Texte blanc pour le contraste */
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #000;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 70vh;
}

.ticket-card, .checkout-container {
    background: #2b2b2b; /* Fond de carte sombre */
    border: 1px solid #ff6600; /* Bordure orange */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.5); /* Effet de lueur orange */
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.ticket-header {
    background-color: #000000; /* Noir corbeau */
    color: #ff6600; /* Texte orange */
    padding: 20px;
    text-align: center;
}

.ticket-header h2 {
    margin: 0;
    font-family: 'Creepster', cursive; /* Police de titre effrayante */
}

.platform {
    font-size: 1.2rem;
    font-style: italic;
    color: #ccc;
}

.ticket-body {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details p, .price p {
    margin: 5px 0;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6600; /* Orange vif pour le prix */
}

.ticket-footer {
    background-color: #222; /* Une nuance de sombre légèrement différente */
    padding: 20px;
    text-align: center;
    border-top: 2px dashed #ff6600; /* Ligne pointillée orange comme des coutures */
}

#add-to-cart, #apply-coupon, .pay-button {
    background-color: #ff6600; /* Orange citrouille */
    color: #000000; /* Texte noir */
    border: 2px solid #000;
    padding: 12px 25px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    font-family: 'Creepster', cursive;
    font-weight: bold;
}

#add-to-cart:hover, #apply-coupon:hover, .pay-button:hover {
    background-color: #6a0dad; /* Violet au survol */
    color: #ffffff;
    border-color: #fff;
}

/* Page Panier */
.checkout-container {
    padding: 30px;
}

.checkout-container h2 {
    text-align: center;
    font-family: 'Creepster', cursive;
    margin-bottom: 25px;
    color: #ff6600;
}

#order-summary {
    margin-bottom: 20px;
    border-bottom: 1px solid #ff6600;
    padding-bottom: 20px;
}

.coupon-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#coupon-code {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #666;
    border-radius: 5px;
    background-color: #333;
    color: #e0e0e0;
    font-family: 'Special Elite', monospace;
}

#coupon-message {
    font-size: 0.9rem;
    margin-top: 10px;
}

.success {
    color: #7fff00; /* Vert fluo */
}

.error {
    color: #dc3545; /* Le rouge est universel pour les erreurs */
}

.total-section {
    text-align: right;
    font-size: 1.4rem;
    font-weight: bold;
    color: #ff6600; /* Prix total en orange */
}

.pay-button {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.4rem;
}