/* ============================================================================
   ECF — feuille de styles publique (Thymeleaf)
   Extrait minimal du SCSS Angular initial. Sera regénéré depuis web/ via un
   build SCSS dédié dans une étape ultérieure.
   ============================================================================ */

:root {
  --ecf-primary: #0f1013;
  --ecf-primary-alt: #1b1d23;
  --ecf-accent: #7ED321;
  --ecf-accent-dark: #5ab214;
  --ecf-white: #ffffff;
  --ecf-muted: #6a7280;
  --ecf-bg: #f7f8fa;
  --ecf-border: #e4e7eb;
  --ecf-text: #1a1d22;
  --ecf-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --ecf-shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --ecf-radius: 12px;
  --ecf-radius-sm: 6px;
}

* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ecf-text);
  background: var(--ecf-white);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: 'Archivo Black', 'Inter', sans-serif; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem;
  text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s;
  cursor: pointer; border: 0;
}
.btn-primary { background: var(--ecf-accent); color: var(--ecf-primary); }
.btn-primary:hover { background: var(--ecf-accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ecf-primary); border: 2px solid var(--ecf-primary); }
.btn-outline:hover { background: var(--ecf-primary); color: white; }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }

.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--ecf-accent); color: var(--ecf-primary); }
.badge-muted { background: var(--ecf-bg); color: var(--ecf-muted); }

.card { background: white; border-radius: var(--ecf-radius); box-shadow: var(--ecf-shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--ecf-shadow-lg); }

.section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-eyebrow { display: inline-block; color: var(--ecf-accent-dark); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: .75rem; }

.empty { text-align: center; padding: 3rem; color: var(--ecf-muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(15,16,19,.95); backdrop-filter: blur(12px); transition: background .2s; }
.site-header.scrolled { background: rgba(15,16,19,.98); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; color: white; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: white; }
.brand-logo { width: auto; height: 52px; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.footer-logo { height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-weight: 800; font-size: 1rem; }
.brand-sub { font-size: .72rem; opacity: .65; text-transform: uppercase; letter-spacing: .08em; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; font-size: .95rem; padding: .25rem 0; position: relative; }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--ecf-accent); }
.nav-links a:hover { color: var(--ecf-accent); }
.nav-links a.btn { padding: .4rem .9rem; }
.nav-links a.btn:hover { color: var(--ecf-primary); }
.burger { display: none; background: transparent; padding: .5rem; }
.burger span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; transition: .2s; }
@media (max-width: 960px) {
  .burger { display: block; }
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: var(--ecf-primary); flex-direction: column; gap: 0; padding: 1rem; transform: translateY(-120%); transition: transform .2s; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .75rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.06); }
}
main { min-height: 60vh; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ecf-primary); color: rgba(255,255,255,.85); padding: 3rem 0 1rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.footer-brand strong { font-family: 'Archivo Black', sans-serif; color: white; }
.footer-tagline { opacity: .7; font-size: .9rem; }
.footer-meta { opacity: .5; font-size: .8rem; }
.site-footer h4 { color: white; font-family: 'Inter', sans-serif; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a, .site-footer a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem; }
.footer-links a:hover, .site-footer a:hover { color: var(--ecf-accent); }
.socials { display: flex; gap: 1rem; margin-bottom: 1rem; }
.admin-link { display: inline-block; font-size: .75rem !important; opacity: .5; }
.footer-bottom { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); opacity: .6; }
.site-footer p { margin: .35rem 0; font-size: .9rem; }

