body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.top-direct {
    padding: 8px;
}

.nrj-direct-btn {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 68px;
    padding: 0 28px;
    margin: 0;
    border: 0;
    color: white;
    background: #bc0018;
    border-radius: 34px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    font-family: Arial, sans-serif;
    cursor: pointer;
}

.nrj-direct-btn:hover {
    background: #a90016;
}

.nrj-direct-icon {
    width: 42px;
    height: 42px;
    position: relative;
    flex: 0 0 auto;
    border-radius: 50%;
    background: white;
}

.nrj-direct-icon::after {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 5px;
    background: #bc0018;
}

.nrj-direct-btn.is-playing .nrj-direct-icon::after {
    inset: 10px auto 10px 12px;
    width: 7px;
    border-radius: 3px;
    box-shadow: 12px 0 0 #bc0018;
    background: #bc0018;
}

header {
    background-color: #2563eb;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

nav {
    background-color: #1e40af;
    text-align: center;
    padding: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 15px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

section {
    max-width: 900px;
    margin: auto;
    padding: 30px;
}

.carte {
    background: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

footer {
    background-color: #2563eb;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

.points-hud {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.points-counter,
.shop-open-button,
.prediction-open-button {
    padding: 12px 18px;
    color: white;
    background: #e4002b;
    border: none;
    border-radius: 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.shop-open-button,
.prediction-open-button {
    cursor: pointer;
}

.shop-open-button:hover,
.prediction-open-button:hover {
    background: #c90024;
}

.points-button {
    position: fixed;
    left: 15px;
    bottom: 15px;
    z-index: 1000;
    padding: 14px 22px;
    color: white;
    background: #e4002b;
    border: none;
    border-radius: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.points-button:hover {
    background: #c90024;
}

.points-button.is-clicked {
    animation: clickBounce 0.35s ease;
}

.floating-point {
    position: fixed;
    left: 42px;
    bottom: 78px;
    z-index: 1001;
    color: #e4002b;
    font-size: 28px;
    font-weight: bold;
    pointer-events: none;
    animation: pointFloat 0.7s ease forwards;
}

@keyframes clickBounce {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pointFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-35px) scale(1.25);
    }
}

.points-shop {
    position: fixed;
    top: 115px;
    right: 15px;
    z-index: 1002;
    width: min(320px, calc(100% - 30px));
    padding: 18px;
    color: #111;
    background: white;
    border: 3px solid #e4002b;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transform: translateX(calc(100% + 40px));
    transition: transform 0.25s ease;
}

.prediction-panel {
    position: fixed;
    top: 170px;
    right: 15px;
    z-index: 1002;
    width: min(380px, calc(100% - 30px));
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    padding: 18px;
    color: #111;
    background: white;
    border: 3px solid #2563eb;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transform: translateX(calc(100% + 40px));
    transition: transform 0.25s ease;
}

.prediction-panel.is-open {
    transform: translateX(0);
}

.refresh-predictions {
    margin: 0 0 10px;
    padding: 10px 14px;
    border-radius: 18px;
}

.prediction-match {
    display: grid;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.prediction-match span {
    color: #555;
    font-size: 14px;
}

.prediction-match em {
    color: #2563eb;
    font-style: normal;
    font-weight: bold;
}

.prediction-buttons {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
}

.prediction-buttons button {
    min-width: 0;
    padding: 9px 8px;
    margin: 0;
    border-radius: 16px;
    font-size: 12px;
}

.prediction-buttons button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.points-shop.is-open {
    transform: translateX(0);
}

.points-shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.points-shop-header h2 {
    margin: 0;
}

.points-shop-header button {
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
}

.shop-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.shop-preview {
    width: 52px;
    height: 52px;
    border-radius: 8px;
}

.shop-item strong,
.shop-item span {
    display: block;
}

.shop-item span {
    color: #666;
    font-size: 14px;
}

.shop-item button {
    margin: 0;
    padding: 9px 12px;
    border-radius: 18px;
}
