/* ============================================
   ELEEVEN — Blog Real Madrid
   Thème SOMBRE & PREMIUM · responsive
   ============================================ */

:root {
  /* Fond sombre premium */
  --bg: #080b13;
  --bg-2: #0d1320;
  --surface: #121a2b;
  --surface-2: #18223a;

  /* Or & accents */
  --gold: #f4c430;
  --gold-soft: #ffd966;
  --gold-deep: #c99a17;

  /* Texte */
  --ink: #ffffff;        /* titres */
  --text: #c7cedd;       /* texte courant */
  --muted: #8893a7;      /* secondaire */
  --line: rgba(255, 255, 255, 0.09);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.6);
  --glow: 0 8px 30px rgba(244, 196, 48, 0.28);
  --maxw: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 11, 19, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--gold), var(--gold-deep));
  display: grid;
  place-items: center;
  color: #1a1304;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: var(--glow);
}

.brand b { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--ink);
}

/* ---------- Hero (avec photo) ---------- */
.hero {
  position: relative;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(1.05);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 75% -10%, rgba(244, 196, 48, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(8,11,19,0.55) 0%, rgba(8,11,19,0.82) 60%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  padding: 120px 0 130px;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 196, 48, 0.12);
  border: 1px solid rgba(244, 196, 48, 0.35);
  color: var(--gold-soft);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 34px;
  max-width: 600px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-gold {
  background: linear-gradient(140deg, var(--gold), var(--gold-deep));
  color: #1a1304;
  box-shadow: var(--glow);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(244, 196, 48, 0.45); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 42px;
  gap: 20px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.kicker {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

/* ---------- Grille d'articles ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(244, 196, 48, 0.4);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-thumb img { transform: scale(1.07); }

.card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,11,19,0) 40%, rgba(8,11,19,0.55) 100%);
}

.card-thumb .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: linear-gradient(140deg, var(--gold), var(--gold-deep));
  color: #1a1304;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 13px;
  border-radius: 999px;
}

.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }

.card-body .meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.card-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--ink);
  transition: color 0.2s;
}

.card:hover h3 { color: var(--gold); }

.card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }

.card-body .read {
  margin-top: auto;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Newsletter / CTA ---------- */
.cta {
  position: relative;
  border-radius: var(--radius);
  padding: 64px 40px;
  text-align: center;
  color: var(--ink);
  overflow: hidden;
  border: 1px solid rgba(244, 196, 48, 0.25);
  background:
    radial-gradient(600px 300px at 50% -30%, rgba(244, 196, 48, 0.18), transparent),
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
}

.cta h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; color: #fff; }
.cta p { color: rgba(255,255,255,0.7); margin-bottom: 30px; }

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-form input {
  flex: 1;
  min-width: 220px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.95rem;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.5); }
.cta-form input:focus { outline: none; border-color: var(--gold); }

/* ---------- Article (page seule) ---------- */
.article-hero {
  position: relative;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.article-hero .hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}

.article-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,11,19,0.55), rgba(8,11,19,0.9));
}

.article-hero .container { padding-top: 88px; padding-bottom: 72px; }

.article-hero .tag {
  display: inline-block;
  background: linear-gradient(140deg, var(--gold), var(--gold-deep));
  color: #1a1304;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 15px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.article-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 840px;
  color: #fff;
}

.article-hero .meta { margin-top: 20px; color: rgba(255,255,255,0.75); font-weight: 600; }

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 60px 24px 90px;
  font-size: 1.13rem;
  color: var(--text);
}

.article-body p { margin-bottom: 24px; }
.article-body strong { color: #fff; }
.article-body h2 { font-size: 1.7rem; font-weight: 800; margin: 44px 0 16px; letter-spacing: -0.01em; color: var(--ink); }
.article-body h3 { font-size: 1.3rem; font-weight: 700; margin: 34px 0 12px; color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 24px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--gold);
  background: var(--surface);
  padding: 20px 26px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1.18rem;
  color: var(--gold-soft);
  margin: 0 0 30px;
}
.article-body img { border-radius: var(--radius); margin: 16px 0 30px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 30px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-grid h4 { color: var(--ink); font-size: 1rem; margin-bottom: 16px; font-weight: 800; }
.footer-grid a { display: block; color: var(--muted); margin-bottom: 9px; font-size: 0.92rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--gold); }
.footer-about p { font-size: 0.92rem; margin-top: 14px; max-width: 330px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom .gold { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 90px 0 96px; }
}
