/* Styles spécifiques aux templates de page — chargés en complément de style.css */

/* ===== Article (single.php) ===== */
.breadcrumb{ padding:14px 20px 0; font-size:12px; color:var(--text-dim); }
.breadcrumb a{ color:var(--text-dim); }
.breadcrumb .sep{ margin:0 6px; }
.breadcrumb .current{ color:var(--gold); }
.article-head{ padding:16px 20px 0; }
.article-head h1{ font-size:27px; line-height:1.22; font-weight:700; margin-bottom:14px; }
.article-dek{ font-size:15px; line-height:1.55; color:#C9D3CD; margin-bottom:18px; }
.byline{ display:flex; align-items:center; gap:10px; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.avatar{ width:36px; height:36px; border-radius:50%; background:var(--card-2); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:600; color:var(--gold); }
.byline-info{ flex:1; }
.byline-name{ font-size:13px; font-weight:600; }
.byline-meta{ font-size:12px; color:var(--text-dim); }
.share-btn{ width:34px; height:34px; border-radius:10px; background:var(--card); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--text-dim); font-size:14px; }
.hero{ margin:18px 20px; height:200px; border-radius:16px; position:relative; overflow:hidden; background: radial-gradient(ellipse at 30% 0%, rgba(244,183,64,0.18), transparent 55%), radial-gradient(ellipse at 80% 100%, rgba(225,75,75,0.14), transparent 50%), linear-gradient(180deg, #16241C 0%, #0D1712 100%); border:1px solid var(--line); }
.hero .pitch-lines{ position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size:100% 34px; }
.hero .score-tag{ position:absolute; bottom:14px; left:16px; font-family:'DM Mono',monospace; font-size:26px; font-weight:600; color:var(--gold); letter-spacing:1px; }
.hero .score-tag small{ font-size:13px; color:var(--text-dim); display:block; font-family:'Space Grotesk',sans-serif; }
.article-body{ padding:4px 20px 8px; font-family:'Source Serif 4',serif; }
.lead{ font-size:18px; line-height:1.6; color:var(--text); margin-bottom:22px; }
.article-body h2{ font-family:'Space Grotesk',sans-serif; font-size:19px; font-weight:700; margin:30px 0 12px; color:var(--gold); }
.article-body p{ font-size:16px; line-height:1.75; color:#D6DCD8; margin-bottom:16px; }
.pull-quote{ font-family:'Space Grotesk',sans-serif; font-size:19px; font-weight:600; line-height:1.4; color:var(--text); border-left:3px solid var(--gold); padding:4px 0 4px 18px; margin:24px 0; }
.pull-quote span{ display:block; font-size:12px; font-weight:500; color:var(--text-dim); margin-top:8px; }
.stat-box{ background:var(--card); border:1px solid var(--line); border-radius:14px; padding:18px; margin:26px 0; font-family:'Space Grotesk',sans-serif; }
.stat-box-title{ font-size:13px; font-weight:600; color:var(--text-dim); margin-bottom:16px; text-transform:uppercase; letter-spacing:0.5px; }
.stat-row{ margin-bottom:14px; }
.stat-row:last-child{ margin-bottom:0; }
.stat-labels{ display:flex; justify-content:space-between; font-size:13px; margin-bottom:6px; }
.stat-labels .home-val{ color:var(--gold); font-weight:600; }
.stat-labels .away-val{ color:var(--text); font-weight:600; }
.stat-labels .stat-name{ color:var(--text-dim); font-size:12px; }
.stat-bar{ height:6px; border-radius:4px; background:var(--line); overflow:hidden; display:flex; }
.stat-bar-fill{ background:var(--gold); height:100%; }
.stat-bar-rest{ background:var(--card-2); height:100%; flex:1; }
.ratings-title{ font-family:'Space Grotesk',sans-serif; font-size:15px; font-weight:600; margin:30px 0 14px; }
.rating-row{ display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--line); font-family:'Space Grotesk',sans-serif; }
.rating-row:last-child{ border-bottom:none; }
.rating-player small{ display:block; color:var(--text-dim); font-size:11px; margin-top:2px; }
.rating-score{ font-family:'DM Mono',monospace; font-weight:600; font-size:14px; width:34px; height:28px; border-radius:7px; display:flex; align-items:center; justify-content:center; background:var(--card-2); color:var(--gold); }
.rating-score.top{ background:var(--gold); color:#12160E; }
.related{ padding:30px 20px 0; }
.related-title{ font-size:17px; font-weight:600; margin-bottom:14px; }
.related-grid{ display:flex; flex-direction:column; gap:10px; }
.related-card{ display:flex; gap:12px; align-items:center; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px; }
.related-thumb{ width:56px; height:56px; border-radius:8px; flex-shrink:0; background:linear-gradient(155deg,#1C3A2A,#0F1F17); display:flex; align-items:center; justify-content:center; font-size:20px; }
.related-cat{ font-size:10px; color:var(--gold); font-weight:700; letter-spacing:0.5px; text-transform:uppercase; }
.related-headline{ font-size:13px; font-weight:500; line-height:1.35; margin-top:4px; }

/* ===== Classement (page-classement.php) ===== */
.group-tabs{ display:flex; gap:6px; padding:16px 20px 0; }
.group-tab{ flex:1; text-align:center; padding:9px 0; border-radius:9px; font-size:13px; font-weight:600; background:var(--card); color:var(--text-dim); border:1px solid var(--line); }
.group-tab.active{ background:var(--card-2); color:var(--gold); border-color:var(--gold-dim); }
.table-wrap{ padding:16px 20px 0; }
.standings{ width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.standings th{ font-size:10px; font-weight:600; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.4px; padding:10px 6px; text-align:center; border-bottom:1px solid var(--line); background:#101713; }
.standings th.team-col{ text-align:left; padding-left:12px; }
.standings td{ padding:11px 6px; text-align:center; font-family:'DM Mono',monospace; font-size:13px; border-bottom:1px solid var(--line); }
.standings tr:last-child td{ border-bottom:none; }
.standings td.team-col{ text-align:left; padding-left:12px; font-family:'Space Grotesk',sans-serif; font-size:13px; font-weight:500; }
.pos{ font-weight:700; color:var(--text-dim); width:22px; }
.pos.qualified{ color:var(--up); }
.team-name{ display:flex; align-items:center; gap:8px; }
.pts{ font-weight:700; color:var(--gold); }
.diff.pos-val{ color:var(--up); }
.diff.neg-val{ color:var(--live); }
.qualify-note{ display:flex; align-items:center; gap:8px; padding:12px 4px 0; font-size:11px; color:var(--text-dim); }
.dot{ width:8px; height:8px; border-radius:50%; background:var(--up); flex-shrink:0; }
.form-section{ padding:22px 20px 0; }
.form-title{ font-size:15px; font-weight:600; margin-bottom:12px; }
.form-row{ display:flex; align-items:center; justify-content:space-between; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin-bottom:8px; }
.form-team{ font-size:13px; font-weight:500; }
.form-dots{ display:flex; gap:5px; }
.form-dot{ width:20px; height:20px; border-radius:5px; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; font-family:'DM Mono',monospace; }
.form-dot.w{ background:rgba(79,174,122,0.18); color:var(--up); }
.form-dot.n{ background:rgba(138,150,144,0.18); color:var(--text-dim); }
.form-dot.p{ background:rgba(225,75,75,0.18); color:var(--live); }

/* ===== Calendrier (page-calendrier.php) ===== */
.day-chip{ flex-shrink:0; width:54px; text-align:center; padding:10px 0; border-radius:12px; background:var(--card); border:1px solid var(--line); }
.day-chip.active{ background:var(--card-2); border-color:var(--gold-dim); }
.day-chip .dname{ font-size:10px; color:var(--text-dim); text-transform:uppercase; }
.day-chip .dnum{ font-family:'DM Mono',monospace; font-size:16px; font-weight:600; margin-top:2px; }
.day-chip.active .dnum{ color:var(--gold); }
.day-chip .ddot{ width:4px; height:4px; border-radius:50%; background:var(--gold); margin:4px auto 0; opacity:0; }
.day-chip.has-match .ddot{ opacity:1; }
.date-group{ padding:24px 20px 0; }
.date-label{ font-size:13px; font-weight:600; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.4px; margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.date-label .today-tag{ font-size:10px; font-weight:700; color:#12160E; background:var(--gold); padding:2px 7px; border-radius:6px; text-transform:none; }
.fixture-card{ background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px 16px; margin-bottom:10px; display:flex; align-items:center; gap:14px; }
.fixture-time{ font-family:'DM Mono',monospace; font-size:14px; font-weight:600; color:var(--gold); width:46px; flex-shrink:0; text-align:center; }
.fixture-time.live{ color:var(--live); }
.fixture-time small{ display:block; font-size:9px; color:var(--text-dim); font-weight:400; margin-top:2px; }
.fixture-teams{ flex:1; }
.fixture-team-row{ display:flex; align-items:center; justify-content:space-between; font-size:14px; font-weight:500; padding:2px 0; }
.fixture-score{ font-family:'DM Mono',monospace; font-weight:600; color:var(--text-dim); }
.fixture-comp{ font-size:10px; color:var(--text-dim); margin-top:4px; text-transform:uppercase; letter-spacing:0.3px; }
.live-pill{ font-size:9px; font-weight:700; color:#fff; background:var(--live); padding:2px 6px; border-radius:5px; flex-shrink:0; }

/* ===== Équipe (page-equipe.php / single-team.php) ===== */
.team-hero{ margin:18px 20px; padding:26px 22px; border-radius:18px; background:linear-gradient(155deg,#1C3A2A 0%,#0F1F17 75%); border:1px solid #23402E; text-align:center; position:relative; overflow:hidden; }
.crest{ width:74px; height:74px; border-radius:50%; background:var(--card); border:2px solid var(--gold-dim); display:flex; align-items:center; justify-content:center; font-size:34px; margin:0 auto 14px; }
.team-hero h1{ font-size:24px; font-weight:700; margin-bottom:4px; }
.team-hero .sub{ font-size:13px; color:var(--text-dim); }
.hero-stats{ display:flex; justify-content:center; gap:10px; margin-top:20px; }
.hero-stat{ background:rgba(11,15,13,0.5); border:1px solid var(--line); border-radius:12px; padding:10px 16px; min-width:78px; }
.hero-stat .val{ font-family:'DM Mono',monospace; font-size:18px; font-weight:600; color:var(--gold); display:block; }
.hero-stat .lbl{ font-size:10px; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.4px; }
.team-tabs{ display:flex; gap:6px; padding:20px 20px 0; }
.team-tab{ flex:1; text-align:center; padding:10px 0; border-radius:9px; font-size:13px; font-weight:600; background:var(--card); color:var(--text-dim); border:1px solid var(--line); }
.team-tab.active{ background:var(--card-2); color:var(--gold); border-color:var(--gold-dim); }
.next-match{ margin:18px 20px 0; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px 16px; display:flex; align-items:center; justify-content:space-between; }
.next-match-info{ font-size:12px; color:var(--text-dim); margin-bottom:6px; }
.next-match-teams{ font-size:15px; font-weight:600; }
.next-match-date{ font-family:'DM Mono',monospace; font-size:13px; color:var(--gold); background:rgba(244,183,64,0.1); padding:6px 10px; border-radius:8px; }
.squad-section{ padding:22px 20px 0; }
.pos-title{ font-size:12px; font-weight:700; color:var(--gold); text-transform:uppercase; letter-spacing:0.6px; margin:18px 0 10px; }
.pos-title:first-child{ margin-top:0; }
.player-row{ display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.player-row:last-child{ border-bottom:none; }
.jersey{ width:32px; height:32px; border-radius:8px; background:var(--card); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-family:'DM Mono',monospace; font-size:13px; font-weight:600; color:var(--text-dim); flex-shrink:0; }
.player-name{ font-size:14px; font-weight:500; }
.player-meta{ font-size:11px; color:var(--text-dim); }
.captain-tag{ font-size:10px; font-weight:700; color:var(--bg); background:var(--gold); padding:2px 6px; border-radius:5px; margin-left:6px; }

/* ===== Actus (page-actus.php / archive.php) ===== */
.lead-article{ margin:18px 20px 0; border-radius:18px; padding:24px 22px 26px; background:linear-gradient(155deg,#1C3A2A 0%,#0F1F17 70%); border:1px solid #23402E; position:relative; overflow:hidden; display:block; }
.lead-article h2{ font-size:23px; line-height:1.25; font-weight:700; margin-bottom:10px; }
.lead-article p{ font-size:14px; line-height:1.5; color:#C9D3CD; margin-bottom:12px; }
.lead-meta{ font-size:12px; color:var(--text-dim); }
.feed{ padding:22px 20px 0; display:flex; flex-direction:column; gap:12px; }
.feed-card{ display:flex; gap:14px; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:12px; }
.feed-thumb{ width:72px; height:72px; border-radius:10px; flex-shrink:0; background:linear-gradient(155deg,#1C3A2A,#0F1F17); display:flex; align-items:center; justify-content:center; font-size:26px; border:1px solid var(--line); }
.feed-cat{ font-size:10px; color:var(--gold); font-weight:700; text-transform:uppercase; letter-spacing:0.4px; }
.feed-headline{ font-size:14px; font-weight:600; line-height:1.35; margin:5px 0 6px; }
.feed-meta{ font-size:11px; color:var(--text-dim); }

/* ===== Pages légales (page.php générique) ===== */
.legal-head{ padding:24px 20px 6px; }
.legal-head h1{ font-size:24px; font-weight:700; margin-bottom:6px; }
.legal-head p{ font-size:12px; color:var(--text-dim); }
.toc{ margin:18px 20px; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px 18px; }
.toc-title{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--text-dim); margin-bottom:10px; }
.toc a{ display:block; font-size:13px; color:var(--text); padding:5px 0; }
.toc a::before{ content:"→ "; color:var(--gold); }
.legal-body{ padding:6px 20px 30px; }
.legal-body h2{ font-size:16px; font-weight:700; color:var(--gold); margin:26px 0 10px; }
.legal-body h2:first-child{ margin-top:0; }
.legal-body p{ font-size:14px; line-height:1.65; color:#C9D3CD; margin-bottom:12px; }
.legal-body ul{ margin:0 0 12px 18px; }
.legal-body li{ font-size:14px; line-height:1.65; color:#C9D3CD; margin-bottom:6px; }
.data-table{ width:100%; border-collapse:collapse; margin:14px 0; background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.data-table th{ font-size:11px; text-transform:uppercase; letter-spacing:0.4px; color:var(--text-dim); text-align:left; padding:10px 12px; background:#101713; border-bottom:1px solid var(--line); }
.data-table td{ font-size:13px; padding:10px 12px; border-bottom:1px solid var(--line); color:#C9D3CD; }
.info-box{ background:var(--card-2); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin:16px 0; font-size:13px; color:var(--text-dim); line-height:1.6; }
.info-box strong{ color:var(--text); }
.warning-box{ background:rgba(225,75,75,0.08); border:1px solid rgba(225,75,75,0.3); border-radius:12px; padding:14px 16px; margin:16px 0; font-size:13px; color:#E8B4B4; line-height:1.6; }
.warning-box strong{ color:var(--live); }

/* ===== Responsive : tablette (600–899px) ===== */
@media (min-width:600px) and (max-width:899px){
  .app{ max-width:720px; padding-bottom:90px; }
  .matches, .feed{ display:grid; grid-template-columns:1fr 1fr; }
  .legal-head, .toc, .legal-body{ padding-left:28px; padding-right:28px; }
}

/* ===== Responsive : desktop (≥900px) ===== */
@media (min-width:900px){
  .app{ max-width:1080px; padding-bottom:60px; }
  header.site-header{ padding:20px 32px; }
  .top-nav{ display:flex; gap:28px; }
  nav.bottom{ display:none; }
  .layout{ display:grid; grid-template-columns:1fr 320px; gap:28px; padding:0 32px; align-items:start; }
  .sidebar{ display:block; position:sticky; top:20px; }
  .matches{ display:grid; grid-template-columns:1fr 1fr; padding:0; }
  .feed{ display:grid; grid-template-columns:1fr 1fr 1fr; padding:26px 32px 0; }
}
