@font-face {
    font-family: Oxygen;
    src: url("../fonts/oxygen-regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Oxygen;
    src: url("../fonts/oxygen-bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: Dosis;
    src: url("../fonts/dosis-regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Font Awesome 5 Free";
    src: url("../fonts/fa-solid-900.woff2") format("woff2");
    font-weight: 900;
    font-display: block;
}

:root {
    --brun: #763e19;
    --texte: #4b4b4b;
    --titre: #0b090a;
    --fond-pied: #f9f8f9;
    --fond-bas: #e2d6ca;
    --police-titres: Dosis, Oxygen, sans-serif;
    --largeur-cadre-entete: 1260px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    background: #fff;
    color: var(--texte);
    font: 400 1rem/1.6 Oxygen, Arial, sans-serif;
}

.entete__interieur {
    max-width: var(--largeur-cadre-entete);
    margin-inline: auto;
}

.banniere__contenu {
    width: 100%;
    max-width: calc(var(--largeur-cadre-entete) - 74px);
    margin-inline: auto;
}

a { color: var(--brun); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brun); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.fa { font: 900 1em/1 "Font Awesome 5 Free"; }
.fa-adresse::before { content: "\f3c5"; }
.fa-adresse { font-size: 0.88em; }
.fa-courriel::before { content: "\f0e0"; }
.fa-haut::before { content: "\f077"; }
.fa-menu::before { content: "\f0c9"; }

.lien-evitement {
    position: absolute;
    z-index: 5;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.5rem 1rem;
    transform: translateY(-200%);
    color: #fff;
    background: var(--brun);
}

.lien-evitement:focus { transform: translateY(0); }

.entete__interieur {
    display: grid;
    grid-template-columns: minmax(229px, 1fr) auto minmax(190px, 1fr);
    align-items: start;
    min-height: 221px;
    padding: 10px 22px 24px 37px;
    color: #393939;
}

.logo { justify-self: start; }
.logo img { width: 229px; height: auto; }
.bouton-menu { display: none; }

.navigation { padding-top: 48px; transform: translateX(-9px); }
.navigation ul,
.entete__telephones,
.pied__telephones,
.pied__reseaux,
.pied__listes ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation ul { display: flex; align-items: center; gap: clamp(14px, 2.25vw, 29px); }
.navigation a { display: block; color: inherit; text-decoration: none; }
.navigation a:hover, .navigation a[aria-current="page"] { color: var(--brun); }
.navigation .navigation__contact { color: var(--brun); font-weight: 700; }

.entete__telephones { justify-self: end; padding-top: 2px; text-align: right; line-height: 1.5; }
.entete__telephones li + li { margin-top: 12px; }
.entete__telephones li:not(.telephone--sans-frais) a { display: block; margin-top: 7px; }

.entete__telephones a, .pied a { text-decoration: none; }
.entete__telephones a, .pied__telephones a, .pied__listes a { font-weight: 700; }
.entete__telephones a:hover, .pied a:hover { text-decoration: underline; }

.banniere {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: 516px;
    overflow: hidden;
    padding: 32px clamp(20px, 3vw, 64px);
    background: #342d29;
    color: #fff;
}

.banniere__image, .banniere::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
}

.banniere__image { object-fit: cover; object-position: center top; }
.banniere::after { content: ""; background: rgb(0 0 0 / 20%); }
.banniere--contact::after { background: none; }

@media (min-width: 1051px) {
    .banniere--contact .banniere__image {
        left: 50%;
        width: 154.4%;
        max-width: none;
        transform: translateX(-50%);
        object-position: center 27.9%;
    }

    .banniere--contact .banniere__titre { transform: translateY(-5px); }
}

.banniere__titre {
    max-width: 570px;
    margin: 0;
    font: 400 clamp(2rem, 3.2vw, 2.5rem)/1.45 var(--police-titres);
}

.contenu-page { max-width: 1200px; margin: 0 auto; padding: 55px 28px; }
.contenu-page h1 { font: 400 clamp(2rem, 4vw, 3rem)/1.2 var(--police-titres); color: var(--titre); }

.pied { background: var(--fond-pied); }
.pied__interieur, .pied__bas-interieur {
    max-width: var(--largeur-cadre-entete);
    margin: 0 auto;
    padding-inline: clamp(20px, 2.3vw, 38px) clamp(20px, 4vw, 66px);
}

.pied__interieur { padding-block: 104px 98px; }
.pied__coordonnees, .pied__listes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pied__coordonnees > section, .pied__listes > ul { padding-right: 16px; }

.pied h2, .pied h3 { margin: 0; color: var(--titre); font-family: var(--police-titres); font-weight: 400; }
.pied h2 { margin-bottom: 22px; font-size: 24px; line-height: 1.25; }
.pied h3 { margin: 22px 0 18px; font-size: 22px; line-height: 1.25; }
.pied p { margin: 0 0 6px; }
.pied address { margin-top: 4px; font-style: normal; }
.pied address p + p { margin-top: 15px; }
.pied__telephones li + li { margin-top: 6px; }
.pied__telephones + h3 { margin-bottom: 6px; }
.pied__reseaux { display: flex; flex-wrap: wrap; gap: 10px; }
.pied__reseaux a { display: block; }
.pied__reseaux img { border-radius: 1px; }

.pied__partage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 91px;
    margin-top: 16px;
    padding: 0 8px;
    border-radius: 3px;
    background: #1877f2;
    color: #fff;
    font: 700 11px/20px Arial, sans-serif;
}

.pied__partage img { border-radius: 50%; }

.pied__courriels {
    margin-top: 68px;
    border-top: 1px solid var(--brun);
    padding-top: 42px;
}

.pied__listes li + li { margin-top: 45px; }
.pied__listes ul + ul { padding-top: 5px; }
.pied__listes ul + ul li + li { margin-top: 35px; }
.pied__listes a { overflow-wrap: anywhere; }

.pied__bas { background: var(--fond-bas); font-size: 13px; }
.pied__bas-interieur {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding-block: 16px 20px;
}

.pied__bas p { margin: 0; }
.pied__bas strong { color: var(--brun); }
.pied .pied__credit { display: inline-flex; align-items: center; gap: 5px; color: inherit; }

.pied .retour-haut {
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: 16px;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brun);
    color: #fff;
    font-size: 16px;
    text-decoration: none;
}

