:root {
    /* Couleurs principales */
    --color-bg: #38444e;
    --color-bg-box: #2c373e;
    --color-text: #ffffff;
    --color-primary: #dedede;
    --color-secondary: #a6a6a6;
    --color-border: #3b4852;
    --color-hover: #343f48;
    --color-shadow: rgba(0, 0, 0, 0.634);
    --color-booked: #448fbc;
    --color-green: #44cf40;

    /* Couleurs des éléments spécifiques */
    --color-button-bg: #448fbc;
    --color-button-hover: #50aae2;
    --color-button2-bg: #dc3e30;
    --color-button2-hover: #fb4635;
    --color-input-bg: #fff;
    --color-input-border: #3a3a3a;
    --color-flash-bg: rgb(228, 184, 118, 0.8);
    --color-flash-text: #ffffff;
    --color-bg-modal: rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;  /* Empêche le défilement */
    touch-action: pan-y;  /* Désactive les gestes tactiles comme le zoom ou le défilement */

    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

footer {
    padding-top:5px;
    padding-bottom: calc(env(safe-area-inset-bottom, 10px));
    text-align: center;
    color: var(--color-secondary);
    font-size: 12px;
}

h2 {
    margin-top: 0px;
    color: var(--color-text);
    margin-bottom: 10px;
}

.auth-box {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-box);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--color-shadow);
    width: 100%;
    max-width: 600px;
    height: 100%;
    max-height: 700px;
    text-align: center;
    color: var(--color-text);
    position: relative;  /* Ajout pour contenir l'image de fond */
    overflow: hidden;    /* Pour que l'image ne déborde pas */
}

.auth-box-footer {
    margin-top: auto;
    padding-top: 5px;
}

.background-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-image {
    width: 100%;
    height: auto;
    opacity: 0.2;
    padding: 10px;
    max-height: 100%;
    object-fit: contain;
}

.register-form {
    position: relative;
    z-index: 1;  /* Un z-index positif suffit pour être au-dessus */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.link {
    flex:0;
    color: var(--color-booked);
}

.signup-link {
    flex:0;
    margin-top: 10px;
}

.auth-box h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.auth-box form {
    flex:0;
}

.auth-image {
    flex:1;
    max-width:100%;
    height:50%;
    max-height:400px;
    object-fit: contain;
}

.auth-box .form-group {
    flex:0;
    text-align: center;
}

.form-group {
    margin-bottom: 10px;
    text-align: left;
    position: relative;
}

.form-group input {
    flex:0;
    max-width: 300px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 16px;
    background-color: var(--color-input-bg);
    text-align: left;
}

.form-actions {
    flex:0;
    display:flex;
    justify-content: center;
}

.form-actions button {
    flex:1;
    width: 80%;
    min-width: 120px;
    padding: 10px;
    background-color: var(--color-button-bg);
    color: var(--color-text);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin:5px;
}

.form-actions button:hover {
    background-color: var(--color-button-hover);
}

.flash-message {
    background-color: var(--color-flash-bg); /* Couleur de fond */
    color: var(--color-flash-text); /* Couleur du texte */
    padding: 10px 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px var(--color-shadow);
    opacity: 1;
    transition: opacity 0.5s ease;
}

h3 {
    margin-top: 0px;
    margin-bottom: 8px;
    font-size: 18px;
    color: var(--color-text);
}

h4 {
    margin: 0px;
    font-size: 16px;
    color: var(--color-text);
}


/* APPS */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    padding: 30px;
    box-sizing: border-box;
}

.app-list {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-box);
    padding: 20px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--color-shadow);
    width: 100%;
    max-width: 600px;
    height: 100%;
    max-height:700px;
    text-align: center;
}

.app-list-column {
    flex:1;
    padding-inline-start: 0px;
    /*height: 55%; 450px;  /* Limiter la hauteur maximale à 400px, ajustez cette valeur selon vos besoins */
    overflow-y: auto;   /* Ajoute un défilement vertical si le contenu dépasse la hauteur */
    padding-right: 0px; /* Ajoute de l'espace pour éviter que le contenu touche la bordure */
    overflow-y: scroll; /* Afficher la bare de défilement */
    margin:2px;
}
/*
.app-list .app-list-column {
    height:80%;
    max-height: 70%
}
*/
.app-list h2 {
    margin-bottom: 30px;
    font-size: 24px;
}

.app-item {
    background: var(--color-bg-box);
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--color-shadow);
    text-align: left;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    max-height: 80px;
}

