/* === STYLES GÉNÉRAUX === */
body {
  font-family: 'Georgia', serif;
  background-color: #fdfaf6;
  margin: 0;
  padding: 0;
  color: #3e2f1c;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;  
}

main, .section {
  flex: 1;
}

.section {
  padding: 2em;
  max-width: 900px;
  margin: auto;
}

.section h2 {
  border-bottom: 2px solid #c9b29b;
  padding-bottom: 0.3em;
  color: #b3201e;
}

.section h3 {
  padding-bottom: 0.3em;
  color: #b3201e;
}

.logo {
  max-width: 300px;
  display: block;
  margin: auto;
  border-radius: 10px; 
}

header {
  background-color: #e1ece3;
  color: #b3201e;
  padding: 1.2em 1em;
  text-align: center;
  border-bottom: 4px solid #3a4f3f;
}

nav {
  display: flex;
  justify-content: center;
  gap: 2em;
  margin: 1em 0;
  font-size: 1.1em;
}

nav a {
  color: #3a4f3f;
  font-weight: bold;
}

nav a.active,
.mobile-nav a.active {
  text-decoration: underline;
  color: #b3201e;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  max-width: 100%;
  height: auto;
}

/* === FOOTER === */
footer {
  background-color: #3a4f3f;
  color: white;
  text-align: center;
  padding: 1em;
}

.hero-carousel-wrapper {
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  position: relative;
}

.hero-carousel-wrapper .carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.hero-carousel-wrapper .carousel-track img {
  width: 100%;
  height: auto;
  display: block;
  flex: 0 0 100%;
  object-fit: contain;
  border-radius: 10px;  
}

@media (max-width: 768px) {
  .hero-carousel-wrapper {
    max-width: 100%;
    overflow: hidden;
  }

  .hero-carousel-wrapper .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: auto;
  }

  .hero-carousel-wrapper .carousel-track img {
    width: 100%;
    height: auto;
    display: block;
  }
}


.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;  
}

.map-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}

.map-wrapper {
  flex: 1 1 400px;
  max-width: 500px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.map-wrapper iframe {
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* === TABLES TARIFAIRES === */

.tarifs {
  margin-top: 1.5em;
  border-collapse: collapse;
  width: 100%;
  background-color: #fff;
  table-layout: fixed;
}

.tarifs th,
.tarifs td {
  border: 1px solid #ccc;
  padding: 0.75em;
  text-align: left;
  word-wrap: break-word;
}

.tarifs th {
  background-color: #e8ede3;
}

.tarifs td:first-child {
  width: 70%;
}

.tarifs td:last-child {
  width: 30%;
}

/* === PRÉSENTATION === */

.presentation-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em;
  margin: 1em 0;
}

.presentation-block.reverse {
  flex-direction: row-reverse;
}

.presentation-block > div {
  flex: 1 1 300px;
  padding: 1em;
}

.presentation-block img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* === RESPONSIVE === */

.carousel-wrapper {
  overflow-x: hidden;
}

.galerie-carousel {
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  position: relative;
}

#galerie .carousel-wrapper {
  width: 100%;
  overflow: hidden;
  margin: auto;
  position: relative;
}

#galerie .carousel-wrapper img {
	position: relative;
	border-radius: 10px;
    display: block;
    height: 90%;
    width: 100%;
} 

@media (min-width: 768px) {
#galerie .carousel-wrapper {
  overflow: hidden;
  flex: 0 0 auto;
  margin: 0 auto;
  position: relative;
}

#galerie .carousel-track figure {
  flex: 0 0 auto;
  width: max-content;
  margin: 0 5px;
  box-sizing: border-box;
}

}

/* === CARROUSELS === */

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-track figure img {
  display: block;
  border-radius: 10px;  
}

.carousel-track figure figcaption {
  text-align: center;
  font-size: 1em;
  margin-top:0.5em;
}

/* === AGENDA === */

.event-card {
  max-width: 900px;
  margin: 2em auto;
  background-color: #fff;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  text-align: center;
}

