/* ==========================================================================
   A330-300 for Aerofly FS — product site
   Near-black ground so photography carries the page; large, tight display
   type; one warm accent for the purchase action; reveal-on-scroll motion.
   ========================================================================== */

:root {
  --ground:  #06080d;
  --ground-2:#0c1017;
  --panel:   #12171f;
  --line:    rgba(255,255,255,.10);
  --line-2:  rgba(255,255,255,.18);
  --text:    #f4f6f9;
  --muted:   #9aa4b3;
  --accent:  #f5b234;
  --accent-ink: #1a1200;
  --glass:   rgba(255,255,255,.08);

  --font-display: "Sora", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", Consolas, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, video, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40ch; }
.kicker { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 2 * var(--gutter)); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); max-width: 52ch; font-size: 1.05rem; }

/* Motion ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; } .delay-2 { transition-delay: .24s; } .delay-3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; line-height: 1; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px rgba(245,178,52,.25); }
.btn-primary:hover { background: #ffc24d; box-shadow: 0 12px 36px rgba(245,178,52,.35); }
.btn-glass { background: var(--glass); border-color: var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.14); }
.btn-lg { padding: 18px 32px; font-size: 1.1rem; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }

/* Header ----------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.site-header.solid { background: rgba(6,8,13,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang select { appearance: none; -webkit-appearance: none; background: var(--glass); color: var(--text); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 9px 32px 9px 14px; font-family: var(--font-body); font-weight: 500; font-size: .88rem; cursor: pointer; }
.lang select option { color: #111; }
.lang::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.menu-toggle { display: none; background: var(--glass); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 12px; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px 0; transition: transform .3s var(--ease), opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: rgba(6,8,13,.96); backdrop-filter: blur(16px); padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line);
         transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; color: var(--text); }
  .menu-toggle { display: block; margin-left: auto; }
  .header-tools .btn { display: none; }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; min-height: 92svh; display: grid; align-items: end; padding-block: 140px 96px; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: hero-zoom 14s var(--ease) forwards; }
.hero-media video { opacity: 0; transition: opacity 1.2s; }
.hero-media video.ready { opacity: 1; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(6,8,13,.55) 0%, rgba(6,8,13,.15) 35%, rgba(6,8,13,.75) 80%, var(--ground) 100%); }
.hero-content { display: grid; gap: 22px; max-width: 760px; }
.hero-content h1 { max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-prices { display: flex; gap: 22px; font-size: .95rem; color: var(--muted); }
.hero-prices b { font-family: var(--font-mono); color: var(--text); font-weight: 500; margin-left: 4px; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: hint 1.8s infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(16px); opacity: 0 } 100% { opacity: 0 } }
@media (max-width: 700px) { .hero { min-height: 86svh; padding-block: 120px 80px; } .scroll-hint { display: none; } }

/* Features: alternating image / text -------------------------------------- */
.features { display: grid; gap: clamp(64px, 10vw, 140px); padding-block: clamp(64px, 10vw, 140px) 0; }
.feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 96px); align-items: center; width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.feature:nth-child(even) .feature-media { order: 2; }
/* Pas de proportions imposees : un poste de pilotage se cadre en 4:3 et un
   avion entier en 16:9, un cadre unique couperait le pupitre ou le nez. */
.feature-media { position: relative; max-width: 100%; border-radius: 20px; overflow: hidden; background: var(--panel); }
.feature-media img { display: block; width: 100%; height: auto; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.feature.in .feature-media img { transform: scale(1); }
.feature-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.feature-copy { display: grid; gap: 16px; }
.feature-copy p { color: var(--muted); font-size: 1.08rem; max-width: 48ch; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature-media { order: 0; } }

/* Specs ------------------------------------------------------------------ */
.specs { padding-block: clamp(72px, 10vw, 140px); }
.specs h2 { margin-bottom: 40px; }
.spec-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spec-grid li { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.spec-grid b { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -.03em; line-height: 1; }
.spec-grid span { color: var(--muted); font-size: .95rem; }
@media (max-width: 720px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Gallery ---------------------------------------------------------------- */
.gallery-section { padding-block: 0 clamp(72px, 10vw, 140px); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-inline: 10px; }
.gallery a { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-radius: 12px; background: var(--panel); }
/* Grille reguliere : 8 captures en 16:9 remplissent exactement 4 colonnes
   sur 2 rangees. Une grande tuile sur deux rangees laisserait deux cases
   vides en bas, le compte ne tombant juste qu'a 9 images. */
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Liveries --------------------------------------------------------------- */
.liveries-section { padding-block: 0 clamp(72px, 10vw, 140px); }
.livery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.livery { margin: 0; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .3s; }
.livery:hover { transform: translateY(-4px); border-color: var(--line-2); }
.livery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.livery figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; font-size: .92rem; font-weight: 500; }
.livery .tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(245,178,52,.4); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }

/* Editions --------------------------------------------------------------- */
.editions { padding-block: 0 clamp(72px, 10vw, 140px); }
.edition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.edition { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 22px; align-content: start; }
.edition header { display: grid; gap: 6px; }
.edition .sub { color: var(--muted); font-size: .95rem; }
.edition .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; margin-top: 8px; }
.edition ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.edition li { padding-left: 26px; position: relative; }
.edition li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.edition .btn { justify-self: start; }
.edition .soon { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .edition-grid { grid-template-columns: 1fr; } }

