/* ═══════════════════════════════════════════
   programmetv-foot.fr — style.css
   ═══════════════════════════════════════════ */

:root {
  --green:        #00C853;
  --green-dark:   #009624;
  --bg:           #0a1628;
  --card:         #111e35;
  --card-hover:   #172540;
  --border:       rgba(255,255,255,0.07);
  --white:        #ffffff;
  --grey:         #7a8ea8;
  --radius:       10px;
  --font-title:   'Bebas Neue', sans-serif;
  --font-body:    'Figtree', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  background-image: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(0,200,83,0.10) 0%, transparent 60%);
}

/* ─── LAYOUT ─── */
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Dans le contexte 3col, le wrap prend tout l'espace dispo */
.wrap-3col .wrap {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
}

/* ─── HEADER ─── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 16px;
}
.logo {
  font-family: var(--font-title); font-size: 1.5rem; letter-spacing: 0.03em;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.logo span { color: var(--green); }
.logo-icon {
  width: 30px; height: 30px; background: var(--green); border-radius: 7px;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
nav { display: flex; align-items: center; gap: 2px; position: absolute; left: 50%; transform: translateX(-50%); }
nav a {
  font-size: 0.9rem; font-weight: 600; color: var(--grey); text-decoration: none;
  padding: 6px 10px; border-radius: 7px;
  transition: color .15s, background .15s; white-space: nowrap;
}
nav a:hover  { color: var(--white); background: rgba(255,255,255,0.06); }
nav a.active { color: var(--green); }
.nav-cta { background: var(--green) !important; color: #0a1628 !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--green-dark) !important; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; }
/* ─── DROPDOWN NAV ─── */
nav .has-dropdown {
  position: relative;
  display: flex; align-items: center;
}
nav .has-dropdown > .nav-label {
  font-size: 0.8rem; font-weight: 600; color: var(--grey);
  padding: 6px 10px; border-radius: 7px; cursor: default;
  transition: color .15s, background .15s; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
  user-select: none;
}
nav .has-dropdown > .nav-label::after,
nav .has-dropdown > a::after {
  content: ' ▾'; font-size: 0.6em; opacity: 0.6;
}
nav .has-dropdown:hover > .nav-label,
nav .has-dropdown:hover > a {
  color: var(--white); background: rgba(255,255,255,0.06);
}
nav .dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  padding-top: 8px;
  z-index: 500;
}
nav .has-dropdown:hover .dropdown,
nav .has-dropdown:focus-within .dropdown { display: block; }
nav .dropdown-inner {
  background: #0c1a2e;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  min-width: 185px;
  padding: 6px 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  position: relative;
}
nav .dropdown-inner::before {
  content: '';
  position: absolute;
  top: -5px; left: 50%; transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid rgba(255,255,255,0.12);
}
nav .dropdown a {
  display: block; padding: 7px 16px;
  font-size: 0.82rem; font-weight: 600;
  color: #a0b4c8; background: none;
  border-radius: 0; white-space: nowrap;
}
nav .dropdown a:hover { color: var(--green); background: rgba(0,200,83,0.06); }



/* ─── HERO ─── */
.hero { padding: 40px 0 28px; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); background: rgba(0,200,83,0.08); border: 1px solid rgba(0,200,83,0.2);
  padding: 4px 14px; border-radius: 100px; margin-bottom: 16px;
}
h1 { font-family: var(--font-title); font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.05; letter-spacing: 0.02em; margin-bottom: 12px; }
h1 em { font-style: normal; color: var(--green); }
.hero-sub { font-size: 0.95rem; color: var(--grey); max-width: 480px; margin: 0 auto; line-height: 1.6; }

/* ─── SECTION ─── */
.section { padding: 8px 0 48px; }

/* ─── BLOC JOUR ─── */
.jour-bloc { margin-bottom: 28px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.jour-titre {
  font-family: var(--font-title); font-size: 2rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); padding: 10px 20px; background: rgba(0,200,83,0.05); border-bottom: 1px solid rgba(0,200,83,0.15);
}

/* ─── LIGNE MATCH (desktop) ─── */
.match-bloc,
a.match-bloc {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px; height: 70px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--white);
  cursor: pointer;
}
.match-bloc:last-child { border-bottom: none; }
.match-bloc:hover      { background: var(--card-hover); }
.match-bloc { cursor: pointer; }
.match-bloc.is-live {
  background: rgba(255, 50, 50, 0.05);
  border-left: 3px solid #FF3333;
}

/* Reset liens dans le bloc match */
.match-bloc a,
.match-bloc a:visited {
  color: inherit;
  text-decoration: none;
}
.match-bloc a:hover { color: var(--green); }

.match-heure a,
.match-heure a:visited { color: var(--white); }

