/* ============================================================
   Takair — feuille de style partagée
   ============================================================ */
:root {
  --ink: #14181d; --ink-2: #20262e; --cloud: #ffffff; --cloud-deep: #f3f4f5;
  --steel: #6a7178; --steel-light: #9ba1a7;
  /* Accent unique : bleu nuit, utilisé avec parcimonie. Les anciennes
     variables --gold/--gold-bright pointent vers le bleu pour propager
     le changement sur tout le site sans toucher chaque page. */
  --navy: #1c2b46; --navy-soft: #2d4063; --navy-light: #93a6c6;
  --gold: #1c2b46; --gold-bright: #93a6c6;
  --line: #e3e5e7; --line-dark: #2a313a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--cloud); color: var(--ink); line-height: 1.6; font-weight: 300; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---------- Navigation ---------- */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 22px 40px; transition: background .4s, padding .4s; background: rgba(12,17,22,.85); backdrop-filter: blur(14px); }
.brand { font-size: 1.4rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-light); text-decoration: none; }
.brand b { color: #fff; }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a { white-space: nowrap; }
.nav-links a { text-decoration: none; color: var(--steel-light); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; transition: color .3s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--gold); }
.nav-cta { border: 1px solid var(--line-dark); padding: 10px 22px !important; border-radius: 2px; transition: all .3s; }
.nav-cta:hover { border-color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; color: var(--cloud); font-size: 1.5rem; cursor: pointer; padding: 12px; margin: -12px; }

/* ---------- Page header / hero ---------- */
.page-hero { min-height: 56vh; display: flex; align-items: flex-end; position: relative; overflow: hidden; padding-bottom: 70px; background: linear-gradient(165deg, #1a2230 0%, #0e131a 100%); color: var(--cloud); }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 75% 10%, rgba(45,64,99,.28), transparent 60%); }
.page-hero .wrap { position: relative; z-index: 1; }
.eyebrow { font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 24px; display: flex; align-items: center; gap: 16px; }
.eyebrow::before { content: ''; width: 44px; height: 1px; background: var(--gold-bright); }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.04; max-width: 900px; }
.page-hero h1 em { font-style: italic; color: var(--gold-bright); }
.page-hero p { color: var(--steel-light); font-size: 1.12rem; max-width: 560px; margin-top: 22px; }

/* Home hero (taller) */
.home-hero { min-height: 100vh; align-items: center; padding-bottom: 0; }
.home-hero h1 { font-size: clamp(2.9rem, 7.5vw, 6rem); }
.home-hero .cta-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 44px; }

