/* ==================================================================
 * Spinoko Child V2 — systeme de design editorial
 * Refonte complete : header, toplist, typographie, footer.
 * ================================================================== */

/* ------------------------------------------------------------------
 * 1. Tokens
 * ------------------------------------------------------------------ */
html:root {
  /* marque */
  --pl-accent:         #F83F27;
  --pl-accent-hover:   #F96552;
  --pl-accent-soft:    #FEE9E5;
  --pl-ink:            #171717;
  --pl-ink-2:          #2E2E2E;
  --pl-muted:          #8A8A8A;
  --pl-muted-2:        #4D4D4D;
  --pl-border:         #E0E0E0;
  --pl-border-strong:  #C7C7C7;
  --pl-canvas:         #F5F5F5;
  --pl-surface:        #FFFFFF;
  --pl-gold:           #F5A623;
  --pl-green:          #07BC6E;

  /* formes */
  --pl-r-sm: 6px;
  --pl-r:    10px;
  --pl-r-lg: 14px;
  --pl-shadow:       0 1px 2px rgba(12,12,13,.05), 0 2px 10px rgba(12,12,13,.05);
  --pl-shadow-hover: 0 2px 6px rgba(12,12,13,.08), 0 14px 32px rgba(12,12,13,.12);

  /* rythme */
  --pl-gutter: clamp(1rem, .6rem + 1.4vw, 2rem);
  --pl-max:    1180px;

  /* remappage des variables du theme parent */
  --color-link: var(--pl-accent);
  --color-link-hover: var(--pl-accent-hover);
  --color-primary: var(--pl-accent);
  --color-primary-hover: var(--pl-accent-hover);
  --color-secondary: var(--pl-ink);
  --color-dark: var(--pl-ink);
  --color-light: var(--pl-canvas);
  --color-neutral: var(--pl-muted);
  --color-star: var(--pl-accent);
  --color-body-text: var(--pl-ink);
  --color-table-highlight: var(--pl-accent);
}

/* ------------------------------------------------------------------
 * 2. Base
 * ------------------------------------------------------------------ */
body, body.site {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--pl-ink);
  background: var(--pl-surface);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}

h1, h2, h3, h4, h5, h6, .wp-block-heading {
  font-family: inherit;
  color: var(--pl-ink);
  letter-spacing: -0.018em;
  font-weight: 800;
  line-height: 1.16;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem); margin-top: 2.4em; margin-bottom: .7em; }
h3 { font-size: clamp(1.18rem, 1.05rem + .7vw, 1.45rem); font-weight: 700; }

p, li { line-height: 1.72; font-size: 1.06rem; }
a { color: var(--pl-accent); text-underline-offset: 2px; }
a:hover { color: var(--pl-accent-hover); }

/* titre de section avec filet d'accent */
.entry-content > h2 { position: relative; padding-top: .85rem; }
.entry-content > h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 3px;
  background: var(--pl-accent);
  border-radius: 2px;
}

/* ------------------------------------------------------------------
 * 3. Header
 * ------------------------------------------------------------------ */
.pl-header,
#masthead.pl-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: auto;
  background: var(--pl-surface);
  box-shadow: 0 1px 0 var(--pl-border);
}
/* la barre de navigation garde sa hauteur, le reste s'adapte au contenu */
.pl-header .h-header { height: auto; min-height: 52px; }

/* Le header est colle en haut : sans cette reserve, une ancre (Sommaire, FAQ,
   lien interne) depose sa cible sous le header, la ou elle est invisible.
   Desktop = 117px de header + marge ; sur mobile la bande "Meilleurs casinos"
   disparait et le header retombe vers 84px. */
html,
html:root { scroll-padding-top: 132px; }

/* 3a. barre principale */
.pl-header__main { background: var(--pl-surface); }
.pl-header__box,
.pl-header .header-box {
  background: transparent !important;
  color: var(--pl-ink) !important;
  max-width: var(--pl-max);
  margin: 0 auto;
}
.pl-header .header-box a,
.pl-header .header-box button { color: var(--pl-ink) !important; }
.pl-header .header-box a:hover { color: var(--pl-accent) !important; }
.pl-header .header-box svg { fill: currentColor; }
.pl-header .custom-logo { height: 50px !important; width: auto !important; }

