body {
  background-color: #efe4cc !important;
  margin: 0 !important;
  padding-top: 20px !important; /* Épaisseur du cadre sable au-dessus */
}
.site-grid, .container-header, .container-footer, main {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
background-color: #ffffff;
}
/* 1. Grille de 6 images par ligne (cible le conteneur parent de pg-item-box) */
div:has(> .pg-item-box) {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
}

/* 2. Cadre discret autour de chaque bloc (image + nom) */
.pg-item-box {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding-left: 0px !important;
    padding-right:0px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    border: 2px solid #cccccc !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

/* 3. Conteneur de l'image */
.pg-item-box-image {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.pg-item-box-image img {
    width: 80% !important;
    height: auto !important;
    display: block !important;
}


/* 4. Affichage permanent, centrage et couleur du titre sous l'image */
.pg-item-box-title,
.pg-item-box-info,
.pg-item-box-title * {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    width: 100% !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 0.70rem !important;
    color: #D07E00 !important; 
    background: transparent !important;
    text-decoration: none !important;
}
/* Masquer l'icône située au-dessus du nom de l'image */
.pg-item-box-title svg,
.pg-item-box-title i,
.pg-item-box-info svg,
.pg-item-box-info i {
    display: none !important;
}
/* 5. Adaptation mobile : 2 images par ligne sur téléphone */
@media (max-width: 768px) {
    div:has(> .pg-item-box) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
/* Rendre le nom de l'image bien visible en bas de la visionneuse PhotoSwipe */
.pswp__caption {
    display: block !important;
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    padding: 12px 0 !important;
}

.pswp__caption__center {
    text-align: center !important;
    font-family: "Georgia", "Times New Roman", serif; /* ou le nom de ta police */
  font-size: 3rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #D07E00;
  max-width: 100% !important;
}
/* 5. Adaptation mobile : texte plus petit */
@media (max-width: 768px) {
.pswp__caption__center {
    text-align: center !important;
    font-family: "Georgia", "Times New Roman", serif; /* ou le nom de ta police */
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #D07E00;
  max-width: 100% !important;
}
}
/* Masquer le nom sous les vignettes uniquement pour la catégorie/article exception */
.sans-noms-phoca .pg-item-box-title,
.sans-noms-phoca .pg-item-box-info,
.sans-noms-phoca .pg-item-box-title *,
.sans-noms-phoca .pg-item-box-info * {
    display: none !important;
}
/* Masque le texte anglais d'origine tout en gardant le mot "Browse" ciblable */
.drag-and-drop-text {
    font-size: 0 !important;
    color: transparent !important;
}

/* Texte avant "Parcourir" */
.drag-and-drop-text::before {
    content: "Glissez-déposez vos fichiers ici ou ";
    font-size: 1rem !important; /* Ajuste selon la taille voulue */
    color: #333333 !important; /* Ajuste selon ta charte */
}

/* Remplace le texte de "Browse" par "Parcourir" */
.tf-upload-browse {
    font-size: 0 !important;
    color: transparent !important;
}

.tf-upload-browse::after {
    content: "Parcourir";
    font-size: 1rem !important;
    color: #D07E00 !important;
    text-decoration: underline;
    cursor: pointer;
}
/* Masque le texte Max file size: 64MB */
.max-file-size {
    font-size: 0 !important;
    color: transparent !important;
}