@charset "utf-8";

/* ---------------------------------------------------
   POLICES
   --------------------------------------------------- */

@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("../fonts/atkinson-hyperlegible-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("../fonts/atkinson-hyperlegible-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------------------------------------------------
   VARIABLES ET BASE
   --------------------------------------------------- */

:root {
    --encre: #000000;
    --encre-douce: #111111;
    --encre-claire: #222222;
    --papier: #ab9993;
    --ivoire: #d9cdc4;
    --parchemin: #cfc3ba;
    --bronze: #663300;
    --bronze-clair: #aea396;
    --bordeau: #7a1010;
    --ligne: #8d7b72;
    --bois: #331400;
    --texte-clair: #f6efe6;
    --taupe: #aea396;
    --menu-trait: #0000aa;
    --ombre: rgba(20, 14, 10, 0.12);
    --police-titre: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
    --police-texte: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
    --largeur: 72rem;
    --largeur-texte: 42rem;
    --rayon: 0.15rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--encre);
    background: var(--bois);
    font-family: var(--police-texte);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.75;
}

main {
    background: var(--papier);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--bordeau);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--encre);
}

:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    font-family: var(--police-titre);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

h1 {
    margin: 0 0 1rem;
    color: var(--bronze);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    color: var(--bordeau);
}

h3 {
    margin: 0 0 0.6rem;
    font-size: 1.35rem;
}

strong {
    font-weight: 700;
    color: var(--encre);
}

p {
    margin: 0 0 1rem;
}

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

/* ---------------------------------------------------
   UTILITAIRES
   --------------------------------------------------- */

