/* ==========================================================================
   GUIDEMMA.COM — Stylesheet mutualisé
   Palette MMA (rouge sang, noir octogone, gris métal, or)
   ========================================================================== */

:root {
  --mma-black: #0a0a0a;
  --mma-dark: #1a1a1a;
  --mma-gray: #2a2a2a;
  --mma-gray-light: #3a3a3a;
  --mma-red: #c0392b;
  --mma-red-dark: #8b1f12;
  --mma-red-bright: #e74c3c;
  --mma-gold: #d4af37;
  --mma-gold-light: #f1c40f;
  --mma-cream: #f5f1e8;
  --text-light: #e8e4dc;
  --text-muted: #9a9690;
  --octagon-blue: #1e3a5f;
  --shadow-card: 0 4px 16px rgba(0,0,0,0.6);
  --shadow-deep: 0 8px 32px rgba(0,0,0,0.8);
  --radius: 6px;
  --radius-lg: 12px;
  --max-width: 1180px;
  --font-display: "Bebas Neue", "Oswald", "Arial Black", sans-serif;
  --font-heading: "Oswald", "Impact", sans-serif;
  --font-body: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Imports Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  background: var(--mma-black);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(192,57,43,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(212,175,55,0.05) 0%, transparent 50%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--mma-red-bright); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mma-gold); }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--mma-cream);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}
h1 .accent { color: var(--mma-red); }

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 2.5rem 0 1.25rem;
  border-left: 4px solid var(--mma-red);
  padding-left: 1rem;
  letter-spacing: 0.03em;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 1.5rem 0 .75rem;
  color: var(--mma-gold);
  font-weight: 600;
  letter-spacing: 0.02em;
}

h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 1rem 0 .5rem;
  color: var(--mma-cream);
  font-weight: 600;
}

p { margin: 0 0 1.1rem; }

ul, ol { margin: 0 0 1.2rem 1.4rem; }
li { margin-bottom: .35rem; }

strong { color: var(--mma-cream); font-weight: 600; }
em { color: var(--mma-gold); font-style: normal; font-weight: 500; }

blockquote {
  border-left: 4px solid var(--mma-gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(212,175,55,0.06);
  font-style: italic;
  color: var(--text-light);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main { padding: 2rem 0 4rem; }

section { margin: 3rem 0; }

/* ==========================================================================
   HEADER
   ========================================================================== */

header {
  background: linear-gradient(180deg, var(--mma-black) 0%, rgba(10,10,10,0.95) 100%);
  border-bottom: 2px solid var(--mma-red);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--mma-cream);
  text-transform: uppercase;
  font-weight: 400;
}
.logo:hover { color: var(--mma-gold); }
.logo-icon {
  color: var(--mma-red);
  font-size: 1.8rem;
  line-height: 1;
}

#mainNav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
#mainNav a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  padding: .25rem 0;
}
#mainNav a:hover { color: var(--mma-red-bright); }
#mainNav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--mma-red);
  transition: width .2s;
}
#mainNav a:hover::after { width: 100%; }

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--mma-red);
  color: var(--mma-cream);
  font-size: 1.4rem;
  padding: .35rem .65rem;
  cursor: pointer;
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  #mainNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--mma-dark);
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--mma-red);
    gap: .8rem;
  }
  #mainNav.open { display: flex; }
  .hamburger { display: block; }
}

/* ==========================================================================
   HERO / BANNERS
   ========================================================================== */

.hero {
  background:
    linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(139,31,18,0.4) 100%),
    radial-gradient(circle at 30% 50%, rgba(192,57,43,0.3) 0%, transparent 60%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--mma-gray);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '⬢';
  position: absolute;
  font-size: 32rem;
  color: var(--mma-red);
  opacity: 0.04;
  right: -8rem;
  top: -6rem;
  font-family: serif;
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.hero p.tagline {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 760px;
  margin-top: 1rem;
}

.hero .breadcrumb {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mma-gold);
  margin-bottom: 1rem;
}
.hero .breadcrumb a { color: var(--text-muted); }
.hero .breadcrumb a:hover { color: var(--mma-gold); }

/* ==========================================================================
   CARDS
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--mma-dark);
  border: 1px solid var(--mma-gray);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--mma-red);
  transition: width .2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--mma-red);
  box-shadow: var(--shadow-deep);
}
.card:hover::before { width: 8px; }

.card h3, .card h4 {
  margin-top: 0;
}

.card.featured {
  border-color: var(--mma-gold);
  background: linear-gradient(135deg, var(--mma-dark) 0%, rgba(212,175,55,0.08) 100%);
}
.card.featured::before { background: var(--mma-gold); }

/* Fight cards (combattants) */
.fighter-card {
  background: var(--mma-dark);
  border: 1px solid var(--mma-gray);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: all .2s;
  position: relative;
}
.fighter-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, var(--mma-red) 50%);
  opacity: 0.3;
}
.fighter-card:hover {
  transform: translateY(-4px);
  border-color: var(--mma-red-bright);
  box-shadow: var(--shadow-deep);
}
.fighter-card .nickname {
  font-family: var(--font-heading);
  color: var(--mma-gold);
  font-style: italic;
  font-size: 0.95rem;
}
.fighter-card .category {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--mma-red-bright);
  letter-spacing: 0.08em;
  margin-bottom: .35rem;
}
.fighter-card h3 {
  margin: 0 0 .25rem;
  color: var(--mma-cream);
  font-size: 1.3rem;
}

