.fa-chevron-down {
  position: absolute;
  bottom: 80px;
  left: 50%;
  color: white !important;
}
.fa-chevron-down:hover {
  color: #fce4da;
  transition: color 0.3s;
  cursor: pointer;
}
/* zone filtres */
.titre-projet {
  display: flex;
  width: 70%;
  margin: 20px auto;
}
.btn-toggle-filtres {
  background: #3a5151;
  color: white;
  border: 2px solid white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-left: 8px;
  transition: 0.3s;
}
.btn-toggle-filtres:hover {
  background: white;
  border: 2px solid #3a5151;
  color: #3a5151;
  cursor: pointer;
  transition: 0.3s;
}
.zone-btn {
  overflow: hidden;
  max-height: 0;
  transform-origin: bottom;
  transition: max-height 0.4s ease, transform 0.4s ease;
  transform: scaleY(0);
  margin: auto;
}
.zone-btn.open {
  max-height: 500px;
  transform: scaleY(1);
}

.btn-categorie {
  margin: 4px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.2s, color 0.2s;
  color: #3a5151 !important;
}
.btn-categorie.click-btn,
.btn-categorie:hover {
  background: #3a5151;
  color: white !important;
  border-color: #3a5151;
}

/* zone articles boutique */
.div-bg-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* Image lazy-loading */
.div-bg-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: opacity 0.3s ease;
}
.div-bg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
}
.swiper-button-next,
.swiper-button-prev {
  color: white;
  box-sizing: border-box;
  margin: auto;
}

.img-carousel {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.img-carousel:hover {
  transform: scale(1.02);
}

#portfolio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  justify-content: center;
  justify-items: center;
  width: 70%;
  margin: auto;
}

.gallery figure {
  position: relative;
  padding: 10px;
  border-radius: 12px;
  text-align: start;
  width: 300px;
  height: 450px;
  margin: 0;
  overflow: hidden;
}
.div-titre-prix {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #3a5151;
  margin: 0;
  padding: 0;
  gap: 5px;
}
.div-titre-prix h3 {
  text-align: start;
  margin: 10px 0px;
  padding: 0;
  font-size: 22px;
}
.div-titre-prix span {
  font-size: 18px;
}
.description-carte {
  padding: 0;
  margin: 0;
  color: #3a5151;
  font-size: 16px;
}
.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: 0.3s;
  border-radius: 8px;
}
.gallery img:hover {
  transition: 0.3s;
  cursor: pointer;
}

.badge-rupture {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(200, 0, 0, 0.85);
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 10;
}
.div-bg-card {
  position: relative; /* nécessaire pour positionner le badge */
}

/* btn favoris*/
.btn-fav-article {
  position: absolute;
  top: 22px !important;
  right: 22px !important;
  background-color: transparent !important;
  border: none !important;
  cursor: pointer;
  font-size: 26px !important;
  transition: 0.3s;
  border-radius: 50%;
  padding: 5px;
  z-index: 1;
}
.btn-fav-article :hover {
  transform: scale(1.1);
  transition: 0.3s;
}

/* zone a propos */
.en-savoir-plus {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fce4da;
  padding: 60px 0px;
  margin: 80px auto;
  gap: 80px;
}
.en-savoir-plus-texte {
  color: #3a5151;
  width: 30%;
}
.en-savoir-plus-texte p {
  font-size: 18px;
}
.en-savoir-plus-texte h3 {
  font-size: 26px;
}
.en-savoir-plus-image img {
  width: 400px;
  height: 400px;
  border-radius: 8px;
}
.en-savoir-plus button {
  border: 2px solid transparent;
  background-color: #3a5151;
  color: white;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 15px;
  font-size: 16px;
  margin-top: 20px;
  transition: 0.3s;
}
.en-savoir-plus button:hover {
  border: 2px solid #3a5151;
  color: #3a5151;
  background-color: transparent;
  transition: 0.3s;
}

