/* ======================
   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; /* pour éviter espace blanc */
  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;
}


/* Les illustrations sont indépendantes */
.illustrations {
  display: flex;
  justify-content: center;
  gap: 1rem;
  position: relative;
  top: -20px;
}


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

/* Burger à droite */
.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;
}

.card-container {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  perspective: 1000px;
}

.card-fan {
  position: relative;
  width: 100%; /* Ajuste selon ton nombre de cartes */
  height: 100%;
}


.card {
  width: 200px;
  height: 300px; 
  position: absolute;
  bottom: 1rem;
  transform-origin: center;
  transition: transform 0.6s, z-index 0.3s;
  transform: translateX(-50%) translateY(-50px) rotate(90deg) scale(1.2);
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  background-color: #fff;
  overflow: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}


.card img{
  border: none;
  outline: none;
  display: block;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0s;
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
}

.card-front {
  z-index: 2;
}

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

.card-front, .card-back{
  background-color: #fff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

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

.card.on-top {
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  cursor: pointer;
}


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

.card-container {
  perspective: 1200px;
  overflow: visible;
  position: relative;
  height: 250px;
}

.card {
  width: 150px;
  height: 200px;
  position: absolute;
  bottom: 2rem;
  transform: rotate(90deg);
  transform-origin: center center;
  transition: transform 0s ease, z-index 0s;
  backface-visibility: hidden;
  will-change: transform;
  cursor: pointer;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  overflow: hidden;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  backface-visibility: hidden;
}

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

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  backface-visibility: hidden;
  object-fit: cover;
  -webkit-backface-visibility: hidden;
}

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



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


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