.pied .retour-haut:hover,
.pied .retour-haut:focus-visible {
    background-color: #582e13;
    text-decoration: none;
}

@media (max-width: 1050px) {
    .entete__interieur {
        grid-template-columns: 1fr auto;
        min-height: auto;
        padding: 10px 24px 20px;
        gap: 12px 20px;
        align-items: center;
    }

    .logo img { width: 170px; }

    .bouton-menu {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border: 1px solid var(--brun);
        border-radius: 3px;
        color: var(--brun);
        background: #fff;
        font: inherit;
        cursor: pointer;
    }

    .navigation { grid-column: 1 / -1; padding-top: 0; transform: none; }
    .navigation ul { flex-wrap: wrap; gap: 4px 20px; }
    .navigation a { padding: 7px 0; }

    .entete__telephones {
        grid-column: 1 / -1;
        justify-self: stretch;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 4px 12px;
        text-align: left;
        font-size: 14px;
    }

    .entete__telephones li + li, .entete__telephones li:not(.telephone--sans-frais) a { margin-top: 0; }
    .entete__telephones li:not(.telephone--sans-frais) a { display: inline-block; }
    .banniere { min-height: 420px; }
    .pied__interieur { padding-block: 65px 75px; }
}

@media (max-width: 760px) {
    .navigation ul { display: grid; gap: 0; }
    .navigation a { padding: 10px 0; }
    .entete__telephones { justify-content: flex-start; }
    .banniere { min-height: 340px; }
    .banniere__image { object-position: center; }
    .pied__coordonnees, .pied__listes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
    .pied__courriels { margin-top: 40px; padding-top: 32px; }
}

@media (max-width: 540px) {
    .banniere { min-height: 300px; }
    .banniere__titre { line-height: 1.22; }
    .pied__coordonnees, .pied__listes { grid-template-columns: 1fr; }
    .pied__coordonnees > section, .pied__listes > ul { padding-right: 0; }
    .pied__listes li + li, .pied__listes ul + ul li + li { margin-top: 23px; }
    .pied__listes ul + ul { padding-top: 0; }
    .pied__bas-interieur { flex-direction: column; align-items: flex-start; gap: 5px; }
}

