/* Reset & global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/images/fond.png') center/cover no-repeat;
  z-index: -1;
  opacity: 0.2;
  filter: contrast(1.1) brightness(1.5) blur(2px);
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0A2239;
  color: white;
  overflow: hidden;
}

/* Loader */
#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #0A2239;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
  pointer-events: none;
}

svg {
  transform: rotate(-90deg);
  width: 80px;
  height: 80px;
}

circle {
  fill: none;
  stroke: #C8A85C;
  stroke-width: 5;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.3s ease;
}

.loading-text {
  margin-top: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #C8A85C;
}

#main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 60px;
  padding: 40px 20px;
}

.intro {
  text-align: center;
}

.page-title {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #C8A85C;
  text-transform: uppercase;
}

.sub-slogan {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: #C8A85C;
  margin-top: 10px;
  letter-spacing: 1px;
  font-style: italic;
  animation: fadeInSlogan 1.5s ease-out both;
}

.intro p {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #eee;
}

.entry-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}

.box {
  background-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #C8A85C;
  border-radius: 0;
  padding: 40px;
  width: 260px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInBox 0.8s ease-out forwards;
}

.box:nth-child(1) {
  animation-delay: 0.2s;
}

.box:nth-child(2) {
  animation-delay: 0.4s;
}

@keyframes fadeInBox {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSlogan {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.box img {
  max-height: 70px;
  margin-bottom: 20px;
}

.box p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #ccc;
}

.box button {
  background: transparent;
  border: none;
  color: #C8A85C;
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 0;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.box button:hover {
  background-color: rgba(200, 168, 92, 0.15);
  color: #C8A85C;
}

/* Footer & contact */
.contact-info {
  background: #0A2239;
  color: #C8A85C;
  padding: 20px;
  border-radius: 8px;
}

.contact-info a {
  color: #C8A85C;
  text-decoration: underline;
}

footer {
  text-align: center;
  color: #ccc;
  font-size: 0.85rem;
  margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .entry-section {
    flex-direction: column;
    gap: 30px;
  }
}

@media (min-width: 1024px) {
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0A2239;
    padding: 20px 0;
    z-index: 999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
  }

  #main {
    padding-bottom: 120px;
  }
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pulse {
  animation: pulseScale 0.4s ease-in-out;
}

@keyframes pulseScale {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
