/* ============================================================
   LEXIO — Pages légales (confidentialité, CGU, mentions légales)
   Version 2 — correspond à la maquette du 13 novembre.

   À coller à la fin de ta feuille de style lp-*.
   Remplace intégralement la version précédente de ce fichier.

   Dépend de : --nuit, --or, .conteneur, .lp-bandeau (déjà dans ton CSS).
   ============================================================ */

/* ---------- Onglets entre les trois documents ----------
   La barre se place juste sous l'en-tête, avant le bandeau. */

.lp-onglets {
    background: var(--nuit, #0E2A4E);
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.lp-onglets .conteneur {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.lp-onglet {
    padding: 14px 0 13px;
    margin-right: 32px;
    font-size: 14.8px;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s ease;
}

.lp-onglet:last-child { margin-right: 0; }
.lp-onglet:hover { color: #fff; }

.lp-onglet[aria-current="page"] {
    color: #fff;
    border-bottom-color: #E2B964;
}

/* ---------- Fil d'Ariane ----------
   SUPPRIME ce bloc si .lp-fil est déjà défini dans ta feuille. */

.lp-fil {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .62);
    margin-bottom: 16px;
}

.lp-fil a { color: rgba(255, 255, 255, .84); text-decoration: none; }
.lp-fil a:hover { color: #E2B964; }
.lp-fil span { color: rgba(255, 255, 255, .34); }

/* ---------- Corps de page ---------- */

.lp-legal {
    padding: 64px 0 96px;
    background: #fff;
}

.lp-legal__grille {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

/* ---------- Sommaire ---------- */

.lp-sommaire { position: sticky; top: 24px; }

.lp-sommaire__titre {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--or, #C9922F);
    margin-bottom: 15px;
}

.lp-sommaire ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: som;
}

.lp-sommaire li {
    counter-increment: som;
    margin-bottom: 8px;
}

/* Le numéro vit dans la gouttière : les libellés restent alignés
   même quand on passe de « 9. » à « 10. ». */
.lp-sommaire a {
    display: block;
    font-size: 14.2px;
    line-height: 1.45;
    color: rgba(14, 42, 78, .68);
    text-decoration: none;
    padding-left: 26px;
    text-indent: -26px;
    transition: color .15s ease;
}

.lp-sommaire a::before {
    content: counter(som) ".";
    display: inline-block;
    width: 26px;
    text-indent: 0;
    color: rgba(14, 42, 78, .32);
    font-variant-numeric: tabular-nums;
}

.lp-sommaire a:hover { color: var(--nuit, #0E2A4E); }

/* ---------- Texte ---------- */

.lp-legal__corps { max-width: 640px; }

.lp-legal__maj {
    display: block;
    font-size: 13.2px;
    color: rgba(14, 42, 78, .58);
    padding-bottom: 22px;
    margin-bottom: 36px;
    border-bottom: 1px solid rgba(14, 42, 78, .13);
}

.lp-legal__intro {
    font-size: 17.5px;
    line-height: 1.66;
    color: var(--nuit, #0E2A4E);
    margin-bottom: 44px;
}

/* Un filet précède chaque article : sur un texte long sans variation
   de caractère, c'est lui qui marque les ruptures. */
.lp-legal__corps h2 {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.26;
    letter-spacing: -.015em;
    color: var(--nuit, #0E2A4E);
    margin: 48px 0 16px;
    padding-top: 26px;
    border-top: 1px solid rgba(14, 42, 78, .13);
    scroll-margin-top: 24px;
}

.lp-legal__corps h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.lp-legal__corps h3 {
    font-size: 16.2px;
    font-weight: 700;
    color: var(--nuit, #0E2A4E);
    margin: 30px 0 8px;
}

.lp-legal__corps p {
    font-size: 16px;
    line-height: 1.72;
    color: rgba(14, 42, 78, .74);
    margin-bottom: 16px;
}

.lp-legal__corps strong {
    color: var(--nuit, #0E2A4E);
    font-weight: 600;
}

.lp-legal__corps ul {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.lp-legal__corps ul li {
    position: relative;
    padding-left: 21px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.68;
    color: rgba(14, 42, 78, .74);
}

.lp-legal__corps ul li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 13px;
    width: 8px;
    height: 1px;
    background: var(--or, #C9922F);
}

.lp-legal__corps a {
    color: var(--nuit, #0E2A4E);
    text-decoration: underline;
    text-decoration-color: rgba(201, 146, 47, .6);
    text-underline-offset: 3px;
}

.lp-legal__corps a:hover { text-decoration-color: var(--or, #C9922F); }

/* ---------- Encadré ---------- */

.lp-encadre {
    border-left: 3px solid var(--or, #C9922F);
    border-radius: 0 10px 10px 0;
    background: rgba(201, 146, 47, .06);
    padding: 20px 24px;
    margin: 26px 0 30px;
}

.lp-encadre__titre {
    font-size: 15px;
    font-weight: 700;
    color: var(--nuit, #0E2A4E);
    margin-bottom: 9px;
}

.lp-encadre p:last-child { margin-bottom: 0; }

/* ---------- Tableau ---------- */

.lp-tableau {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    font-size: 15px;
}

.lp-tableau th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(14, 42, 78, .55);
    padding: 0 16px 11px 0;
    border-bottom: 1px solid var(--nuit, #0E2A4E);
}

.lp-tableau td {
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid rgba(14, 42, 78, .11);
    color: rgba(14, 42, 78, .74);
    line-height: 1.6;
    vertical-align: top;
}

.lp-tableau td:first-child { color: var(--nuit, #0E2A4E); }

/* ---------- Bloc de contact ---------- */

.lp-legal__contact {
    margin-top: 56px;
    padding: 30px 34px;
    background: var(--nuit, #0E2A4E);
    border-radius: 14px;
}

.lp-legal__contact h2 {
    all: unset;
    display: block;
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #fff;
    margin-bottom: 10px;
}

.lp-legal__contact p {
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .76);
    margin-bottom: 6px;
}

.lp-legal__contact p:last-child { margin-bottom: 0; }

.lp-legal__contact a {
    color: #E2B964;
    text-decoration: none;
    font-weight: 500;
}

.lp-legal__contact a:hover { text-decoration: underline; }

/* ---------- Tablette et mobile ---------- */

@media (max-width: 920px) {
    .lp-legal__grille {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Le sommaire passe sous l'introduction, sur deux colonnes,
       pour ne pas repousser le texte de treize lignes. */
    .lp-sommaire {
        position: static;
        order: 2;
        border-top: 1px solid rgba(14, 42, 78, .13);
        padding-top: 20px;
    }

    .lp-legal__corps { order: 1; max-width: none; }

    .lp-sommaire ol { columns: 2; column-gap: 28px; }
    .lp-sommaire li { break-inside: avoid; }
    .lp-sommaire a { font-size: 13.5px; }
}

@media (max-width: 700px) {
    .lp-legal { padding: 44px 0 72px; }
    .lp-legal__intro { font-size: 16.5px; margin-bottom: 34px; }
    .lp-legal__corps h2 { font-size: 21px; margin-top: 38px; padding-top: 22px; }
    .lp-legal__contact { padding: 24px 22px; }
    .lp-onglet { margin-right: 22px; font-size: 14px; }
    .lp-tableau { font-size: 14px; }
}

/* ---------- Page Questions ---------- */

.lp-questions { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }

.lp-questions-entete { margin-bottom: 40px; }
.lp-questions-entete h1 { margin: 0 0 12px; }
.lp-questions-entete p { max-width: 58ch; color: #4b5563; margin: 0; }

.lp-question { border-bottom: 1px solid #e5e7eb; }

.lp-question summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 40px 18px 0;
    position: relative;
    font-weight: 600;
    color: #0c2340;
    line-height: 1.45;
}
.lp-question summary::-webkit-details-marker { display: none; }

/* Le chevron : un carré pivoté, pour ne charger aucune icône. */
.lp-question summary::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 24px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #b8862f;
    border-bottom: 2px solid #b8862f;
    transform: rotate(45deg);
    transition: transform .18s ease;
}
.lp-question[open] summary::after { transform: rotate(-135deg); top: 28px; }

.lp-question summary:hover { color: #b8862f; }
.lp-question summary:focus-visible { outline: 2px solid #b8862f; outline-offset: 3px; }

.lp-question-reponse {
    padding: 0 40px 22px 0;
    color: #374151;
    line-height: 1.7;
    max-width: 62ch;
}

.lp-questions-fin {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 2px solid #0c2340;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.lp-questions-fin p { margin: 0; font-weight: 600; color: #0c2340; }

@media (prefers-reduced-motion: reduce) {
    .lp-question summary::after { transition: none; }
}