/* Jour2Foot — affichage « Doux » (moins de contrastes), toujours actif (posé par j2f_doux_early dans functions.php) */

/* ---------- Palette douce ---------- */
:root[data-style="doux"] {
  --bg: #f5f6f8; --bg-2: #ffffff; --card: #ffffff; --soft: #f7f8fa; --line: #eceef2;
  --text: #2b3240; --muted: #7a8396;
  --accent: #1f8f5f; --accent-soft: #e9f5ef; --red: #e5585c;
  --shadow: 0 1px 3px rgba(30, 40, 60, .04), 0 4px 14px rgba(30, 40, 60, .04);
  --radius: 16px;
}
:root[data-style="doux"][data-theme="dark"] {
  --bg: #141922; --bg-2: #1a202b; --card: #1c2330; --soft: #222a38; --line: #2a3342;
  --text: #dfe5ef; --muted: #9aa5ba;
  --accent: #7fd3a6; --accent-ink: #12261b; --accent-soft: #1f3329; --red: #e86b6f;
}

/* Titres et cadres */
[data-style="doux"] h2, [data-style="doux"] .panel-head h2 { font-weight: 600; letter-spacing: .02em; }
[data-style="doux"] .panel-head h2 { font-size: 1.1rem; }
[data-style="doux"] .panel { border-color: transparent; }
[data-style="doux"][data-theme="dark"] .panel { border-color: var(--line); }

/* Pastilles teintées au lieu d'aplats pleins */
[data-style="doux"] .league, [data-style="doux"] .sub-league { box-shadow: none; }
[data-style="doux"] .league.on { background: color-mix(in srgb, var(--lc) 12%, var(--card)); border-color: color-mix(in srgb, var(--lc) 35%, transparent); color: var(--lc); }
[data-style="doux"][data-theme="dark"] .league.on { background: color-mix(in srgb, var(--lc) 28%, var(--card)); color: var(--text); }
[data-style="doux"] .league.on i { background: color-mix(in srgb, var(--lc) 18%, transparent); }
[data-style="doux"] .day-tab { background: transparent; }
[data-style="doux"] .day-tab.on { background: color-mix(in srgb, var(--lc) 12%, var(--card)); border-color: color-mix(in srgb, var(--lc) 35%, transparent); color: var(--lc); }
[data-style="doux"][data-theme="dark"] .day-tab.on { background: color-mix(in srgb, var(--lc) 28%, var(--card)); color: var(--text); }
[data-style="doux"] #nav a.active { background: var(--accent-soft); color: var(--accent); }
[data-style="doux"] .league-row { background: transparent; box-shadow: inset 3px 0 0 color-mix(in srgb, var(--lc) 60%, transparent); }

/* Bandeau « À la une » pastel */
[data-style="doux"] .sp-card { color: var(--text); border: 1px solid color-mix(in srgb, var(--lc) 18%, transparent);
  background: radial-gradient(circle at 88% 50%, transparent 0 88px, color-mix(in srgb, var(--lc) 14%, transparent) 88px 90px, transparent 90px),
              linear-gradient(135deg, color-mix(in srgb, var(--lc) 10%, var(--card)), color-mix(in srgb, var(--lc) 22%, var(--card))); }
[data-style="doux"] .sp-tag { background: color-mix(in srgb, var(--lc) 16%, transparent); color: var(--lc); }
[data-style="doux"][data-theme="dark"] .sp-tag { color: var(--text); }
[data-style="doux"] .sp-box { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
[data-style="doux"] .sp-box span { color: var(--muted); }
[data-style="doux"] .sp-count span { background: color-mix(in srgb, var(--lc) 12%, var(--card)); }
[data-style="doux"] .sp-team small { color: var(--muted); opacity: 1; }

/* Scores et direct */
[data-style="doux"] .score { background: var(--soft); border-color: transparent; }
[data-style="doux"] .score.live, [data-style="doux"] .live-pill, [data-style="doux"] .pill.red, [data-style="doux"] .sp-box.live, [data-style="doux"] .sp-live { background: color-mix(in srgb, var(--red) 14%, var(--card)); border-color: transparent; color: var(--red); }
[data-style="doux"] .sp-box.live span { color: var(--red); }
[data-style="doux"] .live-pill i, [data-style="doux"] .pill.live-now i, [data-style="doux"] .sp-live i { background: var(--red); }
[data-style="doux"] .match.is-live { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--red) 70%, transparent); background: color-mix(in srgb, var(--red) 4%, var(--card)); }

