/* =============================================
   AIR TECH YACHTING — Scroll-Driven Site
   ============================================= */

:root {
  --bg-dark:        #0B1828;
  --bg-mid:         #112236;
  --bg-light:       #F2EEE5;
  --gold:           #ffffff;
  --gold-light:     rgba(255,255,255,0.7);
  --text-on-dark:   #ffffff;
  --text-on-light:  #0B1828;
  --muted-dark:     rgba(255,255,255,0.55);
  --muted-light:    rgba(11,24,40,0.45);

  /* Text on the video canvas sections */
  --text-video:       #0B1828;
  --muted-video:      rgba(11,24,40,0.65);

  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }

body {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

/* ── LOADER ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
}
.loader-bar-wrap {
  width: 220px;
  height: 1px;
  background: rgba(197,164,106,0.2);
  position: relative;
  overflow: hidden;
}
#loader-bar {
  height: 1px;
  width: 0%;
  background: var(--gold);
  transition: width 0.15s ease;
}
#loader-percent {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted-dark);
}

/* ── FIXED HEADER ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.8rem 4vw;
  display: flex;
  align-items: center;
  mix-blend-mode: normal;
}
.site-header nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  opacity: 1 !important;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  border-radius: 0;
  transition: background 0.25s ease, color 0.25s ease !important;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--bg-dark) !important;
}

/* ── NAV DROPDOWN ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(-135deg) translateY(-2px);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  background: rgba(11, 24, 40, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.6rem 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-dropdown-menu li a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
  opacity: 1;
}

/* ── HERO STANDALONE ── */
.hero-standalone {
  position: relative;
  width: 100%;
  height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8vw;
  overflow: hidden;
  z-index: 2;
}

/* Dark gradient so hero text stays readable over the video */
.hero-standalone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 18, 36, 0.72) 0%,
    rgba(8, 18, 36, 0.35) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Diagonal gold accent line */
.hero-standalone::after {
  content: '';
  position: absolute;
  bottom: 15%;
  right: 8vw;
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.6;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 70vw;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 14rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  overflow: hidden;
  padding-bottom: 0.18em;
}
.hero-word {
  display: block;
  transform: translateY(110%);
  opacity: 0;
}
.hero-word.italic {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  opacity: 0.8;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 8vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  opacity: 0;
}
.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.scroll-arrow {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* ── CANVAS ── */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.canvas-wrap.ready { opacity: 1; }
canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── DARK OVERLAY ── */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: rgba(8,14,24,0.9);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ── MARQUEE ── */
.marquee-wrap {
  position: fixed;
  bottom: 6vh;
  left: 0;
  right: 0;
  z-index: 5;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.marquee-text {
  font-family: var(--font-display);
  font-size: 11vw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(242,238,229,0.08);
  -webkit-text-stroke: 1px rgba(197,164,106,0.25);
  will-change: transform;
}

/* ── OVERLAYS FIXES GÉNÉRIQUES ── */
.text-overlay {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.text-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.overlay-left {
  padding-left: 6vw;
  padding-right: 52vw;
}
.overlay-left::before {
  background: linear-gradient(
    to right,
    rgba(6, 14, 28, 0.82) 0%,
    rgba(6, 14, 28, 0.55) 55%,
    transparent 100%
  );
}
.overlay-right {
  padding-left: 52vw;
  padding-right: 6vw;
  justify-content: flex-end;
}
.overlay-right::before {
  background: linear-gradient(
    to left,
    rgba(6, 14, 28, 0.82) 0%,
    rgba(6, 14, 28, 0.55) 55%,
    transparent 100%
  );
}
.overlay-inner {
  position: relative;
  z-index: 1;
  max-width: 40vw;
}

/* ── NOTRE EXPERTISE (overlay fixe) ── */
#expertise-overlay {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  padding-left: 6vw;
  padding-right: 52vw;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
/* Voile sombre à gauche pour la lisibilité */
#expertise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(6, 14, 28, 0.82) 0%,
    rgba(6, 14, 28, 0.55) 55%,
    transparent 100%
  );
  pointer-events: none;
}
.expertise-inner {
  position: relative;
  z-index: 1;
  max-width: 40vw;
}
.expertise-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
}
.expertise-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 6rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}
.expertise-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
  font-weight: 300;
}

