/* Félicie Vignat — feuille de styles du site public (mobile-first). */

@font-face {
    font-family: "Rajdhani";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/rajdhani-latin-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Rajdhani";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/rajdhani-latin-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Rajdhani";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/rajdhani-latin-ext-400.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Rajdhani";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/rajdhani-latin-ext-700.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --color-bg: #fff;
    --color-text: #000;
    --color-muted: #707070;
    --color-line: #000;
    --color-sold: #e72555;
    --color-heading: #0d4c8f;
    --color-button: #737373; /* gris moyen le plus clair qui garde le blanc lisible (AA : 4,7:1) */

    --font: "Rajdhani", system-ui, -apple-system, "Segoe UI", sans-serif;
    --fs-body: 15px;
    --fs-small: 14px;
    --fs-signature: 16px;
    --lh: 1.4;

    /* Grille de la maquette : 3 colonnes de 279 px, gouttières de 20 px. */
    --col: 279px;
    --gutter: 20px;
    --content: calc(var(--col) * 3 + var(--gutter) * 2);
    --side: 16px;

    --space-caption: 10px; /* image → légende */
    --space-work: 20px;    /* légende → image suivante */

    --ease: cubic-bezier(.2, .7, .2, 1);
    --shadow-soft: 0 2px 10px rgb(0 0 0 / .08);
}

@media (min-width: 900px) {
    :root {
        --fs-body: 14px;
        --fs-signature: 18px;
    }
}

/* ---------- Base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: var(--lh);
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
figure { margin: 0; }
sup { line-height: 0; font-size: .7em; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; }

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

.skip-link {
    position: absolute; left: var(--side); top: -100px; z-index: 100;
    padding: 8px 12px; background: var(--color-text); color: var(--color-bg);
}
.skip-link:focus { top: 8px; }

/* ---------- En-tête collant (réduit au défilement par masthead.js) ---------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--color-bg);
}
.masthead-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 80px; pointer-events: none; }
/* Les ancres (#oeuvre-…, #contenu) ne passent pas sous l'en-tête réduit. */
html { scroll-padding-top: 130px; }

/* Même durée et même courbe partout : la perte de hauteur et la marge compensatoire restent synchrones. */
.masthead,
.site-header,
.brand__logo,
.brand__name,
.brand__tagline,
.nav,
.nav__item { transition: padding .3s var(--ease), margin .3s var(--ease), width .3s var(--ease), font-size .3s var(--ease), max-height .3s var(--ease), opacity .3s var(--ease); }
.masthead.no-transition,
.masthead.no-transition * { transition: none !important; }
.brand__tagline { line-height: 1.4; max-height: 1.4em; overflow: hidden; }
.masthead.is-compact { margin-bottom: var(--masthead-delta, 0px); }

.masthead.is-compact .site-header { padding-top: 8px; padding-bottom: 8px; }
.masthead.is-compact .brand__logo { width: 34px; margin-bottom: 4px; }
.masthead.is-compact .brand__name { font-size: 20px; }
.masthead.is-compact .brand__tagline { max-height: 0; opacity: 0; }
.masthead.is-compact .nav { padding-top: 8px; }
.masthead.is-compact .nav__item { padding-bottom: 8px; }

/* ---------- Header ---------- */

.site-header {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px var(--side) 14px;
    border-bottom: 1px solid var(--color-line);
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.brand:hover { text-decoration: none; }
.brand__logo { width: 70px; height: auto; margin-bottom: 10px; }
.brand__name { font-size: 26px; font-weight: 400; line-height: 1.1; letter-spacing: .01em; }
.brand__tagline { font-size: 15px; font-weight: 700; color: var(--color-muted); }

@media (min-width: 760px) {
    .site-header { padding-top: 28px; }
    .brand__logo { width: 92px; }
    .brand__name { font-size: 34px; }
    .brand__tagline { font-size: 17px; }
}

/* ---------- Navigation : bureau ---------- */

.site-nav {
    position: relative;
    max-width: var(--content);
    margin: 0 auto;
    padding: 0 var(--side);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    margin: 0;
    padding: 12px 0 0;
    list-style: none;
    font-size: var(--fs-small);
    position: relative; /* référence des sous-menus : juste sous la ligne du menu */
}
/* Le padding bas prolonge la zone de survol jusqu'au sous-menu. */
.nav__item { padding-bottom: 12px; }
.nav__item.is-current > .nav__link { font-weight: 700; }

/* Le sous-menu occupe toute la largeur du contenu, sous le menu principal. */
.subnav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    background: var(--color-bg);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.subnav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    margin: 0;
    padding: 8px 12px;
    list-style: none;
}
.subnav__link.is-current { font-weight: 700; }

