/*
 * Talent Bridge — Style overrides JoberOne-like
 * Header minimaliste : wordmark à gauche, boutons Connexion/Inscription à droite
 */

/* ============================================================
   HEADER : style minimaliste JoberOne
   ============================================================ */

.header .main-header {
    padding: 12px 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.header .header-left {
    flex: 0 0 auto;
}

.header .header-right {
    margin-left: auto;
    flex: 0 0 auto;
}

/* Coins inférieurs arrondis + ombre comme JoberOne */
.header {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 24px 24px;
}

/* Logo image header — visiteurs anonymes (taille contrôlée) */
.header-logo-guest a {
    display: inline-flex;
    align-items: center;
}

.header-logo-guest img {
    max-height: 48px;
    width: auto;
    display: block;
}

/* Cacher complètement le burger mobile pour les visiteurs non connectés
   (le header n'a alors plus que le wordmark + 2 boutons) */
.block-signin-joberone ~ .burger-icon,
body:not(.account-logged-in) .burger-icon {
    display: none !important;
}

/* ============================================================
   BOUTONS JoberOne : outline + filled
   ============================================================ */

.block-signin-joberone {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Couleur de marque (bleu marine foncé JoberOne) */
.btn-joberone-outline,
.btn-joberone-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid #004266; /* bleu marine de la palette Talent */
    white-space: nowrap;
}

/* Bouton outline (Connexion) */
.btn-joberone-outline {
    background-color: #fff;
    color: #004266;
}

.btn-joberone-outline:hover {
    background-color: #f5f9fb;
    color: #004266;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 66, 102, 0.15);
}

/* Bouton filled (Inscription) */
.btn-joberone-filled {
    background-color: #004266;
    color: #fff;
}

.btn-joberone-filled:hover {
    background-color: #003049;
    border-color: #003049;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 66, 102, 0.3);
}

/* Sur petits écrans, on garde les boutons mais plus compacts */
@media (max-width: 575px) {
    .btn-joberone-outline,
    .btn-joberone-filled {
        padding: 6px 14px;
        font-size: 14px;
    }

    .block-signin-joberone {
        gap: 8px;
    }
}

/* ============================================================
   LANDING GUEST (accueil public) — style épuré JoberOne
   Couleur de marque : #004266 (bleu marine JoberOne)
   ============================================================ */

.landing-guest-page {
    background: #f5f7fa;
    color: #004266;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.landing-section-title {
    color: #004266;
    font-weight: 700;
    font-size: 28px;
    margin: 0 0 12px;
}

/* ============================================================
   HERO
   ============================================================ */

.landing-hero {
    background: #f5f7fa;
    padding: 80px 0 60px;
    text-align: center;
}

.landing-hero-title {
    color: #004266;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    text-align: center;
}

.landing-hero-subtitle {
    color: #4a5e6a;
    font-size: 16px;
    line-height: 1.55;
    max-width: 620px;
    margin: 0 auto 32px;
    text-align: center;
}

.landing-hero-actions {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 56px;
}

.btn-landing-primary,
.btn-landing-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid #004266;
    min-width: 180px;
}

.btn-landing-primary {
    background-color: #004266;
    color: #fff;
}

.btn-landing-primary:hover {
    background-color: #003049;
    border-color: #003049;
    color: #fff;
    transform: translateY(-1px);
}

.btn-landing-secondary {
    background-color: #fff;
    color: #004266;
}

.btn-landing-secondary:hover {
    background-color: #eaf0f5;
    color: #004266;
    transform: translateY(-1px);
}

/* ============================================================
   PROFESSIONS (carrousel défilant)
   ============================================================ */

.landing-professions-block {
    margin-top: 24px;
    width: 100%;
}

.landing-professions-title {
    color: #004266;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    text-align: center;
}

/* Conteneur masqué (overflow hidden) qui contient la piste défilante */
.landing-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 56px;
    /* Léger masque sur les bords pour adoucir l'apparition/disparition des chips */
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 60px,
        #000 calc(100% - 60px),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 60px,
        #000 calc(100% - 60px),
        transparent 100%
    );
}

