/* =========================================================================
   Ajustements maison, chargés après le thème.
   Ne jamais modifier dashboard.css / style.css directement : ils sont
   générés depuis les .scss du thème et toute retouche y serait perdue.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Tuiles de statistiques des tableaux de bord
   Le fond de ces tuiles est saturé (bleu, vert, orange, rouge) et le titre
   comme le chiffre sont blancs. La classe .text-muted de Bootstrap y impose
   un gris (#6c757d) illisible : on repasse le texte secondaire en blanc
   légèrement atténué, cohérent avec le reste de la tuile.
   ------------------------------------------------------------------------- */
.stats-fun-fact-box .text-muted,
.stats-fun-fact-box small,
.stats-fun-fact-box p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* La ligne secondaire reste lisible sans concurrencer le chiffre principal. */
.stats-fun-fact-box p {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 0;
}

/* Le lien qui enveloppe certaines tuiles ne doit pas les souligner.
   Regles separees : un navigateur sans :has() ignorerait sinon les deux. */
.stats-fun-fact-box a {
    text-decoration: none;
}

a:has(> .stats-fun-fact-box) {
    text-decoration: none;
}

/* -------------------------------------------------------------------------
   Validation des offres : mise en évidence brève de la ligne modifiée
   ------------------------------------------------------------------------- */
tr.table-active {
    transition: background-color 0.4s ease;
}

/* -------------------------------------------------------------------------
   Icônes d'action des tableaux (.option-btn)
   Le thème fixe une taille de 35px et un line-height, mais ne centre pas le
   contenu. Les <button> sont centrés par le navigateur, pas les <a> : l'icône
   d'édition, seule à être un lien, apparaissait décalée en haut à gauche.
   ------------------------------------------------------------------------- */
.option-list li .option-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    text-decoration: none;
    padding: 0;
}

/* =========================================================================
   Liste des offres d'emploi (front)
   ========================================================================= */

/* -------------------------------------------------------------------------
   Le thème place le bloc titre + entreprise en position absolue dans une
   gouttière de 190 px (.job-information { padding-left: 190px } et
   .title-box { position: absolute }). Dès qu'un nom d'entreprise ou un
   intitulé dépasse cette réserve, il déborde et passe SOUS les étiquettes.
   On repasse en flux normal : plus rien ne se superpose, quelle que soit
   la longueur du texte.
   ------------------------------------------------------------------------- */
