.fbrf-match-center-route{margin:0!important;padding:0!important;background:#F3F7FA!important;color:#46576A}
.fbrf-match-center-shell{max-width:1100px;margin:0 auto;padding:22px 22px 120px;font-family:"Cambria Math",Cambria,"Times New Roman",serif}
.fbrf-match-center-hero{padding:18px 0 22px;border-bottom:1px solid #DCE5EC;margin-bottom:18px}
.fbrf-match-center-hero>span{display:block;color:#D59B00;font-weight:800;letter-spacing:.08em;font-size:.82rem}
.fbrf-match-center-hero h1{margin:6px 0 6px;color:#002A5C;font-size:clamp(2rem,4vw,3rem);line-height:1.06}
.fbrf-match-center-hero p{margin:0;max-width:760px;line-height:1.65;font-size:1.05rem}
.fbrf-match-group{margin:0 0 24px}
.fbrf-match-group h2{margin:0 0 12px;color:#002A5C;font-size:1.45rem}
.fbrf-match-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fbrf-match-card{background:#fff;border:1px solid #DCE5EC;border-radius:18px;padding:16px;box-shadow:0 8px 20px rgba(0,42,92,.04)}
.fbrf-match-card__top{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-bottom:14px}
.fbrf-match-status{display:inline-flex;padding:6px 9px;border-radius:999px;background:#EEF4F8;color:#002A5C;font-size:.72rem;font-weight:900;letter-spacing:.04em}
.fbrf-match-card.is-live .fbrf-match-status{background:#B91C1C;color:#fff}
.fbrf-match-competition{color:#D59B00;font-weight:800;font-size:.85rem;text-align:right}
.fbrf-match-card__teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center;color:#002A5C}
.fbrf-match-card__teams>div:first-child{text-align:right}.fbrf-match-card__teams>div:last-child{text-align:left}
.fbrf-match-card__teams b{font-size:1.08rem;line-height:1.25}
.fbrf-match-score{display:flex;align-items:center;gap:7px;font-size:1.55rem;white-space:nowrap}.fbrf-match-score span{color:#98A5B2}.fbrf-match-score.is-empty{color:#98A5B2}
.fbrf-match-card__meta{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin-top:12px;color:#667085;font-size:.88rem}
.fbrf-match-source{display:block;text-align:center;margin-top:10px;color:#315980!important;text-decoration:none!important;font-size:.82rem;font-weight:700}
.fbrf-match-empty{display:grid;gap:5px;padding:24px;border:1px dashed #C9D4DF;border-radius:18px;background:#fff;color:#46576A;text-align:center}.fbrf-match-empty strong{color:#002A5C;font-size:1.2rem}
@media(max-width:820px){
  body.fbrf-mobile-shell-enabled.fbrf-match-center-active #content,
  body.fbrf-mobile-shell-enabled.fbrf-match-center-active .site-content,
  body.fbrf-mobile-shell-enabled.fbrf-match-center-active .site-content>.ast-container{margin:0!important;padding:0!important;max-width:none!important;display:block!important}
  .fbrf-match-center-shell{padding:14px 14px 120px}
  .fbrf-match-center-hero{padding-top:8px}
  .fbrf-match-grid{grid-template-columns:1fr}
  .fbrf-match-card{padding:15px}
  .fbrf-match-card__teams{gap:8px}.fbrf-match-card__teams b{font-size:1rem}.fbrf-match-score{font-size:1.4rem}
}

/* 0.10.1 — widget Elementor Match Center */
.fbrf-match-widget{font-family:inherit;color:#46576A}
.fbrf-match-widget__head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 14px}
.fbrf-match-widget__title{margin:0;color:#002A5C;font-size:1.65rem;line-height:1.1}
.fbrf-match-widget__intro{margin:4px 0 0;color:#667085;line-height:1.5}
.fbrf-match-widget__footer{display:flex;justify-content:flex-end;margin-top:14px}
.fbrf-match-widget__cta{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:999px;background:#D59B00;color:#fff!important;text-decoration:none!important;font-weight:800}
.fbrf-match-center.is-mode-compact .fbrf-match-group{margin-bottom:14px}
.fbrf-match-center.is-mode-compact .fbrf-match-group h2{font-size:1.15rem;margin-bottom:9px}
.fbrf-match-center.is-mode-compact .fbrf-match-card{padding:13px}
.fbrf-match-center.is-mode-compact .fbrf-match-card__top{margin-bottom:10px}
.fbrf-match-center.is-mode-compact .fbrf-match-card__teams b{font-size:.98rem}
.fbrf-match-center.is-mode-compact .fbrf-match-score{font-size:1.3rem}
.fbrf-match-center.is-mode-ticker .fbrf-match-group{margin:0}
.fbrf-match-center.is-mode-ticker .fbrf-match-grid{display:flex!important;overflow-x:auto;gap:10px;scrollbar-width:none;padding-bottom:2px}
.fbrf-match-center.is-mode-ticker .fbrf-match-grid::-webkit-scrollbar{display:none}
.fbrf-match-center.is-mode-ticker .fbrf-match-card{min-width:280px;flex:0 0 280px;padding:12px}
@media(max-width:820px){
  .fbrf-match-widget__head{display:block}
  .fbrf-match-widget__title{font-size:1.4rem}
  .fbrf-match-widget__footer{justify-content:stretch}
  .fbrf-match-widget__cta{width:100%}
  .fbrf-match-center.is-mode-ticker .fbrf-match-card{min-width:255px;flex-basis:255px}
}

/* 0.10.2 — réglages Elementor compatibles et isolés */
.fbrf-match-widget{
  font-family:var(--fbrf-match-font,inherit)!important;
  color:var(--fbrf-match-text,#667085);
}
.fbrf-match-widget .fbrf-match-grid{grid-template-columns:repeat(var(--fbrf-match-cols,2),minmax(0,1fr));gap:var(--fbrf-match-gap,14px)}
.fbrf-match-widget .fbrf-match-card{padding:var(--fbrf-match-padding,16px);border-radius:var(--fbrf-match-radius,18px);background:var(--fbrf-match-card-bg,#fff);border-color:var(--fbrf-match-border,#DCE5EC)}
.fbrf-match-widget .fbrf-match-widget__title,.fbrf-match-widget .fbrf-match-group h2,.fbrf-match-widget .fbrf-match-card__teams{color:var(--fbrf-match-primary,#002A5C)}
.fbrf-match-widget .fbrf-match-competition{color:var(--fbrf-match-accent,#D59B00)}
.fbrf-match-widget .fbrf-match-card.is-live .fbrf-match-status{background:var(--fbrf-match-live,#B91C1C)}
.fbrf-match-widget .fbrf-match-widget__cta{background:var(--fbrf-match-accent,#D59B00)}
.fbrf-match-widget .fbrf-match-widget__title{font-size:var(--fbrf-match-title-size,1.65rem)}
.fbrf-match-widget .fbrf-match-card__teams b{font-size:var(--fbrf-match-team-size,1.08rem)}
.fbrf-match-widget .fbrf-match-score{font-size:var(--fbrf-match-score-size,1.55rem)}
@media(max-width:820px){.fbrf-match-widget .fbrf-match-grid{grid-template-columns:repeat(var(--fbrf-match-cols-mobile,1),minmax(0,1fr))}}


/* 0.10.3 — écussons d'équipes */
.fbrf-match-team{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;text-align:center}
.fbrf-match-team img{width:34px;height:34px;object-fit:contain;flex:0 0 34px}
.fbrf-match-center.is-mode-compact .fbrf-match-team img{width:28px;height:28px;flex-basis:28px}
@media(max-width:600px){.fbrf-match-team{flex-direction:column;gap:5px}.fbrf-match-team img{width:30px;height:30px;flex-basis:30px}}

/* 0.10.7 — arrivée depuis une notification */
.fbrf-match-card{scroll-margin-top:170px}
.fbrf-match-card:target,.fbrf-match-card.is-notification-target{outline:3px solid #D59B00;outline-offset:4px;box-shadow:0 0 0 8px rgba(213,155,0,.14)!important}

/* 0.11.2 — rafraîchissement silencieux : aucun flash / aucune disparition */
.fbrf-match-center{position:relative}
.fbrf-match-center.is-refreshing:after{content:"";position:absolute;right:10px;top:10px;width:8px;height:8px;border-radius:50%;background:var(--fbrf-match-accent,#D59B00);box-shadow:0 0 0 0 rgba(213,155,0,.35);animation:fbrfMatchPulse .9s ease-out infinite;pointer-events:none;z-index:5}
@keyframes fbrfMatchPulse{0%{box-shadow:0 0 0 0 rgba(213,155,0,.35)}100%{box-shadow:0 0 0 9px rgba(213,155,0,0)}}
@media(prefers-reduced-motion:reduce){.fbrf-match-center.is-refreshing:after{animation:none}}
/* 0.11.9 — phase de bascule À venir → Direct sans inventer un score LIVE. */
.fbrf-match-card.is-starting .fbrf-match-status{background:#FFF4D6;color:#8A5A00}
.fbrf-match-card.is-starting{border-style:dashed}
.fbrf-match-card.is-starting .fbrf-match-card__meta{color:#8A5A00;font-weight:700}
.fbrf-match-card.is-starting .fbrf-match-status:before{content:"";width:7px;height:7px;margin-right:6px;border-radius:50%;background:#D59B00;animation:fbrfStartingPulse 1.2s ease-in-out infinite}
@keyframes fbrfStartingPulse{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.fbrf-match-card.is-starting .fbrf-match-status:before{animation:none}}

/* 0.12.5 : le widget vide reste dans le DOM pour pouvoir se réveiller par AJAX, sans titre orphelin. */
.fbrf-match-widget.is-empty-auto{display:none!important}

.fbrf-match-card.is-provisional .fbrf-match-status{background:#B91C1C;color:#fff}
.fbrf-match-card.is-provisional .fbrf-match-card__meta{font-weight:700;color:#7F1D1D}


/* 0.16.9 — Match Center suit exactement la hiérarchie visuelle d’En continu. */
.fbrf-match-widget__title,
.fbrf-mobile-match-title,
.fbrf-desktop-match-force__head h2{
  margin:0!important;
  padding:0!important;
  color:#002A5C!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:clamp(2rem,2.55vw,2.55rem)!important;
  line-height:1.12!important;
  font-weight:700!important;
  letter-spacing:normal!important;
}
.fbrf-match-widget__title:not(:empty)::after{content:" ›";font-weight:700}
.fbrf-mobile-match-title span,.fbrf-desktop-match-force__head h2 span{font-weight:700}
@media(max-width:820px){
  .fbrf-match-widget__title,.fbrf-mobile-match-title,.fbrf-desktop-match-force__head h2{
    font-size:31px!important;line-height:1.12!important;
  }
}

/* =========================================================
   25AE — MATCH CENTER CARROUSEL ADAPTATIF
   ========================================================= */

.fbrf-match-carousel{
    position:relative;
    min-width:0;
}

.fbrf-match-carousel .fbrf-match-carousel-track{
    display:grid !important;
    grid-auto-flow:column;
    grid-auto-columns:minmax(270px,calc((100% - 28px) / 3));
    grid-template-columns:none !important;
    gap:14px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    padding-bottom:5px;
}

.fbrf-match-carousel .fbrf-match-carousel-track::-webkit-scrollbar{
    display:none;
}

.fbrf-match-carousel .fbrf-match-card{
    width:100% !important;
    min-width:0;
    scroll-snap-align:start;
    box-sizing:border-box;
}

.fbrf-match-carousel-controls{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:7px;
    margin:0 0 9px;
}

.fbrf-match-carousel-controls[hidden]{
    display:none !important;
}

.fbrf-match-carousel-prev,
.fbrf-match-carousel-next{
    appearance:none;
    width:34px;
    height:34px;
    border-radius:50%;
    border:1px solid rgba(0,42,92,.18);
    background:#fff;
    color:#002A5C;
    font-size:25px;
    line-height:28px;
    font-weight:700;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0;
    box-shadow:0 2px 8px rgba(0,0,0,.06);
}

.fbrf-match-carousel-prev:disabled,
.fbrf-match-carousel-next:disabled{
    opacity:.30;
    cursor:default;
}

@media (max-width:1024px){
    .fbrf-match-carousel .fbrf-match-carousel-track{
        grid-auto-columns:minmax(270px,calc((100% - 14px) / 2));
    }
}

@media (max-width:767px){
    .fbrf-match-carousel .fbrf-match-carousel-track{
        /*
         * 88% : laisse apparaître le bord de la carte suivante,
         * signal naturel qu'on peut glisser.
         */
        grid-auto-columns:88%;
        gap:10px;
    }

    .fbrf-match-carousel-controls{
        display:none !important;
    }
}

@media (max-width:420px){
    .fbrf-match-carousel .fbrf-match-carousel-track{
        grid-auto-columns:92%;
    }
}
