/* Jida Événements : barre du haut et bandeau des pages catégories */

/* L'ancienne barre du thème (Goya « campaign bar ») n'est plus générée : le plugin la remplace à la source. */
/* Filet de sécurité seulement, si un thème l'affichait encore par un autre chemin. */
body:has(.jev-top) .campaign-bar, body:has(.jev-top) .campaign-bar-2 { display: none !important; }

.jev-top { z-index: 602; height: 38px; display: flex; align-items: center; overflow: hidden; background: var(--jev-bg); color: var(--jev-fg); text-decoration: none !important; }
.jev-top[hidden] { display: none !important; }
/* Les styles de la barre de Goya (classe et-global-campaign, gardée pour placer l'en-tête) sont neutralisés. */
.jev-top.et-global-campaign { background: var(--jev-bg); color: var(--jev-fg); min-height: 0; height: 38px; padding: 0; margin: 0; font-size: inherit; text-align: left; width: 100%; }
.jev-top--info.et-global-campaign { justify-content: center; }
@media (max-width: 767px) { .jev-top.et-global-campaign { height: 36px; } }

/* La barre reste visible au défilement (0.1.4).
   Goya donne à la page (body) la hauteur de l'écran : une barre « sticky » décrocherait après un écran.
   La barre est donc fixe en haut de l'écran, et une cale de même hauteur (.jev-space) garde sa place
   dans la page, pour que tout reste placé comme avant. Quand on défile, Goya fixe l'en-tête en haut
   (classe header_on_scroll) : on le pose juste sous la barre.
   --jev-ab = barre d'administration WordPress (fixe : 32 px sur ordinateur, 46 px jusqu'à 782 px). */
body { --jev-h: 38px; --jev-ab: 0px; }
body.admin-bar { --jev-ab: 32px; }
@media (max-width: 782px) { body.admin-bar { --jev-ab: 46px; } }
@media (max-width: 767px) { body { --jev-h: 36px; } }
.jev-space { display: block; height: var(--jev-h); }
.jev-top, .jev-top.et-global-campaign { position: fixed; left: 0; right: 0; top: var(--jev-ab); }
body.has-campaign-bar.header-sticky.header_on_scroll:not(.megamenu-active) .header { top: calc(var(--jev-ab) + var(--jev-h)) !important; }
/* Sous 600 px, la barre d'administration défile avec la page : front.js ajuste --jev-ab au défilement
   (la barre Jida descend sous la barre noire en haut de page, puis remonte tout en haut). */

/* Pastille d'aperçu (administrateurs seulement) */
.jev-preview { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); z-index: 2; font: 800 11px/1 -apple-system, 'Segoe UI', Roboto, sans-serif; letter-spacing: .3px; text-transform: uppercase; background: #fff; color: #9a3412; border: 1.5px dashed #9a3412; border-radius: 99px; padding: 4px 9px; white-space: nowrap; pointer-events: none; }
@media (max-width: 767px) { .jev-preview { left: 6px; font-size: 9.5px; padding: 3px 6px; } }
.jev-preview--band { left: auto; right: 16px; top: -11px; transform: none; }
@media (max-width: 767px) { .jev-preview--band { left: auto; right: 12px; } }

/* Repères (temps normal) */
.jev-top--info { justify-content: center; }
.jev-msgs { display: flex; align-items: center; justify-content: center; gap: 34px; }
.jev-msg { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; letter-spacing: .1px; white-space: nowrap; color: var(--jev-fg) !important; text-decoration: none !important; line-height: 1; }
.jev-msg svg { color: var(--jev-ic); flex-shrink: 0; }
.jev-msg b, .jev-msg strong { color: #fff; font-weight: 800; }
a.jev-msg:hover span { text-decoration: underline; text-underline-offset: 3px; }
.jev-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; flex-shrink: 0; }
.jev-dots { display: none; }

