/* ======================================================
GO UP - STYLE MINIMAL INSPIRÉ WEBFLOW
====================================================== */

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  background: #F9F5EE;
  color: #2F0601;
  line-height: 1.6;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

/* Boutons Minimal Style */
.btn-minimal {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid #2F0601;
  background: transparent;
  color: #2F0601;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-minimal:hover {
  background: #2F0601;
  color: #F9F5EE;
}

.btn-primary-large {
  display: inline-block;
  padding: 1rem 3rem;
  background: #DC9F37;
  color: #F9F5EE;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 2px solid #DC9F37;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary-large:hover {
  background: #c78d2f;
  border-color: #c78d2f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 159, 55, 0.3);
}

.btn-secondary-large {
  display: inline-block;
  padding: 1rem 3rem;
  background: transparent;
  color: #2F0601;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 2px solid #2F0601;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-secondary-large:hover {
  background: #2F0601;
  color: #F9F5EE;
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(47, 6, 1, 0.1);
  background: #fff;
  color: #2F0601;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: #DC9F37;
}

.form-input::placeholder {
  color: rgba(47, 6, 1, 0.4);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 3s ease-out, transform 3s ease-out;
}

/* Animation éléments visibles */
.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation échelonnée */
.stagger-animation {
  animation-name: fadeSlideIn;
  animation-duration: 3s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  opacity: 0; /* invisible avant animation */
}

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


/* Navigation backdrop blur fallback */
@supports not (backdrop-filter: blur(12px)) {
  nav {
    background: #F9F5EE !important;
  }
}

/* Smooth scroll offset for fixed nav */
section {
  scroll-margin-top: 5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #F9F5EE;
}

::-webkit-scrollbar-thumb {
  background: #DC9F37;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c78d2f;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .btn-primary-large,
  .btn-secondary-large {
    padding: 0.875rem 2rem;
    font-size: 0.8125rem;
  }
}

/* Date box styling */
.date-box {
  background: linear-gradient(135deg, #F9F5EE 0%, #f5ede0 100%);
  border: 1px solid rgba(220, 159, 55, 0.2);
  padding: 0.5rem 1rem;
}

.date-day {
  font-weight: 700;
  color: #DC9F37;
  letter-spacing: 0.05em;
}

.date-time {
  color: #2F0601;
  opacity: 0.7;
}

/* Info box styling */
.info-box {
  background: linear-gradient(135deg, #F9F5EE 0%, #f5ede0 100%);
  border: 1px solid rgba(220, 159, 55, 0.2);
  padding: 0.5rem 1rem;
}

.info-title {
  font-weight: 700;
  color: #DC9F37;
  letter-spacing: 0.05em;
}

.info-subtitle {
  color: #2F0601;
  opacity: 0.7;
}

/* ======================================================
   Les ajouts optionnels
   ====================================================== */

/* Carte événement grande (section événements) */
.event-card {
  position: relative;
  overflow: visible; /* Important pour voir la neige qui tombe */
}

.bonnet-noel {
  position: absolute;
  top: -0.8rem;
  right: -0.9rem;
  width: 2rem;
  height: 2rem;
  z-index: 10;
  transition: transform 0.2s ease;
}

/* Animation secousse du bonnet */
@keyframes shake-bonnet {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-10deg); }
  20% { transform: rotate(10deg); }
  30% { transform: rotate(-10deg); }
  40% { transform: rotate(10deg); }
  50% { transform: rotate(-5deg); }
  60% { transform: rotate(5deg); }
  70% { transform: rotate(-5deg); }
  80% { transform: rotate(5deg); }
  90% { transform: rotate(0deg); }
}

.event-card:hover .bonnet-noel {
  animation: shake-bonnet 0.6s ease-in-out;
}

/* Flocons de neige */
.snowflake {
  position: absolute;
  top: 0.2rem;       /* alignement vertical resserré sous le bonnet */
  width: 0.4rem;
  height: 0.4rem;
  background: white;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  /* initialiser right pour chaque flocon séparément */
}

/* Animation de chute de neige */
@keyframes snowfall {
  0% {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(80px) translateX(20px) scale(0.5);
  }
}

/* Positionnement et timings ajustés */

.event-card:hover .snowflake:nth-child(1) {
  animation: snowfall 1.5s ease-out forwards;
  animation-delay: 0s;
  right: 0.1rem;
}

.event-card:hover .snowflake:nth-child(2) {
  animation: snowfall 1.8s ease-out forwards;
  animation-delay: 0.1s;
  right: 0.3rem;
}

.event-card:hover .snowflake:nth-child(3) {
  animation: snowfall 1.6s ease-out forwards;
  animation-delay: 0.2s;
  right: 0.5rem;
}

.event-card:hover .snowflake:nth-child(4) {
  animation: snowfall 2s ease-out forwards;
  animation-delay: 0.15s;
  right: 0.9rem;
}

.event-card:hover .snowflake:nth-child(5) {
  animation: snowfall 1.7s ease-out forwards;
  animation-delay: 0.25s;
  right: 1rem;
}

.event-card:hover .snowflake:nth-child(6) {
  animation: snowfall 1.3s ease-out forwards;
  animation-delay: 0.3s;
  right: 0.4rem;
}

.event-card:hover .snowflake:nth-child(7) {
  animation: snowfall 1.4s ease-out forwards;
  animation-delay: 0.35s;
  right: 0.2rem;
}

.event-card:hover .snowflake:nth-child(8) {
  animation: snowfall 1.9s ease-out forwards;
  animation-delay: 0.1s;
  right: 0rem;
}

.event-card:hover .snowflake:nth-child(9) {
  animation: snowfall 1.6s ease-out forwards;
  animation-delay: 0.4s;
  right: 0.7rem;
}


/* Mini carte actualités */
.news-card {
  position: relative;
  overflow: visible;
}

.bonnet-mini {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  z-index: 10;
  transition: transform 0.2s ease;
}

.news-card:hover .bonnet-mini {
  animation: shake-bonnet 0.6s ease-in-out;
}

/* Neige pour mini-cartes */
.news-card:hover .snowflake {
  animation: snowfall 1.5s ease-out;
}

.news-card .snowflake:nth-child(2) {
  animation-delay: 0.1s;
  right: 1.2rem;
}

.news-card .snowflake:nth-child(3) {
  animation-delay: 0.2s;
  right: 1.8rem;
}

/* Coming-soon tampon */

.coming-soon {
  position: absolute;
  top: 0px;
  right: 45px;
  background: rgba(242, 194, 48, 0.8); /* couleur or semi-transparente */
  color: #3a2300; /* couleur contrastée */
  padding: 6px 20px;
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: uppercase;
  transform: rotate(-10deg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  pointer-events: none; /* pour que le clic passe au lien */
  user-select: none;
  z-index: 10;
  border-radius: 0.5rem;
}

.coming-soon-0126 {
    position: absolute;
    top: -60px;
    right: -290px;
    background: rgb(242, 193, 48);
    opacity: 100% !important;
    color: #3a2300;
    padding: 20px 70px;
    font-weight: bold;
    font-size: 1.85rem;
    text-transform: uppercase;
    transform: rotate(-15deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none;
    user-select: none;
    z-index: 10;
    border-radius: 0.5rem;
}