/* ======================
   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;
  position: relative;
  height: 15rem; 
  overflow: hidden;
}

.image_logo {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1001;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.image_logo a {
  display: block;
  margin: 0;
  padding: 0;
}

.image_logo img {
  width: 150px; 
  height: auto;
  display: block;
}


/* Conteneur header */
.header-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.presentation {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.titre-apropos {
  font-size: 3rem;        
  position: relative;     
  top: 0.1rem;            
  margin-bottom: 0rem; 
  font-weight: bold;
  line-height: 1.2;
}


.illustrations {
  display: flex;
  justify-content: center;
  gap: 1rem;
  position: relative;
  top: -20px;
}


.illustrations img {
  width: 40%;
  height: auto;
}


.nav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  padding: 0;
}

/* ======================
   MENU BURGER & NAVIGATION
====================== */
#menu-toggle {
  display: none;
}

.burger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

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

.nav-items {
  list-style: none;
  display: flex;
  justify-content: space-between;
  margin: 0.2rem;
  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;
}

#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;
  height: auto;
}

.menu-mobile {
  display: flex !important;
  flex-direction: column;
}

/* ======================
   SLIDER
====================== */
.bandeau {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 4rem;
  flex-wrap: nowrap;
  background: url(img/tapisseriewyrd.png);
  background-size: 25%; /* montre plus de l’image */
  background-repeat: repeat; /* répète si trop petit */
  overflow: hidden;
}

/* ======================
   MAIN SECTION
====================== */
.main-section {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  justify-items: center;
  margin-top: 2rem;
  padding: 0.2rem;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  aspect-ratio: 4 / 3;
  perspective: 1000px;
  transition: transform 0.1s;
  transform-style: preserve-3d;
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.646);
  border-radius: 8px; /* Optionnel, pour des coins arrondis */
}

.flip-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.845);
}


.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}


.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  transform: rotateY(180deg);
}

p{
  margin-top: 2rem;
  font-size: 20px;
}

.intro {
  width: 100%;
  text-align: center;
  text-decoration: overline underline 2px #A2924B;
  color: #154F5D;
  font-size: 22px;
  line-height: 1.4;
  margin-top: 1rem;
}

/* ======================
   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_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
====================== */
@media (max-width: 768px) {
  .header-logo{
    height: 11rem;
  }

  .header-container {
    height: 100px;
  }

  .image_logo img {
  width: 80px;  
  height: auto;
}

  .presentation {
    top: 100%;
    transform: translate(-50%, -50%);
  }

  .titre-apropos {
    font-size: 2rem;
    position: static;
    top: 0.2;
    margin-bottom: 0.5rem;
  }

  .illustrations {
    position: static;
    top: 3rem;
    gap: 0.1rem;
    width: 100vw;
    justify-content: space-around; /* ou space-evenly */
    overflow-x: auto;
    margin-top: -1.2rem;
  }

  .illustrations img {
    width: 45vw;
    max-width: 100%;
    height: auto;
  }


  .burger {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    display: block;
  }

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

  .nav-items {
    display: none;
    flex-direction: column;
    background: #fff;
    color: #154F5D;
    position: absolute;
    top: 3rem;
    right: 0.5rem;
    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;
  }

  #menu-close {
    display: none;
  }

/*Bandeau responsive*/
.bandeau {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  flex-wrap: nowrap;
  background: url(img/tapisseriewyrd.png);
  background-size: 50%; /* montre plus de l’image */
  background-repeat: repeat; /* répète si trop petit */
  overflow: hidden;
}

/*Main responsive*/

.main-section {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: justify;
}


p {
  text-indent: 0em;
  margin-bottom: 1rem;
  color: #154F5D;
  font-size: 17px;
  text-align: center;
}


  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }

.intro{
  text-align: center;
  text-decoration: underline 2px #A2924B;
  color: #154F5D;
  font-size: 20px;
}

/*FOOTER*/

  .footer-left img{
    height: 40px;
    width: auto;
    padding: 0;
  }

  .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;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }
}
