.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    color: white;
    padding: 15px 0;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    font-weight: bold;
}

.fixed-header a {
    color: white;
    text-decoration: none;
}

/* Ajustement du padding pour le body */
body {
    padding-top: 70px;
    /* Pour éviter que le contenu soit caché sous le header fixe */
}

/* Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* En-tête */
header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    color: white;
    border-radius: 10px;
    margin-top: 50px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Navigation */
nav {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav li {
    margin: 5px 15px;
}

nav a {
    color: #4b6cb7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #182848;
    text-decoration: underline;
}

/* Sections de contenu */
section {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

h2 {
    color: #4b6cb7;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
}

h3 {
    color: #182848;
    /* margin: 25px 0 15px; */
}

p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Code blocks */
.code-block {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

.code-comment {
    color: #75715e;
}

.code-function {
    color: #66d9ef;
}

.code-variable {
    color: #a6e22e;
}

.code-string {
    color: #e6db74;
}

/* Exemples */
.example {
    background-color: #f0f7ff;
    border-left: 4px solid #4b6cb7;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f7ff;
    color: #4b6cb7;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Mise en avant */
.important {
    background-color: #fff9e6;
    border-left: 4px solid #ffcc00;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .fixed-header {
        font-size: 1.2rem;
        padding: 12px 0;
    }

    body {
        padding-top: 60px;
    }

    h1 {
        font-size: 2.2rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 20px;
    }
}


/* Tableaux - Version responsive */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Largeur minimale pour garder le contenu lisible */
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f7ff;
    color: #4b6cb7;
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Indicateur de défilement pour mobile */
.scroll-hint {
    display: none;
    text-align: center;
    padding: 8px;
    background-color: #f2f7ff;
    color: #4b6cb7;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-hint {
        display: block;
    }

    th,
    td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {

    th,
    td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}