/* ==========================================================================
   AirChampion — feuille de style principale
   Palette noir & or, inspirée de la carte de visite : fond sombre,
   typographie stencil, dégradés dorés en accent.
   ========================================================================== */

:root {
  --sky-deep: #0b0b0c;
  --sky-mid: #161616;
  --sky-bright: #e3c281;
  --amber: #c9a15c;
  --gold-light: #f6e2ad;
  --gold-deep: #8a6a2e;
  --bg-light: #1c1c1f;
  --bg-white: #101012;
  --text-dark: #f5f1e8;
  --text-muted: #a39c8c;
  --line: rgba(245, 241, 232, 0.12);

  --font-display: "Big Shoulders Stencil", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Rajdhani", sans-serif;

  --container: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background:
    radial-gradient(1100px circle at 88% -10%, rgba(201, 161, 92, 0.1), transparent 55%),
    linear-gradient(180deg, #101012 0%, #0b0b0c 60%);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Eyebrow / mono labels (style "readout" instrument) ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-bright);
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sky-deep);
  border-bottom: 1px solid rgba(201, 161, 92, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--amber) 50%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand small {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--sky-bright);
  letter-spacing: 0.16em;
  -webkit-text-fill-color: var(--sky-bright);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  border-color: var(--amber);
}

.nav-instagram {
  display: flex;
  align-items: center;
  padding: 4px;
  margin-left: 4px;
  border-radius: 50%;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-instagram:hover {
  background: rgba(201, 161, 92, 0.12);
  transform: translateY(-1px);
}

.nav-instagram svg { width: 19px; height: 19px; flex: none; }

.nav-instagram-text {
  display: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky-bright);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #fff;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--sky-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 24px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; }
  .nav-instagram { justify-content: flex-start; gap: 8px; padding: 12px 4px; border-radius: 0; }
  .nav-instagram-text { display: inline; }
}

@media (max-width: 420px) {
  img[alt="Insigne pilote AirChampion.fr"] { width: 44px !important; height: 44px !important; margin-left: 10px !important; }
}

/* ---------- Horizon divider — élément signature ----------
   Ligne d'horizon artificielle : rappelle l'instrument de bord,
   sépare les sections avec une légère respiration animée. */

.horizon {
  position: relative;
  height: 48px;
  overflow: hidden;
  background: var(--bg-light);
}

.horizon::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sky-mid) 15%, var(--amber) 50%, var(--sky-mid) 85%, transparent);
  transform: translateY(-50%);
  animation: horizon-drift 9s ease-in-out infinite;
}

.horizon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  transform: translate(-50%, -50%);
}

@keyframes horizon-drift {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(-50%) rotate(0.6deg); }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(ellipse at top, rgba(201, 161, 92, 0.16), transparent 60%),
    linear-gradient(180deg, var(--sky-deep) 0%, var(--sky-mid) 100%);
  color: #fff;
  padding: 96px 0 76px;
  position: relative;
}

.hero-map {
  background:
    radial-gradient(ellipse at top, rgba(201, 161, 92, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(11, 11, 12, 0.94) 0%, rgba(22, 22, 22, 0.92) 100%),
    url("assets/fond-oaci.jpg");
  background-size: cover;
  background-position: center;
}

.hero .wrap {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.hero-layout {
  max-width: var(--container) !important;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 44px;
  align-items: start;
}

.hero-text {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.hero-video-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 161, 92, 0.45);
  border-radius: 8px;
  padding: 18px;
  margin-top: 4px;
}

.hero-video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(201, 161, 92, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.hero-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-video-empty {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  border: 1px dashed rgba(201, 161, 92, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: 28px; }
  .hero-text { max-width: none; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  margin: 6px 0 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--gold-light) 0%, #fff 30%, var(--amber) 75%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.credential-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 16px 7px 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.credential-badge svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 8px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--amber) 55%, var(--gold-deep) 100%);
  color: var(--sky-deep);
  font-weight: 700;
}

.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Sections generic ---------- */

section.block {
  padding: 72px 0;
}

section.block.tight { padding: 48px 0; }

.section-heading {
  max-width: 60ch;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin: 6px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text-dark);
}

.section-heading p {
  color: var(--text-muted);
}

/* ---------- Photo strip (aperçu galerie sur l'accueil) ---------- */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-light);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-frame:hover img { transform: scale(1.05); }

.photo-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(0deg, rgba(11, 11, 12, 0.9), transparent);
}

@media (max-width: 900px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .photo-strip { grid-template-columns: 1fr; }
}

/* ---------- Mur de photos encadrées (accueil) ---------- */

.photo-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.photo-wall-item { margin: 0; }

.photo-wall-frame {
  display: block;
  position: relative;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  padding: 5px;
  background: linear-gradient(135deg, rgba(246, 226, 173, 0.14), rgba(138, 106, 46, 0.1));
  border: 1px solid rgba(201, 161, 92, 0.45);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.photo-wall-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.photo-wall-item:hover .photo-wall-frame {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.photo-wall figcaption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .photo-wall { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .photo-wall { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------- Mosaïque dynamique + visionneuse (page Galerie) ---------- */

.photo-masonry {
  columns: 4 220px;
  column-gap: 16px;
}

.photo-masonry-item {
  break-inside: avoid;
  margin: 0 0 16px;
  display: block;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(201, 161, 92, 0.3);
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.photo-masonry-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.photo-masonry-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.photo-masonry-item:hover {
  border-color: var(--amber);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.photo-masonry-item:hover img { transform: scale(1.04); }

.photo-masonry-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(0deg, rgba(11, 11, 12, 0.85), transparent);
}

@media (max-width: 900px) {
  .photo-masonry { columns: 3 180px; }
}

@media (max-width: 560px) {
  .photo-masonry { columns: 2 140px; column-gap: 10px; }
  .photo-masonry-item { margin-bottom: 10px; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 8, 9, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border: 1px solid rgba(201, 161, 92, 0.4);
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-close:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Galerie vidéo ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-light);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 700px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ---------- À propos ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}

.about-layout .card-photo img {
  border-radius: 6px;
  border: 1px solid var(--line);
}

.about-layout p { color: var(--text-muted); text-align: justify; text-justify: inter-word; }
.about-layout p + p { margin-top: 14px; }

@media (max-width: 800px) {
  .about-layout { grid-template-columns: 1fr; }
}

/* ---------- Formulaire de contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

form.contact-form {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-light);
  color: var(--text-dark);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--sky-bright);
  outline-offset: 1px;
}

.field textarea { min-height: 140px; resize: vertical; }

.contact-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px dashed var(--line);
  padding: 12px 14px;
  border-radius: 4px;
}

@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--sky-deep);
  color: rgba(255, 255, 255, 0.65);
  padding: 40px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.site-footer a { text-decoration: none; color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--amber); }

.footer-update {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(201, 161, 92, 0.4);
  border-radius: 999px;
  padding: 3px 10px 3px 8px;
  margin-left: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sky-bright);
}

.footer-update .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 5px rgba(201, 161, 92, 0.8);
  flex: none;
}

/* ---------- Focus visibility globale ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Petits écrans (téléphones) ---------- */

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }

  .hero,
  .hero-map { padding: 64px 0 48px; }

  .hero .wrap { gap: 14px; }

  .hero p.lead { font-size: 1rem; }

  section.block { padding: 48px 0; }

  section.block.tight { padding: 32px 0; }

  .section-heading { margin-bottom: 28px; }

  .about-layout,
  .contact-layout { gap: 32px; }

  .credential-badge { font-size: 0.72rem; padding: 7px 14px 7px 8px; }

  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .brand { font-size: 1.25rem; }
}
