/* ==========================================================================
   BEXBID — custom additions
   1. Lead conveyor ("Built for buyers" section)
   2. Publisher section layout
   3. Hairline figure theming (hub)
   Loaded after the theme (css/style.css). All custom classes are prefixed
   "bxb-" so nothing collides with the theme or Bootstrap.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hairline figure container — technical-drawing SVG (5:4), pointer-reactive.
   --hairline-plate MUST match the section background or a rectangle shows.
   -------------------------------------------------------------------------- */
.bxb-fig {
    --hairline-plate: #ffffff;
    --hairline-hi: #0a4d1f;
    --hairline-edge: #aeb7c4;
    --hairline-mid: #d5dbe3;
    --hairline-lo: #e8ecf2;
    --hairline-stroke: 1;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Lead conveyor — services section (#services)
   Cards ride the belt left to right; the one that reaches the end drops
   into the "BUYER" slot. Pure CSS, no JS.
   -------------------------------------------------------------------------- */
.bxb-belt {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 190px;
    margin: 40px auto 4px;
}

/* rail */
.bxb-belt-line {
    position: absolute;
    left: 3%;
    width: 71%;
    top: 96px;
    height: 3px;
    border-radius: 3px;
    background: #e5e9ef;
}

/* moving dashes = belt motion */
.bxb-belt-dash {
    position: absolute;
    left: 3%;
    width: 71%;
    top: 96px;
    height: 3px;
    background: repeating-linear-gradient(90deg, #aeb7c4 0 10px, transparent 10px 22px);
    animation: bxb-belt-scroll .9s linear infinite;
}
@keyframes bxb-belt-scroll {
    from { background-position: 0 0; }
    to   { background-position: -22px 0; }
}

/* end pulleys */
.bxb-roller {
    position: absolute;
    top: 90px;
    width: 15px;
    height: 15px;
    box-sizing: border-box;
    border: 3px solid #d5dbe3;
    border-radius: 50%;
    background: #fff;
}
.bxb-roller.left  { left: calc(3% - 7px); }
.bxb-roller.right { left: calc(74% - 8px); }

/* buyer slot */
.bxb-slot {
    position: absolute;
    right: 8%;
    top: 64px;
    width: 66px;
    height: 62px;
    border: 1.5px dashed #b9c3d0;
    border-radius: 9px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.6;
    color: #8a94a6;
    text-transform: uppercase;
}

/* lead cards */
.bxb-lead {
    position: absolute;
    top: 74px;
    left: 6%;
    width: 48px;
    height: 34px;
    border: 1.5px solid #0a4d1f;
    border-radius: 7px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #0a4d1f;
    text-transform: uppercase;
    box-shadow: 0 2px 0 rgba(10, 77, 31, .08);
    animation: bxb-travel 6s linear infinite;
}
.bxb-lead.bxb-l2 { animation-delay: 2s; }
.bxb-lead.bxb-l3 { animation-delay: 4s; }

@keyframes bxb-travel {
    0%   { left: 6%;  transform: translateY(0) rotate(0deg);    opacity: 1; }
    62%  { left: 70%; transform: translateY(0) rotate(0deg);    opacity: 1; }
    72%  { left: 74%; transform: translateY(28px) rotate(8deg); opacity: 1; }
    78%  { left: 74%; transform: translateY(28px) rotate(8deg); opacity: 0; }
    79%  { left: 6%;  transform: translateY(0) rotate(0deg);    opacity: 0; }
    86%  { left: 6%;  transform: translateY(0) rotate(0deg);    opacity: 0; }
    100% { left: 6%;  transform: translateY(0) rotate(0deg);    opacity: 1; }
}

/* caption */
.bxb-belt-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    color: #8a94a6;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Publisher section (#publishers)
   -------------------------------------------------------------------------- */
.bxb-publishers {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
    padding: 48px 50px 56px;
}
.bxb-publishers-fig {
    display: flex;
    justify-content: center;
}
.bxb-publishers-fig .bxb-fig {
    max-width: 460px;
}
.bxb-checks {
    list-style: none;
    margin: 24px 0 30px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 26px;
}
.bxb-checks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: #4b5565;
}
.bxb-checks img {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 2px;   /* centre la coche sur la 1re ligne quand le texte passe sur 2 lignes */
}
.bxb-publishers-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* --------------------------------------------------------------------------
   Hero — titre sur UNE ligne de chaque côté (WE NEVER FOLLOW. / WE SET STANDARDS.)
   Au-delà de 1440 px le conteneur est plafonné à 1408 px : le panneau fait
   (1408 - 303) / 2 = 552 px. Plafond 54 px => le texte occupe ~83 % du panneau.
   Avec l'ancien 64 px il montait à 99 % (le titre touchait le logo).
   -------------------------------------------------------------------------- */
#hero .section-title { font-size: clamp(28px, 3.6vw, 54px) !important; }

/* --------------------------------------------------------------------------
   WHO WE ARE (#about) — scène Settle : figure + logo flottant + fil + légende
   Remplace la photo stock. Largeur non circulaire (voir .bxb-fig-about).
   -------------------------------------------------------------------------- */
.bxb-scene-about {
    position: relative;
    width: min(520px, 42vw);
    max-width: 100%;
    margin: 0 auto;
}
/* la colonne droite prend l'espace restant : la scene se centre dedans,
   loin de la colonne d'ecriture (plus de vide a droite) */
#about .about-bottom-content .right-area {
    flex: 1 1 0;
    min-width: 0;
}
.bxb-scene-about .bxb-fig-about {
    width: 100%;
    aspect-ratio: 5 / 4;
    position: relative;
    z-index: 1;
}
/* le fil pointillé : du logo flottant jusqu'à la tuile centrale, au-dessus des tuiles */
.bxb-thread {
    position: absolute;
    left: 50%;
    top: 27%;
    height: 19%;
    border-left: 1px dashed #aeb7c4;
    z-index: 2;
    pointer-events: none;
}
/* le logo : la marque tracée au trait, construction 3D, flottant au-dessus de la scène */
.bxb-float {
    position: absolute;
    left: 50%;
    top: 2%;
    width: 25%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
    will-change: transform;                 /* calque propre : fluide dans Firefox aussi */
    animation: bxb-hover 3.8s ease-in-out infinite;
}
.bxb-float svg { display: block; width: 100%; height: auto; }
@keyframes bxb-hover {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, -9px); }
}
/* la légende sous la scène */
.bxb-caption-about {
    margin: 16px 0 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8a94a6;
}
@media (prefers-reduced-motion: reduce) {
    .bxb-float { animation: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .bxb-publishers {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 36px 28px 46px;
    }
    .bxb-publishers-fig { order: 2; }
    .bxb-publishers-fig .bxb-fig { max-width: 380px; }
}
@media (max-width: 575px) {
    .bxb-belt { height: 170px; margin-top: 28px; }
    .bxb-lead { width: 40px; height: 30px; top: 76px; font-size: 7px; }
    .bxb-slot { width: 56px; height: 54px; top: 66px; font-size: 8px; }
    .bxb-belt-caption { font-size: 9px; letter-spacing: .1em; }
    .bxb-checks { grid-template-columns: 1fr; gap: 10px; }
}

/* --------------------------------------------------------------------------
   Offers section (#offers) — titre centré, animation "enchère en direct"
   en dessous sur une partie blanche sans bordure, puis les 3 cartes.
   Canvas activé par JS (classe bxb-anim-on) ; sans JS, la zone reste masquée.
   Pause automatique hors viewport (JS).
   -------------------------------------------------------------------------- */
.bxb-auction-zone {
    display: none;
    width: 100%;
    margin: 40px 0 0;
    padding: 30px 0 14px;
    background: #ffffff;
    border-top: 1px solid rgba(3, 7, 18, .1);
    border-radius: 0;
}
.bxb-auction-zone.bxb-anim-on { display: block; }
.bxb-auction-zone canvas {
    display: block;
    width: 400px;
    max-width: 100%;
    margin: 0 auto;
}
.bxb-auction-caption {
    margin: 10px 0 2px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8a94a6;
}
@media (max-width: 575px) {
    .bxb-auction-zone {
        margin: 30px 0 0;
        padding: 18px 0 10px;
    }
    .bxb-auction-zone canvas { width: 100%; }
}

/* --------------------------------------------------------------------------
   Accessibility — respect prefers-reduced-motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .bxb-lead,
    .bxb-belt-dash { animation: none; }
    .bxb-lead        { left: 40%; }
    .bxb-lead.bxb-l2 { left: 20%; }
    .bxb-lead.bxb-l3 { display: none; }
    .wpr-brand-area .brand-inner { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Contact — message de retour du formulaire
   -------------------------------------------------------------------------- */
#contact #form-messages {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #00D163;
}
#contact #form-messages:empty { margin-top: 0; }
#contact #form-messages[data-state="ok"]  { color: #00D163; }
#contact #form-messages[data-state="err"] { color: #FF6B6B; }

