/* ============================================
   ACCUEIL – la page unique du site public (maquette H « atelier »)
   Fonds alternés sur les six parties : clair, foncé, clair, foncé, clair, foncé.
   ============================================ */

/* ── En-tête : panneau perforé discret, photo vissée, fiche technique ── */

.hero {
    padding: 60px 0 0;
    background-color: var(--sable);
    background-image: radial-gradient(circle, rgba(35, 38, 45, 0.10) 1.8px, transparent 2.2px);
    background-size: 24px 24px;
    border-bottom: 1px solid var(--trait);
}

.hero_grille {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
}

.puce {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    margin-bottom: 24px;
    background: var(--blanc);
    border: 1px solid var(--trait);
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--graphite-doux);
}

.puce .voyant {
    width: 8px;
    height: 8px;
    animation: clignote 1.8s infinite;
}

@keyframes clignote {
    50% { opacity: 0.35; }
}

.nom {
    margin-bottom: 18px;
    font-size: var(--taille-nom);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--graphite);
}

.nom span {
    color: var(--orange);
}

.formation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.formation span {
    padding: 5px 12px;
    background: var(--blanc);
    border: 1.5px solid var(--graphite);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--graphite);
}

.formation .formation_objectif {
    background: var(--menthe);
    border-color: var(--menthe);
    color: var(--blanc);
}

.accroche {
    max-width: 520px;
    margin-bottom: 32px;
    padding-left: 18px;
    border-left: 3px solid var(--orange);
    font-size: 19px;
    color: var(--graphite-doux);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* La photo vissée sur son plateau, bien droite */
.plateau {
    position: relative;
    width: min(380px, 100%);
    margin: 0 auto;
    padding: 20px;
    background: var(--blanc);
    border: 1.5px solid var(--graphite);
    border-radius: 16px;
    box-shadow: 12px 12px 0 var(--orange);
}

.plateau img,
.plateau_mono {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
}

/* Sans photo (storage/photos/profil.jpg absente) : l'initiale */
.plateau_mono {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--graphite);
    font-size: 140px;
    font-weight: 700;
    color: var(--orange);
}

.vis {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #eeeeee, #a3a6ac);
    border: 1px solid #74787f;
}

.vis::after {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    top: 50%;
    height: 1.5px;
    margin-top: -0.75px;
    background: #5a5e65;
    transform: rotate(35deg);
}

.vis_hg { top: 5px; left: 5px; }
.vis_hd { top: 5px; right: 5px; }
.vis_bg { bottom: 5px; left: 5px; }
.vis_bd { bottom: 5px; right: 5px; }

/* La fiche technique, posée au bas de l'en-tête */
.fiche {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 52px;
    background: var(--blanc);
    border: 1.5px solid var(--graphite);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.fiche div {
    padding: 18px 22px;
    border-right: 1px solid var(--trait);
}

.fiche div:last-child {
    border-right: none;
}

.fiche dt {
    margin-bottom: 4px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--orange);
}

.fiche dd {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--graphite);
}

.fiche small {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--texte-leger);
    overflow-wrap: anywhere;
}

/* ── Sections : la pastille numérotée et son titre ── */

.section {
    padding: 72px 0;
}

.section_sombre,
.section_atelier {
    background-color: var(--graphite);
    color: var(--texte-sombre);
}

/* Le savoir-faire : le panneau perforé de l'atelier */
.section_atelier {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1.8px, transparent 2.2px);
    background-size: 24px 24px;
}

.titre_section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}

.pastille {
    flex-shrink: 0;
    /* La hauteur des deux lignes réunies : le petit libellé (18 px) et le titre (taille × 1,15) */
    --cote: calc(18px + var(--taille-titre) * 1.15);
    width: var(--cote);
    height: var(--cote);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--graphite);
    border-radius: 12px;
    font-family: var(--mono);
    font-size: 18px;
    color: var(--blanc);
}

.section_sombre .pastille,
.section_atelier .pastille {
    background: var(--orange);
}

.titre_section small {
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 18px;
    color: var(--orange);
}

.titre_section h2 {
    font-size: var(--taille-titre);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--graphite);
}

