@charset "UTF-8";@import url("https://fonts.googleapis.com/css?family=Rubik:300,400,500,700&display=swap");

.ccs-container {
    font-family: 'Rubik', sans-serif;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: max-height 1s ease-in-out;
    overflow: hidden;
    position: relative; /* Ajouter position relative à la div parente */
}

.ccs-titre {
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center;
}

.ccs-titre h2{
    font-family: 'Rubik', sans-serif;
}

span .libelle-question {
    font-size: 20px;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap; /* Ajout de flex-wrap pour permettre le passage à la ligne */
    justify-content: center; /* Pour centrer les boutons horizontalement */
}

#component2 {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1.5s, opacity 0.5s, padding-top 0.5s;
}

#component2.active {
    max-height: 200px; /* Hauteur maximale du select */
    opacity: 1;
    padding-top: 25px; /* Ajout d'un espacement pour une meilleure apparence */
}

.button-wrapper {
    position: relative;
}

.ccs-button {
    background-color: white;
    padding: 5px;
    margin: 15px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
    z-index: 1;
}

.ccs-button:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.ccs-button.selected {
    border: 2px solid #2872fa;
    transition: box-shadow 0.3s, transform 0.3s;
}

.ccs-button img {
    width: 90px;
    height: 90px;
    transition: transform 0.3s;
}

.component-name {
    position: absolute;
    width: 140px;
    text-align: center;
    top: 90px; /* Initial position en bas du bouton */
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s, top 0.3s; /* Ajout de la transition pour l'effet de descente */   
}

.component-name.active {
    opacity: 1;
    top: 125px; /* Nouvelle position centrée lorsque survolé */
}

.ccs-center {
    font-family: 'Rubik', sans-serif;
    font-size: 1.7ch;
    display: block;
    text-align: center;
    margin-bottom: -20px;
}

#option-select {
    min-width: 350px;
}

/* Ajout de styles pour l'animation du select */
#formChatGPT {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1s, opacity 0.5s, padding-top 0.5s;
}

#formChatGPT.active {
    margin-top: 10px;
    max-height: 200px; /* Hauteur maximale du select */
    opacity: 1;
    padding-top: 10px; /* Ajout d'un espacement pour une meilleure apparence */
}

.ccs-button2 {
    background-color: white;
    padding: 5px;
    margin: 15px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
    z-index: 1;
}

.ccs-button2:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.ccs-button2.selected {
    border: 2px solid #2872fa;
    transition: box-shadow 0.3s, transform 0.3s;
}

.ccs-button2 img {
    width: 90px !important;
    height: 90px !important;
    transition: transform 0.3s;
}

.ccs-button2.active {
    max-height: 200px; /* Hauteur maximale du select */
    opacity: 1;
    padding-top: 10px; /* Ajout d'un espacement pour une meilleure apparence */
}


#ccs-btn-recherche {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1.5s, opacity 0.5s, padding-top 0.5s;
}

#ccs-btn-recherche.active {
    max-height: 200px; /* Hauteur maximale du select */
    opacity: 1;
    padding-top: 25px; /* Ajout d'un espacement pour une meilleure apparence */
}

#resume {
    font-size: 2ch;
}

/* Ajoutez ces styles pour l'animation des noms de composants */
#componentNames {
    font-size: 1.6ch;
    width: 80%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1s, opacity 0.5s, padding-top 0.5s;
    
}

#componentNames.active {
    margin: 15px;
    max-height: 400px; /* Ajustez selon votre besoin */
    opacity: 1;
    padding-top: 10px; /* Ajout d'un espacement pour une meilleure apparence */
    display: flex;
    flex-wrap: wrap; /* Utilisez flex-wrap pour permettre le passage à la ligne */
}

#componentNames.active div {
    width: 45%; /* Répartit les éléments en deux colonnes */
    margin-right: 5%; /* Ajoute un espace entre les colonnes */
    box-sizing: border-box; /* Inclut le padding et la bordure dans la largeur définie */
    padding: 5px;
    text-align: left;
    display: flex; /* Utilisez flex pour aligner l'image et le texte horizontalement */
    align-items: center; /* Centre l'image et le texte verticalement */
    border-bottom: 1px solid #ccc; /* Ajoute une bordure inférieure pour séparer les lignes */
}

#componentNames.active div img {
    margin-right: 10px; /* Ajoute une marge à droite de l'image pour l'espace */
    max-width: 60px; /* Ajustez la largeur maximale de l'image selon vos besoins */
}

