/* ============================= */
/* RESET DE BASE */
/* ============================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: #F4F4F4;
    color: #111111;
    overflow-y: scroll;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

:root {
    --site-border: 2px solid #111111;
}

/* ============================= */
/* HEADER */
/* ============================= */
.site-header {
    width: 100%;
    padding: 1.25rem;
    background-color: #F4F4F4;
}

.header-inner {
    width: 100%;
    min-height: 4.5rem;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.5rem 1.5rem;
    position: relative;
    border: var(--site-border);
    border-radius: 0;
    --mobile-menu-offset: 1.5rem;
}

/* Logo */
.header-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 20;
}

.header-logo img {
    width: clamp(10rem, 43vw, 13rem);
    height: auto;
    transform: translateY(3px);
}

/* Navigation */
.header-nav {
    display: none;
}

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

.header-nav a {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
    color: #111111;
    transition: transform 0.2s ease;
}

.header-nav a.active {
    font-weight: 700;
}

.header-nav a:hover,
.header-nav a:focus-visible {
    text-decoration: underline;
    font-weight: 700;
    text-underline-offset: 8px;
}

/* Réseaux sociaux */
.header-socials {
    display: none;
}

.header-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: auto;
    line-height: 1;
    transition: transform 0.2s ease;
}

.header-socials img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    transform: none;
}

.header-socials a:hover,
.header-socials a:focus-visible {
    transform: scale(1.08);
}

/* Bouton menu mobile */
.header-toggle {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    cursor: pointer;
    z-index: 20;
}

.header-toggle:hover,
.header-toggle:focus-visible {
    transform: scale(1.08);
}

/* Menu mobile ouvert */
.header-inner.is-open {
    padding-bottom: 0;
}

.header-inner.is-open .header-nav {
    display: block;
    width: calc(100% + 3rem);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-top: 0.5rem;
    background-color: #FFFFFF;
}

.header-inner.is-open .header-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    text-align: center;
}

.header-inner.is-open .header-nav li {
    border-top: var(--site-border);
}

.header-inner.is-open .header-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    width: 100%;
    font-size: 1.35rem;
}

.header-inner.is-open .header-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    position: static;
    width: calc(100% + 3rem);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    min-height: 6.75rem;
    padding: 0;
    border-top: var(--site-border);
    background-color: #FFFFFF;
}

/* ============================= */
/* FOOTER */
/* ============================= */
.site-footer {
    width: 100%;
    padding: 0 1.25rem 1.25rem;
    background-color: #F4F4F4;
}

.site-footer-inner {
    width: 100%;
    background-color: #FFFFFF;
    border: var(--site-border);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
}

.site-footer-nav {
    order: 1;
}

.site-footer-brand {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.site-footer-brand p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.site-footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-decoration: underline;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
    font-weight: 700;
    text-underline-offset: 6px;
}

.footer-link {
    text-decoration: underline;
}

.footer-link:hover {
    font-weight: 700;
    text-underline-offset: 6px;
}

