/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* ===== HEADER / BANDEAU ===== */
header {
  position: fixed;          /* reste fixé en haut */
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: white;
  display: flex;
  justify-content: flex-end; /* menu à droite */
  align-items: flex-start;
  padding: 10px 20px 0 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
  overflow: visible;
}

/* LOGO FIXE */
#logo {
  position: fixed;   /* reste fixé en haut gauche */
  top: 0;
  left: 20px;
  height: 200px;
  margin: 0 !important;
  z-index: 1500;
}

/* MENU NORMAL */
nav {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-right: 40px;   /* marge à droite */
}

nav a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer; /* curseur main */
  font-size: 18px;
  transition: 0.2s;
}

nav a:hover {
  color: #cc5500;
}

/* BURGER (mobile) */
#burger {
  display: none;
  font-size: 32px;
  cursor: pointer;
  margin-right: 40px;
  z-index: 1600;
}

/* ===== PAGES ===== */
.page {
  display: none;
  min-height: 150vh;
  padding-top: 70px;
  position: relative;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0; /* fond derrière le contenu */
}

.page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3); /* atténuation blanche */
  z-index: 1; /* devant le fond mais derrière le content-box */
  pointer-events: none; /* pour ne pas bloquer le scroll ou clic */
}

.active {
  display: block;
}

/* ===== BLOCS DE CONTENU ===== */
.content-box {
  position: relative;
  z-index: 2; /* toujours au-dessus du pseudo-élément */
  background: white;
  margin: 40px auto;
  padding: 20px;
  border-radius: 12px;
  max-width: 800px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  text-align: justify;
}

/* ===== TITRES ACCUEIL ===== */
#accueil-text {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 50px; /* espace au dessus */
}

#accueil h1 {
  font-size: 4.2em;
  color: white;
  text-shadow: 8px 8px 20px rgba(0,0,0,1);
  margin-top: 7%;
}

#accueil h2 {
  font-size: 2.3em;
  color: white;
  text-shadow: 6px 6px 15px rgba(0,0,0,0.95);
  margin-top: 25px;
  margin-bottom: 70px;
}

/* ===== VIDEOS ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  padding: 20px;
}

.video-thumb {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.video-thumb:hover {
  transform: scale(1.05);
}

.video-thumb img {
  width: 100%;
  display: block;
}

.video-thumb {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
}

.thumb-wrapper {
  position: relative;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  text-shadow: 2px 2px 5px black;
  pointer-events: none;
}

.video-title {
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
}

/* ===== AUDIO ===== */
.audio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 20px;
}
.audio-grid iframe {
  border-radius: 12px;
}



/* ===== MODAL VIDEO ===== */
#modal {
  display: none;
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.85);
  justify-content:center;
  align-items:center;
  z-index:2000;
}

#modal-content {
  position: relative;
  width: 80%;
  max-width: 900px;
}

#modal iframe {
  width: 100%;
  height: 500px;
  border:none;
}

#close-modal {
  position:absolute;
  top:-40px;
  right:0;
  font-size:32px;
  color:white;
  cursor:pointer;
}

/* ----- MODAL IMAGE ----- */

/* Fond noir invisible par défaut */
#imageModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none; /* caché */
    z-index: 3000;
}

/* Quand la modal est visible → centrage vertical + horizontal */
#imageModal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image dans la modal */
.modal-content-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 15px black;
}

/* Croix de fermeture */
.close-image {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    z-index: 3100;
    text-shadow: 0px 0px 8px black;
}

#imageModal:hover .close-image {
    opacity: 1;
}


/* ===== BOUTON MAIL ===== */
.mail-btn {
  display:inline-block;
  padding:12px 24px;
  background:#dd7600;
  color:white;
  border-radius:10px;
  text-decoration:none;
  font-weight:bold;
  font-size: 18px;
  transition:0.2s;
}

.mail-btn:hover {
  background:#ff3c00;
}

.photo {
    width: 45%;
    border-radius: 10px;
    margin-top: 20px;
    cursor: pointer; /* important pour le clic / modal */
}

/* ===== RESPONSIVE ===== */
@media(max-width: 750px) {

  header {
    position: fixed;
    width: 100%;
    height: auto; /* laisse le header s'adapter au contenu */
    padding: 10px 15px; /* padding autour du contenu */
    display: flex;
    flex-direction: column; /* logo en haut, burger/menu en dessous */
    align-items: flex-start;
    z-index: 1000;
  }


  #logo {
    height: 150px; /* taille adaptée en mobile */
    margin-bottom: 10px; /* espace entre logo et menu/hamburger */
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-bottom-left-radius: 12px;
    width: 220px;
  }

  nav.open {
    display: flex;
  }

  nav a {
    margin: 10px 0;
    font-size: 18px;
  }

  #burger {
    display: block;
    margin-left: auto;
  }

  #accueil-text { margin-top: 10px;}
  #accueil h1 { font-size: 3em; }
  #accueil h2 { font-size: 1.7em; }

  .content-box {
    margin: 25px;
    padding: 18px 18px 200px 18px;
  }

   .page {
    padding-top: 150px;
  }

    .photo {
      width: 100%;
      margin-top: 20px;
      display: block;
  }
}