/* nav principale */
.pl-header .menu > li > a,
.pl-header .main-navigation a {
  font-weight: 650;
  font-size: .92rem;
  letter-spacing: -0.008em;
  padding: .5rem .2rem;
}
.pl-header .menu > li { position: relative; }
.pl-header .menu > li > a::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--pl-accent);
  transform: scaleX(0);
  transition: transform .16s ease;
  transform-origin: left;
}
.pl-header .menu > li:hover > a::after,
.pl-header .current-menu-item > a::after { transform: scaleX(1); }

/* sous-menus facon mega-menu */
.pl-header .sub-menu {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-r);
  box-shadow: var(--pl-shadow-hover);
  padding: .5rem;
  min-width: 240px;
}
.pl-header .sub-menu a {
  display: block;
  border-radius: var(--pl-r-sm);
  padding: .5rem .7rem;
  font-weight: 550;
  font-size: .88rem;
}
.pl-header .sub-menu a:hover { background: var(--pl-canvas); }

/* 3c. bande "meilleurs casinos" */
.pl-header__quick {
  background: var(--pl-canvas);
  border-top: 1px solid var(--pl-border);
  border-bottom: 1px solid var(--pl-border);
}
.pl-header__quick-inner {
  max-width: var(--pl-max);
  margin: 0 auto;
  padding: .45rem var(--pl-gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.pl-header__quick-inner::-webkit-scrollbar { display: none; }
.pl-header__quick-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pl-muted);
  white-space: nowrap;
}
.pl-header__quick-list {
  display: flex;
  gap: .4rem;
  list-style: none;
  margin: 0; padding: 0;
}
.pl-header__quick-list a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 650;
  color: var(--pl-ink);
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 999px;
  padding: .22rem .7rem .22rem .3rem;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.pl-header__quick-list a:hover { border-color: var(--pl-accent); color: var(--pl-accent); }
.pl-header__quick-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--pl-accent);
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
}

@media (max-width: 860px) {
  .pl-header__quick { display: none; }
  html, html:root { scroll-padding-top: 96px; }
}

/* tous les composants de la refonte raisonnent en border-box */
.pl-card, .pl-card *, .pl-btn, .pl-trust, .pl-header, .pl-header * { box-sizing: border-box; }

/* ------------------------------------------------------------------
 * 4. Boutons
 * ------------------------------------------------------------------ */
.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -0.008em;
  line-height: 1.2;
  padding: .7em 1.1em;
  text-decoration: none !important;
  text-align: center;
  border: 2px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.pl-card__actions a.pl-btn--primary,
a.pl-btn--primary,
.pl-btn--primary {
  background: var(--pl-accent);
  border-color: var(--pl-accent);
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(248,63,39,.25);
}
.pl-card__actions a.pl-btn--primary:hover,
a.pl-btn--primary:hover,
.pl-btn--primary:hover {
  background: var(--pl-accent-hover);
  border-color: var(--pl-accent-hover);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(248,63,39,.32);
}

.pl-card__actions a.pl-btn--ghost,
a.pl-btn--ghost,
.pl-btn--ghost {
  background: transparent;
  border-color: var(--pl-border);
  color: var(--pl-muted-2) !important;
  font-size: .8rem;
  padding: .45em 1em;
}
.pl-card__actions a.pl-btn--ghost:hover,
a.pl-btn--ghost:hover,
.pl-btn--ghost:hover {
  border-color: var(--pl-ink);
  color: var(--pl-ink) !important;
  background: var(--pl-canvas);
}

/* ------------------------------------------------------------------
 * 5. Toplist — carte operateur
 * ------------------------------------------------------------------ */
.review-table { list-style: none; margin: 0; padding: 0; }

li.pl-card,
.pl-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 148px minmax(190px, 1.25fr) minmax(180px, 1fr) 244px;
  align-items: stretch;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-r);
  box-shadow: var(--pl-shadow);
  margin-bottom: .6rem;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pl-card:hover {
  border-color: var(--pl-border-strong);
  box-shadow: var(--pl-shadow-hover);
  transform: translateY(-2px);
}