.event-card.past {
  max-width: 900px;
  margin: 2em auto;
  background-color: #ccc;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  text-align: center;
}

.event-card img {
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 5px solid #3a4f3f;
  border-radius: 10px;
}

/* === CONTACT === */

.contact {
  background-color: #e8ede3;
  padding: 2em;
  text-align: center;
}

.contact h2 {
  color: #3a4f3f;
}

.contact-illustration {
  max-width: 300px;
  margin: auto;
}


/* === MENU RESPONSIVE FIXES === */

/* Desktop */
@media (min-width: 769px) {
  nav {
    display: flex !important;
  }
  .logo {
    max-width: 300px;
  }
}

/* Mobile */

  .logo {
    max-width: 200px;
    margin: auto;
  }
}



/* Desktop */
@media (min-width: 769px) {
  
  
  nav {
    display: flex !important;
  }
  .logo {
    max-width: 300px;
  }
}

/* Mobile */

  .mobile-nav a {
    color: #3a4f3f;
    font-weight: bold;
    font-size: 1.2em;
  }

  .logo {
    max-width: 200px;
    margin: auto;
  }
}



/* Desktop */
@media (min-width: 769px) {
  
  
  nav {
    display: flex !important;
  }
  .logo {
    max-width: 300px;
  }
}

/* Mobile */


  .mobile-nav a {
    color: #3a4f3f;
    font-weight: bold;
    font-size: 1.2em;
  }

  .logo {
    max-width: 200px;
    margin: auto;
  }
}

/* === CORRECTIONS CARROUSEL + MENU MOBILE === */

/* Galerie - Mobile */


/* Menu Mobile Fixe */
.hamburger {
  display: none;
}

/* Desktop */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
  .mobile-nav {
    display: none !important;
  }
  nav {
    display: flex !important;
  }
  .logo {
    max-width: 300px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  nav {
    display: none !important;
  }

  .contact img {
	  display: none;
  }

  .hamburger {
    display: block;
    position: fixed;
    top: 1.2em;
    left: 1rem;
    right: auto;
    font-size: 1.8em;
    background: none;
    border: none;
    color: #3a4f3f;
    cursor: pointer;
    z-index: 1001;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1em;
    align-items: center;
    background-color: #e1ece3;
    padding: 1em;
    position: fixed;
    top: 80px;
    left: 0;
    right: auto;
    z-index: 1000;
  }

  .mobile-nav.active {
    display: flex;
  }

  .mobile-nav a {
    color: #3a4f3f;
    font-weight: bold;
    font-size: 1.2em;
  }

  .logo {
    max-width: 200px;
    margin: auto;
  }
}

/* === GALERIE - VERSION MOBILE STABILISÉE === */

@media (max-width: 768px) {
  #galerie .carousel-wrapper {
    max-width: 100%;
    overflow: hidden;
    margin: auto;
    position: relative;
    padding: 0 10px;
  }

  #galerie .carousel-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
    width: auto;
  }

  #galerie .carousel-track figure {
    flex: 0 0 auto;
    width: 250px;
    margin: 0 10px;
    box-sizing: border-box;
    text-align: center;
  }

  #galerie .carousel-track img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
  }

  .hide-on-mobile {
    display: none !important;
  }

  body {
    overflow-x: hidden;
  }
}

img.zoomable {
  cursor: zoom-in;
}

.boutique-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
  max-width: 900px;
  margin: auto;
  padding: 1em;
}

.boutique-gallery figure {
  position: relative;
  text-align: center;
}