.job-list-inner-box .job-list-box .job-information {
    position: static;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-list-inner-box .job-list-box .job-information .title-box {
    position: static;
    min-width: 0;
}

.job-list-inner-box .job-list-box .job-information .title-box h3 {
    margin-bottom: 4px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* Le nom de l'entreprise s'affiche en entier, sur deux lignes au maximum. */
.job-list-inner-box .job-list-box .job-information .title-box .company-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.job-list-inner-box .job-list-box .job-information .job-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.job-list-inner-box .job-list-box .job-information .job-tag-list li {
    margin-right: 0;
}

/* -------------------------------------------------------------------------
   La carte : relief au survol, coins arrondis, respiration
   ------------------------------------------------------------------------- */
.job-block-item {
    background: #fff;
    border: 1px solid #ecedf3;
    border-radius: 12px;
    padding: 22px 24px;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.job-block-item:hover {
    border-color: #d8dcea;
    box-shadow: 0 6px 24px rgba(20, 22, 31, .08);
    transform: translateY(-2px);
}

.job-block-item .company-box-logo {
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    border-radius: 10px;
    background: #f7f8fc;
    padding: 12px;
}

.job-block-item .company-box-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.job-block-item .location-information {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding: 0;
}

.job-block-item .location-information li {
    margin-right: 0 !important;
}

/* Offre dont la date limite est passée : le visuel doit le dire. */
.job-block-item.est-expiree {
    background: #fafafb;
}

.job-block-item.est-expiree .company-box-logo img {
    filter: grayscale(1);
    opacity: .7;
}

.job-block-item .etiquette-expiree {
    background-color: #f1f2f6 !important;
    color: #6b7180 !important;
}

/* Le bouton favoris doit se comporter comme un bouton. */
.job-list-optional .save-text {
    cursor: pointer;
    user-select: none;
}

@media (max-width: 767px) {
    .job-block-item {
        padding: 18px;
    }
    .job-block-item .company-box-logo {
        min-height: 72px;
        margin-bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .job-block-item,
    .job-block-item:hover {
        transition: none;
        transform: none;
    }
}

/* =========================================================================
   CVtheque : recherche et cartes de profil
   ========================================================================= */

.cvtheque-recherche {
    background: #fff;
    border: 1px solid #ecedf3;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(20, 22, 31, .04);
}

.cvtheque-recherche .form-label {
    margin-bottom: 4px;
    font-weight: 500;
}

/* Grille : rangees regulieres, cartes de hauteur egale. */
.liste-profils {
    row-gap: 25px;
}

/* La carte de profil suit le meme langage que la carte d'offre. */
.carte-profil {
    border: 1px solid #ecedf3;
    border-radius: 12px;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
    height: 100%;
    /* La marge du theme casserait le height:100% dans une colonne etiree. */
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

/*
 * Le theme place la photo en position absolue dans une gouttiere de 150 px
 * (.candidates-information-box { padding-left: 150px }). La hauteur de la carte
 * ne depend alors que du texte : deux profils voisins n'ont ni la meme hauteur
 * ni leurs liens alignes. On repasse en flux normal.
 */
.carte-profil .candidates-information-box {
    position: static;
    padding-left: 0;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex: 1 1 auto;
}

.carte-profil .candidates-information-box .image {
    position: static;
    flex: 0 0 auto;
}

.carte-profil .candidates-information-box .content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

/* Le lien se cale en bas : il s'aligne d'une carte a l'autre. */
.carte-profil .lien-profil {
    margin-top: auto;
    padding-top: 10px;
}

.carte-profil .job-info {
    margin-bottom: 0;
}

.carte-profil:hover {
    border-color: #d8dcea;
    box-shadow: 0 6px 24px rgba(20, 22, 31, .08);
    transform: translateY(-2px);
}

.carte-profil .image img {
    border-radius: 50%;
    object-fit: cover;
}

/* L'intitule ne doit pas casser la hauteur des cartes d'une meme rangee. */
.carte-profil .intitule-profil {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    min-height: 2.8em;
    line-height: 1.4;
}

.carte-profil .job-info li {
    overflow-wrap: anywhere;
}

.carte-profil .lien-profil {
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: var(--main-color, #1967d2);
}

.carte-profil .lien-profil:hover {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .carte-profil,
    .carte-profil:hover {
        transition: none;
        transform: none;
    }
}

/* =========================================================================
   Profil candidat : jauge d'avancement
   ========================================================================= */

.jauge-profil .progress {
    background-color: #eef0f6;
    border-radius: 20px;
    overflow: hidden;
}

.jauge-profil .progress-bar {
    background-color: var(--main-color, #1967d2);
    transition: width .4s ease;
}

.jauge-profil .liste-manquants {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jauge-profil .liste-manquants li {
    background: #fff4f3;
    color: #c0392b;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
    .jauge-profil .progress-bar {
        transition: none;
    }
}

/* =========================================================================
   Choix du modele de CV : apercus
   ========================================================================= */

.carte-modele .apercu-modele {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #f4f5fa;
    border-bottom: 1px solid #ecedf3;
}

/* L'apercu est une page A4 : on la reduit pour la faire tenir dans la carte. */
.carte-modele .apercu-modele iframe {
    width: 794px;      /* largeur A4 a 96 dpi */
    height: 1123px;
    border: 0;
    transform: scale(.42);
    transform-origin: top left;
    pointer-events: none;
}

/* Voile cliquable : l'apercu n'est pas interactif, le voile l'est. */
.carte-modele .apercu-modele .voile {
    position: absolute;
    inset: 0;
    display: block;
    cursor: zoom-in;
}

.carte-modele {
    transition: box-shadow .2s ease, transform .2s ease;
}

.carte-modele:hover {
    box-shadow: 0 8px 28px rgba(20, 22, 31, .12);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .carte-modele,
    .carte-modele:hover { transition: none; transform: none; }
}

/* ─── Apercu CV : indice visuel d'agrandissement ─────────────────────────── */
/* Sans libelle, rien ne dit que l'apercu s'ouvre : on l'ecrit dessus. */
.carte-modele .apercu-modele .loupe {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 40px;
    background: rgba(20, 22, 31, .82);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .2s ease;
}

.carte-modele:hover .apercu-modele .loupe,
.carte-modele .apercu-modele .voile:focus-visible .loupe {
    opacity: 1;
}

/* Au doigt il n'y a pas de survol : le libelle reste affiche. */
@media (hover: none) {
    .carte-modele .apercu-modele .loupe { opacity: 1; }
}

.carte-modele .apercu-modele .voile:focus-visible {
    outline: 2px solid #1C94B3;
    outline-offset: -2px;
}

/* ─── Fenetre d'apercu au format A4 ─────────────────────────────────────── */
/* Une hauteur en vh donnait un apercu au hasard du navigateur : on tient les
   proportions d'une page A4, pour que l'ecran ressemble au PDF telecharge. */
.modal-apercu-cv .modal-dialog {
    max-width: 834px;   /* 794 px de page A4 a 96 dpi + le rembourrage du corps */
}

.modal-apercu-cv .modal-body {
    background: #e9ebf2;
    padding: 20px;
}

.modal-apercu-cv .modal-body iframe {
    display: block;
    width: 100%;
    max-width: 794px;        /* largeur d'une A4 a 96 dpi */
    aspect-ratio: 210 / 297; /* proportions d'une A4 */
    margin: 0 auto;
    border: 0;
    background: #fff;
    box-shadow: 0 2px 14px rgba(20, 22, 31, .14);
}

/* Sans aspect-ratio, un navigateur ancien retomberait sur la hauteur par
   defaut d'un iframe, 150 px. */
@supports not (aspect-ratio: 1 / 1) {
    .modal-apercu-cv .modal-body iframe { height: 1123px; }
}

/* Sur un petit ecran la fenetre prend tout l'espace disponible. */
@media (max-width: 767px) {
    .modal-apercu-cv .modal-body { padding: 10px; }
    .modal-apercu-cv .modal-footer { flex-direction: column-reverse; gap: 8px; }
    .modal-apercu-cv .modal-footer > * { width: 100%; text-align: center; }
}

/* ─── Reseaux sociaux dans le pied de page ──────────────────────────────── */
/* Le theme n'a de styles que pour la barre du haut (topbar-social-list). */
.single-footer-widget .titre-reseaux {
    margin-top: 26px;
}

.footer-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-social-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 17px;
    transition: background .2s ease, color .2s ease;
}

.footer-social-list a:hover,
.footer-social-list a:focus-visible {
    background: #1C94B3;
    color: #fff;
}


/* ─── Choix de la couleur du CV ──────────────────────────────────────────── */
.choix-couleur .titre-couleur {
    font-size: 17px;
    margin-bottom: 4px;
}

.pastilles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pastille {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 9px;
    border: 1px solid #e3e6ee;
    border-radius: 40px;
    background: #fff;
    color: #4b5263;
    font-size: 13px;
    line-height: 1;
    transition: border-color .15s ease, color .15s ease;
}

.pastille:hover,
.pastille:focus-visible {
    border-color: #1C94B3;
    color: #11788f;
}

/* La pastille retenue doit se voir sans compter sur la seule couleur : elle
   garde un liseré epaissi et un libelle en gras. */
.pastille.est-choisie {
    border-color: #1C94B3;
    color: #11788f;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px #1C94B3;
}

.pastille .rond {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(20, 22, 31, .14);
}

/* « D'origine » ne vaut pas une couleur mais les trois teintes des modeles. */
.pastille .rond-origine {
    background: linear-gradient(135deg, #2b2f3a 0 33%, #1f3a63 33% 66%, #23262f 66% 100%);
}

.couleur-libre {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef0f5;
}

.couleur-libre label {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.couleur-libre input[type="color"] {
    width: 46px;
    height: 32px;
    padding: 2px;
    border: 1px solid #e3e6ee;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

/* Rappel, sur chaque carte, de l'endroit ou la couleur atterrit. */
.porte-couleur {
    font-size: 12px;
    color: #8b94a3;
    margin: 0;
}

/* ─── Page Parametres du candidat ────────────────────────────────────────── */
.carte-parametre .titre-parametre {
    font-size: 18px;
    margin-bottom: 4px;
}

.carte-parametre .reglage {
    padding: 14px 0;
    border-top: 1px solid #eef0f5;
    margin: 0;
}

.carte-parametre .reglage:first-of-type {
    border-top: 0;
    padding-top: 6px;
}

/* L'interrupteur du theme est minuscule : a cette taille il se vise au doigt. */
.carte-parametre .form-switch .form-check-input {
    width: 44px;
    height: 24px;
    margin-top: 2px;
    margin-left: -2.4em;
    cursor: pointer;
}

.carte-parametre .form-switch {
    padding-left: 3em;
}

.carte-parametre .form-check-input:checked {
    background-color: #1C94B3;
    border-color: #1C94B3;
}

.carte-parametre .form-check-label {
    cursor: pointer;
}

.carte-parametre .aide {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.5;
    color: #7b8492;
    font-weight: 400;
}

.carte-parametre .sous-reglages {
    margin-top: 6px;
    padding-left: 16px;
    border-left: 3px solid #eef0f5;
    transition: opacity .2s ease;
}

/* Les e-mails sont suspendus : les reglages restent lisibles mais sans effet. */
.carte-parametre .sous-reglages.est-suspendu {
    opacity: .45;
}

.carte-parametre.carte-danger {
    border-left: 3px solid #e0564a !important;
}

/* =========================================================================
   Annuaires publics : entreprises et formations
   ========================================================================= */

/* Le bloc de recherche est celui de la CVtheque : meme page, meme geste. */
.annuaire-recherche {
    background: #fff;
    border: 1px solid #ecedf3;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(20, 22, 31, .04);
}

.annuaire-recherche .form-label {
    margin-bottom: 4px;
    font-weight: 500;
}

.liste-annuaire {
    row-gap: 25px;
}

/*
 * La carte du theme porte margin-bottom: 25px, ce qui casse le height:100%
 * dans une colonne etiree : deux cartes voisines n'avaient ni la meme hauteur
 * ni leurs liens alignes. On repasse en colonne flexible.
 */
.carte-annuaire {
    height: 100%;
    margin-bottom: 0;
    padding: 24px;
    border: 1px solid #ecedf3;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.carte-annuaire:hover {
    border-color: #d6e8ee;
    box-shadow: 0 8px 28px rgba(20, 22, 31, .09);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .carte-annuaire,
    .carte-annuaire:hover { transition: none; transform: none; }
}

/* ─── En-tete : logo et nom ─── */
.entete-annuaire {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.logo-annuaire {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid #ecedf3;
    background: #fff;
    object-fit: contain;
    padding: 4px;
}

/* Repli quand l'entreprise n'a pas depose de logo. */
.logo-initiale {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf6fa;
    color: #1C94B3;
    font-size: 23px;
    font-weight: 700;
    padding: 0;
}

.carte-annuaire .nom-annuaire {
    font-size: 17px;
    line-height: 1.35;
    margin: 0;
    /* Un nom long ne doit pas deborder de la carte ni la faire grandir. */
    overflow-wrap: anywhere;
}

.carte-annuaire .nom-annuaire a {
    color: inherit;
}

.carte-annuaire .nom-annuaire a:hover {
    color: #1C94B3;
}

/* ─── Informations ─── */
.infos-annuaire {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex: 1 1 auto;
}

.infos-annuaire li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #5f6878;
    padding: 3px 0;
    overflow-wrap: anywhere;
}

.infos-annuaire li i {
    color: #1C94B3;
    font-size: 15px;
    line-height: 1.4;
}

.infos-annuaire a {
    color: #5f6878;
    text-decoration: underline;
}

.infos-annuaire a:hover {
    color: #1C94B3;
}

/* ─── Pied de carte ─── */
.pied-annuaire {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f3f7;
}

.compteur-offres {
    font-size: 13px;
    font-weight: 600;
    color: #11788f;
    background: #eaf6fa;
    border-radius: 20px;
    padding: 5px 12px;
}

.compteur-vide {
    color: #8b94a3;
    background: #f4f5f8;
    font-weight: 500;
}

.lien-annuaire {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1C94B3;
    white-space: nowrap;
}

.lien-annuaire:hover {
    color: #11788f;
}

/* ─── Carte de formation ─── */
.etiquette-secteur {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #11788f;
    background: #eaf6fa;
    border-radius: 20px;
    padding: 4px 11px;
    margin-bottom: 12px;
}

.organisme-annuaire {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: #5f6878;
    margin: 8px 0 0;
}

.organisme-annuaire i {
    color: #1C94B3;
}

.extrait-annuaire {
    font-size: 13.5px;
    line-height: 1.6;
    color: #6b7482;
    margin: 12px 0 16px;
    flex: 1 1 auto;
}

.marqueurs-formation {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.marqueur {
    font-size: 11.5px;
    font-weight: 600;
    color: #5f6878;
    background: #f4f5f8;
    border-radius: 20px;
    padding: 4px 10px;
}

.marqueur-ouvert {
    color: #1d6b4f;
    background: #e6f4ee;
}

/* Sur un petit ecran, le pied passe en colonne plutot que de se serrer. */
@media (max-width: 575px) {
    .pied-annuaire {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================================
   Fiche publique d'un candidat
   ========================================================================= */

.carte-profil-public {
    border: 1px solid #ecedf3;
    border-radius: 12px;
}

.entete-profil {
    text-align: center;
    padding-bottom: 6px;
}

.portrait-profil {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 16px rgba(20, 22, 31, .12);
    margin-bottom: 14px;
}

.entete-profil h3 {
    font-size: 20px;
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}

.metier-profil {
    display: block;
    font-size: 14px;
    color: #6b7482;
    margin-bottom: 14px;
}

.reseaux-profil {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.reseaux-profil a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #ecedf3;
    color: #5f6878;
    font-size: 15px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.reseaux-profil a:hover {
    background: #1C94B3;
    border-color: #1C94B3;
    color: #fff;
}

/* ─── Chiffres de la colonne ─── */
.liste-infos-profil {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.liste-infos-profil li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f1f3f7;
    font-size: 13.5px;
    color: #6b7482;
}

.liste-infos-profil li span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.liste-infos-profil li i {
    color: #1C94B3;
    font-size: 15px;
}

.liste-infos-profil li strong {
    color: #2b2f3a;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

/* ─── Partage ─── */
.partage-profil {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f3f7;
    text-align: center;
}

.titre-partage {
    display: block;
    font-size: 12.5px;
    color: #8b94a3;
    margin-bottom: 10px;
}

.liens-partage {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.liens-partage a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f4f6f9;
    color: #5f6878;
    font-size: 16px;
    transition: background .2s ease, color .2s ease;
}

.liens-partage a:hover {
    background: #1C94B3;
    color: #fff;
}

/* ─── Blocs du CV ─── */
.bloc-profil {
    background: #fff;
    border: 1px solid #ecedf3;
    border-radius: 12px;
    padding: 26px 28px;
}

.bloc-profil h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    margin: 0 0 18px;
}

.bloc-profil h3 i {
    color: #1C94B3;
    font-size: 19px;
}

.compte-avis {
    font-size: 12.5px;
    font-weight: 600;
    color: #11788f;
    background: #eaf6fa;
    border-radius: 20px;
    padding: 2px 10px;
}

.texte-profil {
    color: #5f6878;
    line-height: 1.75;
    margin: 0;
    white-space: pre-line;
}

.rien-a-afficher {
    color: #8b94a3;
    font-style: italic;
    margin: 0;
}

/* ─── Frise des experiences et formations ─── */
/* Un filet vertical relie les entrees : on lit un parcours, pas une liste. */
.frise-profil {
    position: relative;
    padding-left: 22px;
}

.frise-profil::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #eef0f5;
}

.frise-profil .entree-frise {
    position: relative;
    padding-bottom: 20px;
}

.frise-profil .entree-frise:last-child {
    padding-bottom: 0;
}

.frise-profil .entree-frise::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #1C94B3;
}

.frise-profil .entree-frise h4 {
    font-size: 15.5px;
    margin: 0 0 3px;
    overflow-wrap: anywhere;
}

.frise-profil .entree-frise h4 .chez {
    font-weight: 500;
    color: #6b7482;
}

.frise-profil .entree-frise .periode {
    display: inline-block;
    font-size: 12.5px;
    color: #8b94a3;
    margin-bottom: 5px;
}

.frise-profil .entree-frise p {
    font-size: 14px;
    line-height: 1.7;
    color: #5f6878;
    margin: 0;
}

/* ─── Competences ─── */
.puces-competences {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.puce-competence {
    display: inline-block;
    font-size: 13px;
    color: #11788f;
    background: #eaf6fa;
    border: 1px solid #d6ecf3;
    border-radius: 20px;
    padding: 5px 13px;
    transition: background .2s ease, color .2s ease;
}

.puce-competence:hover {
    background: #1C94B3;
    color: #fff;
}

/* ─── Recommandations ─── */
.avis-profil {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid #f1f3f7;
    margin: 0;
}

.avis-profil:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.initiale-avis {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eaf6fa;
    color: #1C94B3;
    font-size: 17px;
    font-weight: 700;
}

.avis-profil .corps-avis h5 {
    font-size: 14.5px;
    margin: 0 0 4px;
}

.avis-profil .corps-avis h5 span {
    font-size: 12.5px;
    font-weight: 400;
    color: #8b94a3;
    margin-left: 6px;
}

.avis-profil .corps-avis p {
    font-size: 14px;
    line-height: 1.7;
    color: #5f6878;
    margin: 0;
}

@media (max-width: 575px) {
    .bloc-profil { padding: 20px 18px; }
    .liste-infos-profil li { flex-direction: column; align-items: flex-start; gap: 3px; }
    .liste-infos-profil li strong { text-align: left; }
}

/* =========================================================================
   Page d'accueil : modernisation
   Le balisage avait ete nettoye, mais toutes les classes du theme etaient
   conservees : visuellement rien n'avait bouge. Ces regles reprennent le
   langage pose sur les autres pages — cartes a hauteur egale, filets fins,
   survol discret, accent turquoise.
   ========================================================================= */

/* ─── Formulaire de recherche de la banniere ─────────────────────────────── */
.main-banner-content-with-search .banner-search-form {
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 10px 40px rgba(20, 22, 31, .14);
}

/* Des champs gris sur fond blanc faisaient lourd : fond blanc, filet fin. */
.main-banner-content-with-search .banner-search-form .form-group .form-control {
    height: 62px;
    background-color: #fff;
    border: 1px solid #e6e9f0;
    border-radius: 10px;
    font-weight: 400;
}

.main-banner-content-with-search .banner-search-form .form-group .form-control:focus {
    border-color: #1C94B3;
    box-shadow: 0 0 0 3px rgba(28, 148, 179, .14);
    background-color: #fff;
}

.main-banner-content-with-search .banner-search-form .form-group label {
    top: 20px;
    font-size: 18px;
}

/* selectize fabrique sa propre boite : elle doit suivre celle des champs. */
.main-banner-content-with-search .banner-search-form .selectize-input {
    height: 62px;
    padding: 19px 15px 15px 50px;
    background: #fff;
    border: 1px solid #e6e9f0;
    border-radius: 10px;
    box-shadow: none;
}

.main-banner-content-with-search .banner-search-form .selectize-input.focus {
    border-color: #1C94B3;
    box-shadow: 0 0 0 3px rgba(28, 148, 179, .14);
}

.main-banner-content-with-search .banner-search-form .search-btn {
    height: 62px;
    width: 100%;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: .2px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.main-banner-content-with-search .banner-search-form .search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(28, 148, 179, .32);
}

/* Rappel de ce qui est filtre, sous le formulaire. */
.rappel-filtres {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 6px 8px;
    font-size: 13px;
    color: #6b7482;
}

.rappel-filtres a {
    color: #1C94B3;
    font-weight: 600;
}

/* Libelle reserve aux lecteurs d'ecran : l'icone seule ne dit rien. */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Titres de section ──────────────────────────────────────────────────── */
.section-title h2 {
    letter-spacing: -.3px;
}

.section-title p {
    color: #6b7482;
}

/* ─── Cartes d'offre ─────────────────────────────────────────────────────── */
/* Le theme laisse chaque carte prendre la hauteur de son texte : dans une
   rangee de trois, les boutons ne s'alignaient jamais.

   La regle vise la seule rangee de l'accueil. Sans cette classe, elle portait
   sur .job-list-area tout entier — conteneur que la page des offres emploie
   aussi, avec une mise en page differente : ses colonnes devenaient des
   conteneurs flex et le bloc blanc de chaque offre se dimensionnait a son
   contenu au lieu de remplir la largeur. */
.liste-offres-accueil > [class*="col-"] {
    display: flex;
}

.single-job-list-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #ecedf3;
    border-radius: 12px;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.single-job-list-card:hover {
    border-color: #d6e8ee;
    box-shadow: 0 10px 30px rgba(20, 22, 31, .1);
    transform: translateY(-3px);
}

.single-job-list-card .job-information h3 {
    overflow-wrap: anywhere;
}

/* Le bouton reste en bas, quelle que soit la longueur du titre. */
.single-job-list-card .job-btn {
    margin-top: auto;
}

/* Puces de caracteristiques : memes pastilles que sur le reste du site. */
.single-job-list-card .job-tag-list li {
    border-radius: 20px;
    font-size: 12px;
    padding: 4px 11px;
}

.single-job-list-card .location-information li {
    color: #6b7482;
    font-size: 13.5px;
}

.single-job-list-card .location-information li i {
    color: #1C94B3;
}

@media (prefers-reduced-motion: reduce) {
    .single-job-list-card,
    .single-job-list-card:hover,
    .main-banner-content-with-search .banner-search-form .search-btn,
    .main-banner-content-with-search .banner-search-form .search-btn:hover {
        transition: none;
        transform: none;
    }
}

/* ─── Cartes de candidat ─────────────────────────────────────────────────── */
.featured-candidates-area .single-candidates-card {
    border: 1px solid #ecedf3;
    border-radius: 12px;
    height: 100%;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.featured-candidates-area .single-candidates-card:hover {
    border-color: #d6e8ee;
    box-shadow: 0 8px 24px rgba(20, 22, 31, .09);
}

.featured-candidates-area .row > [class*="col-"] {
    margin-bottom: 24px;
}

/* ─── Chiffres cles ──────────────────────────────────────────────────────── */
.about-fun-fact h3 {
    color: #1C94B3;
}

.about-fun-fact p {
    color: #6b7482;
    font-size: 14px;
}

/* ─── Partenaires ────────────────────────────────────────────────────────── */
/* Six logos aux couleurs et aux poids differents tiraient l'oeil plus que le
   contenu : ils se revelent au survol. */
.partner-area .image-box img {
    filter: grayscale(1);
    opacity: .55;
    transition: filter .25s ease, opacity .25s ease;
}

.partner-area .image-box:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ─── Articles du blog ───────────────────────────────────────────────────── */
.blog-single-card {
    border-radius: 12px;
    overflow: hidden;
}

.blog-single-card .blog-image img {
    transition: transform .4s ease;
}

.blog-single-card:hover .blog-image img {
    transform: scale(1.04);
}

@media (max-width: 575px) {
    .main-banner-content-with-search .banner-search-form { padding: 14px; }
    .main-banner-content-with-search .banner-search-form .row > [class*="col-"] { margin-bottom: 8px; }
}

/* -------------------------------------------------------------------------
   Une seule carte par offre.
   .job-block-item est deja la carte : le .job-list-inner-box du theme y
   ajoutait son propre fond blanc, son ombre et son rembourrage, ce qui
   donnait une carte dans une carte, avec deux ombres superposees.
   ------------------------------------------------------------------------- */
.job-block-item .job-list-inner-box {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.job-block-item:hover .job-list-inner-box {
    box-shadow: none;
}