/* introduction */
.introduction {
  background-color: #fce4da;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #3a5151;
  padding: 60px 60px 80px 60px;
}
.introduction h2,
h3,
h4 {
  font-size: 30px;
}
.introduction p {
  font-size: 16px;
}
.introduction article {
  margin-bottom: 80px;
}
.presentation-une {
  display: flex;
  gap: 80px;
  height: auto;
}
.presentation-une-image {
  width: 400px;
  border-radius: 8px;
  margin: 32px auto;
}
.presentation-une-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}
.presentation-une-texte {
  width: 500px;
}
.presentation-une-texte-prix {
  display: flex;
  gap: 20px;
}
.section-principale-titre-texte {
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
}
.section-secondaire-titre-texte {
  display: flex;
  align-items: start;
  justify-content: start;
  position: relative;
  width: 100%;
}
.section-principale-titre-texte img {
  margin: -10px 34%;
  width: 45px;
  height: 45px;
}
.line-droite {
  position: absolute;
  width: 33%;
  height: 1px;
  gap: 10px;
  background: #3a5151;
  bottom: -20px;
  left: 0px;
}
.line-gauche {
  position: absolute;
  width: 33%;
  height: 1px;
  gap: 10px;
  background: #3a5151;
  bottom: -20px;
  right: 116px;
}
.presentation-une-texte button {
  border: 2px solid transparent;
  background-color: #3a5151;
  color: white;
  border-radius: 8px;
  padding: 5px 15px;
  font-size: 16px;
  margin-top: 20px;
  transition: 0.3s;
}
.presentation-une-texte button:hover {
  border: 2px solid #3a5151;
  background-color: transparent;
  color: #3a5151;
  cursor: pointer;
  transition: 0.3s;
}

/* zone titre article-boutique */
.section-principale-titre-texte-bis {
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.section-secondaire-titre-texte-bis {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #3a5151;
}
.section-principale-titre-texte-bis img {
  margin: -10px auto;
}
.line-droite-bis {
  position: absolute;
  width: 50%;
  height: 1px;
  gap: 10px;
  background: #3a5151;
  bottom: -20px;
  left: -40px;
}
.line-gauche-bis {
  position: absolute;
  width: 50%;
  height: 1px;
  gap: 10px;
  background: #3a5151;
  bottom: -20px;
  right: -40px;
}

/* zone encore-plus (img réseaux sociaux instagram ect..) */
.encore-plus {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 80px auto;
  width: 80%;
  gap: 30px;
  color: #3a5151;
  border-top: 1px solid #fce4da;
  border-bottom: 1px solid #fce4da;
  padding: 80px 0px;
}
.encore-plus-texte {
  display: flex;
  flex-direction: column;
  align-items: start;
  width: 400px;
  height: 300px;
  border-bottom: 1px solid #3a515188;
}
.encore-plus-texte h3 {
  font-size: 30px;
  margin: 0;
}
.encore-plus-texte p {
  font-size: 16px;
  margin: 40px auto;
}
.encore-plus-texte ul {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 20px;
  font-size: 26px;
}
.encore-plus img {
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

/*************************/
.ajout-galerie img {
  width: 76px;
  height: 102px;
  margin: 15px 5px;
}
.ajout-galerie {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  padding: 0px 0px 40px 0px;
}
.ajout-galerie figure {
  position: relative;
}
.icone-supprimer-modal {
  position: absolute;
  background-color: black;
  color: white;
  padding: 4px;
  border-radius: 8px;
  opacity: 1 !important;
  font-size: 15px;
  cursor: pointer;
  margin: auto;
}
.icone-modifier,
.icone-supprimer {
  position: absolute;
  background-color: black;
  opacity: 0.4;
  color: white;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid black;
  font-size: 50px;
  cursor: pointer;
  width: 100%;
  height: 50%;
  margin: auto;
  z-index: 10;
}
.icone-supprimer-modal,
.icone-supprimer {
  top: 0;
  left: 0;
  border-radius: 8px 8px 0px 0px;
}
.icone-modifier {
  top: 50%;
  left: 0;
  border-radius: 0px 0px 8px 8px;
}
.icone-supprimer-modal:hover,
.icone-modifier:hover,
.icone-supprimer:hover {
  opacity: 0.8 !important;
}
#introduction p {
  margin-bottom: 0.5em;
}

/* zone contact */
#contact {
  font-family: Geist;
  color: #3a5151;
  width: 50%;
  margin: auto;
  font-size: 16px;
  text-align: start;
}
#contact form {
  text-align: left;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
}
#contact textarea,
#contact input {
  width: 100%;
  padding: 8px 0px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#contact label {
  margin: 1em 0 1em 0;
}
.btn-contact {
  font-family: Geist;
  color: white;
  background-color: #3a5151;
  height: 51px;
  text-align: center;
  border-radius: 8px;
  transition: 0.3s;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 8px 0px !important;
  width: 12% !important;
  margin: 0 !important;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}
.btn-contact:hover {
  background-color: white !important;
  border: 1px solid #3a5151 !important;
  color: #3a5151;
  cursor: pointer;
  transition: 0.3s;
}
/* ===========================
   Responsive main page
   Breakpoints: 1200 / 1024 / 768 / 480
   ===========================*/

