/* Style commun de index.html et des pages d'erreur de getrf.php
   Polices et couleurs reprises du site dhagpo-kundreul-ling.org */

:root {
    --bordeaux: #8b2331;
    --creme: #f7f7f3;
    --sable: #dac798;
    --texte: #666;
    --titre: #333;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--creme);
    color: var(--texte);
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    /* pied de page toujours en bas de l'écran */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2 {
    font-family: 'Roboto Slab', Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

/* Bandeau : même image et même hauteur que la page d'accueil du site principal */
header {
    height: 385px;
    background: url("../img/bandeau.jpg") left center / cover no-repeat;
    position: relative;
}

/* Léger voile pour que le titre clair reste lisible sur le ciel */
header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.45), rgba(0,0,0,0) 60%);
}

header .titre {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 82px 16px 0;
    color: var(--creme);
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

header h1 {
    font-size: 33px;
    padding-bottom: 10px;
}

header h2 {
    font-size: 24px;
    font-weight: 300;
}

main {
    flex: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 16px 64px;
}

.encadre {
    border-top: 1px solid var(--bordeaux);
    border-bottom: 1px solid var(--bordeaux);
    padding: 24px 0;
}

.encadre h2 {
    color: var(--bordeaux);
    font-size: 26px;
    font-weight: 300;
    padding-bottom: 12px;
}

.encadre p {
    margin: 0 0 12px;
}

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

footer {
    background-color: var(--bordeaux);
    color: var(--creme);
    text-align: center;
    padding: 20px 16px;
    font-size: 14px;
}

footer a {
    color: var(--sable);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    header {
        height: 240px;
        background-position: center;
    }
    header .titre {
        padding-top: 48px;
    }
    header h1 {
        font-size: 28px;
    }
    header h2 {
        font-size: 20px;
    }
    main {
        padding-top: 32px;
    }
}
