/* Carte drone : bleu pétrole de carte aéronautique, ambre des avertissements (Palette de Theme.kt). */
:root {
  --petrole: #0F5E7D; --petrole-fonce: #0A3F54; --petrole-nuit: #063547; --ciel: #CBE9F5;
  --ambre: #F2A516; --ambre-fond: #FFE2A8; --sur-ambre: #3A2500; --ambre-texte: #7D5200;
  --fond: #F3F7F9; --surface: #FFFFFF; --texte: #172126; --texte-2: #4A5C65;
  --trait: #D2DDE2; --trait-fort: #7F9099; --lien: #0F5E7D; --puce: #0F5E7D;
  --ombre: 0 1px 2px rgba(10, 63, 84, .08), 0 6px 20px rgba(10, 63, 84, .06);
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0E1417; --surface: #161D21; --texte: #E6EEF1; --texte-2: #A9B9C1;
    --trait: #2F3B41; --trait-fort: #6F8088; --lien: #7CCDEA; --puce: #7CCDEA;
    --ambre-fond: #5C3F08; --sur-ambre: #FFE2A8; --ambre-texte: #F2BE5C; --ombre: none;
  }
}
* { box-sizing: border-box; }
html { background: var(--fond); color-scheme: light dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte);
  font: 17px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.cadre { max-width: 780px; margin: 0 auto; padding: 0 16px; }
