/* =====================================================
   NEXUS URANOS — main.css v1.1.0
   Mise en page centrée — 1 bouton — vaisseau centré
   ===================================================== */

/* ── VARIABLES ──────────────────────────────────────── */
:root {
    --color-bg-main:       #071B4D;
    --color-bg-secondary:  #0B2A6F;
    --color-text-main:     #FFFFFF;
    --color-text-muted:    #EAF2FF;
    --color-accent:        #44DDFF;
    --color-accent-green:  #00FF88;
    --color-warning:       #FFD447;
    --color-danger:        #FF4D4D;
    --color-btn-primary:   #C0392B;
    --color-btn-hover:     #E74C3C;

    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 6px;
    --transition: 0.2s ease;
    --max-content: 860px;
    --max-site: 1280px;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ── LIEN D'ÉVITEMENT ───────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-accent);
    color: #000;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    z-index: 9999;
    text-decoration: none;
    transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* ── FOND DE PAGE — TOUTES LES PAGES ───────────────── */
body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    min-height: 100vh;
    background-color: var(--color-bg-main);
    background-image: url('../images/space-background.webp');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Overlay bleu sombre — lisibilité parfaite */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 27, 77, 0.70) 0%,
        rgba(7, 27, 77, 0.60) 40%,
        rgba(7, 27, 77, 0.78) 100%
    );
    z-index: 0;
    pointer-events: none;
}

body > * {
    position: relative;
    z-index: 1;
}

/* ── TYPOGRAPHIE GLOBALE ────────────────────────────── */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover, a:focus { color: #fff; }

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }

/* ── HEADER / NAVIGATION ────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #030f28;
    border-bottom: 3px solid #44DDFF;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.80),
                0 0 60px rgba(68, 221, 255, 0.08);
}

/* ── Barre admin WordPress (32px desktop / 46px mobile) ── */
.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.nexus-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-site);
    margin: 0 auto;
    padding: 0.85rem 2rem;
    min-height: 64px;
}

.nexus-nav__logo {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nexus-nav__logo:hover,
.nexus-nav__logo:focus { color: #44DDFF; }

.nexus-nav__links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.nexus-nav__links a {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #cce8ff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 4px;
    border: 1px solid rgba(68, 221, 255, 0.22);
    background: rgba(68, 221, 255, 0.06);
    transition: all 0.18s ease;
}
.nexus-nav__links a:hover,
.nexus-nav__links a:focus {
    color: #44DDFF;
    background: rgba(68, 221, 255, 0.14);
    border-color: rgba(68, 221, 255, 0.55);
    box-shadow: 0 0 14px rgba(68, 221, 255, 0.20);
}
.nexus-nav__links a[aria-current="page"] {
    color: #44DDFF;
    background: rgba(68, 221, 255, 0.12);
    border-color: #44DDFF;
}

/* ── BURGER BUTTON (caché sur desktop) ─────────────── */
.nexus-nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid rgba(68, 221, 255, 0.30);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    transition: border-color var(--transition);
    aria-label: "Menu";
}
.nexus-nav__burger:hover,
.nexus-nav__burger:focus {
    border-color: var(--color-accent);
    outline: none;
}
.burger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text-main);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nexus-nav__burger[aria-expanded="true"] .burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nexus-nav__burger[aria-expanded="true"] .burger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nexus-nav__burger[aria-expanded="true"] .burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.nexus-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

/* Canvas étoiles — tout en arrière */
#nexus-stars-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Contenu centré au-dessus */
.nexus-hero__inner {
    position: relative;
    z-index: 10;
    max-width: var(--max-content);
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

/* Bandeau */
.nexus-hero__eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--color-accent);
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(68, 221, 255, 0.30);
    border-radius: 20px;
    background: rgba(68, 221, 255, 0.07);
}

/* ── VAISSEAU CENTRÉ ────────────────────────────────── */
.nexus-hero__ship-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    flex-shrink: 0;
}

.nexus-hero__ship-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(192, 57, 43, 0.28) 0%,
        rgba(192, 57, 43, 0.10) 45%,
        transparent 70%
    );
    animation: nexus-pulse 2.8s ease-in-out infinite;
}