.nav__item:hover > .subnav,
.nav__item:focus-within > .subnav,
.nav__item.is-current > .subnav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}
.nav__item.is-current > .subnav { z-index: 20; }
/* Le sous-menu de la rubrique courante s'efface quand on survole une autre rubrique. */
.nav:has(.nav__item.has-children:not(.is-current):is(:hover, :focus-within)) .nav__item.is-current > .subnav {
    opacity: 0;
    visibility: hidden;
}

/*
 * Réserve, dans l'en-tête collant, une bande blanche pour le sous-menu permanent de la
 * rubrique courante : le contenu défile dessous sans apparaître de part et d'autre.
 */
@media (min-width: 760px) {
    .site-nav:has(.nav__item.is-current > .subnav) { padding-bottom: 44px; }
}

/* ---------- Navigation : mobile (hamburger) ---------- */

.nav-toggle { display: none; }

@media (max-width: 759.98px) {
    .js .nav-toggle {
        position: absolute;
        top: 50%;
        right: 8px;
        transform: translateY(-50%);
        z-index: 60;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--color-text);
        cursor: pointer;
    }
    .nav-toggle__bars,
    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
        display: block;
        width: 22px;
        height: 1.5px;
        background: currentColor;
        transition: transform .25s var(--ease), opacity .2s;
    }
    .nav-toggle__bars { position: relative; }
    .nav-toggle__bars::before,
    .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle__bars::before { top: -7px; }
    .nav-toggle__bars::after { top: 7px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

    /* Sans JS, le menu reste simplement affiché en liste sous le header. */
    .js .site-nav {
        position: fixed;
        inset: 0;
        z-index: 50;
        max-width: none;
        padding: 96px var(--side) 40px;
        overflow-y: auto;
        background: var(--color-bg);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s var(--ease), visibility 0s linear .25s;
    }
    .js .site-nav.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
    .nav-open { overflow: hidden; }

    .nav {
        flex-direction: column;
        align-items: center;
        gap: 0;
        font-size: 20px;
        text-align: center;
    }
    .nav__item { padding-bottom: 0; }
    .nav__link { display: block; padding: 8px 0; }
    .subnav,
    .nav__item:hover > .subnav,
    .nav:has(.nav__item.has-children:not(.is-current):is(:hover, :focus-within)) .nav__item.is-current > .subnav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: none;
    }
    .subnav__list {
        flex-direction: column;
        gap: 0;
        padding: 0 0 8px;
        font-size: 16px;
        color: var(--color-muted);
    }
    .subnav__link { display: block; padding: 4px 0; }
    .subnav__link.is-current { color: var(--color-text); }
}

/* ---------- Contenu ---------- */

.site-main {
    max-width: calc(var(--content) + var(--side) * 2);
    margin: 0 auto;
    padding: 16px var(--side) 40px;
}

.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 1em; }
.rich h2, .rich h3 { font-size: 1.1em; margin: 1.6em 0 .8em; }
.rich a { text-decoration: underline; text-underline-offset: 2px; }

.page-title { font-size: 22px; font-weight: 400; margin: 8px 0 24px; }
.page-default { max-width: 680px; }

/* ---------- Accueil ---------- */

.home-hero { margin-bottom: var(--gutter); }

/* Mobile : portrait, expositions, atelier, puis la biographie (longue). */
.home-grid {
    display: grid;
    gap: var(--gutter);
    align-items: start;
}
.home-grid > *,
.home-cards > * { min-width: 0; }
.home-grid__main { display: grid; gap: var(--gutter); }
.home-bio__title { font-size: 1em; font-weight: 400; text-transform: uppercase; margin: 0 0 .3em; }
.home-bio__intro { font-weight: 700; margin-bottom: 1em; }

.home-cards {
    display: grid;
    gap: var(--gutter);
    align-items: start;
}
/* Avec JS : deux colonnes indépendantes (masonry), remplies par home-cards.js. */
.home-cards.is-masonry { display: flex; align-items: flex-start; }
.home-cards__col { flex: 1 1 0; min-width: 0; display: grid; gap: var(--gutter); }
/* Le placement en grille de repli ne doit pas s'appliquer à l'intérieur d'une colonne. */
.home-cards.is-masonry .home-card--atelier { grid-column: auto; grid-row: auto; }
.home-card picture { margin-bottom: var(--space-caption); }
.home-card__head { margin: 0 0 .6em; }
.home-card__kicker { font-weight: 700; text-transform: uppercase; }