.app-text p {
    margin: 0px;
}

.app-text h3 {
    padding-bottom: 5px;
}

.app-item a {
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    width: 100%;
}

.app-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-height: 70px;
}

.app-image {
    width: 60px; /* Taille fixe de l'image */
    height: auto;
    margin-right: 20px; /* Espacement entre l'image et le texte */
    border-radius: 8px;
    margin-bottom: 0px;
}

.app-text {
    flex: 1;
}

.app-text .form-actions {
    text-align: center;
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Si vous voulez aussi centrer verticalement */
    width: 100%; /* Assurez-vous que le conteneur occupe toute la largeur disponible */
}

.app-text .form-group {
    text-align: left;
    max-width: 100%;
}

.app-text input {
    max-width: 100%;
}

.app-item h3 {
    margin: 0;
    font-size: 20px;
}

.app-item p {
    font-size: 14px;
    color: var(--color-secondary);
}

/* Effet au survol */
.app-item:hover {
    transform: translateY(-5px); /* Légère élévation */
    box-shadow: 0 10px 20px var(--color-shadow); /* Ombre plus marquée */
    background-color: var(--color-hover); /* Changer de coapp-listeur de fond au survol */
    cursor: pointer;
}

/* Effet au clic */
.app-item:active {
    transform: translateY(2px); /* Simulation d'une pression */
    box-shadow: 0 5px 15px var(--color-shadow); /* Ombre réduite */
    background-color: var(--color-primary); /* Légère modification de la couleur de fond */
}

.app-details {
    background: var(--color-bg-box);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--color-shadow);
    width: 100%;
    max-width: 600px;
    text-align: left;
}

.app-details h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.app-details p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.app-details .app-content {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    max-height: 200px;
}

.app-details .app-image {
    width: 100px; /* Taille plus grande pour l'image dans les détails */
    height: auto;
    margin-right: 20px;
}

.app-details .app-text {
    flex: 1;
}

.home {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-box);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--color-shadow);
    width: 100%;
    max-width: 600px;
    text-align: center;
    height:100%;
    max-height:700px;
}

.prices {
    flex:1;
    display: flex;
    flex-direction: column;
}


.home .app-image {
    width: 50px; /* Taille plus grande pour l'image dans les détails */
    height: auto;
    margin-right: 10px;
}

.home .app-item {
    padding: 10px;
}

.home p {
    margin: 0px;
    color: var(--color-text)
}

button {
    width: 100%;
    padding: 15px;
    background-color: var(--color-button-bg);
    color: var(--color-bg-box);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    max-width: 300px;
}

button:hover {
    background-color: var(--color-button-hover);
}

/* Ajout du style pour le formulaire et la liste déroulante */
form label {
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
    color: var(--color-text);
}

form select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 16px;
}

form button {
    width: 100%;
    padding: 10px;
    background-color: var(--color-button-bg);
    color: var(--color-text);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

form button:hover {
    background-color: var(--color-button-hover);
}


.suggestions-list {
    position:relative;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    border: 1px solid var(--color-border);
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    box-shadow: 0 4px 6px var(--color-shadow);
}

.suggestions-list li {
    z-index: 201;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    background-color: var(--color-input-bg);
}

.suggestions-list li:hover {
    background-color: var(--color-primary);
}

.suggestions-list li:last-child {
    border-bottom: none;
}

.suggestions-list li span {
    font-size: 0.9em;
    color: var(--color-secondary);
}

.left {
    position: relative;
    left: 0; /* Positionnement à gauche */
}

.right {
    position: sticky;
    right: 0; /* Positionnement à droite */
}

/* Planning Box */
.planning-box {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-box);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--color-shadow);
    width: 100%;
    max-width: 600px;
    text-align: center;
    height:100%;
    max-height:700px;
}

.planning-box h2 {
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 24px;
    color: var(--color-text);
    text-align: center;
}

/* Activités */
/* Activités avec style app-item */

/* Style pour le bandeau supérieur avec le titre et le select */
.header {
    background: var(--color-bg);
    color: white;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px var(--color-shadow);
    border-radius: 8px;
    text-align: center;
}
.header h2 {
    display: flex;
    justify-content: space-between;  /* Espacement entre le texte et le select */
    align-items: center;  /* Alignement vertical du texte et du select */
    font-size: 24px;
    margin: 0;
}

.header h2 span {
    font-weight: bold;
}

