/* ======================= */
/* ATOM Suite Styles */
/* ======================= */

/* Responsive pour la tablette Samsung */
@media screen and (min-width: 2960px) and (min-height: 1848px) {
    #atom-container {
        width: 90%;
        margin: 0 auto;
    }

    #atom-container .content {
        max-width: 80%;
        margin: 0 auto;
    }

    #atom-container h1, #atom-container p {
        font-size: 2rem;
    }

    #atom-container button {
        font-size: 1.5rem;
        padding: 15px 30px;
    }

    #atom-container img {
        width: 50%;
        max-width: 500px;
        height: auto;
        margin-bottom: 20px;
    }

    .gtranslate_wrapper {
        margin-top: 20px;
        z-index: 1000;
    }
}


/*first step TTS */

#tap-to-start {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100vh; /* Hauteur totale de la fenêtre */
    padding: 100px 0px;
    box-sizing: border-box;
}

#tap-to-start .content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrage vertical */
    align-items: center; /* Centrage horizontal */
    height: 100vh; /* Hauteur totale de la fenêtre */
    padding: 20px;
    box-sizing: border-box;
}



#tap-to-start .flags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espacement entre les drapeaux */
}

.gtranslate_wrapper {
    z-index: 1000; /* S'assurer qu'ils sont visibles uniquement quand nécessaire */
}

.hidden {
    display: none !important; /* Cacher complètement les drapeaux */
}


/* Alignement général */
.atom-step-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.atom-step-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}


.atom-step-container .ct-container-full {
    padding-top: 0 !important;
}


.atom-step-content > * {
    margin-bottom: 20px;
}

.atom-step-content > *:last-child {
    margin-bottom: 0; /* Pas d'espace après le dernier élément */
}

/* front question reponse ATOM */

/* Centrer les questions dynamiquement au milieu de l'écran */
#atom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Prend toute la hauteur de la fenêtre */
    text-align: center; /* Centre le texte horizontalement */
    box-sizing: border-box;
    padding: 20px; /* Facultatif : espace intérieur */
}

#atom-content .atom-step-content {
    max-width: 1200px; /* Largeur maximale du contenu */
    padding: 20px;
    background-color: #fff; /* Facultatif : couleur de fond */
    border-radius: 10px; /* Facultatif : arrondi des coins */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Facultatif : ombre */
}

#atom-content .translatable {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out; /* Transition fluide */
}

#atom-content .translatable.loaded {
    opacity: 1;
    visibility: visible;
}

/* Appliquer une transition au contenu des étapes */
/* Transition pour les étapes */
.translatable {
    opacity: 0; /* Initialement invisible */
	visibility: hidden; /* Empêche les interactions */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Pleine hauteur de l'écran */
    text-align: center;
    transition: opacity 1.5s ease-in-out; /* Transition fluide sur 1.5 secondes */
}

.translatable.loaded {
    opacity: 1; /* Affiche le contenu après chargement */
	 visibility: visible; /* Rend interactif */
}

/* etape recette ATOM */
/* Disposition en deux colonnes */
.recette-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 20px; /* Espacement entre les colonnes */
    text-align: left; /* Alignement du texte à gauche */
}

.recette-image-container {
    flex: 1 1 35%; /* La colonne de l'image occupe 40% */
    max-width: 300px; /* Limiter la largeur de l'image */
    display: flex;
    justify-content: center;
    align-items: center;
}

.recette-image-container img {
    max-width: 100%; /* L'image occupe toute la largeur disponible */
    border-radius: 10px; /* Arrondi des coins */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre douce */
}

.recette-details {
    flex: 1 1 60%; /* La colonne des textes occupe 60% */
    max-width: 600px; /* Largeur maximale pour les textes */
}

.recette-details h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.recette-details p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/*recette liste beta*/

/* Conteneur principal de la liste des recettes */
.recette-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    max-width: 900px;
    margin: auto;
}

/* Conteneur spécifique pour les recettes */
#recette-container {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Chaque recette */
.recette-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 300px; /* Ajustable selon les besoins */
    padding: 15px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
	border: 2px solid blue !important; /* Debug visuel */
    display: block !important;
    opacity: 1 !important;
	visibility: visible !important;
}

/* Assurer que les recettes sont visibles */
.recette-item.visible {
    opacity: 1;
}

/* Image de la recette */
.recette-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.recette-image img {
    max-width: 100%;
    border-radius: 8px;
}

/* Titre de la recette */
.recette-item h2 {
    font-size: 1.4rem;
    margin-top: 10px;
    text-align: center;
}

/* Bouton Voir la recette */
.view-recipe-btn {
    background-color: #d9534f;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.view-recipe-btn:hover {
    background-color: #c9302c;
}

/* S'assurer que le conteneur s'affiche bien */
#recette-container {
    display: flex;
    flex-wrap: wrap;
}

#recette-details .atom-step-content.recette-layout {
    display: none; /* Cache la structure dupliquée */
}
#atom-content .atom-step-content.recette-layout:first-of-type {
    display: flex;
}



/*slider JS benji*/

.custom-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.custom-slider {
    width: 80%;
    overflow: hidden;
}

.custom-slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.custom-slider-item {
    flex: 0 0 calc(100% / 3); /* 3 éléments visibles */
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.custom-slider-prev,
.custom-slider-next {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: black;
    padding: 10px;
}

.custom-slider-prev {
    left: 10px;
}

.custom-slider-next {
    right: 10px;
}

/* Pour mobile, afficher un seul sirop */
@media (max-width: 768px) {
    .custom-slider-item {
        flex: 0 0 100%;
    }
}


/* Responsive */
@media screen and (max-width: 1024px) {
    .swiper-slide {
        flex: 0 0 50%;
    }
}

@media screen and (max-width: 600px) {
    .swiper-slide {
        flex: 0 0 100%;
    }
}