.section_sombre .titre_section h2,
.section_atelier .titre_section h2 {
    color: var(--blanc);
}

/* ── 01 Qui je suis : les qualités en composants ── */

.profil {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}

.profil_texte p + p {
    margin-top: 16px;
}

/* Les trois paragraphes à la même taille, en justifié (les coupures de mots évitent les trous) */
.profil_texte p {
    text-align: justify;
    hyphens: auto;
}

/* Les mots mis en gras dans contenu/site.php (**ainsi**) */
.profil_texte strong {
    font-weight: 600;
    color: var(--graphite);
}

.composants {
    display: grid;
    gap: 14px;
}

.composant {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    background: var(--blanc);
    border: 1px solid var(--trait);
    border-radius: 10px;
}

/* La puce et ses broches orange */
.composant_puce {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--graphite);
    border-radius: 8px;
    color: var(--blanc);
}

.composant_puce svg {
    width: 24px;
    height: 24px;
}

.composant_puce::before,
.composant_puce::after {
    content: '';
    position: absolute;
    top: 9px;
    bottom: 9px;
    width: 5px;
    background: repeating-linear-gradient(var(--orange) 0 3px, transparent 3px 7px);
}

.composant_puce::before { left: -5px; }
.composant_puce::after { right: -5px; }

.composant b {
    display: block;
    color: var(--graphite);
}

.composant p {
    font-size: 15px;
    line-height: 1.45;
}

/* ── 02 Savoir-faire : les outils accrochés au panneau ── */

.outils {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    padding-top: 14px;
}

.outil {
    position: relative;
    padding: 28px 22px 24px;
    background: var(--graphite-2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 200ms ease, border-color 200ms ease;
}

.outil:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
}

/* Le crochet */
.outil::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    width: 20px;
    height: 16px;
    margin-left: -10px;
    border: 2px solid #6b707a;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.outil_icone {
    position: relative;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--orange);
    border-radius: 50%;
    color: var(--blanc);
}

.outil_icone svg {
    width: 26px;
    height: 26px;
}

.outil_num {
    position: absolute;
    top: -6px;
    right: -8px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--menthe);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(35, 169, 143, 0.7);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--graphite);
}

.outil h3 {
    margin-bottom: 6px;
    font-size: 17px;
    line-height: 1.3;
    color: var(--blanc);
}

.outil p {
    font-size: 15px;
    line-height: 1.55;
}

/* ── 03 Réalisations : une étiquette par projet ── */

.etiquettes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.etiquette {
    background: var(--blanc);
    border: 1px solid var(--trait);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(35, 38, 45, 0.05);
    transition: box-shadow 200ms ease, border-color 200ms ease;
}

/* Au survol, la carte ne bouge pas : seules l'ombre et la bordure se renforcent */
.etiquette:hover {
    border-color: #d3c8b4;
    box-shadow: 0 8px 20px rgba(35, 38, 45, 0.1);
}

.etiquette_tete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--graphite);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--texte-sombre);
}

.etiquette_tete b {
    font-weight: 400;
    color: var(--orange);
}

.etiquette_photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.etiquette_photo_vide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: repeating-linear-gradient(-45deg, #f6f1e8, #f6f1e8 12px, #efe8dc 12px, #efe8dc 24px);
    font-size: 13px;
    color: var(--texte-leger);
}

.etiquette_photo_vide svg {
    width: 28px;
    height: 28px;
}

/* Plusieurs photos : elles défilent dans le cadre, au doigt ou par les vignettes (photos.js) */
.photos {
    position: relative;
}

.photos_bande {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.photos_bande::-webkit-scrollbar {
    display: none;
}

.photos_bande .etiquette_photo {
    display: block;
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.photos_nombre {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 9px;
    background: rgba(35, 38, 45, 0.8);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--blanc);
    pointer-events: none;
}

.vignettes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 18px 0;
}

.vignettes button {
    width: 56px;
    height: 42px;
    padding: 0;
    overflow: hidden;
    background: none;
    border: 1.5px solid var(--trait);
    border-radius: 6px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 150ms ease, border-color 150ms ease;
}