.banniere__contenu {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
}

.banniere__surtitre {
    margin: 0;
    font: 400 24px/1.25 var(--police-titres);
}

.banniere__texte {
    max-width: 550px;
    margin: 0;
    line-height: 2;
}

.banniere__bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin-top: 10px;
    padding: 12px 25px;
    border-radius: 999px;
    background: #fff;
    color: var(--titre);
    text-decoration: none;
}

.banniere__bouton:hover {
    background: var(--brun);
    color: #fff;
}

.banniere--accueil {
    min-height: 390px;
}

.banniere--accueil::after {
    /* La photo de l’accueil est déjà assombrie. */
    background: none;
}

.banniere--accueil .banniere__contenu {
    text-shadow: 0 2px 5px rgb(0 0 0 / 65%);
}

.banniere--accueil .banniere__titre {
    font-size: clamp(2.5rem, 4vw, 3.125rem);
    line-height: 1.2;
}

.banniere--accueil .banniere__bouton {
    text-shadow: none;
}

@media (min-width: 1051px) {
    .banniere--accueil {
        min-height: 658px;
    }

    .banniere--accueil .banniere__contenu {
        margin-top: 20px;
    }

    .banniere--accueil .banniere__image,
    .banniere[data-parallaxe] .banniere__image {
        left: 50%;
        width: 155%;
        max-width: none;
        transform: translateX(-50%);
        object-position: center var(--banniere-position-y, 34%);
    }
}

@keyframes banniere-entree-gauche {
    from {
        opacity: 0;
        transform: translateX(-36px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .banniere--accueil .banniere__contenu > * {
        animation: banniere-entree-gauche 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .banniere--accueil .banniere__contenu > :nth-child(2) {
        animation-delay: 100ms;
    }

    .banniere--accueil .banniere__contenu > :nth-child(3) {
        animation-delay: 200ms;
    }

    .banniere--accueil .banniere__contenu > :nth-child(4) {
        animation-delay: 300ms;
    }
}

/* Styles partagés pour les sous-titres et les boutons de contenu. */
:is(.contenu-page, .accueil-cartes) h2 {
    color: var(--titre);
    font: 400 1.5rem/1.25 var(--police-titres);
}

.bouton-lien {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--brun);
    color: #fff;
    text-decoration: none;
}

.bouton-lien:hover {
    text-decoration: underline;
}

/* Introduction. */
.accueil-intro {
    max-width: 1028px;
    padding: clamp(52px, 8vw, 100px) 24px 42px;
}

.accueil-intro h1 {
    margin: 0 0 26px;
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.accueil-intro h2 {
    margin: 0 0 24px;
}

.accueil-intro p {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.95;
}

.accueil-intro p + p {
    margin-top: clamp(22px, 3vw, 32px);
}

/* Grille des quatre liens. */
.accueil-cartes {
    padding: clamp(52px, 8.75vw, 110px) 24px;
    background: var(--fond-bas);
}

.accueil-cartes__grille {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 19px;
    max-width: 956px;
    margin: 0 auto;
}

.accueil-cartes article {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 24px;
    background: #fff;
    text-align: center;
}

.accueil-cartes h2 {
    margin: 24px 0 22px;
}

.accueil-cartes p {
    max-width: 300px;
    margin: 0 0 27px;
    line-height: 2;
}

.accueil-cartes .bouton-lien {
    margin-top: auto;
}

@media (max-width: 620px) {
    .accueil-cartes__grille {
        grid-template-columns: 1fr;
    }

    .accueil-cartes article {
        padding: 36px 20px;
    }
}

.fa-tools::before              { content: "\f7d9"; }
.fa-award::before              { content: "\f559"; }
.fa-users::before              { content: "\f0c0"; }
.fa-envelope-open-text::before { content: "\f658"; }

.fa.accueil-cartes__icone {
    display: grid;
    place-items: center;
    width: 85px;
    height: 85px;
    color: var(--brun);
    font-size: 68px;
    line-height: 1;
}