/* -------------------------------------------------
   1) Déclaration de la police personnalisée
------------------------------------------------- */
@font-face {
  font-family: 'PrometheusSC';
  src: url('fonts/univiapro-regular-webfont.woff2') format('woff2'),
       url('fonts/univiapro-regular-webfont.woff')  format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------
   2) Variables de couleurs & reset basique
------------------------------------------------- */
:root {
  --color-dark: #0A0E1A;
  --color-gold: #D4AF37;
  --color-white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: 'PrometheusSC', Georgia, serif;
  background-color: var(--color-dark);
  color: var(--color-white);
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  background: none;
  border: none;
}

/* -------------------------------------------------
   3) Conteneur général & header fixe
------------------------------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-dark);
  padding: 20px 0;
  z-index: 1000;
}

main {
  margin-top: 90px; /* pour compenser header */
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
}

/* -------------------------------------------------
   4) Navigation principale (desktop)
------------------------------------------------- */
nav {
  position: relative; /* pour menu mobile */
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

nav ul li a {
  font-size: 16px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  padding: 4px 0;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.3s ease, left 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
  left: 0;
}

/* Bouton "Nous rejoindre" */
.btn-nav {
  border: 2px solid var(--color-gold);
  padding: 8px 16px;
  color: var(--color-gold);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  transition: background 0.3s, color 0.3s;
}

.btn-nav:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* -------------------------------------------------
   5) Burger icon (caché par défaut)
------------------------------------------------- */
.burger {
  display: none;
  width: 25px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 2px;
}

/* -------------------------------------------------
   6) Responsive mobile: nouveau design du menu
------------------------------------------------- */
@media (max-width: 576px) {

  /* 1) Cacher le menu desktop */
  nav ul {
    display: none;
  }

  /* 2) Afficher le burger en haut à droite */
  .burger {
    display: flex;
    position: fixed;
    top: 25px;
    right: 20px;
    z-index: 1002;
  }

  /* 3) Menu mobile : panneau coulissant depuis la droite */
  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(10, 14, 26, 0.95);
    transition: width 0.3s ease-in-out;
    z-index: 1001;
  }
  nav.open {
    width: 240px;
  }

  /* 4) Items du menu mobile */
  nav.open ul {
    display: flex;
    flex-direction: column;
    margin-top: 80px;    /* décale sous le header */
    padding: 0 20px;
  }
  nav.open ul li {
    margin-bottom: 30px;
  }
  nav.open ul li a {
    font-size: 18px;
    display: block;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  /* 5) Bouton "Nous rejoindre" plein largeurs */
  nav.open ul li .btn-nav {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    border-radius: 4px;
  }
}

/* -------------------------------------------------
   7) Section Hero (fonds, overlay, logo, bouton)
------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-image: url("msr-lune.jpg");
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

.hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 14, 26, 0.6);
  z-index: 1;
}

.hero .hero-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 400px;
  text-align: center;
}

.hero .hero-logo {
  margin-bottom: 12px;
}

.hero .hero-subtitle {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 25px;
}

.hero .hero-button-wrapper {
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.btn-hero {
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s, color 0.3s;
}

.btn-hero:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

@media (max-width: 992px) {
  .hero .hero-content { left: 5%; max-width: 300px; }
  .hero .hero-subtitle { font-size: 16px; }
  .hero .hero-button-wrapper { bottom: 60px; }
  .btn-hero { padding: 10px 20px; font-size: 14px; }
}
@media (max-width: 576px) {
  .hero .hero-content { left: 5%; max-width: 250px; }
  .hero .hero-subtitle { font-size: 14px; }
  .hero .hero-button-wrapper { bottom: 40px; }
  .btn-hero { padding: 8px 16px; font-size: 12px; }
}

/* -------------------------------------------------
   8) Sections “Qui sommes-nous”, “Nous rejoindre”, “Events”
------------------------------------------------- */
.section-bg {
  position: relative;
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center center;
  padding: 80px 0;
  margin-bottom: 60px;
}

.section-bg .section-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(10, 14, 26, 0.6);
  z-index: 1;
}

.section-content-wrapper {
  position: relative;
  z-index: 2;
}

#qui-sommes-nous.section-bg,
#events.section-bg {
  background-position-x: 80%;
}
#qui-sommes-nous .section-title,
#events .section-title {
  max-width: 600px;
  margin: 10% 0 0 auto;
  text-align: right;
}
#qui-sommes-nous .section-text,
#events .section-text {
  max-width: 600px;
  margin: 0 0 0 auto;
  text-align: right;
}

#nous-rejoindre.section-bg {
  background-position-x: 20%;
}
#nous-rejoindre .section-title {
  max-width: 600px;
  margin: 10% auto 0 0;
  text-align: left;
}
#nous-rejoindre .section-text {
  max-width: 600px;
  margin: 0 auto 0 0;
  text-align: left;
}
.section-text p {
  margin-bottom: 20px;
}
.btn-section {
  margin-top: 20px;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  padding: 10px 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s, color 0.3s;
}
.btn-section:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* Définition du background-image selon l’ID de la section */
#qui-sommes-nous.section-bg {
  background-image: url("cloudgas.jpg");
  background-size: auto;
  /* background-position: left center; */
  background-position-x: 80%;
  background-repeat: no-repeat;
  margin: 60 0 0 0;
}
#nous-rejoindre.section-bg {
  background-image: url("image.png");
    background-size: auto;
  /* background-position: left center; */
  background-position-x: 20%;
  background-repeat: no-repeat;
  margin: 60 0 0 0;
}
#events.section-bg {
  background-image: url("bengal.jpg");
    background-size: auto;
  /* background-position: left center; */
  background-position-x: 80%;
  background-repeat: no-repeat;
  margin: 60 0 0 0;
}

/* -------------------------------------------------
   9) Footer
------------------------------------------------- */
footer {
  width: 100%;
  background-color: var(--color-dark);
  padding: 20px 0;
  text-align: center;
  color: var(--color-gold);
}

/* -------------------------------------------------
 10) Media queries pour sections-bg
------------------------------------------------- */
@media (max-width: 992px) {
  .section-bg { padding: 60px 0; }
  .section-title { font-size: 16px; }
  .section-text p { font-size: 16px; margin-bottom: 16px; }
  .btn-section { padding: 8px 16px; font-size: 14px; }
}
@media (max-width: 576px) {
  .section-bg { padding: 40px 0; }
  .section-title { font-size: 14px; }
  .section-text p { font-size: 14px; margin-bottom: 12px; }
  .btn-section { padding: 6px 12px; font-size: 12px; }
}
