body {
    background-color: #F8F6F2;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

header.container {
    margin-top: 10px;
    margin-bottom: 18px; /* Augmenter la marge inférieure à 18px pour ajouter 8px d'espace supplémentaire */
}

main.container {
    margin-top: 0;
    margin-bottom: 10px;
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.logo {
    width: 67px;
    height: 60px;
    margin-right: 20px;
}

.title-description {
    flex: 1;
}

.tool-title {
    color: #000000;
    text-transform: uppercase;
}

h1.tool-title {
    color: #403E38;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.3;
    text-align: left;
    margin: 0;
}

p.description {
    color: #403E38;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    margin: 5px 0 0 0;
}
#main-block {
    width: 100%;
    min-height: 749px;
    padding: 8px;
    background: #FFFFFF;
    border: 2px dashed #D7CEC0;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

#preferences {
    width: 410px; /* Réduire la largeur de 10px pour compenser les marges */
}

#result {
    width: calc(100% - 410px - 11px); /* Ajuster la largeur en conséquence */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Changer de center à flex-start */
    text-align: center;
    padding-top:95px;
    display : none;
    transition: filter 0.5s ease-in-out; /* Transition pour le flou */
}


#result p {
    font-weight: 400;
    font-size: 17px;
    line-height: 1.3;
    text-align: left;
    margin-top:20px;
}

.separator {
    position: absolute;
    top: 0;
    left: 410px; /* Ajuster la position en conséquence */
    width: 1px;
    height: 100%;
    background-color: #D7CEC0;
    margin-left: 5px; /* Marge gauche */
    margin-right: 5px; /* Marge droite */
}

@media (max-width: 768px) {
    #main-block {
        width: 100%;
        height: auto;
        flex-direction: column;
        min-height: unset; /* Supprimer la hauteur minimum sur mobile */
    }

    #preferences, #result {
        width: 100%;
    }

    .separator {
        position: static;
        width: 100%;
        height: 1px;
        margin: 15px 0;
    }
}


#preferences {
    padding: 20px;
}

h2 {
    color: #403E38;
    font-size: 24px;
    margin-bottom: 20px;
}

.section {
    margin-bottom: 30px;
}

.theme-selection {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.theme-option {
    width: 30%;
    text-align: center;
    padding: 10px;
    border: 2px dashed #D7CEC0;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.theme-option:hover {
    background-color: #F8F6F2;
}

.theme-option.selected {
    background-color: #FEE8EA;
}

.theme-option img {
    width: 58px;
    height: 58px;
    margin-bottom: 5px;
    margin-top:5px;
}

.theme-option p {
    margin: 0;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #D7CEC0;
    border-radius: 5px;
    color: #403E38; /* Changed color to #403E38 */
}

#produit, #produit_recette_1, #produit_recette_2, #produit_recette_3, #produit_recette_4 {
    border-radius: 5px; /* Ajustez la valeur selon vos besoins */
}

#produit:focus-visible, 
#produit_recette_1:focus-visible, 
#produit_recette_2:focus-visible, 
#produit_recette_3:focus-visible, 
#produit_recette_4:focus-visible {
    outline: none; /* Supprime le contour par défaut */
    border-radius: 5px; /* Conserve les coins arrondis */
}

#nom_recette:focus-visible, 
#contexte_recette:focus-visible {
    outline: none; /* Supprime le contour par défaut */
    border: 1px solid #D7CEC0; /* Conserve la bordure initiale */
    background-color: #F8F6F2; /* Conserve la couleur de fond initiale */
}

.styled-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #D7CEC0;
    border-radius: 5px;
}

.topics, .actions {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.section-duration {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 10px;
}

.timer-icon {
    width: 16px;
    height: 18px;
    margin-right: 5px;
}

.blur-overlay {
    pointer-events: none;
}

.topic-option, .action-option {
    display: inline-block;
    width: calc(50% - 5px);
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #F8F6F2;
    border: 1px solid #D7CEC0;
    border-radius: 20px;
    cursor: pointer;
    color: #403E38;
    box-sizing: border-box;
    text-align: center;
}

#personnalisation_metier .topic-option {
    font-size: 14px; /* Ajustez la taille de la police selon vos besoins */
    display: flex;
    align-items: center;
    justify-content: center; /* Pour centrer horizontalement également */
}

.topic-option:hover, .action-option:hover {
    background-color: #E5DECF;
}

.topic-option:only-child, .action-option:only-child {
    width: 100%;
}