/* 3 premiers mis en avant */
.pl-card:nth-child(-n+3) { border-color: #F3C8C1; }

/* rang */
.pl-card__rank {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1rem;
  font-weight: 800;
  color: var(--pl-muted);
  background: var(--pl-canvas);
  border-right: 1px solid var(--pl-border);
  border-radius: var(--pl-r) 0 0 var(--pl-r);
}
.pl-card:nth-child(-n+3) .pl-card__rank {
  background: var(--pl-accent);
  color: #fff;
  border-right-color: var(--pl-accent);
}

/* logo */
.pl-card__logo {
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--pl-border);
}
.pl-card__logo-img { max-height: 58px; max-width: 108px; width: auto; height: auto; display: block; }

/* identite */
.pl-card__ident {
  display: flex;
  flex-direction: column;
  gap: .22rem;
  padding: .9rem 1.1rem;
  justify-content: center;
}
.pl-card__name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.018em;
  color: var(--pl-ink);
  line-height: 1.25;
}
.pl-card__rating { display: flex; align-items: center; gap: .3rem; }
.pl-card__rating .icon { width: 15px; height: 15px; fill: var(--pl-accent); }
.pl-card__rating .sp-ml-2 { color: var(--pl-ink) !important; font-weight: 800; font-size: .82rem; }
.pl-card__meta { font-size: .76rem; color: var(--pl-muted); font-weight: 550; }

/* offre */
.pl-card__offer {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  padding: .9rem 1.1rem;
  border-left: 1px solid var(--pl-border);
  justify-content: center;
}
.pl-card__offer-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pl-muted);
}
.pl-card__offer-value {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pl-ink);
  line-height: 1.25;
}
.pl-card__terms button,
.pl-card__terms { font-size: .68rem; color: var(--pl-muted); }

/* actions */
.pl-card__actions {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: .9rem 1.1rem;
  border-left: 1px solid var(--pl-border);
  justify-content: center;
}
.pl-card__actions .pl-btn { width: 100%; max-width: 100%; }
.pl-card__legal {
  font-size: .64rem;
  color: var(--pl-muted);
  text-align: center;
  letter-spacing: .01em;
}

/* --- toplist responsive --- */
@media (max-width: 1040px) {
  li.pl-card { grid-template-columns: 40px 110px minmax(140px,1fr) minmax(150px,1fr) 180px; }
  .pl-card__logo-img { max-width: 88px; max-height: 50px; }
}

@media (max-width: 880px) {
  li.pl-card {
    grid-template-columns: 44px 1fr 1fr;
    grid-template-areas:
      "rank logo offer"
      "rank ident offer"
      "act  act   act";
    row-gap: 0;
  }
  .pl-card__rank  { grid-area: rank; border-radius: var(--pl-r) 0 0 0; }
  .pl-card__logo  { grid-area: logo; padding-bottom: .2rem; }
  .pl-card__ident { grid-area: ident; border-left: 0; padding-top: 0; text-align: center; align-items: center; }
  .pl-card__offer { grid-area: offer; align-items: center; text-align: center; }
  .pl-card__actions {
    grid-area: act;
    border-left: 0;
    border-top: 1px solid var(--pl-border);
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .pl-card__actions .pl-btn--primary { flex: 1 1 60%; }
  .pl-card__actions .pl-btn--ghost   { flex: 0 1 auto; }
  .pl-card__legal { flex: 1 1 100%; }
  .pl-card__rating { justify-content: center; }
}

@media (max-width: 520px) {
  li.pl-card { grid-template-columns: 38px 1fr; grid-template-areas: "rank logo" "rank ident" "offer offer" "act act"; }
  .pl-card__offer { border-left: 0; border-top: 1px dashed var(--pl-border); }
}

/* ------------------------------------------------------------------
 * 6. Bandeau de confiance
 * ------------------------------------------------------------------ */
.pl-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.25rem;
  margin: 1rem 0 1.75rem;
  background: var(--pl-canvas);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-r);
  font-size: .8rem;
  font-weight: 600;
  color: var(--pl-muted-2);
}
.pl-trust span { display: inline-flex; align-items: center; gap: .5rem; }
.pl-trust span::before {
  content: "";
  width: 24px; height: 24px;
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
.pl-trust .t-licence::before  { background-image: url("assets/brand/icons/web/ic_licence.webp"); }
.pl-trust .t-avis::before     { background-image: url("assets/brand/icons/web/ic_avis.webp"); }
.pl-trust .t-paiement::before { background-image: url("assets/brand/icons/web/ic_paiement.webp"); }

/* ------------------------------------------------------------------
 * 7. Contenu editorial
 * ------------------------------------------------------------------ */
.lwptoc {
  background: var(--pl-canvas);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-r);
}
.lwptoc_item_label { color: var(--pl-ink); }