/* Hero avec diaporama d'images (façon Bordas : grandes images sous le texte) */
.hero-photo { background: #0e131a; align-items: flex-end; padding-bottom: 90px; }
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.hero-video.is-ready { opacity: 1; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 42%;
  opacity: 0; transition: opacity 1.6s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
/* Cadrage vertical ajusté image par image */
.hero-slide:nth-child(1) { background-position: center 42%; }
.hero-slide:nth-child(2) { background-position: center 50%; }
.hero-slide:nth-child(3) { background-position: 18% 50%; }
/* Voile dégradé : sombre en bas pour le texte, plus clair en haut */
.hero-veil {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(10,14,20,.86) 0%, rgba(10,14,20,.45) 45%, rgba(10,14,20,.25) 100%);
}
.hero-photo .wrap { position: relative; z-index: 3; }
.hero-photo .eyebrow { color: #fff; }
.hero-photo .eyebrow::before { background: #fff; }
.hero-photo h1 em { color: #fff; font-style: italic; }
.hero-photo p { color: rgba(255,255,255,.82); }
/* Tirets indicateurs du diaporama */
.hero-dots { position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 14px; }
.hero-dots button { width: 34px; height: 2px; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,.35); transition: background .4s, width .4s; }
.hero-dots button.is-active { background: #fff; width: 52px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 16px 36px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: all .35s; cursor: pointer; border: none; border-radius: 2px; font-weight: 400; }
.btn-primary { background: var(--ink); color: var(--cloud); }
.btn-primary:hover { background: var(--navy); }
.btn-light { background: var(--cloud); color: var(--ink); }
.btn-light:hover { background: var(--cloud-deep); }
.btn-ghost { color: var(--cloud); border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: var(--cloud); }
.btn-ghost-dark { color: var(--ink); border: 1px solid var(--line-dark); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--navy); color: var(--navy); }
.btn-dark { background: var(--ink); color: var(--cloud); }
.btn-dark:hover { background: var(--navy); }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head .eyebrow { color: var(--gold); }
.section-head .eyebrow::before { background: var(--gold); }
.section-head h2 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; }
.section-head h2 em { font-style: italic; color: var(--gold); }
.section-head p { color: var(--steel); margin-top: 18px; font-size: 1.05rem; }

/* ---------- Cabin category cards ---------- */
.cabin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cabin { border: 1px solid var(--line); border-radius: 4px; background: #fbfbfc; overflow: hidden; transition: border-color .4s, transform .4s, box-shadow .4s; display: flex; flex-direction: column; }
.cabin:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 20px 44px rgba(12,17,22,.08); }
.cabin .ph { aspect-ratio: 16/8; background: linear-gradient(135deg, #20262e, #161b21); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cabin .ph svg { width: 70%; height: auto; opacity: .92; }
.cabin .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cabin .ph .cat-count { position: absolute; top: 16px; right: 18px; z-index: 2; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); border: 1px solid rgba(147,166,198,.4); background: rgba(12,17,22,.5); padding: 5px 12px; border-radius: 2px; }
.cabin .body { padding: 30px 30px 34px; flex: 1; display: flex; flex-direction: column; }
.cabin h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.7rem; margin-bottom: 16px; }
.cabin .specs { list-style: none; margin-bottom: 24px; }
.cabin .specs li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: .92rem; color: var(--steel); border-bottom: 1px solid var(--line); }
.cabin .specs li:last-child { border-bottom: none; }
.cabin .specs .ico { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.cabin .specs b { color: var(--ink); font-weight: 500; }
.cabin .more { margin-top: auto; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; align-self: flex-start; }
.cabin .more:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Fleet (aircraft) ---------- */
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plane { border: 1px solid var(--line); border-radius: 4px; background: #fbfbfc; overflow: hidden; transition: border-color .4s, transform .4s, box-shadow .4s; }
.plane:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 20px 44px rgba(12,17,22,.08); }
.plane .ph { aspect-ratio: 16/10; background: linear-gradient(135deg, #20262e, #161b21); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.plane .ph svg { width: 78%; opacity: .92; }
/* Quand une vraie photo est fournie via data-photo, elle recouvre le dessin */
.plane .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plane .ph .cat { position: absolute; top: 14px; left: 16px; z-index: 2; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); background: rgba(12,17,22,.7); padding: 5px 11px; border-radius: 2px; }
.plane .body { padding: 26px 26px 30px; }
.plane h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.5rem; line-height: 1.15; margin-bottom: 4px; }
.plane .sub { font-size: .82rem; color: var(--steel); margin-bottom: 20px; }
.plane .specs { list-style: none; }
.plane .specs li { display: flex; align-items: center; gap: 11px; padding: 7px 0; font-size: .88rem; color: var(--steel); }
.plane .specs .ico { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }
.plane .specs b { color: var(--ink); font-weight: 500; }
.floorplan-block { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.floorplan-label { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 12px; }
.floorplan-img { width: 100%; height: auto; display: block; }
.plane-learn-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); text-decoration: none; font-weight: 600; transition: gap .25s; }
.plane-learn-more:hover { gap: 10px; }
.plane-download { display: block; margin-top: 10px; font-size: .76rem; color: var(--steel); text-decoration: none; transition: color .25s; }
.plane-download:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Generic prose ---------- */
.prose { max-width: 760px; }
.prose p { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 22px; }
.prose h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 2rem; margin: 48px 0 18px; }
.prose h2 em { font-style: italic; color: var(--gold); }

/* ---------- Reasons (why) ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

/* ===== Bouton WhatsApp flottant ===== */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .25s, box-shadow .25s; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(0,0,0,.32); }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 600px) {
  .wa-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .wa-float svg { width: 27px; height: 27px; }
}