.topic-option.selected, .action-option.selected {
    background-color: #e8ddcb;
    border: 1px solid #403e38;
}

#preferences > div.section.personnalisation > div.actions > div:nth-child(6) {
    width: 100%;
}

.generate-button {
    width: 233px;
    height: 42px;
    padding: 8px;
    background: #E83B48;
    color: #FFFFFF;
    border: none;
    border-radius: 15px;
    font-family: "Poppins";
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* Ajoutez cette ligne pour centrer le bouton */
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.generate-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #d81b29;
    z-index: 0;
    transition: width 15s linear; /* Ajustez la durée à 10 secondes */
}

.generate-button.loading::before {
    width: 100%;
}

.generate-button .icon,
.generate-button span {
    position: relative;
    z-index: 1;
}

.generate-button:hover {
    transform: scale(1.2);
}

.generate-button .icon {
    width: 20px; /* Ajustez la taille de l'icône si nécessaire */
    height: 20px;
    margin-right: 8px; /* Espace entre l'icône et le texte */
}

.generate-button span {
    width: 170px;
    height: 19px;
    color: #FFFFFF;
    font-family: "Poppins";
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}


footer.custom-footer {
    margin-top: 16px !important; /* Ajustez cette valeur selon vos besoins */
}


#result-final {
    background-color: #FFF;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: none;
}
#result-final {
    background-color: #FFF;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.result-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.version-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.version-button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.version-button.active {
    background-color: #E83B48;
    color: white;
}

.version-button:not(.active) {
    background-color: #FEE8EA;
    color: #E83B48;
}

.post-content {
    background-color: #F8F6F2;
    border: 2px dashed #D7CEC0;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative; /* Ajoutez cette ligne pour que la position absolue de switch-button soit relative à post-content */
    font-size: 17px;
    /*line-height: 1.3;*/
    text-align: left;
}


.post-content p, .post-content ul {
    margin-bottom: 15px;
    font-size: 17px;
    line-height: 1.3;
    text-align: left;
}

.post-content ul {
    padding-left: 20px;
}

.emoji {
    font-style: normal;
}

.hashtags {
    color: #403E38;
    font-weight: bold;
}

.copy-button, .ideas-button {
    transition: transform 0.3s ease;
}

.copy-button:hover, .ideas-button:hover {
    transform: scale(1.05);
}

.copy-button {
    width: 100%;
    height: 42px;
    padding: 8px;
    background: #33927B;
    color: #FFFFFF;
    border-radius: 15px;
    font-family: "Poppins";
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
    border: none;
    margin-bottom: 18px; /* Ajout d'une marge inférieure de 18px */
}

.ideas-button {
    background-color: #3D4C59;
    width: 100%;
    height: 42px;
    padding: 8px;
    color: #FFFFFF;
    border-radius: 15px;
    font-family: "Poppins";
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
    border: none;
}

.copy-icon, .ideas-icon {
    margin-right: 10px;
}

.copy-button .copy-icon {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    display: inline-block;
}

.ideas-button .ideas-icon {
    width: 27px;
    height: 27px;
    margin-right: 10px;
    display: inline-block;
    animation: tilt 3s infinite;
}

@keyframes tilt {
    0%, 20%, 80%, 100% {
        transform: rotate(0deg);
    }
    30%, 70% {
        transform: rotate(-20deg);
    }
    50% {
        transform: rotate(20deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
}

.switch-button {
    background-color: #FEE8EA;
    border-radius: 30px;
    overflow: hidden;
    width: 318px;
    text-align: center;
    font-size: 15px;
    position: relative;
    margin: 20px auto;
    z-index: 1;
}

.post-content {
    margin-top: 20px;
}

.copy-button {
    margin-top: 20px;
}

.ideas-button {
    margin-top: 10px;
}

#result-script {
    display: flex;
    flex-direction: column;
}

.script-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.script-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.script-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.switch-button-checkbox {
    display: none;
}

.switch-button-label {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.switch-button-label-span {
    flex: 1;
    text-align: center;
    padding: 10px;
    z-index: 1;
    color: #403E38;
    transition: color 0.3s;
}
.switch-button-label:before {
    content: "";
    background: #E83B48;
    height: 100%;
    width: 50%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 30px;
    transition: transform 0.3s;
}

.switch-button-checkbox:checked + .switch-button-label:before {
    transform: translateX(100%);
}

.switch-button-checkbox:checked + .switch-button-label .switch-button-label-span:first-child,
.switch-button-checkbox:not(:checked) + .switch-button-label .switch-button-label-span:last-child {
    color: #403E38;
}

.switch-button-checkbox:checked + .switch-button-label .switch-button-label-span:last-child,
.switch-button-checkbox:not(:checked) + .switch-button-label .switch-button-label-span:first-child {
    color: #FFFFFF;
}

#illustration {
    width: 198px;
    height: 187px;
}

#result-initial{
    width: calc(100% - 410px - 11px); /* Ajuster la largeur en conséquence */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Changer de center à flex-start */
    text-align: center;
    padding-top:100px;
    transition: filter 0.2s ease-in-out; /* Transition pour le flou */
    position: relative; /* Assurez-vous que le parent est positionné */
    /* display: none; */
}