#daySelector {
    font-size: 24px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-box);
    color: var(--color-text);
    cursor: pointer;
    font-weight: bold;
}

#daySelector:hover {
    border-color: var(--color-button-bg);
}

#daySelector:focus {
    outline: none;
}

#currentDay {
    margin-top: 20px;
    font-size: 24px;
    color: var(--color-text);
    display: none;
    visibility: hidden;
}

.header h1 {
    margin: 0;
    font-size: 20px;
}

.header select {
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.activity-item {
    background: var(--color-bg-box);
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--color-shadow);
    text-align: left;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--color-shadow);
    background-color: var(--color-hover);
    cursor: pointer;
}

.activity-item:active {
    transform: translateY(2px);
    box-shadow: 0 5px 15px var(--color-shadow);
    background-color: var(--color-secondary);
}

.activity-item h3 {
    margin: 0;
    font-size: 16px;
    color: var(--color-text);
    margin-right: 5px;
    text-align: left;
}

.activity-item h4 {
    margin: 0;
    font-size: 14px;
    color: var(--color-text);
    margin-right: 5px;
    text-align: center;
}

.activity-item p {
    margin: 5px 0;
    font-size: 12px;
    color: var(--color-secondary);
    text-align: right;
}

.activity-item .activity-time {
    font-size: 12px;
    color: var(--color-secondary);
}

.activity-item .activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-item .activity-image {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    border-radius: 8px;
    background-color: var(--color-bg-box);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-secondary);
    font-size: 16px;
    font-weight: bold;
}

/* Date de l'activité à gauche */
.activity-item .activity-date {
    font-size: 14px;
    color: var(--color-secondary);
    flex: 1;  /* La date prend l'espace restant à gauche */
    white-space: nowrap;  /* Empêche la casse de texte */
}

/* Nom de l'activité au centre */
.activity-item .activity-name {
    font-size: 18px;
    color: var(--color-button-bg);
    text-align: center;
    flex: 2;  /* Le nom prend un peu plus de place, mais reste centré */
}

/* Places disponibles à droite */
.activity-item .activity-spots {
    font-size: 14px;
    color: var(--color-text);
    text-align: left;  /* Alignement du texte à droite */
    flex-basis: 50px;  /* Largeur fixe pour que tous les éléments soient alignés sur la même ligne */
    white-space: nowrap;  /* Empêche la casse de texte */
}

.activity-item-booked {
    background-color: var(--color-booked);
}
.activity-item-booked:hover {
    background-color: var(--color-booked);
}
.activity-item-booked:active {
    background-color: var(--color-booked);
}
.activity-item-full {
    background-color: var(--color-button2-bg);
    opacity: 0.5;
    /* cursor: not-allowed;
    pointer-events: none; */
}
.activity-item-full:hover {
    background-color: var(--color-button2-bg);
}
.activity-item-inactive {
    background-color: var(--color-secondary);
    opacity: 0.5;
}
.activity-item-inactive:hover {
    background-color: var(--color-secondary);
}

/* Conteneur des activités avec un défilement */
.day-content {
    flex:1;
    height:100%;
     /*max-height: 75%; 500px;  /* Limiter la hauteur maximale à 400px, ajustez cette valeur selon vos besoins */
    overflow-y: auto;   /* Ajoute un défilement vertical si le contenu dépasse la hauteur */
    padding-right: 0px; /* Ajoute de l'espace pour éviter que le contenu touche la bordure */
    overflow-y: scroll; /* Afficher la bare de défilement */
}

.day-content p {
    color: var(--color-primary);
}

a {
    text-decoration: none;
}

/* Planning Box */
.reservation-box {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-box);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--color-shadow);
    width: 100%;
    max-width: 600px;
    height:90%;
    max-height:700px;
    text-align: center;
}

.reservation-box .day h3 {
    margin-top: 15px;
    text-align: left;
}

.reservation-box h2 {
    margin-bottom: 10px;
}

.reservation-box .app-image {
    width: 30px;
    align-items: center; 
    justify-content: center; /* Centre horizontalement */
    margin-right: 0px;
    text-align: center;
}

.reservation-box p {
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 0px;
    margin-top: 0px;
}


.reservation-description {
    display: flex;
    justify-content: center;
    align-items: center; /* Centre verticalement */
    gap: 10px; /* Espace entre l'image et le texte */
    text-align: center;
    padding-bottom:5px;
}
.reservation-description p {
    font-size: 18px;
    text-align: right;
}
.reservation-description .login p {
    font-size: 12px;
}