.vignettes button:hover {
    opacity: 1;
}

.vignettes button.actif {
    border-color: var(--orange);
    opacity: 1;
}

.vignettes button:only-child {
    cursor: default;
}

.vignettes img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pas encore de photo : une place de vignette, pour que le texte reste aligné sur les autres cartes */
.vignette_vide {
    width: 56px;
    height: 42px;
    border: 1.5px dashed var(--trait);
    border-radius: 6px;
}

.etiquette_corps {
    padding: 18px 18px 20px;
}

.etiquette h3 {
    margin-bottom: 12px;
    font-size: 19px;
    color: var(--graphite);
}

.etiquette_intro {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.5;
}

.etapes_titre {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--graphite);
}

/* Les étapes : une pastille orange numérotée par étape, reliées par un trait */
.etapes {
    margin-bottom: 16px;
    padding: 0;
    list-style: none;
    counter-reset: etape;
}

.etapes li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--graphite);
    counter-increment: etape;
}

.etapes li:last-child {
    padding-bottom: 0;
}

.etapes li::before {
    content: counter(etape);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: -1px;
    background: var(--orange);
    border-radius: 50%;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--blanc);
}

.etapes li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    bottom: -1px;
    left: 10px;
    width: 2px;
    background: var(--orange-clair);
}

.avant_apres {
    display: grid;
    gap: 8px;
    font-size: 14px;
    line-height: 1.45;
}

.avant_apres p {
    padding: 8px 12px;
    background: var(--creme);
    border-radius: 8px;
}

.avant_apres .avant { background: var(--orange-clair); }
.avant_apres .apres { background: var(--menthe-clair); }

.avant_apres b {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--graphite-doux);
}

/* Le voyant de chaque encadré : rouge pour la difficulté, menthe pour le résultat */
.avant_apres b::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
}

.avant_apres .avant b::before { background: var(--rouge); }
.avant_apres .apres b::before { background: var(--menthe); }

/* Pas encore de réalisation en ligne */
.bientot {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px 30px;
    background: var(--blanc);
    border: 1.5px dashed var(--trait);
    border-radius: 14px;
}

.bientot svg {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--orange);
}

.bientot_titre {
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 500;
    color: var(--graphite);
}

/* ── Les fenêtres « En savoir plus » (attribut popover : le navigateur les ouvre seul) ── */

/* Le bouton : une pastille au trait orange, la flèche glisse au survol */
.en_savoir_plus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 14px;
    background: var(--blanc);
    border: 1.5px solid var(--orange);
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--orange-fonce);
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.en_savoir_plus svg {
    width: 14px;
    height: 14px;
    transition: transform 150ms ease;
}

.en_savoir_plus:hover,
.en_savoir_plus:focus-visible {
    background: var(--orange);
    color: var(--blanc);
    outline: none;
}

.en_savoir_plus:hover svg {
    transform: translateX(3px);
}

/* Dans la fiche : le bouton se cale en bas de sa case, à la même hauteur dans chaque case */
.fiche div {
    display: flex;
    flex-direction: column;
}

.fiche dd {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.fiche .en_savoir_plus {
    margin-top: auto;
}

.fiche small:has(+ .en_savoir_plus) {
    margin-bottom: 14px;
}

.fenetre {
    width: min(620px, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 0 26px 26px;
    overflow-y: auto;
    background: var(--blanc);
    border: 1.5px solid var(--graphite);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(20, 22, 26, 0.35);
    color: var(--texte);
}

.fenetre::backdrop {
    background: rgba(20, 22, 26, 0.55);
}

.fenetre_tete {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -26px 16px;
    padding: 18px 26px 14px;
    background: var(--blanc);
    border-bottom: 1px solid var(--trait);
}

.fenetre .fenetre_titre {
    font-size: 20px;
    font-weight: 700;
    color: var(--graphite);
}

.fenetre_fermer {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: none;
    border: 1px solid var(--trait);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: var(--graphite);
    cursor: pointer;
}

.fenetre_fermer:hover {
    border-color: var(--graphite);
}

.fenetre p {
    font-size: 15px;
    line-height: 1.6;
}

.fenetre p + p {
    margin-top: 10px;
}

.fenetre .fenetre_sous_titre {
    margin: 22px 0 10px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--orange);
}

/* Les métiers de la filière, dans sa fenêtre */
.metiers {
    display: grid;
    gap: 10px;
}

.metier {
    padding: 12px 14px;
    border: 1px solid var(--trait);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.metier b {
    display: block;
    margin-bottom: 2px;
    font-size: 15px;
    color: var(--graphite);
}

.metier_prefere {
    border-color: var(--orange);
    background: #fff8f2;
}

.metier_badge {
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--orange);
    font-size: 11px;
    font-weight: 500;
    color: var(--blanc);
    vertical-align: 1px;
}

/* Le côté pratique, dans la fenêtre des stages */
.fenetre_liste li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.5;
}

