/* Style global */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background: #f5f7fb;
    color: #222;
}

/* Conteneur principal */
.page-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* Titre principal */
#introduction h1 {
    margin-top: 0;
    font-size: 2.2rem;
    color: #1d3557;
}

#introduction p {
    margin-bottom: 0.5rem;
}

/* Titres de sections */
h2 {
    margin-top: 2rem;
    color: #1d3557;
    border-bottom: 2px solid #e5e7f0;
    padding-bottom: 0.3rem;
}

h3, h4 {
    margin-top: 1.5rem;
    color: #264653;
}

/* Listes */
ul {
    padding-left: 1.3rem;
}

li {
    margin-bottom: 0.3rem;
}

/* Mise en forme du code - blocs */
pre {
    background: #0b1120;
    color: #f9fafb;
    padding: 1.1rem 1.3rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 1rem;
    line-height: 1.7;
    margin: 1.2rem 0;
    border: 1px solid #1f2937;
}

pre code {
    font-family: "Fira Code", Menlo, Consolas, monospace;
    tab-size: 4;
    white-space: pre;
}

/* Mise en avant des balises <code> en ligne */
code {
    background: #111827;      /* fond foncé, comme les blocs */
    color: #f9fafb;           /* texte clair */
    padding: 0.05rem 0.25rem;
    border-radius: 4px;
    font-family: "Fira Code", Menlo, Consolas, monospace;
    font-size: 0.95em;
}

/* Petits paragraphes de résumé / conclusion */
p {
    margin: 0.4rem 0;
}

/* Liens (si tu en ajoutes plus tard) */
a {
    color: #1d4ed8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.screen {
    max-width: 250px;
    height: auto;
    cursor: pointer;
    border: 1px solid #ccc;
    margin: 8px 0;
    transition: box-shadow 0.2s;
}
.screen:hover {
    box-shadow: 0 0 8px #888;
}
/* Modale pour image agrandie */
.modal-img-bg {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.modal-img-bg.active {
    display: flex;
}
.modal-img-bg img {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 16px #fff;
    border-radius: 8px;
}
.modal-img-bg .close-btn {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
}