.match-compet a,
.match-compet a:visited { color: var(--green); }
.match-compet a:hover { color: #fff; }

.live-badge {
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #fff;
  background: #FF3333;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.match-row-top {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; width: 160px;
}
.match-heure { font-family: var(--font-title); font-size: 1.3rem; letter-spacing: 0.04em; flex-shrink: 0; }
.match-chaine { width: 85px; height: 30px; display: flex; align-items: center; flex-shrink: 0; }
.match-chaine img { max-width: 85px; max-height: 30px; width: auto; height: auto; opacity: 0.85; }
.match-chaine img:hover { opacity: 1; }

.match-row-mid { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; justify-content: center; }

.match-equipe-dom,
.match-equipe-ext { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.match-equipe-dom { justify-content: flex-end; }
.match-equipe-ext { justify-content: flex-start; }

/* Le <a> qui entoure logo+nom doit aussi être flex */
.match-equipe-dom a,
.match-equipe-ext a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.match-logo { flex-shrink: 0; width: 40px; height: 40px; object-fit: contain; display: block; }

.match-dom,
.match-ext { font-size: 0.9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.match-vs { flex-shrink: 0; color: var(--grey); font-size: 0.85rem; }

.match-compet {
  flex-shrink: 0; width: 160px; font-size: 0.82rem; font-weight: 600;
  color: var(--green); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ─── SECTIONS CHAÎNES / COMPÉTITIONS ─── */
.section-extra {
  padding: 0 0 48px;
}
.section-extra-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-extra-title a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
}
.section-extra-title a:hover { text-decoration: underline; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.card-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  transition: background .15s, border-color .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.card-item:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.15); }

.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: rgba(255,255,255,0.06);
}
.card-icon.green  { background: rgba(0,200,83,0.12); }
.card-icon.blue   { background: rgba(30,100,255,0.12); }
.card-icon.orange { background: rgba(255,140,0,0.12); }
.card-icon.red    { background: rgba(255,60,60,0.12); }
.card-icon.purple { background: rgba(160,80,255,0.12); }

.card-label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}
.card-sub {
  font-size: 0.7rem;
  color: var(--grey);
}

/* ─── FOOTER REFAIT ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 16px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: inline-flex;
}
.footer-brand p {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.82rem;
  color: var(--grey);
  text-decoration: none;
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p  { font-size: 0.75rem; color: var(--grey); }
.footer-bottom a  { color: var(--grey); text-decoration: none; }
.footer-bottom a:hover { color: var(--green); }

@media (max-width: 700px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* ─── RESPONSIVE MOBILE (un seul bloc) ─── */
@media (max-width: 700px) {
  .hamburger { display: flex; }
  nav {
    display: none;
    position: static; /* annule le centrage absolu desktop */
    left: auto; transform: none;
    width: 100%;
    /* overlay plein écran */
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(10,22,40,0.98); border-bottom: 1px solid var(--border);
    padding: 12px 16px; flex-direction: column;
  }
  nav.open { display: flex; }
  nav a { padding: 10px 12px; }

  /* Dropdowns mobile : accordéon */
  nav .has-dropdown { flex-direction: column; align-items: flex-start; width: 100%; }
  nav .has-dropdown > a,
  nav .has-dropdown > .nav-label { width: 100%; box-sizing: border-box; }
  nav .dropdown {
    position: static; transform: none;
    padding-top: 0; width: 100%;
  }
  nav .dropdown-inner {
    background: transparent; border: none;
    border-left: 2px solid rgba(0,200,83,0.4);
    border-radius: 0; box-shadow: none;
    padding: 2px 0 2px 8px; margin-left: 10px; min-width: 0;
  }
  nav .dropdown-inner::before { display: none; }
  nav .has-dropdown.open .dropdown { display: block; }
  nav .has-dropdown > a::after,
  nav .has-dropdown > .nav-label::after { content: ' ▾'; float: right; }
  nav .has-dropdown.open > a::after,
  nav .has-dropdown.open > .nav-label::after { content: ' ▴'; }

  .match-bloc {
    flex-direction: column; align-items: stretch;
    height: auto; padding: 10px 14px; gap: 6px;
  }
  .match-row-top { width: auto; gap: 10px; align-items: center; }
  .match-heure { font-size: 1rem; }
  .match-chaine { width: 60px; height: 22px; justify-content: flex-start; }
  .match-chaine img { max-width: 60px; max-height: 22px; }

  /* Cacher tous les logos clubs */
  .match-logo { display: none !important; }

  .match-compet { width: auto; text-align: left; font-size: 0.68rem; color: rgba(122,142,168,0.7); }
}

.wrap-3col {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0 auto;
}

.col-pub {
  width: 160px;
  min-width: 160px;
  max-width: 160px;
  flex-shrink: 0;
  overflow: hidden;
}

.pub-sticky {
  position: sticky;
  top: 80px;
  padding: 8px 4px;
}

/* Cacher sur les écrans trop petits */
@media (max-width: 1200px) {
  .col-pub { display: none; }
}
.logo img {
  height: 50px;
  width: auto;
}