@media (max-width: 768px) {
    #result-initial {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Centrer verticalement */
        text-align: center;
        padding-top: 20px; /* Ajuster le padding si nécessaire */
        width:100%
    }
}

@media (max-width: 768px) {
    #main-block {
        width: 100%;
        height: auto;
        flex-direction: column;
        min-height: unset; /* Supprimer la hauteur minimum sur mobile */
    }

    .section.generer{

        margin-bottom:0px;
    }


    h1.tool-title{
        font-size:20px;
    }

    p.description{
font-size:12px;

    }


    body > header > div > img{
        margin-left:8px;
    }
}

@keyframes borderAnimation {
    0% {
        border-color: #FEE8EA;
    }
    50% {
        border-color: #E83B48;
    }
    100% {
        border-color: #FEE8EA;
    }
}

#main-block.loading {
    animation: borderAnimation 1s infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

.suggestions-dropdown {
    position: absolute;
    background-color: #F8F6F2;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
    top: 100%; /* Assure que le dropdown s'affiche juste en dessous */
    left: 0;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #E5DECF;
}

.input-group {
    position: relative;
}

.reset-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #fee8ea; /* Couleur de fond du rond */
    border: none;
    border-radius: 50% !important; /* Pour rendre le bouton rond */
    width: 24px; /* Taille du bouton */
    height: 24px; /* Taille du bouton */
    display: none; /* Masquer par défaut */
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.reset-button i {
    font-size: 16px;
    color: #E83B48; /* Couleur de la croix */
}

input, textarea {
    autocomplete: off;
}

#illustration{ margin-bottom:15px !important}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* Couleur de fond avec transparence */
    backdrop-filter: blur(5px) saturate(40%); /* Appliquer le flou et le filtre sépia */
    display: block; /* Afficher par défaut pour permettre la transition */
    z-index: 10; /* Assurez-vous que le calque est au-dessus des autres éléments */
    opacity: 0; /* Initialement transparent */
    transition: opacity 0.75s ease-in-out; /* Transition pour le fondu */
}

.loader {
  width: 30px;
  aspect-ratio: 1; 
  display: none; /* Masquer par défaut */
  opacity: 0; /* Initialement transparent */
  transition: opacity 0.75s ease-in-out; /* Transition pour le fondu */
  z-index: 11; /* Assurez-vous que le loader est au-dessus des calques de flou */
  margin: auto; /* Centrer le loader */
  position: absolute; /* Positionner le loader en absolu */
  top: 50%; /* Centrer verticalement */
  left: 50%; /* Centrer horizontalement */
  border-radius: 50%;
  animation: l5 1s infinite linear alternate;
}
@keyframes l5 {
    0%  {box-shadow: 40px 0 #E83B48, -40px 0 #e83b4978; background: #E83B48 }
    33% {box-shadow: 40px 0 #E83B48, -40px 0 #e83b4978; background: #e83b4978}
    66% {box-shadow: 40px 0 #e83b4978, -40px 0 #E83B48; background: #e83b4978}
    100%{box-shadow: 40px 0 #e83b4978, -40px 0 #E83B48; background: #E83B48 }
  }

.or-text {
    text-align: center;
    font-weight: bold;
    margin: 10px 0;
}

.visual-idea-block {
    margin-bottom: 10px;
}

.visual-header {
    display: flex;
    align-items: center;
    margin-bottom: -2px;
    padding-left:90px;
}

.visual-icon {
    width: 60px;
    height: 60px;
    margin-right: 10px;
}

.visual-title {
    font-weight: bold;
    font-size:20px;
    color: #403E38 !important;
}

#visual-idea-1 #visual-idea-2 #visual-idea-3{
    color: #403E38 !important;


}

button.btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #E83B48; /* Couleur rouge */
    opacity: 1; /* Assurez-vous que l'opacité est à 1 pour que la couleur soit visible */
}

.modal-footer {
    border-top: none; /* Supprime la bordure haute */
    display: flex;
    justify-content: center; /* Centre le bouton */
}

.modal-footer .btn-secondary {
    background-color: #E83B48; /* Fond rouge similaire au reste */
    border: none; /* Supprime la bordure */
    color: #FFFFFF; /* Couleur du texte en blanc */
}

#visualIdeasModal > div > div > div.modal-body{padding-bottom:0px;}

.script-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    margin-top:20px;
}

.script-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.script-title {
    width: 345px;
    height: 58px;
    color: #403E38;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 23px;
    line-height: 1.3;
    text-align: center;
    margin: 0;
}

#visual-idea-3{ margin-bottom:0px;}

.duree-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.duree-option {
    flex: 1 0 calc(33.333% - 6.67px);
    padding: 10px;
    border: 2px dashed #D7CEC0;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.duree-option:hover {
    background-color: #F8F6F2;
}

.duree-option.selected {
    background-color: #FEE8EA;
}

.visual-idea-block{padding-right:15px;padding-left:15px;}

#error-callout {
    margin-bottom: 20px;
}