@media (min-width: 600px) {
    /*
     * « L'atelier » est fixé en haut à droite ; les expositions sont placées automatiquement
     * dans les cases libres, dans l'ordre : à sa gauche, puis sur les rangées suivantes.
     */
    .home-cards { grid-template-columns: 1fr 1fr; }
    .home-card--atelier { grid-column: 2; grid-row: 1; }
    .home-cards--no-exhibition .home-card--atelier { grid-column: 1; }
}

@media (min-width: 900px) {
    .home-grid { grid-template-columns: calc(var(--col) * 2 + var(--gutter)) var(--col); }
    .home-cards { grid-template-columns: repeat(2, var(--col)); }
}

/* ---------- Parcours et pages ---------- */

.page-banner { margin-bottom: var(--gutter); }

.parcours { display: grid; gap: var(--gutter); }
.parcours__images { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-content: start; }
.parcours__text h2 { color: var(--color-heading); font-weight: 400; font-size: 1.15em; margin-top: 1.8em; }

/* Listes « année + intitulé » : l'année en gras, les lignes suivantes alignées. */
.cv { margin: 0; padding: 0; list-style: none; }
.cv li { display: grid; grid-template-columns: 4.6em 1fr; column-gap: .4em; }
.cv li > strong:first-child { grid-column: 1; }
.cv li > span { grid-column: 2; }

@media (min-width: 900px) {
    .parcours { grid-template-columns: var(--col) 1fr; }
    .parcours__images { grid-column: 1; grid-row: 1; grid-template-columns: 1fr; }
    .parcours__text { grid-column: 2; }
}

/* ---------- Expositions-publications (historique) ---------- */