.boutique-gallery img {
  max-width: 100px;
  max-height: 200px;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.boutique-gallery img:hover {
  transform: scale(1.03);
}

.boutique-frame {
  background-color: #f9c073;
  /*background-image: url('/images/textures/wood-frame.png'); */
  background-repeat: repeat;
  background-size: cover;
  /* border: 30px solid #503730; cadre en bois foncé */
  border: 30px solid #b0906a; cadre en bois clair
  padding: 2em;
  margin: auto;
  max-width: 100%;
  /*box-shadow: 0 0 15px rgba(0,0,0,0.2); */
  box-shadow: inset 10px 10px 10px rgba(0,0,0,0.1);  
  border-radius: 8px; 
}

/*.boutique-frame {
  border: 30px solid transparent;
  padding: 0em;
  margin: auto;
  background-color: #f5eac6; 
  margin: auto;
  max-width: 100%;
  box-shadow: 0 0 0 20px #4b3a2f;
  border-radius: 8px;
}*/



@media screen and (max-width: 768px) {
  .boutique-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .boutique-gallery {
    grid-template-columns: 1fr;
  }
}


.image-wrapper {
  position: relative;
}

.ribbon {
  position: relative;
  top: 100px;
  left: 0px;
  transform: rotate(-15deg);
  background-color: rgba(255, 0, 0, 0.7);
  box-shadow: 10px 5px 5px rgba(0,0,0,0.1); 
  color: white;
  padding: 5px 30px;
  font-weight: bold;
  font-size: 1em;
  z-index: 2;
}

.reserve .ribbon {
  background-color: #3a4f3f; /* rgba(255, 165, 0, 0.7);  orange */
  content: "Réservé";
}

.sold .ribbon {
  background-color: #b3201e; /* rgba(150, 150, 150, 0.7);  gris */
  content: "Vendu";
}

.pagination {
  text-align: center;
  margin-top: 1em;
}

.pagination button {
  margin: 0 5px;
  padding: 0.5em 1em;
  font-weight: bold;
  background-color: #e1ece3;
  color: #3a4f3f;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.pagination button:hover {
  background-color: #b3201e;
  color: white;
}

.pagination button.active {
  background-color: #3a4f3f;
  color: white;
  font-weight: bold;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.prix-etiquette {
  display: inline-block;
  background-color: white;
  color: #3e2f1c;
  padding: 4px 10px;
  font-size: 1em;
  font-weight: bold;
  border: 1px solid #999;
  border-radius: 4px;
  box-shadow: 10px 5px 5px rgba(0,0,0,0.1);
  transform: rotate(-5deg);
  margin-top: 0.5em;
  position: relative;
}

.prix-etiquette::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  background-color: #ccc;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px #666;
}


@media (max-width: 768px) {
  /* HERO (page index) */
  .hero-carousel-wrapper .carousel-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
    width: 300%;
  }

  .hero-carousel-wrapper .carousel-track img {
    flex: 0 0 100%;
    max-width: 100%;
    height: auto;
  }

  /* GALERIE */
  
  #galerie .carousel-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
  }

  #galerie .carousel-track figure {
    flex: 0 0 85%;
    max-width: 85%;
    margin: 0 5px;
    box-sizing: border-box;
  }

  #galerie .carousel-track img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
  }

  body {
    overflow-x: hidden;
  }
}



.scroll-gallery.hero-gallery {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: auto;       /* Firefox */
  -ms-overflow-style: auto;    /* IE and Edge */
  gap: 1em;
  scroll-snap-type: x mandatory;
  padding: 1em;
  margin: 0;
  width: 100vw;
  max-width: 100%;
}

.scroll-gallery.hero-gallery figure {
  flex: 0 0 auto;
  width: 100%;
  min-width: 400px;
  scroll-snap-align: center;
  text-align: center;
}

.scroll-gallery.hero-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.scroll-gallery.hero-gallery {
  scrollbar-width: auto; /* Pour Firefox */
  scrollbar-color: red orange;
}

.scroll-gallery.hero-gallery::-webkit-scrollbar {
  height: 8px; /* Pour Chrome, Safari */
}
.scroll-gallery.hero-gallery::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 4px;
}
.scroll-gallery.hero-gallery::-webkit-scrollbar-track {
  background: #ddd;
}



