/* ================= RESET ET BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  line-height: 1.5;
  color: #000;
  overflow-x: hidden;
  font-size: 20px;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

body {
  padding-top: 70px; /* Added to account for fixed header height */
}

/* ================= HEADER & MENU ================= */
header {
  position: fixed; /* Changed to fixed */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-image: url("images/banniere.jpg"); /* Moved background to header */
  background-size: 100%;
  background-attachment: fixed;
  background-repeat: no-repeat;
  height: 70px; /* Explicit height for the header */
  /* Removed display: flex, align-items, justify-content, and padding */
}

header::before {
  content: none; /* Remove redundant pseudo-element background */
}



.menu {
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}

.logo {
  display: block;
  width: 150px;
  height: 60px;
  background-image: url("images/Ma2thieu.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  margin-right: 100px;
}

.menu ul.menu1 {
  list-style: none;
  display: flex;
  justify-content: center;
}

.menu ul.menu1 li {
  position: relative;
}

.menu ul.menu1 li a {
  display: block;
  padding: 20px 70px; /* Reverted vertical padding */
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Medium-sized screens (e.g., smaller laptops, resized browser windows) */
@media (min-width: 1001px) and (max-width: 1400px) {
  .menu ul.menu1 li a {
    padding: 20px 30px; /* Reduced horizontal padding */
    font-size: 18px; /* Slightly reduced font size */
  }
}

.menu ul.menu1 li a:hover {
  color: #929292;
}

.hamburger {
  font-size: 24px;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  display: none;
  margin-left: auto;
  background: none;
  border: none;
}

/* Sous-menus */
.sous-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -15%;
  list-style: none;
  z-index: 1002;
  background-image: url("images/banniere.jpg");
  background-size: 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}



.sous-menu li a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  text-decoration: none;
  text-align: center;
}

.sous-menu li a:hover {
  color: #929292;
}

/* Hide arrow for desktop */
.galerie-toggle .arrow {
  display: none;
}


.sm-actu {
  background-position: 25% top;
}

.sm-galeries {
  background-position: 50% top;
}

.sm-toile {
  background-position: 70% top;
}

/* ================= SECTIONS ================= */
.accueil {
  display: flex;
  min-height: 120vh;
  background-image: url(images/accueil.jpg);
  background-size: cover;
  background-position: top;
  color: #000;
}

.accueil-texte {
  justify-content: right;
  transform: translateX(100%);
  animation: droite 1s ease-out forwards;
  margin-top: 50px;
  margin-left: 60%;
  text-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.8);
}

.accueil-texte p {
  max-width: 600px;
  margin: 30px;
  color: #333;
  text-align: end;
}

.accueil-texte h1 {
  margin-top: 100px;
  margin-bottom: 100px;
  text-align: center;
  color: #222;
}

.etet {
  display: block;
  background: url("images/fond.jpg") no-repeat center center / cover fixed;
  position: relative;
}

.etet-tete {
  display: flex;
  flex-direction: row;
  padding: 20px;
  margin-left: 25%;
}

.etet-tete img:first-child {
  width: auto;
  height: auto;
  margin-bottom: 10px;
}

.etet-tete p {
  color: #fff;
  font-size: 1.4em;
  margin-left: 20px;
  margin-top: 40%;
}

.etet-tete img:last-child {
  max-height: 60px;
  width: auto;
  height: auto;
  margin-left: 20px;
  margin-top: 40%;
}

.etet-contenu {
  margin-top: 100px;
  text-align: center;
}

.etet-contenu .ligne-texte {
  color: #fff;
  animation: haut 1s ease-out forwards;
  margin: 50px;
}

.etet-contenu p {
  color: #fff;
}

.etet a img {
  display: block;
  max-width: 700px;
  transition: transform 0.2s ease;
  margin: auto;
}

.etet a img:hover {
  transform: scale(1.05);
}

