/* Navlog Maker — mêmes couleurs, polices et thème clair/sombre que le reste du site */
:root {
  --bg: #EFE8D6; --panel: #FBF8EF; --panel-2: #F2ECDD; --ink: #182430; --ink-soft: #46515E; --accent: #8F520E;   /* orange foncé : texte lisible sur crème (5:1) */
  --line: rgba(24, 36, 48, .16); --line-strong: rgba(24, 36, 48, .34);
  --field: #FFFDF7; --danger: #B3261E; --danger-bg: rgba(179, 38, 30, .08); --ok: #2E6B3F; --warn: #8A5300;
  --placeholder: #ABA597;
  /* rôles (1.5.0) : une action principale, l'ambre pour l'actif, l'attention dans les encadrés */
  --primary: #182430; --on-primary: #F6F1E4; --active: #E8AE48; --on-active: #182430;
  --caution: #8A5300; --caution-bg: rgba(232, 174, 72, .14); --caution-bd: rgba(138, 83, 0, .35);
  --ok-bg: rgba(46, 107, 63, .08); --ok-bd: rgba(46, 107, 63, .32); --danger-bd: rgba(179, 38, 30, .32);
  --info: #2F6DB5; --info-bg: rgba(47, 109, 181, .08); --info-bd: rgba(47, 109, 181, .3);
  /* forme, élévation, espacement (4 pt) : communs aux deux thèmes */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --shadow-float: 0 12px 32px rgba(0, 0, 0, .35); --hairline-top: inset 0 1px 0 rgba(255, 255, 255, .5);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px;
  --head: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E1620; --panel: #17222F; --panel-2: #1E2B3A; --ink: #F1ECDF; --ink-soft: #B9B4A6; --accent: #E8AE48;
  --line: rgba(241, 236, 223, .12); --line-strong: rgba(241, 236, 223, .26);
  --field: #0F1823; --danger: #F2867D; --danger-bg: rgba(242, 134, 125, .1); --ok: #8BC79A; --warn: #E8AE48;
  --placeholder: #66707F;
  --primary: #F1ECDF; --on-primary: #182430; --active: #E8AE48; --on-active: #182430;
  --caution: #E8AE48; --caution-bg: rgba(232, 174, 72, .08); --caution-bd: rgba(232, 174, 72, .28);
  --ok-bg: rgba(139, 199, 154, .08); --ok-bd: rgba(139, 199, 154, .28); --danger-bd: rgba(242, 134, 125, .28);
  --info: #7FB2E5; --info-bg: rgba(127, 178, 229, .08); --info-bd: rgba(127, 178, 229, .28);
  --hairline-top: inset 0 1px 0 rgba(241, 236, 223, .06);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1620; --panel: #17222F; --panel-2: #1E2B3A; --ink: #F1ECDF; --ink-soft: #B9B4A6; --accent: #E8AE48;
    --line: rgba(241, 236, 223, .12); --line-strong: rgba(241, 236, 223, .26);
    --field: #0F1823; --danger: #F2867D; --danger-bg: rgba(242, 134, 125, .1); --ok: #8BC79A; --warn: #E8AE48;
    --placeholder: #66707F;
    --primary: #F1ECDF; --on-primary: #182430; --active: #E8AE48; --on-active: #182430;
    --caution: #E8AE48; --caution-bg: rgba(232, 174, 72, .08); --caution-bd: rgba(232, 174, 72, .28);
    --ok-bg: rgba(139, 199, 154, .08); --ok-bd: rgba(139, 199, 154, .28); --danger-bd: rgba(242, 134, 125, .28);
    --info: #7FB2E5; --info-bg: rgba(127, 178, 229, .08); --info-bd: rgba(127, 178, 229, .28);
    --hairline-top: inset 0 1px 0 rgba(241, 236, 223, .06);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 100%; }   /* 16 px : toute l'échelle (texte, espaces) tombe sur des pixels entiers */
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
.wrap { max-width: 980px; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.label { font: 500 .8125rem/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.label.accent { color: var(--accent); }

.top { border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.back { font: 700 1.125rem/1 var(--head); text-decoration: none; }
.back span { color: var(--accent); }
.prefs { display: flex; align-items: center; gap: .5rem; }
/* Téléphone : les boutons du haut tiennent dans la largeur (retour à la ligne en dernier recours) */
@media (max-width: 480px) {
  .top .wrap { gap: .5rem; }
  .top .back { white-space: nowrap; }
  .prefs { flex-wrap: wrap; justify-content: flex-end; gap: .25rem; }
  .prefs .top-link, .prefs button.small { padding: .25rem .25rem; font-size: .8125rem; white-space: nowrap; }   /* « Sign out » : tout sur une ligne à 375 px */
  .prefs .theme-toggle { width: 2rem; height: 2rem; }
}
.top-link { font-size: .875rem; font-weight: 600; text-decoration: none; padding: .5rem .75rem; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); white-space: nowrap; }
.top-link:hover { background: var(--accent); color: var(--bg); }
.theme-toggle { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: inherit; cursor: pointer; padding: 0; }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun { display: none; }
.is-dark .theme-toggle .sun { display: block; }
.is-dark .theme-toggle .moon { display: none; }

main { padding-block: clamp(2rem, 6vw, 3.5rem) clamp(3rem, 8vw, 5rem); }
h1 { font: 700 clamp(2.25rem, 1.4rem + 3.5vw, 3.5rem)/1.07 var(--head); letter-spacing: -.03em; margin: .5rem 0 .75rem; }
.intro { color: var(--ink-soft); font-size: 1.125rem; max-width: 38rem; margin: 0 0 2rem; }
h2 { font: 600 1.25rem/1.25 var(--head); margin: 0 0 1rem; display: flex; align-items: center; gap: .75rem; }
h2 small, h3 small { font: 500 .8125rem var(--mono); color: var(--ink-soft); letter-spacing: 0; }
h3 { font: 600 1.125rem/1.3 var(--head); margin: 1.5rem 0 .75rem; }
.step { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 .875rem var(--mono); }

.card { background: var(--panel); border: 1.5px solid var(--line-strong); border-radius: 12px; padding: clamp(1rem, 3vw, 1.5rem); margin-bottom: 1.5rem; }
.gate { max-width: 38rem; }
.gate-msg { max-width: 38rem; margin: 0 0 1rem; color: var(--ink); padding: .75rem .75rem; border-radius: 8px; border-left: 4px solid var(--danger); background: var(--danger-bg); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.gate-actions { margin-top: 1rem; gap: 1rem; }
.gate .back-link { margin-top: .75rem; }
label.check { flex-direction: row; align-items: flex-start; gap: .75rem; margin-top: 1rem; font-weight: 400; line-height: 1.45; }
label.check input { flex: none; margin-top: .125rem; }
label.check a { color: var(--accent); }
/* ----- Chargement : page neutre jusqu'au choix connexion / app (app.js retire .booting) ----- */
/* Filet de sécurité : si app.js ne se charge pas, la page réapparaît au bout de 10 s */
@keyframes boot-show { to { visibility: visible; } }
.booting .top, .booting main, .booting #gate, .booting .site-foot { visibility: hidden; animation: boot-show 0s 10s forwards; }
body.booting::before, body.booting::after { display: none; }
.boot { display: none; }
.booting .boot { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  opacity: 0; animation: boot-in .3s ease .5s forwards; }            /* n'apparaît que si le chargement traîne */
@keyframes boot-in { to { opacity: 1; } }
.boot-ring { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent); animation: boot-spin .8s linear infinite; }
@keyframes boot-spin { to { transform: rotate(360deg); } }
.update-wait { display: flex; align-items: center; gap: 1rem; }
.update-wait .boot-ring { flex: none; }
.update-wait p { margin: 0; }
.boot-name { font: 600 1rem var(--head); letter-spacing: 0; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .boot-ring { animation-duration: 2.4s; } }

/* ----- Accueil avant connexion : photo du vol, aperçu de l'app sur iPad et iPhone ----- */
.gated main { display: none; }
.gated .top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; border-bottom-color: transparent; color: #F6F1E4; }
.gated .top .theme-toggle { border-color: rgba(246, 241, 228, .45); }
.gated .top .wrap { max-width: 1320px; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; background: #1D3550; color: #F6F1E4; }
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; }
/* Voile neutre sous le texte, à gauche ; la photo reste lisible à droite */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(16, 30, 46, .88) 0%, rgba(16, 30, 46, .7) 38%, rgba(16, 30, 46, .25) 70%, rgba(16, 30, 46, .1) 100%); }
.hero-grid { max-width: 1320px; margin: 0 auto; min-height: 100svh; padding: 6.5rem clamp(1rem, 4vw, 2.5rem) 3.5rem;
  display: grid; grid-template-columns: minmax(0, 38rem) minmax(0, 1fr); grid-template-areas: "copy devices" "forms devices";
  grid-template-rows: auto 1fr; column-gap: clamp(2rem, 5vw, 5rem); row-gap: 2rem; align-items: start; }
.hero-copy { grid-area: copy; align-self: end; }
.hero-forms { grid-area: forms; }
.hero-side { grid-area: devices; align-self: center; display: grid; gap: 1.5rem; }
.hero h1 { font: 700 clamp(2.25rem, 1.4rem + 3.5vw, 3.5rem)/1.07 var(--head); letter-spacing: -.03em; margin: 0 0 1.5rem; text-wrap: balance; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.55; margin: 0; max-width: 30rem; color: rgba(246, 241, 228, .92); }
.hero .card.gate { max-width: none; margin-bottom: 1rem; color: var(--ink); border: 0; border-radius: 16px; }
.hero .gate-msg { max-width: none; background: var(--panel); }
.hero .gate-msg.ok { background: var(--panel); }
.subscribe-teaser { padding: clamp(1.1rem, 3vw, 1.5rem); border-radius: 16px; background: #182430; color: #F6F1E4;
  box-shadow: inset 0 0 0 1px rgba(246, 241, 228, .08); }