.faq { border-top: 1px solid var(--pl-border) !important; }
.faq-question { font-weight: 700; color: var(--pl-ink); letter-spacing: -0.01em; }
.faq-question:hover { color: var(--pl-accent); }

.entry-content table {
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-r);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
}
.entry-content table th {
  background: var(--pl-ink); color: #fff;
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; padding: .75rem 1rem; text-align: left;
}
.entry-content table td { border-top: 1px solid var(--pl-border); padding: .75rem 1rem; }
.entry-content table tbody tr:nth-child(even) { background: #FAFAFA; }

.entry-content blockquote {
  background: var(--pl-canvas);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-r);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: normal;
  color: var(--pl-muted-2);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
 * 8. Footer
 * ------------------------------------------------------------------ */
footer#colophon, .site-footer {
  background: var(--pl-ink);
  color: #A8A8A8;
  border-top: 3px solid var(--pl-accent);
}
footer#colophon a, .site-footer a { color: #E0E0E0; }
footer#colophon a:hover, .site-footer a:hover { color: var(--pl-accent); }
footer#colophon h2, footer#colophon h3, .site-footer h3 {
  color: #fff; font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 800;
}

/* ------------------------------------------------------------------
 * 9. Hero compact — l'image sert de fond (zero hauteur en plus),
 *    la colonne de droite met en avant le casino du mois.
 * ------------------------------------------------------------------ */