.scroll-gallery.outil-gallery {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;          /* empêche les scrolls verticaux involontaires */
  scrollbar-width: auto;       /* pour Firefox */
  -ms-overflow-style: auto;    /* pour IE */
  gap: 0.1em;
  scroll-snap-type: x mandatory;
  padding: 0.1em;
  margin: 0 auto;
  max-width: 100vw;
}

.scroll-gallery.outil-gallery figure {
  flex: 0 0 auto;
  width: 100%;
  max-width: 200px;
  scroll-snap-align: center;
  text-align: center;
}

.scroll-gallery.outil-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.scroll-gallery.outil-gallery::-webkit-scrollbar {
  height: 30px;
}

.scroll-gallery.outil-gallery::-webkit-scrollbar-thumb {
  background-color: red orange;
  border-radius: 10px;
}

.scroll-gallery.outil-gallery::-webkit-scrollbar-track {
  background: red orange;
}



.masonry-gallery {
  columns: 2;
  column-gap: 1em;
  padding: 1em;
}

.masonry-gallery img {
  width: 100%;
  margin-bottom: 1em;
  border-radius: 8px;
  cursor: zoom-in;
}


.alerte-defilante {
  width: 100%;
  background-color: #b3201e;
  color: white;
  font-weight: bold;
  padding: 0.5em 0;
  overflow: hidden;
  position: relative;
  font-size: 1em;
}

.alerte-defilante::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  z-index: 1;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.alerte-defilante span {
  display: inline-block;
  white-space: nowrap;
  animation: defilement 20s linear infinite;
  padding-left: 100%;
  position: relative;
  z-index: 2;
}

@keyframes defilement {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}


.boutique-gallery {
  background: url('/images/textures/wood-light.jpg') repeat;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.etagere {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0em;
  margin-top: 1em;
}

.etiquette {
  background: white;
  padding: 0.2em 0.6em;
  font-weight: bold;
  font-size: 0.9em;
  display: inline-block;
  margin: 0.4em auto 0.2em;
  transform: rotate(-6deg);
  border: 1px solid #555;
  border-radius: 3px;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.titre {
  font-weight: bold;
  margin-top: 0.2em;
}

.ref {
  font-size: 0.85em;
  color: #555;
}

.objet.reserve::before {
  content: "Réservé";
  position: absolute;
  top: 10px;
  left: -20px;
  background-color: #b3201e;
  color: white;
  padding: 0.2em 0.8em;
  font-weight: bold;
  transform: rotate(-45deg);
  font-size: 0.8em;
}

.objet.vendu::before {
  content: "Vendu !";
  position: absolute;
  top: 10px;
  right: -20px;
  background-color: #3a4f3f;
  color: white;
  padding: 0.2em 0.8em;
  font-weight: bold;
  transform: rotate(45deg);
  font-size: 0.8em;
}

@media (max-width: 600px) {
  .etagere {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}


.objet:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}


.boutique-vitrine {
  background: url('images/textures/planches-claires.jpg') repeat;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  position: relative;
}

.etagere {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0em;
  margin-top: 1em;
  position: relative;
}

/* Barres métalliques décoratives */
.etagere::before, .etagere::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, #333 0 20px, #777 20px 40px);
  top: calc(25% - 3px);
  z-index: 0;
}
.etagere::after {
  top: calc(70% - 3px);
}

.etiquette {
  background: white;
  padding: 0.2em 0.6em;
  font-weight: bold;
  font-size: 0.9em;
  display: inline-block;
  margin: 0.4em auto 0.2em;
  transform: rotate(-6deg);
  border: 1px solid #555;
  border-radius: 3px;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.titre {
  font-weight: bold;
  margin-top: 0.2em;
}

.ref {
  font-size: 0.85em;
  color: #555;
}

@media (max-width: 600px) {
  .etagere {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}


/* === BONNES ADRESSES === */

.adresses-card {
  max-width: 900px;
  margin: 2em auto;
  background-color: #fff;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 10px;
  text-align: center;
}

.adresses-card.past {
  max-width: 900px;
  margin: 2em auto;
  background-color: #ccc;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 10px;
  text-align: center;
}

.adresses-card img {
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}
