/* ==========================================================================
   Alflight — site de présentation (alflight.fr)
   Feuille de style unique. Les valeurs reprennent la maquette validée
   (reference : maquette_Main.dc.html) et la charte de l'application.
   Aucune ressource tierce : la police Jost est servie par le site.
   ========================================================================== */

/* --- Police Jost 400 et 600, auto-hébergée (licence OFL) ------------------ */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jost-latin-600-normal.woff2") format("woff2");
}

/* --- Jetons de la charte --------------------------------------------------- */
:root {
  --af-bg: #0A0A0A;
  --af-surface: #141414;
  --af-border: #232323;
  --af-border-strong: #3A3A3A;
  --af-text: #F5F2EC;
  --af-text-2: #C9C5BD;
  --af-text-3: #8A867E;
  --af-accent: #F26921;
  --af-accent-hover: #FF7E36;
  --af-on-accent: #0A0A0A;

  /* EMBLÈME : le seul endroit à modifier quand le SVG officiel remplacera le
     PNG provisoire. Changer le nom du fichier et, si le dessin n'a pas les
     mêmes proportions, le rapport largeur / hauteur. Voir le README. */
  --af-emblem: url("../img/emblem_ivoire.png");
  --af-emblem-ratio: 782 / 520;
}

/* --- Base ------------------------------------------------------------------ */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #0A0A0A;
  color: #F5F2EC;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-style: normal;
}
[hidden] { display: none !important; }
a { color: #F26921; }
a:hover { color: #FF7E36; }
b, strong { font-weight: 600; }
em, i, cite, address { font-style: normal; }
input, select, button { font-family: inherit; }
input:focus,
select:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 2px solid #F26921;
  outline-offset: 2px;
}

.af-page { min-height: 100vh; }
.af-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }

/* Texte réservé aux lecteurs d'écran */
.af-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Grilles (maquette) ---------------------------------------------------- */
.af-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
.af-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.af-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.af-g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.af-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.af-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }

