* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #F8F9FD;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 20px 0;
    background-color: #4E44E4;
    color: #FFFFFF;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

/* Barre latérale */
.days {
    flex: 1 1 300px;
    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 {
    flex: 1 1 500px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(145deg, #5F72FF, #9B23EA);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    height: 350px;
    margin: 20px 0;
}

.circle {
    background-color: #ffffff;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4E44E4;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}


.price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FFD25A;
    border-radius: 10px;
    padding: 15px 20px;
    width: 80%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
}

.pay-button {
    background-color: #F96D4E;
    color: #FFF;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.pay-button {
    background-color: #F96D4E;
    color: #ffffff;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.pay-button:hover {
    background-color: #FF8C6C;
    transform: scale(1.1);
}



footer {
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
    width: 100%;
}



.back-button-container {
    position: absolute; /* Permet de positionner le bouton précisément */
    bottom: 65%;         /* Espace depuis le bas (en pourcentage, pour l'adaptation) */
    left: 10%;           /* 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 */
    }
}


footer p {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .circle-container {
        padding: 30px;
    }
    .circle {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }
    .price-container {
        padding: 15px;
    }
}