.planning-box .reservation-description .app-image {
    width: 30px;
    align-items: center; 
    justify-content: center; /* Centre horizontalement */
    margin-right: 0px;
    text-align: center;
}

.planning-box .reservation-description p {
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 0px;
    margin-top: 0px;
}

/* Style de la pop-up */
.modal {
    display: none; /* Masquer la pop-up au début */
    justify-content: center;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-modal); /* Fond semi-transparent */
    justify-content: center;
    align-items: center;
}

/* Contenu de la pop-up */
.modal-content {
    background: var(--color-bg-box);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--color-shadow);
    text-align: center;
    margin: auto auto;
    border: 1px solid var(--color-bg);
    width: 80%;
    max-width: 400px;
}
.modal-content img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
}

.modal-install {
    flex:1;
    margin: auto;
    height: 90%;
    max-height: 100%;
    width: 80%;
    max-width: 400px;
}

.modal-install .modal-content{
    display: flex;
    flex-direction: column;
    margin: 5px;
    height: 100%;
    max-height: 100%;
    width: 100%;
    background: var(--color-flash-text);
}

.modal-install .modal-content p {
    color: var(--color-bg);
    margin-top: 0px;
    margin-bottom: 5px;
}

.modal-install h2 {
    margin-top: 5px;
    color: var(--color-bg);
}

.image-slider {
    display: flex;
    flex-direction: column;
    flex:1;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-container {
    flex:1;
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.slider-container img {
    flex: 0 0 100%;
    width: auto;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    scroll-snap-align: start;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-bg-box);
    margin: 0 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-size: 14px;
    border: 1px solid var(--color-border);
}

.dot.active {
    background: var(--color-button-bg);
    color: var(--color-text);
}

.modal-content .form-group input {
    max-width: 100%;
}

.modal-content .form-group {
    z-index: 100;
}

.slide-descriptions {
    text-align: center;
    margin-top: 15px;
}

.slide-text {
    display: none;
    margin: 10px 0;
}

.slide-text.active {
    display: block;
}

/* Bouton de fermeture */
.close {
    color: var(--color-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    text-align: right;
    z-index: 1000;
    position: relative;
}

.close:hover,
.close:focus {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

.inputs-wrapper {
    display: flex;
    flex-direction:row;
    align-items: center; /* Aligne verticalement les inputs */
}

.inputs-wrapper input {
    flex:1;
    margin: 0 0px; /* Ajouter un petit espace entre les inputs */
    text-align: center;
}

.inputs-wrapper span {
    margin: 0 5px; /* Ajouter un petit espace entre les inputs */
    color: var(--color-text)
}

.inputs-wrapper p {
    align-items: center;
    color: var(--color-primary);
}

#res_trigger_day {
    max-width: 60px;
    text-align: center;
}
#res_trigger_time {
    max-width: 100px;
    text-align: center;
}

.form-group .modal input {
    padding:5px;
}

/* Style pour la barre de navigation */
.navbar {
    position: relative;
    z-index: 99;  /* Même valeur élevée */
    flex:0;
    display: flex;  /* Utilisation de Flexbox */
    flex-direction: row;
    justify-content: space-between;  /* Sépare les éléments entre gauche et droite */
    align-items: center;  /* Centre les éléments verticalement */
    padding: 0px 0px;  /* Espacement autour de la barre */
    margin-bottom: 10px;
}

.navbar .app-image {
    flex:1;
    width: 250px;
    margin-right: 0px;
    max-width: 60%;
    cursor: pointer;
}


.navbar ul {
        display: flex;
        gap: 15px;
        padding: 0;
    }

.navbar li {
        list-style: none;
        z-index: 10;
    }

.navbar a {
        text-decoration: none;
    }

.flags {
    font-size: 24px;
}

#language-menu {
    list-style-type: none; 
    position: absolute; 
    display: none; 
    background: var(--color-secondary); 
    border: 1px solid var(--color-input-border); 
    padding: 0px; 
    margin: 0; 
    z-index: 100;
}

#language-menu li a:hover {
    background-color: #f0f0f0;
}

/* Style pour le bouton de retour à l'accueil */
.home-btn {
    font-size: 25px;  /* Taille de l'icône */
    color: var(--color-primary);  /* Couleur de l'icône */
    text-decoration: none;  /* Enlever le soulignement */
    margin-right: 24px;
}

