﻿/* ===========================
====== COULEURS ============ */
/* ====== COULEURS ====== */
:root {
  --velours-vert: #355E3B;
  --beige-sable: #F5F5DC;
  --gris-doux: #E0E0E0;
  --blanc-casse: #FAFAFA;
  --rouge-brique: #B22222;
  --bleu-info: #5DADE2;
}

/* ====== BASE ====== */
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: Arial, sans-serif;
  background: var(--blanc-casse);
  color: var(--velours-vert);
  margin: 20px;
}
h1, h2, h3 { color: var(--velours-vert); text-align: center; }




/* ===========================
   MASONRY GRID (multi-columns)
=========================== */
.masonry {
  display: flex;

  flex-wrap: wrap;
  gap: 30px;              /* espace entre les cartes */
  margin-top: 40px;
}

.masonry .card {
  flex: 1 1 calc(25% - 30px); /* deux colonnes avec espace */
  box-sizing: border-box;
}

@media (max-width: 1000px) {
  .masonry .card {
    flex: 1 1 100%;       /* une seule colonne sur mobile */
  }
}

/* Image wrapper pour overlay EXACT sur l'image */
.masonry .card .image-wrap {
  position: relative;
  margin-top: 10px;
  border-radius: 6px;
  overflow: hidden;
}
.masonry .card .image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hover douceur sur la carte */
.masonry .card:hover {
  transform: translateY(-3px);
  box-shadow: rgba(0,0,0,0.6) 0px 12px 24px;
}

/* Responsiveness — ordre important : du plus large au plus petit */
@media (max-width: 1100px) {
  .masonry { column-count: 3; }
}
@media (max-width: 900px) {
  .masonry { column-count: 2; }
}
@media (max-width: 600px) {
  .masonry { column-count: 1; }
}





/* ===========================
   IMAGES TEXTES
=========================== */

/* Limite de hauteur pour images grandes (desktop) */
@media (min-width: 700px) {
  .masonry .card .image-wrap img {
    max-height: 65vh;
    object-fit: cover;
  }
}

.masonry .card p {
  margin: 0.5rem 0;
  color: #fdd496;
    font-family: 'Georgia', 'Times New Roman', serif;

}



/* ===========================
   pas de carré blanc ni cercle
=========================== */

/* Overlay minimaliste sans fond (pas de carré blanc ni cercle) */
.likes-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  background: none !important;
  backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: 2;
}

button.btn-like {
  appearance: none;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  line-height: 1;
  color: #e60023; /* couleur du cœur via currentColor */
  outline: none;
}
button.btn-like svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
  transition: transform 0.2s ease;
}
button.btn-like:hover svg { transform: scale(1.12); }

.likes-overlay .like-count {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 0 3px rgba(0,0,0,0.6); /* lisible sans fond */
}

/* Cache l’ancien bloc likes s’il existe dans le markup legacy */
.likes { display: none !important; }


/* ===========================
   PAGINATION
=========================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  padding: 10px 16px;
  background: var(--velours-vert);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: background 0.3s, transform 0.2s ease;
}
.pagination a:hover {
  background: #a06406;
  transform: translateY(-2px);
}
.pagination .current {
  background: #a06406;
  font-weight: bold;
  transform: scale(1.05);
}

/* ===========================
   NOTIFICATIONS
=========================== */


				
.bouton {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: rgb(40, 167, 69);
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px; /* espace entre étoile et texte */
}

/* Glow doré au hover */
.bouton:hover {
  background: rgb(30, 136, 56);
  box-shadow: 0 0 10px rgba(253, 205, 132, 0.8),
              0 0 20px rgba(253, 205, 132, 0.6),
              0 0 30px rgba(253, 205, 132, 0.4);
  transform: translateY(-2px);
}

/* Étoile qui pulse doucement en continu */
.star {
  display: inline-block;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; color: #ffd700; }
  50%  { transform: scale(1.2); opacity: 0.8; color: #fff176; }
  100% { transform: scale(1); opacity: 1; color: #ffd700; }
}.notifications {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}




.notification {
  border-radius: 6px;
  padding: 12px 16px;
  min-width: 250px;
  max-width: 320px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: fadeSlideIn 0.4s ease-out;
  opacity: 0.95;
}
.notification.success { background: var(--velours-vert); color: #fff; }
.notification.error   { 
background: #dc3545; color: #fff; }
  color: red;            /* texte en rouge */
  border: 1px solid red; /* optionnel : encadré rouge */
  background: #ffe5e5;   /* optionnel : fond rouge pâle */
}



.notification.info    { background: #007bff; color: #fff; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}


/* ===========================
   lightbox
=========================== */


.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lightbox img.active {
  opacity: 1;
  transform: scale(1);
}


.lightbox img.slide-left {
  transform: translateX(-50px);
  opacity: 0;
}
.lightbox img.slide-right {
  transform: translateX(50px);
  opacity: 0;
}


.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 0 15px;
}
.lightbox .nav.left { left: 10px; }
.lightbox .nav.right { right: 10px; }

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}



/* ===========================
   Formulaire
=========================== */

/* Bloc formulaire */
.form-card {
  max-width: 600px;      /* limite sur grand écran */
  width: 100%;           /* prend toute la largeur dispo */
  margin: 20px auto;     /* centré */
  padding: 20px;
  box-sizing: border-box; /* évite le dépassement */
}

/* Champs du formulaire */
.form-card textarea,
.form-card input[type="file"] {
  width: 100%;           /* occupe toute la largeur */
  box-sizing: border-box;
}

/* Responsive : sur petit écran */
@media (max-width: 768px) {
  .form-card {
    max-width: 100%;     /* plus de limite */
    padding: 12px;       /* marges réduites */
  }
}


/* Formulaire */
.form-card {
  max-width: 600px;
  margin: 30px auto;
  padding: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: bold;
  color: #fdd484; /* ton doré déjà utilisé */
}

textarea, input[type="file"] {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #666;
  background: #222;
  color: #fff;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-actions {
  text-align: center;
  margin-top: 20px;
}

.link-gallery {
  text-align: center;
  margin-top: 30px;
}





#sec-3d5d .u-sheet-2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* contenu en haut */
  min-height: auto;            /* hauteur naturelle */
  pointer-events: initial;
}