/* <= 1200px : petits desktops / grands laptops */
@media (max-width: 1574px) {
  .encore-plus {
    width: 90%;
  }
}
@media (max-width: 1399px) {
  .encore-plus-texte,
  .encore-plus img {
    width: 350px;
    height: 250px;
  }
}
@media (max-width: 1233px) {
  .encore-plus-texte,
  .encore-plus img {
    width: 450px;
    height: 350px;
  }
}
@media (max-width: 1034px) {
  .encore-plus-texte,
  .encore-plus img {
    width: 400px;
    height: 300px;
  }
}
@media (max-width: 1350px) {
  /* Portfolio */
  #portfolio {
    width: 80%;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .gallery figure {
    width: 100%;
    height: 420px;
  }
  .gallery img {
    height: 260px;
  }

  /* En savoir plus */
  .en-savoir-plus {
    gap: 40px;
    padding: 40px 0;
  }
  .en-savoir-plus-texte {
    width: 40%;
  }
  .en-savoir-plus-image img {
    width: 320px;
    height: 320px;
  }

  /* Présentation une */
  .presentation-une {
    gap: 40px;
  }

  /* Ajout galerie */
  .ajout-galerie {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  /* Filtres */
  .titre-projet {
    width: 80%;
  }
  .btn-toggle-filtres {
    font-size: 13px;
    padding: 6px 10px;
  }

  /* Contact */
  #contact {
    width: 60%;
  }
  .encore-plus {
    width: 90%;
  }
}

/* <= 1024px : tablettes paysage / petits laptops */
@media (max-width: 1024px) {
  .presentation-une-texte-prix {
    gap: 0px;
    justify-content: space-between;
  }
  #portfolio {
    width: 85%;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .gallery figure {
    height: 380px;
  }
  .gallery img {
    height: 240px;
  }
  .en-savoir-plus {
    gap: 30px;
    padding: 40px 12px;
  }
  .en-savoir-plus-texte {
    width: 45%;
  }
  .en-savoir-plus-image img {
    width: 280px;
    height: 280px;
  }

  .presentation-une {
    gap: 30px;
    position: relative;
    margin: 150px auto;
  }
  .presentation-une-image {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
  .presentation-une-texte {
    width: 350px;
    margin: -40px auto;
  }
  .presentation-une-texte p {
    font-size: 14px;
  }
  .presentation-une-texte h4 {
    font-size: 28px;
  }
  .section-principale-titre-texte {
    position: absolute;
    top: -190px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    margin: auto;
    box-sizing: border-box;
  }
  .section-secondaire-titre-texte {
    width: 100%;
    margin: auto;
    align-items: center;
    justify-content: center;
  }
  .section-principale-titre-texte img {
    margin: -10px auto;
  }
  .line-droite {
    position: absolute;
    width: 28%;
    height: 1px;
    gap: 10px;
    background: #3a5151;
    bottom: -20px;
    left: 130px;
  }
  .line-gauche {
    position: absolute;
    width: 28%;
    height: 1px;
    gap: 10px;
    background: #3a5151;
    bottom: -20px;
    right: 130px;
  }
  .ajout-galerie {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Filtres */
  .titre-projet {
    width: 85%;
  }
  .zone-btn.open {
    max-height: 420px;
  }

  /* Chevron */
  .fa-chevron-down {
    bottom: 60px;
  }
  .btn-contact {
    width: 100% !important;
  }
}

@media (max-width: 923px) {
  .encore-plus img,
  .encore-plus-texte {
    width: 340px;
    height: 240px;
  }
}
@media (max-width: 810px) {
  .line-droite {
    width: 30%;
    left: 100px;
  }
  .line-gauche {
    width: 30%;
    right: 100px;
  }
  .encore-plus img,
  .encore-plus-texte {
    width: 100%;
    height: auto;
    border-bottom: none;
  }
  .encore-plus-texte h3 br {
    display: none;
  }
  .encore-plus-texte p {
    margin: 40px 0px 40px 0px;
    text-align: start;
  }
}

/* <= 768px : tablettes portrait / mobiles larges */
@media (max-width: 768px) {
  .introduction article {
    padding: 0px 12px;
  }
  .presentation-une-texte-prix {
    gap: 20px;
    justify-content: inherit;
  }
  #portfolio {
    width: 92%;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .gallery figure {
    height: 350px;
    padding: 8px;
  }
  .gallery img {
    height: 220px;
  }

  /* Card / bg image */
  .div-bg-card img {
    height: 220px;
  }

  /* En savoir plus → empilé */
  .en-savoir-plus {
    flex-direction: column;
    padding: 40px 12px;
    gap: 24px;
    margin: 40px auto;
  }
  .en-savoir-plus-texte {
    width: 100%;
    text-align: center;
  }
  .en-savoir-plus-image img {
    width: 100%;
    max-width: 360px;
    height: auto;
  }

  /* Présentation une → empilé */
  .presentation-une {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 12px;
  }
  .presentation-une-image {
    width: 100%;
    max-width: 420px;
  }
  .presentation-une-texte {
    width: 100%;
  }
  .presentation-une h3 {
    justify-content: center;
  }

  /* Ajout galerie */
  .ajout-galerie {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 8px;
  }

  /* Filtres */
  .titre-projet {
    width: 95%;
    margin: 12px auto;
    flex-direction: column;
    gap: 10px;
  }
  .btn-toggle-filtres {
    width: 20%;
  }
  .zone-btn.open {
    max-height: 360px;
    transform-origin: top;
  }

  /* Favorites button adjust */
  .btn-fav-article {
    top: 12px !important;
    right: 12px !important;
    font-size: 22px !important;
  }

  /* Chevron reposition */
  .fa-chevron-down {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 26px;
  }

  /* Intro / titres */
  .introduction {
    padding: 40px 20px 60px;
  }

  .introduction p {
    font-size: 15px;
  }

  /* Contact */
  #contact {
    width: 90%;
  }
  #contact form {
    margin-top: 20px;
  }
}