/* ---------- Blocs ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: white; background-size: cover; background-position: center; background-color: var(--ecf-primary); }
.hero.compact { min-height: 38vh; }
.hero-inner { padding: 4rem 1.25rem; text-align: center; }
.hero-inner h1 { color: white; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.25rem; opacity: .9; margin-bottom: 2rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; text-align: center; }
.stat-value { font-family: 'Archivo Black', sans-serif; font-size: 2.5rem; color: var(--ecf-accent-dark); }
.stat-label { color: var(--ecf-muted); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }

.text-narrow { max-width: 720px; margin: 0 auto; }
.text-narrow p { margin: 1rem 0; }

.news-preview .news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.news-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.news-cover { aspect-ratio: 16/9; background-size: cover; background-position: center; background-color: var(--ecf-bg); }
.news-body { padding: 1.25rem; }
.news-excerpt { color: var(--ecf-muted); font-size: .9rem; }

.matches-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.match-card { padding: 1.25rem; text-align: center; }
.match-date { color: var(--ecf-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.match-teams { font-weight: 700; margin: .5rem 0; }
.match-teams .vs { color: var(--ecf-muted); font-size: .8rem; margin: 0 .35rem; }
.match-meta { color: var(--ecf-muted); font-size: .85rem; }

.cta-section { background: var(--ecf-primary); color: white; text-align: center; }
.cta-section h2 { color: white; }
.cta-inner { max-width: 720px; margin: 0 auto; }

.bureau-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.bureau-card { padding: 1.5rem; text-align: center; }
.bureau-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--ecf-accent); color: var(--ecf-primary); display: flex; align-items: center; justify-content: center; font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; margin: 0 auto 1rem; }
.bureau-name { font-weight: 700; }
.bureau-role { color: var(--ecf-muted); font-size: .9rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--ecf-radius-sm); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.pricing-card { padding: 2rem 1.5rem; text-align: center; }
.pricing-card.featured { transform: scale(1.04); border: 2px solid var(--ecf-accent); }
.pricing-price { font-family: 'Archivo Black', sans-serif; font-size: 2rem; color: var(--ecf-accent-dark); margin: 1rem 0; }
.pricing-features { list-style: none; padding: 0; text-align: left; }
.pricing-features li { padding: .35rem 0; border-bottom: 1px solid var(--ecf-border); font-size: .9rem; }

.contact-section .contact-card { padding: 2rem; max-width: 540px; margin: 0 auto; text-align: center; }
.contact-name { font-weight: 700; font-size: 1.15rem; }
.contact-role { color: var(--ecf-muted); margin-bottom: 1rem; }

.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 760px) { .contact-info-grid { grid-template-columns: 1fr; } }
.map-embed iframe { width: 100%; height: 320px; border: 0; border-radius: var(--ecf-radius); }

.image-section figure { margin: 0; }
.image-section img { width: 100%; border-radius: var(--ecf-radius); }
.image-section figcaption { text-align: center; color: var(--ecf-muted); font-size: .9rem; margin-top: .75rem; }

.two-cols-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 760px) { .two-cols-grid { grid-template-columns: 1fr; gap: 2rem; } }

.partners-grid-section .partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; align-items: center; }
.partner-card { background: white; border-radius: var(--ecf-radius-sm); padding: 1rem; height: 110px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ecf-muted); font-weight: 600; transition: transform .2s, box-shadow .2s; border: 1px solid var(--ecf-border); }
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--ecf-shadow); }
.partner-card img { max-height: 80px; max-width: 100%; object-fit: contain; }

/* ---------- 404 ---------- */
.error-block { text-align: center; padding: 4rem 1rem; }
.error-code { font-family: 'Archivo Black', sans-serif; font-size: 6rem; color: var(--ecf-accent); margin: 0; line-height: 1; }

/* ============================================================================
   Pages publiques (listes & détails) — actualités, équipes, calendrier
   ============================================================================ */

/* En-tête de page interne */
.page-head { background: linear-gradient(135deg, var(--ecf-primary), var(--ecf-primary-alt)); color: white; padding: 4rem 0 3rem; }
.page-head h1 { color: white; }
.page-head p { opacity: .8; max-width: 640px; }
.back-link { display: inline-block; margin-top: 2rem; font-weight: 700; color: var(--ecf-accent-dark); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.back-link-light { display: inline-block; color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; margin-bottom: 1rem; }
.back-link-light:hover { color: var(--ecf-accent); }

/* Grille de cartes générique (liste actus) */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.pcard { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.pcard-cover { height: 200px; background-size: cover; background-position: center; background-color: var(--ecf-primary); }
.pcard-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.pcard-body h3 { margin: .5rem 0; }
.pcard-excerpt { color: var(--ecf-muted); font-size: .9rem; flex: 1; }
.pcard-meta { display: flex; justify-content: space-between; align-items: center; color: var(--ecf-muted); font-size: .85rem; padding-top: .75rem; border-top: 1px solid var(--ecf-border); margin-top: .75rem; }
.pcard-meta span { color: var(--ecf-accent-dark); font-weight: 700; }

/* Détail actualité */
.news-article-hero { position: relative; min-height: 380px; background-size: cover; background-position: center; background-color: var(--ecf-primary); color: white; display: flex; align-items: flex-end; padding: 3rem 0; }
.news-article-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,16,19,.9), rgba(15,16,19,.3) 70%); }
.news-article-head { position: relative; }
.news-article-head h1 { color: white; margin: .5rem 0; }
.news-article-head time { opacity: .85; }
.news-article-body { max-width: 760px; padding: 3rem 1.25rem; font-size: 1.08rem; line-height: 1.75; }
.news-article-excerpt { font-size: 1.15rem; font-weight: 500; color: var(--ecf-muted); padding-bottom: 1.25rem; border-bottom: 2px solid var(--ecf-accent); margin-bottom: 1.5rem; }
.rich p { margin: 0 0 1em; }
.rich img { border-radius: var(--ecf-radius-sm); margin: 1rem 0; }