a { color: var(--lien); text-underline-offset: 2px; }
a:focus-visible, .bouton:focus-visible { outline: 3px solid var(--ambre); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { letter-spacing: -.015em; line-height: 1.2; }
h2 { font-size: 24px; margin: 0 0 14px; }
h3 { font-size: 18px; margin: 22px 0 6px; }
p, li, dd { overflow-wrap: anywhere; }
section { margin: 44px 0; }
.petit { font-size: 14px; color: var(--texte-2); }

/* Bandeau : dégradé pétrole et graticule, comme une carte aéronautique. */
.bandeau { color: #fff; padding-bottom: 36px;
  background:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(165deg, var(--petrole-nuit), var(--petrole) 75%); }
.bandeau.accueil { padding-bottom: 0;
  background:
    linear-gradient(to bottom, transparent calc(100% - 110px), var(--fond) 0),
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(165deg, var(--petrole-nuit), var(--petrole) 75%); }
.haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 16px 0 8px; }
.marque { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; line-height: 1.15; }
.marque img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.marque small { display: block; color: var(--ambre); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.menu a { color: #DCEBF2; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current] { color: #fff; border-bottom-color: var(--ambre); }
.intro { padding-top: 28px; max-width: 640px; }
.surtitre { margin: 0 0 6px; font-size: 13px; font-weight: 750; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--ambre); }
.bandeau h1 { font-size: clamp(30px, 7.4vw, 46px); margin: 0 0 14px; font-weight: 750; }
.bandeau h1 span { display: block; color: var(--ambre); font-size: .62em; font-weight: 650; margin-top: 8px; letter-spacing: -.01em; }
.chapeau { font-size: 18px; color: #D3E6EE; margin: 0; }
.signature { color: #BFD7E1; font-size: 15px; margin: 0; }
.fil { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-bottom: 10px; }
.fil a { color: #DCEBF2; }
.fil span { color: var(--ambre); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 26px 0 0; }
.bouton { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--ambre); color: #1E1400; font-weight: 700; text-decoration: none; box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.bouton:hover { filter: brightness(1.06); }
.bouton.second { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.note { font-size: 15px; color: #C4DCE6; }
.actions.clair .bouton { background: var(--petrole); color: #fff; }
.actions.clair .note { color: var(--texte-2); }
@media (prefers-color-scheme: dark) { .actions.clair .bouton { background: var(--ambre); color: #1E1400; } }

/* Captures d'écran dans un cadre de téléphone. */
.duo { display: flex; gap: 14px; margin-top: 34px; }
.ecran { margin: 0; flex: 1 1 0; max-width: 260px; }
.ecran img { display: block; width: 100%; height: auto; border-radius: 26px; border: 6px solid #0B2530;
  background: #fff; box-shadow: 0 18px 40px rgba(6, 53, 71, .28); }
.ecran figcaption { font-size: 14px; color: var(--texte-2); margin-top: 10px; text-align: center; }
.cote { display: grid; gap: 24px; }
.cote .ecran { max-width: 240px; justify-self: center; }
@media (min-width: 700px) { .cote { grid-template-columns: 1fr 240px; align-items: start; } }

/* Pastilles de la légende : la couleur des tuiles posée sur du blanc, comme dans l'app. */
.pastille { flex: none; display: inline-block; width: 22px; height: 22px; border-radius: 6px; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(23, 33, 38, .35); }
.pastille.grande { width: 32px; height: 32px; border-radius: 8px; }
.pastille.hachures { background: repeating-linear-gradient(135deg, var(--c) 0 2px, #fff 2px 7px); }
.pastille.vide { background: #fff; }
.legende-mini { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.legende-mini li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--trait); font-weight: 650; font-size: 15px; line-height: 1.2; font-variant-numeric: tabular-nums; }

.grille { display: grid; gap: 12px; }
@media (min-width: 640px) { .grille { grid-template-columns: 1fr 1fr; } }
.carte, .regle { background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: var(--ombre); border: 1px solid var(--trait); }
.carte h3 { margin-top: 0; }
.carte p { margin: 0; color: var(--texte-2); }
.suite a { font-weight: 650; }
.suite a::after { content: " →"; }

.sources { margin: 0 0 16px; }
.sources dt { font-weight: 700; margin-top: 14px; }
.sources dd { margin: 4px 0 0; color: var(--texte-2); }
.ext { white-space: normal; }
.ext svg { vertical-align: -1px; margin-left: 4px; }

/* Avertissement : l'encadré ambre de l'app. */
.alerte { background: var(--ambre-fond); color: var(--sur-ambre); border-radius: 18px; padding: 18px; margin: 0 0 16px; }
.alerte p { margin: 8px 0 0; }
.alerte-titre { display: flex; align-items: center; gap: 10px; margin: 0 !important; font-size: 18px; }

.pastilles-texte { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles-texte a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--trait);
  background: var(--surface); text-decoration: none; font-size: 15px; }

/* Plafond de vol, à l'échelle. */
.plafonds { margin: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: 18px; padding: 18px 14px 14px; box-shadow: var(--ombre); }
.echelle { position: relative; padding-top: 30px; }
.ligne120 { position: absolute; left: 0; right: 0; top: 0; font-size: 13px; font-weight: 650; line-height: 1.3; color: var(--texte-2);
  border-bottom: 2px dashed var(--trait-fort); padding-bottom: 6px; }
.colonnes { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; align-items: flex-end; height: 250px; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; text-align: center; }
.barre { width: 100%; height: calc(var(--h) * 180px); background: var(--c); border-radius: 8px 8px 2px 2px;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 38, .3); }
.col.libre .barre { background: transparent; box-shadow: none; border: 2px dashed var(--trait-fort); border-bottom: 0; }
.col.interdit .barre { height: 12px; border-radius: 2px; }
.col b { font-size: 15px; line-height: 1.2; font-weight: 750; margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col small { font-size: 12px; line-height: 1.2; color: var(--texte-2); min-height: 2.4em; margin-top: 2px; }
.plafonds figcaption { font-size: 14px; color: var(--texte-2); margin-top: 14px; }

.legende { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.legende li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; padding: 14px; }
.legende p { margin: 0; }
.officiel { font-weight: 700; }
.legende .officiel + p { color: var(--texte-2); margin-top: 4px; }

.reponses dt { font-weight: 700; margin-top: 16px; }
.reponses dd { margin: 4px 0 0; color: var(--texte-2); }
.etapes { padding-left: 22px; }
.etapes li { margin: 8px 0; }
.etapes li::marker { color: var(--puce); font-weight: 700; }

/* Règles. */
.sommaire ol { margin: 32px 0 8px; padding: 16px 16px 16px 40px; background: var(--surface); border: 1px solid var(--trait); border-radius: 18px; columns: 2 220px; column-gap: 28px; }
.sommaire li { margin: 4px 0; break-inside: avoid; }
.sommaire li::marker { font-weight: 700; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.regle { margin: 16px 0; scroll-margin-top: 16px; }
.regle h2 { font-size: 21px; margin: 0 0 6px; }
.regle .num { margin: 0 0 4px; font-size: 14px; font-weight: 800; line-height: 1; color: var(--ambre-texte); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.regle ul { padding-left: 20px; margin: 8px 0; }
.regle li::marker { color: var(--puce); }
.src-titre { margin: 14px 0 4px; font-size: 13px; font-weight: 700; color: var(--texte-2); text-transform: uppercase; letter-spacing: .06em; }
.src { list-style: none; padding: 0 !important; margin: 0; font-size: 15px; }
.src li { margin: 4px 0; }
.date { color: var(--texte-2); font-size: 13px; white-space: nowrap; }
.officiels { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.officiels a { display: block; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--trait); text-decoration: none; color: var(--texte); }
.officiels a:hover { border-color: var(--petrole); }
.officiels strong { display: block; color: var(--lien); }
.officiels span { display: block; color: var(--texte-2); font-size: 15px; }

.texte h2 { font-size: 21px; margin: 30px 0 8px; }
code { font: 15px var(--mono); }

/* Guides. */
.guide { margin-top: 32px; }
.guide h2 { margin-top: 38px; }
.guide ul, .guide ol { padding-left: 22px; }
.guide li { margin: 6px 0; }
.guide li::marker { color: var(--puce); }
.reponse { background: var(--surface); border: 1px solid var(--trait); border-left: 6px solid var(--ambre); border-radius: 14px; padding: 16px 18px; box-shadow: var(--ombre); }
.reponse p { margin: 0; font-size: 18px; }
.reponse .reponse-titre { font-size: 13px; font-weight: 800; line-height: 1.4; text-transform: uppercase; letter-spacing: .12em; color: var(--ambre-texte); margin-bottom: 6px; }
.tableau { overflow-x: auto; margin: 16px 0; border: 1px solid var(--trait); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--trait); }
th { background: color-mix(in srgb, var(--petrole) 10%, var(--surface)); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
blockquote { margin: 16px 0; padding: 4px 16px; border-left: 4px solid var(--petrole); color: var(--texte-2); }
.sources-guide ul { padding-left: 20px; font-size: 15px; }
.fin-guide { margin: 40px 0 0; padding: 20px; border-radius: 18px; background: var(--ciel); color: var(--petrole-nuit); }
.fin-guide p { margin: 0 0 4px; }
.fin-guide a:not(.bouton) { color: var(--petrole-nuit); font-weight: 650; }
.fin-guide .actions { margin: 16px 0 12px; }
.fin-guide .actions.clair .note { color: var(--petrole-nuit); }
@media (prefers-color-scheme: dark) {
  .fin-guide { background: #0B4C66; color: #E6EEF1; }
  .fin-guide a:not(.bouton), .fin-guide .actions.clair .note { color: #E6EEF1; }
}

.pied { margin-top: 64px; padding: 28px 0 40px; background: var(--petrole-nuit); color: #C4DCE6; font-size: 15px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.pied a { color: #fff; }
.pied p { margin: 6px 0; }
.pied .petit { color: #9DBBC8; margin-top: 14px; }
