/* ============================================
   BASE – site public : reset, en-tête, pied, boutons, voyant
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;   /* = hauteur de la barre : la partie démarre juste dessous, sans bande de la précédente */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--police);
    font-size: var(--taille-texte);
    line-height: 1.65;
    color: var(--texte);
    background: var(--creme);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

.conteneur {
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 0 24px;
}

/* Le voyant allumé de la puce « Disponible pour un stage » */
.voyant {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--menthe);
    box-shadow: 0 0 8px var(--menthe);
}

/* ── En-tête : barre graphite ────────────── */

.site_header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--graphite);
    color: #d6d2ca;
}

.site_header_inner {
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    /* La barre ne porte que le menu, à gauche, calé sur le bord de la page (comme l'espace privé) */
    display: flex;
}

/* Le menu occupe toute la hauteur de la barre : la barre orange du lien actif se pose sur son bord bas */
.site_nav {
    position: relative;   /* repère des liens pour menu.js (offsetLeft) */
    display: flex;
    gap: 4px;
}

.site_nav a {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    font-size: var(--taille-menu);
    font-weight: 500;
    white-space: nowrap;
    transition: color 150ms ease, border-color 150ms ease;
}

.site_nav a:hover {
    color: var(--blanc);
}

/* La partie à l'écran (assets/js/menu.js), comme l'onglet actif de la console */
.site_nav a.actif {
    color: var(--blanc);
    border-bottom-color: var(--orange);
}

@media (max-width: 900px) {
    /* Sur téléphone, le menu défile de côté depuis le bord gauche */
    .site_header_inner {
        height: 52px;
        padding: 0 4px;
    }

    .site_nav {
        overflow-x: auto;
        scrollbar-width: none;
    }

    html {
        scroll-padding-top: 52px;
    }
}

/* ── Boutons ─────────────────────────────── */

.bouton {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: var(--rayon);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 150ms ease, color 150ms ease;
}

.bouton svg {
    width: 18px;
    height: 18px;
}

.bouton_plein {
    background: var(--orange);
    color: var(--blanc);
}

.bouton_plein:hover {
    background: var(--orange-fonce);
}

.bouton_trait {
    border: 1.5px solid var(--graphite);
    color: var(--graphite);
}

.bouton_trait:hover {
    background: var(--graphite);
    color: var(--blanc);
}

/* ── Pied ────────────────────────────────── */

.site_footer {
    padding: 22px 0;
    background: var(--graphite-pied);
    font-size: 13px;
    color: #8f949e;
}

.site_footer_inner {
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site_footer_liens {
    display: flex;
    gap: 20px;
}

.site_footer a:hover {
    color: var(--blanc);
}

/* ── Page simple (mentions légales) ──────── */

.page_simple {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.page_simple h1 {
    font-size: var(--taille-titre);
    color: var(--graphite);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.page_simple h2 {
    font-size: 19px;
    color: var(--graphite);
    font-weight: 500;
    margin: 28px 0 8px;
}

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

.page_simple a {
    color: var(--orange-fonce);
    text-decoration: underline;
}

@media print {
    .site_header,
    .site_footer,
    .bouton {
        display: none !important;
    }

    body {
        background: #ffffff;
        font-size: 10.5pt;
    }
}
