/* ===== STYLE UNIFIÉ POUR TOUS LES DOCUMENTS DE RÈGLEMENT KASABA'BOOK ===== */

:root {
    --primary-color: linear-gradient(to right, #efc75e, #fff, #efc75e);
    --secondary-color: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --background-color: #0a0a0a;
    --accent-color: #efc75e;
    --border-color: #1e4620;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ===== RÉINITIALISATION ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(239, 199, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(239, 199, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(26, 70, 32, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== BOUTON DE RETOUR ===== */
.back-link {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--secondary-color);
}

.back-link i {
    font-size: 1.1em;
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

/* ===== EN-TÊTE ===== */
.header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: var(--primary-color);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(239, 199, 94, 0.3);
}

.header .subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ===== SECTIONS ===== */
.section {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 199, 94, 0.2);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(239, 199, 94, 0.4);
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section h2 i {
    font-size: 1.8rem;
    background: var(--primary-color);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section h3 {
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
    color: var(--accent-color);
    font-weight: 600;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

/* ===== LISTES ===== */
ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin-bottom: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid transparent;
    transition: var(--transition);
    position: relative;
}

li:hover {
    background: rgba(239, 199, 94, 0.1);
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}

li strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* ===== PARAGRAPHES ===== */
p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

p strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* ===== LIENS ===== */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

a:hover {
    color: #fff;
    border-bottom-color: var(--accent-color);
}

/* ===== BOÎTES D'ALERTE ===== */
.warning, .info, .success, .danger {
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
    border-left: 5px solid;
    position: relative;
    backdrop-filter: blur(10px);
}

.warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--warning-color);
    color: #ffd700;
}

.info {
    background: rgba(23, 162, 184, 0.1);
    border-color: var(--info-color);
    color: #4dd0e1;
}

.success {
    background: rgba(40, 167, 69, 0.1);
    border-color: var(--success-color);
    color: #69f0ae;
}

.danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: var(--danger-color);
    color: #ff8a80;
}

.warning i, .info i, .success i, .danger i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* ===== TABLEAUX ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 15px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(239, 199, 94, 0.2);
}

th {
    background: rgba(239, 199, 94, 0.1);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

tr:hover {
    background: rgba(239, 199, 94, 0.05);
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: rgba(26, 26, 26, 0.8);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid rgba(239, 199, 94, 0.2);
    color: var(--text-secondary);
}

.footer p {
    margin-bottom: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .section h3 {
        font-size: 1.2rem;
    }
    
    .back-link {
        top: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    li {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 20px 15px;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .warning, .info, .success, .danger {
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }

/* ===== SCROLLBAR PERSONNALISÉE ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.8);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ===== SÉLECTION DE TEXTE ===== */
::selection {
    background: var(--accent-color);
    color: var(--secondary-color);
}

::-moz-selection {
    background: var(--accent-color);
    color: var(--secondary-color);
}

/* ===== FOCUS ===== */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== LOADING ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(239, 199, 94, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