#error-callout > p{
margin-top:0px;
margin-bottom: 0px;

}

.topic-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.topic-option, .action-option {
    display: inline-block;
    width: calc(50% - 5px);
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #F8F6F2;
    border: 1px solid #D7CEC0;
    border-radius: 20px;
    cursor: pointer;
    color: #403E38;
    box-sizing: border-box;
    text-align: center;
}

.topic-option:hover, .action-option:hover {
    background-color: #E5DECF;
}

.topic-option.selected {
    background-color: #e8ddcb;
    border: 1px solid #403e38;
}

#selected-topics {
    margin-top: 10px;
}

#selected-topics span {
    display: inline-block;
    background-color: #FEE8EA;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 15px;
}

#selected-topics span button {
    background: none;
    border: none;
    color: #E83B48;
    margin-left: 5px;
    cursor: pointer;
}
.reseaux-selection {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.reseau-option {
    width: 22%;
    aspect-ratio: 1 / 1;
    text-align: center;
    padding: 10px;
    border: 2px dashed #D7CEC0;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reseau-option:hover {
    background-color: #F8F6F2;
}

.reseau-option.selected {
    background-color: #FEE8EA;
}

.reseau-option img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.reseau-option p {
    margin: 0;
    font-size: 14px;
}


.hidden {
    display: none;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
}

.download-pdf-button,
.email-button {
    width: calc(50% - 5px);
    height: 42px;
    padding: 8px;
    border-radius: 15px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.download-pdf-button {
    background: #33927B;
    color: #FFFFFF;
}

.email-button {
    background: #3D4C59;
    color: #FFFFFF;
}

.download-pdf-button:hover {
    background: #2a7b66;
}

.email-button:hover {
    background: #2a3540;
}

.download-pdf-button .icon,
.email-button .email-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px; /* Ajout d'une petite marge à droite de l'icône */
}

.download-pdf-button .text,
.email-button .text {
    display: inline-block; /* Changement pour inline-block */
    vertical-align: middle; /* Alignement vertical */
}

@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
    }
    
    .download-pdf-button,
    .email-button {
        width: 100%;
        margin-bottom: 10px;
    }
}

.script-content {
    margin-top: 20px;
}

.script-step {
    margin-bottom: 30px;
}

.coaching-comment {
    width: 100%;
    color: #7A7A7A;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 10px;
}

.section-title {
    width: 100%;
    padding: 0px;
    border-radius: 50px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 23px;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    background-image: linear-gradient(to left, #e83b48, #3d4c59);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    padding-bottom: 0px !important;
    margin-bottom: 2px;
}

.script-text {
    width: 100%;
    /* min-height: 134px; */
    padding: 16px 14px 16px 14px;
    background: #fffaef;
    color: #000000;
    border: 1px dashed #D7CEC0;
    border-radius: 15px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 18px;
    /* font-style: italic; */
    line-height: 1.4;
    text-align: justify;
}

#result-script > div.script-content > div > div > p{
    margin-bottom:0px;
}

.script-text p {
    margin-bottom: 23px !important;
}

.script-text p:last-child {
    margin-bottom: 0 !important;
}


.script-text p {
    margin-bottom: 10px;
}

.script-text p:last-child {
    margin-bottom: 0;
}

#result-script > div.script-content > div > h4 {
    font-size: 17px;
}