
/* ==========================================================
   🎨 CSS global pour l'accueil - Académie BeauxBâtons
   ========================================================== */

/* === Fonts et base === */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Crimson+Text&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Crimson Text', serif;
  background-color: #000;
  background-image: url('/assets/images/fond.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  color: #fefaf1;
}

/* === Layout === */
body {
  display: flex;
  flex-direction: row;
}
.layout {
  display: flex;
  flex-direction: row;
  width: 100%;
}

/* === Navigation === */
nav {
  width: 250px;
  background: linear-gradient(180deg, #0b0b26, #090921);
  padding: 2rem 1rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.6);
}
nav img.logo {
  width: 200px;
  margin-bottom: 2rem;
  border-radius: 50%;
  box-shadow: 0 0 20px #00f0ff;
}
nav a {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.1rem;
  color: #ffd700;
  text-decoration: none;
  margin: 0.8rem 0;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}
nav a:hover {
  background: rgba(255, 215, 0, 0.15);
  color: #ffffff;
  text-shadow: 0 0 8px #ffd700;
  transform: scale(1.05);
}

/* === Main === */
main {
  flex-grow: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}
.banner {
  width: 100%;
  max-width: 1000px;
  margin-bottom: 2rem;
}

/* === Section card === */
.section {
  background: rgba(10, 10, 30, 0.85);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  margin-bottom: 2rem;
  box-shadow: 0 0 30px #00000080;
  text-align: center;
}
.section h2 {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 1rem;
}

/* === Boutons === */
.btn {
  background: #ffd700;
  color: #000;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #fff;
  box-shadow: 0 0 10px #ffd700;
}

/* === Formulaire === */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
input, select {
  padding: 0.5rem;
  font-size: 1rem;
  background: #1c1c3a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
}
#form-section {
  display: none;
}

/* === Footer === */
footer {
  margin-top: auto;
  text-align: center;
  color: #ccc;
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* === Vidéo embed responsive === */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* === Burger Menu (mobile) === */
.burger {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  font-size: 2rem;
  z-index: 1000;
  background: #0b0b26;
  color: #ffd700;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  nav {
    position: fixed;
    top: 0;
    left: -260px;
    height: 100%;
    z-index: 999;
  }
  nav.open {
    left: 0;
  }
  .burger {
    display: block;
  }
  .layout {
    flex-direction: column;
  }
  main {
    padding: 1rem;
  }
}

/* Ajoute dans home.css */
#form-section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}
#form-section.show {
  max-height: 1000px;
}