/* ============================= */
/* UI ICONS */
/* ============================= */
.ui-icon,
.header-toggle-icon {
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.header-toggle-icon {
    width: 1.6rem;
    height: 1.6rem;
}

.header-toggle-icon-close {
    display: none;
}

.header-inner.is-open .header-toggle-icon-menu {
    display: none;
}

.header-inner.is-open .header-toggle-icon-close {
    display: block;
}

.home-carousel-button .ui-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.portfolio-modal-close .ui-icon,
.carousel-modal-close .ui-icon,
.static-modal-close .ui-icon {
    width: 1.45rem;
    height: 1.45rem;
}

.portfolio-modal-arrow .ui-icon,
.carousel-modal-arrow .ui-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ============================= */
/* HOME PAGE */
/* ============================= */
.home-page {
    min-height: 100vh;
}

.home-main {
    width: 100%;
    padding: 0 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Carousel */
.home-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    order: 2;
    background-color: #FFFFFF;
    border: var(--site-border);
    overflow: hidden;
}

.home-carousel-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.home-carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.home-carousel-image.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Buttons carousel */
.home-carousel-controls {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.home-carousel-button {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: var(--site-border);
    border-radius: 0;
    background-color: #FFFFFF;
    color: #111111;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.home-carousel-button:hover,
.home-carousel-button:focus-visible {
    transform: scale(1.08);
}

/* Texte intro */
.home-intro {
    width: 100%;
    aspect-ratio: 1 / 1;
    order: 1;
    background-color: #FFFFFF;
    border: var(--site-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.home-intro-content {
    width: 100%;
    max-width: 24rem;
}

.home-intro h1 {
    margin: 0 0 2rem;
    font-size: clamp(2.5rem, 12vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.home-intro p {
    margin: 0;
    font-size: clamp(1rem, 4.8vw, 1.35rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

/* ============================= */
/* IMAGE MODALS : PORTFOLIO / CAROUSEL / STATIC */
/* ============================= */

body.modal-open {
    overflow: hidden;
}

/* Fond global */
.portfolio-modal,
.carousel-modal,
.static-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background-color: rgba(244, 244, 244, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.portfolio-modal.is-open,
.carousel-modal.is-open,
.static-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Conteneur global invisible */
.portfolio-modal-content,
.carousel-modal-content,
.static-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    overflow: visible;
}

/* Bouton fermer */
.portfolio-modal-close,
.carousel-modal-close,
.static-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 30;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: var(--site-border);
    border-radius: 0;
    background-color: #FFFFFF;
    color: #111111;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.portfolio-modal-close:hover,
.portfolio-modal-close:focus-visible,
.carousel-modal-close:hover,
.carousel-modal-close:focus-visible,
.static-modal-close:hover,
.static-modal-close:focus-visible {
    transform: scale(1.08);
}

/* Main : plus de colonnes gauche/droite */
.portfolio-modal-main,
.carousel-modal-main,
.static-modal-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bloc central image + caption */
.portfolio-modal-artwork,
.carousel-modal-artwork,
.static-modal-artwork {
    width: fit-content;
    max-width: calc(100vw - 2.5rem);
    max-height: calc(100dvh - 2.5rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Cadre image */
.portfolio-modal-image-wrapper,
.carousel-modal-image-wrapper,
.static-modal-image-wrapper {
    position: relative;
    width: fit-content;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    border: var(--site-border);
    overflow: hidden;
}

/* Image */
.portfolio-modal-image,
.carousel-modal-image,
.static-modal-image {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 2.5rem);
    max-height: calc(100dvh - 12rem);
    object-fit: contain;
}

/* Flèches sur l’image, en bas à droite */
.portfolio-modal-controls,
.carousel-modal-controls {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.portfolio-modal-arrow,
.carousel-modal-arrow {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: var(--site-border);
    border-radius: 0;
    background-color: #FFFFFF;
    color: #111111;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.portfolio-modal-arrow:hover,
.portfolio-modal-arrow:focus-visible,
.carousel-modal-arrow:hover,
.carousel-modal-arrow:focus-visible {
    transform: scale(1.08);
}

/* Caption : même largeur que l’image */
.portfolio-modal-caption,
.carousel-modal-caption,
.static-modal-caption {
    width: var(--modal-image-width, 100%);
    max-width: 100%;
    padding: 1rem 1.25rem;
    background-color: #FFFFFF;
    border-right: var(--site-border);
    border-bottom: var(--site-border);
    border-left: var(--site-border);
    text-align: center;
    overflow-wrap: break-word;
}

.portfolio-modal-caption p,
.carousel-modal-caption p,
.static-modal-caption p {
    margin: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

.portfolio-modal-title,
.carousel-modal-title,
.static-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.portfolio-modal-year,
.portfolio-modal-materials,
.portfolio-modal-size,
.carousel-modal-year,
.carousel-modal-materials,
.carousel-modal-size,
.static-modal-year,
.static-modal-materials,
.static-modal-size {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    line-height: 1.2;
}

.static-modal-item {
    display: block;
    padding: 0;
    border-radius: 0;
    background-color: #FFFFFF;
    cursor: pointer;
    overflow: hidden;
    appearance: none;
}

.static-modal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.static-modal-item:hover img,
.static-modal-item:focus-visible img {
    transform: scale(1.035);
    opacity: 0.9;
}

/* État temporaire pendant le chargement des images de modale */
.portfolio-modal-artwork.is-loading,
.carousel-modal-artwork.is-loading,
.static-modal-artwork.is-loading {
    width: min(100%, 28rem);
}

.portfolio-modal-artwork.is-loading .portfolio-modal-image-wrapper,
.carousel-modal-artwork.is-loading .carousel-modal-image-wrapper,
.static-modal-artwork.is-loading .static-modal-image-wrapper {
    width: 100%;
    min-height: 0;
    border: none;
    background-color: transparent;
}

.portfolio-modal-artwork.is-loading .portfolio-modal-caption,
.carousel-modal-artwork.is-loading .carousel-modal-caption,
.static-modal-artwork.is-loading .static-modal-caption {
    width: 100%;
    border-top: var(--site-border);
}

/* ============================= */
/* PORTFOLIO PAGE */
/* ============================= */
.portfolio-page {
    min-height: 100vh;
}

.portfolio-main {
    width: 100%;
    padding: 0 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.portfolio-hero {
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.portfolio-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    padding: 0;
    border: var(--site-border);
    border-radius: 0;
    background-color: #FFFFFF;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.portfolio-item:hover img,
.portfolio-item:focus-visible img {
    transform: scale(1.035);
    opacity: 0.9;
}

/* ============================= */
/* CONTACT PAGE */
/* ============================= */
.contact-page {
    min-height: 100vh;
}

.contact-main {
    width: 100%;
    padding: 0 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-hero {
    width: 100%;
}

.contact-form-section,
.contact-info-section {
    width: 100%;
    background-color: #FFFFFF;
    border: var(--site-border);
}

.contact-form-inner,
.contact-info-inner {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem;
}

.contact-form-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: var(--site-border);
}

.contact-form-header h2,
.contact-info-inner h2 {
    margin: 0;
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.contact-form-header p {
    margin: 1rem 0 0;
    max-width: 42rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form-row label {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.contact-form-row input,
.contact-form-row textarea {
    width: 100%;
    border: var(--site-border);
    border-radius: 0;
    background-color: #FFFFFF;
    color: #111111;
    padding: 1rem;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    line-height: 1.35;
    outline: none;
}

.contact-form-row textarea {
    min-height: 12rem;
    resize: vertical;
}

.contact-form-row input::placeholder,
.contact-form-row textarea::placeholder {
    color: rgba(17, 17, 17, 0.55);
}

.contact-form-row input:focus-visible,
.contact-form-row textarea:focus-visible {
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.18);
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-turnstile {
    min-height: 0;
}

.contact-form-note {
    margin: 0;
    max-width: 42rem;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #333333;
    letter-spacing: -0.01em;
}

.contact-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.contact-submit-button {
    min-height: 3.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: var(--site-border);
    border-radius: 0;
    background-color: #FFFFFF;
    color: #111111;
    padding: 0 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.contact-submit-button:hover,
.contact-submit-button:focus-visible {
    transform: scale(1.04);
}

.contact-submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.contact-form-status {
    margin: 0;
    min-height: 1.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
}

.contact-form-status.is-success {
    color: #377326;
}

.contact-form-status.is-error {
    color: #B82525;
}

.contact-info-inner h2 {
    margin-bottom: 2rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.contact-info-card {
    border: var(--site-border);
    padding: 1.5rem;
    background-color: #FFFFFF;
}

.contact-info-card h3 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.contact-info-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.contact-form-note a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* ============================= */
/* LEGAL PAGES */
/* ============================= */
.legal-page {
    min-height: 100vh;
}

.legal-main {
    width: 100%;
    padding: 0 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.legal-hero,
.legal-content {
    width: 100%;
    background-color: #FFFFFF;
    border: var(--site-border);
}

.legal-hero-inner,
.legal-content-inner {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem;
}

.legal-kicker {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 0 0 2rem;
    font-size: clamp(2.5rem, 12vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.legal-hero p {
    margin: 0;
    max-width: 52rem;
    font-size: clamp(1rem, 4vw, 1.25rem);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.legal-hero p + p {
    margin-top: 1rem;
}

.legal-updated {
    font-weight: 500;
    color: #333333;
}

.legal-section {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.22);
}

.legal-section:first-child {
    padding-top: 0;
}

.legal-section:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.45rem, 5vw, 2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.legal-section p {
    margin: 0;
    max-width: 58rem;
    font-size: clamp(1rem, 3.6vw, 1.1rem);
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.legal-section p + p {
    margin-top: 1rem;
}

.legal-section ul {
    max-width: 58rem;
    margin: 1rem 0 0;
    padding-left: 1.25rem;
}

.legal-section li {
    margin: 0 0 0.5rem;
    font-size: clamp(1rem, 3.6vw, 1.1rem);
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.legal-section li:last-child {
    margin-bottom: 0;
}

.legal-section a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.legal-section strong {
    font-weight: 700;
}

/* ============================= */
/* ABOUT PAGE */
/* ============================= */
.about-page {
    min-height: 100vh;
}

.about-main {
    width: 100%;
    max-width: 100%;
    padding: 0 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow: hidden;
}

/* Section 1 : intro */
.about-hero {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-hero-text,
.about-hero-image {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    background-color: #FFFFFF;
    border: var(--site-border);
}

.about-hero-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.about-hero-content {
    width: 100%;
    max-width: 24rem;
}

.about-hero h1 {
    margin: 0 0 2rem;
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.about-hero p {
    margin: 0;
    font-size: clamp(1rem, 4.3vw, 1.35rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.about-hero-image {
    overflow: hidden;
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section 2 : biography */
.about-biography {
    background-color: #FFFFFF;
    border: var(--site-border);
}

.about-biography-inner {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem;
}

.about-biography-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: var(--site-border);
}

.about-biography h2 {
    margin: 0;
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.about-biography-header p {
    margin: 1rem 0 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

.about-biography-text {
    max-width: 58rem;
    margin: 0 auto;
}

.about-biography-text > p {
    margin: 0 0 1.5rem;
    font-size: clamp(1rem, 3.8vw, 1.2rem);
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.about-biography-text > p:last-child {
    margin-bottom: 0;
}

.about-biography blockquote {
    margin: 2.5rem 0;
    padding: 2rem;
    border: var(--site-border);
    background-color: #FFFFFF;
    text-align: center;
}

.about-biography blockquote p {
    margin: 0;
    font-size: clamp(1.6rem, 6vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.about-biography cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
}

/* Section 3 : studio */
.about-studio {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-studio .home-intro,
.about-studio .home-carousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    margin: 0;
}

/* Sur mobile, les containers texte gardent une base carrée,
   mais peuvent s'allonger si le contenu est plus long */
.home-intro,
.about-hero-text,
.about-studio .home-intro {
    aspect-ratio: auto;
    min-height: calc(100vw - 2.5rem);
}

.about-studio-text {
    order: 1;
}

.about-studio-carousel {
    order: 2;
}

.about-studio h2 {
    margin: 0 0 2rem;
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.about-studio p {
    line-height: 1.12;
}

.about-hero h1,
.about-studio h2 {
    overflow-wrap: break-word;
    word-break: normal;
}

/* ============================= */
/* RESUME PAGES */
/* ============================= */
.resume-page {
    min-height: 100vh;
}

.resume-main {
    width: 100%;
    padding: 0 1.25rem 1.25rem;

    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Subnav resume */
.resume-subnav {
    width: 100%;
    background-color: #FFFFFF;
}

.resume-subnav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.resume-subnav li {
    border: var(--site-border);
}

.resume-subnav li + li {
    margin-top: -2px;
}

.resume-subnav a {
    min-height: 4.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    background-color: #FFFFFF;
    transition: transform 0.2s ease;
}

.resume-subnav a.active {
    font-weight: 700;
}

.resume-subnav a:hover,
.resume-subnav a:focus-visible {
    text-decoration: underline;
    font-weight: 700;
    text-underline-offset: 8px;
}

/* Main resume layout */
.resume-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.resume-visual {
    order: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #FFFFFF;
    border: var(--site-border);
    overflow: hidden;
}

.resume-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resume-modal-item {
    display: block;
    padding: 0;

    border: var(--site-border);
    border-radius: 0;
    background-color: #FFFFFF;

    cursor: pointer;
    overflow: hidden;
    appearance: none;
}

.resume-modal-item img {
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.resume-modal-item:hover img,
.resume-modal-item:focus-visible img {
    transform: scale(1.035);
    opacity: 0.9;
}

.resume-panel {
    order: 2;
    width: 100%;
    min-height: calc(100vw - 2.5rem);
    background-color: #FFFFFF;
    border: var(--site-border);
}

.resume-panel-inner {
    width: 100%;
    padding: 2rem;
}

.resume-panel h1 {
    margin: 0 0 2rem;
    font-size: clamp(2.5rem, 12vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.resume-list-section {
    margin-top: 2.25rem;
}

.resume-list-section:first-of-type {
    margin-top: 0;
}

.resume-list-section h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.25rem, 5vw, 1.65rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.resume-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.resume-list-row {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.25rem;

    align-items: start;

    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.22);

    font-size: 1rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.resume-list-row:first-child {
    padding-top: 0;
}

.resume-list-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.resume-list-row span:first-child {
    grid-row: 1 / span 2;

    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
}

.resume-list-row span:nth-child(2) {
    font-weight: 600;
    line-height: 1.18;
}

.resume-list-row span:nth-child(3) {
    grid-column: 2;

    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.2;
    color: #333333;
}

.resume-list-row-two {
    grid-template-columns: minmax(0, 1fr);
}

.resume-list-row-two span:nth-child(2) {
    color: #111111;
}

.collections-page .resume-list-row-two span:nth-child(2),
.critical-reviews-page .resume-list-row-two span:nth-child(2) {
    font-weight: 400;
}

.resume-index-content .home-intro,
.resume-index-content .home-carousel {
    margin: 0;
}

/* ============================= */
/* TABLETTE / DESKTOP */
/* ============================= */
@media screen and (min-width: 768px) {
    .site-header {
        padding: 1.25rem;
    }

    .header-inner {
        min-height: 4.75rem;
        padding: 0.9rem 2rem;
    }

    .header-logo img {
        width: clamp(10rem, 18vw, 15.5rem);
    }

    .site-footer {
        padding: 0 1.75rem 1.75rem;
    }

    .site-footer-inner {
        padding: 1.5rem 2rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .site-footer-brand {
        order: 1;
    }

    .site-footer-nav {
        order: 2;
    }

    .site-footer-nav ul {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .home-main {
        padding: 0 1.75rem 1.75rem;
        gap: 1.75rem;
    }

    .portfolio-main {
        padding: 0 1.75rem 1.75rem;
        gap: 1.75rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }

    .contact-main {
        padding: 0 1.75rem 1.75rem;
        gap: 1.75rem;
    }

    .contact-form-inner,
    .contact-info-inner {
        padding: 3rem;
    }

    .contact-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }

    .legal-main {
        padding: 0 1.75rem 1.75rem;
        gap: 1.75rem;
    }

    .legal-hero-inner,
    .legal-content-inner {
        padding: 3rem;
    }

    .about-main {
        padding: 0 1.75rem 1.75rem;
        gap: 1.75rem;
    }

    .about-hero,
    .about-studio {
        gap: 1.75rem;
    }

    .about-biography-inner {
        padding: 3rem;
    }

    .about-biography-text > p {
        font-size: 1.15rem;
    }

    .resume-main {
        padding: 0 1.25rem 1.25rem;
        gap: 1.25rem;
    }

    .resume-subnav ul {
        flex-direction: row;
    }

    .resume-subnav li {
        flex: 1;
    }

    .resume-subnav li + li {
        margin-top: 0;
        margin-left: -2px;
    }

    .resume-subnav a {
        min-height: 3.25rem;
        font-size: 1.05rem;
    }

    .resume-content {
        gap: 1.75rem;
    }

    .resume-panel-inner {
        padding: 3rem;
    }

    .resume-list-row {
        grid-template-columns: 4rem minmax(0, 1.2fr) minmax(0, 0.95fr);
        column-gap: 1.75rem;
        row-gap: 0;
        align-items: start;
    }

    .resume-list-row span:nth-child(3) {
        grid-column: auto;
    }

    .resume-list-row-two {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }

    .critical-reviews-page .resume-list-row-two {
        grid-template-columns: minmax(0, 16rem) max-content;
        column-gap: 1.75rem;
        justify-content: start;
    }

    .art-fairs-page .resume-list-row {
        grid-template-columns: 4rem minmax(0, 15rem) max-content;
        column-gap: 1.5rem;
        justify-content: start;
    }

    .portfolio-modal,
    .carousel-modal,
    .static-modal {
        padding: 1.75rem;
    }

    .portfolio-modal-close,
    .carousel-modal-close,
    .static-modal-close {
        width: 3rem;
        height: 3rem;
    }

    .portfolio-modal-artwork,
    .carousel-modal-artwork,
    .static-modal-artwork {
        max-width: calc(100vw - 3.5rem);
        max-height: calc(100dvh - 3.5rem);
    }

    .portfolio-modal-image,
    .carousel-modal-image,
    .static-modal-image {
        max-width: calc(100vw - 3.5rem);
        max-height: calc(100dvh - 12rem);
    }

    .portfolio-modal-controls,
    .carousel-modal-controls {
        right: 1rem;
        bottom: 1rem;
    }

    .portfolio-modal-arrow,
    .carousel-modal-arrow {
        width: 3rem;
        height: 3rem;
    }
}

@media screen and (min-width: 1024px) {
    .site-header {
        padding: 1.25rem 1.85rem;
    }

    .header-inner {
        min-height: 4.4rem;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: clamp(2rem, 4vw, 5rem);
        padding: 0.75rem clamp(2rem, 4vw, 4.25rem);
    }

    .header-logo {
        justify-self: start;
    }

    .header-logo img {
        width: clamp(10rem, 16vw, 14rem);
    }

    .header-nav {
        display: block;
        justify-self: center;
        width: 100%;
    }

    .header-nav ul {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(1.4rem, 2.6vw, 3.25rem);
    }

    .header-nav a {
        font-size: clamp(1rem, 1.15vw, 1.25rem);
        white-space: nowrap;
    }

    .header-socials {
        display: flex;
        align-items: center;
        justify-self: end;
        gap: 1.15rem;
        width: auto;
        padding: 0;
    }

    .header-socials a {
        width: auto;
        height: auto;
    }

    .header-socials img {
        width: 2.35rem;
        height: 2.35rem;
    }

    .header-toggle {
        display: none;
    }

    .site-footer {
        padding: 0 1.85rem 1.85rem;
    }

    .site-footer-inner {
        padding: 1.35rem clamp(2rem, 4vw, 4.25rem);
    }

    .site-footer-brand {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
    }

    .site-footer-nav ul {
        gap: 2rem;
    }

    .portfolio-modal-close .ui-icon,
    .carousel-modal-close .ui-icon,
    .static-modal-close .ui-icon {
        width: 1.6rem;
        height: 1.6rem;
    }

    .portfolio-modal-arrow .ui-icon,
    .carousel-modal-arrow .ui-icon {
        width: 1.35rem;
        height: 1.35rem;
    }

    .home-page {
        min-height: 100vh;
        overflow-y: auto;
    }

    .home-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 1.85rem;
        padding: 0 1.85rem 1.85rem;
    }

    .home-carousel {
        order: 2;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
    }

    .home-intro {
        order: 1;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
        justify-content: flex-start;
        padding: clamp(3rem, 6vw, 5.5rem);
    }

    .home-intro-content {
        max-width: 28rem;
        align-self: center;
    }

    .home-intro h1 {
        font-size: clamp(3rem, 4.5vw, 5rem);
        margin-bottom: 2rem;
    }

    .home-intro p {
        font-size: clamp(1.1rem, 1.6vw, 1.65rem);
    }

    .portfolio-main {
        padding: 0 1.85rem 1.85rem;
        gap: 1.85rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.85rem;
    }

    .contact-main {
        padding: 0 1.85rem 1.85rem;
        gap: 1.85rem;
    }

    .contact-form-inner,
    .contact-info-inner {
        padding: clamp(3rem, 5vw, 5rem);
    }

    .contact-form-header h2,
    .contact-info-inner h2 {
        font-size: clamp(3rem, 4.5vw, 5rem);
    }

    .contact-form-header p,
    .contact-info-card p {
        font-size: 1.1rem;
    }

    .contact-form-row label {
        font-size: 1.05rem;
    }

    .contact-form-row input,
    .contact-form-row textarea {
        font-size: 1.05rem;
    }

    .contact-submit-button {
        min-height: 4rem;
        padding: 0 1.75rem;
        font-size: 1.05rem;
    }

    .legal-main {
        padding: 0 1.85rem 1.85rem;
        gap: 1.85rem;
    }

    .legal-hero-inner,
    .legal-content-inner {
        padding: clamp(3rem, 5vw, 5rem);
    }

    .legal-hero h1 {
        font-size: clamp(3rem, 4.5vw, 5rem);
    }

    .legal-hero p {
        font-size: clamp(1.05rem, 1.35vw, 1.3rem);
    }

    .legal-section h2 {
        font-size: clamp(1.6rem, 2vw, 2.15rem);
    }

    .legal-section p,
    .legal-section li {
        font-size: 1.08rem;
    }

    .about-main {
        padding: 0 1.85rem 1.85rem;
        gap: 1.85rem;
        overflow: visible;
    }

    .about-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 1.85rem;
    }

    .about-hero-text,
    .about-hero-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        min-height: 0;
        height: auto;
    }

    .about-hero-text {
        justify-content: flex-start;
        padding: clamp(3rem, 6vw, 5.5rem);
    }

    .about-hero-content {
        align-self: center;
        max-width: 32rem;
    }

    .about-hero h1 {
        font-size: clamp(3rem, 4.5vw, 5rem);
    }

    .about-hero p {
        font-size: clamp(1.1rem, 1.6vw, 1.55rem);
        max-width: none;
    }

    .about-biography-inner {
        padding: clamp(3rem, 5vw, 5rem);
    }

    .about-biography h2 {
        font-size: clamp(3rem, 4.5vw, 5rem);
    }

    .about-biography-text > p {
        font-size: 1.18rem;
        line-height: 1.5;
    }

    .about-studio {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 1.85rem;
    }

    .about-studio .home-intro,
    .about-studio .home-carousel {
        width: 100%;
        aspect-ratio: 1 / 1;
        min-height: 0;
        height: auto;
    }

    .about-studio .home-intro {
        justify-content: flex-start;
        padding: clamp(3rem, 6vw, 5.5rem);
    }

    .about-studio .home-intro-content {
        align-self: center;
        max-width: 32rem;
    }

    .about-studio h2 {
        font-size: clamp(3rem, 4.5vw, 5rem);
    }

    .about-studio p {
        font-size: clamp(1.1rem, 1.6vw, 1.55rem);
    }

    .resume-page {
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
        display: block;
    }

    .resume-main {
        width: 100%;
        min-height: 0;
        padding: 0 1.85rem 1.85rem;
        gap: 1.25rem;
    }

    .resume-subnav a {
        min-height: 3.25rem;
        font-size: clamp(0.95rem, 1vw, 1.1rem);
    }

    .resume-content {
        width: 100%;
        min-height: 0;

        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 1.25rem;
    }

    /* Pages resume classiques : texte + image statique */
    .resume-panel {
        order: 1;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    .resume-visual {
        order: 2;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
    }

    /* Le carré texte reste carré, mais son contenu interne peut scroller */
    .resume-panel-inner {
        height: 100%;
        overflow-y: auto;
        padding: clamp(2rem, 3.5vw, 4rem);
        scrollbar-gutter: stable;
    }

    /* Landing page resume/index.html : texte + carousel */
    .resume-index-page .home-intro,
    .resume-index-page .home-carousel {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
    }

    .resume-index-page .home-intro {
        justify-content: flex-start;
        padding: clamp(3rem, 6vw, 5.5rem);
    }

    .resume-panel h1 {
        font-size: clamp(3rem, 4.5vw, 5rem);
    }

    .resume-list-section h2 {
        font-size: clamp(1.25rem, 1.6vw, 1.65rem);
    }

    .resume-list-row {
        grid-template-columns: 3.75rem minmax(0, 1.28fr) minmax(0, 1fr);
        column-gap: 1.75rem;
        row-gap: 0;
        align-items: start;
        font-size: clamp(0.82rem, 0.95vw, 1rem);
        line-height: 1.18;
    }

    .resume-list-row-two {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        column-gap: 1.75rem;
    }

    .critical-reviews-page .resume-list-row-two {
        grid-template-columns: minmax(0, 15rem) max-content;
        column-gap: 2rem;
        justify-content: start;
    }

    .art-fairs-page .resume-list-row {
        grid-template-columns: 3.75rem minmax(0, 15rem) max-content;
        column-gap: 2rem;
        justify-content: start;
    }

    .resume-index-page .resume-content {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.85rem;
    }

    .portfolio-modal,
    .carousel-modal,
    .static-modal {
        padding: 2rem;
    }

    .portfolio-modal-close,
    .carousel-modal-close,
    .static-modal-close {
        width: 3.25rem;
        height: 3.25rem;
    }

    .portfolio-modal-artwork,
    .carousel-modal-artwork,
    .static-modal-artwork {
        max-width: min(76vw, 86rem);
        max-height: calc(100dvh - 4rem);
    }

    .portfolio-modal-image,
    .carousel-modal-image,
    .static-modal-image {
        max-width: min(76vw, 86rem);
        max-height: calc(100dvh - 12rem);
    }

    .portfolio-modal-controls,
    .carousel-modal-controls {
        right: 1rem;
        bottom: 1rem;
        gap: 0.6rem;
    }

    .portfolio-modal-arrow,
    .carousel-modal-arrow {
        width: 3.25rem;
        height: 3.25rem;
    }

    .portfolio-modal-caption,
    .carousel-modal-caption,
    .static-modal-caption {
        padding: 1.35rem 1.5rem;
    }

    .portfolio-modal-title,
    .carousel-modal-title,
    .static-modal-title {
        font-size: 1.45rem;
    }

    .portfolio-modal-year,
    .portfolio-modal-materials,
    .portfolio-modal-size,
    .carousel-modal-year,
    .carousel-modal-materials,
    .carousel-modal-size,
    .static-modal-year,
    .static-modal-materials,
    .static-modal-size {
        font-size: 1rem;
    }

    /* ============================= */
    /* DESKTOP ORDER VARIATIONS */
    /* ============================= */
    .home-page .home-carousel {
        order: 1;
    }

    .home-page .home-intro {
        order: 2;
    }

    .about-page .about-hero-image {
        order: 1;
    }

    .about-page .about-hero-text {
        order: 2;
    }

    .resume-page:not(.resume-index-page) .resume-visual {
        order: 1;
    }

    .resume-page:not(.resume-index-page) .resume-panel {
        order: 2;
    }
}

@media screen and (min-width: 1440px) {
    .site-header {
        padding: 1.25rem 1.85rem 0;
    }

    .header-inner {
        min-height: 4.65rem;
        padding-inline: 4.25rem;
        column-gap: clamp(3rem, 5vw, 6rem);
    }

    .site-footer {
        max-width: 150rem;
        margin: 0 auto;
        padding: 0 1.85rem 1.85rem;
    }

    .home-main {
        max-width: 150rem;
        margin: 0 auto;
        padding: 1.85rem;
        gap: 1.85rem;
    }

    .portfolio-main {
        padding: 1.85rem;
        gap: 1.85rem;
    }

    .contact-main {
        padding: 1.85rem;
        gap: 1.85rem;
    }

    .legal-main {
        max-width: 150rem;
        margin: 0 auto;
        padding: 1.85rem;
        gap: 1.85rem;
    }

    .about-main {
        padding: 1.85rem 1.85rem 1.85rem;
        gap: 1.85rem;
    }

    .about-hero-text,
    .about-hero-image,
    .about-studio .home-intro,
    .about-studio .home-carousel {
        aspect-ratio: 1 / 1;
        min-height: 0;
        height: auto;
    }

    .resume-main {
        max-width: 150rem;
        margin: 0 auto;
        padding: 1.85rem;
        gap: 1.85rem;
    }
}