.home-btn:hover {
    color: var(--color-text);  /* Couleur au survol */
}

/* Style pour le bouton de déconnexion */
.logout-btn {
    font-size: 25px;  /* Taille de l'icône */
    color: var(--color-primary);  /* Couleur rouge */
    text-decoration: none;  /* Enlever le soulignement */
}

.logout-btn:hover {
    color: var(--color-text);  /* Couleur rouge foncé au survol */
}

.activity-booking {
    font-size: 14px;
    color: var(--color-text);
    text-align: right;  /* Alignement du texte à droite */
    flex-basis: 80px;  /* Largeur fixe pour que tous les éléments soient alignés sur la même ligne */
    white-space: nowrap;  /* Empêche la casse de texte */
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 8px;
}

.status-indicator.green {
    background-color: var(--color-green);
}

.status-indicator.red {
    background-color: var(--color-button2-bg);
}

.status-indicator.gray {
    background-color: var(--color-primary); 
}

.delete-cross {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
    color: #ff4d4d;
    cursor: pointer;
    background-color: #ffffff00;
    margin-left: 5px;
    padding:0px;
  }
  
  .delete-cross:hover {
    color: #4c0404;
    background-color: #9b1212c7;
  }

  .products {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    height:100%;
  }

  .products .app-list-column {
    width:100%;
    max-width:500px;
  }
  .products .app-item {
    height:100px;
    max-height: 120px;
    padding-left:0px;
    padding-top: 0px;
    padding-bottom: 0px;
    border: 1px solid var(--color-secondary); /* Bordure */
  }

  .products .app-content {
    height:100%;
  }

  .products .app-content .app-image {
    height:98px;
    width:auto;
    margin-right: 10px;
  }
  
  .products .product-price {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-flash-text);
    margin-right:5px;
    min-width: 100px;
    text-align: right;
  }

  .products p {
    color: var(--color-secondary);
  }



  /* Conteneur principal */
.toggle-container {
    position: relative;
    display: inline-flex;
    text-align: center;
    align-items: center; 
    width: 200px;
    height: 40px;
    background: var(--color-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-secondary);
    z-index: 1;  /* Valeur basse */
}
  
  /* Boutons radio (cachés) */
  .toggle-container input[type="radio"] {
    display: none;
  }
  
  /* Options */
  .toggle-option {
    flex: 1;
    text-align: center;
    line-height: 20px;
    color: var(--color-flash-text);
    cursor: pointer;
    z-index: 1;
    user-select: none;
    font-size: 16px;
  }
  
  /* Option active (couleur de texte) */
  input[type="radio"]:checked + .toggle-option {
    color: var(--color-flash-text);
  }
  
  /* Slider animé */
  .toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Largeur de moitié pour couvrir une option */
    height: 100%;
    background: var(--color-booked); /* Couleur du slider */
    border-radius: 10px;
    transition: left 0.3s ease;
  }
  
  /* Positionnement du slider selon l'option sélectionnée */
  input#annuel:checked ~ .toggle-slider {
    left: 50%;
  }
  /* Positionnement du slider selon l'option sélectionnée */
  input#res_active:checked ~ .toggle-slider {  /* Changement ici pour utiliser res_active */
    left: 50%;
  }
/* 
  .slider {
    height: 30px;
  }
  .slider:before {
    height: 100%;
  } */


  /* Bouton menu */
.menu-button {
    background-color: #ffffff00;
    font-size: 32px;  /* Taille de l'icône */
    color: var(--color-primary);  /* Couleur de l'icône */
    text-decoration: none;  /* Enlever le soulignement */
    border: none;
    padding: 2px 5px;
    cursor: pointer;
}

.menu-button:hover {
    background-color: #ffffff00;
    color: var(--color-text);  /* Couleur au survol */
}

/* Menu conteneur */
.menu-container {
    position: relative;
    display: inline-block;
    z-index: 1000;  /* Valeur élevée pour le conteneur parent */
}

/* Menu déroulant */
.menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-primary);
    box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;  /* Même valeur que le parent */
    list-style: none;
    padding: 0;
    margin: 0;
    width: auto;
    border-radius: 5px;
    max-width: 200px;
}

.menu-dropdown a {
    z-index: 10;
    text-decoration: none;
    display: block;
    padding: 10px;
    color: var(--color-bg);
    border-radius: 5px;
    text-align: left;
    white-space: nowrap;
}

.menu-dropdown a:hover {
    background-color: #f0f0f0;
}

