/* Styles pour les éléments boostés et la certification New_Emploi */

/* Empêche les débordements horizontaux causés par des titres/textes
   très longs ou sans espaces (ex: offres d'emploi, description riche,
   liens/URL collés sans espace par l'éditeur de texte) */
.prose,
.prose * {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
}

/* Les liens (auto-détectés par l'éditeur autour d'une URL) sont les
   principaux responsables des débordements : ils n'ont souvent aucun
   espace sur toute leur longueur, donc on force la coupure caractère
   par caractère si besoin. */
.prose a {
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
}

/* Filet de sécurité : si un élément déborde malgré tout, on masque le
   débordement horizontal plutôt que de casser la mise en page */
.prose {
    overflow-x: hidden;
}

h1, h2, h3, .job-card, .job-card * {
    overflow-wrap: anywhere;
}

:root {
    --gold-primary: #FAC775;
    --gold-dark: #412402;
    --gold-bg-light: #FFFDF5;
    --dark-banner: #2C2C2A;
}

/* 1. Carte Boostée (Offres & Entreprises) */
.card-boosted {
    position: relative;
    border: 2px solid var(--gold-primary) !important;
    background-color: var(--gold-bg-light) !important;
    box-shadow: 0 10px 30px -10px rgba(250, 199, 117, 0.4) !important;
    transition: all 0.3s ease !important;
    overflow: visible !important;
}

.card-boosted:hover {
    box-shadow: 0 15px 35px -5px rgba(250, 199, 117, 0.6) !important;
    transform: translateY(-2px);
}

/* 2. Badge Sponsorisé (Offres d'emploi) */
.badge-sponsorise {
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--gold-primary);
    color: var(--gold-dark);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 3. Bandeau À LA UNE (Entreprises) */
.banner-alaune {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-banner);
    color: var(--gold-primary);
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* 4. Badge de Certification */
.certified-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6; /* Bleu par défaut, peut être doré selon le contexte */
    position: relative;
    cursor: help;
    vertical-align: middle;
    margin-left: 4px;
}

/* Tooltip pour la certification */
.certified-checkmark .tooltip-text {
    visibility: hidden;
    width: 180px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 100;
    bottom: 125%; /* Position au-dessus */
    left: 50%;
    margin-left: -90px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 11px;
    font-weight: normal;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.certified-checkmark .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.certified-checkmark:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Icône éclair pour annonces boostées */
.boost-icon-flash {
    color: var(--gold-primary);
    margin-right: 4px;
    vertical-align: middle;
}
