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

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #4d0000, #B22222);
  color: var(--white);
  line-height: 1.6;
  padding-top: 80px;
}

/* ========== VARIABLES ========== */
:root {
  --red: #e60000;
  --red-dark: #a80000;
  --black: #000;
  --gray-bg: #f3f3f3;
  --white: #fff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --radius: 12px;
}

/* ========== NAVBAR ========== */
.sticky-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--black);
  color: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--red);
  letter-spacing: 1px;
}

.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.nav-links a:hover {
  background-color: var(--red);
  color: var(--white);
}

/* ========== CALENDRIER ========== */
.calendrier-section {
  max-width: 1200px;
  margin: auto;
  padding: 3rem 2rem;
  text-align: center;
}

.calendrier-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--red);
}

.calendrier-section p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.embed-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

embed {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========== FOOTER ========== */
.sticky-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  font-size: 0.9rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.sticky-footer img {
  width: 30px;
  height: auto;
  margin-right: 0.5rem;
}


/* ========== ANIMATIONS D'APPARITION ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.slide-up.appear {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 1s ease;
}

.slide-left.appear {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 1s ease;
}

.slide-right.appear {
  opacity: 1;
  transform: translateX(0);
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 768px) {
  .navbar, .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .calendrier-section {
    padding: 2rem 1rem;
  }

  embed {
    height: 400px;
  }
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
}

/* Menu mobile masqué par défaut */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: var(--black);
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    width: 100%;
    text-decoration: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links a:hover {
    background-color: var(--red);
  }

  .navbar {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
}