.fenetre_liste li + li {
    margin-top: 6px;
}

.fenetre_liste li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--graphite);
}

.fenetre .stage_dates {
    margin-bottom: 0;
}

.fenetre .stage_sans_date {
    margin-bottom: 0;
}

/* ── 04 Mon objectif : le chemin jusqu'au bac, l'étape en cours allumée ── */

/* Autant de colonnes que d'étapes, toutes de même largeur */
.chemin {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 28px;
    padding-top: 50px;
}

.chemin::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 0;
    right: 10px;
    height: 6px;
    border-radius: 999px;
    background: #3d424c;
}

/* La pointe de flèche au bout de la barre : le sens du chemin, vers le bac pro */
.chemin::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #3d424c;
}

.chemin li {
    position: relative;
}

.chemin li::before {
    content: '';
    position: absolute;
    top: -36px;
    left: 0;
    z-index: 1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--graphite);
    border: 4px solid var(--texte-leger);
}

.chemin li.actuel::before {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 0 6px rgba(239, 108, 26, 0.25), 0 0 14px var(--orange);
}

.chemin .periode {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--orange);
}

.chemin h3 {
    margin: 4px 0 6px;
    font-size: 18px;
    color: var(--blanc);
}

.chemin p {
    font-size: 15px;
}

.chemin p.chemin_stages {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 10px;
    border: 1px solid rgba(35, 169, 143, 0.45);
    border-radius: 999px;
    font-size: 13px;
    color: #7fe0cb;
}

.chemin .actuel h3::after {
    content: 'en cours';
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(35, 169, 143, 0.2);
    font-size: 11px;
    font-weight: 500;
    color: #7fe0cb;
    vertical-align: middle;
}

/* ── 05 Le stage que je recherche : deux cartes, puis le lien vers les dates ── */

.stage_dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 28px;
    background: var(--blanc);
    border: 1.5px solid var(--graphite);
    border-radius: 12px;
    overflow: hidden;
}

.stage_date {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    box-shadow: -1px 0 0 var(--trait);
}

.stage_date svg {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    color: var(--orange);
}

.stage_date dt {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--orange);
}

.stage_date dd {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--graphite);
}

.stage_date small {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--texte-leger);
}

.stage_sans_date {
    margin-bottom: 28px;
    padding: 18px 22px;
    background: var(--blanc);
    border: 1.5px dashed var(--trait);
    border-radius: 12px;
}

.stage_cartes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

/* Sous les cartes : les mois du stage et le lien vers sa fenêtre (dates, côté pratique) */
.stage_suite {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 22px;
    font-size: 15px;
}

.stage_carte {
    padding: 22px 22px 24px;
    background: var(--blanc);
    border: 1px solid var(--trait);
    border-top: 4px solid var(--c);
    border-radius: 12px;
}

.stage_carte_decouvrir { --c: var(--orange); }
.stage_carte_apporter { --c: var(--menthe); }

.stage_carte h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 17px;
    color: var(--graphite);
}

.stage_carte h3 svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--c);
}

.stage_carte li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.5;
}

.stage_carte li + li {
    margin-top: 8px;
}

.stage_carte li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
}

/* ── 06 Contact : fond graphite, le mail en orange ── */

