/* ------------------------------
   GLOBAL
--------------------------------*/
body {
    max-width: 650px;
    margin: 40px auto;
    padding: 0 10px;
    font: 18px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: #444;
    background: #ffffff;
}

a {
    text-decoration: none;
}

a:link {
    color: #0366d6;
}

a:visited {
    color: #6f42c1;
}


/* ------------------------------
   DARK MODE
--------------------------------*/
@media (prefers-color-scheme: dark) {
    body {
        color: #c9d1d9;
        background: #000000;
    }

    a:link {
        color: #58a6ff;
    }

    a:visited {
        color: #8e96f0;
    }
}

@media (prefers-color-scheme: light) {
    .logo {
        filter: invert(1);
    }
}


/* ------------------------------
   VISUALLY HIDDEN (SEO)
--------------------------------*/
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------
   HERO / HEADER
--------------------------------*/
header.hero {
    text-align: left;
    border-bottom: 1px solid #666666; /* remplace le hr */
}

.logo {
    max-width: 4em;
    height: auto;
    display: block;
    margin-bottom: 2em;
    margin-left: -5px; /* optical alignment */
}

h1 {
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.25em;
}

h2 {
    font-size: 1.1em;
    font-weight: normal;
    color: #666;
    margin-bottom: 1.5em;
    line-height: 1.3;
}

.contact {
    margin-top: 2em;
    font-size: 0.95em;
    margin-bottom: 2em; /* was 0.5em */

}

/* ------------------------------
   SECTIONS
--------------------------------*/
section {
    margin-bottom: 3.5em;
}

h3 {
    font-size: 1.3em;
    font-weight: 800;
    margin-top: 2em;
    margin-bottom: 1em;
    padding-bottom: 0.25em;
}

/* ------------------------------
   LISTS (dash style)
--------------------------------*/
ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2em;
}

li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 0.5em;
}

li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: currentColor;
    opacity: 0.6;
     left: 0.1em;
}

.lang-switch {
    font-size: 0.75em;
    margin: 0.5em 0 1.5em 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8; /* ↑ contraste */
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}