.visuellement-cache {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.saut-contenu {
    position: absolute;
    left: 0.75rem;
    top: -3rem;
    z-index: 40;
    padding: 0.5rem 0.8rem;
    background: var(--ivoire);
    color: var(--encre);
}

.saut-contenu:focus {
    top: 0.75rem;
}

.enveloppe {
    width: min(calc(100% - 2rem), var(--largeur));
    margin-inline: auto;
}

.surligne {
    color: var(--bronze);
    font-weight: 700;
}

.etiquette {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--bronze);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------------------------------------------------
   EN-TÊTE ET NAVIGATION
   --------------------------------------------------- */

.entete {
    background: var(--taupe);
    color: var(--encre);
}

.bandeau-identite {
    padding: 1.35rem 1rem 1.15rem;
    text-align: center;
}

.bandeau-identite p {
    margin: 0;
}

.bandeau-identite__nom {
    font-family: var(--police-titre);
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 700;
    line-height: 1.15;
}

.bandeau-identite__nom a {
    color: var(--encre);
    text-decoration: none;
}

.bandeau-identite__metier {
    margin-top: 0.2rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.bandeau-identite__coord,
.bandeau-identite__tel {
    margin-top: 0.2rem;
    color: var(--encre);
    font-size: 1.2rem;
    font-weight: 700;
}

.bandeau-identite__tel a {
    color: var(--encre);
    text-decoration: none;
}

.bandeau-identite__tel a:hover {
    text-decoration: underline;
}

.barre-menu {
    position: relative;
    padding: 0.55rem 0 0.75rem;
    border-top: 1px solid var(--ligne);
}

.barre-menu__ligne {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.menu-bouton {
    display: none;
    border: 2px solid var(--encre);
    background: var(--ivoire);
    color: var(--encre);
    padding: 0.5rem 0.9rem;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation a {
    display: inline-block;
    border-left: 3px solid var(--menu-trait);
    margin-left: 0.55rem;
    padding: 0.2rem 0.7rem 0.2rem 0.65rem;
    color: var(--encre);
    font-size: 1.12rem;
    font-weight: 700;
    text-decoration: none;
}

.navigation a:hover {
    color: var(--encre);
    text-decoration: underline;
}

.navigation a[aria-current="page"] {
    border-left-color: #c9a227;
    text-decoration: underline;
}

/* ---------------------------------------------------
   HÉROS ET SECTIONS
   --------------------------------------------------- */

.heros {
    padding: 3.5rem 0 2.5rem;
}

.heros__grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3rem;
    align-items: center;
}

.heros__visuels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    align-items: start;
}

.heros__visuels img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.chapo {
    max-width: 38rem;
    color: var(--encre);
    font-size: 1.22rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 1.75rem;
}

.bouton {
    display: inline-block;
    padding: 0.7rem 1.15rem;
    border: 2px solid var(--bois);
    background: var(--bois);
    color: var(--texte-clair);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
}

.bouton:hover {
    background: var(--encre);
    color: var(--texte-clair);
}

.bouton--secondaire {
    background: var(--texte-clair);
    color: var(--encre);
    border-color: var(--encre);
}

.bouton--secondaire:hover {
    background: var(--ivoire);
    color: var(--encre);
}

.section {
    padding: 3.25rem 0;
}

.section--alternee {
    background: var(--ivoire);
    border-block: 1px solid var(--ligne);
}

.section__intro {
    max-width: var(--largeur-texte);
    margin-bottom: 2rem;
}

.bandeau-contact {
    padding: 2.5rem 0;
    background: var(--taupe);
    color: var(--encre);
    border-top: 1px solid var(--ligne);
}

.bandeau-contact h2,
.bandeau-contact p {
    color: var(--encre);
}

.bandeau-contact a.bouton {
    color: var(--texte-clair);
}

.bandeau-contact a.bouton--secondaire {
    color: var(--encre);
}

/* ---------------------------------------------------
   GRILLES ET CARTES
   --------------------------------------------------- */

.grille-trois,
.grille-deux,
.galerie,
.paires {
    display: grid;
    gap: 1.25rem;
}

.grille-trois {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grille-deux {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.carte {
    padding: 1.4rem 1.35rem 1.5rem;
    background: var(--ivoire);
    border: 1px solid var(--ligne);
}

.section--alternee .carte {
    background: var(--papier);
}

.carte h3 {
    margin-bottom: 0.45rem;
}

.carte p,
.carte ul {
    color: var(--encre-douce);
}

.liste-sobre {
    margin: 0;
    padding-left: 1.1rem;
}

.liste-sobre li + li {
    margin-top: 0.35rem;
}

.principe {
    padding-top: 0.35rem;
}

.principe__titre {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--bordeau);
    font-family: var(--police-titre);
    font-size: 1.4rem;
    font-weight: 700;
}

/* ---------------------------------------------------
   IMAGES ET CADRES
   --------------------------------------------------- */

.cadre {
    align-self: start;
    margin: 0;
    background: var(--ivoire);
    padding: 0.55rem;
    border: 1px solid var(--ligne);
    box-shadow: 0 10px 24px var(--ombre);
}

.cadre img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.legende {
    margin: 0.55rem 0.15rem 0;
    color: var(--encre-douce);
    font-size: 0.95rem;
    font-style: italic;
}

.galerie {
    align-items: start;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.galerie--large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.galerie--deux {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.galerie--compacte {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.galerie--compacte .cadre {
    width: 100%;
}

.galerie--compacte .cadre img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.cadre--etroit {
    max-width: 22rem;
    margin-top: 0.75rem;
}

.galerie--espacee {
    margin-top: 1.75rem;
}

.paires {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.galerie-paires {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 2rem;
}

.paire {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.galerie-paires .paire img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.figure-oeuvre--large {
    margin-top: 2.25rem;
}

.section__intro + .figure-oeuvre--large {
    margin-top: 0;
}

.figure-oeuvre--large img {
    width: 100%;
    max-height: none;
    object-fit: contain;
    background: var(--parchemin);
}

.figure-oeuvre figcaption {
    margin-top: 0.45rem;
    color: var(--encre-douce);
    font-size: 0.95rem;
}

/* ---------------------------------------------------
   PAGES INTÉRIEURES
   --------------------------------------------------- */

.entete-page {
    padding: 3rem 0 1.5rem;
}

.entete-page .chapo {
    margin-top: 0.75rem;
}

.article-long {
    max-width: none;
}

.article-long h2 {
    margin-top: 2.4rem;
}

.article-long h3 {
    margin-top: 1.6rem;
}

.sommaire {
    margin: 0 0 2rem;
    padding: 1.1rem 1.2rem;
    background: var(--ivoire);
    border-left: 2px solid var(--bronze);
}

.sommaire ol {
    margin: 0.4rem 0 0;
    padding-left: 1.2rem;
}

.sommaire a {
    color: var(--encre-douce);
    text-decoration: none;
}

.sommaire a:hover {
    color: var(--encre);
}

.signature {
    margin-top: 2rem;
    font-family: var(--police-titre);
    font-weight: 700;
    font-size: 1.25rem;
}

.coordonnees {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: stretch;
}

.cadre--hauteur {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: auto;
}

.cadre--hauteur img {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.cadre--hauteur .legende {
    flex: 0 0 auto;
}

.fiche-adresse {
    padding: 1.6rem 1.5rem;
    background: var(--ivoire);
    border: 1px solid var(--ligne);
}

.fiche-adresse p {
    margin-bottom: 0.55rem;
}

.fiche-adresse a {
    color: var(--encre);
}

.note-discreete {
    margin-top: 1.25rem;
    color: var(--encre-douce);
    font-size: 1rem;
}

/* ---------------------------------------------------
   PIED DE PAGE
   --------------------------------------------------- */

.pied {
    padding: 2.4rem 0 1.6rem;
    background: var(--taupe);
    color: var(--encre);
    border-top: 1px solid var(--ligne);
}

.pied a {
    color: var(--encre);
    font-weight: 700;
}

.pied a:hover {
    color: var(--bronze);
}

.pied__grille {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.pied__titre {
    margin: 0 0 0.6rem;
    color: var(--encre);
    font-size: 1.4rem;
}

.pied nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pied nav li + li {
    margin-top: 0.3rem;
}

.pied__bas {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ligne);
    color: var(--encre);
    font-size: 0.95rem;
}

/* ---------------------------------------------------
   RESPONSIVE
   --------------------------------------------------- */

@media (max-width: 900px) {
    .heros__grille,
    .grille-trois,
    .grille-deux,
    .coordonnees,
    .pied__grille {
        grid-template-columns: 1fr;
    }

    .heros__visuels {
        max-width: 28rem;
    }

    .galerie,
    .galerie--large,
    .galerie-paires {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .menu-bouton {
        display: inline-block;
    }

    .barre-menu__ligne {
        justify-content: flex-end;
    }

    .navigation {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 30;
        background: var(--taupe);
        border-bottom: 1px solid var(--ligne);
        padding: 0.75rem 1rem 1rem;
    }

    .navigation.est-ouvert {
        display: block;
    }

    .navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }
}

@media (max-width: 560px) {
    .enveloppe {
        width: min(calc(100% - 1.4rem), var(--largeur));
    }

    .heros,
    .section,
    .entete-page {
        padding-top: 2rem;
        padding-bottom: 1.75rem;
    }

    .galerie,
    .galerie-paires,
    .paires,
    .paire {
        grid-template-columns: 1fr;
    }

    .galerie-paires .paire {
        grid-template-columns: 1fr 1fr;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bouton {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media print {
    .entete,
    .menu-bouton,
    .bandeau-contact,
    .pied {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }
}
