
h2 {
    color: #2c3e50;
    margin-bottom: 1em;
}


/* TABLEAU RESPONSIVE */
@media screen and (max-width: 768px) {
    .table, .table thead, .table tbody, .table th, .table td, .table tr {
        display: block;
        width: 100%;
    }

    .table thead {
        display: none;
    }

    .table tr {
        margin-bottom: 1em;
        border: 1px solid #ccc;
        border-radius: 10px;
        padding: 1em;
        background: #fff;
        box-shadow: 0 0 5px rgba(0,0,0,0.05);
    }

    .table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5em 0;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .table td:last-child {
        border-bottom: none;
    }

    .table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #555;
    }

    .actions a {
        display: inline-block;
        margin: 0.2em 0;
    }
}

    .mobile-spacer {
      display: none;
    }
    
    @media screen and (max-width: 600px) {
      .mobile-spacer {
        display: block;
        height: 30px; /* ajuste selon l'espace souhaité */
      }
    }

    @media screen and (max-width: 600px) {
      .search-form {
        margin-bottom: 20px; /* ajoute de l'espace sous le formulaire sur mobile uniquement */
      }
    }
    
    .search-form { 
        background: white; 
        padding: 1.5em; 
        max-width: 600px; 
        margin: auto; 
        border-radius: 10px; 
        box-shadow: 0 0 10px #ccc; 
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;                  /* espacement entre les Ã©lÃ©ments */
    }

    .bouton-recherche,
    .reset-button {
        padding: 8px 12px;
        background-color: #f0f0f0;
        border: 1px solid #ccc;
        text-decoration: none;
        color: #000;
        border-radius: 5px;
        cursor: pointer;
    }
    .bouton-recherche:hover,
    .reset-button:hover {
        background-color: #ddd;
    }
    /*fin nouveau 1*/


    /*results-boxes*/
    .results-boxes {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1em;
        margin-top: 2em;
    }
    
    .entreprise-box {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 1.2em;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.03);
        transition: transform 0.2s ease;
    }
    
    .entreprise-box:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    
    .entreprise-box h3 {
        margin-top: 0;
        color: #2c3e50;
    }
    
    .entreprise-box p {
        margin: 0.5em 0;
        color: #444;
    }
    
    .entreprise-box .actions {
        margin-top: 1em;
    }
    
    .entreprise-box .actions a {
        display: inline-block;
        margin-right: 10px;
        text-decoration: none;
        color: #2980b9;
        font-weight: bold;
    }
    
    .entreprise-box .actions a.delete {
        color: #e74c3c;
    }
     /*fin results-boxes*/

    /* bouton du "voir dossier" */
    .btn-dossier {
    display: inline-block;
    background-color: #f0ad4e;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
    }
    .btn-dossier:hover {
    background-color: #ba6f05;
    }

    .btn-dossier a {
    background-color: #007BFF;
    color: white;
    pointer-events: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.5);
    }

    /* bouton du "voir fiche adresse" */
    .btn-fiche-adresse {
    display: inline-block;
    background-color: #4e53f0;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
    }
    .btn-fiche-adresse:hover {
    background-color: #0fb5f1;
    }

    .btn-fiche-adresse a {
    background-color: #bcdafa;
    color: white;
    pointer-events: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(1, 33, 68, 0.5);
    }

    /*footer*/
    footer {
        background-color: #2c3e50;
        color: white;
        padding: 1em 0;
        text-align: center;
        margin-top: 2em;
    }
    
    .footer-content {
        max-width: 900px;
        margin: auto;
        padding: 0 1em;
        font-size: 0.95em;
    }
    
    .footer-content a {
        color: #2ecc71;
        text-decoration: none;
    }
    
    .footer-content a:hover {
        text-decoration: underline;
    }
    
    /* Responsive (ajustement sur petit Ã©cran) */
    @media screen and (max-width: 600px) {
        .footer-content {
            font-size: 0.9em;
            padding: 0 0.5em;
        }
    }
