/* Styles globaux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9fafb;
    color: #333;
}

/* Conteneur principal */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    height: 100%;
}

/* Barre latérale */
.days {
    flex: 1 1 250px; /* Ajustement pour petits écrans */
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.days h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: #2c3e50;
}

.day {
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
    background: #f1f3fc;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.day:hover {
    background: #4f83cc;
    color: #ffffff;
    transform: scale(1.05);
}

.day.active {
    background: #ff6f61;
    color: #ffffff;
}

/* Contenu principal */
.main-content {
    flex: 3 1 500px;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Contenu visuel */
.visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual .circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #3b82f6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual .circle span {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
}

/* Section paiement */
.payment {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Boutons de paiement */
.payment .pay-btn {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 18px;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.payment .pay-btn:hover {
    background-color: #059669;
}

/* Bouton retour */
.back-button-container {
    position: relative; /* Meilleure gestion sur petits écrans */
    margin: 20px 0;
}

.back-button {
    background-color: #E75440;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .days, .main-content {
        flex: 1 1 100%;
    }

    .visual .circle {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .days {
        padding: 20px;
    }

    .day {
        font-size: 14px;
    }

    .visual .circle {
        width: 120px;
        height: 120px;
    }

    .payment .pay-btn {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .days {
        padding: 10px;
    }

    .day {
        font-size: 12px;
    }

    .visual .circle {
        width: 100px;
        height: 100px;
    }

    .payment .pay-btn {
        font-size: 14px;
    }
}


.main-content {
    flex: 3;
    display: flex;
    flex-direction: column;
    padding: 20px;
}



.content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual .circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #3b82f6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual .circle span {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
}

.payment {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.payment .card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #f3f4f6;
    border-radius: 8px;
    margin-bottom: 10px;
}

.payment .card input[type="radio"] {
    margin-right: 10px;
}

.payment .card button {
    border: none;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.payment .pay-btn {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 18px;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.payment .pay-btn:hover {
    background-color: #059669;
}

.izly {
    text-align: center;
    margin-top: 20px;
}

.izly img {
    width: 80px;
}

.izly a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: bold;
}

.izly a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        text-align: center;
    }

    .content {
        flex-direction: column;
    }

    .visual, .payment {
        margin: 0 auto;
    }
}


.back-button-container {
    position: absolute; /* Permet de positionner le bouton précisément */
    bottom: 10%;         /* Espace depuis le bas (en pourcentage, pour l'adaptation) */
    left: 5%;           /* Espace depuis la gauche (en pourcentage) */
}

.back-button {
    background-color: #E75440; /* Couleur rouge similaire à l'image */
    color: #ffffff;
    width: 7vw;              /* Largeur en fonction de la taille de l'écran */
    height: 7vw;             /* Hauteur égale à la largeur pour garder un cercle */
    max-width: 40px;          /* Taille maximale pour éviter qu'il devienne trop grand */
    max-height: 40px;         /* Limite pour la hauteur */
    min-width: 40px;          /* Taille minimale pour qu'il reste visible sur petits écrans */
    min-height: 40px;         /* Limite pour petits écrans */
    border: none;
    border-radius: 50%;       /* Rend le bouton circulaire */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;        /* Taille de la flèche (ajustable) */
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(228, 34, 34, 0); /* Légère ombre */
    transition: transform 0.2s ease;
}

.back-button:hover {
    transform: scale(1.1); /* Animation au survol */
}

/* Ajout d'une icône pour la flèche */
.back-button::before {
    content: "←"; /* Flèche gauche */
}

/* Media Queries pour s'assurer que le bouton s'adapte parfaitement */
@media (max-width: 768px) { /* Tablettes et petits écrans */
    .back-button {
        width: 12vw;
        height: 12vw;
        max-width: 50px;
        max-height: 50px;
        font-size: 1.2rem; /* Réduction de la taille de la flèche */
    }
}

@media (max-width: 480px) { /* Téléphones */
    .back-button {
        width: 15vw;
        height: 15vw;
        max-width: 40px;
        max-height: 40px;
        font-size: 1rem; /* Encore plus petit sur les très petits écrans */
    }
}