/* TON CSS EXACT (aucune modif) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f5f500;
    display: flex;
    justify-content: center; /* centre horizontalement */
    align-items: flex-start; /* aligne en haut */
    height: 100vh;
    margin: 0;
}

.container {
    width: 520px;
    background: #ffffff00;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.label {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
    text-align: center;
    width: 100%;
    font-weight: 500;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 42px;
    background: #fff;
    width: 100%;
}

.flag-box {
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-right: 1px solid #e0e0e0;
    height: 100%;
}

.flag {
    width: 22px;
    height: 16px;
    background: linear-gradient(
        to right,
        #007a5e 33%,
        #ce1126 33%,
        #ce1126 66%,
        #fcd116 66%
    );
    margin-right: 6px;
    position: relative;
}

.flag::after {
    content: "★";
    color: #fcd116;
    font-size: 10px;
    position: absolute;
    top: 1px;
    left: 6px;
}

.phone-input {
    border: none;
    outline: none;
    padding: 0 12px;
    font-size: 15px;
    width: 100%;
    color: #333;
}

.select-container {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

.select-box {
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    cursor: pointer;
    background: #fff;
}

.select-text {
    font-size: 15px;
    color: #333;
}

.arrow {
    border: solid #666;
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(45deg);
}

.dropdown {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: none;
    flex-direction: column;
    z-index: 10;
}

.dropdown div {
    padding: 10px;
    cursor: pointer;
}

.dropdown div:hover {
    background: #f0f6ff;
}

.buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.btn {
    width: 160px;
    height: 42px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid #4a90e2;
    background: transparent;
    color: #4a90e2;
}

.btn.primary {
    background: #fff;
}

.btn:hover {
    background: #f0f6ff;
}

@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 20px;
    }

    .btn {
        width: 48%;
    }
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#modal-text {
    font-size: 15px;
    margin-bottom: 15px;
}

#modal-close {
    display: none;
    padding: 8px 15px;
    border: none;
    background: #4a90e2;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}
.modal-amount {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}

.modal-timer {
    font-size: 32px;
    font-weight: bold;
    color: red;
    margin-bottom: 15px;
}