/* ============================================================
   FIERAU GAMES — style.css (racine, partagé par toutes pages)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #e0190f;
  --dark-red: #9a0f0a;
  --black:    #0a0a0a;
  --dark:     #111111;
  --dark2:    #1a1a1a;
  --white:    #f0f0f0;
  --grey:     #888888;
  --grey2:    #444444;
  --nav-h:    70px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
img  { max-width: 100%; display: block; }
a    { color: inherit; }

/* ── NAVBAR ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,10,0.97);
  border-bottom: 2px solid var(--red);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: var(--nav-h);
  backdrop-filter: blur(10px);
}

.nav-logo {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
  width: 50px; height: 50px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--red);
}
.nav-logo .logo-fallback {
  width: 50px; height: 50px; border-radius: 50%;
  border: 2px solid var(--red); background: var(--dark2);
  display: none; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; color: var(--red);
}
.nav-logo span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; color: var(--white); letter-spacing: 2px;
}

.nav-links { display: flex; list-style: none; }
.nav-links a {
  color: var(--white); text-decoration: none;
  font-size: .78rem; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; padding: .4rem .6rem; border-radius: 3px;
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover  { color: var(--red); background: rgba(224,25,15,.1); }
.nav-links a.active { color: var(--red); }

.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-social a { color: var(--white); transition: color .2s; display: flex; align-items: center; }
.nav-social a:hover { color: #E1306C; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 5px; background: none; border: none;
}
.hamburger span {
  display: block; width: 25px; height: 2px;
  background: var(--white); transition: .3s; border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  margin-top: var(--nav-h); padding: 4rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, #150505 0%, var(--black) 100%);
  border-bottom: 1px solid #2a2a2a;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 300px; height: 2px; background: var(--red);
}
.page-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: 4px;
  text-shadow: 0 0 40px rgba(224,25,15,.4);
}
.page-header p { margin-top: .6rem; color: var(--grey); font-size: 1.05rem; }

/* ── SECTIONS ────────────────────────────────────────────── */
section { padding: 4rem 2rem; }

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: 3px; text-align: center; margin-bottom: .4rem;
}
.section-line { width: 70px; height: 3px; background: var(--red); margin: 0 auto 3rem; }
.container    { max-width: 1100px; margin: 0 auto; }

/* ── BOUTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .7rem 2rem;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: 2px;
  text-decoration: none; border-radius: 3px;
  transition: background .2s, transform .2s, box-shadow .2s;
  border: none; cursor: pointer;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--dark-red); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(224,25,15,.3); }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--dark2); border: 1px solid #2a2a2a; border-radius: 6px; overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(224,25,15,.15); }
.tag { font-size: .72rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 2px; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: #060606; border-top: 2px solid var(--red); padding: 2.5rem 2rem; text-align: center; }
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-logo  { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 3px; margin-bottom: 1rem; }
.footer-logo span { color: var(--red); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; list-style: none; margin-bottom: 1.5rem; }
.footer-links a { color: var(--grey); text-decoration: none; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: color .2s; }
.footer-links a:hover { color: var(--red); }
.footer-copy { color: var(--grey2); font-size: .82rem; line-height: 1.6; }

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--red), transparent); }
.timeline-item { position: relative; margin-bottom: 2.5rem; padding-left: 2rem; }
.timeline-item::before { content: ''; position: absolute; left: -.45rem; top: .3rem; width: 12px; height: 12px; background: var(--red); border-radius: 50%; box-shadow: 0 0 10px rgba(224,25,15,.5); }
.timeline-date { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; color: var(--red); letter-spacing: 2px; margin-bottom: .3rem; }
.timeline-item h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 1px; margin-bottom: .5rem; }
.timeline-item p { color: var(--grey); font-size: .95rem; line-height: 1.65; }

/* ── EN COURS ────────────────────────────────────────────── */
.en-cours-section { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 5rem 2rem; min-height: 55vh; }
.logo-circle { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 4px solid var(--red); margin-bottom: 2rem; box-shadow: 0 0 60px rgba(224,25,15,.3); }
.en-cours-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem,12vw,8rem); letter-spacing: 8px; text-shadow: 0 0 40px rgba(224,25,15,.3); }
.en-cours-sub { color: var(--grey); font-size: 1.1rem; margin-top: .8rem; max-width: 500px; }

/* ── INFO CARDS (pages filières EN COURS) ────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.info-card { background: var(--dark2); border: 1px solid #2a2a2a; border-radius: 6px; padding: 1.8rem 1.5rem; text-align: center; transition: border-color .3s, transform .3s; }
.info-card:hover { border-color: var(--red); transform: translateY(-4px); }
.info-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.info-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--red); letter-spacing: 2px; margin-bottom: .5rem; }
.info-card p  { font-size: .9rem; color: var(--grey); line-height: 1.55; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; max-width: 1000px; margin: 0 auto; }
.contact-info-col h3 { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 2px; color: var(--red); margin-bottom: 1.8rem; }
.c-item { margin-bottom: 1.5rem; }
.c-item .lbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--grey); margin-bottom: .3rem; }
.c-item .val { font-size: 1rem; color: var(--white); font-weight: 600; }
.c-item a { text-decoration: none; transition: color .2s; }
.c-item a:hover { color: var(--red); }
.c-social { display: flex; gap: 1rem; margin-top: 2rem; }
.c-social a { display: flex; align-items: center; gap: .5rem; padding: .6rem 1.2rem; background: var(--dark2); border: 1px solid #333; border-radius: 4px; text-decoration: none; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: border-color .2s, color .2s; }
.c-social a:hover { border-color: var(--red); color: var(--red); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--grey); margin-bottom: .4rem; }
.form-group input,.form-group textarea,.form-group select { width: 100%; background: var(--dark2); border: 1px solid #333; border-radius: 4px; padding: .75rem 1rem; color: var(--white); font-family: 'Rajdhani', sans-serif; font-size: 1rem; transition: border-color .2s, box-shadow .2s; outline: none; }
.form-group input:focus,.form-group textarea:focus,.form-group select:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(224,25,15,.15); }
.form-group select option { background: var(--dark2); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.success-msg { display: none; background: rgba(76,175,80,.1); border: 1px solid rgba(76,175,80,.3); border-radius: 4px; padding: 1.2rem; text-align: center; color: #4caf50; margin-top: 1rem; font-weight: 600; }
.error-msg   { display: none; background: rgba(224,25,15,.1); border: 1px solid rgba(224,25,15,.3); border-radius: 4px; padding: 1.2rem; text-align: center; color: var(--red); margin-top: 1rem; font-weight: 600; }
.btn-submit  { width: 100%; margin-top: .5rem; padding: .9rem; font-size: 1.1rem; letter-spacing: 3px; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity:0; transform:translateY(25px); } to { opacity:1; transform:translateY(0); } }
.anim    { animation: fadeInUp .7s ease both; }
.anim-d1 { animation-delay: .1s; }
.anim-d2 { animation-delay: .2s; }
.anim-d3 { animation-delay: .3s; }
.anim-d4 { animation-delay: .4s; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(10,10,10,.99); flex-direction: column; padding: 1rem 1.5rem 2rem; border-bottom: 2px solid var(--red); }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; padding: .6rem .5rem; }
  .hamburger { display: flex; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section { padding: 3rem 1.2rem; }
  .page-header { padding: 3rem 1.2rem 2rem; }
}
