/* ==========================================================================
   Climb&Fly — fiche de vol (chantier « Fiche de vol », 2026-11-02).
   Styles de la coquille /{lang}flights/view/ : préfixe fv- partout, aucun
   sélecteur global. Charte : minéral #F5F5F2, charbon #0E0F11, jaune
   #FFCE00, montée #FF8A00, vol #38BDF8.
   ========================================================================== */

/* Thème CLAIR (famille carnet / profils, comme les fiches spots) : les
   coquilles réutilisent le chrome des pages du mur, dont le CSS de base
   est sombre — on ré-établit le fond minéral et l'encre pour <main>.
   L'en-tête et le pied restent charbon, comme sur tout le site. */
body.cf-flight-page { background: #F5F5F2; color: #0E0F11; }
.fv-wrap { max-width: 880px; }
/* L'attribut hidden doit toujours gagner : plusieurs classes fv- et la
   classe .btn du site posent un display qui écraserait le style UA. */
.fv-wrap [hidden] { display: none !important; }
.fv-state { padding: 64px 0 80px; text-align: center; }
.fv-state-title { font-family: "Anton", sans-serif; font-size: 34px; text-transform: uppercase; margin: 0 0 10px; line-height: 1.05; }
.fv-state-text { color: #494D54; max-width: 52ch; margin: 0 auto 22px; }
.fv-loading { color: #494D54; font-weight: 600; }

/* ---------- en-tête ---------- */
.fv-head { margin: 26px 0 18px; }
.fv-pilot { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fv-avatar { width: 46px; height: 46px; border-radius: 50%; background: #0E0F11; border: 2px solid #FFCE00; color: #FFCE00; font-family: "Anton", sans-serif; font-size: 19px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: hidden; }
.fv-pilot-id { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.fv-pilot-name { font-weight: 800; font-size: 17px; text-decoration: none; }
.fv-pilot-name:hover { text-decoration: underline; }
.fv-founding { background: #FFCE00; color: #141414; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.fv-date { color: #494D54; font-size: 14px; font-weight: 600; }
.fv-spot { font-family: "Anton", sans-serif; font-size: clamp(38px, 7.5vw, 64px); line-height: 1.02; margin: 0; text-transform: uppercase; overflow-wrap: break-word; }
.fv-spot a { text-decoration: none; }
.fv-spot a:hover { text-decoration: underline; text-decoration-color: #FFCE00; text-decoration-thickness: 4px; }
.fv-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 14.5px; font-weight: 600; color: #494D54; }
.fv-badge { background: #ECECE7; border: 1px solid #D9D9D2; color: #0E0F11; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.fv-badge-cf { background: #FFCE00; border-color: #FFCE00; color: #141414; }
.fv-wing-k { color: #494D54; font-weight: 600; }

/* ---------- barre propriétaire ---------- */
.fv-owner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; background: #fff; border: 1px solid #D9D9D2; border-radius: 14px; padding: 12px 16px; }
.fv-chip { font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.fv-chip-pub { background: #E3F2E8; color: #177245; border: 1px solid #177245; }
.fv-chip-priv { background: #FFF4E0; color: #7A4A00; border: 1px solid #D97706; }
.fv-publish { min-height: 40px; padding: 8px 18px; font-size: 13.5px; }
.fv-edit { margin-left: auto; font-weight: 700; font-size: 14px; }
.fv-owner-msg { font-size: 14px; font-weight: 600; }
.fv-owner-msg.ok { color: #177245; }
.fv-owner-msg.err { color: #C81E1E; }

/* ---------- carte et profil ---------- */
.fv-map-section { margin-bottom: 22px; }
.fv-map { border-radius: 16px; overflow: hidden; border: 1px solid #0E0F11; }
.fv-map .cft-map { border-radius: 0; }
.fv-legend { display: flex; gap: 18px; padding: 10px 4px 0; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #494D54; }
.fv-lg { display: inline-flex; align-items: center; gap: 7px; }
.fv-lg i { width: 22px; height: 4px; border-radius: 2px; background: #38BDF8; display: inline-block; }
.fv-lg-climb i { background: #FF8A00; }
.fv-profile-wrap { background: #fff; border: 1px solid #D9D9D2; border-radius: 16px; padding: 10px 6px 2px; margin-top: 12px; }
.fv-readout { min-height: 22px; margin: 2px 10px 8px; font-family: "JetBrains Mono", monospace; font-size: 13.5px; font-weight: 700; color: #0E0F11; }
.fv-notrack { border: 2px dashed #D9D9D2; border-radius: 16px; padding: 34px 24px; text-align: center; background: #fff; }
.fv-notrack-title { font-family: "Anton", sans-serif; font-size: 22px; text-transform: uppercase; margin: 0 0 8px; }
.fv-notrack-text { color: #494D54; margin: 0 auto; max-width: 52ch; }

/* ---------- stats par phases ---------- */
.fv-stats-host { display: grid; gap: 14px; margin-bottom: 26px; }
.fv-phase { background: #fff; border: 1px solid #D9D9D2; border-radius: 16px; padding: 18px 20px 16px; }
.fv-phase-title { font-family: "Anton", sans-serif; font-size: 21px; text-transform: uppercase; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.fv-phase-dot { width: 14px; height: 14px; border-radius: 50%; background: #38BDF8; flex: 0 0 auto; }
.fv-phase-climb .fv-phase-dot { background: #FF8A00; }
.fv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 18px; }
.fv-stat { display: flex; flex-direction: column; gap: 2px; }
.fv-stat-k { font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: #494D54; }
.fv-stat-v { font-family: "Anton", sans-serif; font-size: 27px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fv-landing { background: #fff; border: 1px solid #D9D9D2; border-radius: 16px; padding: 16px 20px; }
.fv-landing-title { font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: #494D54; margin: 0 0 6px; font-family: "Archivo", sans-serif; }
.fv-landing-text { font-size: 16.5px; margin: 0; overflow-wrap: break-word; }

/* ---------- sections ---------- */
.fv-sec { margin-bottom: 26px; }
.fv-sec-title { font-family: "Anton", sans-serif; font-size: 24px; text-transform: uppercase; margin: 0 0 10px; }
.fv-sec-title::before { content: ""; display: block; width: 42px; height: 4px; background: #FFCE00; margin-bottom: 12px; }
.fv-notes-text { font-size: 16.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: break-word; margin: 0; }
.fv-photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.fv-photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; background: #ECECE7; }

/* ---------- CTA spot et partage ---------- */
.fv-cta { background: #0E0F11; color: #F5F5F2; border-radius: 16px; padding: 24px; margin-bottom: 22px; }
.fv-cta-title { font-family: "Anton", sans-serif; font-size: 24px; text-transform: uppercase; margin: 0 0 8px; color: #fff; }
.fv-cta-text { color: #C9CDD4; margin: 0 0 16px; max-width: 56ch; }
.fv-share { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.fv-share-card-btn { background: #0E0F11; color: #fff; }
.fv-share-msg { font-size: 14px; font-weight: 700; color: #177245; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .fv-stats { grid-template-columns: repeat(2, 1fr); }
  .fv-stat-v { font-size: 24px; }
  .fv-edit { margin-left: 0; }
}
