/*
 * Typographie des pages de contenu editorial.
 *
 * Le theme n'avait jamais eu de vraie page de texte : aucun style n'existait
 * pour les titres, paragraphes, listes et tableaux du contenu. Les pages
 * legales s'affichaient donc avec les styles par defaut du navigateur, collees
 * au bord de l'ecran.
 *
 * Portee limitee a .contenu-page, applique par page.php aux seules pages
 * editoriales : le panier et le tunnel, qui ont leurs propres styles de blocs,
 * en sont exclus.
 */

.contenu-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    color: #2b2b2b;
    font-size: 1rem;
    line-height: 1.7;
}

.contenu-page > *:first-child {
    margin-top: 0;
}

.contenu-page h1,
.contenu-page h2,
.contenu-page h3 {
    line-height: 1.25;
    color: #1a1a1a;
}

.contenu-page h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    color: #b12b2c;
}

.contenu-page h2 {
    margin: 2.5rem 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid #f0dcdc;
    font-size: 1.35rem;
    color: #b12b2c;
}

.contenu-page h3 {
    margin: 1.75rem 0 .4rem;
    font-size: 1.1rem;
}

.contenu-page p {
    margin: 0 0 1rem;
}

.contenu-page ul,
.contenu-page ol {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}

.contenu-page li {
    margin-bottom: .4rem;
}

.contenu-page a {
    color: #b12b2c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contenu-page a:hover {
    color: #8e2223;
}

.contenu-page strong {
    color: #1a1a1a;
}

.contenu-page em {
    color: #666;
}

/* Tableaux : durees de conservation, finalites et bases legales */

.contenu-page table {
    width: 100%;
    margin: 1rem 0 1.5rem;
    border-collapse: collapse;
    font-size: .95rem;
}

.contenu-page th,
.contenu-page td {
    padding: .6rem .8rem;
    border: 1px solid #e3e3e3;
    text-align: left;
    vertical-align: top;
}

.contenu-page thead th {
    background: #f6f6f6;
    font-weight: 700;
}

/* Marqueurs laisses au client : visibles, pour qu'aucun trou ne passe inapercu. */

.contenu-page .a-completer {
    background: #fff4d6;
    border-bottom: 1px dashed #b8912a;
    padding: 0 3px;
}

@media (max-width: 600px) {
    .contenu-page {
        padding: 2rem 1.1rem 3rem;
    }

    .contenu-page h2 {
        margin-top: 1.9rem;
        font-size: 1.2rem;
    }

    .contenu-page table {
        display: block;
        overflow-x: auto;
    }
}