.pl-hero {
  position: relative;
  background-color: var(--pl-ink);
  background-image: var(--pl-hero-img);
  background-size: cover;
  background-position: 74% 54%;
  background-repeat: no-repeat;
  color: #fff;
  padding: clamp(1.1rem, .7rem + 1.3vw, 1.9rem) 0;
  overflow: hidden;
}
/* voile pour garder le texte lisible par-dessus l'image */
.pl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, var(--pl-ink) 0%, var(--pl-ink) 30%, rgba(23,23,23,.86) 48%, rgba(23,23,23,.34) 78%, rgba(23,23,23,.28) 100%);
}
.pl-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(1.2rem, .8rem + 1.6vw, 2.4rem);
  align-items: center;
}
.pl-hero__kicker {
  display: inline-block;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pl-accent);
  margin-bottom: .35rem;
}
.pl-hero .entry-title,
.pl-hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 .4rem;
}
.pl-hero p {
  color: #C7C7C7;
  margin: 0;
  max-width: 52ch;
  font-size: .98rem;
  line-height: 1.5;
}
.pl-hero__stats { display: flex; gap: clamp(1.1rem, .8rem + 1vw, 2rem); margin-top: .9rem; flex-wrap: wrap; }
.pl-hero__stat b {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.pl-hero__stat span {
  font-size: .6rem;
  color: var(--pl-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}

/* --- carte casino du mois --- */
.pl-featured {
  background: var(--pl-surface);
  border-radius: var(--pl-r);
  padding: .85rem .9rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.pl-featured__label {
  align-self: flex-start;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pl-accent);
  border-radius: 4px;
  padding: .2rem .45rem;
}
.pl-featured__head { display: flex; align-items: center; gap: .6rem; }
.pl-featured__logo {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pl-canvas);
  border-radius: var(--pl-r-sm);
  overflow: hidden;
}
.pl-featured__logo-img { max-width: 42px; max-height: 42px; width: auto; height: auto; }
.pl-featured__ident { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.pl-featured__name {
  font-size: .92rem; font-weight: 800; color: var(--pl-ink);
  letter-spacing: -.015em; line-height: 1.2;
}
.pl-featured__rating { display: flex; align-items: center; gap: .25rem; }
.pl-featured__rating .icon { width: 13px; height: 13px; fill: var(--pl-accent); }
.pl-featured__rating .sp-ml-2 { color: var(--pl-ink) !important; font-weight: 800; font-size: .74rem; }
.pl-featured__offer {
  font-size: 1.05rem; font-weight: 800; color: var(--pl-ink);
  letter-spacing: -.02em; line-height: 1.2;
}
.pl-featured .pl-btn { width: 100%; padding: .6em 1em; font-size: .88rem; }
.pl-featured__legal { font-size: .58rem; color: var(--pl-muted); text-align: center; }

/* --- mobile : le hero doit laisser voir le haut de la table --- */
@media (max-width: 880px) {
  .pl-hero { padding: .75rem 0 .8rem; background-position: 60% center; }
  .pl-hero::before { background: var(--pl-ink); }
  .pl-hero__grid { grid-template-columns: 1fr; gap: .8rem; }
  .pl-hero p { display: none; }
  .pl-hero__stats { gap: 1.3rem; margin-top: .45rem; }

  /* carte compacte : identite sur une ligne, offre + CTA sur la suivante */
  .pl-featured {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .45rem;
    padding: .6rem .7rem .65rem;
  }
  .pl-featured__label { align-self: flex-start; font-size: .54rem; }
  .pl-featured__head { display: flex; align-items: center; gap: .55rem; min-width: 0; }
  .pl-featured__logo { width: 38px; height: 38px; }
  .pl-featured__logo-img { max-width: 32px; max-height: 32px; }
  .pl-featured__ident { flex: 1 1 auto; min-width: 0; }
  .pl-featured__name { font-size: .88rem; }
  .pl-featured__rating { flex-wrap: nowrap; white-space: nowrap; }
  .pl-featured__rating .sp-ml-2 { white-space: nowrap; }

  /* la ligne offre + bouton */
  .pl-featured__offer {
    flex: 1 1 auto;
    min-width: 0;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    order: 3;
  }
  .pl-featured .pl-btn {
    order: 4;
    width: 100%;
    white-space: nowrap;
    padding: .55em .9em;
    font-size: .82rem;
  }
  .pl-featured__legal { display: none; }
}

@media (max-width: 520px) {
  .pl-card { grid-template-columns: 38px 1fr; grid-template-areas: "rank logo" "rank ident" "offer offer" "act act"; }
  .pl-card__offer { border-left: 0; border-top: 1px dashed var(--pl-border); }
}

/* ------------------------------------------------------------------
 * 10. Titres editoriaux avec icone de marque
 *     (remplacent les emojis du contenu d'origine)
 * ------------------------------------------------------------------ */
.pl-h {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.pl-h__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 7px;
  object-fit: contain;
  background: var(--pl-accent-soft);
  border-radius: 10px;
}
.pl-h--h3 .pl-h__icon { width: 32px; height: 32px; padding: 5px; border-radius: 8px; }

/* ------------------------------------------------------------------
 * 11. Onglets de toplist
 * ------------------------------------------------------------------ */
.pl-tabs {
  display: flex;
  gap: .3rem;
  border-bottom: 1px solid var(--pl-border);
  margin: 0 0 1.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.pl-tabs::-webkit-scrollbar { display: none; }
.pl-tab {
  padding: .65rem 1.05rem;
  font: inherit;
  font-weight: 700;
  font-size: .88rem;
  color: var(--pl-muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.pl-tab:hover { color: var(--pl-ink); }
.pl-tab[aria-selected="true"] { color: var(--pl-ink); border-bottom-color: var(--pl-accent); }

.pl-star-empty { fill: var(--pl-border) !important; }

/* ------------------------------------------------------------------
 * 12. Footer
 * ------------------------------------------------------------------ */
.pl-foot {
  background: var(--pl-ink);
  color: #A8A8A8;
  border-top: 3px solid var(--pl-accent);
  margin-top: 3.5rem;
  padding: 2.6rem 0 1.4rem;
}
.pl-foot__cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2rem; }
.pl-foot__brand svg { height: 40px; width: auto; margin-bottom: 1rem; display: block; }
.pl-foot p { font-size: .85rem; line-height: 1.65; color: var(--pl-muted); max-width: 40ch; margin: 0; }
.pl-foot h3 { color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .9rem; font-weight: 800; }
.pl-foot ul { list-style: none; margin: 0; padding: 0; }
.pl-foot li { margin-bottom: .45rem; }
.pl-foot a { color: #E0E0E0; text-decoration: none; font-size: .86rem; }
.pl-foot a:hover { color: var(--pl-accent); }
.pl-foot__legal {
  border-top: 1px solid #2E2E2E;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  font-size: .74rem;
  color: #6B6B6B;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 880px) { .pl-foot__cols { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------
 * 13. Integration dans le theme (header fixe, hero pleine largeur)
 * ------------------------------------------------------------------ */
/* le header de la refonte est plus haut : on compense la marge du main */
body.site main#main { margin-top: 0 !important; padding-top: 0 !important; }

/* le hero sort du conteneur et prend toute la largeur */
.pl-hero {
  margin-top: 0;
  /* sort du conteneur pour occuper toute la largeur de la fenetre */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.pl-hero__grid { max-width: var(--pl-max); margin-inline: auto; }
.pl-hero .entry-title {
  color: #fff;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  margin: 0 0 .7rem;
  letter-spacing: -0.018em;
  line-height: 1.14;
}
.pl-breadcrumb { padding-top: 1rem; padding-bottom: .25rem; font-size: .82rem; color: var(--pl-muted); }
.pl-breadcrumb a { color: var(--pl-muted); }
.pl-breadcrumb a:hover { color: var(--pl-accent); }

/* logo inline du header */
.pl-branding__link { display: block; line-height: 0; }
.pl-branding__link svg { height: 50px; width: auto; display: block; }
@media (max-width: 600px) { .pl-branding__link svg { height: 40px; } }

/* ------------------------------------------------------------------
 * 14. Echelle des icones SVG inline
 *     Reprise a l'identique du theme parent pour que cette feuille
 *     fonctionne aussi seule (apercu statique) : sans ces regles les
 *     <svg class="icon"> du contenu s'affichent en taille par defaut.
 * ------------------------------------------------------------------ */
svg.icon { fill: currentColor; height: 1rem; width: 1rem; flex: none; }
svg.icon.icon-fill-none { fill: none; }
svg.icon.icon-stroke-base { stroke: currentColor; }
svg.icon.icon-stroke-none { stroke: none; }
svg.icon.icon-3  { height: .75rem;  width: .75rem; }
svg.icon.icon-5  { height: 1.25rem; width: 1.25rem; }
svg.icon.icon-6  { height: 1.5rem;  width: 1.5rem; }
svg.icon.icon-8  { height: 2rem;    width: 2rem; }
svg.icon.icon-10 { height: 2.5rem;  width: 2.5rem; }
svg.icon.icon-12 { height: 3rem;    width: 3rem; }
svg.icon.icon-24 { height: 6rem;    width: 6rem; }

/* le chevron des FAQ reste discret et suit l'etat ouvert/ferme */
.faq-arrow { display: inline-flex; align-items: center; color: var(--pl-muted); }
.faq-arrow svg.icon { height: 1.1rem; width: 1.1rem; }
.faq-question:hover .faq-arrow { color: var(--pl-accent); }

/* les etoiles de notation gardent leur propre taille */
.pl-card__rating svg.icon,
.text-star svg.icon { fill: var(--pl-accent); }

/* ------------------------------------------------------------------
 * 15. Mobile — rapprocher la toplist du haut de page
 *     L'intro SEO reste dans le DOM (indexee) mais repliee a 4 lignes,
 *     pour que la premiere offre soit atteignable en un petit scroll.
 * ------------------------------------------------------------------ */
@media (max-width: 880px) {
  .pl-breadcrumb { padding-top: .45rem; padding-bottom: 0; font-size: .75rem; }

  .entry-content > p:first-of-type {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .9rem;
  }

  .entry-content > h2:first-of-type { margin-top: .7rem; }
  .entry-content > h2 { margin-top: 1.8em; }
  .lwptoc { margin: .6rem 0; }
}

/* ------------------------------------------------------------------
 * 16. Corrections d'heritage
 * ------------------------------------------------------------------ */

/* Le style.css hérité impose `h1, h2 { color: #000 !important }` ("noir
 * partout"). Dans le hero, fond sombre, cela donnait du noir sur noir.
 * Seul un !important plus specifique peut reprendre la main. */
.pl-hero h1,
.pl-hero h2,
.pl-hero .entry-title {
  color: #fff !important;
}

.pl-hero p,
.pl-hero .pl-hero__kicker,
.pl-hero__stat b {
  color: inherit;
}
.pl-hero p { color: #C7C7C7 !important; }
.pl-hero .pl-hero__kicker { color: var(--pl-accent) !important; }
.pl-hero__stat b { color: #fff !important; }
.pl-hero__stat span { color: var(--pl-muted) !important; }

/* La carte "casino du mois" est sur fond clair : on y retablit l'encre. */
.pl-featured .pl-featured__name,
.pl-featured .pl-featured__offer { color: var(--pl-ink) !important; }

/* La mise pleine largeur se calcule en vw, qui inclut la barre de
 * defilement : sans cela le hero laisse un liseré clair a droite.
 * `clip` (et non `hidden`) ne cree pas de conteneur de defilement,
 * donc le header sticky continue de fonctionner. */
body.site { overflow-x: clip; }

/* Le style.css hérité verrouille la hauteur de l'ancien header a une seule
 * bande (`height: 87px/80px !important` selon le palier). Le nouveau header
 * en compte trois : sans ca, la bande "meilleurs casinos" deborde et recouvre
 * le haut du hero (le kicker disparaissait dessous). */
header#masthead.pl-header,
#masthead.pl-header {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

#masthead.pl-header .h-header,
#masthead.pl-header .header-box {
  height: auto !important;
  min-height: 52px !important;
}

/* ------------------------------------------------------------------
 * 17. Barre flottante "casino du mois"
 *     Prend le relais de la carte du hero des qu'elle sort de l'ecran,
 *     et accompagne le visiteur sur les pages internes.
 * ------------------------------------------------------------------ */
.pl-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--pl-surface);
  border-top: 1px solid var(--pl-border);
  box-shadow: 0 -4px 24px rgba(12,12,13,.14);
  transform: translateY(100%);
  transition: transform .22s ease;
}
.pl-sticky.is-visible { transform: translateY(0); }

.pl-sticky__inner {
  max-width: var(--pl-max);
  margin: 0 auto;
  padding: .55rem var(--pl-gutter);
  display: flex;
  align-items: center;
  gap: .85rem;
}

.pl-sticky__label {
  flex: 0 0 auto;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pl-accent);
  border-radius: 4px;
  padding: .22rem .5rem;
}

.pl-sticky__logo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pl-canvas);
  border-radius: var(--pl-r-sm);
  overflow: hidden;
}
.pl-sticky__logo-img { max-width: 38px; max-height: 38px; width: auto; height: auto; }

.pl-sticky__ident { display: flex; flex-direction: column; gap: .05rem; min-width: 0; flex: 1 1 auto; }
.pl-sticky__name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--pl-muted-2);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-sticky__offer {
  font-size: 1rem;
  font-weight: 800;
  color: var(--pl-ink);
  letter-spacing: -.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pl-sticky__cta { flex: 0 0 auto; }

.pl-sticky__close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  color: var(--pl-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.pl-sticky__close:hover { background: var(--pl-canvas); color: var(--pl-ink); }

@media (max-width: 700px) {
  .pl-sticky__inner { gap: .6rem; padding: .5rem .75rem; }
  .pl-sticky__label { display: none; }
  .pl-sticky__logo { width: 38px; height: 38px; }
  .pl-sticky__logo-img { max-width: 32px; max-height: 32px; }
  .pl-sticky__name { font-size: .72rem; }
  .pl-sticky__offer { font-size: .88rem; }
  .pl-sticky__cta { padding: .55em .85em; font-size: .8rem; }
  .pl-sticky__close { width: 24px; height: 24px; font-size: 1.1rem; }
}

/* la barre ne doit pas masquer la fin de page */
body.site { padding-bottom: 0; }
.pl-sticky.is-visible ~ * { }

/* ------------------------------------------------------------------
 * 18. Avertissement "partenariat termine"
 * ------------------------------------------------------------------ */
.pl-notice {
  background: #FFF8F1;
  border: 1px solid #F3D9BF;
  border-radius: var(--pl-r);
  padding: 1rem 1.15rem;
  margin: 0 0 1.75rem;
}

.pl-notice__title {
  margin: 0 0 .4rem;
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: -.012em;
  color: var(--pl-ink);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.pl-notice__title::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  background: url("assets/brand/icons/web/ic_licence.webp") center/contain no-repeat;
}

.pl-notice__text {
  margin: 0;
  font-size: .89rem;
  line-height: 1.6;
  color: var(--pl-muted-2);
}

.pl-notice__cta { margin-top: .85rem; }
.pl-notice__cta .pl-btn { width: auto; }

@media (max-width: 600px) {
  .pl-notice { padding: .85rem .9rem; }
  .pl-notice__cta .pl-btn { width: 100%; }
}
