/* ============================================================
   CARRIÈRE — page publique /carriere
   Réutilise le tableau d'offres de css/jobs.css (classes .jb-*)
   en l'adaptant aux couleurs du site public.
   ============================================================ */
.cr-wrap { max-width: 1320px; margin: 0 auto; padding: 0 2rem; }
.cr-kicker { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .75rem; }

/* Tableau d'offres : jetons du site public */
.cr-board .jb {
    --jb-card: var(--surface-1);
    --jb-ink: var(--tx-1);
    --jb-line: var(--line-1);
    --jb-soft: var(--surface-inset);
    --jb-soft-2: color-mix(in srgb, var(--tx-1) 7%, transparent);
}
.cr-board { padding: 0 0 4.5rem; scroll-margin-top: 6rem; }
.cr-board .jb-detail { top: 6.5rem; max-height: calc(100vh - 8rem); }

/* En-tête */
.cr-hero { padding: 9rem 0 2.5rem; color: var(--tx-1); }
.cr-hero h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.cr-hero p { max-width: 640px; margin-top: 1rem; font-size: 1.08rem; line-height: 1.6; }
.cr-stats { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-1); }
.cr-stats div { display: flex; align-items: baseline; gap: .45rem; padding: .6rem 1.05rem; border-radius: 12px; border: 1px solid var(--line-1); background: var(--surface-1); }
.cr-stats strong { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; }
.cr-stats span { font-size: .84rem; font-weight: 500; }

/* Bloc « Postuler » selon le visiteur */
.cr-apply-guest { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.1rem; }
.cr-link { font-size: .88rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--tx-1); }
.cr-note { font-size: .88rem; padding: .75rem .9rem; border-radius: 10px; background: var(--surface-inset); color: var(--tx-1); }
a.jb-apply-btn { text-decoration: none; }
.jb-sticky-cta .cr-apply-guest { flex-direction: column; align-items: stretch; text-align: center; }

/* Comment postuler */
.cr-how { padding: 4.5rem 0; background: var(--section-alt-bg); border-block: 1px solid var(--line-1); }
.cr-how h2, .cr-cta h3 { font-family: var(--font-display); color: var(--tx-1); }
.cr-how h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 2rem; }
.cr-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: none; }
.cr-steps li { position: relative; padding: 1.5rem 1.35rem; border-radius: 18px; background: var(--surface-1); border: 1px solid var(--line-1); color: var(--tx-1); }
.cr-steps li span { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: .9rem; }
.cr-steps li strong { display: block; font-size: 1.02rem; margin-bottom: .4rem; }
.cr-steps li p { font-size: .9rem; line-height: 1.55; }

/* Appels à l'action */
.cr-cta { padding: 4.5rem 0 5rem; }
.cr-cta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.cr-cta-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; padding: 2.2rem 2rem; background: #f2f2f2; color: #111; transition: transform .25s ease, box-shadow .25s ease; }
.cr-cta-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -36px rgba(0,0,0,.55); }
.cr-cta-card h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 500; line-height: 1.2; color: inherit; margin-bottom: .75rem; }
.cr-cta-card p { font-size: 1rem; line-height: 1.6; max-width: 520px; }
.cr-cta-card.is-dark { background: radial-gradient(120% 120% at 100% 0%, #3a3a3a 0%, #0d0d0d 65%); color: #fff; }
.cr-cta-card.is-dark .nwf-more { color: #fff; }
:root[data-theme="dark"] .cr-cta-card:not(.is-dark) { background: #1b1b1b; color: #fff; }

@media (max-width: 960px) {
    .cr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cr-cta-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
    .cr-wrap { padding: 0 1.1rem; }
    .cr-hero { padding: 7rem 0 1.75rem; }
    .cr-steps { grid-template-columns: 1fr; }
    .cr-cta-card { min-height: 260px; padding: 1.6rem 1.35rem; }
}

/* Pourquoi nous rejoindre + valeurs */
.cr-why { padding: 5rem 0 5.5rem; color: var(--tx-1); }
.cr-why-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; align-items: start; margin-bottom: 4rem; }
.cr-why-label { font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; padding-top: 1rem; border-top: 3px solid var(--tx-1); }
.cr-why h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; margin-bottom: 1.1rem; color: var(--tx-1); }
.cr-why-grid p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.7; max-width: 820px; }
.cr-values-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 1.5rem; color: var(--tx-1); }
.cr-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-1); }
.cr-value { padding: 2rem 1.75rem 0 0; }
.cr-value + .cr-value { padding-left: 1.75rem; border-left: 1px solid var(--line-1); }
.cr-value-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.cr-value-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; opacity: .15; }
.cr-value-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #000; color: #fff; }
.cr-value-icon svg, .cr-value-icon i { width: 20px; height: 20px; }
:root[data-theme="dark"] .cr-value-icon { background: #fff; color: #000; }
.cr-value h4 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem; color: var(--tx-1); }
.cr-value p { font-size: .97rem; line-height: 1.6; }
@media (max-width: 960px) {
    .cr-why-grid { grid-template-columns: 1fr; gap: 1.4rem; margin-bottom: 3rem; }
    .cr-why-label { justify-self: start; }
    .cr-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cr-value:nth-child(3) { padding-left: 0; border-left: 0; }
    .cr-value:nth-child(n+3) { border-top: 1px solid var(--line-1); margin-top: 2rem; }
}
@media (max-width: 640px) {
    .cr-why { padding: 3.5rem 0 4rem; }
    .cr-values { grid-template-columns: 1fr; }
    .cr-value, .cr-value + .cr-value { padding: 1.75rem 0; padding-left: 0; border-left: 0; margin-top: 0; }
    .cr-value + .cr-value { border-top: 1px solid var(--line-1); }
}

