/* Modules de lecture : hub, VAC, transpondeur, NOTAM, cartes météo, balisage */

.lecture-back {
    margin: 0 0 1.25rem;
}

.lecture-disclaimer {
    color: var(--muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 1.5rem;
}

/* Hub /lecture */
.lecture-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.lecture-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(31, 42, 104, 0.06);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lecture-card:hover {
    box-shadow: 0 6px 18px rgba(31, 42, 104, 0.12);
    transform: translateY(-2px);
}

.lecture-card-icon {
    font-size: 1.9rem;
}

.lecture-card-tag {
    align-self: flex-start;
    background: var(--blue-light);
    border-radius: 999px;
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.6rem;
    text-transform: uppercase;
}

.lecture-card-title {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 700;
}

.lecture-card-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Carte VAC */
.vac-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.vac-chart {
    flex: 1 1 560px;
    min-width: 280px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
}

.vac-title {
    font-size: 17px;
    font-weight: bold;
    fill: var(--navy);
    font-family: monospace;
}

.vac-small {
    font-size: 13px;
    fill: var(--ink);
    font-family: monospace;
}

.vac-bold {
    font-weight: bold;
}

.vac-label {
    font-size: 14px;
    font-weight: bold;
    fill: var(--navy);
}

.vac-rwy {
    font-size: 20px;
    font-weight: bold;
    fill: var(--ink);
    font-family: monospace;
}

.vac-ctr {
    fill: #7a3fb0;
}

.vac-obstacle {
    fill: #b00;
}

.vac-circuit {
    fill: #1a6fb8;
}

.vac-hotspot {
    cursor: pointer;
}

.vac-hotspot-circle {
    fill: var(--blue);
    stroke: var(--white);
    stroke-width: 2;
    transition: fill 0.15s ease, transform 0.15s ease;
}

.vac-hotspot:hover .vac-hotspot-circle,
.vac-hotspot:focus .vac-hotspot-circle,
.vac-hotspot.is-active .vac-hotspot-circle {
    fill: #d35400;
}

.vac-hotspot-num {
    fill: var(--white);
    font-size: 13px;
    font-weight: bold;
    pointer-events: none;
}

.vac-panel {
    flex: 1 1 260px;
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

.vac-panel h2 {
    color: var(--navy);
    font-size: 1.05rem;
    margin: 0 0 0.6rem;
}

.vac-panel p {
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.vac-panel-hint {
    color: var(--muted);
    font-style: italic;
}

.vac-panel-num {
    background: var(--blue);
    border-radius: 50%;
    color: var(--white);
    display: inline-block;
    font-size: 0.85rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    width: 1.5rem;
}

/* Transpondeur */
.squawk-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.squawk-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue);
    border-radius: 8px;
    padding: 1rem 1.1rem;
}

.squawk-card h2 {
    font-size: 0.95rem;
    margin: 0.3rem 0 0.4rem;
}

.squawk-card p {
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.5;
    margin: 0;
}

.squawk-code {
    color: var(--navy);
    font-family: monospace;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    margin: 0;
}

.squawk-urgence {
    border-left-color: #c0392b;
}

.squawk-urgence .squawk-code {
    color: #c0392b;
}

.squawk-special {
    border-left-color: var(--muted);
}

.lecture-notes ul {
    margin: 0;
    padding-left: 1.2rem;
}

.lecture-notes li {
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

/* NOTAM */
.notam-input {
    flex: 1 1 100%;
}

.notam-input textarea {
    font-family: monospace;
    font-size: 0.9rem;
    min-height: 7rem;
    resize: vertical;
    width: 100%;
}

.notam-result {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
}

.notam-result h3 {
    color: var(--navy);
    font-size: 0.95rem;
    margin: 0.8rem 0 0.5rem;
}

.notam-result h3:first-child {
    margin-top: 0;
}

.notam-dl {
    display: grid;
    gap: 0.4rem 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    margin: 0;
}

.notam-dl div {
    display: flex;
    gap: 0.5rem;
}

.notam-dl dt {
    color: var(--muted);
    font-size: 0.85rem;
    min-width: 130px;
}

.notam-dl dd {
    font-weight: 600;
    margin: 0;
}

.notam-legend {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.notam-legend h3 {
    color: var(--navy);
    font-size: 0.9rem;
    margin: 0 0 0.4rem;
}

.notam-legend ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notam-legend li {
    font-size: 0.85rem;
    line-height: 1.7;
}

.notam-legend code,
.qcode-row code {
    background: var(--blue-light);
    border-radius: 4px;
    color: var(--navy);
    font-weight: bold;
    margin-right: 0.4rem;
    padding: 0.1rem 0.35rem;
}

.qcode-table {
    display: grid;
    gap: 0.3rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.qcode-row {
    align-items: baseline;
    display: flex;
    font-size: 0.88rem;
    gap: 0.4rem;
}

/* Cartes météo */
.meteo-symbol-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.meteo-symbol-card {
    background: var(--page);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.9rem 1rem;
}

.meteo-glyph {
    display: block;
    height: 44px;
    margin-bottom: 0.5rem;
    width: 64px;
}

.meteo-symbol-card h3 {
    color: var(--navy);
    font-size: 0.92rem;
    margin: 0 0 0.35rem;
}

.meteo-symbol-card p {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
    margin: 0;
}

/* Balisage */
.sign-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.sign-card {
    background: var(--page);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.9rem 1rem;
}

.sign-svg {
    display: block;
    height: 60px;
    margin-bottom: 0.5rem;
    width: 144px;
}

.sign-card h3 {
    color: var(--navy);
    font-size: 0.92rem;
    margin: 0 0 0.35rem;
}

.sign-card p {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
    margin: 0;
}

.sign-quiz-stage {
    background: var(--page);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.sign-quiz-question {
    font-weight: 600;
    margin: 0.75rem 0;
}

.sign-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sign-option {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    text-align: left;
    transition: background 0.15s ease;
}

.sign-option:hover {
    background: var(--blue-light);
}

.sign-option.is-correct {
    background: #e6f7e9;
    border-color: #2e8b57;
}

.sign-option.is-wrong {
    background: #fdecea;
    border-color: #c0392b;
}

.sign-quiz-footer {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    margin-top: 0.9rem;
}

.sign-quiz-footer .phonetic-score {
    margin: 0;
}

@media (max-width: 720px) {
    .vac-wrapper {
        flex-direction: column;
    }
}

/* Module réservé aux membres */
.lecture-card.is-locked {
    opacity: 0.75;
}

.lecture-card.is-locked .text-link {
    color: #b3540e;
}

.lecture-lock {
    font-size: 0.85rem;
    margin-left: 0.3rem;
}