/* ===== Section About / Founder ===== */
.about-founder { padding: 90px 0; }
.about-grid { display: grid !important; grid-template-columns: 0.85fr 1.15fr !important; gap: 64px; align-items: center; }
.about-photo-frame {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 4/5 !important;
  height: auto !important;
  max-height: none;
  border-radius: 16px;
  overflow: hidden !important;
  background: var(--cloud-deep);
  border: 1px solid var(--line);
  box-sizing: border-box;
}
.about-photo-frame img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center 8%;
  display: block;
  transform: scale(1.22);
  transform-origin: center 8%;
}
.about-photo-frame:not(.is-placeholder) .about-photo-placeholder { display: none; }
.about-photo-frame.is-placeholder img { display: none; }
.about-photo-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--steel-light); text-align: center; padding: 30px; }
.about-photo-placeholder svg { width: 46px; height: 46px; opacity: .5; }
.about-photo-placeholder span { font-size: .8rem; line-height: 1.6; }
.about-photo-placeholder code { background: var(--line); padding: 2px 7px; border-radius: 4px; font-size: .74rem; color: var(--ink); }
.about-text .eyebrow { margin-bottom: 14px; }
.about-text h2 { margin-bottom: 22px; font-family: 'Playfair Display', serif; }
.about-text p { color: var(--steel); font-size: 1rem; line-height: 1.75; margin-bottom: 18px; }
.about-signature { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.15rem; color: var(--ink); margin-top: 12px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr !important; gap: 34px; }
  .about-photo-frame { max-width: 340px !important; margin: 0 auto; }
}
.reason { background: #fbfbfc; padding: 46px 36px; }
.reason .idx { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: var(--gold); line-height: 1; }
.reason h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.4rem; margin: 16px 0 12px; }
.reason p { color: var(--steel); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--cloud); text-align: center; }
.cta-band h2 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 20px; }
.cta-band h2 em { font-style: italic; color: var(--gold-bright); }
.cta-band p { color: var(--steel-light); max-width: 500px; margin: 0 auto 38px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: var(--steel); padding: 60px 0 38px; border-top: 1px solid var(--line-dark); }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.foot-brand { font-size: 1.3rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-light); }
.foot-brand b { color: #fff; }
.foot-col h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--steel-light); text-decoration: none; font-size: .9rem; padding: 8px 0; transition: color .3s; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { border-top: 1px solid var(--line-dark); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .8rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .wrap, nav { padding-left: 22px; padding-right: 22px; }
  .nav-links { position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 340px; background: var(--ink-2); flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px; gap: 4px; transition: right .4s; }
  .nav-links a { padding: 11px 0; width: 100%; display: block; }
  .nav-links.open { right: 0; }
  .nav-toggle { display: block; z-index: 101; }
  .nav-links a { font-size: .95rem; }
}
@media (max-width: 900px) {
  .cabin-grid, .fleet-grid, .reasons, .safety-grid, .standards, .amenities { grid-template-columns: 1fr; }
  .explain-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 48px; }
  section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
}

/* Tablette : grilles à 2 colonnes plutôt que 3 */
@media (max-width: 760px) {
  .cabin-grid { grid-template-columns: 1fr; }
}

/* Mobile : ajustements fins pour petits écrans */
@media (max-width: 600px) {
  .wrap, nav { padding-left: 18px; padding-right: 18px; }
  nav { padding-top: 16px; padding-bottom: 16px; }
  .page-hero { min-height: 60vh; padding-bottom: 48px; }
  .home-hero, .hero-photo { min-height: 92vh; padding-bottom: 60px; }
  .page-hero h1, .home-hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.08; }
  .page-hero p, .hero p { font-size: 1.02rem; }
  .eyebrow { font-size: .68rem; letter-spacing: .2em; margin-bottom: 20px; }
  .eyebrow::before { width: 30px; }
  section { padding: 60px 0; }
  .section-head h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .cta-row { width: 100%; }
  .cta-row .btn { width: 100%; text-align: center; }
  .btn { padding: 15px 28px; }
  .cabin .body, .plane .body, .safety-cell, .reason, .why .cell, .amenity { padding-left: 26px; padding-right: 26px; }
  .foot-grid { flex-direction: column; gap: 32px; }
  .foot-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-dots { bottom: 24px; }
  .hero-dots button { width: 26px; }
  .hero-dots button.is-active { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