/*fin footer*/    


.auth-switch {
    margin-top: 1em;
    font-size: 0.95em;
    color: #333;
}
.auth-switch a {
    color: #2980b9;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.lang-select select {
    padding: 0.3em;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  
  .auth-buttons {
    display: flex;
    gap: 10px;
  }
  
  
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px auto;
    padding: 10px;
}

.pagination a {
    all: unset;
    display: inline-block;
    padding: 10px 16px;
    background-color: #f0f0f0;
    color: #333;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    cursor: pointer;
}

.pagination a:hover {
    background-color: #fff;
    color: #007BFF;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.pagination a.active {
    background-color: #007BFF;
    color: white;
    pointer-events: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.5);
}

.page-link {
    text-decoration: none !important;
    color: #007BFF;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.page-link:hover {
    background-color: #007BFF;
    color: white;
}

.page-link.active {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
    pointer-events: none;
}

.pagination span.page-link {
    background: none;
    color: #2b2a2a;
    cursor: default;
    box-shadow: none;
}

/* ðŸ“± Responsive : sur petit Ã©cran, on rÃ©duit le padding et on masque les "..." */
@media screen and (max-width: 500px) {
    .page-link {
        padding: 6px 8px;
        font-size: 0.9em;
    }

    .pagination span.page-link {
        display: none; /* masque les "..." */
    }
}

/* Loader fond complet */
#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6); /* lÃ©ger blanc transparent */
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    backdrop-filter: blur(8px); /* LE flou magique */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
/* Ton logo au centre */
.loader-logo {
width: 500px;
animation: logoSpin 5s linear infinite;
}

@keyframes logoSpin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Loader fond complet */

/*gemini*/
.zone-attente img {
    max-width: 100%; /* Ajustez la taille de l'image */
    max-height: 100%;
  }
.zone-attente {
    display: flex;
    flex-direction: column; /* Aligne les Ã©lÃ©ments verticalement */
    justify-content: center;
    align-items: center;
    height: 200px; /* Ajustez la hauteur */
    width: 100%;
    color: #777;
    font-size: 1.2em;
    text-align: center;
    padding: 10px;
  }
.texte-centre {
    display: flex;
    flex-direction: column; /* Aligne les Ã©lÃ©ments verticalement */
    justify-content: center;
    align-items: center;
    height: 100px; /* Ajustez la hauteur */
    width: 100%;
    color: #777;
    font-size: 1.0em;
    text-align: center;
  }  
 /*fin gemini*/       

 #p5
 {
     text-align:center;
     display:block;
     font-size:26px;
     line-height:1.0em;
     padding:7px 0 20px 0;
     color:#000;
     letter-spacing:-1px
 } 
    
 #p6
 {
     text-align:center;
     display:block;
     font-size:24px;
     line-height:1.0em;
     padding:7px 0 20px 0;
     color:#000;
     letter-spacing:-1px
 } 
  
.banniere_immo {
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    justify-content: space-between; 
    background: #e0f7fa; 
    border: 2px solid #26a69a; 
    border-radius: 20px; 
    padding: 20px; 
    margin: 40px 0;    
}

.banniere-immo {
    background: #e0f2f1; 
    border: 1px solid #26a69a; 
    padding: 20px; 
    margin: 30px auto; 
    border-radius: 10px; 
    text-align: center; 
    direction: rtl;  
}

#img_immo {
    flex: 1 1 250px; 
    text-align: center;
}

#texte_btn {
	flex: 2 1 400px; 
    padding: 0 20px; 
    direction: rtl; 
    text-align: right;    
}
  
.success-message {
  background-color: #e6ffed;
  color: #1f7a1f;
  padding: 12px;
  border-left: 6px solid #22c55e;
  border-radius: 6px;
  margin: 20px 0;
  font-weight: bold;
}  

@media screen and (max-width: 600px) {
  .zone-attente {
    font-size: 16px;
    padding: 15px;
    line-height: 1.6;
    word-wrap: break-word;
  }
}  