.subscription-details {
    flex:1;
    text-align: left;
    width:100%;
    max-width:500px;
}
.subscription-details p {
    color: var(--color-text);
    font-size: 16px;
}
.unsubscribe form button {
    background-color: var(--color-button2-bg);
}
.unsubscribe form button:hover {
    background-color: var(--color-button2-hover);
}
.subscription-management button {
    flex:1;
    margin-bottom: 10px;
}

.social-media-section {
    margin-top: 20px;
    flex:1;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.contact-form-section {
    flex:1;
    text-align: center;
    margin: 10px 0px 0px 0px;
    width:100%;
    height: 100%;
    margin-bottom: 30px;
}
.contact-form-section form input {
    width:100%;
    height: 90%;
    max-width: 400px;
}
.contact-form-section form textarea {
    width:100%;
    height: 90%;
    max-width: 100%;
    max-height: 100px;
}

/* Styles de base */
.counter {
    font-size: 24px;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    text-align: center;
}

/* Couleurs selon le niveau d'utilisation */
.low {
    background-color: var(--color-primary); /* Vert clair */
    color: #155724;
}

.medium {
    background-color: var(--color-primary); /* Jaune clair */
    color: #856404;
}

.high {
    background-color: var(--color-primary); /* Rouge clair */
    color: #721c24;
}

/* Conteneur de la barre de progression */
.progress-bar-container {
    width: 80%;
    max-width: 400px;
    background-color: var(--color-primary);
    border-radius: 8px;
    overflow: hidden;
    position: relative; /* Nécessaire pour positionner le texte */
    height: 30px;
    margin: 12px auto; /* Centre horizontalement */
    margin-top: 0px;
}

/* Barre de progression */
.progress-bar {
    height: 100%;
    width: 0; /* La largeur sera définie dynamiquement */
    transition: width 0.3s ease-in-out;
}

/* Texte à l'intérieur de la barre */
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: var(--color-bg); /* Blanc pour contraster avec les couleurs */
    z-index: 1; /* Au-dessus de la barre */
}

.empty-list {
    margin-top: 20px;
}

/* Interval selector */
#res_interval_search {
    cursor:pointer;
}
.home .privacy-policy {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    color: white;
    text-align: justify;
    max-width: 100%;
    box-sizing: border-box;
}

.home .privacy-policy h1,
.home .privacy-policy h2,
.home .privacy-policy h3 {
    text-align: left;
    margin-bottom: 1rem;
}