/* Classement */
[data-style="doux"] td.rank { border-left-width: 3px; }
[data-style="doux"] td.pts { font-weight: 700; }

/* ---------- Chaîne TV sous l'heure du match (1.0.30) ---------- */
.match .chaine { margin-top: 3px; font-size: .66rem; font-weight: 600; color: var(--muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; margin-inline: auto; }
.match .chaine::before { content: ""; display: inline-block; width: 9px; height: 7px; margin-right: 4px; border: 1.5px solid currentColor; border-radius: 2px; vertical-align: 0; opacity: .8; }
.sp-box .sp-tv { display: block; margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line, #e3e7ee); font-style: normal; font-family: var(--font-body); font-size: .7rem; font-weight: 700; color: var(--accent, #008a52); letter-spacing: .02em; white-space: nowrap; }
@media (max-width: 760px) { .match .chaine { max-width: 80px; white-space: normal; font-size: .6rem; line-height: 1.15; text-align: center; } .match .chaine::before { display: none; } }

/* ---------- Pied de page « A clair » (1.0.40) ---------- */
.site-footer.nf-foot { padding: 0; margin-top: 32px; border-top: 0; background: var(--card); box-shadow: 0 -1px 0 var(--line); color: var(--muted); font-size: .9rem; }
.nf { display: grid; grid-template-columns: 1.3fr .8fr 2fr 1fr; gap: 28px 40px; padding: 36px 0 28px; }
.nf .nf-h { margin: 0 0 12px; font-family: var(--font-title); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--text); }
.nf-col { display: flex; flex-direction: column; gap: 9px; }
.nf-col a { color: inherit; }
.nf-col a:hover { color: var(--accent); }
.nf-comp { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 9px; align-content: start; }
.nf-comp .nf-h { grid-column: 1 / -1; }
.nf-comp a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.nf-comp img { width: 18px; height: 18px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; box-sizing: content-box; flex: none; }
.nf-brand .logo { margin: 0; }
.nf-brand .logo img { height: 40px; }
:root[data-theme="dark"] .nf-brand .logo .logo-clair { height: 42px; }
.nf-brand p { margin: 12px 0 16px; line-height: 1.5; max-width: 300px; }
.nf-fb { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .85rem; }
.nf-fb svg { width: 16px; height: 16px; fill: currentColor; }
.nf-fb:hover { filter: brightness(.97); }
.site-footer .nf-col a.foot-ad { color: var(--accent); font-weight: 700; }
.nf-bottom { border-top: 1px solid var(--line); font-size: .78rem; }
.nf-bottom .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px 32px; padding: 14px 0; }
.nf-bottom span { white-space: nowrap; }
.nf-bottom small { font-size: inherit; max-width: 760px; text-align: right; line-height: 1.5; }
@media (max-width: 900px) {
  .nf { grid-template-columns: 1fr 1fr; }
  .nf-brand, .nf-comp { grid-column: 1 / -1; }
  .nf-comp { order: 3; }
  .nf-bottom .wrap { flex-direction: column; }
  .nf-bottom small { text-align: left; }
}
@media (max-width: 760px) { .nf { padding-top: 26px; gap: 24px 20px; } }
@media (max-width: 360px) { .nf-comp { grid-template-columns: 1fr; } }
