/* ==========================================================================
   Fly-Fair — pages intérieures (droits, situations, à propos, contact, légal)
   S'appuie sur les variables et composants de style.css
   ========================================================================== */

/* ── En-tête de page ──────────────────────────────────────────────────── */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + clamp(36px, 6vw, 80px)) 0 clamp(56px, 8vw, 104px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 64% at 86% 6%, rgba(136, 222, 235, .32), transparent 72%),
    radial-gradient(38% 56% at 4% 100%, rgba(30, 65, 153, .06), transparent 70%);
}
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.page-hero--simple .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
.page-hero--simple { padding-bottom: clamp(40px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 22px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.crumbs a { transition: color .25s; }
.crumbs a:hover { color: var(--navy); }
.crumbs [aria-current] { color: var(--navy); }
.page-title { margin-top: 16px; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -.03em; font-weight: 600; color: var(--navy); max-width: 13em; text-wrap: balance; }
.page-hero--simple .page-title { max-width: 18em; }
.page-hero .lead { margin-top: 20px; max-width: 48ch; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.page-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.page-hero__visual { position: relative; }

/* Cartes de scène (illustrations animées des en-têtes) */
.scene { font-size: 14px; }
.scene__body { padding: 1.2em 1.15em 1.1em; }
.scene .rows { margin-top: .4em; }
.scene .rows > div { padding-inline: 1.15em; }
.status--warn { background: rgba(236, 101, 43, .12); color: #b8461a; }
.status--warn i { background: var(--orange); }
.scene__label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }

/* Retard : horaires et barre de retard */
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.times b { display: block; margin-top: 4px; font-size: 28px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.times .is-past { color: var(--mist); text-decoration: line-through; text-decoration-thickness: 2px; }
.delaybar { position: relative; height: 10px; margin-top: 26px; border-radius: 6px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--silver); }
.delaybar__fill { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(90deg, var(--sky), var(--orange)); transform-origin: 0 50%; transform: scaleX(var(--v, .7)); }
.delaybar__mark { position: absolute; top: -20px; bottom: -6px; left: calc(var(--at) * 100%); width: 0; border-left: 1px dashed var(--navy); }
.delaybar__mark span { position: absolute; left: 6px; top: -4px; font-family: var(--mono); font-size: 10px; color: var(--navy); white-space: nowrap; }
.delaybar__scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; color: var(--steel); }

/* Annulation : tableau des départs */
.fids { padding: 16px; border-radius: var(--radius); background: var(--midnight); color: #fff; box-shadow: var(--shadow-widget); }
.fids__head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.fids__head b { font-weight: 400; color: var(--seafoam-400); letter-spacing: .04em; }
.fids__rows { display: grid; gap: 4px; }
.fids__rows li { display: grid; grid-template-columns: 52px 72px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 6px; background: rgba(255, 255, 255, .05); font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, .85); }
.fids__rows li span:nth-child(3) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fids__rows em { justify-self: end; font-style: normal; font-size: 11px; color: var(--seafoam-400); }
.fids__rows .is-cancel { background: rgba(229, 72, 77, .16); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .6); color: #fff; }
.flip { display: inline-grid; overflow: hidden; height: 1.5em; line-height: 1.5em; }
.flip > span { grid-area: 1 / 1; }
.flip > span:last-child { padding: 0 8px; border-radius: 4px; background: #e5484d; color: #fff; }
.fids + .widget { margin: -18px 18px 0; position: relative; }

/* Refus d'embarquement : plan des sièges */
.seats { display: grid; grid-template-columns: repeat(3, 24px) 20px repeat(3, 24px); gap: 8px; justify-content: center; padding: 6px 0 4px; }
.seats i { width: 24px; height: 24px; border-radius: 6px 6px 8px 8px; background: var(--navy); }
.seats i:nth-child(7n + 4) { visibility: hidden; } /* allée centrale */
.seats__extra { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-family: var(--mono); font-size: 11px; color: #b8461a; }
.seats__extra i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px dashed var(--orange); }
.scene__note { margin-top: 12px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--steel); }

/* Correspondance manquée : trajet en deux vols */
.legs { width: 100%; height: auto; overflow: visible; }
.legs .leg { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; }
.legs .leg--missed { stroke: var(--orange); stroke-dasharray: 4 6; }
.legs .leg--new { stroke: var(--seafoam-600); }
.legs .node { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.legs .node--hub { fill: var(--navy); }
.legs .x { stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; }
.legs text { font-family: var(--mono); font-size: 12px; fill: var(--slate); }
.legs .code { font-family: var(--font); font-size: 18px; font-weight: 500; fill: var(--navy); }
.legs .tag-late { font-size: 11px; fill: #b8461a; }
.legs .tag-new { font-size: 11px; fill: var(--seafoam-700); }

/* Couverture : drapeaux des pays */
.coverage__group + .coverage__group { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--silver); }
.coverage__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.coverage__head b { font-size: 16px; font-weight: 500; color: var(--navy); }
.flags { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 8px; }
.flags .fi { width: 30px; height: 22px; border-radius: 3px; background-size: cover; box-shadow: rgba(18, 22, 30, .14) 0 0 0 1px; }

/* Animations des scènes : déclenchées à la fin de l'entrée de page */
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(var(--v, .7)); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes flipOut { to { transform: translateY(-110%); } }
@keyframes flipIn { from { transform: translateY(110%); } to { transform: none; } }
@keyframes draw { from { stroke-dashoffset: var(--len, 400); } to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: .35; } }
.js .delaybar__fill { transform: scaleX(0); }
.js.intro-done .delaybar__fill { animation: grow 2.2s var(--ease) .7s forwards; }
.js .fids__rows li, .js .seats i, .js .flags .fi, .js .seats__extra { opacity: 0; }
.js.intro-done .fids__rows li { animation: rise .7s var(--ease) forwards; animation-delay: calc(.5s + var(--i, 0) * .12s); }
.js .flip > span:last-child { transform: translateY(110%); }
.js.intro-done .flip > span:first-child { animation: flipOut .45s ease-in 1.9s forwards; }
.js.intro-done .flip > span:last-child { animation: flipIn .55s var(--ease) 2.05s forwards, blink 1.6s ease-in-out 2.8s 3; }
.js.intro-done .seats i { animation: pop .45s var(--ease) forwards; animation-delay: calc(.5s + var(--i, 0) * .035s); }
.js.intro-done .seats__extra { animation: rise .6s var(--ease) 1.9s forwards, blink 1.4s ease-in-out 2.6s 3; }
.js.intro-done .flags .fi { animation: pop .5s var(--ease) forwards; animation-delay: calc(.4s + var(--i, 0) * .03s); }
.js .legs [data-draw] { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
.js .legs .leg--missed[data-draw] { stroke-dasharray: 4 6; stroke-dashoffset: 0; opacity: 0; }
.js.intro-done .legs [data-draw] { animation: draw 1.4s var(--ease) forwards; animation-delay: var(--d, .5s); }
.js.intro-done .legs .leg--missed[data-draw] { animation: rise .6s ease forwards; animation-delay: var(--d, .5s); }
.js .legs [data-pop] { opacity: 0; }
.js.intro-done .legs [data-pop] { animation: rise .6s var(--ease) forwards; animation-delay: var(--d, 1s); }

/* ── Blocs de contenu ─────────────────────────────────────────────────── */
.section--tight { padding-block: clamp(64px, 8vw, 104px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* Conditions numérotées */
.cond-card { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 28px); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.cond-card__n { font-family: var(--mono); font-size: 12px; color: var(--seafoam-700); }
.cond-card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 18px 0 20px; border-radius: 50%; background: rgba(148, 239, 183, .3); color: var(--seafoam-700); }
.cond-card h3 { font-size: 18px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; color: var(--navy); }
.cond-card p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--steel); }

/* Montants */
.amount-card { display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 32px); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.amount-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm), var(--shadow-md); }
.amount-card__value { font-size: clamp(44px, 4.6vw, 60px); font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--seafoam-700); font-variant-numeric: tabular-nums; }
.amount-card__km { margin-top: 14px; font-size: 16px; font-weight: 500; color: var(--navy); }
.amount-card__ex { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--steel); }
.amount-card__uk { margin-top: auto; padding-top: 20px; font-family: var(--mono); font-size: 11px; color: var(--fog); }
.amount-card--featured { background: var(--navy); }
.amount-card--featured .amount-card__value { color: var(--seafoam-400); }
.amount-card--featured .amount-card__km { color: #fff; }
.amount-card--featured .amount-card__ex, .amount-card--featured .amount-card__uk { color: rgba(255, 255, 255, .6); }

/* Encadré d'information */
.callout { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: rgba(136, 222, 235, .2); font-size: 15px; line-height: 1.55; color: var(--slate); }
.callout__icon { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font: 500 13px/1 var(--mono); }
.callout b { color: var(--navy); font-weight: 500; }
.callout + .callout { margin-top: 12px; }
.grid-2 > .callout, .grid-3 > .callout { margin-top: 0; }

/* Ce qui compte / ce qui ne compte pas */
.verdict { padding: clamp(22px, 2.6vw, 32px); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.verdict__title { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; color: var(--navy); }
.verdict__badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; }
.verdict--yes .verdict__badge { background: rgba(148, 239, 183, .35); color: var(--seafoam-700); }
.verdict--no .verdict__badge { background: rgba(236, 101, 43, .14); color: #b8461a; }
.verdict ul { display: grid; gap: 10px; margin-top: 18px; }
.verdict li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; color: var(--slate); }
.verdict li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--fog); }
.verdict--yes li::before { background: var(--seafoam-600); }
.verdict--no li::before { background: var(--orange); }

