/* 
    STYLE.CSS - Design PREMIUM & IMMERSIF (Version Restaurée & Améliorée)
    Thème : Berlin Moderne, High-End, Glassmorphism
*/

/* Google Fonts - Montserrat (Titres), Poppins (Corps) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-black: #0a0a0a;
    --berlin-red: #e30613;
    --berlin-gold: #ffcc00;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-grey: #a0a0a0;
    --bg-dark: #0f0f0f;
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8; /* Augmenté pour meilleure lisibilité */
    color: var(--text-white);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem; /* Ajout d'espace sous les titres */
}

p {
    margin-bottom: 1.5rem; /* Ajout d'espace entre les paragraphes */
}

/* SCROLL PROGRESS BAR */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--berlin-red), var(--berlin-gold));
    z-index: 2000;
    transition: width 0.1s ease;
}

/* NAVIGATION PREMIUM */
header {
    background: transparent;
    color: var(--white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-slow);
    padding: 1.5rem 0;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

header.hidden {
    transform: translateY(-100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(45deg, var(--white), var(--berlin-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--berlin-gold);
}

/* HERO SECTION SPECTACULAIRE */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--bg-dark) 100%);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 0.9;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    color: var(--text-grey);
    margin-bottom: 2.5rem;
}

/* SECTIONS */
.section {
    padding: 10rem 0; /* Plus d'espace entre les sections */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: attr(data-subtitle);
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-size: 0.8rem;
    color: var(--berlin-red);
    letter-spacing: 4px;
}

/* CARTES PREMIUM (GLASSMORPHISM) */
.card-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.premium-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-slow);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.premium-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--berlin-gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-img-wrapper {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.premium-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-content {
    padding: 2.5rem;
    background: linear-gradient(to top, var(--primary-black), transparent);
}

/* TIMELINE VOYAGE */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.log-entry {
    padding: 3rem 4rem; /* Plus d'espace interne */
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    width: 45%;
    margin-bottom: 6rem; /* Plus d'espace entre les entrées */
    transition: var(--transition-slow);
    opacity: 0; /* Géré par AOS */
}

.log-entry.aos-animate {
    opacity: 1;
}

.log-entry:nth-child(odd) { left: 0; }
.log-entry:nth-child(even) { left: 55%; }

.log-entry::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--berlin-red);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    top: 2rem;
    z-index: 1;
}

.log-entry:nth-child(odd)::after { right: -42px; }
.log-entry:nth-child(even)::after { left: -42px; }

.log-entry:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.03);
}

.log-date {
    color: var(--berlin-red);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

/* IMAGES DES ARTICLES - UNIFORMITÉ */
.log-content p {
    margin-bottom: 1.2rem;
    line-height: 1.9; /* Encore un peu plus d'air pour le contenu du blog */
}

.log-content p:last-child {
    margin-bottom: 0;
}

.log-media {
    margin-top: 3rem; /* Plus d'espace au dessus de l'image */
    border-radius: 10px;
    overflow: hidden;
    height: 400px; /* Un peu plus grand pour le premium */
    width: 100%;
}

.log-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit tout l'espace proprement */
    display: block;
}

/* BOUTONS MODERNES */
.btn-premium {
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary-black);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-premium:hover {
    background: var(--berlin-gold);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.3);
}

/* BACK TO TOP */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--berlin-red);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

#back-to-top:hover {
    transform: translateY(-5px);
    background: var(--berlin-gold);
}

/* ADMIN PANEL STYLES (Adaptés au design Premium - Dark Mode) */
.admin-container {
    padding-top: 100px;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-white);
}

.admin-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.admin-card h2 {
    color: var(--berlin-gold);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-grey);
    font-size: 0.9rem;
}

.admin-input, .admin-textarea, .admin-select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255,255,255,0.05);
    color: white;
    transition: var(--transition-fast);
}

.admin-input:focus, .admin-textarea:focus, .admin-select:focus {
    outline: none;
    border-color: var(--berlin-gold);
    background: rgba(255,255,255,0.1);
}

.entry-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.entry-list-item:hover {
    background: rgba(255,255,255,0.03);
}

.entry-list-item:last-child {
    border-bottom: none;
}

/* PREVISUALISATION IMAGE */
#image-preview {
    margin-top: 1rem;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    border: 1px solid var(--glass-border);
}

#image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* FOOTER PREMIUM */
footer {
    padding: 6rem 0;
    border-top: 1px solid var(--glass-border);
    background: var(--primary-black);
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .timeline::after { left: 30px; }
    .log-entry { width: 90%; left: 60px !important; }
    .log-entry::after { left: -40px !important; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .card-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 4rem; }
}