/* --- Animations (maquette) ------------------------------------------------- */
@keyframes afUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes afGlow { 0%, 100% { filter: drop-shadow(0 0 6px rgba(242, 105, 33, 0.25)); } 50% { filter: drop-shadow(0 0 22px rgba(242, 105, 33, 0.55)); } }
@keyframes afFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes afSweep { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes afSuck { from { transform: none; opacity: 1; filter: none; } to { transform: scale(0.08) rotate(18deg); opacity: 0; filter: blur(6px); } }

.af-in { animation: afUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.af-d1 { animation-delay: .08s; }
.af-d2 { animation-delay: .18s; }
.af-d3 { animation-delay: .3s; }
.af-d4 { animation-delay: .42s; }

.af-emblem { animation: afGlow 4s ease-in-out infinite, afFloat 6s ease-in-out infinite; }

/* Reflet du mot ALFLIGHT */
.af-word {
  background: linear-gradient(90deg, #F5F2EC 0%, #F5F2EC 40%, #F26921 50%, #F5F2EC 60%, #F5F2EC 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: afSweep 6s linear infinite;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .af-word { background: none; color: #F5F2EC; animation: none; }
}

.af-card { transition: transform .3s ease, border-color .3s ease; }
.af-card:hover { transform: translateY(-4px); border-color: #F26921; }
.af-shot { transition: transform .4s ease; }
.af-shot:hover { transform: translateY(-6px) scale(1.02); }

/* « Aspiration » du bloc logo et apparition au défilement */
@supports (animation-timeline: view()) {
  .af-suck { animation: afSuck linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
  .af-rev { animation: afUp linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}

/* --- En-tête --------------------------------------------------------------- */
.af-header { border-bottom: 1px solid #232323; }
.af-header-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.af-brand,
.af-brand:hover { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #F5F2EC; }
.af-brand-word { font-size: 22px; font-weight: 600; letter-spacing: 0.28em; }
.af-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.af-nav-link,
.af-nav-link:hover { color: #C9C5BD; text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; }
.af-nav-btn,
.af-nav-btn:hover {
  color: #F5F2EC; text-decoration: none; border: 1px solid #3A3A3A; padding: 10px 16px; border-radius: 8px;
  min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px;
}

/* --- Bloc logo ------------------------------------------------------------- */
.af-logo { padding: 72px 0 40px; overflow: hidden; }
.af-logo-wrap { display: flex; justify-content: center; }
.af-logo-stack { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; width: 100%; }
.af-emblem-img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: var(--af-emblem-ratio);
  background-image: var(--af-emblem);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.af-emblem-img--lg { max-width: 540px; }
.af-emblem-img--sm { max-width: 280px; }
.af-logo-word {
  margin: 8px 0 0; font-size: 64px; line-height: 1; font-weight: 600;
  letter-spacing: 0.32em; padding-left: 0.32em;
}
.af-logo-tag {
  margin: 0; font-size: 16px; font-weight: 400;
  letter-spacing: 0.42em; padding-left: 0.42em; color: #C9C5BD;
}

/* --- Hero ------------------------------------------------------------------ */
.af-hero-sec { padding: 56px 0 104px; }
.af-hero-col { display: flex; flex-direction: column; gap: 24px; }
.af-eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #F26921; }
.af-eyebrow--muted { color: #8A867E; }
.af-h1 { margin: 0; font-size: 60px; line-height: 1.06; font-weight: 600; }
.af-lead { margin: 0; font-size: 19px; line-height: 1.55; color: #C9C5BD; max-width: 600px; }
.af-hero-shot { display: flex; justify-content: flex-end; position: relative; }
.af-phone {
  position: relative; width: 100%; max-width: 360px; height: auto;
  border-radius: 32px; border: 1px solid #3A3A3A; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* --- Formulaires d'inscription --------------------------------------------- */
.af-signup { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 0; max-width: 600px; }
.af-field { display: flex; flex-direction: column; gap: 6px; }
.af-label { font-size: 13px; color: #C9C5BD; }
.af-input,
.af-select {
  box-sizing: border-box; height: 52px; padding: 0 16px; font-size: 16px;
  background: #141414; color: #F5F2EC; border: 1px solid #3A3A3A; border-radius: 8px;
}
.af-select { padding: 0 12px; }
.af-input::placeholder { color: #8A867E; opacity: 1; }
.af-input[aria-invalid="true"] { border-color: #F26921; }
.af-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: #C9C5BD; }
.af-check { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: #F26921; }
.af-btn {
  height: 56px; border: 0; border-radius: 8px; background: #F26921; color: #0A0A0A;
  font-family: inherit; font-size: 15px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; cursor: pointer;
}
.af-btn--pad { padding: 0 28px; }
.af-btn[disabled] { cursor: progress; opacity: 0.7; }
.af-note { margin: 0; font-size: 14px; line-height: 1.5; color: #8A867E; }

/* Message d'erreur : texte ivoire, signal par le contour orange (charte) */
.af-form-msg {
  margin: 0; padding: 12px 16px; font-size: 15px; line-height: 1.5; text-align: left;
  color: #F5F2EC; background: #141414; border: 1px solid #F26921; border-radius: 8px;
}
.af-form-msg:empty { display: none; }

/* Champ piège anti-robots : hors écran, jamais vu ni atteint au clavier */
.af-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Message de succès (hero) */
.af-joined { max-width: 600px; padding: 24px; border: 1px solid #F26921; border-radius: 12px; background: #141414; }
.af-joined-title { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.af-joined-text { margin: 0; font-size: 16px; line-height: 1.5; color: #C9C5BD; }

/* --- Sections -------------------------------------------------------------- */
.af-sec { padding: 104px 0; }
.af-band { padding: 96px 0; background: #141414; border-top: 1px solid #232323; border-bottom: 1px solid #232323; }
.af-band--open { border-bottom: 0; }
.af-stack-16 { display: flex; flex-direction: column; gap: 16px; }
.af-stack-18 { display: flex; flex-direction: column; gap: 18px; }
.af-stack-32 { display: flex; flex-direction: column; gap: 32px; }
.af-stack-40 { display: flex; flex-direction: column; gap: 40px; }
.af-stack-48 { display: flex; flex-direction: column; gap: 48px; }
.af-sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.af-h2 { margin: 0; font-size: 34px; line-height: 1.15; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.af-h2--sm { font-size: 22px; }
.af-h2--xl { font-size: 38px; max-width: 820px; }
.af-text-lg { margin: 0; font-size: 18px; line-height: 1.6; color: #C9C5BD; }

/* Le problème */
.af-pb-card { padding: 24px; border: 1px solid #232323; border-radius: 12px; background: #0A0A0A; }
.af-card-title { margin: 0 0 8px; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.af-card-text { margin: 0; font-size: 16px; line-height: 1.5; color: #C9C5BD; }

/* La solution */
.af-fn-card { padding: 28px; border: 1px solid #232323; border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.af-fn-card--hl { border-color: #F26921; background: #141414; }
.af-fn-num { margin: 0; font-size: 14px; color: #F26921; font-weight: 600; }
.af-fn-title { margin: 0; font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.af-fn-text { margin: 0; font-size: 16px; line-height: 1.55; color: #C9C5BD; }

/* Captures */
.af-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.af-fig--center { align-items: center; }
.af-fig--end { align-items: flex-end; }
.af-fig-img { width: 100%; max-width: 300px; height: auto; border-radius: 28px; border: 1px solid #3A3A3A; }
.af-fig-cap { width: 100%; max-width: 300px; text-align: center; font-size: 13px; color: #8A867E; text-transform: uppercase; letter-spacing: 0.1em; }

/* Le principe */
.af-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.af-step { display: flex; gap: 20px; align-items: flex-start; padding: 20px 24px; border: 1px solid #232323; border-radius: 12px; background: #0A0A0A; }
.af-step-num { font-size: 28px; font-weight: 600; color: #F26921; line-height: 1; }
.af-step-text { font-size: 17px; line-height: 1.5; }

/* L'histoire */
.af-hist-emblem { display: flex; justify-content: flex-start; }
.af-claim { margin: 0; font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* Aéroclubs */
.af-clubs-sec { padding: 0 0 104px; }
.af-clubs { padding: 40px; border: 1px solid #3A3A3A; border-radius: 16px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.af-clubs-txt { display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
.af-clubs-p { margin: 0; font-size: 17px; line-height: 1.55; color: #C9C5BD; }
.af-btn-ghost,
.af-btn-ghost:hover {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  border: 1px solid #F26921; border-radius: 8px; color: #F5F2EC; text-decoration: none;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px;
}

/* FAQ */
.af-faq { display: flex; flex-direction: column; }
.af-faq-item { border-top: 1px solid #3A3A3A; padding: 20px 0; }
.af-faq-item:last-child { border-bottom: 1px solid #3A3A3A; }
.af-faq-q { cursor: pointer; font-size: 19px; font-weight: 600; }
.af-faq-a { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: #C9C5BD; }

/* Appel final */
.af-cta { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.af-cta-p { margin: 0; font-size: 18px; color: #C9C5BD; }
.af-cta-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; max-width: 620px; position: relative; }
.af-cta-input { flex-grow: 1; min-width: 240px; height: 56px; }
.af-cta-form .af-consent,
.af-cta-form .af-form-msg { flex-basis: 100%; text-align: left; }
.af-cta-form .af-form-msg { box-sizing: border-box; }
.af-cta-done { margin: 0; font-size: 18px; color: #F5F2EC; }

/* --- Pied de page ---------------------------------------------------------- */
.af-footer { border-top: 1px solid #232323; padding: 40px 0; }
.af-footer-in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; font-size: 14px; color: #8A867E; }
.af-footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.af-footer-link,
.af-footer-link:hover { color: #C9C5BD; text-decoration: none; }
.af-copy { margin: 0; }

/* --- Pages légales --------------------------------------------------------- */
.af-doc-sec { padding: 72px 0 104px; }
.af-doc { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.af-doc-h1 { margin: 0 0 16px; font-size: 44px; line-height: 1.1; font-weight: 600; }
.af-doc-h2 { margin: 24px 0 0; font-size: 20px; line-height: 1.2; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.af-doc-p { margin: 0; font-size: 17px; line-height: 1.6; color: #C9C5BD; }
.af-doc-p strong { color: #F5F2EC; }
.af-doc-table-wrap { overflow-x: auto; }
.af-doc-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; color: #C9C5BD; }
.af-doc-table th,
.af-doc-table td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid #232323; }
.af-doc-table thead th { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #8A867E; border-bottom-color: #3A3A3A; }
.af-doc-table tbody th { font-weight: 600; color: #F5F2EC; }
.af-doc-back { margin: 24px 0 0; font-size: 15px; }

/* --- Page d'erreur et messages du serveur ---------------------------------- */
.af-err-sec { padding: 72px 0 104px; }
.af-err { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.af-err-h1 { margin: 0; font-size: 44px; line-height: 1.1; font-weight: 600; }
.af-err-p { margin: 0; font-size: 18px; line-height: 1.6; color: #C9C5BD; max-width: 620px; }
.af-err-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.af-err-actions .af-btn-ghost { min-height: 56px; box-sizing: border-box; }
.af-btn-link,
.af-btn-link:hover {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; box-sizing: border-box;
  border-radius: 8px; background: #F26921; color: #0A0A0A; text-decoration: none;
  font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}

/* --- Alignement et relief (demandes de César, 02/10/2026) ------------------ */
/* Titres centrés, textes courants justifiés. La césure automatique (langue de
   la page : français) évite les grands blancs entre les mots dans les colonnes
   étroites et sur téléphone. Les formulaires, la FAQ (questions), les tableaux
   et le pied de page gardent leur alignement. */
.af-eyebrow, .af-h1, .af-h2,
.af-card-title, .af-fn-num, .af-fn-title, .af-claim,
.af-joined-title, .af-doc-h1, .af-doc-h2 { text-align: center; }
.af-sec-head { margin-left: auto; margin-right: auto; }
.af-lead, .af-text-lg, .af-card-text, .af-fn-text, .af-step-text,
.af-clubs-p, .af-faq-a, .af-note, .af-joined-text, .af-doc-p {
  text-align: justify; -webkit-hyphens: auto; hyphens: auto; text-wrap: pretty;
}
/* Captures de l'application : elles sont sombres sur un fond sombre. Un halo
   ivoire translucide les détache du fond et leur donne du relief. Réglage de
   César (02/10/2026) : halo décalé vers le bas et la droite (donc plus léger
   en haut et à gauche), opacité 10 % (30 puis 15 aux premiers essais), étendue de 10 px
   (44 puis 22 aux premiers essais), projection de 10 px vers la droite et de 5 px
   vers le bas (12 px au premier essai). */
.af-phone, .af-fig-img { box-shadow: 10px 5px 10px rgba(245, 242, 236, 0.10); }

/* --- Mouvement réduit : toutes les animations sont coupées ----------------- */
@media (prefers-reduced-motion: reduce) {
  .af-suck, .af-in, .af-emblem, .af-word, .af-rev { animation: none !important; }
  .af-word { background-position: -50% 0; }
  .af-card, .af-shot { transition: none; }
  .af-card:hover, .af-shot:hover { transform: none; }
}

/* --- Petits écrans (point de rupture de la maquette : 900 px) -------------- */
@media (max-width: 900px) {
  .af-hero, .af-g2 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .af-g3, .af-g4, .af-shots { grid-template-columns: minmax(0, 1fr); }
  .af-form { grid-template-columns: minmax(0, 1fr); }
  .af-wrap { padding: 0 16px; }
  .af-h1 { font-size: 40px; }
  .af-hide-m { display: none !important; }

  /* Ajustements hors maquette, pour qu'aucun texte ne déborde d'un téléphone */
  .af-logo-word { font-size: min(64px, 11.5vw); }
  .af-logo-tag { font-size: clamp(10px, 2.9vw, 16px); }
  .af-fig, .af-fig--center, .af-fig--end { align-items: center; }
  .af-hero-shot { justify-content: center; }
  .af-doc-h1, .af-err-h1 { font-size: 34px; }
}