.home .privacy-policy ul,
.home .privacy-policy ol {
    text-align: left;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.home .privacy-policy a {
    color: var(--color-booked); /* Même couleur que les liens "Créer un compte" */
    text-decoration: none;
}

.home .privacy-policy a:hover {
    text-decoration: underline;
}

/* Style de la barre de défilement */
.home .privacy-policy::-webkit-scrollbar {
    width: 8px;
}

.home .privacy-policy::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.home .privacy-policy::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.home .privacy-policy::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.diagonal-strike {
    position: relative;
    display: inline-block;
}

.diagonal-strike::after {
    content: attr(data-text);  /* Utilise le texte défini dans data-text */
    position: absolute;
    left: -5%;
    top: 150%;
    width: 130%;
    background-color: #ff0000f0;  /* Couleur de fond du texte */
    color: white;              /* Couleur du texte */
    font-size: 12px;           /* Taille du texte */
    font-weight: bold;         /* Gras */
    text-align: left;        /* Centrage du texte */
    transform: rotate(-5deg) translateY(-50%);  /* Rotation et centrage vertical */
    padding: 2px 5px;  
    border-radius: 5px;  
    min-width: 130px;      /* Espacement autour du texte */
}

.diagonal-strike-bar::after {
    content: attr(data-text);  /* Utilise le texte défini dans data-text */
    position: absolute;
    left: -0%;
    top: 50%;
    width: 100%;
    min-width: 100px;
    background-color: #ff0000f0;  /* Couleur de fond du texte */
    color: white;              /* Couleur du texte */
    font-size: 12px;           /* Taille du texte */
    font-weight: bold;         /* Gras */
    text-align: left;        /* Centrage du texte */
    transform: rotate(-10deg) translateY(-50%);  /* Rotation et centrage vertical */
    padding: 1px 2px;  
    border-radius: 5px;        /* Espacement autour du texte */
}

.number-input {
    position: relative;
    display: inline-block;
}

.number-input-arrows {
    display: flex;
    flex-direction: column;
    max-width: 25px;
    max-height: 40px;
    margin-right: 1px;
}

.arrow {
    flex:1;
    display: inline-block;
    border: none;
    background: var(--color-primary);
    padding: 0px 1px;
    margin: 1px 0px;
    cursor: pointer;
    color: var(--color-bg);
}

.arrow:hover {
    background-color: var(--color-secondary);
    color: var(--color-bg);
}

.bookings-group {
    z-index: 0;
}

.bookings-list {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    max-height: 60px;
    overflow-y: auto;
    z-index: 100;
}
.bookings-list .activity-booking {
    color: var(--color-bg);
}
.bookings-list .status-indicator {
    margin-left: 0px;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-modal);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loader {
    border: 5px solid var(--color-flash-text);
    border-radius: 50%;
    border-top: 5px solid var(--color-booked);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    z-index: 2000;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    text-align: center;
}
.checkbox-group a {
    flex:1;
    text-align: left;
}

.checkbox-text {
    text-align: left;
}

.checkbox {
    flex:0;
    /* Assurez-vous qu'elle s'affiche correctement */
    width: 20px;          /* Largeur automatique */
    height: 20px;  
    margin-right: 10px;
    max-width: 20px;
    max-height: 20px;
    align-self: flex-start;
    margin-top: 1px;
    margin-bottom: 0px;
    margin-left: 0px;
}

#back-button {
    background: none;
    border: none;
    cursor: pointer;
    width: auto;
    padding-left: 20px;
    text-align: left;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin-left: 4px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.notification-toggle {
    flex:0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    text-align: left;
    /* margin-top: 15px;
    margin-bottom: 10px; */
}
.notification-toggle p {
    flex:0;
    margin-right: 10px;
    min-width: 100px;
}

.notification-toggle a {
    flex:1;
}

.register-form label {
    text-align: left;
    margin-bottom: 0px;
}

.register-form h2 {
    margin-bottom: 5px;
}

.register-form a {
    font-size: 14px;
}
.register-form span {
    font-size: 14px;
}
.register-form .form-group {
    margin-bottom: 8px;
}



.intro {
    overflow: auto;
}
.intro h1 {
    margin-top: 0px;
}

.hero {
    text-align: center;
    padding: 10px 5px;
    background: url('images/hero-bg.png') center/cover no-repeat;
    color: white;
    margin-bottom: 0px;
}

.hero .btn {
    display: inline-block;
    padding: 10px 10px;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 10px;
}

.hero .login {
    display: inline-block;
    padding: 10px 10px;
    background: var(--color-button-bg);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 10px;
}

.container2 {
    overflow: visible;
    width: 80%;
    margin: 10px 20px;
    padding-top: 40px;
}

.image-container img {
    width: 100%;
    max-width: 100px;
    display: block;
    margin: auto;
    border-radius: 10px;
}

.features {
    overflow-y: hidden;
}

.feature-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 100%;
}

.feature-item {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    max-width: 33%;
}

.swiper {
    width: 80%;
    max-width: 200px;
    margin: auto;
}

.swiper-slide img {
    width: 100%;
    border-radius: 10px;
}

.intro body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: auto; /* S’assurer que ce n'est pas bloqué */
}

section {
    overflow: auto;
    display:flex;
    justify-content: center;
}

.container_ {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /*height: 100vh;*/
    padding: 30px;
    box-sizing: border-box;
}
.container_ .home {
    max-height: none;
    overflow: visible;
}


.home_ {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-box);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--color-shadow);
    width: 100%;
    max-width: 600px;
    text-align: center;
    height:100%;
}

.feature-grid h4 {
    color: var(--color-bg);
}

.feature-grid p {
    color: var(--color-bg);
}

.about {
    height: 50%;
}

.about .container2 {
    display: flex;
    flex-direction: column; /* Met le titre (h3) au-dessus du contenu */
    align-items: center;  /* Centre le titre horizontalement */
    text-align: center;
}

.about .content {
    display: flex;
    align-items: center; /* Aligne verticalement texte et image */
    justify-content: center; /* Texte à gauche, image à droite */
    gap: 20px; /* Espacement entre le texte et l’image */
    width: 100%; /* S’assure que le bloc prend toute la largeur */
    height: 400px;
}

.about .text-container {
    max-width: 55%; /* Ajuste la largeur du texte */
}

.about .image-container {
    max-width: 100%;
}