#nexus-ship-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

@keyframes nexus-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.97); }
    50%       { opacity: 1;   transform: scale(1.06); }
}

/* ── TITRES ─────────────────────────────────────────── */
.nexus-hero__title {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.7);
}

.nexus-hero__title-highlight {
    display: block;
    color: var(--color-accent);
    font-size: clamp(2rem, 5vw, 3.6rem);
    text-shadow: 0 0 40px rgba(68, 221, 255, 0.4);
}

/* ── SOUS-TITRE ─────────────────────────────────────── */
.nexus-hero__subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.08rem);
    color: var(--color-text-muted);
    line-height: 1.75;
    max-width: 680px;
    text-shadow: 0 1px 12px rgba(0,0,0,0.85);
}

/* ── INTRO ──────────────────────────────────────────── */
.nexus-hero__intro {
    font-size: clamp(0.85rem, 1.4vw, 0.93rem);
    color: rgba(234, 242, 255, 0.82);
    line-height: 1.85;
    max-width: 680px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.9);
    border-left: 2px solid rgba(68, 221, 255, 0.35);
    padding-left: 1rem;
    text-align: left;
}

/* ── BOUTON UNIQUE ──────────────────────────────────── */
.nexus-hero__cta {
    margin-top: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--color-btn-primary);
    color: #fff;
    box-shadow: 0 4px 24px rgba(192, 57, 43, 0.45);
}
.btn--primary:hover,
.btn--primary:focus {
    background: var(--color-btn-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(192, 57, 43, 0.60);
}

/* ── NOTE LANCEMENT ─────────────────────────────────── */
.nexus-hero__launch {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(68, 221, 255, 0.65);
    text-transform: uppercase;
}

/* ── ZONE PLUGIN ────────────────────────────────────── */
.nexus-plugin-zone {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: var(--max-site);
    margin: 0 auto;
}

/* ── PAGES INTERNES ─────────────────────────────────── */
.nexus-page-content {
    position: relative;
    z-index: 10;
    max-width: var(--max-content);
    margin: 8rem auto 4rem;
    padding: 2.5rem;
    background: rgba(7, 27, 77, 0.65);
    border: 1px solid rgba(68, 221, 255, 0.12);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

.nexus-page-content h1 { font-size: 2rem; color: #fff; margin-bottom: 1rem; }
.nexus-page-content h2 { font-size: 1.5rem; color: #fff; margin: 2rem 0 0.75rem; }
.nexus-page-content h3 { font-size: 1.2rem; color: var(--color-accent); margin: 1.5rem 0 0.5rem; }
.nexus-page-content p  { color: var(--color-text-muted); line-height: 1.8; margin-bottom: 1rem; }

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(68, 221, 255, 0.07);
    background: rgba(7, 27, 77, 0.65);
    backdrop-filter: blur(6px);
}

.nexus-footer__text {
    font-size: 0.73rem;
    color: rgba(234, 242, 255, 0.70); /* corrigé : 0.40 → 0.70 pour WCAG AA */
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.nexus-footer__links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    list-style: none;
    margin-bottom: 0.6rem;
}

.nexus-footer__links a {
    font-size: 0.70rem;
    color: rgba(68, 221, 255, 0.75); /* corrigé : 0.45 → 0.75 pour WCAG AA */
    transition: color var(--transition);
    text-decoration: none;
}
.nexus-footer__links a:hover,
.nexus-footer__links a:focus { color: var(--color-accent); }

.nexus-footer__credit {
    font-size: 0.68rem;
    color: rgba(234, 242, 255, 0.45);
    margin-top: 0.4rem;
    letter-spacing: 0.3px;
}

.nexus-footer__credit a {
    color: rgba(68, 221, 255, 0.60);
    text-decoration: none;
    transition: color var(--transition);
}
.nexus-footer__credit a:hover,
.nexus-footer__credit a:focus {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-main); }
::-webkit-scrollbar-thumb { background: rgba(68,221,255,0.2); border-radius: 3px; }

/* ── PREFERS-REDUCED-MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