/* Équipes (liste groupée) */
.team-group { margin-bottom: 3rem; }
.team-group h2 { margin-bottom: 1.5rem; border-left: 4px solid var(--ecf-accent); padding-left: .75rem; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.team-tile { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.team-tile-photo { height: 160px; background-size: cover; background-position: center; background-color: var(--ecf-primary); }
.team-tile-body { padding: 1.25rem; }
.team-tile-body h3 { margin: .5rem 0; }
.team-tile-body p { color: var(--ecf-muted); font-size: .9rem; margin-bottom: .75rem; }
.team-meta { margin: 0; font-size: .85rem; }
.team-meta > div { display: flex; gap: .5rem; padding: .35rem 0; border-top: 1px solid var(--ecf-border); }
.team-meta dt { font-weight: 600; color: var(--ecf-muted); min-width: 110px; margin: 0; }
.team-meta dd { margin: 0; }

/* Détail équipe */
.team-detail-hero { position: relative; min-height: 300px; background-size: cover; background-position: center; background-color: var(--ecf-primary); color: white; display: flex; align-items: flex-end; padding: 2.5rem 0; }
.team-detail-head { position: relative; }
.team-detail-head h1 { color: white; margin: .5rem 0 0; }
.team-detail-grid { margin-bottom: 2rem; }
.team-detail-info p { font-size: 1.05rem; }
.roster-title { margin-bottom: 1.5rem; border-left: 4px solid var(--ecf-accent); padding-left: .75rem; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.player-card { padding: 1rem; text-align: center; }
.player-photo { position: relative; width: 88px; height: 88px; border-radius: 50%; margin: 0 auto .75rem; background-size: cover; background-position: center; background: var(--ecf-bg); display: flex; align-items: center; justify-content: center; font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; color: var(--ecf-muted); }
.player-number { position: absolute; bottom: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--ecf-accent); color: var(--ecf-primary); font-size: .85rem; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
.player-name { font-weight: 700; font-size: .95rem; }
.player-pos { color: var(--ecf-muted); font-size: .85rem; }

/* Calendrier (tabs + lignes de match) */
.cal-tabs { display: flex; gap: .5rem; margin-bottom: 2rem; border-bottom: 2px solid var(--ecf-border); }
.cal-tab { padding: .75rem 1.5rem; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; font-weight: 600; color: var(--ecf-muted); }
.cal-tab.active { color: var(--ecf-primary); border-color: var(--ecf-accent); }
.cal-panel { margin-bottom: 1rem; }
.cal-enhanced .cal-panel { display: none; }
.cal-enhanced .cal-panel.active { display: block; }
.cal-match { display: grid; grid-template-columns: 70px 2fr 1.25fr 80px; gap: 1rem; align-items: center; padding: 1rem 1.25rem; background: white; border-radius: var(--ecf-radius); box-shadow: var(--ecf-shadow); margin-bottom: .75rem; }
.cal-result { grid-template-columns: 70px 2fr 1.25fr; }
.cal-date { text-align: center; }
.cal-day { font-family: 'Archivo Black', sans-serif; font-size: 1.8rem; color: var(--ecf-accent-dark); line-height: 1; }
.cal-month { font-size: .75rem; text-transform: uppercase; color: var(--ecf-muted); letter-spacing: .1em; }
.cal-teams { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.cal-teams .bold { font-weight: 700; }
.cal-vs { color: var(--ecf-muted); font-size: .8rem; }
.cal-score { font-family: 'Archivo Black', sans-serif; padding: .35rem .75rem; background: var(--ecf-primary); color: white; border-radius: 4px; }
.cal-meta { font-size: .85rem; }
.cal-meta .muted { color: var(--ecf-muted); }
.cal-time { font-weight: 700; text-align: right; color: var(--ecf-primary); }
@media (max-width: 680px) {
  .cal-match, .cal-result { grid-template-columns: 56px 1fr; }
  .cal-meta, .cal-time { grid-column: 2; text-align: left; }
}