/* La piste qui se déplace : doublée par le Blade, on translate de -50% à 0 */
.landing-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    will-change: transform;
    animation-name: landing-marquee-scroll;
    animation-duration: var(--marquee-duration, 40s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes landing-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        /* La distance correspond à la moitié de la largeur totale (1 série) */
        transform: translateX(var(--marquee-distance, -50%));
    }
}

/* Chip non cliquable (juste visuel) */
.landing-chip-static {
    display: inline-block;
    padding: 9px 20px;
    border: 1px solid #004266;
    border-radius: 999px;
    background: #fff;
    color: #004266;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.landing-professions-link {
    margin-top: 32px;
    text-align: center;
}

.landing-link-underline {
    color: #004266;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.landing-link-underline:hover {
    color: #003049;
}

/* ============================================================
   FONCTIONNALITÉS PRINCIPALES (cartes bordées 3×2)
   ============================================================ */

.landing-features {
    background: #fff;
    padding: 80px 0 80px;
    border-top: 1px solid #eaeef2;
}

.landing-features-intro {
    color: #6a7785;
    font-size: 15px;
    max-width: 720px;
    margin: 0 auto 48px;
    line-height: 1.5;
}

.landing-features-grid {
    text-align: left;
}

/* Carte avec bordure fine et coins arrondis */
.landing-feature-card {
    padding: 28px 28px;
    border: 1px solid #e5e9ee;
    border-radius: 12px;
    background: #fff;
    height: 100%;
    transition: all 0.2s ease;
}

.landing-feature-card:hover {
    border-color: #cfd6de;
    box-shadow: 0 4px 14px rgba(0, 66, 102, 0.06);
}

.landing-feature-title {
    color: #004266;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

.landing-feature-text {
    color: #6a7785;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .landing-hero {
        padding: 48px 16px 40px;
    }
    .landing-hero-title {
        font-size: 32px;
    }
    .landing-hero-subtitle {
        font-size: 15px;
    }
    .btn-landing-primary,
    .btn-landing-secondary {
        min-width: 160px;
        padding: 11px 20px;
    }
    .landing-section-title {
        font-size: 22px;
    }
    .landing-features {
        padding: 56px 16px;
    }
}

/* ============================================================
   FOOTER minimaliste (visiteurs non connectés)
   ============================================================ */

.landing-footer {
    background: #fff;
    border-top: 1px solid #eaeef2;
    padding: 48px 0 32px;
    margin-top: 0;
}

.landing-footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 32px;
}

.landing-footer-brand {
    flex: 1 1 320px;
    max-width: 360px;
}

.landing-footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.landing-footer-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.landing-footer-tagline {
    color: #6a7785;
    font-size: 14px;
    line-height: 1.55;
    margin: 12px 0 0;
}

.landing-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
}

.landing-footer-link {
    color: #4a5e6a;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.18s ease;
}

.landing-footer-link:hover {
    color: #004266;
}

.landing-footer-bottom {
    border-top: 1px solid #eaeef2;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
}

.landing-footer-copyright {
    color: #6a7785;
    font-size: 13px;
}

.landing-footer-lang {
    /* Le switcher est placé à droite du copyright sur desktop, en dessous sur mobile */
}

/* ============================================================
   SWITCHER DE LANGUE (dynamique : toutes locales activées)
   ============================================================ */

.talent-lang-switcher {
    position: relative;
    display: inline-block;
}

.talent-lang-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e5e9ee;
    border-radius: 8px;
    background: #fff;
    color: #004266;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
    cursor: pointer;
    line-height: 1;
}

.talent-lang-switcher-toggle:hover,
.talent-lang-switcher-toggle:focus {
    border-color: #004266;
    color: #004266;
    text-decoration: none;
    background: #f5f7fa;
}

.talent-lang-switcher-toggle .flag,
.talent-lang-switcher-toggle svg {
    height: 14px;
    width: auto;
    flex: 0 0 auto;
}

.talent-lang-switcher-code {
    letter-spacing: 0.02em;
}

.talent-lang-switcher-caret {
    font-size: 12px;
    line-height: 1;
    transition: transform 0.18s ease;
}

.talent-lang-switcher.show .talent-lang-switcher-caret {
    transform: rotate(180deg);
}

.talent-lang-switcher-menu {
    min-width: 180px;
    padding: 6px 0;
    border: 1px solid #e5e9ee;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 66, 102, 0.10);
    background: #fff;
    margin-bottom: 6px;
}

