/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Oct 09 2025 | 12:00:14 */
.search-oeuvre-container {
    top: 0 !important;
    z-index: 1000 !important; /* Au-dessus du contenu, mais sous le header si besoin */
    background: white !important;
    margin: 0 !important; /* Supprime les marges pour coller parfaitement */
    padding: 15px 20px !important; /* Ajuste le padding pour mobile */
    text-align: center;
  /*  box-shadow: 0 2px 5px rgba(0,0,0,0.1);  Ombre légère pour le détacher */
}

/* Responsive pour mobile : champ plus large */
@media (max-width: 768px) {
    .search-oeuvre-container input#searchOeuvre {
        width: 90% !important;
        margin-bottom: 10px; /* Bouton en dessous sur petit écran */
    }
    .search-oeuvre-container button#clearSearch {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

/* Grid de la galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;

  margin: 0 auto;
  padding: 28px 16px;
  box-sizing: border-box;
}
@media (max-width: 1000px) { .gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 720px)  { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 420px)  { .gallery-grid { grid-template-columns: 1fr; } }

/* Carte */
.gallery-card {
  background: #fff;

  overflow: hidden;
  box-shadow: 0 6px 18px rgba(12,12,12,0.04);
  transition: transform 120ms ease;
  display: flex;
  flex-direction: column;
}
.gallery-card:hover { transform: translateY(-6px); }

/* zone image : background cover + ratio carré */
.gallery-image {
  width: 100%;
  padding-top: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
/* image cachée accessible (pour SEO/chargement lazy) */
.gallery-image img {
  position: absolute;
  width: 1px;
  height: 1px;
  left: -9999px;
  top: auto;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* meta */
.gallery-card h3 { font-size: 1.5rem; margin: 12px 12px 6px; color: #111; }
.gallery-card p  { margin: 0 12px 12px; color: #666; font-size: 1rem; }

/* Reveal (fade + slight slide-up) */
.reveal {
  opacity: 0;
 transition: transform 1.5s 
cubic-bezier(.18, 1, .21, 1), opacity 2.5s 
cubic-bezier(.18, 1, .21, 1);
 transform: translateY(60px);
  visibility: hidden;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.gallery-image:hover {
  opacity: 0.6;
}

/* Flèche Retour en Haut (sur galerie-new) */
.back-to-top-arrow {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
    z-index: 10000 !important;  /* Haut pour éviter conflits */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    font-size: 0 !important;
}

.back-to-top-arrow:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1) !important;
}

.back-to-top-arrow.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.back-to-top-arrow svg {
    width: 24px !important;
    height: 24px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top-arrow {
        bottom: 15px ;
        right: 15px ;
        width: 45px ;
        height: 45px ;
    }
    .back-to-top-arrow svg {
        width: 20px ;
        height: 20px ;
    }
}

@media (max-width: 480px) {
    .back-to-top-arrow {
        width: 40px ;
        height: 40px ;
    }
    .back-to-top-arrow svg {
        width: 18px ;
        height: 18px !;
    }
}
