


/* Layout helper */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(
    to bottom,
    rgba(11, 29, 38, 0.95),
    rgba(11, 29, 38, 0)
  );
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.logo--footer {
  font-size: 1rem;
}

/* Nav */
.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #fff;
  opacity: 0.85;
}

.main-nav a:hover {
  opacity: 1;
}

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

.burger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* HERO (3-layer parallax inspired by original) */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 80px; /* header height */
  overflow: hidden;
  background-color: #0b1d26;
}

/* gradient over the images: very light at top → heavy at bottom */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 29, 38, 0.02),
    rgba(11, 29, 38, 0.95)
  );
  z-index: 2;
  pointer-events: none;
}

/* hero text */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
  padding: 5rem 0;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: #fbd784;
  margin-bottom: 1.25rem;
}

.label-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: #fbd784;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 4.2rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow:
    0 4px 6px rgba(0,0,0,.55),
    0 0 24px rgba(0,0,0,.35);
}

.hero-subtitle {
  max-width: 430px;
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-scroll-icon {
  font-size: 1.2rem;
}

/* hero layered images */
.hero-images {
  position: absolute;
  inset: 0;
  z-index: 1; /* under gradient + text */
  pointer-events: none;
}

.hero-layer {
  position: absolute;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  max-width: none;
  will-change: transform;
}

/* initial placements tuned by eye; adjust if needed */
  .hero-layer--back {
    width: 250%;
    top: 0%;
  }
  .hero-layer--mid {
    top: 0%;
    width: 250%;
  }
  .hero-layer--front {
    top: 0%;
    width: 250%;
  }

/* Side index */
.side-index {
  position: fixed;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.side-index span {
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.side-index span.active,
.side-index span:hover {
  opacity: 1;
}

/* Content sections */
.content-section {
  padding: 6rem 0;
  background: #0b1d26;
}

.section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.content-section--alt .section-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.section-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-text p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.section-text ol,
.section-text ul,
.section-text li {
  font-size: 0.95rem;
  opacity: 0.9;
}

.section-text .contact-list {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
}

.section-text .contact-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  font-size: 0.95rem;
  opacity: 0.95;
}

.section-text .contact-icon {
  width: 1.4rem;
  flex: 0 0 1.4rem;
  text-align: center;
  color: #fbd784;
  font-weight: 700;
}

.section-text .contact-label {
  min-width: 7.5rem;
  color: #fbd784;
  font-weight: 600;
}

.section-text .contact-value {
  flex: 1 1 auto;
}

.section-text .contact-value a {
  color: inherit;
  text-decoration: none;
}

.section-text .contact-value a:hover {
  text-decoration: underline;
}

.section-text .rdv-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: #fbd784;
  color: #0b1d26;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11, 29, 38, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.section-text .rdv-inline-button:hover {
  background: #ffe29f;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(11, 29, 38, 0.24);
}

.section-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.95rem;
}

.section-text th,
.section-text td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-text th {
  color: #fbd784;
  font-weight: 600;
}

.section-text td a {
  color: inherit;
  text-decoration: none;
}

.section-text td a:hover {
  text-decoration: underline;
}

.section-text .inline-contact-icon-image {
  width: 2rem;
  height: 2rem;
  display: inline-block;
  vertical-align: -0.12rem;
  margin-right: 0.5rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

body.page-rdv .section-text,
body.page-rdv .section-text h2,
body.page-rdv .section-text p,
body.page-rdv .section-text td,
body.page-rdv .section-text th {
  text-align: center;
}

body.page-rdv .section-inner,
body.page-rdv .content-section--alt .section-inner {
  grid-template-columns: 1fr;
}

body.page-rdv .section-text {
  max-width: 900px;
  margin: 0 auto;
  justify-self: center;
}

body.page-rdv .section-text table {
  max-width: 900px;
  margin: 1.5rem auto 2rem;
}

body.page-rdv .section-text th,
body.page-rdv .section-text td {
  padding: 1.1rem 1.4rem;
}

body.page-rdv .section-text td a,
body.page-rdv .section-text td button {
  justify-content: center;
}

@media (max-width: 768px) {
  .section-text .contact-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .section-text .contact-label {
    min-width: 0;
    width: calc(100% - 2.3rem);
  }

  .section-text .contact-value {
    width: 100%;
    padding-left: 2.3rem;
  }

  .section-text table,
  .section-text thead,
  .section-text tbody,
  .section-text tr,
  .section-text th,
  .section-text td {
    display: block;
  }

  .section-text thead {
    display: none;
  }

  .section-text tr {
    margin-bottom: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
  }

  .section-text td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .section-text tr td:last-child {
    border-bottom: 0;
  }

  body.page-rdv .section-text tr {
    margin-bottom: 1.15rem;
  }

  body.page-rdv .section-text td {
    text-align: center;
    padding: 1rem 1.15rem;
  }
}

.section-link {
  text-decoration: none;
  font-size: 0.9rem;
  color: #fbd784;
}

.section-link:hover {
  text-decoration: underline;
}

.section-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* Section meta */
.section-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.section-number {
  font-size: 3rem;
  font-weight: 700;
  opacity: 0.08;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #fbd784;
}

/* CTA */
.cta {
  padding: 5rem 0 6rem;
  text-align: center;
  background: #0b1d26;
}

.cta h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  max-width: 650px;
  margin: 0 auto;
}



/* Fullscreen overlay */

html.skip-splash #preloader {
  display: none !important;
}


#preloader {
  position: fixed;
  inset: 0;
  background: #0b0f14;           /* your background */
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 300ms ease, visibility 300ms ease;
}

/* Hidden state */
#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner .logo {
  font: 700 48px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  letter-spacing: 0.2em;
  color: white;
}

.preloader-title {


  text-shadow:
    0 4px 6px rgba(235, 23, 23, 0.55),
    0 2px 24px rgba(101, 240, 96, 0.35);

}


/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #preloader { transition: none; }
}


/* Responsive */

/* ---------------- 900px --------------------*/

@media (max-width: 900px) {
  .side-index {
    display: none;
  }

  .section-inner,
  .content-section--alt .section-inner {
    grid-template-columns: 1fr;
  }

  /* Always show the image first on narrow screens */
  .section-image {
    order: -1;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  /* initial placements tuned by eye; adjust if needed */
  .hero-layer--back {
    width: 200%;
    top: 3%;
  }
  .hero-layer--mid {
    top: 0%;
    width: 200%;
  }
  .hero-layer--front {
    top: -3%;
    width: 200%;
  }

  /* Less space under hero text on mobile */
  .hero-content {
    padding: 1rem 0 1.5rem;
  }

  /* Less top spacing before each section on mobile */
  .content-section {
    padding: 3.5rem 0;
  }
}

/* ---------------- 768px --------------------*/
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #0b1d26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .hero-title {
     text-align: center; 
  }

  .hero-subtitle {
     text-align: center; 
  }

    /* initial placements tuned by eye; adjust if needed */
  .hero-layer--back {
    width: 250%;
    top: 3%;
  }
  .hero-layer--mid {
    top: 0%;
    width: 250%;
  }
  .hero-layer--front {
    top: -3%;
    width: 250%;
  }

  /* (no hero-content override here anymore, so spacing stays tight) */
}

@media (max-width: 768px) {
  .logo {
    font-size: 0.88rem;
  }

  body.sections-page .hero-title {
    font-size: 2.56rem;
  }

  .hero-subtitle,
  .section-text,
  .section-text p,
  .section-text li,
  .section-text td,
  .section-text th,
  .section-link,
  .section-label,
  .contact-label,
  .contact-value {
    font-size: 0.9em;
  }
}