.history-page__intro { max-width: 680px; margin-bottom: 24px; }
.history { margin-bottom: 40px; }
.history__title {
    margin: 0 0 18px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-heading);
    font-size: 1.15em;
    font-weight: 400;
}
.history__list { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.history-item { display: grid; gap: 12px; }
.history-item__poster { max-width: 280px; }
.history-item__date { margin: 0 0 2px; font-weight: 700; }
.history-item__badge {
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 12px;
    letter-spacing: .03em;
    text-transform: uppercase;
    vertical-align: 1px;
}
.history-item__name { margin: 0 0 8px; font-size: 1.1em; }

@media (min-width: 600px) {
    .history-item { grid-template-columns: 200px 1fr; gap: var(--gutter); align-items: start; }
    .history-item__text:only-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
    .history-item { grid-template-columns: var(--col) 1fr; }
}

/* ---------- Galeries ---------- */

.gallery-intro { margin-bottom: 24px; max-width: 680px; }
.gallery-empty { color: var(--color-muted); }

/* Sans JS : simple grille ; avec JS : colonnes masonry remplies par gallery.js. */
.masonry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 var(--gutter);
    align-items: start;
}
@media (min-width: 600px) { .masonry { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .masonry { grid-template-columns: repeat(3, 1fr); } }

.masonry.is-masonry { display: flex; gap: var(--gutter); }
.masonry__col { flex: 1 1 0; min-width: 0; }

.work { margin: 0 0 var(--space-work); }

.work__link {
    position: relative;
    display: block;
    overflow: hidden;
    cursor: zoom-in;
}
.work__link:hover { text-decoration: none; }

.work__picture { display: block; }
.work__picture img { width: 100%; }
.work__media { display: block; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.work__media--set { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.caption { display: block; margin-top: var(--space-caption); font-size: var(--fs-small); line-height: 1.3; }
.caption > span { display: block; }
.caption__title { font-weight: 700; }
.caption__sold { font-weight: 700; color: var(--color-sold); }
.caption__note, .caption__description { margin-top: .5em; }
.caption__description p { margin: 0 0 .5em; }

/*
 * Survol : titre + légende courte ou extrait de la description. Uniquement avec une souris
 * (pas de survol sur tactile). Sans légende courte ni description, seul le mouvement de l'image
 * reste : le reste figure déjà dans la légende sous l'image.
 */
.work__hover { display: none; }

@media (hover: hover) and (pointer: fine) {
    .work__hover {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 14px 14px 12px;
        background: rgb(255 255 255 / .92);
        font-size: var(--fs-small);
        line-height: 1.3;
        pointer-events: none;
        transition: transform .35s var(--ease), opacity .35s var(--ease);
    }
    /* Début de la description : 4 lignes au plus, puis points de suspension. */
    .work__hover-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        overflow: hidden;
    }

    /* Variante « voile » : un voile blanc glisse depuis le bas. */
    [data-hover="voile"] .work__hover { transform: translateY(101%); }
    [data-hover="voile"] .work__link:is(:hover, :focus-visible) .work__hover { transform: none; }

    /* Variante « bascule » : l'œuvre s'incline légèrement, le texte apparaît. */
    [data-hover="bascule"] .work__link { perspective: 900px; overflow: visible; }
    [data-hover="bascule"] .work__media { transform-origin: 50% 100%; }
    [data-hover="bascule"] .work__link:is(:hover, :focus-visible) .work__media {
        transform: rotateX(6deg) rotateY(-4deg) scale(.97);
        box-shadow: 0 18px 30px -18px rgb(0 0 0 / .45);
    }
    [data-hover="bascule"] .work__hover { opacity: 0; transform: translateY(8px); }
    [data-hover="bascule"] .work__link:is(:hover, :focus-visible) .work__hover { opacity: 1; transform: none; }

    /*
     * Variante « zoom léger » (par défaut) : l'image grossit de 4 % lentement, sans sortir
     * de son cadre ; titre et extrait montent en fondu sur un dégradé blanc qui laisse
     * l'œuvre visible au-dessus.
     */
    [data-hover="zoom"] .work__picture { overflow: hidden; }
    [data-hover="zoom"] .work__picture img { transition: transform .8s var(--ease); }
    [data-hover="zoom"] .work__link:is(:hover, :focus-visible) .work__picture img { transform: scale(1.04); }
    [data-hover="zoom"] .work__hover {
        padding-top: 48px;
        background: linear-gradient(to top, rgb(255 255 255 / .95) 0%, rgb(255 255 255 / .88) 55%, rgb(255 255 255 / 0) 100%);
        opacity: 0;
        transform: translateY(8px);
        transition: opacity .45s var(--ease) .05s, transform .45s var(--ease) .05s;
    }
    [data-hover="zoom"] .work__link:is(:hover, :focus-visible) .work__hover { opacity: 1; transform: none; }

    /* « Aucun effet » : pas d'animation ni de texte superposé. */
    [data-hover="aucun"] .work__hover { display: none; }
}

/* Apparition des œuvres à leur chargement. */
.js .work { opacity: 0; transform: translateY(14px); }
.js .work.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.gallery-more { display: flex; justify-content: center; padding: 8px 0 24px; }
.gallery-more__link { padding: 10px 18px; border: 1px solid var(--color-text); }
.js .gallery-more__link { display: none; }
.gallery-more.is-failed .gallery-more__link { display: inline-block; }

/*
 * Lightbox (PhotoSwipe, fond blanc comme le site).
 * Préfixe « html » : photoswipe.css est chargé après cette feuille et doit être surchargé.
 */

html .pswp {
    --pswp-bg: #fff;
    --pswp-placeholder-bg: #f2f2f2;
    --pswp-icon-color: #000;
    --pswp-icon-color-secondary: #fff;
    --pswp-icon-stroke-color: #fff;
    --pswp-icon-stroke-width: 0;
    --pswp-error-text-color: #000;
    font-family: var(--font);
    color: var(--color-text);
}
html .pswp__counter { color: var(--color-text); text-shadow: none; font-size: 14px; opacity: .7; }
html .pswp__caption {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(100%, 560px);
    max-height: 32vh;
    overflow-y: auto;
    padding: 14px var(--side) calc(16px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    text-align: center;
    font-size: var(--fs-small);
    line-height: 1.35;
    overscroll-behavior: contain;
}
html .pswp__caption > span { display: block; }
html .pswp__caption .caption__title { font-size: 18px; margin-bottom: 2px; }
html .pswp__caption .caption__note { font-style: italic; }
html .pswp__caption .caption__description { margin-top: .8em; text-wrap: pretty; }
html .pswp__caption .caption__description p { margin: 0 0 .6em; }

/* ---------- Formulaires ---------- */

.form { display: grid; gap: 18px; }
.form__field { display: grid; gap: 6px; }
.form label { font-size: var(--fs-small); }
.form input,
.form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--color-text);
    border-radius: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font: inherit;
    font-size: 16px; /* évite le zoom automatique d'iOS */
}
.form textarea { resize: vertical; min-height: 160px; }
.form__check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.form .form__check input { flex: none; width: 22px; min-height: 0; height: 22px; margin: 0; padding: 0; accent-color: var(--color-text); }
.newsletter__title { margin: 0 0 12px; font-size: 18px; }
.newsletter__intro { margin: 0 0 20px; }
.form__notice { margin: 0; color: var(--color-muted); font-size: 13px; }
.form__error { color: var(--color-sold); font-size: var(--fs-small); }
.form__field.has-error input,
.form__field.has-error textarea { border-color: var(--color-sold); }
/* Champ piège : hors écran plutôt que display:none, que certains robots repèrent. */
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-message { margin: 0 0 20px; padding: 12px 16px; border: 1px solid currentColor; }
.form-message p { margin: 0 0 .5em; }
.form-message p:last-child { margin-bottom: 0; }
.form-message--error { color: var(--color-sold); }
.form-message--success { color: var(--color-text); }
.form-message a { text-decoration: underline; }
.form__notice a { text-decoration: underline; }

.button {
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    background: var(--color-text);
    color: var(--color-bg);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.button--block { width: 100%; }

/* ---------- Remonter en haut ---------- */

/* Cartouche blanc à ombre légère, comme le sous-menu ; sous le panneau du menu mobile et la lightbox. */
.to-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 35;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: var(--shadow-soft), 0 0 0 1px rgb(0 0 0 / .06);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { box-shadow: 0 4px 16px rgb(0 0 0 / .14), 0 0 0 1px rgb(0 0 0 / .08); }
.to-top:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
@media (min-width: 900px) {
    .to-top { right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); }
    /* Le contenu fait 877 px : le bouton reste dans la marge, la ligne du bas n'a pas besoin de place. */
    .site-footer__bottom { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ---------- Footer ---------- */

.site-footer { margin-top: 16px; }
.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: calc(var(--content) + var(--side) * 2);
    margin: 0 auto;
    padding: 0 var(--side) 12px;
}
/*
 * Le logo a la hauteur du bloc de texte voisin : nombre de lignes × interligne.
 * Les lignes ne passent jamais à la ligne d'elles-mêmes (nowrap) ; sur petit écran,
 * le numéro passe sur sa propre ligne (4 lignes) et le corps diminue.
 */
.signature {
    --sig-lines: 3;
    /* 24 px au moins : le téléphone et l'e-mail, sur deux lignes, restent des cibles tactiles assez grandes. */
    --sig-lh: max(1.3em, 24px);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: var(--fs-signature);
    line-height: var(--sig-lh);
}
.signature p { margin: 0; white-space: nowrap; }
.signature__logo { flex: none; }
.signature__logo img { width: auto; height: calc(var(--sig-lines) * var(--sig-lh)); }
.signature a { display: inline-block; }
.br-narrow { display: none; }

@media (max-width: 479.98px) {
    .signature { --sig-lines: 4; }
    .br-narrow { display: inline; }
}
@media (max-width: 399.98px) {
    :root { --fs-signature: 14px; }
}

/* Les pictos ont la hauteur du bouton Newsletter : 2 lignes × 1,25 + 2 × 6 px de padding. */
.footer-actions { display: flex; align-items: center; gap: 14px; font-size: var(--fs-body); }
.social { flex: none; width: calc(2.5em + 12px); height: calc(2.5em + 12px); }
.social svg { display: block; width: 100%; height: 100%; }
.newsletter-button {
    padding: 6px 12px;
    background: var(--color-button);
    color: #fff;
    font-weight: 700;
    line-height: 1.25;
}
.newsletter-button:hover { background: #000; text-decoration: none; }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    /* Sur mobile, place pour le bouton « remonter » (44 px + 16 px) sous la dernière ligne. */
    padding: 12px var(--side) calc(72px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-line);
    font-size: 13px;
    color: var(--color-muted);
}

@media (max-width: 599.98px) {
    .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
    .js .work { transform: none; }
    [data-hover] .work__link:is(:hover, :focus-visible) .work__media,
    [data-hover] .work__link:is(:hover, :focus-visible) .work__picture img { transform: none !important; }
}
