@media screen and (max-width:900px) {

    #actionBtn{
    display: none;
    position: fixed;
    opacity: 0.3;
    top:91px;
    right: 0;
    left: 0;
    bottom:75px;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    }

    #actionBtnSpan{
    position: relative;
    color: white;
    font-size: 30px;
    font-weight: bold;

    }

#actionBtnSpan::after {
    content: '';
    position: absolute;
    left: 100%;
    animation: pp 1.5s infinite;
}

    #actionBtnProfil{
    display: none;
    position: fixed;
    opacity: 0.3;
    top:91px;
    right: 0;
    left: 0;
    bottom:66px;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    }

    #actionBtnSpanProfil{
    position: relative;
    color: white;
    font-size: 30px;
    font-weight: bold;

    }

#actionBtnSpanProfil::after {
    content: '';
    position: absolute;
    left: 100%;
    animation: pp 1.5s infinite;
}

@keyframes pp {
    0%, 20% { content: ' '; }
    20%, 40% { content: '.'; }
    40%, 60% { content: '..'; }
    60%, 80% { content: '...'; }
    80%, 100% { content: ''; }
}
    /* affichage en grand de photo actu */
    #modals{
    display:none; 
    position:fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background:rgba(0,0,0,0.8); 
    z-index:1000;
    }

    #modalspan{
    color:red;
    background:rgba(54, 52, 52, 0.8); 
    font-size:40px; 
    position:absolute; 
    right:10%; 
    cursor:pointer;
    }

    #modalImages{
    margin:auto; 
    display:block; 
    width:80%; 
    height:auto;
    }

    #saveButtons{
    position:absolute; 
    bottom:20px; 
    left:50%; 
    transform:translateX(-50%); 
    padding:10px; 
    background:#fff; 
    cursor:pointer;
    }

    /* affichage en grand de photo search */
    #modalsss{
    display:none; 
    position:fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background:rgba(0,0,0,0.8); 
    z-index:1000;
    }

    #modalspansss{
    color:red;
    background:rgba(54, 52, 52, 0.8); 
    font-size:40px; 
    position:absolute; 
    right:10%; 
    cursor:pointer;
    }

    #modalImagesss{
    margin:auto; 
    display:block; 
    width:80%; 
    height:auto;
    }

    #saveButtonsss{
    position:absolute; 
    bottom:20px; 
    left:50%; 
    transform:translateX(-50%); 
    padding:10px; 
    background:#fff; 
    cursor:pointer;
    }

     /* affichage en grand de photo actu */
    #modalss{
    display:none; 
    position:fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background:rgba(0,0,0,0.8); 
    z-index:1000;
    }


    /* div de suppression des annonces */
    #supp {
        position: fixed;
        top: 50%; 
        left: 50%; 
        transform: translate(-50%, -50%); 
        background-color: white; 
        border: 1px solid #5a5656; 
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0); 
        z-index: 1000; 
        text-align: center; 
        border-radius: 15px;
        display: none;
    }

    #supp span {
        display: block; 
        margin-bottom: 10px;
        font-size: 16px;
        font-weight: bolder;

    }

    #supp button {
       margin: 10px; 
        font-size: 14px;
        padding: 10px 15px; /* Espacement interne des boutons */
    border: none; /* Pas de bordure par défaut */
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer; 
    transition: background-color 0.3s, transform 0.3s;
    }

   #supp button:nth-child(2) {
    background-color: #4CAF50; /* Couleur verte pour le bouton "oui" */
    color: white; /* Texte blanc */
   }

    #supp button:nth-child(3) {
        background-color: #f44336; /* Couleur rouge pour le bouton "non" */
        color: white; /* Texte blanc */
    }

    /* Effet de survol */
    #supp button:hover {
        transform: scale(1.05); /* Agrandit légèrement le bouton */
    }

    #supp button:nth-child(2):hover {
        background-color: #45a049; /* Couleur verte légèrement plus foncée */
    }

    #supp button:nth-child(3):hover {
        background-color: #e53935; /* Couleur rouge légèrement plus foncée */
    }

    /* div de bloquage des annonces */

   #bloquer {
    position: fixed;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background-color: white; 
    border: 1px solid #5a5656; 
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0); 
    z-index: 1000; 
    text-align: center; 
    border-radius: 15px;
    display: none;
    color: #31B7F5;

   }

    #bloquer span {
        display: block; 
        margin-bottom: 10px;
        font-size: 16px;
        font-weight: bolder;
        color: #31B7F5;

    }

    #bloquer button {
    margin: 10px; 
    font-size: 14px;
    padding: 10px 15px; /* Espacement interne des boutons */
    border: none; /* Pas de bordure par défaut */
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer; 
    transition: background-color 0.3s, transform 0.3s;
    }

   #bloquer button:nth-child(2) {
    background-color: #4CAF50; /* Couleur verte pour le bouton "oui" */
    color: white; /* Texte blanc */
    }

    #bloquer button:nth-child(3) {
        background-color: #f44336; /* Couleur rouge pour le bouton "non" */
        color: white; /* Texte blanc */
    }

    /* Effet de survol */
    #bloquer button:hover {
        transform: scale(1.05); /* Agrandit légèrement le bouton */
    }

    #bloquer button:nth-child(2):hover {
        background-color: #45a049; /* Couleur verte légèrement plus foncée */
    }

    #bloquer button:nth-child(3):hover {
        background-color: #e53935; /* Couleur rouge légèrement plus foncée */
    }

    #modalspanss{
    color:red;
    background:rgba(54, 52, 52, 0.8); 
    font-size:40px; 
    position:absolute; 
    right:10%; 
    cursor:pointer;
    }

    #modalImagess{
    margin:auto; 
    display:block; 
    width:80%; 
    height:auto;
    }

    #saveButtonss{
    position:absolute; 
    bottom:20px; 
    left:50%; 
    transform:translateX(-50%); 
    padding:10px; 
    background:#fff; 
    cursor:pointer;
    }

    /* affichage en grand de photo profil */

    #modal{
    display:none; 
    position:fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background:rgba(0,0,0,0.8); 
    z-index:1000;
    }

    #modalspan{
    color:red;
    background:rgba(54, 52, 52, 0.8); 
    font-size:40px; 
    position:absolute; 
    right:10%; 
    cursor:pointer;
    }

    #modalImage{
    margin:auto; 
    display:block; 
    width:80%; 
    height:auto;
    }

    #saveButton{
    position:absolute; 
    bottom:20px; 
    left:50%; 
    transform:translateX(-50%); 
    padding:10px; 
    background:#fff; 
    cursor:pointer;
    }

    .voir-plus_phone {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background: #31B7F5;
    color: white;
    border: none;
    cursor: pointer;
    cursor: pointer;
   }
    .notif_non_lus{
        
        border-radius: 50%;
        width: 15px;
        height: 15px;
        color:WHITE;
        font-weight: bold;
        background-color:rgb(199, 46, 18);
        text-align: center;
        padding:2.5px;
        font-size: 10px;
        position: absolute;
        top:3%;
        right: 10%;
        display: block;
        
    }

    .voir-plus_phone:hover { background: #31B7F5;cursor: pointer; }
    .voir-plus_phone:disabled { background: #aaa8a8;cursor: pointer; }

    .container_formSearch {
      
        /* overflow-y: auto;
        margin-top: 94px;
        padding: 10px;

        margin-bottom: 76px;
        position: fixed;
        left: 0;
        right: 0; */

        width: 100%;
        z-index: 1000;
        overflow-y: auto;
        top: 94px;
        bottom: 76px;
        background-color: white;
        position: fixed;
        left: 0%;
        right: 0%;
        padding-bottom: 5%;
    }



    .header_pc,
    #container_PC,.update_announ,.voir-plus_pc,#container_PC_mesAnnonces,.notif_non_lus_pc {
        display: none;
    }

    .header_phone {
        position: fixed;
        background-color: white;
        color: white;
        width: 100%;
        z-index: 1002;
        border: none;
        left: 0px;
        top: 0px;
        height: 92px;
    }

    .Image_profil {
        position: absolute;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        top: 20%;
        right: 5%;

    }

    #name_profil {
        position: absolute;
        top: 65%;
        right: 5%;
        color: #31B7F5;

    }

    .logo-transparent_phone {
        position: absolute;
        top: 20%;
        left: 5%;
        color: #31B7F5;
        font-weight: bolder;
        
        font-size: 30px;
    }



    .footer {
        display: flex;
        justify-content: space-around;
        background:linear-gradient(#227aeead,#0854b6ad);
        padding: 10px 0;
        position: fixed;
        color: white;
        font-size: 13px;
        bottom: 7px;
        width: calc(100%-4%);
        left: 2%;
        right: 2%;
        box-shadow: 0 4px  5px rgba(0, 0, 0, 0.7);
        z-index: 1000;
        border-radius: 25px;
        
       
    }

  

    .footer-icon {
        text-align: center;
        position: relative;
    }

    .border {
        width: 100%;
        height: 2px;
        background-color: red;
        position: absolute;
        top: -4px;
        
        left: 0;
        display: none;
        border-radius: 50%;
    }

    .footer-icon.active .border {
        display: block;
        cursor: pointer;

    }


    .footer-icon img {
        width: 24px;
        height: 24px;
        margin-bottom: 5px;
        cursor: pointer;
    }


    /* contenu actualite ---------------------------------------*/
    #container_Annonce_phone {
        display: flex;
        justify-content: center;
        margin-top: 5% ;
        flex-direction: column;
        
    }

     #principal_Annonce_phone {
        background: white;
        font-weight: bolder;
        width: 92%;
         left: 2.5%;
       /* right: 4%; */
        margin-top: 6% ; 
        position: relative;
        padding: 5px;
        border-radius: 7px;
        border: none;
        box-shadow: 0px 2px 5px #ccc;
    }

    #ent_Annonce_phone {
        background: white;
    }

    #entete_Annonce_phone {
        display: flex;
        align-items: center;
        border-radius: 10px;
        padding: 10px;
    }

    #photo_Annonce_phone {
        width: 45px;
        height:45px;
        border-radius: 50%;
        margin-right: 10px;
        border: 2px solid #31B7F5;
    }

    .icon-certif{
        background-color: white;
        border-radius: 50%;
        position:absolute;
        left:0px;
   }
   
   .image-certif-contain{
        position:relative;
        display: block;
        

    }




    #bouton_profil_Annonce_phone {
        color: #31B7F5;
        border: none;
        background: white;
        padding: 2px;
        border-radius: 7px;
        height: 30px;
        margin-left: auto;
        font-size: 13px;
        cursor: pointer;
        position: absolute;
        right: 2%;
        top:5%;
        font-weight: bolder;
    }

    span {
        font-size: 10px;
        color: black;
    }

    #info_Annonce_phone {
        flex-grow: 1;
        font-size: 10px;
    }

    #body_Annonce_phone {
         background: white;
        margin: 5px;
    }

    #scroll_photo_Annonce_phone {
            height: 150px;
        background: white;
        border: 1px solid white;
       
    }
    .default_image{
        opacity: 0.7;
    }
     #caroussel{
           overflow: auto;
        padding: 1%;
        padding-top: 1%;
        display: flex;
        width: 98%;
        height: 96%;
        background-color: rgb(249, 249, 252);
    }

    .image_announ{
        display: flex;
        gap: 1.5%;
    }

    #description_Annonce_phone {
        margin: 2.5px 2.5px 2.5px 0px;
        background: white;
        border-radius: 5px;
        padding: 2.5px;
        text-align: justify;
        font-size: 13px;
        font-weight: bolder;
        color: BLACK;
    }

    #info_localite_Annonce_phone {
        margin: 0px 5px 5px 5px;
        background: white;
        border-radius: 5px;
        padding:4px 4px 4px 0%;
        font-size: 13px;
        line-height: 1.5;
    }

    li,
    #description_Annonce_phone {
        font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
        font-weight: bolder;
    }

    #type_Annonce_phone {
        text-align: left;
        display: inline-block;
        /* min-width: 30%;
        max-width: 50%; */
        padding: 4px;
        padding-left: 10px;
        padding-right: 20px;
        margin-bottom: 5px;
        font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
        font-weight: bolder;
        background: #31B7F5;
        color: white;
        font-size: 13px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
        

    }

  .container-btnAnnonce {
        display: flex;
        justify-content: space-around;
        width: 100%;
        border: none;
        position: relative;
        gap:5px;

    }


     #view_Annonce_phone,
    #comment_Annonce_phone,
    #partage_Annonce_phone {
        

       
        color: #31B7F5;
        display: flex;
        flex-direction: column;
        align-items: center;
        border: none;
        padding: 5px;
        padding-top:2px;
        padding-left:5%;
        padding-right:5% ;
        cursor: pointer;
        text-align: center;
        font-family: Arial, sans-serif;
        text-decoration: none;
        border-radius: 10px 10px 10px 10px ;
        background: white;
    }

    .btnActuPc img{
        width:20px;
        height: 15px;
    }

    .img-localite{
       width:15px;
       height: 15px; 
    }

    .btnActuPc span{
        font-size: 13px;
        font-weight: bold;
        color: #31B7F5;
    }

    #tableau_Annonce_phones {
         margin: auto;
        /* background-color: #9ac49a; */
    }

    td {
        text-align: center;
    }



    .Contenu_Actualite {
        width: 100%;
        z-index: 1000;
        overflow-y: auto;
        top: 94px;
        bottom: 76px;
        background-color: white;
        position: fixed;
        left: 0%;
        right: 0%;
      
    }

   
    .container_Account {

        width: 100%;
        z-index: 1000;
        overflow-y: auto;
        top: 94px;
        /* bottom: 200px; */
        bottom: 75px;
        position: fixed;
        left: 0%;
        right: 0%;
        padding-bottom: 5%;

        position: fixed;
        /* margin-left: 0%;
        margin-right: 0%; */
        border: none;
        /* width: 100%; */
        z-index: 1000;
        overflow-y: auto;
        /* margin-top: 94px; */
        /* margin-bottom: 200px; */
        background-color: #ccc;
        
    }

    .container_notification {
       width: 100%;
        z-index: 1000;
        overflow-y: auto;
        top: 94px;
        bottom: 76px;
        background-color: white;
        position: fixed;
        left: 0%;
        right: 0%;
        padding-top:20px
        
    }

    .container_notification .message-preview  {
            display: flex;
            align-items: center;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            padding: 5px;
            width: calc(100%-40px);
            
            
        }

  

    .containner_bouton_account {

        position:fixed ;
        background:linear-gradient(#31B7F5,#31B7F5);
        border-top: 1px solid #82a5d7;
        display: block;
        /* padding-top: 5px; */
        position: fixed;
        bottom: 80px;
        
        overflow: auto;
        
        /* animation: scroll 10s linear infinite; */
        left:1%;
        /* top:31%; */
        width:15%;
        border-radius:20px;
        box-shadow:2px 3px 2px #ccc;
        border:4px solid white;
        height:initial;
        font-size:10px;
        text-align:center
    }






    .containner_bouton_account hr{
       display: block;
       margin-top: 0;
       margin-bottom: 0;
    }
/* 
    #btnbtn{
        background-color: #4CAF50;
    } */

    #close-open{
        position: fixed;
        width: calc(100%-80%);
       left: 40%;
       right: 40%;
        padding: 2px;
        z-index: 900;
        margin-bottom: 0px;
        margin-top: 0px;
        /* background-color: #82a5d7; */
        background: white;
        font-size: 15px;
        text-align: center;
        border-radius: 10px;
        color: #31B7F5;
        font-weight: bolder;
        cursor: pointer;
         box-shadow: 0px 2px 5px #ccc;
         height: 40px;
        bottom:203px ;


    }

    #close-open img{
        width: 20px;
        height: auto;
    }
    #close-open span{
        font-size: 15px;
        text-align: center;
        border-radius: 50%;
        color: #31B7F5;
        font-weight: bolder;
    }


   

   
   #bouton_account1 {
       width: calc(100%-0%);
       margin-left: 0%;
       margin-right: 0%;
        padding: 8px 3px 8px 3px;
        background-color: none;
        font-size: 10px;
        text-align: center;
        color: white;
        cursor: pointer;
         font-weight: bold;
    }

    #bouton_account10 {
       width: calc(100%-0%);
       margin-left: 0%;
       margin-right: 0%;
        padding: 8px 3px 8px 3px;
        background-color: none;
        font-size: 10px;
        text-align: center;
        color: white;
        cursor: pointer;
         font-weight: bold;
    }
       #bouton_account2 {
        width: calc(100%-0%);
       margin-left: 0%;
       margin-right: 0%;
        padding: 8px 3px 8px 3px;
         font-weight: bold;
        background-color: none;
        font-size: 10px;
        text-align: center;
        color: white;
        cursor: pointer;
         font-weight: bold;
    }

     #bouton_account9 {
        width: calc(100%-0%);
       margin-left: 0%;
       margin-right: 0%;
        padding: 8px 3px 8px 3px;
        background-color: none;
        font-size: 10px;
        text-align: center;
        color: white;
        cursor: pointer;
         font-weight: bold;
    }
       #bouton_account3 {
        width: calc(100%-0%);
       margin-left: 0%;
       margin-right: 0%;
        padding: 8px 3px 8px 3px;
        background-color: none;
        font-size: 10px;
        text-align: center;
        color: white;
        cursor: pointer;
         font-weight: bold;
    }
       #bouton_account4 {
        width: calc(100%-0%);
       margin-left: 0%;
       margin-right: 0%;
        padding: 8px 3px 8px 3px;
        background-color: none;
        font-size: 10px;
        text-align: center;
        color: white;
        cursor: pointer;
         font-weight: bold;
    }

       #bouton_account6 {
        width: calc(100%-0%);
       margin-left: 0%;
       margin-right: 0%;
        padding: 8px 3px 8px 3px;
        background-color: none;
        font-size: 10px;
        text-align: center;
        color: white;
        cursor: pointer;
         font-weight: bold;
    }
       #bouton_account7 {
        width: calc(100%-0%);
       margin-left: 0%;
       margin-right: 0%;
        padding: 8px 3px 8px 3px;
        background-color: none;
        font-size: 10px;
        text-align: center;
        color: white;
        cursor: pointer;
         font-weight: bold;
    }

    #bouton_account8 {
        width: calc(100%-0%);
       margin-left: 0%;
       margin-right: 0%;
        padding: 8px 3px 8px 3px;
        background-color: none;
        font-size: 10px;
        text-align: center;
        color: white;
        cursor: pointer;
         font-weight: bold;
    }


    .info_account {
        position: absolute;
        flex: 1;
        overflow-y: auto;
        top: 20px;
        left: 18%;
        right: 2%;
        background-color: transparent;
        

         /* flex: 1;
        overflow-y: auto;
        margin-top: 20px;
        padding-left: 20%;
        padding-right: 20%;
        background-color: transparent;
        padding: 20px 5% 5% 5%; */
    }

    #info1{
        padding-bottom: 90px;
    }
    #info9,#info3{
        padding-bottom: 170px;
    }
    
    #info2,#info4,#info5,#info6,#info7,#info8{
       padding-bottom: 160px;  
    }
    
    #info8,#info9,#info7{
        padding-top:5% ;
    }
 
      #partages_phone {
        border-radius: 10px;
        border: none;
         box-shadow: 0px 2px 5px #9e9d9d;
         padding: 5px;
        margin:5px ;
        cursor: pointer;
    }

    

    .messageAttente1{
        color: #ff0037;
        font-weight: bold;
        font-size: 18px;
        margin-top: 15px; 
        margin-left: 10%;
        margin-right: 10%; 
        /* transform: translate(-50%, -50%);  */
        display: block;
        text-align: center;
    }
    .messageAttente1::after {
        content: '';
        left: 100%;
        animation: dotsss 1.5s infinite;
    }
    @keyframes dotsss {
        0%, 20% { content: ' '; }
        20%, 40% { content: '.'; }
        40%, 60% { content: '..'; }
        60%, 80% { content: '...'; }
        80%, 100% { content: ''; }
    }

    #messageAttente{
        color: #ff0037;
        font-weight: bold;
        font-size: 18px;
        margin-top: 15px; 
        margin-left: 10%;
        margin-right: 10%; 
        /* transform: translate(-50%, -50%);  */
        display: none;
    }
    #messageAttente::after {
        content: '';
        left: 100%;
        animation: dotss 1.5s infinite;
    }
    
    
    
    @keyframes dotss {
        0%, 20% { content: ' '; }
        20%, 40% { content: '.'; }
        40%, 60% { content: '..'; }
        60%, 80% { content: '...'; }
        80%, 100% { content: ''; }
    }
    
    /*---------------------------------info user message notification ------------------------------- */

     .message-preview {
            display: flex;
            align-items: center;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            padding: 5px;
            margin-bottom: 20px;
        }
        .profile-pic {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            margin-right: 15px;
        }
        .message-details {
            flex-grow: 1;
        }
        .sender-name {
            font-weight: bold;
            margin: 0;
        }
        .message-content {
            display: inline-block;
            margin-right: 10px;
            color: #555;
            font-size: 12px;
        }
        .message-time {
            font-size: 0.9em;
            color: #999;
            display: inline-block;
        }
    

    #affichage-solde-containerp {
    /* display: inline-block; */
    display: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 0 8px 0;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 600;  
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(224, 184, 184, 0.1);
    transition: all 0.3s ease;
    cursor: default;
    position: fixed;
    top: 40px;
    left:58%;   
    right: 2%;
    width:calc(100%-60%);
    text-align: center;
    white-space: nowrap;
    z-index: 1000;
}

.ultra-solde:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

    .message_non_lus{
            
        border-radius: 50%;
            width: 15px;
        height: 15px;
        color:WHITE;
        font-weight: bold;
        background-color:rgb(54, 42, 40);
        text-align: center;
        padding:2.5px;
        font-size: 10px;
        background-color:rgb(199, 46, 18);
        position: absolute;
        top:0;
        right: 10%;

        
    }

}