.talent-lang-switcher-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: #1a2733;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.talent-lang-switcher-item:hover,
.talent-lang-switcher-item:focus {
    background: #f5f7fa;
    color: #004266;
}

.talent-lang-switcher-item .flag,
.talent-lang-switcher-item svg {
    height: 14px;
    width: auto;
    flex: 0 0 auto;
}

.talent-lang-switcher-name {
    flex: 1 1 auto;
    white-space: nowrap;
}

/* Sur mobile, le switcher se place sous le copyright */
@media (max-width: 575px) {
    .landing-footer-bottom {
        flex-direction: column;
        gap: 14px;
    }
}

/* ============================================================
   PAGE PROFESSIONS (style JoberOne)
   ============================================================ */

.talent-professions-page {
    background: #f5f7fa;
    color: #004266;
    padding-bottom: 80px;
}

/* En-tête : titre + sous-titre + bouton retour */
.talent-professions-header {
    background: #fff;
    border-bottom: 1px solid #eaeef2;
    padding: 36px 0;
}

.talent-professions-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.talent-professions-title {
    color: #004266;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 6px;
}

.talent-professions-subtitle {
    color: #6a7785;
    font-size: 15px;
    margin: 0;
}

.talent-professions-back {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid #c5d1dc;
    border-radius: 8px;
    background: #fff;
    color: #004266;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.talent-professions-back:hover {
    border-color: #004266;
    background: #f5f7fa;
    color: #004266;
}

/* Section filtre */
.talent-professions-filter {
    margin-top: 36px;
}

.talent-professions-filter-label {
    color: #004266;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
}

.talent-professions-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.talent-prof-chip {
    padding: 8px 18px;
    border: 1px solid #004266;
    border-radius: 999px;
    background: #fff;
    color: #004266;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
    line-height: 1.4;
}

.talent-prof-chip:hover {
    background: #eaf0f5;
}

.talent-prof-chip.is-active {
    background: #004266;
    color: #fff;
}

/* 3 compteurs */
.talent-professions-counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 40px;
}

.talent-prof-counter {
    background: #fff;
    border: 1px solid #eaeef2;
    border-radius: 10px;
    padding: 18px 22px;
}

.talent-prof-counter-num {
    color: #004266;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.talent-prof-counter-label {
    color: #6a7785;
    font-size: 13px;
    margin-top: 4px;
}

/* Sections par secteur */
.talent-professions-sections {
    margin-top: 8px;
}

.talent-prof-section {
    margin-bottom: 36px;
}

.talent-prof-section-title {
    color: #004266;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 18px;
}

/* Carte profession */
.talent-prof-card {
    display: block;
    background: #fff;
    border: 1px solid #eaeef2;
    border-radius: 10px;
    padding: 18px 20px;
    color: #004266;
    text-decoration: none;
    transition: all 0.18s ease;
    height: 100%;
}

.talent-prof-card:hover {
    border-color: #004266;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 66, 102, 0.10);
    color: #004266;
    text-decoration: none;
}

.talent-prof-card-title {
    color: #004266;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.talent-prof-card-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #eaf0f5;
    color: #4a5e6a;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.talent-prof-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eaeef2;
    font-size: 13px;
}

.talent-prof-card-jobs {
    color: #6a7785;
}

.talent-prof-card-jobs strong {
    color: #004266;
    font-weight: 700;
}

.talent-prof-card-link {
    color: #004266;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .talent-professions-header-row {
        flex-direction: column;
    }
    .talent-professions-title {
        font-size: 24px;
    }
    .talent-professions-counters {
        grid-template-columns: 1fr;
    }
    .talent-prof-section-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .landing-footer {
        padding: 40px 16px 24px;
    }
    .landing-footer-top {
        flex-direction: column;
        gap: 24px;
    }
    .landing-footer-links {
        gap: 16px;
    }
}


/* ============================================================
   Neutralisation du text-transform: capitalize hérité de Jobbox.
   Garde la classe utilitaire .capitalize (usage explicite) mais
   restaure une casse normale sur les boutons et menus mobiles.
   ============================================================ */
.btn-apply-now,
.mobile-header-content-area .mobile-menu-wrap nav .mobile-menu li a,
.mobile-account ul li a {
    text-transform: none;
}