/* Cloche des offres */
.cr-board .jb[hidden] { display: none !important; }
.cr-bell-bar { display: flex; align-items: center; gap: 1.4rem; padding: 2.75rem 0 2.25rem; color: var(--tx-1); }
.cr-bell { position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: #000; color: #fff; box-shadow: 0 18px 36px -22px rgba(0,0,0,.7); transition: transform .2s ease; }
.cr-bell:hover { transform: scale(1.05); }
.cr-bell:focus-visible { outline: 3px solid #0468b1; outline-offset: 4px; }
:root[data-theme="dark"] .cr-bell { background: #fff; color: #000; }
.cr-bell-icon svg, .cr-bell-icon i { width: 32px; height: 32px; }
.cr-bell.has-offers .cr-bell-icon { display: grid; transform-origin: 50% 8%; animation: crRing 2.4s ease-in-out infinite; }
.cr-bell-count { position: absolute; top: -4px; right: -4px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: #d4202c; color: #fff; font-size: .95rem; font-weight: 800; border: 3px solid var(--page-bg-solid, #fff); }
.cr-bell.has-offers .cr-bell-count { animation: crBlink 1.2s ease-in-out infinite; }
.cr-bell:not(.has-offers) .cr-bell-count { background: #555; }
.cr-bell[aria-expanded="true"] .cr-bell-icon, .cr-bell[aria-expanded="true"] .cr-bell-count { animation: none; }
.cr-bell-text strong { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; line-height: 1.2; }
.cr-bell-text span { display: block; margin-top: .3rem; font-size: .98rem; }
@keyframes crBlink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.88); } }
@keyframes crRing { 0%, 55%, 100% { transform: rotate(0); } 60% { transform: rotate(16deg); } 66% { transform: rotate(-14deg); } 72% { transform: rotate(10deg); } 78% { transform: rotate(-6deg); } 84% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .cr-bell .cr-bell-icon, .cr-bell .cr-bell-count { animation: none !important; } }
@media (max-width: 640px) { .cr-bell { width: 64px; height: 64px; } .cr-bell-icon svg { width: 27px; height: 27px; } .cr-bell-bar { gap: 1.1rem; } }
.cr-board:has(.jb[hidden]) { padding-bottom: 0; }
.cr-board:has(.jb[hidden]) + .cr-why { padding-top: 3rem; border-top: 1px solid var(--line-1); }
/* Cloche dans l'en-tête */
.cr-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: center; }
.cr-bell-hero { flex-direction: column; text-align: center; gap: 1rem; padding: 1.75rem 2rem; max-width: 280px; border: 1px solid var(--line-1); border-radius: 22px; background: var(--surface-1); }
.cr-bell-hero .cr-bell { width: 92px; height: 92px; }
.cr-bell-hero .cr-bell-icon svg { width: 38px; height: 38px; }
@media (max-width: 760px) { .cr-hero-grid { grid-template-columns: 1fr; gap: 1.75rem; } .cr-bell-hero { flex-direction: row; text-align: left; max-width: none; padding: 1.1rem 1.25rem; } .cr-bell-hero .cr-bell { width: 64px; height: 64px; } .cr-bell-hero .cr-bell-icon svg { width: 27px; height: 27px; } }
.cr-hero-grid .cr-stats { border-bottom: 0; padding-bottom: 0; }
/* Page /offres */
.of-hero { padding-bottom: 2rem; }
.of-crumbs { margin-bottom: 1.25rem; }
.of-crumbs a { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--tx-1); }
.of-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.of-crumbs svg { width: 16px; height: 16px; }
a.cr-bell { text-decoration: none; }
