h1, h2, h3 {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #cfcfcf;
}

body {
  background: radial-gradient(
    circle at top,
    #1a1a1a 0%,
    #0e0e0e 60%
  );
}

em {
	font-size: 12px;
}

.center{
	text-align: center;
}

table.center {
    margin-left: auto;
    margin-right: auto;
}

:root {
  --accent: #c9a24d;
}

section {
  max-width: 1100px;
  margin: 0 auto 4rem auto;
  padding: 0 1.5rem;
}

section::after, article::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  margin: 3rem auto 0;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent),
    transparent
  );
  opacity: 0.4;
}

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.6rem;
  margin-bottom: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card h2 {
  color: gold;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,162,77,0.35);
}

.feature-table {
  font-size: 0.9rem;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  overflow: hidden;
}

.gallery {
  cursor: grab;
}

.center_img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}


/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  z-index: 1000;
}

/* Centered video box */
.video-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: 5% auto;
}

/* Video */
.video-container video {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Close button */
.video-container .close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.subtitle,
.aside {
  opacity: 0;
  transform: translateY(6px);
}

/* Animation */
.delayed {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 1.8s;
}

.delayed-late {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 3.4s;
}

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

$(function () {
  $('#newsletterForm').on('submit', function (e) {
    e.preventDefault(); // empêche le reload

    const $form = $(this);
    const $msg  = $('#newsletterMessage');

    $.post('/newsletter/subscribe.php', $form.serialize())
      .done(function (response) {
        $msg.text(response).removeClass().addClass('success');
        $form.trigger('reset');
      })
      .fail(function () {
        $msg.text('An error occurred. Please try again.').removeClass().addClass('error');
      });
  });
});