/* Barre de chargement */
#loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: #2872fa; /* Couleur de la barre de chargement */
    transition: width 1.7s; /* Ajout de la transition pour une animation en douceur */
}

.progress-container {
    height: 100%;
    width: 4px;
    background-color: #f0f0f0;
    margin-right: 20px; /* Ajustez la marge pour créer de l'espace entre la barre de progression et le contenu */
    border-radius: 10px;
    opacity: 1;
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; /* Position sur la gauche */
    top: 0;
    transition: opacity 1s;
    overflow: hidden; /* Assurez-vous que le débordement est masqué pour cacher l'indicateur d'étape à l'extérieur du conteneur */
}

.progress-bar {
    width: 100%;
    height: 0;
    background-color: #2872fa;
    border-radius: 10px;
    transition: opacity 1s, height 0.5s ease-in-out;
}

#error {
    margin-top: 10px;
    color:#df1b1b;
}

@media screen and (max-width: 1350px) {

    .ccs-button {
        background-color: white;
        padding: 5px;
        margin: 5px;
        border-radius: 5px;
        cursor: pointer;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        transition: box-shadow 0.3s, transform 0.3s;
        overflow: hidden;
        z-index: 1;
    }
    
    .ccs-button:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        transform: translateY(-5px);
    }
    
    .ccs-button.selected {
        border: 2px solid #2872fa;
        transition: box-shadow 0.3s, transform 0.3s;
    }
    
    .ccs-button img {
        width: 70px;
        height: 70px;
        transition: transform 0.3s;
    }

    .component-name.active {
        opacity: 1;
        top: 100px; /* Nouvelle position centrée lorsque survolé */
    }


    .ccs-button2 {
        background-color: white;
        padding: 5px;
        margin: 5px;
        margin-bottom: 20px;
        border-radius: 5px;
        cursor: pointer;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        transition: box-shadow 0.3s, transform 0.3s;
        overflow: hidden;
        z-index: 1;
    }
    
    .ccs-button2:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        transform: translateY(-5px);
    }
    
    .ccs-button2.selected {
        border: 2px solid #2872fa;
        transition: box-shadow 0.3s, transform 0.3s;
    }
    
    .ccs-button2 img {
        width: 70px !important;
        height: 70px !important;
        transition: transform 0.3s;
    }


}


@media screen and (max-width: 945px) {

    #componentNames div{
        min-width: none;
    }

    .ccs-button {
        background-color: white;
        padding: 5px;
        margin: 5px;
        margin-bottom: 20px;
        border-radius: 5px;
        cursor: pointer;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        transition: box-shadow 0.3s;
        overflow: hidden;
        z-index: 1;
    }
    
    .ccs-button:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .ccs-button.selected {
        border: 2px solid #2872fa;
        transition: box-shadow 0.3s;
    }
    
    .ccs-button img {
        width: 60px;
        height: 60px;
    }

    /* Ajoutez ces styles pour l'animation des noms de composants */
    #componentNames {
        font-size: 1.4ch;
        width: 80%;
        max-height: 0;
        opacity: 0;
        overflow: auto;
        transition: max-height 1s, opacity 0.5s, padding-top 0.5s;
        
    }

    .component-name.active {
        opacity: 1;
        top: 87px; /* Nouvelle position centrée lorsque survolé */
    }

    #componentNames.active {
        margin: 15px;
        max-height: 800px; /* Ajustez selon votre besoin */
        opacity: 1;
        padding-top: 10px; /* Ajout d'un espacement pour une meilleure apparence */
        display: flex;
        flex-wrap: wrap; /* Utilisez flex-wrap pour permettre le passage à la ligne */
    }

    #componentNames.active div {
        width: 220px; /* Répartit les éléments en deux colonnes */
    }

    #option-select {
        min-width: 220px;
    }

    .ccs-button2 {
        background-color: white;
        padding: 5px;
        margin: 5px;
        margin-bottom: 20px;
        border-radius: 5px;
        cursor: pointer;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        transition: box-shadow 0.3s,;
        overflow: hidden;
        z-index: 1;
    }
    
    .ccs-button2:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .ccs-button2.selected {
        border: 2px solid #2872fa;
        transition: box-shadow 0.3s;
    }
    
    .ccs-button2 img {
        width: 60px !important;
        height: 60px !important;
    }
    
    #component2.active {
        max-height: 350px; /* Hauteur maximale du select */
        opacity: 1;
        padding-top: 25px; /* Ajout d'un espacement pour une meilleure apparence */
    }
    

}