@media (max-width: 670px) {
  .line-droite {
    width: 30%;
    left: 80px;
  }
  .line-gauche {
    width: 30%;
    right: 80px;
  }
}
@media (max-width: 620px) {
  .line-droite,
  .line-gauche {
    position: absolute;
    bottom: -20px;
    height: 1px;
    width: 161px; /* taille fixe */
    background: #3a5151;
    left: 50%; /* ancrage au centre du conteneur */
    transform: translateX(
      calc(-50% - 125px)
    ); /* centrer puis décaler à gauche */
    box-sizing: border-box;
  }

  /* ligne droite (à droite du centre) : même logique mais décalage inverse */
  .line-gauche {
    transform: translateX(
      calc(-50% + 125px)
    ); /* centrer puis décaler à droite */
  }
  .line-droite-bis {
    width: 42%;
    left: 0px;
  }
  .line-gauche-bis {
    width: 42%;
    right: 0px;
  }
}
/* <= 480px : mobiles petits / très petits écrans */
@media (max-width: 490px) {
  .line-droite,
  .line-gauche {
    width: 140px; /* taille fixe */
    transform: translateX(
      calc(-50% - 95px)
    ); /* centrer puis décaler à gauche */
    box-sizing: border-box;
  }

  /* ligne droite (à droite du centre) : même logique mais décalage inverse */
  .line-gauche {
    transform: translateX(
      calc(-50% + 95px)
    ); /* centrer puis décaler à droite */
  }
  .introduction h2,
  h3,
  h4 {
    font-size: 24px !important;
  }
  #portfolio {
    width: 96%;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gallery figure {
    height: auto;
    padding: 6px;
    width: 95%;
  }
  .gallery img {
    height: 200px;
  }

  .div-bg-card img {
    height: 180px;
  }

  /* Ajout galerie → 2 ou 1 colonnes selon besoin */
  .ajout-galerie {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  /* Filtres */
  .btn-toggle-filtres {
    margin-top: 20px;
  }
  .zone-btn.open {
    max-height: 300px;
  }

  /* En savoir plus / Présentation une stacked and compressed */
  .en-savoir-plus {
    padding: 30px 8px;
    gap: 16px;
  }
  .en-savoir-plus-texte p {
    font-size: 15px;
  }
  .en-savoir-plus-image img {
    width: 100%;
    height: auto;
  }

  .presentation-une-image {
    width: 100%;
  }
  .presentation-une-texte {
    width: 100%;
    padding: 0 8px;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 18px;
  }

  /* Chevron smaller and closer */
  .fa-chevron-down {
    bottom: 28px;
    font-size: 22px;
  }

  /* Contact */
  #contact {
    width: 96%;
    font-size: 15px;
  }

  /* Tiny screens fallback */
  .ajout-galerie {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 425px) {
  .encore-plus img {
    width: 300px !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 8px;
  }
}
@media (max-width: 375px) {
  .introduction h2,
  h3,
  h4 {
    font-size: 20px !important;
  }
  .section-principale-titre-texte-bis img,
  .section-principale-titre-texte img {
    width: 35px;
    height: 35px;
  }
  .line-droite,
  .line-gauche {
    width: 110px; /* taille fixe */
    transform: translateX(
      calc(-50% - 80px)
    ); /* centrer puis décaler à gauche */
    box-sizing: border-box;
  }

  /* ligne droite (à droite du centre) : même logique mais décalage inverse */
  .line-gauche {
    transform: translateX(
      calc(-50% + 80px)
    ); /* centrer puis décaler à droite */
  }
}
@media (max-width: 320px) {
  .encore-plus img {
    width: 280px !important;
  }
  nav.mobile .icons {
    font-size: 20px !important;
  }
}