/* Champion cards */
.champ-card {
  background: linear-gradient(135deg, var(--mma-dark) 0%, var(--mma-gray) 100%);
  border: 1px solid var(--mma-gold);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.champ-card::before {
  content: '🏆';
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 1.5rem;
  opacity: 0.5;
}
.champ-card .division {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--mma-gold);
}
.champ-card h3 { color: var(--mma-cream); margin: .35rem 0; }
.champ-card .since { font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================================================
   TABLES
   ========================================================================== */

.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--mma-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--mma-gray);
}
th {
  background: var(--mma-gray);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--mma-gold);
  font-weight: 600;
}
tbody tr:hover { background: rgba(192,57,43,0.06); }

/* ==========================================================================
   BUTTONS / CTA
   ========================================================================== */

.btn {
  display: inline-block;
  background: var(--mma-red);
  color: white;
  padding: .85rem 1.6rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn:hover {
  background: var(--mma-red-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192,57,43,0.4);
}
.btn-gold {
  background: var(--mma-gold);
  color: var(--mma-black);
}
.btn-gold:hover { background: var(--mma-gold-light); color: var(--mma-black); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--mma-red);
  color: var(--mma-red-bright);
}
.btn-outline:hover { background: var(--mma-red); color: white; }

.cta-block {
  background: linear-gradient(135deg, var(--mma-red-dark) 0%, var(--mma-black) 100%);
  border: 1px solid var(--mma-red);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-block h2 {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}
.cta-block p { font-size: 1.1rem; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-item {
  background: var(--mma-dark);
  border: 1px solid var(--mma-gray);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.faq-item h3 {
  margin: 0 0 .65rem;
  color: var(--mma-red-bright);
  font-size: 1.15rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background: var(--mma-black);
  border-top: 2px solid var(--mma-red);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  color: var(--text-muted);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--mma-gold);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--mma-gray);
  padding-bottom: .5rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: var(--text-muted); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--mma-red-bright); }

.footer-brand .logo {
  font-size: 1.4rem;
  margin-bottom: .8rem;
}
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid var(--mma-gray);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STICKY NEWSLETTER
   ========================================================================== */

.sticky-newsletter {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(135deg, var(--mma-red-dark) 0%, var(--mma-black) 100%);
  border-top: 3px solid var(--mma-gold);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.6);
  padding: 1rem 1.25rem;
  z-index: 1000;
  transform: translateY(0);
  transition: transform .35s ease;
}
.sticky-newsletter.hidden { transform: translateY(110%); }

.sticky-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  flex-wrap: wrap;
}

.sticky-close {
  position: absolute;
  top: -.35rem;
  right: 0;
  background: transparent;
  color: var(--text-light);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.sticky-close:hover { background: rgba(255,255,255,0.15); }

.sticky-text { flex: 1 1 280px; }
.sticky-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--mma-cream);
  margin-bottom: .15rem;
  font-weight: 600;
}
.sticky-text small {
  font-size: 0.85rem;
  color: var(--text-light);
  opacity: 0.85;
}

.sticky-form {
  display: flex;
  gap: .5rem;
  flex: 1 1 320px;
  max-width: 480px;
}
.sticky-form.hidden-form { display: none; }
.sticky-form input[type=email] {
  flex: 1;
  padding: .7rem 1rem;
  border: 1px solid var(--mma-gray-light);
  background: var(--mma-dark);
  color: var(--mma-cream);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.sticky-form input[type=email]:focus {
  outline: none;
  border-color: var(--mma-gold);
}
.sticky-form button {
  background: var(--mma-gold);
  color: var(--mma-black);
  border: none;
  padding: .7rem 1.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background .2s;
}
.sticky-form button:hover { background: var(--mma-gold-light); }

.sticky-success {
  display: none;
  flex: 1 1 320px;
  color: var(--mma-gold);
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sticky-success.show { display: block; }

@media (max-width: 700px) {
  .sticky-inner { gap: .85rem; }
  .sticky-text strong { font-size: 0.95rem; }
  .sticky-text small { display: none; }
  .sticky-form { flex: 1 1 100%; }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.lead { font-size: 1.15rem; color: var(--text-light); margin-bottom: 1.5rem; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.tag {
  display: inline-block;
  background: var(--mma-gray);
  color: var(--mma-gold);
  padding: .2rem .65rem;
  border-radius: 3px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: .35rem;
}
.tag-red { background: var(--mma-red-dark); color: var(--mma-cream); }
.divider { border: none; border-top: 1px solid var(--mma-gray); margin: 2rem 0; }

.info-box {
  background: rgba(30,58,95,0.2);
  border-left: 4px solid var(--octagon-blue);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--radius);
}
.info-box.gold {
  background: rgba(212,175,55,0.08);
  border-color: var(--mma-gold);
}
.info-box.red {
  background: rgba(192,57,43,0.1);
  border-color: var(--mma-red);
}
