/* Variables de couleur pour la charte graphique */
:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2d2d2d;
    --tertiary-dark: #404040;
    --light-gray: #6a6a6a;
    --medium-gray: #505050;
    --accent-orange: #ff8c00;
    --accent-orange-hover: #ff7700;
    --accent-orange-light: rgba(255, 140, 0, 0.1);
    --text-white: #ffffff;
    --text-light-gray: #e0e0e0;
    --text-medium-gray: #b0b0b0;
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --shadow-darker: rgba(0, 0, 0, 0.6);
}

/* Reset et base */
html,
body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    color: var(--text-light-gray);
    min-height: 100vh;
    line-height: 1.6;
}

/* Conteneur du fond d'écran flouté */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: url('../img/background.webp') no-repeat center center fixed;
    background-size: cover;
    filter: blur(var(--blur-intensity, 0px));
}

.background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(26, 26, 26, 0.1) 0%, 
        rgba(26, 26, 26, 0.3) 50%, 
        rgba(26, 26, 26, 0.5) 100%);
}

/* Conteneur principal */
.main-container {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Titre principal */
.page-title {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title h1 {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-white);
    margin: 0;
    text-shadow: 2px 2px 4px var(--shadow-dark);
    position: relative;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
}

/* Conteneur de contenu */
.content-container {
    background: linear-gradient(135deg, 
        rgba(45, 45, 45, 0.95) 0%, 
        rgba(26, 26, 26, 0.95) 100%);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px var(--shadow-darker);
    border: 1px solid rgba(255, 140, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Sections */
.section {
    margin-bottom: 3rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section h2 {
    color: var(--accent-orange);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 140, 0, 0.3);
    position: relative;
}

.section h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 400;
    margin: 2rem 0 1rem 0;
}

.section p {
    color: var(--text-light-gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.section ul {
    color: var(--text-light-gray);
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.section li {
    margin-bottom: 0.8rem;
    position: relative;
}

.section li::before {
    content: '▸';
    color: var(--accent-orange);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Liens dans le contenu */
.content-container a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.content-container a:hover {
    color: var(--accent-orange-hover);
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.3);
}

.content-container a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.content-container a:hover::after {
    width: 100%;
}

/* Bouton de retour */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium-gray);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid rgba(255, 140, 0, 0.2);
    transition: all 0.3s ease;
}

.back-button:hover {
    color: var(--accent-orange);
    background: rgba(255, 140, 0, 0.1);
    border-color: var(--accent-orange);
    transform: translateX(-5px);
}

.back-button::before {
    content: '←';
    font-size: 1.2rem;
}

/* Media queries */
@media screen and (max-width: 768px) {
    
    .main-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .content-container {
        padding: 2rem 1.5rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .section h3 {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .content-container {
        padding: 1.5rem 1rem;
    }
    
    .section h2 {
        font-size: 1.3rem;
    }
    
    .section ul {
        margin-left: 1rem;
    }
}