

/* Boutons */
.bouton-principal {
    background-color: #007bff;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.bouton-principal:hover {
    background-color: #0056b3;
}

.bouton-secondaire {
    background-color: #6c757d;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}

.bouton-secondaire:hover {
    background-color: #5a6268;
}

.voir-details-btn {
    /* Hérite des styles de .bouton-principal */
}

#leave-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
}

#leave-button:hover {
    background-color: #c82333;
}

/* Accueil */
#accueil-contenu {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.accueil-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 95%;
    max-width: 500px;
}

.accueil-connexion {
    text-align: center;
}

/* Offres d'emploi */
#offres-liste {
    margin-top: 15px;
}

.offre-emploi {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.offre-emploi h2 {
    color: #007bff;
    margin-top: 0;
    font-size: 1.2em;
}

.offre-emploi .entreprise {
    font-weight: bold;
    color: #555;
    font-size: 0.9em;
}

.message-info {
    text-align: center;
    color: #777;
    font-style: italic;
    font-size: 0.9em;
}

.offres-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.offre-mini {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.offre-mini-0 { background: linear-gradient(135deg, #f0f8ff 0%, #e0f2f7 100%); /* Bleu clair */ }
.offre-mini-1 { background: linear-gradient(315deg, #e6f7ff 0%, #b3e5fc 100%); /* Bleu plus soutenu */ }
.offre-mini-2 { background: linear-gradient(90deg, #f0fff0 0%, #e0f7fa 100%); /* Vert clair */ }
.offre-mini-3 { background: linear-gradient(270deg, #e8f5e9 0%, #a5d6a7 100%); /* Vert plus soutenu */ }
.offre-mini-4 { background: linear-gradient(45deg, #f3e5f5 0%, #ce93d8 100%); /* Violet clair */ }
.offre-mini-5 { background: linear-gradient(225deg, #ede7f6 0%, #ab47bc 100%); /* Violet plus soutenu */ }
.offre-mini-6 { background: linear-gradient(0deg, #fffde7 0%, #fff9c4 100%); /* Jaune clair */ }
.offre-mini-7 { background: linear-gradient(180deg, #fff8e1 0%, #ffecb3 100%); /* Jaune plus soutenu */ }
.offre-mini-8 { background: linear-gradient(135deg, #ffe0b2 0%, #ffb74d 100%); /* Orange clair */ }
.offre-mini-9 { background: linear-gradient(315deg, #ffcc80 0%, #ffa726 100%); /* Orange plus soutenu */ }

.offre-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.offres-grille .offre-mini.expire-aujourdhui {
    border: 2px solid red;
}
.offre-mini.expire-aujourdhui {
   border: 2px solid red !important;
}

.offre-mini h2 {
    font-size: 1.1em;
    margin-bottom: 3px;
    color: #007bff;
}

.offre-mini .entreprise {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 5px;
}

.offre-mini .categorie {
    font-size: 0.8em;
    color: #777;
}

.offre-mini a.bouton-principal {
    display: block;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-top: 8px;
}

.offre-mini a.bouton-principal:hover {
    background-color: #0056b3;
}

/* Animation Fade-In */
@keyframes fadein {
    from { opacity: 0; transform: translateY(5px); }
    to    { opacity: 1; transform: translateY(0); }
}

.offre-mini.fade-in {
    animation: fadein 0.3s ease-out;
}

/* Couleur temporaire pour les nouvelles offres */
.offre-mini.nouveau {
    background: linear-gradient(135deg, #fff7e1 0%, #ffebcd 100%);
    transition: background 2s ease-out;
}

/* Rétablir les couleurs normales après 2 secondes */
.offre-mini.nouveau:not(.fade-out) {
   background: linear-gradient(135deg, #f0f8ff 0%, #e0f2f7 100%);
}

.offre-mini:nth-child(even).nouveau:not(.fade-out) {
    background: linear-gradient(135deg, #f8f8ff 0%, #e6f7ff 100%);
}

.offre-mini.fade-out {
    background: linear-gradient(135deg, #f0f8ff 0%, #e0f2f7 100%) !important;
}

/* Styles du chargement, fin de liste, remonter */
#loading-indicator,
#fin-de-liste {
    text-align: center;
    padding: 8px;
    color: #777;
    font-size: 0.9em;
}

#remonter {
    display: none;
    position: fixed;
    bottom: 15px;
    right: 15px;
    background-color: #5cb85c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

#remonter:hover {
    background-color: #4cae4c;
}

/* Media query pour les écrans plus larges */
@media (min-width: 577px) {
    .bouton-principal {
        width: auto;
        margin-right: 10px;
    }
}

/* Offre Info */
.offre-info {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 0.85em;
    color: #777;
    margin-bottom: 8px;
}

.offre-info span {
    margin-right: 5px;
}

.offre-info i {
    margin-right: 3px;
    color: #555;
    font-size: 0.9em;
}

/* Offre Mini - État "Expire aujourd'hui" */
.offre-mini.expire-aujourdhui {
    border: 2px solid red;
    animation: clignoter 1s infinite;
}

@keyframes clignoter {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Styles du modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 15px;
    border: 1px solid #888;
    width: 90%;
    border-radius: 8px;
    position: relative;
}

.modal-close-button {
    color: #aaa;
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close-button:hover,
.modal-close-button:focus {
    color: black;
    text-decoration: none;
}

#offreDetailsContent h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

#offreDetailsContent p {
    line-height: 1.5;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95em;
}


/* Styles des filtres actifs */
#filtres-actifs-container {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.9em;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

#filtres-actifs-container span {
    display: inline-block;
    margin-right: 5px;
    padding: 4px 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    font-size: 0.85em;
}

#filtres-actifs-container span button {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    margin-left: 3px;
    font-weight: bold;
    font-size: 0.7em;
    padding: 0;
}

#filtres-actifs-container span button:hover {
    color: #c82333;
}

/* Styles des catégories */
.categorie-item {
    display: inline-block;
    padding: 6px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    color: #333;
}

.categorie-item.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.categorie-item:hover {
    background-color: #e9ecef;
}