/* Menu burger flottant à droite */
#burger-menu-container {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1000;
}
#burger-btn {
  background: #2d2d5a;
  border: none;
  border-radius: 16px 0 0 16px;
  box-shadow: 0 2px 12px #0003;
  padding: 16px 14px;
  cursor: pointer;
  outline: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.2s;
}
#burger-btn:hover, #burger-menu-container:hover #burger-btn, #floating-menu:hover ~ #burger-btn {
  opacity: 1;
}
#floating-menu {
  display: none;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
  background: #2d2d5aee;
  border-radius: 16px 0 0 16px;
  box-shadow: 0 2px 12px #0003;
  padding: 18px 12px 18px 18px;
  margin-top: 8px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
#floating-menu.show {
  display: flex !important;
  opacity: 1;
}
#floating-menu:hover {
  opacity: 1;
}
#burger-menu-container:hover #floating-menu {
  opacity: 1;
}
#burger-menu-container a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  padding: 6px 18px;
  border-radius: 12px;
  transition: background 0.2s;
}
#burger-menu-container a:hover {
  background: #00bfff;
  color: #22224d;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #0a0a0f;
  color: #f0f0f0;
}

header {
  text-align: center;
  padding: 20px;
}

header img {
  max-width: 120px;
}

header h1 {
  margin: 10px 0 5px;
  font-size: 1.8em;
}

nav {
  margin-top: 10px;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #f0f0f0;
  font-weight: bold;
}

nav a:hover {
  color: #00bfff;
}

.main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.block {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 0 4px 18px #0001, 0 1.5px 4px #0002;
  border: 1.5px solid #22224d;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
}

.block:hover {
  background: #33334d;
  color: #fff;
  box-shadow: 0 8px 24px #0002, 0 2px 8px #0002;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0 auto 22px;
  max-width: 1100px;
}

.gallery.gallery-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 700px;
}

.gallery.gallery-vertical img {
  width: 100%;
  max-width: 700px;
  max-height: 75vh;
  height: auto;
  object-fit: contain;
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.page-fullwidth-gallery {
  display: block !important;
  width: 65% !important;
  max-width: 65% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.page-fullwidth-gallery img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: none !important;
}

@media (max-width: 1200px) {
  .gallery {
    max-width: 900px;
  }
}

@media (max-width: 900px) {
  .gallery {
    max-width: 98vw;
  }
}

@media (max-width: 600px) {
  .gallery {
    max-width: 98vw;
  }
}

.gallery img:hover {
  transform: none;
  box-shadow: none;
  z-index: auto;
}

.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px #000a;
  cursor: default;
}
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  font-size: 2.5em;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  background: none;
  border: none;
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.8em;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-50%) scale(1.05);
}
.lightbox-nav.left {
  left: 24px;
}
.lightbox-nav.right {
  right: 24px;
}
footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid #333;
}
