/* //Fichier CSS pour les visites */

.sidebar-main {
    display: none;
}

#result {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center; 
    position: relative;
    top: -67px;
    margin-top: 10%;

    margin-left: 0%;
    margin-bottom: 50px;
}

.visite {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 915px;
    height: 386px;
    margin-left: -170px; 
    position: relative;
    overflow: hidden;
    margin-bottom: 50px; 
    margin-left: 50%;
}

.visite:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 40px !important;
    color: #333;
    padding-bottom: 10px;
    margin-top: 80px;
    margin-left: 60%;
}

.visite p {
    margin: 0px 0 14px;
    font-size: 20px;
    color: #070404;
    overflow: hidden;
    clear: both;
    flex: 1;
    padding-right: 191px;
}

.visite-button {
    background-color: #007BFF; 
    background-color: #e96f4a;
    background-color: #31B8B1;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: absolute; 
    bottom: 22px; 
    left: 20px; 
    text-decoration: none;
   height: 45px;
   width: 153px;
}

.visite-button:hover {
    background-color: #0056b3;
    background-color: #31B8B1;
    color: white;

}

.ville {
    font-weight: bold;
    color: #000000;
}

.logo {
    height: 190px;
    width: 190px;
    position: absolute;
    top: 106px;
    right: 10px;
    background-color: white;
    margin: 0 0 20px 20px; 
    float: right;
    z-index: 1;     
}


.search-container {
    display: flex;
    justify-content: align-items;
    position: relative;
    top: -1%;
    left: 16%;
    gap: 10px;
    flex-direction: column;
    
}

.search-container .search-visites {
    margin-top: 20px;
    border-radius: 20px !important; 
    padding: 10px 15px !important; 
    outline: none; 
    width: 118%; 
    box-shadow: 0 4px 1px rgba(0, 0, 0, 0.1); 
    font-size: 16px; 
    position: relative;
    top: 45%; 
    margin-bottom: 40px;
}

.search-visites:focus {
    border-color: #505152; 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); 
} 


.div-button {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -50px;
    margin-bottom: 57px;
    white-space: nowrap;
}


#Liste,
#Jour,
#Mois {
    background-color: #31B8B1;
    width: auto;
}


/* Responsive mobile */ 

 @media (max-width: 768px) 

{

    /* Container principal */
    #result {
        margin-top: 5%;
        margin-left: 0;
        margin-bottom: 30px;
        top: 0;
        width: 90%;
        max-width: 400px;
    }


    #Liste,
    #Jour,
    #Mois {

    background-color: #31B8B1;
    border-radius: 10px;
    width: auto;
    margin-top: 15px;
    }

    /* Visite */
    .visite {
        width: 100%;
        height: auto; /* hauteur adaptative */
        margin-left: 0;
        padding: 15px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        position: relative;
        margin-bottom: 30px;
        background-color: #fff;
        margin-top: 5%;
        margin-left: 0;
        margin-bottom: 30px;
        top: 0;
        width: 90%;
        max-width: 400px;
    }

    /* Titre */
    h1 {
        font-size: 28px !important;
        margin-top: 30px;
        margin-left: 0;
        text-align: center;
        padding-bottom: 8px;
    }

    .visite h3 {
        font-size: 21px;
        /* margin-right: 46px; */
    }
    /* Texte visite */
    .visite p {
        font-size: 17px;
        padding-right: 0;
        margin-bottom: 42px;
    }

    /* Bouton visite */
    .visite-button {
        display: inline-block;
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        height: 40px;
        padding: 10px 0;
        font-size: 19px;
        border-radius: 6px;
        margin-top: 10px;
        text-align: center;
    }

    .visite-button p {
        font-size: 10px;
    }

    /* Logo */
    .logo {
        position: absolute;
        height: 100px;
        width: 100px;
        top: 52px;
        right: 0;
        margin: 0 auto 20px auto;
        display: inline-block;
        /* float: right; */
        background-color: transparent;
        z-index: auto;
        margin-top: 20px;
        
    }

    /* Search container */
    .search-container {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        padding: 0 10px;
        gap: 8px;
        align-items: stretch;
    }

    .search-container .search-visites {
        width: 100% !important;
        top: 0;
        margin-top: 15px;
        margin-bottom: 25px;
        font-size: 14px;
        padding: 8px 12px !important;
        border-radius: 15px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .departement {
        margin-top: 10px;
        display: inline-block;
    }
} 