/* ======================
   IMPORTS & BASE
====================== */

@font-face {
    font-family: 'AJenson';
    src: url('fonts/AJensonPro-Capt.otf') format('otf');
    font-weight: normal;
    font-style: normal;
}


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

body {
  font-family: 'AJenson', serif;
  background-color: #fff;
  color: #154F5D;
}


/* ======================
   HEADER
====================== */
.header-logo {
  background-color: #154F5D;
  background-image: url(img/texturearaignee.png);
  background-size: 100%;
  color: white;
  text-align: center;
  padding: 1rem;
}

.header-logo_img {
  padding: auto;
  cursor: pointer;
}

/* ======================
   MENU BURGER & NAVIGATION
====================== */
.nav {
  position: relative;
  padding: 1rem;
  z-index: 100;
}

/* Cache la checkbox */
#menu-toggle {
  display: none;
}

/* Icône burger */
.burger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.burger img {
  width: 32px;
  height: auto;
}

/* Navigation desktop : menu visible */
.nav-items {
  width: 90%;
  margin: 0 auto;
  list-style: none;
  display: flex; 
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
}

.nav-item {
  margin: 0.5rem 1rem;
}

.nav-item a {
  color: #154F5D;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
}

.nav-item:hover {
  text-decoration: underline;
}

/* Style pour le bouton croix */
#menu-close {
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 1001;
}

#menu-close img {
  width: 20px; /* ou la taille que tu préfères */
  height: auto;
}


/* Affiche le menu en colonne sur mobile */
.menu-mobile {
  display: flex !important;
  flex-direction: column;
}

/* ======================
   SLIDER
====================== */
.slider-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 3rem;
  flex-wrap: nowrap; /* évite le wrapping pour garder carousel */
  background: url(img/textureparchemin.jpg);
  background-size: 50%; 
  background-repeat: repeat; 
  overflow: hidden; /* masque ce qui dépasse */
}

.slider-container img {
  width: 80%;
  margin: 0 auto;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  border: #154F5D solid 0.5rem;
  object-fit: cover;
}

.glide {
  position: relative;
  max-width: 100%;
  margin: auto;
  padding: 1rem 0;
}

.glide__arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0 10px;
  box-sizing: border-box;
}

.glide__arrow {
  pointer-events: all;
  background: white;
  color: #154F5D;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 5px;
  opacity: 0.8;
  transition: background-color 0.3s, opacity 0.3s;
}

.glide__arrow:hover {
  background-color: #154F5D;
  color: white;
  opacity: 1;
}

/* ======================
   MAIN SECTION
====================== */
.main-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}


.Trailer {
  width: 100%;            /* ou la taille que tu souhaites */
  max-width: 800px;      /* limite max */
  margin: 0 auto;       
  display: flex;       
  justify-content: center; 
  align-items: center;     
  height: auto;         
  overflow: hidden;
  padding: 1rem;
}


.Trailer video {
 width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; 
  object-fit: contain;
}



.SideBar img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%; /* Pour éviter qu'elle dépasse en hauteur */
  object-fit: contain;
  margin-bottom: 0;
}


/* ======================
   FOOTER
====================== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #154F5D;
  color: white;
  padding: 0 1rem;
  height: 100px;       
  flex-wrap: nowrap;  
}

.footer-left img,
.footer-center img {
  height: 70px;  
  width: auto;
}

.footer-center img:hover{
  background-color: #A2924B;
  border-radius: 8px;
}


.footer_icon {
  display: flex;
  gap: 1.5rem;
  font-size: 1.5rem;
}

.footer_icon span {
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: black;
  transition: 0.3s;
}

.footer_icon span:hover {
  background-color: #A2924B;
  color: white;
}

.footer_icon a {
  text-decoration: none;
  border: none;
}

.footer_icon a:hover {
  text-decoration: none;
}



/* ======================
   RESPONSIVE DESIGN
====================== */

/* Menu burger mobile */
@media (max-width: 768px) {
  
.header-logo {
  position: relative; /* pour que burger y soit absolu */
  height: 6rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.burger {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: block;
    z-index: 1001;
  }

  .burger img {
    width: 28px;
    height: auto;
  }

  .nav{
  position: static;
  padding: 0;
}

  /* Par défaut, cache le menu sur mobile */
  .nav-items {
    display: none;
    flex-direction: column;
    background: #fff;
    color: #154F5D;
    position: absolute;
    top: 1.5rem;
    right: 0.2rem;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    width: 200px;
    z-index: 1000;
  }

  .nav-item {
    margin: 0.5rem 0;
  }

  .nav-item a:active {
    text-decoration: underline #154F5D;
  }

  .menu-mobile .nav-item a {
    font-size: 16px;
  }

  /* Le bouton croix est caché par défaut et visible uniquement via JS */
  #menu-close {
    display: none;
  }

    /* Slider adapté mobile */
  .slider-container {
    padding: 1rem;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .slider-container img {
    flex: 0 0 48vw; /* largeur à 48% viewport */
    max-width: none;
    height: auto;
    border-width: 1vw; /* bordure proportionnelle */
    border-radius: 1vw;
  }

  .nav-items {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .glide__arrow {
    font-size: 1rem;
    padding: 0.2rem 0.4rem;
  }
}
/* MAIN SECTION - RESPONSIVE */
@media (max-width: 768px) {
  .main-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  .Trailer {
    padding: 0;
    margin: 0 auto;
    width: 90%; /* centrée avec marge autour */
  }

 .Trailer video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


  .SideBar {
    padding: 0;
    margin: 0 auto;
    width: 95%; /* presque toute la largeur */
  }

  .SideBar img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    border: #154F5D solid 0.7rem;
    border-radius: 8px;
  }
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-left img,
.footer-center img {
  height: 40px;  
  width: auto;
}
  .footer_icon {
    gap: 0.8rem;
  }

  .footer_icon span {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .glide__arrow {
    font-size: 1rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 250px){
  .footer{
    width: 100%;
    margin: 0;
    padding: 0.2rem;
  }
  .footer-left img,
  .footer-center img {
  height: 30px;  
  width: auto;
}

.footer_icon{
  gap: 0.5rem;
}
}
