/* Planificateur de vol (aiizon.fr/dcs/planif) - DA "Marquages de pont" : angles droits, pointilles, accent jaune */
.planif { max-width: 1240px; margin: 0 auto; padding: 0 24px 40px; }
.pl-tete h1 { font: 800 clamp(2.2rem, 5.5vw, 3.8rem)/.92 var(--f-titre); text-transform: uppercase; color: var(--creme); margin: 4px 0 10px; }
.pl-tete .etiquette a { color: var(--jaune); text-decoration: none; }
.pl-tete .detail { max-width: 62ch; }

.pl-connexion { margin: 22px 0 18px; border-left: 3px solid var(--jaune); padding: 4px 0 4px 14px; }
.pl-code .pl-ligne { display: flex; gap: 10px; flex-wrap: wrap; }
.pl-code input, .planif input, .planif select, .planif textarea {
  font: 500 1rem var(--f-mono); color: var(--creme); background: rgba(28, 22, 32, .7); border: 1.5px solid rgba(246, 239, 230, .45);
  border-radius: 0; padding: 9px 10px; min-width: 0; }
.planif select { font-family: var(--f-texte); font-size: .92rem; }
.planif textarea { width: 100%; font: 400 .95rem/1.4 var(--f-texte); resize: vertical; }
.pl-code input { width: 13ch; letter-spacing: .12em; text-transform: uppercase; }
.planif input:focus-visible, .planif select:focus-visible, .planif textarea:focus-visible, .planif button:focus-visible { outline: 2px dashed var(--jaune); outline-offset: 2px; }
.pl-aide { font-size: .85rem; max-width: 70ch; }
.pl-moi { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pl-moi .etiquette { margin: 0; color: var(--vert); }
.pl-moi strong { font: 700 1.25rem/1 var(--f-titre); text-transform: uppercase; }
.pl-msg { min-height: 1.3em; margin-top: 8px; font: 500 .78rem/1.3 var(--f-mono); letter-spacing: .06em; color: var(--creme-2); }
.pl-msg.erreur { color: var(--rouge); }
.pl-lien { background: none; border: 0; padding: 4px 0; color: var(--jaune); font: 500 .74rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; text-decoration: underline dashed; text-underline-offset: 4px; }
.bouton.pl-petit { font-size: .8rem; padding: 9px 13px; }
.bouton:disabled { opacity: .4; cursor: not-allowed; }
.bouton.danger { border-color: var(--rouge); color: var(--rouge); } .bouton.danger:hover { background: var(--rouge); color: var(--pont); }

.pl-grille { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 26px; align-items: start; }
.pl-carte-bloc { position: sticky; top: 92px; }
.pl-carte { position: relative; border: 1.5px dashed rgba(246, 239, 230, .3); background: #140f17; touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; cursor: grab; }
.pl-carte.edition { cursor: crosshair; border-color: var(--jaune); }
.pl-carte svg { display: block; width: 100%; height: auto; }
.pl-carte .mer { fill: #140f17; }
.pl-carte .quadrillage line { stroke: rgba(246, 239, 230, .06); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.pl-carte .terre path { fill: #3a2a35; }
.pl-carte .territoires { mix-blend-mode: screen; }
.pl-carte .frontieres path { fill: none; stroke: rgba(246, 239, 230, .28); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.pl-carte .lacs path { fill: #140f17; stroke: rgba(242, 220, 205, .35); stroke-width: .6; vector-effect: non-scaling-stroke; }
.pl-carte .cotes path { fill: none; stroke: rgba(242, 220, 205, .7); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.pl-carte .zone:not(.fob):not(.farp) .forme { stroke: #140f17; stroke-width: 1.2; }
.pl-carte .zone .piste { stroke: #140f17; stroke-width: 1.5; }
.pl-carte .nom-zone { font-family: var(--f-mono); font-weight: 500; letter-spacing: .06em; fill: var(--creme); paint-order: stroke; stroke: #140f17; pointer-events: none; }
.pl-carte .route .trait { fill: none; stroke: var(--jaune); stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.pl-carte .route .trait { stroke-width: 2.2; }
.pl-carte .wp circle { fill: #1c1620; stroke: var(--jaune); stroke-width: 2; }
.pl-carte .wp.depart circle { fill: var(--jaune); }
.pl-carte .wp text { font: 700 10px var(--f-mono); fill: var(--jaune); pointer-events: none; }
.pl-carte .wp.depart text { fill: #1c1620; }
.pl-zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.pl-zb { width: 40px; height: 40px; font: 700 1.3rem/1 var(--f-titre); color: var(--creme); background: rgba(28, 22, 32, .88); border: 1.5px solid rgba(246, 239, 230, .6); cursor: pointer; }
.pl-zb:hover { background: var(--creme); color: var(--pont); }
.pl-astuce { font: 500 .66rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--creme-2); margin-top: 8px; }
.pl-carte-bloc .maj { margin-top: 6px; }

.pl-panneau { background: rgba(28, 22, 32, .88); border: 1.5px dashed rgba(246, 239, 230, .28); padding: 18px; min-width: 0; }
.pl-panneau .etiquette { margin-top: 18px; }
.pl-titre-ligne { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pl-titre-ligne .etiquette { margin: 0; }
.pl-vols { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.pl-vols .vide, .pl-route .vide { color: var(--creme-2); font-size: .92rem; list-style: none; }
.pl-vol { width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid var(--jaune); padding: 6px 0 6px 12px; color: var(--creme); cursor: pointer; display: grid; gap: 3px; }
.pl-vol:hover { background: rgba(246, 239, 230, .06); }
.pl-vol strong { font: 700 1.3rem/1 var(--f-titre); text-transform: uppercase; }
.pl-vol span { font-size: .86rem; color: var(--creme-2); }
.pl-vol .pl-places-court { font: 500 .7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.pl-note { font-size: .8rem; margin-top: 16px; }

.pl-retour { margin-bottom: 6px; }
.pl-indicatif { font: 800 2.2rem/.95 var(--f-titre); text-transform: uppercase; color: var(--creme); }
.pl-notes { margin-top: 8px; border-left: 2px solid rgba(246, 239, 230, .4); padding-left: 10px; color: var(--creme-2); white-space: pre-wrap; }
.pl-places, .pl-route { list-style: none; display: grid; gap: 6px; counter-reset: n; }
.pl-places li, .pl-route li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 5px 0; border-bottom: 1px dashed rgba(246, 239, 230, .18); counter-increment: n; }
.pl-places:not(.pl-places-edit) li::before, .pl-route:not(.pl-route-edit) li::before { content: counter(n); font: 500 .72rem var(--f-mono); color: var(--jaune); min-width: 1.4em; }
.pl-places strong, .pl-route strong { font: 700 1.02rem/1.1 var(--f-titre); text-transform: uppercase; letter-spacing: .03em; }
.pl-places span, .pl-route span { font-size: .85rem; color: var(--creme-2); }
.pl-route .pl-coord { font: 500 .78rem var(--f-mono); color: var(--creme); }
.pl-telech { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-mode-emploi { margin-top: 14px; font-size: .86rem; color: var(--creme-2); }
.pl-mode-emploi summary { cursor: pointer; font: 500 .72rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--jaune); }
.pl-mode-emploi ul { margin: 8px 0 0 18px; display: grid; gap: 6px; }
.pl-mode-emploi code, .pl-partage code { font: 500 .78rem var(--f-mono); color: var(--creme); word-break: break-all; }
.pl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.pl-partage { margin-top: 14px; font-size: .82rem; }

.pl-champs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 8px; }
.pl-champs label, .pl-bloc { display: grid; gap: 4px; font: 500 .64rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--creme-2); }
.pl-bloc { margin-top: 10px; }
.pl-compte { color: var(--creme-2); letter-spacing: .1em; }
.pl-route-edit li, .pl-places-edit li { flex-wrap: wrap; align-items: center; gap: 6px; }
.pl-route-edit input { font-size: .86rem; padding: 6px 6px; }
.pl-num { font: 500 .72rem var(--f-mono); color: var(--jaune); min-width: 1.4em; }
.pl-route-edit .pl-nom { width: 11ch; text-transform: uppercase; }
.pl-chiffres { display: inline-flex; align-items: center; gap: 5px; }
.pl-route-edit .pl-alt { width: 7.5ch; } .pl-route-edit .pl-vit { width: 5.5ch; }
.pl-unite { font: 500 .66rem var(--f-mono); }
.pl-sol { font: 500 .66rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--creme-2); display: inline-flex; align-items: center; gap: 3px; }
.pl-outils { margin-left: auto; display: inline-flex; gap: 4px; }
.pl-mini { width: 30px; height: 30px; background: none; border: 1.5px solid rgba(246, 239, 230, .45); color: var(--creme); cursor: pointer; font: 500 .9rem var(--f-mono); }
.pl-mini:hover:not(:disabled) { background: var(--creme); color: var(--pont); }
.pl-mini:disabled { opacity: .3; cursor: default; }
.pl-places-edit li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pl-choix { display: grid; gap: 6px; min-width: 0; }
.pl-choix select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.planif input[type=number] { -moz-appearance: textfield; }
.planif input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--jaune); }

@media (max-width: 900px) {
  .pl-grille { grid-template-columns: 1fr; }
  .pl-carte-bloc { position: static; }
  /* edition sur telephone : la carte reste visible sous le menu pendant qu'on remplit la route */
  .pl-grille.edition .pl-carte-bloc { position: sticky; top: 76px; z-index: 5; background: #140f17; }
  .pl-grille.edition .pl-astuce, .pl-grille.edition .pl-carte-bloc .maj { display: none; }
}
@media (max-width: 540px) {
  .planif { padding: 0 16px 32px; }
  .pl-champs { grid-template-columns: 1fr 1fr; }
  .pl-champs label:first-child { grid-column: 1 / -1; }
  .pl-panneau { padding: 14px; }
  .pl-outils { margin-left: 0; }
}
.pl-route .pl-alerte { flex-basis: 100%; font: 500 .7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rouge); }
/* page outil : le menu garde un fond pour que rien ne passe dessous au defilement */
.page-planif .nav { background: #1c1620; border-bottom: 1.5px dashed rgba(246, 239, 230, .2); }
/* suivi en direct */
.pl-carte .avion .fleche { fill: var(--jaune); stroke: #140f17; stroke-width: 1.2; }
.pl-carte .avion .etiq { font: 600 10px var(--f-mono); fill: var(--jaune); paint-order: stroke; stroke: #140f17; stroke-width: 3px; pointer-events: none; }
.pl-carte .avion:not(.courant) .fleche { fill: #6cc4ff; } .pl-carte .avion:not(.courant) .etiq { fill: #6cc4ff; }
.pl-vol .pl-envol, .pl-direct .detail { color: var(--vert); font: 500 .7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.pl-direct { margin-top: 12px; border-left: 3px solid var(--vert); padding: 4px 0 4px 12px; display: grid; gap: 4px; }
.pl-direct-ligne strong { font: 700 1rem/1.1 var(--f-titre); text-transform: uppercase; color: var(--vert); }
.pl-direct-ligne span { font: 500 .78rem var(--f-mono); color: var(--creme); }
