/* =========================================
   PAGE MENTIONS LÉGALES
   Sommaire fixe à gauche, sections numérotées à droite
   (même langage que la fiche des projets et le compteur du récit)
   ========================================= */

.ml-page {
    display: grid;
    grid-template-columns: 26% 1fr;
    gap: 8%;
    padding: 14vh 5% 18vh 5%;
}

/* --- Sommaire --- */
.ml-sommaire {
    position: sticky;
    top: 20vh;
    align-self: start;
}

.ml-sommaire-titre {
    display: block;
    margin-bottom: 2rem;
    font-family: var(--font-menu);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--texte-3);
}

.ml-sommaire ol { list-style: none; margin: 0; padding: 0; }

.ml-sommaire a {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.55rem 0 0.55rem 1.2rem;
    color: var(--texte-3);
    font-size: 0.95rem;
    transition: color 0.4s ease;
}
/* Petit trait à gauche qui s'allume sur la section en cours */
.ml-sommaire a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 0;
    background: #fff;
    transform: translateY(-50%);
    transition: height 0.4s var(--sortie);
}
.ml-sommaire a:hover { color: #bbb; }
.ml-sommaire a.actif { color: #fff; }
.ml-sommaire a.actif::before { height: 70%; }

.ml-sommaire-num {
    font-family: var(--font-menu);
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.ml-maj {
    margin: 3rem 0 0 0;
    font-size: 0.8rem;
    color: var(--texte-3);
}
.ml-maj-mobile { display: none; }

/* --- Sections --- */
.ml-section {
    padding-bottom: 10vh;
    scroll-margin-top: 15vh; /* le titre ne passe pas sous le menu lors d'un clic dans le sommaire */
}

.ml-section-entete {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ml-num {
    font-family: var(--font-titre);
    font-size: 2.6rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px #fff;
}

.ml-section h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ml-texte {
    max-width: 44rem;
    margin: 0 0 1.1rem 0;
    color: var(--texte-2);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Fiche : mêmes lignes que la fiche des projets */
.ml-fiche { max-width: 44rem; margin: 1.5rem 0 0 0; }
.ml-fiche-ligne {
    display: grid;
    grid-template-columns: 13rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid var(--filet);
}
.ml-fiche-ligne:first-child { border-top: 1px solid var(--filet); }
.ml-fiche-ligne dt {
    font-family: var(--font-menu);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--texte-3);
}
.ml-fiche-ligne dd { margin: 0; color: #ddd; line-height: 1.6; }

.ml-lien {
    border-bottom: 1px solid #555;
    transition: border-color 0.3s ease;
}
.ml-lien:hover { border-color: #fff; }

/* Information manquante : bien visible tant qu'elle n'est pas renseignée */
.ml-a-completer {
    display: inline-block;
    padding: 0.15rem 0.7rem;
    border: 1px dashed #c8893a;
    border-radius: 50px;
    font-family: var(--font-menu);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c8893a;
}

/* Note légale : plus discrète, avec un fin trait à gauche */
.ml-note {
    max-width: 44rem;
    margin: 2rem 0 0 0;
    padding-left: 1.2rem;
    border-left: 1px solid #333;
    color: var(--texte-3);
    font-size: 0.9rem;
    line-height: 1.7;
}


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .ml-page { display: block; padding: 10vh 5% 12vh 5%; }
    .ml-sommaire { display: none; }
    .ml-maj-mobile { display: block; }
    .ml-section { padding-bottom: 7vh; }
    .ml-num { font-size: 2rem; }
    .ml-fiche-ligne { grid-template-columns: 1fr; gap: 0.4rem; }
}
