:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --shadow: 0 10px 25px rgba(15,23,42,.08);
  --shadow2: 0 6px 16px rgba(15,23,42,.10);
  --primary:#0b5ea8;
  --primary2:#0f78d6;
  --radius:14px;
  --t:.22s ease;
}

*{ box-sizing:border-box; margin:0; padding:0; }
body{
  font-family:Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{ color: inherit; text-decoration:none; }
.hidden{ display:none !important; }

/* TOP BAR */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: linear-gradient(135deg, var(--primary), #084b86);
  box-shadow: var(--shadow2);
}
.topbar-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  cursor:pointer;
  user-select:none;
}
.brand img{
  width:56px;
  height:56px;
  border-radius:12px;
  object-fit: cover;
  display:block;
}
.brand .title{
  color:#fff;
  font-weight:900;
  font-size: 1.05rem;
  white-space:nowrap;
}

.top-actions{ display:flex; align-items:center; gap:10px; }

.btn{
  border:none;
  cursor:pointer;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight:800;
  transition: var(--t);
  display:inline-flex;
  align-items:center;
  gap:8px;
  line-height:1;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }
.btn-ghost{
  background: rgba(255,255,255,.14);
  color:#fff;
}
.btn-ghost:hover{ background: rgba(255,255,255,.22); }

.icon-btn{
  width:42px;
  height:42px;
  justify-content:center;
  padding:0;
  font-size: 18px;
}

/* LAYOUT */
main{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 14px;
}
.section-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.card h2{ font-size: 1.08rem; }
.subtle{ color:var(--muted); font-size:.95rem; }

/* DRAWER */
.overlay{
  position:fixed;
  inset:0;
  background: rgba(2,6,23,.48);
  display:none;
  z-index:60;
}
.drawer{
  position:fixed;
  top:0;
  right:0;
  height:100%;
  width:min(86vw, 340px);
  background:#fff;
  border-left:1px solid var(--border);
  box-shadow: var(--shadow2);
  transform: translateX(110%);
  transition: var(--t);
  z-index:70;
  display:flex;
  flex-direction:column;
}
.drawer.open{ transform: translateX(0); }
.overlay.open{ display:block; }

.drawer-head{
  padding: 14px 14px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.drawer-head strong{ font-size:1.05rem; }
.drawer-body{
  padding: 10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.menu-item{
  width:100%;
  text-align:left;
  padding: 12px 12px;
  border-radius: 12px;
  border:1px solid transparent;
  background:#fff;
  cursor:pointer;
  font-weight:900;
  transition: var(--t);
  display:flex;
  align-items:center;
  justify-content:space-between;
  color: var(--text);
}
.menu-item:hover{
  background:#f8fafc;
  border-color:#eef2f7;
}

/* TABS */
.news-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 8px;
  margin-bottom: 10px;
}
.tab-btn{
  border:1px solid rgba(15,120,214,.25);
  background:#eef6ff;
  color: var(--primary);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  cursor:pointer;
  transition: var(--t);
}
.tab-btn:hover{ background:#e6f1ff; }
.tab-btn.active{
  border:none;
  background: linear-gradient(135deg, var(--primary2), var(--primary));
  color:#fff;
}
.tab-panel{ margin-top: 10px; }

/* CLUB NEWS */
.news{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top: 8px;
}
.news-item{
  border:1px solid var(--border);
  border-radius: 14px;
  background:#fff;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}
.news-title{ margin:0; font-size: 1.02rem; }
.news-meta{
  margin-top: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
  font-size: .9rem;
}

/* Button */
.btn-form{
  border:none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor:pointer;
  transition: var(--t);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
  text-decoration:none;
}
.btn-form.secondary{
  background: #eef6ff;
  color: var(--primary);
  border:1px solid rgba(15,120,214,.25);
}
.btn-form.secondary:hover{ background:#e6f1ff; }

/* YOUTUBE */
.yt-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.yt-grid{
  display:grid;
  grid-template-columns: 1.4fr .9fr;
  gap:12px;
  margin-top: 12px;
}

/* ✅ PLAYER SIZE CONTROL */
.video-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;     /* ✅ tient la hauteur */
  max-height: 420px;         /* ✅ évite la vidéo gigantesque */
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  background:#000;
}
.video-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

.yt-side{ display:flex; flex-direction:column; gap:10px; }
.yt-list{ display:flex; flex-direction:column; gap:10px; }

.yt-item{
  display:flex;
  gap:10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:#fff;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  cursor:pointer;
  transition: var(--t);
}
.yt-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
}
.yt-item.active{
  border-color: rgba(15,120,214,.45);
  box-shadow: 0 0 0 4px rgba(15,120,214,.12), 0 10px 22px rgba(15,23,42,.10);
}

.yt-thumb{
  width: 116px;
  height: 66px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow:hidden;
  background:#0b1220;
}
.yt-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.yt-meta{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.yt-title{
  font-weight: 900;
  font-size: .95rem;
  line-height: 1.2;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.yt-date{
  color: var(--muted);
  font-weight: 800;
  font-size: .86rem;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .yt-grid{ grid-template-columns: 1fr; }
  .video-wrap{ max-height: 320px; } /* ✅ sur mobile */
}

@media (max-width: 820px){
  .topbar-inner{ padding: 10px 12px; }
  .brand img{ width:52px; height:52px; }
  .brand .title{ font-size: 1.02rem; }
}

@media (max-width: 420px){
  .brand img{ width:50px; height:50px; }
  .brand .title{ font-size: 1rem; }
  .icon-btn{ width:40px; height:40px; }
  .card{ padding: 16px; }
}

/* =========================
   FACEBOOK
========================= */
.fb-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.fb-grid{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:12px;
  margin-top: 12px;
}

.fb-pages{
  border:1px solid var(--border);
  border-radius: 14px;
  background:#fff;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.fb-pages-title{
  font-weight: 900;
  color: var(--text);
  margin-bottom: 2px;
}

.fb-page-btn{
  width:100%;
  text-align:left;
  border:1px solid rgba(15,120,214,.25);
  background:#eef6ff;
  color: var(--primary);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  cursor:pointer;
  transition: var(--t);
}
.fb-page-btn:hover{ background:#e6f1ff; }
.fb-page-btn.active{
  border:none;
  background: linear-gradient(135deg, var(--primary2), var(--primary));
  color:#fff;
}

.fb-embed{
  border:1px solid var(--border);
  border-radius: 14px;
  background:#fff;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  padding: 12px;
}

.fb-frame{
  margin-top: 10px;
  border-radius: 14px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#fff;
  min-height: 560px;
}

/* Responsive */
@media (max-width: 980px){
  .fb-grid{ grid-template-columns: 1fr; }
  .fb-frame{ min-height: 520px; }
}

.fb-group{
  margin-top: 10px;
}

.fb-group-card{
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background:#fff;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}

.fb-group-title{
  font-weight: 900;
  font-size: 1.02rem;
}

.fb-group-actions{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