/* Honeypot : invisible pour l'humain, present dans le DOM pour les robots. */
#contact .bx-hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Contact — colonne gauche (titre + ligne d'explication)
   Remplace les anciens liens email/Telegram (qui etaient en 40 px).
   -------------------------------------------------------------------------- */
#contact .bxb-contact-pitch {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
}
#contact .bxb-contact-pitch .bxb-contact-line {
    font-family: var(--font-secondary);
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #F9FAFB;
    margin: 0;
}
#contact .bxb-contact-pitch .bxb-contact-note {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(249, 250, 251, 0.68);
    margin: 0;
    max-width: 36ch;
}

/* --------------------------------------------------------------------------
   Careers — page carriere (etat vide + modele d'offre)
   -------------------------------------------------------------------------- */
.bxb-careers-area {
    padding: 150px 0 90px;
}
.bxb-careers-inner {
    max-width: 920px;
    margin: 0 auto;
}
.bxb-careers-head {
    margin-bottom: 52px;
}
.bxb-careers-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #00A34D;
    background: rgba(0, 209, 99, .10);
    border: 1px solid rgba(0, 209, 99, .22);
    border-radius: 999px;
    padding: 7px 14px;
    margin-bottom: 24px;
}
.bxb-careers-title {
    font-family: var(--font-secondary);
    font-size: clamp(34px, 4.6vw, 62px);
    line-height: 1.04;
    letter-spacing: -.03em;
    font-weight: 600;
    color: #030712;
    margin: 0 0 20px;
}
.bxb-careers-intro {
    font-size: 18px;
    line-height: 1.65;
    color: #4b5565;
    max-width: 58ch;
    margin: 0;
}
.bxb-careers-empty {
    background: #ffffff;
    border: 1px solid #E5E9EF;
    border-radius: 16px;
    padding: 56px 48px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15, 24, 38, .04);
}
.bxb-careers-empty-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8a94a6;
    background: #f1f4f8;
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 20px;
}
.bxb-careers-empty h2 {
    font-family: var(--font-secondary);
    font-size: clamp(24px, 2.6vw, 32px);
    letter-spacing: -.02em;
    font-weight: 600;
    color: #030712;
    margin: 0 0 12px;
}
.bxb-careers-empty p {
    font-size: 16px;
    line-height: 1.65;
    color: #4b5565;
    max-width: 52ch;
    margin: 0 auto 28px;
}
.bxb-jobs {
    display: grid;
    gap: 16px;
}
.bxb-job {
    background: #ffffff;
    border: 1px solid #E5E9EF;
    border-radius: 14px;
    padding: 28px 32px;
}
.bxb-job-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.bxb-job-title {
    font-family: var(--font-secondary);
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: #030712;
}
.bxb-job-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #00A34D;
    background: rgba(0, 209, 99, .10);
    border-radius: 999px;
    padding: 5px 11px;
    white-space: nowrap;
}
.bxb-job-meta {
    font-size: 14px;
    color: #8a94a6;
    margin: 6px 0 10px;
}
.bxb-job-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5565;
    margin: 0 0 18px;
}
.bxb-job-cta {
    font-weight: 600;
    color: #00A34D;
    text-decoration: none;
}
.bxb-job-cta:hover { text-decoration: underline; }

@media (max-width: 767px) {
    .bxb-careers-area { padding: 120px 0 70px; }
    .bxb-careers-empty { padding: 40px 24px; }
}
