/* ================================================================
   Stylemenu.css — Thème aviation
   Utilisé par : index.php, flashcard*.html, Quiz1.html, menu.html
   ================================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
    --space:      #07080F;
    --night:      #0D1929;
    --horizon:    #0F1E35;
    --sky-blue:   #3B9EF5;
    --amber:      #F5A623;
    --cloud:      #E8F4FD;
    --muted:      #7A9AB5;
    --card-bg:    #0A1525;
    --card-bdr:   rgba(59, 158, 245, 0.15);
    --font-disp:  'Rajdhani', sans-serif;
    --font-body:  'Inter', sans-serif;
}

/* ── Reset minimal ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ────────────────────────────────────────────────────────────
   NAVBAR PRINCIPALE (index.php)
   ──────────────────────────────────────────────────────────── */
.nav-main {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    height: 60px;
    background: rgba(7, 8, 15, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(59, 158, 245, 0.1);
}

.nav-brand {
    font-family: var(--font-disp);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cloud);
    text-decoration: none;
    letter-spacing: 0.04em;
}
.nav-brand span { color: var(--sky-blue); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--cloud); }

.nav-admin {
    font-size: 0.78rem;
    padding: 5px 14px;
    border: 1px solid rgba(59, 158, 245, 0.25);
    border-radius: 5px;
    color: var(--sky-blue) !important;
}
.nav-admin:hover { background: rgba(59, 158, 245, 0.08); }

/* ────────────────────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────────────────────── */
.hero {
    min-height: 82vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    padding: 4rem 5vw;
    background:
        radial-gradient(ellipse at 72% 50%, rgba(59, 158, 245, 0.07) 0%, transparent 65%),
        radial-gradient(ellipse at 20% 85%, rgba(245, 166, 35, 0.04) 0%, transparent 55%),
        var(--space);
}

.hero-eyebrow {
    font-family: var(--font-disp);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-disp);
    font-size: clamp(2.4rem, 4.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--cloud);
    margin-bottom: 1.2rem;
}
.hero-title em {
    font-style: normal;
    color: var(--sky-blue);
}

.hero-desc {
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Boutons ─────── */
.btn-hero-primary,
.btn-hero-secondary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 7px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.btn-hero-primary {
    background: var(--sky-blue);
    color: #fff;
}
.btn-hero-primary:hover {
    background: #5AADFF;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}
.btn-hero-secondary {
    background: transparent;
    color: var(--cloud);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--cloud);
    text-decoration: none;
}

/* Logo hero */
.hero-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo {
    width: 100%;
    max-width: 430px;
    animation: float 7s ease-in-out infinite;
    filter: drop-shadow(0 0 50px rgba(59, 158, 245, 0.13));
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-14px); }
}

/* ────────────────────────────────────────────────────────────
   SECTION CATÉGORIES
   ──────────────────────────────────────────────────────────── */
.section-categories {
    padding: 5rem 5vw 6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-eyebrow {
    font-family: var(--font-disp);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sky-blue);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-disp);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cloud);
}

/* ── Grid de cartes ─────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.plane-card {
    background: var(--card-bg);
    border: 1px solid var(--card-bdr);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.plane-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 158, 245, 0.42);
    box-shadow: 0 12px 40px rgba(59, 158, 245, 0.1);
    color: inherit;
    text-decoration: none;
}

/* Trait "piste d'atterrissage" au survol */
.plane-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.plane-card:hover::after { opacity: 1; }

/* Badge callsign (FL001, FL002…) */
.card-callsign {
    position: absolute;
    top: 10px; right: 10px;
    font-family: var(--font-disp);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--amber);
    background: rgba(7, 8, 15, 0.72);
    border: 1px solid rgba(245, 166, 35, 0.28);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Image de la carte */
.card-img-wrap {
    height: 172px;
    background: var(--night);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.1rem;
    transition: transform 0.35s;
}
.plane-card:hover .card-img-wrap img {
    transform: scale(1.06);
}

/* Corps de la carte */
.card-body-custom {
    padding: 1.2rem 1.4rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-title-custom {
    font-family: var(--font-disp);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cloud);
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
}
.card-desc-custom {
    color: var(--muted);
    font-size: 0.855rem;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 1rem;
}
.card-cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sky-blue);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.card-cta::after {
    content: '→';
    transition: transform 0.2s;
}
.plane-card:hover .card-cta::after {
    transform: translateX(4px);
}

/* Erreur DB */
.db-notice {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(245, 166, 35, 0.06);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 8px;
    color: var(--amber);
    font-size: 0.85rem;
}

/* ────────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────────── */
.footer-main {
    background: var(--night);
    border-top: 1px solid rgba(59, 158, 245, 0.07);
    padding: 2.5rem 5vw;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-brand {
    font-family: var(--font-disp);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cloud);
}
.footer-brand span { color: var(--sky-blue); }
.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0; margin: 0;
}
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--cloud); }
.footer-copy {
    width: 100%;
    text-align: center;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 1.5rem;
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding: 3rem 5vw 4rem;
    }
    .hero-desc  { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .hero-logo-wrap { order: -1; }
    .hero-logo  { max-width: 270px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .cards-grid  { grid-template-columns: 1fr; }
    .nav-links   { gap: 1.2rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ────────────────────────────────────────────────────────────
   CLASSES PARTAGÉES — Flashcards & Quiz (rétrocompat.)
   ──────────────────────────────────────────────────────────── */
.flashcard {
    width: 50%;
}

#flash {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.1s ease;
}

#confetti-canvas {
    position: fixed;
    z-index: 999;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
}

.score    { font-size: 50px; }
.textscore { color: aliceblue; }
.txt      { color: darkgreen; }
.body     { background-color: rgb(41, 41, 41); }

/* Anciens sélecteurs Bootstrap conservés pour les autres pages */
.bloc-head { background-color: rgb(221, 239, 239); }
.logo      { width: 100%; }
.buttom    { background-color: blue; }
