body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(to bottom right, #e0e0e0, #fff5ee);
}

.banner {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
}

.logo {
    max-width: 220px; /* Utilise max-width pour que le logo soit responsive */
}

.calculator {
    max-width: 1400px;
    margin: 20px auto;
    background-color: transparent ;/* rgba(255, 255, 255, 0.9);*/
    padding: 50px;
    border-radius: 8px;
    /*box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);*/
}

.row {
    display: flex;
    flex-wrap: wrap; /* Permet aux colonnes de passer à la ligne si l'espace est insuffisant */
    justify-content: space-between;
    margin: 25px;
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 22%; /* Permet aux colonnes de prendre 30% de l'espace disponible */
    margin: 15px;
    min-width: 250px; /* Largeur minimale pour chaque colonne */
}

.column img {
    width: auto;
    max-height: 150px; /* Limite la hauteur de l'image */
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.column:hover img {
    transform: scale(1.1);
}

label {
    margin-bottom: 5px;
}

.textbox,
.dropbox {
    width: 100%; /* Remplir toute la largeur de la colonne */
    max-width: 150px; /* Limite la largeur pour les écrans plus larges */
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

.hardware-results {
    /* display: flex; */
    /* justify-content: space-around;  */
    margin-top: 20px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

.hardware-results strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.portability {
    /* display: flex; */
    /* justify-content: space-around;  */
    /* margin-top: 20px; */
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

.order-button-container {
    /* display: flex; */
    /* justify-content: space-around;  */
    margin: 20px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

.results {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

.results strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

/* .hardware-results strong {
    color:green;
} */

.config {
    /* display: flex; */
    justify-content: space-around;
    margin-top: 20px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    margin: 0 10px;
}
.devices {
    /* display: flex; */
    justify-content: space-around;
    margin-top: 20px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

.result3CX {
    color: blue;
    margin : 20px;
}

.resultBusinessConnect {
    color: darkgreen;
    margin : 20px;
}

.resultWazo {
    color: #F75D81;
}

.order-button-container {
    text-align: center;
    margin-top: 20px;
}

.order-button,
.port-button {
    background-color: #fc7c27;
    color: #000000;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    /* display: inline-block; */
}

.order-button:hover,
.port-button:hover {
    background-color: #7bdaff;
    transform: scale(1.05);
}

.ApiResult {
    font-size: 20px;
}

.ApiResult.success {
    color: green;
}
.ApiResult.success::before {
    content: "✔";  /* Signe de check vert */
    color: green;
    padding-right: 5px;
}

.ApiResult.error {
    color: red;
}
.ApiResult.error::before {
    content: "X";  /* Signe de check vert */
    color: red;
    padding-right: 5px;
}



/* Media Queries */ 
@media (max-width: 768px) {
    .row {
        flex-wrap: wrap;
        display: flex;
        flex-direction: row;} */
        /* On passe la .row en bloc pour qu'elle se comporte comme une simple div */

    .column {
        flex: 1 1 100%; 
        margin-bottom: 15px;
        flex-direction: column;
    }
    
    .textbox, .dropbox {
        max-width: 100%; 
        transition: border-color 0.3s, box-shadow 0.3s;
    }

    .column{
        flex: 1 1 100%; 
        margin: 15px;
        flex-direction: column;
    }
}

@media(max-width:300px)
{

    .textbox, .dropbox {
    width: 100%; 
    transition: border-color 0.3s, box-shadow 0.3s;
    }

    
    .config{
        align-content: center;
        background-color: transparent;
        margin: 0px;
        padding: 0px;
    }

    .devices{
        align-content: center;
        background-color: transparent;
        box-shadow: none;
        padding: 0px;
        margin: 0px;
    }

    .devices .row{
        padding: 0px;
        margin: 0px;
    }

    .portability .row{
        align-content: center;
        padding: 0px;
        margin: 0px;

    }
}


@media (max-width:600px) {
    .textbox, .dropbox {
        max-width: 100%; 
        transition: border-color 0.3s, box-shadow 0.3s;
    }

     .calculator{
        width: 100%;
        padding: 0px;
     }
    

    .config{
        margin:0px;
        /* padding: 0px; */
        /* background-color: transparent; */
        box-shadow: none;
    }

    .results{
        background-color: white;
        box-shadow: none;
        margin:0px;
    }
    .results strong{ 
        font-size: 15px;
    }

    .devices{
        margin:10px 0px;
        padding: 10px;
        align-content: center;
        /* background-color: transparent; */
        /* box-shadow: none; */
    }
    .devices h2{
        font-size: 20px;
    }
    .hardware-results{
        margin:0px;
    }

    .portability{
        margin:0px;
        padding:15px 15px;
    }

    .portability h2{
        font-size:18px;
    }

    .order-button-container{
        margin:20px 0px;
        padding:15px 25px;

    }
    .order-button-container h2{
        font-size: 18px;
    }


    .profit{
        margin:20px 0px;
        padding:15px 25px;
    }
}

.order-icon {
    display: inline-block;
    width: 30px; /* Largeur du bouton */
    height: 30px; /* Hauteur du bouton */
    margin-left: 10px; /* Espace à gauche du bouton */
}

.order-icon img {
    width: 100%; /* S'assurer que l'image remplit le bouton */
    height: auto; /* Ajuste la hauteur proportionnellement */
}

.profit {
    color : transparent;
    margin:1px
}

.column img {
    transition: transform 0.3s ease; /* Animation douce */
    cursor: pointer; /* Montre que l'image est cliquable */
}

.column img.active {
    transform: scale(3); /* Agrandit l'image de 2 fois */
    z-index: 10;
    position: relative;
}

/* TOOLTIP BC VOIX+ */
.tooltip-voixplus {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-voixplus .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgb(247, 228, 147);
    color: black;
    text-align: center;
    border-radius: 5px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    left: 100%;
    margin-left: -410px;
    opacity: 0;
    transition: opacity 0.5s;
}

.tooltip-voixplus:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip-voixplus {
    position: relative; 
    cursor: pointer; 
}

.tooltip-voixplus::after {
    content: "Pas de SMS"; /* Le texte de la tooltip */
    position: absolute;
    bottom: 0%; /* Positionne la tooltip au-dessus de l'élément */
    left: -50%;
    transform: translateX(-50%); /* Centrer la tooltip */
    background-color: #666;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap; /* Empêche le texte de se casser */
    opacity: 0; /* Invisible par défaut */
    visibility: hidden; /* On cache la tooltip */
    font-size: 12px;
    transition: opacity 0.3s; /* Animation de l'apparition */
    z-index: 1; /* S'assurer que la tooltip apparaisse au-dessus */
}

.tooltip-voixplus::before {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 200%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #888 transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.tooltip-voixplus:hover::after,
.tooltip-voixplus:hover::before {
    opacity: 1;
    visibility: visible;
}
