/* === STYLE GÉNÉRAL === */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #111;
  color: #fff;
  text-align: center;
}

header {
  padding-top: 100px;
}

.main-image {
  max-width: 90%;
  height: auto;
  border-radius: 20px;
  margin: 20px 0;
  box-shadow: 0 5px 25px rgba(255, 102, 0, 0.4);
}

.button {
  background: #ff6600;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.3s ease, background 0.3s;
}

.button:hover {
  background: #ffa366;
  transform: scale(1.1);
}

/* === SECTION MINIATURES === */
.miniatures {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  flex-wrap: wrap;
}

.card {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 20px;
  width: 160px;
  transition: transform 0.3s;
}

.card:hover {
  transform: scale(1.08);
}

.card img {
  width: 100%;
  border-radius: 15px;
}

.card-title {
  margin-top: 10px;
  font-weight: bold;
}

/* === LOGO MENU === */
.menu .logo img {
  height: 50px;
  width: auto;
  display: block;
}

.menu .logo a {
  display: inline-block;
}

/* === FORMULAIRE === */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: 30px auto;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 10px;
  border: none;
  font-size: 1em;
}

form button {
  background: #ff6600;
  color: #fff;
  padding: 10px 25px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

form button:hover {
  background: #ffa366;
  transform: scale(1.1);
}

/* === MENU FIXE === */
.menu {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.menu .logo {
  position: absolute;
  left: 30px;
  font-weight: bold;
  font-size: 1.3em;
  color: #fff;
  letter-spacing: 1px;
}

.menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.menu ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 1.1em;
  padding: 8px 15px;
  border-radius: 8px;
  transition: background 0.3s, transform 0.3s;
}

/* === Lien “Boutique / Winkel” === */
.menu ul li a[href*="ad-petanque.store"] {
  color: #ffcc00;
}

.menu ul li a[href*="ad-petanque.store"]:hover {
  background-color: rgba(255,204,0,0.2);
  transform: scale(1.1);
}

.menu ul li a:hover,
.menu ul li a.active {
  background-color: rgba(255,102,0,0.8);
  transform: scale(1.1);
}

/* === BURGER (Mobile) === */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: absolute;
  right: 25px;
}

.burger div {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === VERSION MOBILE === */
@media (max-width: 800px) {
  .burger {
    display: flex;
  }

  .menu ul {
    position: fixed;
    top: 60px;
    right: 0;
    background-color: rgba(0,0,0,0.9);
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 25px;
    padding: 30px 0;
    transform: translateY(-200%);
    opacity: 0;
    transition: all 0.4s ease;
  }

  .menu ul.open {
    transform: translateY(0);
    opacity: 1;
  }

  .burger.open div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .burger.open div:nth-child(2) {
    opacity: 0;
  }

  .burger.open div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* === FOOTER === */
footer {
  margin-top: 40px;
  padding: 20px;
  font-size: 0.9em;
  color: #ccc;
}

footer a {
  color: #ff6600;
  text-decoration: none;
}

/* === FOOTER MINIMALISTE === */
.footer-minimal {
  background: #000;
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-minimal p {
  margin: 8px 0;
}

.footer-minimal a {
  color: #ff6600;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s, transform 0.3s;
}

.footer-minimal a:hover {
  color: #ffa366;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .footer-minimal {
    font-size: 0.85em;
    padding: 25px 15px;
  }

  .footer-minimal a {
    display: inline-block;
    margin: 4px 6px;
  }
}

/* === SÉLECTEUR DE LANGUE === */
.langue-select {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 20px;
}

.flag-select {
  background-color: transparent;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-repeat: no-repeat;
  background-position: 6px center, right 8px center;
  background-size: 20px, 14px;
  padding-left: 36px;
  transition: all 0.3s ease;
}

.flag-select:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: #ffcc00;
}

.flag-select option {
  background-color: #222;
  color: #fff;
}

/* === BANNIÈRE === */
.banniere-image {
  width: 100%;
  margin: 0;
  padding: 0;
}

.banniere-img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 0;
}

/* === GALERIE MASONRY RESPONSIVE === */
.galerie {
  column-count: 3;
  column-gap: 1.5rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.galerie img {
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
  break-inside: avoid;
  object-fit: cover;
}

.galerie img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* ✅ Adaptation automatique selon la taille d’écran */
@media (max-width: 1024px) {
  .galerie {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .galerie {
    column-count: 1;
  }
}

/* === ZOOM === */
.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.zoom-overlay img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  animation: zoomIn 0.3s ease;
  cursor: zoom-out;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.zoom-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 1rem;
  transition: opacity 0.2s;
}

.zoom-arrow:hover {
  opacity: 0.7;
}

.zoom-arrow.left { left: 30px; }
.zoom-arrow.right { right: 30px; }

@media (max-width: 768px) {
  .zoom-arrow {
    font-size: 2rem;
    padding: 0.5rem;
  }
}