.contact_grille {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

/* La question en grand, puis les paragraphes en texte courant */
.contact_texte {
    font-size: 17px;
    line-height: 1.6;
}

.contact_texte p + p {
    margin-top: 12px;
}

.contact_texte .contact_question {
    margin-bottom: 18px;
    font-size: 21px;
    line-height: 1.5;
    color: #e7e3dc;
}

.contact_liens {
    display: grid;
    gap: 12px;
}

.contact_lien {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--blanc);
    border-radius: 12px;
    font-weight: 500;
    color: var(--graphite);
    overflow-wrap: anywhere;
    transition: background 150ms ease;
}

.contact_lien svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--orange);
}

.contact_lien small {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--texte-leger);
}

/* Le mail, le lien qui agit : en orange */
.contact_lien_mail {
    background: var(--orange);
    color: var(--blanc);
}

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

.contact_lien_mail svg {
    color: var(--blanc);
}

.contact_lien_mail small {
    color: #ffe1cc;
}

/* ── Tablette et téléphone ── */

@media (max-width: 900px) {
    .hero_grille,
    .profil,
    .contact_grille {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .fiche {
        grid-template-columns: 1fr 1fr;
    }

    .fiche div:nth-child(2) {
        border-right: none;
    }

    .fiche div:nth-child(-n+2) {
        border-bottom: 1px solid var(--trait);
    }

    .outils {
        grid-template-columns: 1fr 1fr;
        row-gap: 34px;
    }

    .etiquettes,
    .stage_cartes,
    .chemin {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
    }

    .chemin {
        padding-top: 0;
        padding-left: 44px;
        row-gap: 30px;
    }

    .chemin::before {
        top: 0;
        bottom: 10px;
        left: 8px;
        right: auto;
        width: 6px;
        height: auto;
    }

    /* Le chemin descend : la pointe passe en bas */
    .chemin::after {
        top: auto;
        bottom: 0;
        left: 2px;
        right: auto;
        border-top: 14px solid #3d424c;
        border-right: 9px solid transparent;
        border-bottom: none;
        border-left: 9px solid transparent;
    }

    .chemin li::before {
        top: 2px;
        left: -44px;
    }

    .section {
        padding: 56px 0;
    }
}

@media (max-width: 500px) {
    .fiche,
    .outils {
        grid-template-columns: 1fr;
    }

    .fenetre {
        padding: 0 18px 20px;
    }

    .fenetre_tete {
        margin: 0 -18px 14px;
        padding: 14px 18px 12px;
    }

    .fiche div {
        border-right: none;
        border-bottom: 1px solid var(--trait);
    }

    .plateau_mono {
        font-size: 100px;
    }
}

/* ── Impression : la page devient un CV sobre ── */

@media print {
    @page {
        size: A4;
        margin: 14mm;
    }

    .hero,
    .section {
        padding: 8mm 0;
        background: none;
        border: none;
        color: #333333;
    }

    .actions,
    .bientot,
    .puce,
    .vis,
    .en_savoir_plus,
    .fenetre,
    .photos_nombre,
    .vignettes {
        display: none;
    }

    .plateau {
        width: 45mm;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .hero_grille,
    .profil,
    .contact_grille {
        gap: 8mm;
    }

    .fiche {
        margin-top: 6mm;
        border-bottom: 1.5px solid var(--graphite);
        border-radius: 12px;
    }

    .titre_section h2,
    .section_sombre .titre_section h2,
    .section_atelier .titre_section h2,
    .outil h3,
    .chemin h3 {
        color: var(--graphite);
    }

    .outil {
        background: none;
        border-color: var(--trait);
    }

    .chemin p.chemin_stages {
        border-color: var(--trait);
        color: var(--graphite);
    }

    .outil_icone {
        color: var(--graphite);
    }

    .contact_texte,
    .contact_texte .contact_question {
        color: #333333;
    }

    .contact_lien,
    .contact_lien_mail {
        background: none;
        border: 1px solid var(--trait);
        color: var(--graphite);
    }

    .contact_lien_mail svg {
        color: var(--orange);
    }

    .outil,
    .etiquette,
    .stage_carte,
    .composant,
    .chemin li {
        break-inside: avoid;
    }
}