/* Carrousel */
.carrousel {
  position: relative;
  margin: 60px auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.carrousel-inner {
  flex: 1;
  height: 700px;
  overflow: hidden;
  border-radius: 25px;
  padding: 20px;
  backdrop-filter: blur(15px);
  scroll-behavior: smooth;
}

.carrousel-track {
  display: flex;
  height: auto;
  width: max-content;
  gap: 25px;
  padding: 0 80px;
  align-items: center;
  margin-top: 20px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carrousel-track img {
  height: 520px;
  width: 300px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  display: block;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
  pointer-events: auto;
}

/* Effets carrousel */
.slide-leftfar {
  opacity: 0.3 !important;
  filter: blur(2px) !important;
  transform: scale(0.7) !important;
}

.slide-left {
  opacity: 0.5 !important;
  filter: blur(1.2px) !important;
  transform: scale(0.8) !important;
}

.slide-center {
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1.08) translateX(0px) !important;
  z-index: 2;
}

.slide-right {
  opacity: 0.5 !important;
  filter: blur(1.2px) !important;
  transform: scale(0.8) !important;
}

.slide-rightfar {
  opacity: 0.3 !important;
  filter: blur(2px) !important;
  transform: scale(0.7) !important;
}

.carrousel-track img:not(.slide-leftfar):not(.slide-left):not(.slide-center):not(.slide-right):not(.slide-rightfar) {
  opacity: 0;
  pointer-events: none;
}

.carrousel-prev, .carrousel-next {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(20px);
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.carrousel-prev:hover, .carrousel-next:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
  transform: scale(1.15);
}

/* Boutique & Actu Grids */
.boutique {
  position: relative;
  min-height: 100vh;
  background: url("images/fond.jpg") no-repeat center center / cover fixed;
  padding: 80px 0;
  color: #fff;
}

.boutique-tete {
  text-align: center;
  margin-bottom: 60px;
}

.boutique-tete h1 {
  font-size: 3.5em;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.boutique-tete p {
  font-size: 1.4em;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.boutique-grid, .actu-grid, .print-grid {
  max-width: 1500px;
  margin: 100px auto 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  justify-items: center;
}

/* Produits et overlay */
.produit, .actu {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  width: auto;
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 600px;
}

.produit-large {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 20px auto 40px auto;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background:none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.produit-large img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
  z-index: 1;
}

.produit img, .actu img {
  width: auto;
  max-height: 600px;
  display: block;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.produit-info, .actu-info {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.produit-info.is-overflowing, .actu-info.is-overflowing {
  justify-content: flex-start;
}

.close-info {
  display: none;
}

@media (hover: hover) {
  .produit:hover .produit-info,
  .actu:hover .actu-info,
  .produit-large:hover .produit-info {
    opacity: 1;
    pointer-events: auto;
  }

  .produit:hover img,
  .actu:hover img,
  .produit-large:hover img {
    transform: scale(1.05);
  }

  .menu ul.menu1 li:hover > .sous-menu {
    display: block;
  }

  .menu ul.menu1 li:hover > .sous-menu {
    display: block;
  }
}

/* Produit Carrousel Spécifique */
.produit-carrousel {
  position: relative;
  width: 100%;
  max-width: 550px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 45px; /* Espace pour les flèches sur les côtés */
  margin: 0 auto;
}

.produit-carrousel .carrousel-conteneur {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  background: #000;
}

.produit-carrousel .carrousel-images {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.produit-carrousel .carrousel-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.produit-carrousel .carrousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 15; /* Z-index supérieur à l'info pour rester cliquable */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}

.produit-carrousel .carrousel-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.produit-carrousel .btn-prev {
  left: 0;
}

.produit-carrousel .btn-next {
  right: 0;
}

/* Gestion du hover : déclenché par le conteneur image seulement */
.produit-carrousel .carrousel-conteneur:hover .carrousel-images img {
  transform: scale(1.05);
}

.produit-carrousel .carrousel-conteneur:hover .produit-info {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 10 !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .produit-carrousel {
    height: 500px;
  }
}

.actu-info h3, .produit-info h3 {
  max-width: 520px;
  margin: 30px auto;
  text-align: center;
  font-size: 40px;
}

/* Règle spécifique pour forcer l'espacement sur la page actualités */
.actu-info h3 {
  margin-bottom: 30px;
}

.produit-desc, .actu-desc, .print-desc {
  max-width: 520px;
  margin-bottom: 10px;
  margin-left: 40px;
  margin-right: 40px;
  text-align: center;
}

.produit-prix, .print-prix {
  font-size: 30px;
  color: #ad0079;
  font-weight: bold;
  margin: 20px 0 10px 0;
}

.btn-acheter {
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  font-family: inherit;
  display: block;
  margin: 20px auto;
  width: fit-content;
  text-decoration: none !important;
}

.btn-acheter:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

a, a:hover, a:visited, a:active {
  text-decoration: none !important;
}

/* Contact */
.contact {
  position: fixed; /* Changed to fixed to directly position relative to viewport */
  top: 60px; /* Positions below the fixed header */
  left: 0;
  width: 100vw; /* Fills full viewport width */
  height: calc(100vh - 60px); /* Fills remaining viewport height below header */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  overflow: hidden; /* Prevents .contact from scrolling */
}

body.no-scroll-contact {
  overflow-y: hidden;
}

.contact iframe {
  width: 100%; /* Fill parent (.contact) */
  height: 100%; /* Fill parent (.contact) */
  border: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  background-color: white;
}

/* Animations */
@keyframes gauche {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes haut {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes droite {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 1000px) {
  html, body {
    font-size: 18px;
  }

  .menu {
    justify-content: space-between;
    padding: 10px 16px;
    height: 60px;
  }

  .logo {
    margin-right: 0;
    width: 120px;
  }

  .hamburger {
    display: block;
  }

  .menu ul.menu1 {
    display: none;
    flex-direction: column;
    width: 100%;
    background-image: url("images/banniere.jpg");
    background-size: cover;
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100vh - 60px);
    z-index: 1003;
    overflow-y: auto;
  }

  .menu ul.menu1.open {
    display: flex;
  }

  .menu ul.menu1 li a {
    width: 100%;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff; /* Explicitly set color to white */
  }

  .menu ul.menu1 li a:hover {
    color: #fff; /* Disable hover effect on mobile for these links */
  }

  .sous-menu {
    position: static;
    display: none;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
  }

  .sous-menu.open {
    display: block;
  }

  /* Styles pour la flèche du menu mobile */
  .galerie-toggle .arrow {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
  }

  .galerie-toggle .arrow.rotate {
    transform: rotate(180deg);
  }

  .accueil-texte {
    margin-left: 0;
    text-align: center;
    max-width: 100%;
    transform: none;
    animation: none;
    padding: 20px;
  }

  .boutique-grid, .actu-grid, .print-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 0;
  }

  .produit, .actu {
    width: fit-content;
    max-width: 65%;
    margin: 0 auto 40px auto;
    height: auto;
    background: none;
    border-radius: 15px;
    overflow: hidden;
  }

  .produit-large {
    width: 100%;
    max-width: 90%;
    margin: 0 auto 40px auto;
    height: auto;
    background: none;
    border-radius: 15px;
    overflow: hidden;
  }

  .produit img, .actu img, .produit-large img {
    height: auto;
    width: 100%;
    display: block;
    border-radius: 15px;
  }

  .close-info {
    display: block;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
  }

  .produit.show-info .produit-info,
  .actu.show-info .actu-info,
  .produit-large.show-info .produit-info {
    opacity: 1;
    pointer-events: auto;
  }

  .produit-info, .actu-info {
    padding: 70px 20px 30px 20px;
    justify-content: flex-start;
    background: rgba(0, 0, 0, 0.92);
  }

  .produit-info h3, .actu-info h3 {
    font-size: 30px;
    margin-bottom: 50px;
  }


  .produit-desc, .actu-desc {
    font-size: 20px;
    max-width: 520px;
    margin: 5px auto;
    text-align: center;
    }

  .produit-prix {
    font-size: 1.1em;
    color: #ad0079;
  }

  .btn-acheter {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .etet-tete {
    flex-direction: column;
    margin-left: 0;
    padding: 40px 20px;
    align-items: center;
  }

  .etet-tete img:first-child {
    max-width: 50%;
    height: auto;
  }

  .etet-tete p, .etet-tete img:last-child {
    margin-top: 20px;
    margin-left: 0;
  }

  .carrousel-inner {
    height: 450px;
  }

  .carrousel-track img {
    height: 400px;
    width: 250px;
  }
}