.subscribe-teaser p { margin: 0; }
.teaser-kicker { font-size: 1rem; color: rgba(246, 241, 228, .7); }
.teaser-title { font: 600 1.25rem/1.3 var(--head); letter-spacing: 0; margin: .25rem 0 1rem !important; }
.teaser-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; }
.tp-tile { display: grid; gap: .125rem; padding: .75rem 1rem; border-radius: 8px; border: 1.5px solid rgba(246, 241, 228, .16); }
.tp-tile.best { border-color: #E8AE48; background: rgba(232, 174, 72, .08); }
.tp-name { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .875rem; font-weight: 600; color: rgba(246, 241, 228, .85); }
.tp-name em { font-style: normal; font-size: .8125rem; font-weight: 600; padding: .125rem .5rem; border-radius: 999px; background: #E8AE48; color: #182430; white-space: nowrap; }
.tp-price { font: 700 1.75rem/1.2 var(--head); letter-spacing: -.015em; }
.tp-price small { font: 500 .875rem var(--body, inherit); letter-spacing: 0; color: rgba(246, 241, 228, .7); }
.tp-per { font-size: .875rem; color: rgba(246, 241, 228, .6); }
.teaser-points { list-style: none; margin: 1rem 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .875rem; color: rgba(246, 241, 228, .85); }
.teaser-points li { display: flex; align-items: center; gap: .5rem; }
.teaser-points li::before { content: ""; width: .8rem; height: .45rem; flex: none; margin-top: -0.25rem; border: solid #8BC79A; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.subscribe-teaser .accent { width: 100%; justify-content: center; background: var(--primary); border-color: var(--primary); color: var(--on-primary); }   /* l'action principale de la page de connexion */

/* Appareils dessinés en CSS, écrans = vraies captures de l'app */
.devices { position: relative; aspect-ratio: 1.22; perspective: 2200px; width: calc(100% + clamp(1rem, 4vw, 2.5rem)); }
.gated .site-foot { border-top: 0; background: #16202E; color: rgba(246, 241, 228, .7); }
.device { position: absolute; margin: 0; background: #0B1118; box-shadow: inset 0 0 0 2px #2B3643, 0 50px 90px rgba(4, 10, 18, .55), 0 14px 30px rgba(4, 10, 18, .35); }
.device img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ipad { right: 5%; top: 0; width: 92%; transform-origin: 60% 50%; aspect-ratio: 1640 / 1140; padding: 2%; border-radius: 4.2% / 6%;
  transform: rotateY(-14deg) rotateX(5deg) rotateZ(1.5deg); animation: float-a 7s ease-in-out infinite alternate; }
.ipad img { border-radius: 2.4% / 3.4%; }
.iphone { left: -2%; bottom: 0; width: 31%; aspect-ratio: 780 / 1688; padding: 2.6%; border-radius: 17% / 8%;
  transform: rotateY(14deg) rotateZ(-5deg) translateZ(60px); animation: float-b 6s ease-in-out infinite alternate; }
.iphone img { border-radius: 14% / 6.5%; }
.iphone::before { content: ""; position: absolute; top: 3.6%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 999px; background: #0B1118; z-index: 1; }
@keyframes float-a { to { transform: rotateY(-14deg) rotateX(5deg) rotateZ(1.5deg) translateY(-12px); } }
@keyframes float-b { to { transform: rotateY(14deg) rotateZ(-5deg) translateZ(60px) translateY(-18px); } }

/* Entrée : titre, texte, appareils, formulaires */
.hero-copy > *, .devices, .hero-forms { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero .lead { animation-delay: .08s; }
.devices { animation-delay: .16s; }
.hero-forms { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .devices, .hero-forms, .ipad, .iphone { animation: none; }
}

@media (max-width: 900px) {
  .hero::before { background: linear-gradient(180deg, rgba(16, 30, 46, .8) 0%, rgba(16, 30, 46, .55) 45%, rgba(16, 30, 46, .85) 100%); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "devices" "forms"; grid-template-rows: auto; padding-top: 6rem; row-gap: 1.5rem; }
  .devices { width: min(100%, 34rem); justify-self: center; }
  .iphone { left: 0; }
}
/* Mon compte : sa propre page, comme sur SOP Trainer (le bandeau du haut est caché) */

.account { display: grid; gap: 1rem; }
.account > * { margin: 0; }
.account .back-link { justify-self: start; }
.acc-title { font-size: clamp(1.75rem, 1rem + 2.5vw, 2.5rem); letter-spacing: -.02em; margin: -0.75rem 0 0; }
.acc-card { display: grid; gap: .125rem; padding: .75rem 1.5rem; }
.acc-row { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.acc-row:last-child { border-bottom: 0; }
.acc-row[hidden] { display: none; }
.acc-label { font: 500 .8125rem/1.9 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }
.acc-row .account-actions { margin-top: .75rem; }
.acc-row .account-actions:has(> [hidden]:only-child) { display: none; }
.acc-form h2 { margin-top: 0; }
.acc-form .hint { margin: 0 0 1rem; }
.acc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; margin-bottom: 1rem; }
.acc-fields label:first-child { grid-column: 1 / -1; max-width: calc(50% - .5rem); }   /* mot de passe actuel, seul sur sa ligne */
.acc-fields label[hidden] { display: none; }
.acc-fields input { width: 100%; }
.acc-form .gate-msg { margin: 1rem 0 0; }
@media (max-width: 560px) { .acc-row, .acc-fields { grid-template-columns: 1fr; gap: .5rem; } .acc-fields label:first-child { max-width: none; } }
.site-foot { border-top: 1px solid var(--line); padding: 1.2rem 0 calc(1.2rem + env(safe-area-inset-bottom, 0px)); font-size: .875rem; color: var(--ink-soft); }
.site-foot a { color: inherit; }
/* Pages légales */
.legal { max-width: 46rem; }
.legal h2 { margin: 2rem 0 .5rem; font-size: 1.25rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.5rem; }
.legal li { margin-bottom: .5rem; }
.legal a { color: var(--accent); }
.legal .todo { background: rgba(198, 122, 38, .2); color: var(--accent); font-weight: 600; padding: 0 .25rem; border-radius: 8px; }
.hint { font-size: .875rem; color: var(--ink-soft); margin: .5rem 0 0; }
.hint.right { text-align: right; }
.error-text { color: var(--danger); font-size: 1rem; margin: .75rem 0 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 1rem 1rem; }
.grid.four { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
label { display: flex; flex-direction: column; gap: .25rem; font-size: .875rem; font-weight: 500; color: var(--ink-soft); }
label .hint { margin: 0; font-weight: 400; font-size: .8125rem; }
/* Code SOP Trainer à l'abonnement */
label.sub-code { margin-top: 1rem; max-width: 22rem; }
label.sub-code small { font-weight: 400; font-size: .8125rem; }
label.sub-code input { font-family: var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; }
label[hidden] { display: none; }
input, select, button { font: inherit; }
input, select {
  width: 100%; min-height: 2.6rem; padding: .5rem .75rem; color: var(--ink); background: var(--field);
  border: 1.5px solid var(--line-strong); border-radius: 8px; font-size: 1rem;
}
input:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 1px; }
input:disabled { opacity: .65; }
/* Cases à cocher dessinées (pas la case grise du système) : ambre une fois cochées, coche marine */
input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; min-height: 20px; padding: 0; flex: none;
  display: inline-grid; place-content: center; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--field); cursor: pointer; }
input[type="checkbox"]::before { content: ""; width: 12px; height: 12px; background: #182430; transform: scale(0); transition: transform .12s ease;
  clip-path: polygon(14% 44%, 0 65%, 45% 100%, 100% 18%, 82% 2%, 42% 64%); }
input[type="checkbox"]:checked { background: #E8AE48; border-color: #E8AE48; }
input[type="checkbox"]:checked::before { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { input[type="checkbox"]::before { transition: none; } }
/* Listes déroulantes : flèche fine de l'app à la place de celle du système */
select { -webkit-appearance: none; appearance: none; padding-right: 2rem; background-repeat: no-repeat; background-position: right .75rem center; background-size: 12px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%2346515E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.is-dark select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%23B9B4A6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* Barres de défilement fines dans les fenêtres, la liste du bas et le résumé */
.sum-pop, .nm-dialog, .side .summary { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 22%, transparent) transparent; }
/* iPhone / iPad : le champ date / heure natif garde sa propre hauteur et déborde sur le champ suivant */
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; height: 2.6rem; line-height: 1.3; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { margin: 0; min-height: 1.3em; text-align: left; }
/* Exemples dans les champs vides : clairs et en italique, pour ne pas les prendre pour une saisie */
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; font-style: normal; }
input[type="date"]:invalid::-webkit-datetime-edit, input[type="time"]:invalid::-webkit-datetime-edit { color: var(--placeholder); font-style: italic; }
.invalid { border-color: var(--danger) !important; background: var(--danger-bg); }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 1rem; }
.row input { flex: 1; min-width: 10rem; }

button.primary:disabled { opacity: .4; cursor: not-allowed; }
/* Bouton désactivé : le même bouton, effacé (jamais une autre couleur) */
button:disabled { opacity: .4; cursor: not-allowed; filter: none; }
.dl.recommended button:disabled, .dl:not(.recommended) button:disabled { opacity: .4; }
button.icon { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 8px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 1.125rem; line-height: 1; padding: 0; display: inline-grid; place-items: center; }

/* Constructeur de route : une colonne de jalons */
.route { display: grid; gap: .75rem; padding-left: 1.5rem; position: relative; }
.route::before { content: ""; position: absolute; left: .4rem; top: 1.2rem; bottom: 1.2rem; width: 2px; background: var(--line-strong); }
.route > label, .route > .points { position: relative; }
.route > label::before { content: ""; position: absolute; left: -1.31rem; top: 2.1rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--panel); }
.points { display: grid; gap: .5rem; }
.points .tp { display: flex; gap: .5rem; align-items: center; }
.points .tp-label { font-size: .875rem; font-weight: 500; color: var(--ink-soft); }
.add-point { justify-self: start; }

details.alternate { margin-top: 1rem; border-top: 1px dashed var(--line-strong); padding-top: .75rem; }
details.alternate summary { cursor: pointer; font: 600 1.125rem var(--head); }
details.alternate .route { margin-top: .75rem; }

/* Carte (Leaflet) : points de l'admin, cliqués pour tracer la route */
.map-dock .map-tools { margin: .25rem 0 .75rem; }
.map-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.seg { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; color: var(--ink); padding: .5rem 1rem; font-size: .875rem; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--active); color: var(--on-active); }   /* choisi = état actif (ambre), pas une action */
button.ghost.on { background: var(--active); color: var(--on-active); border-color: var(--active); }
.map-tools .map-terrain { margin-left: auto; }
.map { height: clamp(18rem, 55vh, 30rem); border-radius: 12px; border: 1.5px solid var(--line-strong); isolation: isolate; z-index: 0; font: 500 .875rem var(--body); }
.is-dark .map .leaflet-tile-pane { filter: saturate(.55) brightness(.78) contrast(1.05); }   /* fond de carte calme : la route reste la plus claire */
.map .pin-label { padding: 0 .25rem; border: 0; border-radius: 8px; box-shadow: none; background: rgba(255, 255, 255, .85); color: #182430; font: 600 .8125rem/1.5 var(--body); pointer-events: auto; cursor: pointer; }
.map .pin-label::before { display: none; }
/* Commandes Leaflet aux couleurs de l'app : ni boutons blancs ni police Lucida, crédit court et discret */
.map .leaflet-bar { border: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); border-radius: 8px; }
.map .leaflet-bar a { width: 36px; height: 36px; font: 500 18px/34px var(--body); color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); }
.map .leaflet-bar a:first-child { border-radius: 8px 8px 0 0; }
.map .leaflet-bar a:last-child { border-radius: 0 0 8px 8px; border-top: 0; }
.map .leaflet-bar a:hover { background: var(--panel-2); color: var(--ink); }
.map .leaflet-bar a.leaflet-disabled { color: var(--ink-soft); background: var(--panel); opacity: .6; }
.map .leaflet-control-attribution { font: 400 11px/1.5 var(--body); color: var(--ink-soft); padding: 1px 6px; border-radius: 8px 0 0 0;
  background: color-mix(in srgb, var(--panel) 82%, transparent); }
.map .leaflet-control-attribution a { color: var(--ink-soft); text-decoration: underline; }
.map .pin-ad { font-weight: 700; z-index: 2; }        /* aérodromes au-dessus des autres noms : toujours touchables au doigt */
/* Noms des waypoints et points CTR : cachés (carte lisible sur téléphone) ; visibles au survol, une fois cliqués, ou dans la route */
.map .pin-wp, .map .pin-ctr { display: none; }
.map .pin-label.hover, .map .pin-label.sel, .map .pin-label.sel-alt, .map .pin-label.peek { display: block; }
.map .pin-label.sel-alt { background: #7B4FC4; color: #fff; }   /* point du dégagement : violet, comme sa route */
.map .pin-label.sel { background: #A35F14; color: #fff; }   /* blanc dessus : 5:1 */
.map-dock .map-msg { margin-top: .5rem; }

/* Branches */
/* « Same wind on every leg » : bloc mis en évidence ; champs toujours sur une ligne */
.wind-all { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; margin-bottom: 1rem;
  padding: .75rem 1rem; border: 1.5px solid var(--accent); border-radius: 8px; background: rgba(198, 122, 38, .1); }
.wind-label { display: inline-flex; align-items: center; gap: .5rem; font: 600 1rem var(--head); color: var(--ink); }
.wind-label svg { width: 1.2rem; height: 1.2rem; color: var(--accent); flex: none; }
.wind-fields { display: grid; grid-template-columns: 7.5rem 7.5rem auto; gap: .5rem; align-items: center; }
.wind-fields button { min-height: 2.6rem; }
/* Unité affichée dans le champ (° / kt) */
.unit { position: relative; display: block; min-width: 0; }
.unit input { padding-right: 2rem; }
.unit i { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font: 500 .875rem var(--mono); font-style: normal; color: var(--ink-soft); pointer-events: none; }
.legs-head, .leg { display: grid; grid-template-columns: 2rem minmax(10rem, 1.8fr) 4.6rem 1fr .9fr .9fr; gap: .5rem; align-items: center; }
.leg .mc { font: 600 1rem var(--mono); }
.legs-head { font: 500 .8125rem var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); padding: 0 .25rem .25rem; border-bottom: 1px solid var(--line); }
.leg { padding: .5rem .25rem; border-bottom: 1px solid var(--line); }
.leg.alt { background: linear-gradient(90deg, rgba(198, 122, 38, .08), transparent 70%); }
.leg .n { font: 600 .875rem var(--mono); color: var(--ink-soft); }
.leg .names { font-weight: 500; line-height: 1.3; }
.leg .names small { display: block; font: 500 .6875rem var(--mono); color: var(--ink-soft); letter-spacing: .05em; text-transform: uppercase; }
.legs-body .empty { padding: .75rem .25rem; }

/* Téléchargements */
/* Signature : aperçu dans la police du PDF (Great Vibes), encre bleue */
.signature-row { display: grid; grid-template-columns: minmax(14rem, 1fr) minmax(12rem, 1fr); gap: .5rem 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.signature-preview { min-height: 3.2rem; display: flex; align-items: center; justify-content: center; border-bottom: 1.5px solid var(--line-strong); font: 2.1rem/1.2 "Great Vibes", cursive; color: #1F3A93; overflow: hidden; white-space: nowrap; }
.is-dark .signature-preview { color: #9DB4F0; }
@media (max-width: 680px) { .signature-row { grid-template-columns: 1fr; } }
.routefile { margin: 0 0 1.5rem; }
.routefile-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.routefile .route-msg { margin-top: .5rem; }
.routefile .route-msg:empty { display: none; }
.suggest { margin: -0.25rem 0 1.5rem; padding: .75rem 1rem; border: 1.5px dashed var(--line-strong); border-radius: 12px; font-size: 1rem; color: var(--ink-soft); }
.suggest > p { margin: 0; }
.suggest .hint:empty { display: none; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.suggest-form { margin-top: 1rem; }
.sg-note { margin-top: 1rem; }
textarea { font: inherit; width: 100%; box-sizing: border-box; padding: .5rem .75rem; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--field); color: var(--ink); resize: vertical; }
.std-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; }
.std-head h2 { margin-bottom: .25rem; }
.std-head .hint { margin: 0; max-width: 34rem; }
.std-panel { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong); }
.std-weights { margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }   /* 3 champs : pas de 4e colonne vide */
.std-agree { margin-top: 1rem; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.dl { display: flex; flex-direction: column; align-items: flex-start; }
.dl .hint { margin-top: .5rem; }
.saved { font-size: .875rem; color: var(--ink-soft); margin: 1rem 0 0; padding: .75rem .75rem; border-radius: 8px; border: 1px dashed var(--line-strong); }
.saved strong { color: var(--ink); font-weight: 600; }
#savedAt { display: block; font: 500 .8125rem var(--mono); letter-spacing: 0; margin-top: .25rem; }

/* Alertes */
.alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.alerts li { padding: .5rem .75rem; border-radius: 8px; border-left: 4px solid var(--danger); background: var(--danger-bg); }

@media (max-width: 680px) {
  .legs-head { display: none; }
  .leg { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "names names mc" "alt dir spd"; }
  .leg .n { display: none; }
  .leg .names { grid-area: names; }
  .leg .mc { grid-area: mc; justify-self: end; }
  .map-tools .map-terrain { margin-left: 0; }
  .map { height: clamp(16rem, 48vh, 24rem); }
  .leg .f-alt { grid-area: alt; }
  .leg .w-dir-cell { grid-area: dir; } .leg .w-spd-cell { grid-area: spd; }
  .wind-all { flex-direction: column; align-items: stretch; }
  .wind-fields { grid-template-columns: 1fr 1fr auto; }
}

/* ===== App après connexion : cockpit sombre, formulaire + colonne fixe (carte, résumé) ===== */
body:not(.gated) .wrap { max-width: 1380px; }
body:not(.gated) main { padding-block: 1.5rem 4rem; }
.card { border-color: transparent; border-radius: 16px; }
:root:not([data-theme="dark"]) .card { border-color: var(--line); }
.step { background: #E8AE48; color: #182430; }
h2 { font-size: 1.25rem; letter-spacing: 0; }

/* Bandeau : la photo du vol, comme la page de connexion */
.app-head { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 12rem;
  margin-bottom: 1.5rem; padding: clamp(1.3rem, 3vw, 2.2rem); border-radius: 16px; background: #1D3550; color: #F6F1E4; }
.app-head-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 52%; }
.app-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 22, 32, .9) 0%, rgba(14, 22, 32, .68) 50%, rgba(14, 22, 32, .22) 100%); }
/* Téléphone : le texte passe sur toute la largeur de la photo (avion blanc) -> voile uni */
@media (max-width: 700px) { .app-head::before { background: rgba(14, 22, 32, .74); } }
.app-head h1 { margin: 0 0 .5rem; font-size: clamp(2.25rem, 1.4rem + 3.5vw, 3.5rem); letter-spacing: -.03em; }   /* même titre sur tous les écrans */
.app-head .intro { margin: 0; max-width: 40rem; color: rgba(246, 241, 228, .9); }

.app-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.side { display: grid; gap: 1.5rem; align-content: start; }
.map-dock, .summary { background: var(--panel); border-radius: 16px; padding: clamp(1rem, 2.5vw, 1.25rem); }
#mapSlot .map-dock { margin-bottom: 1.5rem; }
.dock-head, .sum-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.dock-head h2, .sum-head h2 { margin: 0; font-size: 1.25rem; }
.dir-seg.single { display: none; }
.map { border: 0; border-radius: 12px; }

/* Deux colonnes dès la tablette (768 px) : les étapes à gauche, la carte fixe à droite (58 / 42), comme sur ordinateur */
@media (min-width: 768px) {
  .app-layout { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); align-items: start; }
  .side { position: sticky; top: 1rem; height: calc(100vh - 2rem); grid-template-rows: minmax(0, 1fr) auto; }
  #dockSlot { min-height: 0; }
  .side .map-dock { height: 100%; display: flex; flex-direction: column; }
  .side .map { flex: 1 1 auto; height: auto; min-height: 260px; }
  .side .summary { max-height: 40vh; overflow: auto; }
  .sum-bar { display: none !important; }
}

/* Résumé du vol : grands chiffres, état en couleur */
.sum-status { flex: none; padding: .25rem .75rem; border-radius: 999px; font-size: .875rem; font-weight: 600; text-decoration: none; background: var(--panel-2); color: var(--ink-soft); }
.sum-status.ok { background: rgba(139, 199, 154, .16); color: var(--ok); }
.sum-status.bad { background: var(--danger-bg); color: var(--danger); }
.sum-status.warn { background: rgba(232, 174, 72, .16); color: var(--warn); }
.sum-dir { padding: 1rem 1rem; border-radius: 12px; background: var(--panel-2); }
.sum-dir + .sum-dir { margin-top: .75rem; }
.sum-route { margin: 0 0 .75rem; font: 500 1rem var(--head); }
.sum-route b { font-weight: 700; margin-right: .25rem; }
.sum-route span { color: var(--ink-soft); font-size: 1rem; }
.sum-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem .75rem; margin: 0; }
.sum-grid dt { font-size: .8125rem; color: var(--ink-soft); }
.sum-grid dd { margin: 0; font: 600 1.25rem/1.2 var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-grid dd small { font: 500 .875rem var(--body); color: var(--ink-soft); }
.sum-grid .bad dd { color: var(--danger); }
.sum-checks { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .25rem; font-size: .875rem; }
.sum-checks li { display: flex; gap: .5rem; align-items: baseline; }
.sum-checks li::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ok); transform: translateY(-.05rem); }
.sum-checks li.bad { color: var(--danger); }
.sum-checks li.bad::before { background: var(--danger); }
@media (max-width: 520px) { .sum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Téléphone : barre des chiffres clés en bas de l'écran (flotte au-dessus de la page) */
.sum-bar { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: 16px; background: #0B1118; color: #F1ECDF;
  font: 400 .875rem var(--body); text-align: left; border: 1px solid rgba(241, 236, 223, .2); cursor: pointer; text-decoration: none;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .35); }   /* un calque posé sur la page, pas une découpe */