/* Ruban de l'événement */
.jev-top--event { justify-content: flex-start; }
.jev-track { display: flex; width: max-content; animation: jev-defile 40s linear infinite; }
.jev-top--event:hover .jev-track, .jev-top--event:focus-visible .jev-track { animation-play-state: paused; }
.jev-seq { display: flex; align-items: center; flex-shrink: 0; }
.jev-it { font-family: 'Archivo Black', 'Arial Black', sans-serif; font-size: 13.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--jev-fg); padding: 0 18px; white-space: nowrap; }
.jev-star { color: var(--jev-star); font-size: 12px; }
@keyframes jev-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .jev-track { animation: none; }
}

@media (max-width: 767px) {
  .jev-top { height: 36px; }
  .jev-msgs { gap: 0; position: relative; width: 100%; height: 100%; }
  .jev-sep { display: none; }
  .jev-msgs .jev-msg { position: absolute; inset: 0; justify-content: center; font-size: 13px; padding: 0 34px; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
  .jev-msgs .jev-msg:first-child, .jev-msgs .jev-msg.is-on { opacity: 1; visibility: visible; }
  .jev-msgs.is-rotating .jev-msg:first-child:not(.is-on) { opacity: 0; visibility: hidden; }
  .jev-dots { display: flex; gap: 4px; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
  .jev-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; }
  .jev-dots i.is-on { opacity: 1; }
  .jev-it { font-size: 12.5px; padding: 0 12px; }
}

/* Bandeau en haut des pages boutique et catégories */
.jev-band { background: #F6EEE2; padding-top: 22px; }
.jev-box { position: relative; background: var(--jev-bbg); color: var(--jev-bfg); border-radius: 18px; padding: 18px 22px 18px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.jev-l { display: flex; align-items: center; gap: 16px; min-width: 0; }
.jev-pill { font-family: 'Archivo Black', 'Arial Black', sans-serif; font-size: 13px; letter-spacing: .8px; text-transform: uppercase; background: var(--jev-acc); color: #14261C; padding: 5px 11px; border-radius: 7px; transform: rotate(-2deg); white-space: nowrap; flex-shrink: 0; }
.jev-t { font-family: 'Archivo Black', 'Arial Black', sans-serif; font-size: 21px; line-height: 1.15; color: var(--jev-bfg); text-align: left; margin: 0; }
.jev-s { font-size: 14px; font-weight: 600; margin-top: 3px; color: var(--jev-bfg); opacity: .85; }
.jev-r { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.jev-code { font-family: 'Archivo Black', 'Arial Black', sans-serif; font-size: 17px; letter-spacing: 1.5px; color: var(--jev-acc); border: 2px dashed var(--jev-acc); border-radius: 10px; padding: 9px 14px; user-select: all; }
.jev-btn { font-weight: 800; font-size: 15px; background: var(--jev-acc); color: #14261C !important; border-radius: 99px; padding: 12px 20px; text-decoration: none !important; white-space: nowrap; line-height: 1.2; }
.jev-btn:hover { filter: brightness(1.06); }
.jev-btn--ok { background: transparent; color: var(--jev-acc) !important; border: 2px solid var(--jev-acc); padding: 10px 18px; }

@media (max-width: 767px) {
  .jev-band { padding-top: 14px; }
  .jev-box { flex-direction: column; align-items: stretch; padding: 16px; gap: 14px; }
  .jev-l { flex-direction: column; align-items: flex-start; gap: 10px; }
  .jev-t { font-size: 19px; }
  .jev-r { justify-content: space-between; }
  .jev-code { font-size: 15px; padding: 8px 12px; }
  .jev-btn { padding: 11px 16px; font-size: 14px; }
}

/* Encart sur la fiche produit (sous le titre, Jida Product Pilot)
   Ordinateur : maquette O1 (étiquette à gauche, titre puis compte à rebours à droite). Téléphone : maquette A1. */
.jev-pdp { position: relative; background: var(--jev-bbg); color: var(--jev-bfg); border-radius: 16px; padding: 18px 20px; margin: 16px 0 22px; text-align: left; }
.jev-pdp-head { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "pill t" "pill cd"; column-gap: 14px; align-items: center; }
.jev-pdp-head .jev-pill { grid-area: pill; justify-self: start; font-size: 12px; padding: 4px 9px; }
.jev-pdp-t { grid-area: t; font-family: 'Archivo Black', 'Arial Black', sans-serif; font-size: 21px; line-height: 1.15; color: var(--jev-bfg); text-align: left; margin: 0; }
.jev-pdp-head .jev-cd { grid-area: cd; margin-top: 8px; }
.jev-pdp-r { display: flex; align-items: stretch; gap: 10px; margin-top: 14px; }
.jev-pdp .jev-code { flex-shrink: 0; display: flex; align-items: center; font-size: 15px; letter-spacing: 1.4px; padding: 9px 14px; border-radius: 10px; }
.jev-pdp .jev-btn { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 15px; padding: 12px 10px; border-radius: 10px; }
.jev-pdp .jev-btn--ok { border-radius: 10px; padding: 10px; }
.jev-pdp .jev-preview--band { top: -11px; }
.jev-pdp-stock { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--jev-bfg); }
.jev-pdp-stock span { color: rgba(255, 255, 255, .82); }
.jev-pdp-stock b, .jev-pdp-stock strong { font-weight: 800; color: var(--jev-bfg); }
.jev-pdp-stock svg { color: var(--jev-acc); flex-shrink: 0; }
@media (max-width: 767px) {
  .jev-pdp { padding: 14px; margin: 12px 0 16px; }
  .jev-pdp-head { grid-template-columns: auto 1fr; grid-template-areas: "pill cd" "t t"; column-gap: 10px; }
  .jev-pdp-head .jev-pill { font-size: 11.5px; }
  .jev-pdp-head .jev-cd { margin-top: 0; justify-self: end; }
  .jev-pdp-t { font-size: 19px; text-align: center; margin-top: 12px; }
  .jev-pdp-r { margin-top: 12px; }
  .jev-pdp .jev-code { font-size: 14px; padding: 9px 12px; }
  .jev-pdp .jev-btn { font-size: 14.5px; padding: 11px 10px; }
  .jev-pdp-stock { margin-top: 12px; padding-top: 11px; font-size: 12.5px; align-items: flex-start; }
  .jev-pdp-stock svg { margin-top: 1px; }
}
/* Étiquette à côté du prix de la fiche quand le code est au panier (0.1.13) */
.jev-price-badge { display: inline-block; margin-left: 10px; padding: 3px 8px; border-radius: 6px; background: #F0704A; color: #fff; font: 700 12px/1.4 Arial, sans-serif; vertical-align: middle; white-space: nowrap; }
.jpp-mobile-row .jev-price-badge { margin-left: 6px; padding: 2px 6px; font-size: 11px; }

/* Message sous l'encart après « Appliquer le code » : code non applicable à ce produit, ou refusé (0.1.12) */
.jev-pdp-msg { display: flex; align-items: flex-start; gap: 10px; background: #FDEEE6; color: #5A2412; border-radius: 12px; padding: 12px 14px; margin: -10px 0 22px; font-size: 14px; line-height: 1.4; text-align: left; }
.jev-pdp-msg svg { color: #E0592F; flex-shrink: 0; margin-top: 1px; }
.jev-pdp-msg strong { display: block; font-weight: 800; color: #5A2412; }
.jev-pdp-msg p { margin: 2px 0 0; padding: 0; font-size: 13.5px; color: #5A2412; opacity: .9; }
@media (max-width: 767px) { .jev-pdp-msg { margin: -6px 0 16px; padding: 11px 12px; font-size: 13.5px; } .jev-pdp-msg p { font-size: 13px; } }

/* Clic sur « Appliquer le code » (0.1.9) : le bouton s'enfonce, puis roue + « Application du code… » */
.jev-btn { transition: transform .12s ease, filter .15s ease; }
.jev-btn:active { transform: scale(.96); }
.jev-btn.is-loading { pointer-events: none; cursor: progress; gap: 9px; animation: jev-press .28s ease; }
.jev-r .jev-btn.is-loading, .jev-pdp .jev-btn.is-loading { display: inline-flex; align-items: center; justify-content: center; }
.jev-spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(20, 38, 28, .25); border-top-color: #14261C; flex-shrink: 0; animation: jev-spin .7s linear infinite; }
@keyframes jev-spin { to { transform: rotate(360deg); } }
@keyframes jev-press { 0% { transform: scale(1); } 40% { transform: scale(.95); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .jev-btn, .jev-btn.is-loading { animation: none; transition: none; }
  .jev-spin { animation-duration: 1.6s; }
}
/* Compte à rebours */
.jev-cd { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.jev-cd-l { font-size: 12px; font-weight: 700; color: var(--jev-bfg); opacity: .8; margin-right: 2px; }
.jev-cd-b { background: rgba(255, 255, 255, .12); border-radius: 7px; padding: 4px 6px; font-size: 11px; font-weight: 700; color: var(--jev-acc); line-height: 1; }
.jev-cd-b b { font-family: 'Archivo Black', 'Arial Black', sans-serif; font-weight: 400; font-size: 14px; color: var(--jev-bfg); margin-right: 1px; font-variant-numeric: tabular-nums; }
@media (max-width: 360px) {
  .jev-cd-l { display: none; }
}

/* 0.1.15 : pastille du code sur l'image des cartes produits (boutique, catégories) et du carrousel du blog */
.jev-card-pill { position: absolute; right: 10px; bottom: 10px; z-index: 3; background: #F0704A; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.3; letter-spacing: .02em; border-radius: 99px; padding: 3px 9px; white-space: nowrap; pointer-events: none; }
.jmsp-prod__media { position: relative; }
@media (max-width: 600px) { .jev-card-pill { right: 8px; bottom: 8px; font-size: 11px; padding: 2px 8px; } }

/* 0.1.16 : encart en haut des articles de blog, prix avec le code dans le carrousel du blog */
.jev-pdp--blog { margin: 0 0 28px; }
.jev-pdp--blog .jev-pdp-r a.jev-btn { text-decoration: none; }
.jev-blog-price del { color: #8a8f8c; font-weight: 500; margin-right: 4px; font-size: .92em; }

/* 0.1.19 : barre d'urgence (stock réel ou compte à rebours) : cartes produit + encart des fiches */
.jev-urg { --jev-uc: #254636; --jev-ul: #254636; margin: 8px 0 2px; }
.jev-urg[hidden] { display: none !important; }
.jev-urg--low { --jev-uc: #F0704A; --jev-ul: #D9552F; }
.jev-urg--limited { --jev-uc: #F2B01E; --jev-ul: #B07A00; }
.jev-urg-l { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; font-size: 13px; font-weight: 800; line-height: 1.3; color: var(--jev-ul); }
.jev-urg-l svg { flex-shrink: 0; }
.jev-urg-t { height: 6px; border-radius: 99px; overflow: hidden; background: #EFE7DA; }
.jev-urg-t i { display: block; height: 100%; border-radius: 99px; background: var(--jev-uc); }
/* Encart des fiches (fond foncé) */
.jev-urg--pdp { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
.jev-urg--pdp.jev-urg--low { --jev-ul: #F0704A; }
.jev-urg--pdp.jev-urg--limited { --jev-ul: #F2B01E; }
.jev-urg--pdp .jev-urg-l { font-size: 14px; margin-bottom: 7px; }
.jev-urg--pdp .jev-urg-t { height: 7px; background: rgba(255, 255, 255, .16); }
.jev-urg-s { margin-top: 7px; font-size: 12.5px; line-height: 1.35; color: rgba(255, 255, 255, .75); }
@media (max-width: 767px) {
  .jev-urg-l { font-size: 12px; }
  .jev-urg--pdp { margin-top: 12px; padding-top: 11px; }
  .jev-urg--pdp .jev-urg-l { font-size: 13px; }
}
