*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-dark: #0f0c29;
  --bg-dark-2: #302b63;
  --accent: #ff7a18;
  --accent-2: #ffb347;
  --text-main: #f4f4f4;
  --text-dark: #1a1a1a;
  --card-bg: #ffffff;
  --muted: #d9d9e8;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #f8f6ff;
  color: var(--text-dark);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2));
  color: var(--text-main);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--text-main);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
}

.site-nav a {
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}

.menu-close {
  display: none;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 12, 41, 0.85), rgba(48, 43, 99, 0.85));
  background-attachment: fixed;
  color: var(--text-main);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/hero.png") center/cover no-repeat;
  filter: blur(25px);
  transform: scale(1.15);
  z-index: 0;
  opacity: 0.6;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(15, 12, 41, 0.7) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-layout {
  position: relative;
  z-index: 1;
  animation: fadeUp 1.5s ease forwards;
  opacity: 0;
  width: 100%;
}

.hero-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  max-width: 100%;
  text-align: left;
}

.hero-image-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeUp 1.5s ease 0.3s forwards;
  opacity: 0;
}

.hero-image-card img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}

.hero p {
  max-width: 620px;
  margin: 0 auto 1.8rem;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 2.4rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 122, 24, 0.4);
}

.section {
  padding: 4rem 0;
}

.section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.5rem;
}

.section p.section-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: #4b4b68;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(15, 12, 41, 0.1);
  border: 1px solid rgba(15, 12, 41, 0.08);
}

.card img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
}

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(15, 12, 41, 0.12);
}

.faq-question {
  width: 100%;
  padding: 1.1rem 0;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.faq-answer.open {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.mini-game {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mini-game-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.mini-game-stats {
  display: flex;
  gap: 1.5rem;
  font-weight: 700;
  color: var(--bg-dark-2);
}

.mini-game-card {
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.08), rgba(67, 35, 113, 0.1));
  border-radius: 20px;
  padding: 1.5rem;
}

.mini-game-card .tag {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--bg-dark-2);
  margin-bottom: 0.3rem;
}

.mini-game-instructions {
  font-weight: 600;
}

.mini-game-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.mini-option {
  border-radius: 16px;
  border: 1px solid rgba(15, 12, 41, 0.15);
  padding: 0.9rem 1rem;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s;
}

.mini-option.selected {
  border-color: var(--bg-dark-2);
  box-shadow: 0 10px 20px rgba(15, 12, 41, 0.12);
  transform: translateY(-3px);
}

.mini-option:hover,
.mini-option:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.mini-option[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.mini-option.correct {
  border-color: #28c76f;
  background: rgba(40, 199, 111, 0.1);
}

.mini-option.wrong {
  border-color: #ff5d5d;
  background: rgba(255, 93, 93, 0.12);
}

.mini-game-feedback {
  min-height: 1.5em;
  font-weight: 600;
}

.mini-game-feedback.success {
  color: #28c76f;
}

.mini-game-feedback.error {
  color: #ff5d5d;
}

.mini-game-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.mini-game-next[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.mini-game-restart {
  border: 1px solid var(--bg-dark-2);
  color: var(--bg-dark-2);
  background: transparent;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s;
}

.mini-game-restart:hover,
.mini-game-restart:focus-visible {
  background: rgba(48, 43, 99, 0.08);
}

.site-footer {
  background: #070412;
  color: #cfd0ff;
  padding: 2.5rem 0;
  margin-top: 0;
}

.footer-top,
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
}

.legal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-links a {
  color: inherit;
  text-decoration: underline;
}

.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 4, 18, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.popup {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  width: min(420px, 90vw);
  text-align: center;
  box-shadow: 0 25px 60px rgba(15, 12, 41, 0.25);
}

.popup h3 {
  margin-top: 0;
}

.popup button {
  margin-top: 1rem;
  background: var(--bg-dark);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
  cursor: pointer;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.cookie-actions button {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.cookie-actions .accept {
  background: var(--accent);
  color: #fff;
}

.cookie-actions .settings {
  background: #ece9ff;
  color: #3b3b67;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter {
  background: #fff;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 12, 41, 0.08);
  box-shadow: 0 10px 30px rgba(15, 12, 41, 0.08);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.catalog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.3s ease;
}

.lightbox.visible {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  width: min(90vw, 900px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
}

.map-container {
  width: 100%;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 12, 41, 0.12);
}

form {
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 600;
  color: #2c2c44;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 12, 41, 0.15);
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.merci-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 12, 41, 0.92), rgba(67, 35, 113, 0.9)),
    url("images/merci.jpg") center/cover;
  color: #fff;
  text-align: center;
  padding: 4rem 0;
  animation: fadeIn 1.2s ease;
}

.merci-hero .container {
  max-width: 620px;
}

.merci-hero img {
  margin: 0 auto 2rem;
  border-radius: 24px;
  max-width: 320px;
}

.parallax {
  background-attachment: fixed;
}

.accent-panel {
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.08), rgba(255, 179, 71, 0.12));
  border-radius: 24px;
  padding: 2rem;
}

.inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    background: rgba(15, 12, 41, 0.96);
    border-radius: 18px;
    flex-direction: column;
    padding: 1rem;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .menu-close {
    display: inline-flex;
    align-self: flex-end;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .hero {
    background-attachment: scroll;
  }

  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-text {
    text-align: center;
    order: 2;
  }

  .hero-image-card {
    max-width: 400px;
    margin: 0 auto;
    order: 1;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 70vh;
    padding: 3rem 0;
  }

  .hero-content-wrapper {
    gap: 1.5rem;
  }

  .hero-text {
    order: 2;
  }

  .hero-image-card {
    max-width: 100%;
    padding: 1rem;
    order: 1;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    flex-direction: column;
  }
}

