/* Modal Tirage Cégep */
.tirage-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.tirage-modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tirage-modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.tirage-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tirage-modal-close:hover {
    background: white;
    transform: rotate(90deg);
}

.tirage-modal-image {
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.tirage-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tirage-modal-scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px 30px 20px 30px;
}

.tirage-modal-scrollable-content::-webkit-scrollbar {
    width: 8px;
}

.tirage-modal-scrollable-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tirage-modal-scrollable-content::-webkit-scrollbar-thumb {
    background: #003366;
    border-radius: 4px;
}

.tirage-modal-scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #002244;
}

.tirage-modal-info h2 {
    margin: 0 0 20px 0;
    color: #003366;
    font-size: 28px;
}

.tirage-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.tirage-date-item {
    text-align: center;
}

.tirage-date-item strong {
    display: block;
    color: #003366;
    font-size: 14px;
    margin-bottom: 5px;
}

.tirage-date-item span {
    color: #666;
    font-size: 16px;
}

.tirage-prizes {
    margin-bottom: 0;
}

.tirage-prizes h3 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 18px;
}

.tirage-prize-list {
    display: grid;
    gap: 8px;
}

.tirage-prize-item {
    padding: 10px 12px;
    background: #f0f7ff;
    border-left: 4px solid #003366;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tirage-prize-item span:first-child {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.tirage-prize-value {
    color: #003366;
    font-weight: bold;
    font-size: 16px;
}

.tirage-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
    background: white;
}

.tirage-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    flex: 1;
    text-align: center;
}

.tirage-btn-primary {
    background: linear-gradient(135deg, #003366, #0066cc);
    color: white;
}

.tirage-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.4);
}

.tirage-btn-info {
    background: linear-gradient(135deg, #0088cc, #00aaff);
    color: white;
}

.tirage-btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.tirage-btn-secondary {
    background: #6c757d;
    color: white;
}

.tirage-btn-secondary:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
    .tirage-modal-overlay {
        padding: 10px;
    }

    .tirage-modal-content {
        max-height: 95vh;
    }

    .tirage-modal-scrollable-content {
        padding: 20px 20px 15px 20px;
    }

    .tirage-modal-info h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .tirage-dates {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
        margin-bottom: 15px;
    }

    .tirage-date-item strong {
        font-size: 13px;
    }

    .tirage-date-item span {
        font-size: 14px;
    }

    .tirage-prizes h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .tirage-prize-item {
        padding: 8px 10px;
    }

    .tirage-prize-item span:first-child {
        font-size: 13px;
    }

    .tirage-prize-value {
        font-size: 14px;
    }

    .tirage-modal-actions {
        flex-direction: column;
        padding: 15px 20px;
    }

    .tirage-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
}