.sum-bar b { font-family: var(--head); }
.sum-bar-status::after { content: " ▴"; }
.sum-bar[aria-expanded="true"] .sum-bar-status::after { content: " ▾"; }
/* Liste ouverte par la barre : ce qui reste, chaque ligne mène à son étape */
.sum-pop { position: fixed; z-index: 51; right: 12px; width: min(34rem, calc(100% - 24px)); bottom: calc(12px + 3.6rem + env(safe-area-inset-bottom, 0px));
  max-height: 55vh; overflow: auto; margin: 0; padding: .5rem; list-style: none; border-radius: 16px; background: var(--panel);
  border: 1.5px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.sum-pop li { border-left: 4px solid var(--line-strong); border-radius: 8px; margin: .25rem 0; font-size: 1rem; padding: .5rem .75rem; }
.sum-pop li:has(button) { padding: 0; }
.sum-pop li.warn { border-left-color: #E8AE48; }
.sum-pop li.bad { border-left-color: var(--danger); }
.sum-pop li.ok { border-left-color: var(--ok); }
.sum-pop button { display: block; width: 100%; min-height: 44px; padding: .5rem .75rem; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sum-pop button:hover { background: var(--panel-2); }
.sum-bar .dot { flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: #B9B4A6; }
.sum-bar.ok .dot { background: #8BC79A; }
.sum-bar.bad .dot { background: #F2867D; }
.sum-bar.warn .dot { background: #E8AE48; }
.sum-bar-status { margin-left: auto; color: #B9B4A6; white-space: nowrap; }
/* Place sous la barre du bas (hauteur + 24 px) : elle ne cache ni la fin de la page ni le pied de page */
@media (max-width: 767px) { body[data-view="wizard"]:not(.gated) { padding-bottom: 6rem; } html { scroll-padding-bottom: 5rem; } }

/* Fichiers de route dans le bandeau ; barre du bas sur une ligne */
.app-head { justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.app-head .routefile { margin: 0; flex: none; }
.app-head .routefile-buttons { grid-template-columns: auto auto; gap: .75rem; }
/* « My flights / Save flight » : boutons secondaires (contour), l'ambre est gardé pour l'actif et l'attention */
.app-head .routefile button.accent { padding: .75rem 1.5rem; color: #F6F1E4; background: rgba(14, 22, 32, .35); border-color: rgba(246, 241, 228, .45); }
.app-head .routefile button.accent:hover { background: rgba(14, 22, 32, .55); }

.app-head .route-msg { color: rgba(246, 241, 228, .85); max-width: 22rem; }
.sum-bar { white-space: nowrap; overflow: hidden; }
.sum-bar span:not(.dot) { overflow: hidden; text-overflow: ellipsis; }
.sum-bar .sum-bar-status { flex: none; overflow: visible; }   /* l'état se lit en entier, les chiffres se coupent */
@media (max-width: 420px) { .sum-bar b { display: none; } }
@media (min-width: 1100px) { .app-layout { grid-template-columns: minmax(0, 1fr) minmax(400px, .8fr); } }
@media (min-width: 768px) and (max-width: 1279px) { .side .sum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Écran large mais peu haut (iPad à l'horizontale, petit portable) : toute la colonne pour la carte,
   le résumé du vol passe dans la barre du bas comme sur téléphone */
@media (min-width: 768px) and (max-height: 920px) {
  .side .summary { display: none; }
  .sum-bar:not(.off):not([hidden]) { display: flex !important; }   /* vide (pas encore de route) : rien en bas de l'écran */
  body[data-view="wizard"]:not(.gated) { padding-bottom: 6rem; }
  html { scroll-padding-bottom: 5rem; }
}

/* Carte en plein écran (bouton « Full screen ») : le cadre est sorti de la page et posé sur tout l'écran */
body.map-full { overflow: hidden; }
body.map-full #mapDock { position: fixed; inset: 0; z-index: 1000; margin: 0; border-radius: 0; display: flex; flex-direction: column;
  padding: calc(.7rem + env(safe-area-inset-top, 0px)) calc(.8rem + env(safe-area-inset-right, 0px)) calc(.7rem + env(safe-area-inset-bottom, 0px)) calc(.8rem + env(safe-area-inset-left, 0px));
  background: var(--panel); }
body.map-full #mapDock .map { flex: 1 1 auto; height: auto !important; min-height: 0; }
body.map-full .sum-bar { display: none !important; }
.map-tools .map-full { font-weight: 700; }

/* Appui long / clic droit : pas de sélection bleue ni de menu « copier » sur la carte et le cadre de signature */
.map, .sign-pad canvas { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }


/* Tableau des départs (page de connexion) : écran noir, codes ambre, lettres à palettes */
.fids { --fids-amber: #F2B53A; --fids-ink: #F4F1EA; --fids-dim: #8C96A3; --fids-line: rgba(244, 241, 234, .09);
  padding: 1rem 1.5rem 1rem; border-radius: 16px; background: #07090C; color: var(--fids-ink);
  box-shadow: 0 0 0 6px #121821, 0 0 0 7px #2A3442, 0 40px 80px rgba(4, 10, 18, .55);
  animation: rise .8s .3s cubic-bezier(.2, .7, .2, 1) both; }
.fids-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; }
.fids-title { display: flex; align-items: center; gap: .75rem; }
.fids-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 8px; background: var(--fids-amber); color: #07090C; flex: none; }
.fids-icon svg { width: 1.55rem; height: 1.55rem; }
.fids h2 { margin: 0; font: 700 1.75rem/1 var(--head); letter-spacing: .02em; text-transform: uppercase; color: var(--fids-ink); }
.fids-title p { margin: .25rem 0 0; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fids-dim); }
.fids-clock { margin: 0; text-align: right; line-height: 1.1; }
.fids-clock time { display: block; font: 600 1.75rem/1 var(--head); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.fids-clock span { font-size: .8125rem; color: var(--fids-dim); }
.fids-row { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto 7.2rem; align-items: center; gap: 1rem;
  padding: .75rem 0; border-top: 1px solid var(--fids-line); }
.fids-cols { padding: .25rem 0; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fids-dim); }
.fids-cols span:nth-child(3) { text-align: right; }
.fids-code { font: 500 .875rem var(--mono); color: var(--fids-dim); }
.fids-dest { font: 500 1rem var(--body); }
.fids-val { justify-self: end; display: inline-flex; gap: 2px; }
.fids-status { display: flex; align-items: center; gap: .5rem; font-size: 1rem; white-space: nowrap; }
.fids-status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--fids-dim); flex: none; }
.fids-status.boarding { color: #7EE0A1; }
.fids-status.boarding::before { background: #3DD07A; box-shadow: 0 0 0 3px rgba(61, 208, 122, .18); animation: blink 1.6s ease-in-out infinite; }
.fids-status.gate { color: var(--fids-amber); }
.fids-status.gate::before { background: var(--fids-amber); }
.fids-foot { margin: .25rem 0 0; padding-top: .75rem; border-top: 1px solid var(--fids-line); font-size: .8125rem; color: var(--fids-dim); }
/* Une palette par caractère : moitié haute / basse séparées par un trait, comme un tableau Solari */
.flap { position: relative; display: inline-grid; place-items: center; width: 1.45rem; height: 2.05rem; border-radius: 8px;
  background: linear-gradient(#1A212B 0 50%, #141A22 50% 100%); color: var(--fids-amber); font: 700 1.25rem/1 var(--mono); overflow: hidden; }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #07090C; }
.flap.turn { animation: flap .09s linear; }
@keyframes flap { 50% { transform: scaleY(.15); } }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .fids, .flap.turn, .fids-status.boarding::before { animation: none; } }
@media (max-width: 900px) { .fids { width: min(100%, 34rem); justify-self: center; } }
/* Tableau étroit (téléphone, iPad, petit portable) : libellé avec son état dessous, chiffre à droite.
   Décidé sur la largeur du tableau lui-même, pas sur celle de l'écran. */
.fids { container-type: inline-size; }
@container (max-width: 470px) {
  .fids-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "dest val" "status val"; row-gap: .25rem; }
  .fids-cols, .fids-code { display: none; }
  .fids-dest { grid-area: dest; }
  .fids-val { grid-area: val; }
  .fids-status { grid-area: status; font-size: .875rem; }
}
@container (max-width: 380px) {
  .fids h2 { font-size: 1.25rem; }
  .fids-clock time { font-size: 1.75rem; }
  .fids-dest { font-size: 1rem; }
  .flap { width: 1.3rem; height: 1.85rem; font-size: 1.125rem; }
}
@media (max-width: 520px) { .fids { padding: 1rem 1rem .75rem; } }
/* Grand écran : appareils un peu plus petits, le tableau passe légèrement devant eux (tout tient sur l'écran) */
@media (min-width: 901px) {
  .hero-side { gap: 1.5rem; }
  .hero-side .devices { width: 78%; justify-self: end; margin-right: 3%; }
}
.flap { font: 700 1.25rem/1 var(--head); font-variant-numeric: tabular-nums; }

/* ----- Fenêtres modales (modal.js) : jamais les pop-ups du navigateur ----- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.nm-lock { overflow: hidden; }
.nm-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.5rem;
  background: rgba(8, 14, 22, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s ease; }
.nm-overlay.nm-in { opacity: 1; }
.nm-dialog { position: relative; width: min(100%, 31rem); max-height: calc(100svh - 2.5rem); overflow: auto; overscroll-behavior: contain;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .32), 0 2px 8px rgba(0, 0, 0, .12);
  transform: translateY(14px) scale(.98); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.nm-dialog.lg { width: min(100%, 46rem); }
.nm-in .nm-dialog { transform: none; }
.nm-dialog:focus { outline: none; }
.nm-title { font: 600 1.25rem/1.3 var(--head); letter-spacing: 0; margin: 0 3rem 1rem 0; display: block; }
.nm-body { color: var(--ink-soft); line-height: 1.55; }
.nm-body > p { margin: 0 0 .75rem; }
.nm-body > p:last-child { margin-bottom: 0; }
.nm-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }
.nm-close { position: absolute; top: .9rem; right: .9rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; padding: 0; }
.nm-close svg { width: 18px; height: 18px; }
.nm-close:hover { background: var(--panel-2); color: var(--ink); }
button.danger-text { color: var(--danger); }
button.icon.danger { padding: 0; }   /* × de suppression : reste centré dans son rond */
@media (max-width: 560px) {
  .nm-overlay { place-items: end stretch; padding: 0; }
  .nm-dialog, .nm-dialog.lg { width: 100%; max-height: 92svh; border-radius: 16px 16px 0 0; padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); transform: translateY(40px); }
  .nm-actions button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .nm-overlay, .nm-dialog { transition: none; } }
.pw-form { display: grid; gap: .75rem; margin-top: .5rem; }
.pw-form .error-text { margin: 0; }

/* ----- Inscription : formules côte à côte ----- */
.plans { border: 0; padding: 0; margin: 1rem 0 .5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; min-width: 0; }
.plan { position: relative; display: grid; gap: .125rem; padding: 1rem 1rem 1rem 3rem; border: 1.5px solid var(--line-strong); border-radius: 16px;
  cursor: pointer; color: var(--ink); background: var(--field); transition: border-color .15s, box-shadow .15s; }
.plan input { position: absolute; left: .95rem; top: 1.05rem; width: 1.05rem; height: 1.05rem; min-height: 0; margin: 0; accent-color: var(--accent); }
.plan:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-name { font: 600 1rem var(--head); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.plan-save { font: 600 .6875rem var(--mono); font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: #182430; background: #E8AE48; padding: .125rem .5rem; border-radius: 999px; }
.plan-price { font: 700 1.25rem/1.2 var(--head); }
.plan-every { font-size: .8125rem; color: var(--ink-soft); font-weight: 400; }
@media (max-width: 420px) { .plans { grid-template-columns: 1fr; } }

/* ----- Mon compte, bandeau de fin d'essai, temps gagné ----- */
.account-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.trial-banner { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; margin: 0 0 1.5rem; padding: 1rem 1rem 1rem 1.5rem;
  border-radius: 16px; background: var(--panel); border: 1.5px solid var(--accent); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.trial-banner p { margin: 0; flex: 1 1 18rem; font-size: 1rem; }
.trial-icon { font-size: 1.25rem; }
.trial-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

.trial-close { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; padding: 0; }
.trial-close svg { width: 16px; height: 16px; }
.trial-close:hover { background: var(--panel-2); color: var(--ink); }
.time-saved { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; margin-top: 1.5rem;
  padding: 1rem 1.5rem; border-radius: 16px; background: var(--panel); }
.time-saved p { margin: 0; }
.time-saved .hint { display: block; margin: .125rem 0 0; }
.time-saved .hint:empty { display: none; }
.ts-icon { margin-right: .25rem; }
.report-line { margin: 1.5rem 0 0; padding: .75rem 1.5rem; border-radius: 16px; background: var(--panel); font-size: 1rem; color: var(--ink-soft); }
.report-line .link { font-weight: 600; }
.report-line:not([hidden]) + .time-saved { margin-top: .75rem; }
body:not([data-view="wizard"]) .report-line { max-width: 800px; margin-inline: auto; box-sizing: border-box; }

/* ----- My flights ----- */
.flights-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.flights-top .hint { margin: 0; flex: 1 1 18rem; }

.flights { display: grid; gap: .5rem; }
.flight { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; padding: .75rem 1rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.flight.current { border-color: var(--accent); }
.flight-info { min-width: 0; flex: 1 1 16rem; }
.flight-info p { margin: 0; }
.flight-date { font: 600 1rem var(--head); color: var(--ink); }
.flight-route { font: 500 .875rem var(--mono); color: var(--ink-soft); overflow-wrap: anywhere; }
.flight-actions { display: flex; gap: .25rem; flex-wrap: wrap; }
.flights-empty { margin: .5rem 0; color: var(--ink-soft); }
/* ===== Parcours guidé : accueil, retour d'un élève, étapes ===== */
.app-layout.single { grid-template-columns: minmax(0, 1fr) !important; }
.app-layout.single .app-col { max-width: 800px; width: 100%; margin: 0 auto; }
.sum-bar.off { display: none !important; }
.back-link { display: inline-block; margin-bottom: .75rem; text-decoration: none; }

/* Accueil : deux grands choix */
.start-panel h2, .back-panel h2 { font-size: clamp(1.25rem, .9rem + 1.6vw, 1.75rem); margin: .25rem 0 1.5rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.choice { display: grid; gap: .25rem; justify-items: start; text-align: left; padding: 1.5rem 1.5rem 1.5rem; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: var(--panel-2); color: var(--ink); font: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.choice:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .12); }
.choice strong { font: 600 1.25rem var(--head); }
.choice span:last-child { color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
.choice-icon { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 12px; background: rgba(232, 174, 72, .16); color: var(--accent); margin-bottom: .25rem; }
.choice-icon svg { width: 1.45rem; height: 1.45rem; }

/* Retour : le vol en cours */
.back-panel h2 { margin-bottom: .5rem; }
.back-route { font: 500 1rem var(--mono); color: var(--ink); margin: 0 0 .5rem; overflow-wrap: anywhere; }
.back-status { margin: 0 0 1rem; font-weight: 600; color: var(--ink-soft); }
.back-status.ok { color: var(--ok); }
.back-status.warn { color: var(--warn); }
.back-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem; }

/* Barre de progression */
.wz-progress { position: sticky; top: 0; z-index: 5; margin: 0 0 1rem; padding: .75rem 1rem .75rem; border-radius: 16px; background: var(--panel);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.wz-progress-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font: 600 .875rem var(--head); color: var(--ink); margin-bottom: .5rem; }
.wz-progress-top .link { font-size: .875rem; }
.wz-bar { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.wz-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #C67A26, #E8AE48); transition: width .4s cubic-bezier(.2, .8, .2, 1); }

/* Étapes */
.wz { background: var(--panel); border-radius: 16px; margin-bottom: .75rem; border: 1.5px solid transparent; scroll-margin-top: 6rem; transition: border-color .2s; }
:root:not([data-theme="dark"]) .wz { border-color: var(--line); }
.wz-head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1rem; border-radius: 16px; }
.wz-head h2 { margin: 0; font-size: 1.25rem; }   /* h3 du système : étapes repliées */
.wz-head h2 small { font-size: .8125rem; }
.wz-n { flex: none; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; font: 600 .875rem var(--mono);
  background: var(--panel-2); color: var(--ink-soft); }
.wz-sum { margin: .125rem 0 0; font-size: .875rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.wz-sum:empty { display: none; }
.wz-body { display: none; padding: .2rem clamp(1rem, 3vw, 1.5rem) 1.3rem; }
.wz.current { border-color: var(--active); box-shadow: var(--hairline-top); }   /* l'actif en ambre ; pas d'ombre sur une carte posée */
.wz.current .wz-body { display: block; animation: wz-in .3s ease both; }
.wz.current .wz-head { padding-top: 1rem; }
.wz.current .wz-head h2 { font-size: 1.75rem; letter-spacing: -.015em; }   /* h2 : l'étape en cours domine */
.wz.current .wz-n { background: #E8AE48; color: #182430; }
.wz.done .wz-n { background: rgba(139, 199, 154, .2); color: var(--ok); font-size: 1rem; }
.wz.warn .wz-n { background: var(--danger-bg); color: var(--danger); }
.wz.todo .wz-head { opacity: .6; }   /* étape à venir : carte pleine, seul son titre s'efface (plus de photo à travers) */
.wz.done .wz-head, .wz.warn .wz-head { cursor: pointer; }
.wz.done .wz-head:hover, .wz.warn .wz-head:hover { background: var(--panel-2); }
@keyframes wz-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .wz.current .wz-body { animation: none; } .wz-bar span { transition: none; } }
.wz-q { font: 500 1.125rem/1.45 var(--body); color: var(--ink); margin: 0 0 1rem; }
.wz-q.ok { color: var(--ok); }
.wz-nav { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.wz-nav [data-next] { margin-left: auto; min-width: 8rem; }
.wz-msg { margin: 0; flex: 1; font-size: .875rem; color: var(--danger); }
.wz-msg:empty { display: none; }
.wz-nav [data-back][hidden] + .wz-msg:empty + [data-next] { margin-left: auto; }

/* Route : pastilles dans l'ordre de vol */
.map-slot:not(:empty) { margin: 0 0 1rem; }
.map-slot .map-dock { padding: 0; background: transparent; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .25rem .25rem .75rem; border-radius: 999px; background: var(--panel-2);
  border: 1px solid var(--line-strong); font-size: 1rem; }
.chip small { font: 500 .6875rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.chip b { font-weight: 600; }
.chip.ad { border-color: var(--accent); }
.chip button { width: 1.5rem; height: 1.5rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--ink-soft); font-size: 1rem; line-height: 1; cursor: pointer; }
.chip button:hover { background: var(--danger-bg); color: var(--danger); }
.chip-arrow { color: var(--ink-soft); font-size: 1rem; }
.inline-field { max-width: 14rem; margin-bottom: 1rem; }
details.as-list { margin: 0 0 .75rem; }
details.as-list summary { cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--accent); }
details.as-list .route { margin-top: 1rem; }
.same-back { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; margin: 0 0 1rem;
  padding: .75rem 1rem; border-radius: 12px; background: rgba(232, 174, 72, .1); border: 1px dashed var(--accent); }
.same-back p { margin: 0; font-weight: 600; }

.yes-no { display: flex; gap: .75rem; }
.yes-no button { min-width: 6rem; }

/* Altitudes : règle semi-circulaire, vent par branche seulement si demandé */
.semi { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: -0.25rem 0 1rem; font-size: .875rem; color: var(--ink-soft); }
.semi b { font-family: var(--mono); color: var(--ink); font-weight: 600; margin-right: .25rem; }
.mc-cell { display: grid; line-height: 1.2; }
.semi-tip { font: 500 .6875rem var(--mono); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; }
.semi-tip.off { color: var(--accent); font-weight: 700; }
.legs .legs-head, .legs .leg { grid-template-columns: 2rem minmax(10rem, 1.8fr) 5.6rem 1.2fr; }
.legs.show-wind .legs-head, .legs.show-wind .leg { grid-template-columns: 2rem minmax(10rem, 1.8fr) 5.6rem 1fr .9fr .9fr; }
.legs:not(.show-wind) .wcol, .legs:not(.show-wind) .w-dir-cell, .legs:not(.show-wind) .w-spd-cell { display: none; }
@media (max-width: 680px) {
  .legs .leg { grid-template-columns: 1fr auto; grid-template-areas: "names mc" "alt alt"; }
  .legs.show-wind .leg { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "names names mc" "alt dir spd"; }
  .leg .mc-cell { grid-area: mc; justify-self: end; text-align: right; }
}

/* Vérification : une barre qui se remplit, l'avion qui la parcourt (durée : --ck-ms, posée par app.js) */
.checking { padding: 1.5rem 1rem .5rem; }
.ck-track { position: relative; height: 6px; border-radius: 999px; background: var(--line); }
.ck-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--accent); }
.ck-plane { position: absolute; top: 50%; left: 0; width: 1.7rem; height: 1.7rem; margin: -1rem 0 0 -1rem; color: var(--accent); }
.ck-plane svg { display: block; width: 100%; height: 100%; transform: rotate(90deg); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.checking.run .ck-fill { animation: ck-fill var(--ck-ms, 4500ms) cubic-bezier(.4, .05, .3, 1) forwards; }
.checking.run .ck-plane { animation: ck-plane var(--ck-ms, 4500ms) cubic-bezier(.4, .05, .3, 1) forwards; }
@keyframes ck-fill { to { width: 100%; } }
@keyframes ck-plane { to { left: 100%; } }
.ck-step { margin: 1rem 0 0; font-weight: 500; min-height: 1.5em; transition: opacity .2s; }
.ck-step.swap { opacity: 0; }
.fix-list { display: grid; gap: .5rem; margin-top: .75rem; }
.fix-list:empty { display: none; }
.fix { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem .75rem; border-radius: 8px; border-left: 4px solid var(--danger); background: var(--danger-bg); }
.fix p { margin: 0; display: grid; gap: .125rem; }
.fix span { font-size: .875rem; color: var(--ink-soft); }

/* Téléchargements guidés : le bouton conseillé en vert, les fiches M&B « plus tard » en orange */
.dl-plan { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 12px; font-size: 1rem; }
.dl-plan p { margin: 0; }
.dl-plan p + p { margin-top: .5rem; }
/* « Almost done! » : une ligne par contrôle, verte (ok), ambre (warn) ou neutre (none) */
.ck-row { margin: 0 0 .75rem; padding: .75rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); border-left-width: 5px; font-size: 1rem; }
.ck-row.ok { border-left-color: var(--ok); }
.ck-row.warn { border-left-color: #E8AE48; }
.ck-row h3 { margin: 0 0 .5rem; font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.ck-row h3::before { content: "…"; font: 700 .875rem var(--mono); width: 1.3rem; height: 1.3rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--line); }
.ck-row.ok h3::before { content: ""; background: var(--ok) var(--ic-check-white) center / 62% no-repeat; }
.is-dark .ck-row.ok h3::before { background-image: var(--ic-check-ink); }   /* vert clair en sombre : coche marine */
.ck-row.warn h3::before { content: "!"; background: #E8AE48; color: #fff; }
.ck-row.none h3::before { content: "–"; }
.ck-row:focus { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.ck-summary { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1rem; font-weight: 600; font-size: 1rem; }
.ck-summary:empty { display: none; }
.ck-summary .ok { color: var(--ok); }
.ck-summary .warn { color: var(--warn); }
.ck-summary .bad { color: var(--danger); }
.ck-summary button.link { color: inherit; }
.ck-row p { margin: .25rem 0; }
.ck-row h4 { margin: .75rem 0 .25rem; font-size: .875rem; }
.ck-row > button, .ck-row > .file-btn { margin-top: .5rem; }
.ck-list { list-style: none; margin: 0; padding: 0; }
.ck-list li { padding: .5rem 0 .5rem .75rem; border-left: 3px solid var(--line); margin-bottom: .5rem; }
.ck-list li.warn { border-left-color: #E8AE48; }
.ck-list li.none { opacity: .85; }
.ck-row details { margin-top: .25rem; }
.ck-row code, .notam-text { font: .8125rem var(--mono); white-space: pre-wrap; word-break: break-word; }
.tags i { font: 600 .6875rem var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .05em; margin-left: .25rem; padding: .125rem .5rem; border-radius: 8px; background: rgba(232, 174, 72, .18); }

.file-btn:focus-within { outline: 2px solid var(--ok); outline-offset: 2px; }
.wind-auto { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: .5rem 0 .75rem; }
.wind-auto .hint { margin: 0; flex: 1 1 14rem; }
/* Noms des villes et villages sur la carte (GeoNames) : texte sur halo blanc, cliquable */
.map .town-name span { display: inline-block; white-space: nowrap; transform: translate(-50%, -50%); font: 600 .6875rem/1 var(--body); color: #2B3640; cursor: pointer;
  text-shadow: 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; }
.map .town-name.r0 span { font-size: .875rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.map .town-name.r1 span { font-weight: 700; }
.map .town-name span:hover { color: #000; text-decoration: underline; }
/* Conseil sous la carte (étape route) : bien visible */
.map-tip { display: flex; align-items: flex-start; gap: .75rem; margin: .75rem 0 .5rem; padding: .75rem 1rem; border-radius: 12px; background: rgba(46, 107, 63, .14); border: 1.5px solid rgba(46, 107, 63, .55); font-size: 1rem; }
.map-tip svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .125rem; color: #3E8E57; }
/* Bulletin NOTAM, étape 1 : encadré bien visible (ambre tant qu'il manque, vert une fois ajouté) */
.notam-up { margin: 1rem 0 0; padding: 1rem 1rem; border: 2px dashed #E8AE48; border-radius: 16px; background: rgba(232, 174, 72, .1); }
.notam-up .notam-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; font-weight: 700; }
.notam-up .notam-title svg { width: 1.3rem; height: 1.3rem; }
.notam-up .notam-title small { font: 600 .6875rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--warn); }
.notam-up.done .notam-title small { color: var(--ok); }

.notam-up .hint { margin: .5rem 0 0; }
.warn-text { color: var(--warn); }
.notam-pick { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
/* « Which departure / arrival will you use? » : procédures CTR en boutons sous la carte */
.proc-pick { display: grid; gap: .75rem; margin: .75rem 0; }
.proc-row p { margin: 0 0 .25rem; font-weight: 600; font-size: 1rem; }
.proc-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
/* E / N / S / W : même taille choisis ou non (cercles de 44 px), seul le remplissage change */
.proc-btns button { min-width: 2.6rem; height: 2.6rem; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: transparent; color: var(--ink); font: 600 .875rem var(--mono); }
.proc-btns button.accent { background: #E8AE48; border-color: #E8AE48; color: #182430; }
.sign-pad { margin: 0 0 1rem; }
.sign-mode { margin-bottom: .5rem; }
.sign-mode button { min-height: 2.4rem; }
/* Un seul mode de signature visible : le cadre en « Draw », l'aperçu manuscrit du nom en « Type » */
body[data-sign="type"] .sign-pad canvas, body[data-sign="type"] .sign-pad .row { display: none; }
body[data-sign="draw"] .signature-preview { display: none; }
.sign-pad canvas { display: block; width: 100%; max-width: 30rem; aspect-ratio: 10 / 3; background: #FBFAF6; border: 1.5px dashed var(--line); border-radius: 12px; touch-action: none; cursor: crosshair; }
.sign-pad .row { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.disclaimer { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 12px; background: rgba(217, 68, 61, .2); border: 1.5px solid #D9443D; font-size: 1rem; }
/* Alerte à ne pas manquer (bulletin NOTAM d'un autre jour, TAF qui ne couvre pas l'heure) : gras, rouge */
.alert-red { color: var(--danger); font-weight: 700; }
.disclaimer p { margin: 0 0 .5rem; }
.disclaimer .check { font-weight: 600; }
.dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dl.recommended { grid-column: 1 / -1; }   /* le conseillé sur toute la largeur, les deux autres dessous : pas de case vide */
@media (max-width: 560px) { .dl-grid { grid-template-columns: 1fr; } }
.dl button { white-space: nowrap; }
/* Un seul bouton plein : le conseillé ; les autres en contour */
.dl:not(.recommended) button { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.dl { padding: 1rem; border-radius: 12px; border: 1.5px solid var(--line); }
.dl.recommended { order: -1; border-color: var(--ok); background: rgba(139, 199, 154, .08); }
.dl.recommended button { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }   /* le seul bouton plein de l'étape */
.dl.recommended::before { content: "Recommended"; font: 600 .6875rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ok); margin-bottom: .5rem; }
.dl.later { border-color: #E8AE48; }
.dl.later button { background: transparent; color: var(--ink); border-color: #E8AE48; }
.dl.later::before { content: "On the day of the flight"; font: 600 .6875rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--warn); margin-bottom: .5rem; }
.is-dark .dl.later::before { color: #E8AE48; }
.dl-foot { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
#generateNote:empty { display: none; }
body:not([data-view="wizard"]) .time-saved { max-width: 800px; margin-inline: auto; }   /* pages étroites : une seule largeur, 800 px */
.map-slot #mapTitle, .map-slot .map-ctx { display: none; }
/* Sous-titre de la carte (route / dégagement de l'étape) : le titre et les boutons ne bougent plus */
.map-ctx { margin: -0.5rem 0 .5rem; font: 600 .875rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.map-ctx:empty { display: none; }
.map-legend { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin: .5rem 0 0; font-size: .8125rem; color: var(--ink-soft); }
.map-legend span { display: inline-flex; align-items: center; gap: .25rem; }
.map-legend i { width: .7rem; height: .7rem; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); }
.map-legend .lg-ad { background: #C67A26; }
.map-legend .lg-wp { background: #2E6B3F; }
.map-legend .lg-ctr { background: #2F6DB5; }
.map-legend .lg-route, .map-legend .lg-alt { width: 1.2rem; height: 0; border: 0; border-radius: 0; box-shadow: none; border-top: 3px solid #C67A26; }
.map-legend .lg-alt { border-top: 3px dashed #7B4FC4; }
.map-slot .dock-head { justify-content: flex-start; }

/* ===== Page de l'outil : la préparation sur table (cartes, rapporteur, logbook) en fond, teinte unie par-dessus ===== */
body:not(.gated)::before, body:not(.gated)::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body:not(.gated)::before { z-index: -2; background: #1D3550 url("img/bg-blur.jpg") 60% 50% / cover no-repeat; }   /* l'avion de l'école réduit à 48 px : un flou d'ambiance, sans filtre à calculer */   /* photo déjà floutée : ambiance seulement */
body:not(.gated)::after { z-index: -1; background: rgba(14, 22, 32, .88); }   /* photo du fond : ambiance seulement, plus de taches de couleur */
:root:not([data-theme="dark"]) body:not(.gated)::after { background: rgba(239, 232, 214, .86); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body:not(.gated)::after { background: rgba(14, 22, 32, .88); } }
body:not(.gated) { background: transparent; }
html { background: var(--bg); }
body:not(.gated) .top { border-bottom-color: transparent; }
/* Panneaux opaques au-dessus de la photo : un pas de ton, sans ombre ni flou */
:root:not([data-theme="dark"]) body:not(.gated) .card, :root:not([data-theme="dark"]) body:not(.gated) .wz,
:root:not([data-theme="dark"]) body:not(.gated) .map-dock, :root:not([data-theme="dark"]) body:not(.gated) .summary { border-color: var(--line); }

/* ===== Retour d'un élève : grand, sur la photo, trois actions de couleurs différentes ===== */
.back-panel { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 1.5rem; padding: clamp(1.5rem, 4vw, 2.6rem);
  border-radius: 16px; background: #12202E; color: #F6F1E4; }
.back-panel::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("img/sky-burgos.jpg") 50% 70% / cover no-repeat; filter: saturate(.85); }
.back-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 22, 32, .35) 0%, rgba(14, 22, 32, .88) 100%); }   /* voile marine du bas vers le haut : le texte reste lisible */
.back-panel .back-hello { display: block; margin: 0 0 1rem; font: 700 clamp(1.25rem, .9rem + 1.6vw, 1.75rem)/1.2 var(--head); letter-spacing: -.015em; color: #F6F1E4; }   /* plus petit que « Navlog Maker » */
.back-flight { margin: 0 0 .25rem; font: 600 1.25rem/1.3 var(--head); color: #F6F1E4; }
.back-route { color: rgba(246, 241, 228, .88); font-size: 1rem; }
.back-status { font-size: 1rem; color: rgba(246, 241, 228, .82); }
.back-status.ok { color: #9DDBAE; }
.back-status.warn { color: #F2C77A; }
.back-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.bact { flex: 1 1 auto; justify-content: center; display: inline-flex; align-items: center; gap: .5rem; min-height: 3.2rem; padding: .75rem 1.5rem; border-radius: 999px; border: 0;
  font: 600 1.125rem var(--body); cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.bact svg { width: 1.2rem; height: 1.2rem; flex: none; }
.bact:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bact:active { transform: translateY(0); filter: brightness(.95); }
.bact:focus-visible { outline: 3px solid #F6F1E4; outline-offset: 2px; }
/* Un seul bouton plein (crème) : l'action principale ; les autres en contour clair sur la photo */
.bact-go { background: #F1ECDF; color: #182430; }
.bact-edit, .bact-new, .bact-std { background: rgba(14, 22, 32, .35); color: #F6F1E4; box-shadow: inset 0 0 0 1.5px rgba(246, 241, 228, .45); }
.bact-edit:hover, .bact-new:hover, .bact-std:hover { background: rgba(14, 22, 32, .55); }

@media (max-width: 560px) {
  .back-actions { display: grid; grid-template-columns: 1fr; }
  .bact { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .bact { transition: none; } .bact:hover { transform: none; } }
/* Écran tactile : cibles d'au moins 44 px pour les petits liens et boutons */
@media (pointer: coarse) {
  .top .back, .site-foot a, .report-line .link { display: inline-flex; align-items: center; min-height: 44px; }
  .prefs .top-link, .prefs button.small, .ghost.small { min-height: 44px; }
  .prefs .top-link { display: inline-flex; align-items: center; }   /* lien : texte centré dans sa hauteur */
}

/* Accueil « What do you need today? » : même présence */
.start-panel h2 { font-size: clamp(1.25rem, .9rem + 1.6vw, 1.75rem); letter-spacing: -.015em; }   /* sous le titre de la page, jamais plus grand */
/* Accueil et retour : le bandeau du haut sans sa propre photo (la page en a déjà une) */
/* « Continue where I left off » : flèche au lieu du téléchargement */
.bact-go.pending svg { transform: rotate(-90deg); }
@media (max-width: 560px) {
  .app-head .intro { display: none; }   /* téléphone : le titre et les boutons, partout pareil */
  body[data-view="back"] .app-head h1, body[data-view="start"] .app-head h1 { margin: 0; }   /* taille : la règle commune (clamp) */
  body[data-view="back"] .app-head, body[data-view="start"] .app-head { margin-bottom: 1rem; }
}/* M&B standard depuis l'accueil : une rangée à part, bouton plein de la même taille que les autres */
.back-std { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap;
  margin-top: .5rem; padding: 1rem 1rem; border-radius: 16px; background: rgba(246, 241, 228, .12); }
.back-std p { margin: 0; flex: 1 1 15rem; font-size: 1rem; color: #F6F1E4; line-height: 1.4; }
.back-std p b { display: block; font: 600 1rem var(--head); }   /* rangée discrète, sous le titre de la carte */
.back-std p span { font-size: 1rem; color: rgba(246, 241, 228, .85); }
.back-std .bact { flex: 0 0 auto; }

@media (max-width: 560px) { .back-std .bact { flex: 1 1 100%; } }
/* Téléphone : un bouton par document, chacun ouvert dans un nouvel onglet */
.docs { display: grid; gap: .5rem; margin-top: 1rem; }
.doc { display: flex; align-items: center; gap: .75rem; min-height: 3.6rem; padding: .75rem 1rem; border-radius: 16px; text-decoration: none;
  background: var(--panel-2); color: var(--ink); border: 1.5px solid var(--line-strong); }
.doc span { display: grid; min-width: 0; flex: 1; }
.doc b { font: 600 1rem var(--head); }
.doc small { font-size: .8125rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-icon { width: 1.5rem; height: 1.5rem; flex: none; color: var(--accent); }
.doc-go { width: 1.2rem; height: 1.2rem; flex: none; color: var(--ink-soft); }
.doc:active { transform: scale(.99); }
.doc.opened { border-color: var(--ok); }
.doc.opened .doc-go { color: var(--ok); }
/* Version du site, discrète à droite du pied de page */
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem; }
.site-foot .release { margin-left: auto; font-variant-numeric: tabular-nums; opacity: .8; }

/* ----- Boutons (1.5.0) : trois variantes, trois tailles -----
   primary : plein (crème en sombre, encre en clair), une seule action principale par écran
   secondary : contour (.ghost, .accent, .file-btn) ; danger : contour rouge
   tailles : sm 32 px (.small, .file-btn), md 40 px (défaut), lg 48 px (.bact) ; 44 px au doigt (pointer: coarse) */
button.primary, button.ghost, button.accent, button.danger, .file-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 40px; padding: 0 1rem;
  border-radius: var(--r-pill); border: 1px solid transparent; font: 600 .875rem/1.2 var(--body); cursor: pointer; }
button.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
button.ghost, button.accent, .file-btn { background: transparent; color: var(--ink); border-color: var(--line-strong); }
button.ghost:hover, button.accent:hover, .file-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
button.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
button.danger:hover { background: var(--danger-bg); }
.is-dark button.danger, :root[data-theme="dark"] button.danger { color: var(--danger); }
button.small, .file-btn { min-height: 32px; padding: 0 .75rem; font-size: .8125rem; }
.notam-up .file-btn { min-height: 40px; padding: 0 1rem; font-size: .875rem; }
.bact { min-height: 48px; padding: 0 1.25rem; font-size: 1rem; }
@media (pointer: coarse) { button.primary, button.ghost, button.accent, button.danger, .file-btn { min-height: 44px; } .bact { min-height: 48px; } }
/* E / N / S / W : cercles de 44 px, l'ambre = choisi (état actif, pas une action) */
.proc-btns button.small { min-width: 2.75rem; min-height: 2.75rem; height: 2.75rem; padding: 0 .875rem; font: 600 .8125rem var(--mono); }
.proc-btns button.accent { background: var(--active); border-color: var(--active); color: var(--on-active); }

/* ----- Encadrés (1.5.0) : un seul composant, quatre tons (info, ok, attention, danger) -----
   rayon 12, marge 16, fond = ton à 8 %, bord 1 px = ton à 28 %, icône dans le ton ; ni pointillés ni filet de côté */
.gate-msg, .alerts li, .fix, .dl-plan, .map-tip, .notam-up, .disclaimer, .same-back {
  --tone: var(--info); --tone-bg: var(--info-bg); --tone-bd: var(--info-bd);
  border: 1px solid var(--tone-bd); border-radius: var(--r-md); padding: var(--s4); background: var(--tone-bg); color: var(--ink); }
.gate-msg, .alerts li, .fix, .disclaimer { --tone: var(--danger); --tone-bg: var(--danger-bg); --tone-bd: var(--danger-bd); }
.dl-plan.later, .notam-up, .same-back { --tone: var(--caution); --tone-bg: var(--caution-bg); --tone-bd: var(--caution-bd); }
.gate-msg.ok, .alerts li.ok, .dl-plan.today, .notam-up.done, .map-tip { --tone: var(--ok); --tone-bg: var(--ok-bg); --tone-bd: var(--ok-bd); }
.gate-msg.ok, .alerts li.ok { color: var(--ok); }
.map-tip svg { color: var(--tone); }
.notam-up .notam-title small { color: var(--tone); }
/* Checks : le bloc reste neutre (son état est le rond du titre), chaque ligne a un point dans son ton */
.ck-row, .ck-row.ok, .ck-row.warn { border: 1px solid var(--line); border-radius: var(--r-md); }
.ck-list li { position: relative; border-left: 0; padding: .5rem 0 .5rem 1.25rem; }
.ck-list li::before, .sum-pop li::before { content: ""; position: absolute; left: .25rem; top: calc(.5rem + .75em - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.ck-list li.warn::before, .sum-pop li.warn::before { background: var(--caution); }
.sum-pop li.bad::before { background: var(--danger); }
.sum-pop li.ok::before { background: var(--ok); }
.sum-pop li { position: relative; border-left: 0; padding-left: 1.5rem; }
.sum-pop li:has(button) { padding-left: 0; }
.sum-pop li:has(button)::before { left: .75rem; top: calc(.75rem + .75em - 4px); }
.sum-pop button { padding-left: 1.75rem; }

/* ----- Chiffres, surtitres, champs, surfaces (1.5.0) ----- */
/* Chiffres lus d'un coup d'œil (résumé, barre du bas) : JetBrains Mono à chasse fixe, unités en Inter */
.sum-grid dd { font: 500 1.25rem/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.sum-grid dd small { font: 400 .8125rem var(--body); color: var(--ink-soft); }
.sum-bar > span:not(.dot):not(.sum-bar-status) { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* Surtitres : un seul style (mono 11/600, +0.1em, capitales, gris) */
.label, .acc-label, .legs-head, .leg .names small, .chip small, .semi-tip, .tags i, .notam-up .notam-title small,
.dl.recommended::before, .dl.later::before, .map-ctx, .plan-save {
  font-family: var(--mono); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.label, .acc-label, .legs-head, .leg .names small, .chip small, .dl.recommended::before, .dl.later::before, .map-ctx { color: var(--ink-soft); }
.label.accent { color: var(--active); }
/* Champs : 44 px partout (tableaux compris), contour ambre et halo à la saisie ; 16 px pour éviter le zoom de l'iPhone */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select { min-height: 2.75rem; }
input:not([type="checkbox"]):focus-visible, select:focus-visible { outline: none; border-color: var(--active); box-shadow: 0 0 0 3px rgba(232, 174, 72, .35); }
/* Surfaces : cartes pleines, l'ombre seulement sur ce qui flotte (fenêtre, liste du bas, barre du bas) */
.card, .wz, .wz-progress, .map-dock, .summary { box-shadow: var(--hairline-top); }
.nm-dialog, .sum-pop { box-shadow: var(--shadow-float); }
/* Barre du bas : la surface des fenêtres (suit le thème clair), chiffres en mono, séparateurs gris */
.sum-bar { background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow-float); }
.sum-bar .dot { background: var(--ink-soft); }
.sum-bar.ok .dot { background: var(--ok); }
.sum-bar.bad .dot { background: var(--danger); }
.sum-bar.warn .dot { background: var(--caution); }
.sum-bar-status { color: var(--ink-soft); }
/* Boutons d'action dans une ligne d'encadré : jamais sur deux lignes, jamais écrasés */
.fix button, .same-back button, .notam-pick button, .back-std .bact { flex: none; white-space: nowrap; }
/* M&B standard : les poids sur les mêmes colonnes que les champs du dessus, 24 px entre les groupes */
.grid.four.std-weights { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); }
#stdSignSlot { margin-top: var(--s6); }

/* ----- En-tête et pied de page (1.6.0) : la marque de la famille et le nom du produit ; l'éditeur en bas ----- */
.brand { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font: 600 1rem var(--head); color: inherit; text-decoration: none; white-space: nowrap; }
.brand .mark { width: 22px; height: 22px; flex: none; color: var(--active); }
.prefs-links { display: contents; }
.menu-btn { display: none; }
@media (max-width: 599px) {
  .prefs { position: relative; flex-wrap: nowrap; }
  .menu-btn:not([hidden]) { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: inherit; cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .prefs-links { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 13rem; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 8px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line-strong); box-shadow: var(--shadow-float); color: var(--ink); }
  .prefs-links.open { display: flex; }
  #prefsLinks > :not([hidden]) { display: flex; justify-content: flex-start; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); font: 500 .875rem var(--body); }
  #prefsLinks > :not([hidden]):hover { background: var(--panel-2); }
}
.site-foot .wrap { align-items: center; gap: .5rem 1.5rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.foot-links [hidden] { display: none; }
.publisher { font-weight: 600; text-decoration: none; }
.publisher span { color: var(--active); }
@media (max-width: 480px) { .foot-links { flex-direction: column; } .site-foot .release { margin-left: 0; } }

/* ----- Bandeau (1.6.0) : le même sur tous les écrans (accueil, étapes, M&B standard, compte) ----- */
.app-head { min-height: 200px; align-items: flex-end; }
@media (max-width: 560px) { .app-head { min-height: 160px; } }
/* Une seule direction photo : l'avion de l'école, même étalonnage partout (un peu moins saturé, ombres marine) */
.app-head-photo, .hero-photo { filter: saturate(.85); }
.hero-photo { object-position: 30% 60%; }
/* État du vol sous le bandeau, en pastille sur la surface (plus sur la photo) */
.flight-msg { display: inline-block; margin: .75rem 0 0; padding: 4px 12px; border-radius: var(--r-pill); background: var(--panel); border: 1px solid var(--line); font-size: .8125rem; color: var(--ink-soft); }
.flight-msg:empty { display: none; }
/* Compte : son titre passe sous le bandeau, à la taille d'un titre de carte */
.acc-title { font-size: 1.75rem; margin: 0; }

/* ----- Icônes (1.6.0) : un seul jeu au trait (style Lucide), dessinées dans la couleur du texte : <i class="ic ic-NOM"> ----- */
.ic { display: inline-block; flex: none; width: 1.05em; height: 1.05em; vertical-align: -.17em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic-check { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%2F%3E%3C%2Fsvg%3E"); }
.ic-warn { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22M10.3%203.9%201.8%2018a2%202%200%200%200%201.7%203h17a2%202%200%200%200%201.7-3L13.7%203.9a2%202%200%200%200-3.4%200z%22%2F%3E%3Cpath%20d%3D%22M12%209v4M12%2017h.01%22%2F%3E%3C%2Fsvg%3E"); }
.ic-x { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22M18%206%206%2018M6%206l12%2012%22%2F%3E%3C%2Fsvg%3E"); }
.ic-clock { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%207v5l3%202%22%2F%3E%3C%2Fsvg%3E"); }
.ic-hourglass { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22M5%2022h14M5%202h14M17%2022v-4.2a2%202%200%200%200-.6-1.4L12%2012l-4.4%204.4a2%202%200%200%200-.6%201.4V22M7%202v4.2a2%202%200%200%200%20.6%201.4L12%2012l4.4-4.4a2%202%200%200%200%20.6-1.4V2%22%2F%3E%3C%2Fsvg%3E"); }
.ic-expand { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22M15%203h6v6M9%2021H3v-6M21%203l-7%207M3%2021l7-7%22%2F%3E%3C%2Fsvg%3E"); }
.ic-chev { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22m9%2018%206-6-6-6%22%2F%3E%3C%2Fsvg%3E"); }
.ic-back { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22m12%2019-7-7%207-7M19%2012H5%22%2F%3E%3C%2Fsvg%3E"); }
.ic-undo { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22M9%2014%204%209l5-5%22%2F%3E%3Cpath%20d%3D%22M4%209h10.5a5.5%205.5%200%200%201%200%2011H11%22%2F%3E%3C%2Fsvg%3E"); }
.ic-trash { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22M3%206h18M8%206V4h8v2M19%206l-1%2014H6L5%206%22%2F%3E%3C%2Fsvg%3E"); }
.ic-layers { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22m12%202%209%205-9%205-9-5z%22%2F%3E%3Cpath%20d%3D%22m3%2012%209%205%209-5M3%2017l9%205%209-5%22%2F%3E%3C%2Fsvg%3E"); }
.ic-copy { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%229%22%20y%3D%229%22%20width%3D%2212%22%20height%3D%2212%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M5%2015H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1h10a1%201%200%200%201%201%201v1%22%2F%3E%3C%2Fsvg%3E"); }
.ic-file { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22M14%203H7a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h10a2%202%200%200%200%202-2V8z%22%2F%3E%3Cpath%20d%3D%22M14%203v5h5M12%2012v6M9%2015l3%203%203-3%22%2F%3E%3C%2Fsvg%3E"); }
/* Coche dans un rond (étape faite, bloc de Checks bon) : dessinée en blanc par-dessus le rond */
:root { --ic-check-white: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%2F%3E%3C%2Fsvg%3E"); --ic-check-ink: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23182430%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%2F%3E%3C%2Fsvg%3E"); }
/* Coches dessinées : étape faite, consigne remplie */
.wz.done .wz-n::before, .route-q.ok::before { content: ""; display: inline-block; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: var(--ic-check-white) center / contain no-repeat; mask: var(--ic-check-white) center / contain no-repeat; }
.route-q.ok::before { margin-right: .4em; vertical-align: -.15em; }
/* Icône + texte dans un bouton ; au téléphone, les boutons de la carte ne gardent que l'icône (leur nom reste lu) */
button .ic + .lbl { margin-left: .4em; }
.ts-icon .ic, .trial-icon .ic { width: 1.15em; height: 1.15em; }
@media (max-width: 560px) { .map-tools .lbl { display: none; } .map-tools button.small { min-width: 44px; padding: 0 12px; } }

/* ----- Carte, pastilles, signature (1.6.0) ----- */
/* Noms des points : 12/600 Inter, liseré marine pour se lire sur le fond ; route en ambre, dégagement en crème */
.map .pin-label { font: 600 .75rem/1.5 var(--body); border-radius: var(--r-sm); box-shadow: 0 0 0 1px rgba(24, 36, 48, .55); }
.map .pin-label.sel { background: #E8AE48; color: #182430; }
.map .pin-label.sel-alt { background: #F1ECDF; color: #182430; }
.map-legend .lg-ad { background: #F1ECDF; box-shadow: 0 0 0 2px #182430; border-color: transparent; }
.map-legend .lg-wp { background: #8BC79A; }
.map-legend .lg-ctr { background: #7FB2E5; }
.map-legend .lg-route { border-top-color: #E8AE48; }
.map-legend .lg-alt { border-top: 3px dashed var(--ink); opacity: .8; }
/* Pastilles de la route : un point de la couleur de la carte, les flèches restent avec leur pastille */
.chip::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-soft)); box-shadow: 0 0 0 1.5px #182430; }
.chip[data-kind="ad"] { --c: #F1ECDF; }
.chip[data-kind="ctr"] { --c: #7FB2E5; }
.chip[data-kind="wp"] { --c: #8BC79A; }
.chip-pair { display: inline-flex; align-items: center; gap: .5rem; }
.chip-arrow { width: 16px; height: 16px; color: var(--ink-soft); }
/* Cadre de signature : le papier de la fiche, un ton plus doux ; ligne « Sign here » ; « Clear » dans le coin */
.pad-box { position: relative; max-width: none; }
.sign-pad canvas { max-width: none; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: #EDE7D8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='180'%3E%3Cline x1='30' y1='136' x2='570' y2='136' stroke='%23182430' stroke-opacity='.35' stroke-width='1.5' stroke-dasharray='6 6'/%3E%3Ctext x='30' y='160' font-family='Inter,Arial,sans-serif' font-size='18' fill='%23182430' fill-opacity='.45'%3ESign here%3C/text%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.pad-box #signClear { position: absolute; top: 8px; right: 8px; background: rgba(237, 231, 216, .9); color: #182430; border-color: rgba(24, 36, 48, .3); }
body[data-sign="type"] .pad-box { display: none; }

/* ----- Étapes, barre d'étape, compteur (1.6.0) ----- */
/* Liste des étapes comme une bande de vol : rangées faites compactes, un rail relie les ronds (ambre jusqu'à l'étape en cours) ;
   il s'arrête au rond de l'étape ouverte pour ne pas traverser son contenu */
.wz { position: relative; }
.wz:not(.current) .wz-head { padding-block: .625rem; }
.wz.done .wz-head h2, .wz.warn .wz-head h2 { color: var(--ink-soft); }
.wz::before, .wz:not(.current)::after { content: ""; position: absolute; left: calc(1.95rem - 1px); width: 2px; background: var(--line-strong); pointer-events: none; }
.wz::before { top: -.75rem; height: calc(.75rem + .625rem); }
.wz.current::before { height: calc(.75rem + 1rem); }
.wz:not(.current)::after { top: calc(.625rem + 1.9rem); bottom: 0; }
.wz.done::before, .wz.warn::before, .wz.current::before, .wz.done::after, .wz.warn::after { background: var(--active); }
.wz[data-step="flight"]::before, .wz[data-step="download"]::after { display: none; }
/* Barre « Step N of 12 » : collée au bord du haut, sans coins en haut, un filet dessous ; progression en ambre plein */
.wz-progress { border-radius: 0 0 var(--r-md) var(--r-md); border-bottom: 1px solid var(--line); }
.wz-bar span { background: var(--active); }

/* ----- Téléphone (1.6.0) : libellés courts, bouton NOTAM pleine largeur, étiquette sous le titre ----- */
.short { display: none; }
@media (max-width: 480px) {
  .long { display: none; }
  .short { display: inline; }
  .notam-up .file-btn { width: 100%; }
  .notam-up .notam-title { flex-wrap: wrap; row-gap: 4px; }
  .notam-up .notam-title small { flex-basis: 100%; }
}
/* My flights : bande de vol, la date en bloc mono à gauche ; Dupliquer / PDF / Supprimer en boutons d'icône */
.flight-strip { flex: none; display: grid; place-items: center; align-content: center; width: 3.25rem; min-height: 3.25rem; border-radius: var(--r-sm); background: var(--panel-2); }
.flight-strip b { font: 600 1.25rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.flight-strip span { margin-top: 2px; font: 600 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
button.icon-btn { width: 32px; min-width: 32px; padding: 0; }
@media (pointer: coarse) { button.icon-btn { width: 44px; min-width: 44px; } }
button.icon-btn.danger-text { color: var(--ink-soft); }
button.icon-btn.danger-text:hover, button.icon-btn.danger-text[data-sure="1"] { color: var(--danger); border-color: var(--danger); }
button.icon-btn[data-sure="1"], button.icon-btn:disabled { width: auto; padding: 0 .75rem; }   /* « Sure? Delete », « Preparing… » : le texte prend sa place */
.flight-actions { align-items: center; gap: 6px; }
/* Tableau des branches : sa mise en page étroite suit la largeur de l'étape, pas celle de l'écran
   (tablette à deux colonnes : la colonne des étapes est étroite alors que l'écran est large) */
.wz-body { container: step / inline-size; }
@container step (max-width: 560px) {
  .legs .legs-head { display: none; }
  .legs .leg { grid-template-columns: 1fr auto; grid-template-areas: "names mc" "alt alt"; }
  .legs.show-wind .leg { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "names names mc" "alt dir spd"; }
  .leg .n { display: none; }
  .leg .names { grid-area: names; }
  .leg .mc-cell { grid-area: mc; justify-self: end; text-align: right; }
  .leg .f-alt { grid-area: alt; }
  .leg .w-dir-cell { grid-area: dir; } .leg .w-spd-cell { grid-area: spd; }
  .wind-fields { grid-template-columns: 1fr 1fr auto; }
}
/* Carte dans une colonne étroite (tablette) : boutons en icônes seules, sur une ligne */
.map-dock { container: dock / inline-size; }
@container dock (max-width: 420px) { .map-tools .lbl { display: none; } .map-tools button.small { min-width: 40px; padding: 0 10px; } }
/* Le rond reste en haut de sa rangée (titre sur deux lignes au téléphone) : le rail le rejoint toujours au même endroit */
.wz-head { align-items: flex-start; }
.wz.current .wz-n { margin-top: 3px; }
.wz.current::before { height: calc(.75rem + 1rem + 3px); }
@media (max-width: 900px) { .hero-photo { object-position: 74% 60%; } }   /* téléphone : le ciel et la campagne de Burgos, pas le dessous de l'aile */
/* Page en cours dans l'en-tête (My account) : marquée en ambre (état actif) */
#accountLink[aria-current="page"] { border-color: var(--active); color: var(--active); }