.about .image-container img {
    /*max-width: 20%; /* Ajuste la taille de l’image */
    flex:1;
    width: 100%;

    max-width: max-content;
}

.video-container video {
    max-width: 100%; /* Ajuste la taille de la vidéo */
    height: auto; /* Garde le ratio */
    border-radius: 15px; /* Optionnel : coins arrondis */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Optionnel : effet d’ombre */
    margin-top:10px;
    cursor: pointer;
}

.intro video {
    max-width: 70%; /* Ajuste la taille de la vidéo */
}

.how-it-works .container2 {
    display: flex;
    flex-direction: column; /* Met le titre (h3) au-dessus du contenu */
    align-items: center;  /* Centre le titre horizontalement */
    text-align: center;
}

.how-it-works .content {
    display: flex;
    align-items: center; /* Aligne verticalement texte et image */
    justify-content: center; /* Texte à gauche, image à droite */
    gap: 0px; /* Espacement entre le texte et l’image */
    width: 100%; /* S’assure que le bloc prend toute la largeur */
    
}

.how-it-works .text-container {
    max-width:40%;
    flex:1;
}
.how-it-works .video-container {
    flex:1;
    height: 100%;
    max-width: fit-content;
}

.how-it-works .image-container img {
    /*max-width: 20%; /* Ajuste la taille de l’image */
    flex:1;
    max-width:fit-content;
}

.how-it-works .video-container video {
    width: 100%; /* Ajuste la taille de la vidéo */
    height: auto; /* Garde le ratio */
}

.how-it-works video {
    max-width: 90%; /* Ajuste la taille de la vidéo */
}


.carousel video {
    max-height: 400px;
}

.text-container ol {
    list-style:decimal; /* Enlève les puces par défaut */
    color: var(--color-flash-text);
    padding: 0;
}

.france {
    width:100%;
    max-width: 100%;
    margin-top:10px;
}
.france h4 {
    color: var(--color-bg);
}
.france p {
    color: var(--color-bg);
}

.intro-buttons {
    display: flex;
    flex-direction:row; /* Met le titre (h3) au-dessus du contenu */
    align-items: center;  /* Centre le titre horizontalement */
    text-align: center;
    justify-content: center;
    gap: 20px; /* Espacement entre le texte et l’image */
    width: 100%; /* S’assure que le bloc prend toute la largeur */
    
}

/* Styles responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        padding-bottom: 60px;
    }

    .auth-box, .home, .planning-box, .reservation-box {
        padding: 10px;
    }

    .app-list, .app-details {
        padding: 10px;
        max-width: 460px;
    }

    .app-image {
        width: 60px;
    }

    .app-item h3 {
        font-size: 18px;
    }

    .app-item p {
        font-size: 12px;
    }

    button {
        padding: 12px;
    }

    .planning-box {
        padding: 20px;
    }

    .navbar .app-image {
        width: 200px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    h3 {
        font-size: 16px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    p {
        font-size: 10px;
    }

    .products .app-item {
        height:80px;
    }
    .products .app-content .app-image {
        height:78px;
    }
    .products .product-price {
        font-size: 28px;
    }
    .diagonal-strike::after {
        font-size: 10px;
    }
    .subscription-details p {
        font-size: 14px;
    }
    .modal-install p {
        font-size: 14px;
    }
    .hero {
        padding: 7px 3px;
    }
    .container2 {
        width: 80%;
        margin: 5px 10px;
        padding-top: 20px;
    }
    .intro video {
        max-width: 100%; /* Ajuste la taille de la vidéo */
    }
    .intro p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .auth-box, .home, .planning-box, .reservation-box {
        padding: 10px;
        max-width: 460px;
        max-height: 95%;
    }

    .app-list, .app-details {
        padding: 10px;
        max-width: 460px;
    }

    .app-item {
        flex-direction: column;
       /*align-items: flex-start;*/
    }

    .app-image {
        width: 60px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    h3 {
        font-size: 14px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    p {
        font-size: 10px;
    }

    .navbar .app-image {
        width: 200px;
    }

    .form-group input {
        padding:5px;
    }

    .form-actions button {
        padding: 8px;
    }

    .products .app-item {
        height:70px;
    }
    .products .app-content .app-image {
        height:58px;
    }
    .products .product-price {
        font-size: 24px;
    }

    .diagonal-strike::after {
        font-size: 10px;
    }

    .modal-install p {
        font-size: 14px;
    }
}