:root {
    --night-bg: #05070a;
    --ice-blue: #e6edf3;
    --amber-glow: #e0a96d;
    --muted: #4a5568;
    --border: rgba(224, 169, 109, 0.2);
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: var(--night-bg);
    color: var(--ice-blue);
    font-family: 'Noto Sans', sans-serif;
    margin: 0;
    line-height: 1.8;
    overflow-x: hidden;
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 100;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.75rem;
    margin-left: 15px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a.active { color: var(--amber-glow); font-weight: 600; }
nav a:hover { color: var(--ice-blue); }

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    /* Suppression du gros padding latéral qui écrasait le texte sur petits écrans PC */
    padding: 0 10%; 
    background: linear-gradient(to right, var(--night-bg) 30%, transparent 100%), 
                url('images1.png'); /* Image remplacée */
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px; /* Plus large pour laisser respirer le titre */
}

h1 { 
    font-family: 'Noto Serif Display', serif; 
    font-size: clamp(3rem, 5vw, 4.5rem); /* Titre légèrement grossi */
    font-weight: 300; 
    margin: 0; 
    line-height: 1.1;
}

.tagline {
    display: block;
    margin-top: 20px;
    color: var(--amber-glow);
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* CONTENU PRINCIPAL */
.container { 
    /* Correction du problème "écrasé" : on élargit le conteneur et on réduit le padding interne */
    width: 90%;
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 120px 0; 
}

section { 
    margin-bottom: 120px; 
    border-left: 1px solid var(--border); 
    padding-left: 50px; /* Plus d'espace entre la ligne et le texte */
}

h2 { 
    font-family: 'Noto Serif Display', serif; 
    font-style: italic; 
    font-size: 2rem; 
    font-weight: 300; 
    margin-top: 0;
    margin-bottom: 40px; 
    color: var(--amber-glow); 
}

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

li { 
    margin-bottom: 30px; 
    font-weight: 300; 
    font-size: 1.05rem; /* Texte légèrement plus grand pour la lisibilité PC */
    max-width: 800px; /* Empêche les lignes de devenir trop longues (fatigue visuelle) */
}

li strong { 
    color: var(--ice-blue); 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    display: block; 
    margin-bottom: 8px; 
    letter-spacing: 0.05em;
}

/* IMAGE PLEINE LARGEUR */
.mid-image {
    height: 600px; /* Hauteur augmentée pour PC */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: url('images2.png') center/cover fixed; /* Image remplacée */
    margin-bottom: 120px;
}

.mid-image::after {
    content: ''; 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, var(--night-bg) 0%, transparent 20%, transparent 80%, var(--night-bg) 100%);
}

/* PROTOCOLE & FOOTER */
.protocol { 
    border: 1px solid var(--border); 
    padding: 60px; 
    text-align: center; 
    max-width: 800px;
    margin: 0 auto; /* Centré visuellement */
}

.egg { text-decoration: none; color: inherit; cursor: default; transition: color 0.3s; }
.egg:hover { color: var(--ice-blue); cursor: pointer; }

footer { 
    padding: 100px 0 50px; 
    text-align: center; 
    font-size: 0.75rem; 
    color: var(--muted); 
    text-transform: uppercase; 
    letter-spacing: 0.15em;
}

/* SANCTUARY SPECIFIC */
.rules-box { 
    width: 100%;
    max-width: 600px; 
    margin: 20px; 
    padding: 50px; 
    border: 1px solid var(--amber-glow); 
    background: rgba(224,169,109,0.05); 
    box-sizing: border-box;
}

.btn-telegram { 
    display: inline-block; 
    margin-top: 40px; 
    padding: 18px 35px; 
    border: 1px solid var(--amber-glow); 
    color: var(--amber-glow); 
    text-decoration: none; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}

.btn-telegram:hover { 
    background: var(--amber-glow); 
    color: var(--night-bg); 
}

/* --- VERSION MOBILE --- */
@media screen and (max-width: 768px) {
    
    nav { top: 20px; right: 20px; }
    
    .hero {
        padding: 0 20px;
        background-position: 65% center;
    }

    h1 { font-size: 2.8rem; }
    
    .container {
        width: 100%;
        padding: 60px 20px;
    }

    section {
        padding-left: 20px;
        margin-bottom: 60px;
    }

    li { font-size: 1rem; max-width: 100%; }

    h2 { font-size: 1.5rem; margin-bottom: 25px; }

    .mid-image {
        height: 300px;
        background-attachment: scroll;
        margin-bottom: 60px;
    }

    .protocol { padding: 30px 20px; }
    
    .rules-box {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .rules-box h1 {
        font-size: 1.5rem !important;
        margin-bottom: 30px !important;
    }
}