/* =========================================
   1. VARIABLES & RESET (Style Sirena)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Orbitron:wght@500;700&family=Rajdhani:wght@500;700&display=swap');

:root {
    --bg-deep: #000000;
    --bg-panel: rgba(20, 20, 25, 0.6);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #172033 0%, #000 50%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* =========================================
   3. GLOBAL
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    color: transparent;
}

/* Boutons */
.btn,
.btn-glow {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary), #2563eb);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
    border: 1px solid transparent;
    margin-top: 10px;
    cursor: pointer;
}

.btn:hover,
.btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--primary);
}

.btn-outline {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: white;
    background: rgba(59, 130, 246, 0.1);
}

/* =========================================
   4. DASHBOARD (Widgets)
   ========================================= */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.widget {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.widget h3 {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Calendrier */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.day-name {
    color: var(--primary);
    font-weight: bold;
    font-size: 0.8rem;
}

.day-num {
    padding: 8px;
    color: var(--text-muted);
    border-radius: 6px;
    transition: 0.2s;
}

.day-num:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.day-num.today {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 10px var(--primary-glow);
    font-weight: bold;
}

.calendar-header {
    text-align: center;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    text-transform: capitalize;
}

/* Météo */
.weather-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.temp {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
}

.weather-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 2px 0;
}

/* =========================================
   5. PAGE ACCUEIL
   ========================================= */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 30px;
}

/* Glass Card */
.glass-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 16px;
    transition: 0.3s;
}

.glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Timeline */
.timeline-item {
    border-left: 2px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.date {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* =========================================
   6. PAGE PLANETERY
   ========================================= */
body.planet-theme {
    font-family: 'Rajdhani', sans-serif;
    background: #000;
}

body.planet-theme h1,
body.planet-theme h2,
body.planet-theme h3 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

body.planet-theme .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('img/planet.jpg') no-repeat center center/cover;
}

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

.planet-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border: 1px solid var(--border);
    text-align: center;
    border-radius: 12px;
    transition: 0.3s;
}

.planet-card:hover {
    border-color: #d946ef;
    background: rgba(217, 70, 239, 0.1);
    transform: scale(1.05);
}

.planet-card.special {
    border-color: #d946ef;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.3);
    grid-column: span 2;
}

/* =========================================
   7. PAGE CHERBOURG
   ========================================= */
body.cherbourg-theme {
    font-family: 'Open Sans', sans-serif;
    background: #0a0a0a;
}

body.cherbourg-theme .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('https://cdn.pixabay.com/photo/2016/11/14/15/13/black-1823790_960_720.jpg') no-repeat center center/cover;
}

body.cherbourg-theme .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.content-grid.reverse .text-block {
    order: 2;
}

.content-grid.reverse .image-block {
    order: 1;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    margin-top: 30px;
}

.sport-gallery {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.sport-gallery img {
    height: 120px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
}

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .content-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .content-grid.reverse .text-block {
        order: 1;
    }

    .content-grid.reverse .image-block {
        order: 2;
    }

    .planet-card.special {
        grid-column: span 1;
    }
}

/* SECTION LÉGALE */
.legal-section {
    padding: 40px 0;
    background: #000;
}

.legal-box {
    padding: 25px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.05);
}

.legal-divider {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 15px 0;
}