/* FAQ -------------------------------------------------------------------- */
.faq-section { padding-block: 0 clamp(72px, 10vw, 140px); }
.faq-section h2 { margin-bottom: 28px; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { color: var(--muted); padding-bottom: 22px; max-width: 70ch; }

/* Community + CTA ---------------------------------------------------------- */
.community { padding-block: 0 clamp(72px, 10vw, 140px); }
.community-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(24px, 3vw, 40px); border-radius: 24px; border: 1px solid var(--line); background: var(--panel); }
.community-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.community-card p { color: var(--muted); margin-top: 6px; }
.cta-band { padding-block: clamp(80px, 12vw, 160px); text-align: center; background: radial-gradient(70% 60% at 50% 100%, rgba(245,178,52,.12), transparent 70%); }
.cta-band .wrap { display: grid; gap: 18px; justify-items: center; }
.cta-band p { color: var(--muted); font-size: 1.1rem; }
.cta-band .btn { margin-top: 10px; }

/* Lightbox + trailer modal ------------------------------------------------- */
.lightbox, .modal { position: fixed; inset: 0; z-index: 100; background: rgba(4,6,10,.94); display: grid; place-items: center; padding: 24px; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-height: 84vh; width: auto; max-width: 100%; border-radius: 10px; }
.lightbox figcaption { color: var(--muted); font-size: .9rem; }
.lb-close, .lb-prev, .lb-next, .modal-close { position: absolute; background: var(--glass); border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; width: 46px; height: 46px; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-close, .modal-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.modal-frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; overflow: hidden; background: #000; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 56px; }
.site-footer .wrap { display: grid; gap: 22px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.disclaimer { font-size: .9rem; color: var(--text); }
.small { font-size: .82rem; color: var(--muted); }

/* About the aircraft ------------------------------------------------------ */
.about { padding-block: clamp(72px, 10vw, 140px) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-copy { display: grid; gap: 18px; }
.about-copy p { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.about-copy .kicker { margin-bottom: 4px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.facts li { border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; display: grid; gap: 6px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); }
.facts b { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.03em; line-height: 1; }
.facts span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Key features, grouped ---------------------------------------------------- */
.keyf { padding-block: clamp(72px, 10vw, 140px) 0; }
.keyf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kf { border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; background: var(--panel); display: grid; gap: 14px; align-content: start; }
.kf h3 { font-size: 1.15rem; }
.kf ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.kf li { padding-left: 18px; position: relative; }
.kf li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 960px) { .keyf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .keyf-grid { grid-template-columns: 1fr; } }

/* hero image framing: keep the aircraft clear of the copy on wide screens */
.hero-media img { object-position: 62% 50%; }
@media (max-width: 900px) { .hero-media img { object-position: 50% 50%; } }

/* Secondary pages ---------------------------------------------------------- */
.page-head { padding-block: 150px 40px; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 14px; }
.page-body { padding-block: 0 clamp(72px, 10vw, 140px); }
.prose { display: grid; gap: 14px; }
.prose h2 { font-size: 1.5rem; margin-top: 28px; }
.prose p { color: var(--muted); max-width: 70ch; }
.prose .btn { margin-top: 4px; }
.steps, .checks { margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); max-width: 70ch; }
.steps { counter-reset: step; list-style: none; }
.steps li { position: relative; padding-left: 40px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-mono); font-size: .8rem; color: var(--text); }
.checks { list-style: none; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.release { display: grid; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.release header { display: grid; gap: 6px; }
.release .ver { font-family: var(--font-mono); color: var(--accent); font-size: .9rem; }
.release time { color: var(--muted); font-size: .9rem; }
.release h2 { font-size: 1.6rem; }