/* Autres droits (assistance) */
.right-item { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--silver); }
.right-item:last-child { border-bottom: 1px solid var(--silver); }
.right-item__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius); background: var(--canvas); color: var(--navy); }
.right-item h3 { font-size: 17px; font-weight: 500; color: var(--navy); }
.right-item p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--steel); }
.split-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head > header { position: sticky; top: calc(var(--nav-h) + 40px); }

/* Autres situations */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related a { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.related a:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm), var(--shadow-md); }
.related b { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 500; color: var(--navy); }
.related b svg { transition: transform .4s var(--ease); }
.related a:hover b svg { transform: translateX(3px); }
.related span { font-size: 14px; color: var(--steel); }

/* ── À propos ─────────────────────────────────────────────────────────── */
.about-card { padding: clamp(22px, 2.6vw, 32px); }
.about-card .rate { margin-bottom: 8px; }
.about-card .dotgrid { margin-top: 24px; }
.value { padding: clamp(22px, 2.6vw, 32px); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.value__n { font-family: var(--mono); font-size: 12px; color: var(--seafoam-700); }
.value h3 { margin-top: 40px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; color: var(--navy); }
.value p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--steel); }
.manifesto { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; color: var(--navy); max-width: 26em; text-wrap: balance; }
.manifesto em { font-style: normal; color: var(--seafoam-700); }

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact-card { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 28px; }
.contact-card__icon--wa { background: rgba(68, 180, 139, .16); color: var(--seafoam-700); }
.contact-card__icon--mail { background: rgba(136, 222, 235, .3); color: var(--deep-sea); }
.contact-card__icon--form { background: rgba(17, 26, 74, .08); color: var(--navy); }
.contact-card h2 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; color: var(--navy); }
.contact-card p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--steel); }
.contact-card .mono { margin-top: 18px; font-size: 13px; color: var(--navy); word-break: break-all; }
.contact-card .btn { align-self: flex-start; margin-top: 24px; }
.btn--wa { background: #1fa855; color: #fff; box-shadow: var(--shadow-btn); }
.btn--wa:hover { background: #188a46; }
.hours { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* ── Pages légales ────────────────────────────────────────────────────── */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: var(--section); }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); }
.toc__title { margin-bottom: 14px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--silver); }
.toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 1px solid transparent; font-size: 14px; line-height: 1.4; color: var(--steel); transition: color .25s, border-color .25s; }
.toc a:hover { color: var(--navy); }
.toc a.is-active { color: var(--navy); border-left-color: var(--navy); font-weight: 500; }
.prose { max-width: 72ch; color: var(--slate); }
.prose .updated { margin-bottom: 28px; font-family: var(--mono); font-size: 12px; color: var(--steel); }
.prose section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose section + section { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--silver); }
.prose h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; color: var(--navy); }
.prose h2 .mono { margin-right: 10px; font-size: .6em; vertical-align: .2em; color: var(--seafoam-700); }
.prose p, .prose li { font-size: 16px; line-height: 1.7; }
.prose p { margin-top: 14px; }
.prose ul, .prose ol { display: grid; gap: 10px; margin-top: 14px; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--seafoam-600); }
.prose ol { counter-reset: item; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: item; }
.prose ol li::before { content: counter(item, decimal-leading-zero); position: absolute; left: 0; top: .15em; font-family: var(--mono); font-size: 12px; color: var(--seafoam-700); }
.prose b, .prose strong { font-weight: 500; color: var(--navy); }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin-top: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.prose dt { font-size: 14px; color: var(--steel); }
.prose dd { font-size: 15px; color: var(--navy); }

/* Icônes au trait (sprite) */
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Lien de menu de la page courante */
.nav__pill[aria-current="page"] { background: #fff; border-color: var(--silver); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero__visual { max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid-3, .related { grid-template-columns: minmax(0, 1fr); }
  .split-head { grid-template-columns: minmax(0, 1fr); }
  .split-head > header { position: static; }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 18px 20px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
}
@media (max-width: 600px) {
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .times b { font-size: 24px; }
  .fids__rows li { grid-template-columns: 44px 62px minmax(0, 1fr) auto; font-size: 11px; padding: 9px 10px; }
  .prose dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .prose dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .fids__rows li, .js .seats i, .js .flags .fi, .js .seats__extra, .js .legs [data-pop], .js .legs .leg--missed[data-draw] { opacity: 1; animation: none !important; }
  .js .delaybar__fill { transform: scaleX(var(--v, .7)); animation: none !important; }
  .js .legs [data-draw] { stroke-dashoffset: 0; animation: none !important; }
  .js .flip > span:first-child { display: none; }
  .js .flip > span:last-child { transform: none; animation: none !important; }
}