/* ── SCROLL CONTAINER ── */
#scroll-container {
  position: relative;
  height: 650vh;
}

/* ── SCROLL SECTIONS ── */
.scroll-section {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  pointer-events: none;
  transform: translateY(-50%);
  padding: 4rem 0;
}
.scroll-section.visible { pointer-events: auto; }

.align-left {
  padding-left: 5vw;
  padding-right: 55vw;
}
.align-right {
  padding-left: 55vw;
  padding-right: 5vw;
}

.section-inner {
  max-width: 38vw;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 6rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin-bottom: 1.5rem;
}

.section-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted-dark);
  font-weight: 300;
}

/* Content + CTA sections sit over the video — use black text */
.section-content .section-label,
.section-cta .section-label {
  color: rgba(11,24,40,0.5);
}
.section-content .section-heading,
.section-cta .section-heading {
  color: var(--text-video);
}
.section-content .section-body,
.section-cta .section-body {
  color: var(--muted-video);
}

/* ── STATS ── */
.section-stats {
  left: 0;
  right: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  padding: 0 8vw;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  border-left: 1px solid rgba(255,255,255,0.18);
}
.stat:first-child { border-left: none; }

.stat-value-row {
  display: flex;
  align-items: flex-start;
  line-height: 1;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 300;
  color: var(--gold);
  padding-top: 0.1em;
  margin-left: 0.05em;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 1rem;
  text-align: center;
}

/* ── CTA SECTION ── */
.cta-button {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1rem 2.5rem;
  border: 1px solid var(--text-video);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-video);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.cta-button:hover {
  background: var(--text-video);
  color: #ffffff;
}

/* ── SECTION CONTACT ── */
.contact-section {
  position: relative;
  z-index: 10;
  background: var(--bg-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 8vw;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.contact-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.contact-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 2rem;
}
.contact-tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  margin-bottom: 3rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}
.contact-info-item a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info-item a:hover { color: #ffffff; }
.contact-info-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.contact-info-icon {
  font-size: 0.4rem;
  color: rgba(255,255,255,0.3);
}

.contact-open-btn {
  border-color: #ffffff;
  color: #ffffff;
  cursor: pointer;
  background: none;
  font-family: var(--font-body);
}
.contact-open-btn:hover {
  background: #ffffff;
  color: var(--bg-dark);
}

/* ── MODAL CONTACT ── */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.contact-modal.open {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 22, 0.88);
  backdrop-filter: blur(4px);
}
.modal-box {
  position: relative;
  z-index: 1;
  background: #f8f6f2;
  color: var(--bg-dark);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem 3rem 2.5rem;
  transform: translateY(24px);
  transition: transform 0.35s ease;
}
.contact-modal.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: rgba(11,24,40,0.45);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--bg-dark); }
.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bg-dark);
  margin-bottom: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}
.form-group label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11,24,40,0.5);
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--bg-dark);
  background: #ffffff;
  border: 1px solid rgba(11,24,40,0.15);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--bg-dark); }
.form-msg {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.form-error  { background: #fdf0f0; color: #b00; border-left: 3px solid #b00; }
.form-success { background: #f0fdf4; color: #166534; border-left: 3px solid #166534; }
.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--bg-dark);
  color: #ffffff;
  border: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
  margin-top: 0.5rem;
}
.form-submit:hover { background: #1a3050; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .hero-heading { font-size: clamp(3.5rem, 16vw, 6rem); }

  .align-left  { padding: 2rem 5vw; }
  .align-right { padding: 2rem 5vw; }
  .section-inner { max-width: 100%; }

  .section-heading { font-size: clamp(2rem, 8vw, 3.5rem); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid rgba(197,164,106,0.15); }

  #scroll-container { height: 600vh; }
  .marquee-text { font-size: 18vw; }

  .nav-links li:not(:last-child) { display: none; }
}
