/* Polices auto-hebergees (OFL, sous-ensemble latin, voir static/fonts/README.md).
   Pas de requete vers un tiers : pas de fuite d'IP, pas de FOIT bloquant. */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage-grotesque.014c5c931b53.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces.eb2486760f75.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter.8e433c0592f7.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --blue: #1a05d8;
    --blue-deep: #1200aa;
    --pink: #ffd2e7;
    --paper: #f4f1ef;
    --ink: #15121d;
    --muted: rgba(var(--ink-rgb), 0.68);
    --white: #fffdf8;
    /* Couleurs du theme actif (CMS > Reglages > Theme de couleurs) : redefinies par un
       <style> apres ce fichier. Valeurs ci-dessous = theme d'origine. */
    --blue-rgb: 26, 5, 216;
    --paper-rgb: 244, 241, 239;
    --white-rgb: 255, 253, 248;
    --ink-rgb: 21, 18, 29;
    --blue-deep-rgb: 18, 0, 170;
    --on-blue: var(--white);
    --focus: #fff6a8;
    /* Matiere des aplats de dominante (degrade / grain) : unis par defaut. */
    --surface-blue: var(--blue);
    --grain: none;
    --radius: 8px;
    --page-gutter: clamp(1.2rem, 6vw, 5rem);
    --content-width: 74rem;
    --footer-height: 3.25rem;
    --font-body: Arial, Helvetica, sans-serif;
    /* Largeur du bandeau vertical (BIO, COMEDIEN...) et de son trait de separation. */
    --band-w: clamp(4.2rem, 8vw, 7rem);
    --divider-w: 2px;
    --font-display: Arial, Helvetica, sans-serif;
}

/* Theme typographique choisi dans le CMS (HomePage.style_typographique),
   applique a tout le site via la classe du <body>. */
.font-theme-signature {
    --font-display: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
    --font-body: "Inter", Arial, Helvetica, sans-serif;
}

.font-theme-editorial {
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4,
.hero-screen__title,
.hero-triptych a,
.bio-section__band,
.activity-zone__band,
.vertical-section__band,
.main-nav,
.eyebrow,
.button {
    font-family: var(--font-display);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* L'en-tete est fixe : sans cela, les ancres (#contact...) s'arretent dessous. */
    scroll-padding-top: 4.5rem;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-body);
    line-height: 1.5;
}

body:not(.home-snap) {
    min-height: 100svh;
}

body:not(.home-snap) main {
    padding-bottom: var(--footer-height);
}

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 0.22rem;
}

main:focus {
    outline: none;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius);
    color: var(--blue);
    background: var(--white);
    font-weight: 900;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem clamp(1rem, 3vw, 2.4rem);
    color: var(--on-blue);
    background: rgba(var(--blue-deep-rgb), 0.86);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.site-header a {
    pointer-events: auto;
}

.brand {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    text-decoration: none;
    background: transparent;
}

.brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    color: currentColor;
}

.main-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.35rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.main-nav a {
    position: relative;
    flex: 0 0 auto;
    padding: 0.16rem 0 0.28rem;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.12rem;
    height: 0.22rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0.25);
    transform-origin: left center;
    transition: opacity 160ms ease, transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="true"]::after {
    opacity: 1;
    transform: scaleX(1);
}

.hero-screen {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: stretch;
    overflow: hidden;
    padding: clamp(5.4rem, 8vw, 7.2rem) var(--page-gutter) clamp(4.2rem, 7vw, 6rem);
    color: var(--ink);
    background: var(--paper);
}

.hero-screen::before,
.hero-screen::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.hero-screen::before {
    inset: 0;
    background:
        linear-gradient(90deg, var(--paper) 0%, rgba(var(--paper-rgb), 0.96) 10%, rgba(var(--paper-rgb), 0.62) 24%, rgba(var(--paper-rgb), 0.16) 39%, rgba(var(--paper-rgb), 0) 52%, rgba(var(--paper-rgb), 0) 66%, rgba(var(--paper-rgb), 0.2) 78%, rgba(var(--paper-rgb), 0.78) 91%, var(--paper) 100%),
        linear-gradient(0deg, var(--paper) 0%, rgba(var(--paper-rgb), 0.82) 12%, rgba(var(--paper-rgb), 0) 38%),
        linear-gradient(180deg, rgba(var(--paper-rgb), 0.82) 0%, rgba(var(--paper-rgb), 0) 30%);
}

.hero-screen::after {
    inset: 1rem;
    border: 1px solid rgba(var(--ink-rgb), 0.12);
}

.hero-screen__content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(14rem, 34rem) minmax(12rem, 24rem);
    grid-template-rows: auto 1fr auto;
    align-items: start;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    min-height: calc(100svh - clamp(5.4rem, 8vw, 7.2rem) - clamp(4.2rem, 7vw, 6rem));
}

.eyebrow {
    margin: 0 0 0.8rem;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-screen__title {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: var(--blue);
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: 0;
    text-shadow: 0.04em 0.04em 0 rgba(var(--white-rgb), 0.82);
    text-transform: uppercase;
}

.hero-screen__title span,
.hero-screen__title strong {
    display: block;
}

.hero-screen__title span {
    margin-left: 0.22em;
    font-size: clamp(2rem, 5.55vw, 4.85rem);
}

.hero-screen__title strong {
    font-size: clamp(4rem, 10.6vw, 9.2rem);
    font-weight: 900;
}

.hero-triptych {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.6rem;
    justify-self: end;
    align-self: center;
    margin: 0;
    max-width: 24rem;
}

.hero-triptych a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    max-width: min(100%, 22rem);
    min-height: 0;
    padding: 0.34rem 0.52rem 0.4rem;
    border: 1px solid currentColor;
    border-radius: 0;
    color: var(--blue);
    background: rgba(var(--white-rgb), 0.78);
    box-shadow: none;
    backdrop-filter: blur(5px);
    font-size: clamp(1.05rem, 1.75vw, 1.46rem);
    font-weight: 900;
    line-height: 1;
    text-align: right;
    text-decoration: none;
    transform: rotate(-2.5deg);
    transform-origin: center;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.hero-triptych a:nth-child(2) {
    color: var(--blue-deep);
    background: rgba(var(--white-rgb), 0.88);
    transform: translateY(0.55rem) rotate(1.8deg);
}

.hero-triptych a:nth-child(3) {
    transform: translateY(-0.18rem) rotate(-1.2deg);
}

.hero-triptych a:nth-child(4) {
    color: var(--on-blue);
    background: rgba(var(--blue-rgb), 0.9);
    transform: translateY(0.18rem) rotate(1.1deg);
}

.hero-triptych a:hover {
    background: var(--white);
    box-shadow: 0.16rem 0.18rem 0 rgba(var(--blue-rgb), 0.14);
    transform: translateY(-0.12rem) rotate(-2.5deg);
}

.hero-triptych a:nth-child(2):hover {
    transform: translateY(0.43rem) rotate(1.8deg);
}

.hero-triptych a:nth-child(3):hover {
    transform: translateY(-0.3rem) rotate(-1.2deg);
}

.hero-triptych a:nth-child(4):hover {
    transform: translateY(0.06rem) rotate(1.1deg);
}

.hero-triptych a[aria-current="true"] {
    color: var(--on-blue);
    background: var(--blue);
    box-shadow: 0.16rem 0.18rem 0 rgba(var(--blue-rgb), 0.16);
}

.hero-screen__baseline {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin: 0 0 clamp(-2.2rem, -2vw, -1rem) clamp(0.2rem, 3.5vw, 3rem);
    max-width: 25rem;
    color: var(--ink);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    font-weight: 700;
    line-height: 1.35;
}

.hero-screen__photo {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.hero-screen__photo picture,
.hero-screen__photo img {
    width: 100%;
    height: 100%;
}

.hero-screen__photo picture {
    display: block;
}

.hero-screen__photo img {
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.scroll-cue {
    position: absolute;
    left: clamp(1rem, 4vw, 3rem);
    bottom: 1.4rem;
    font-size: 2.2rem;
    font-weight: 900;
    text-decoration: none;
}

.section {
    padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 6vw, 5rem);
}

.section--paper {
    background: var(--paper);
}

.bio-section {
    position: relative;
    display: grid;
    grid-template-columns: var(--band-w) minmax(0, 1fr);
    overflow: hidden;
    min-height: 100vh;
    padding: 0;
    color: var(--ink);
    /* Trait de separation du bandeau : sur TOUTE la hauteur de la section (voir --divider-w). */
    background:
        linear-gradient(var(--blue), var(--blue)) calc(var(--band-w) - var(--divider-w)) 0 / var(--divider-w) 100% no-repeat,
        linear-gradient(90deg, rgba(var(--blue-rgb), 0.06) 1px, transparent 1px) 0 0 / 3.4rem 3.4rem,
        linear-gradient(0deg, rgba(var(--blue-rgb), 0.05) 1px, transparent 1px) 0 0 / 3.4rem 3.4rem,
        var(--paper);
}

.bio-section::before,
.bio-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.bio-section::before {
    width: clamp(7rem, 12vw, 12rem);
    height: clamp(7rem, 12vw, 12rem);
    right: clamp(1rem, 5vw, 4rem);
    top: clamp(2rem, 6vw, 5rem);
    border: 3px solid var(--blue);
    border-radius: 54% 46% 58% 42% / 48% 56% 44% 52%;
    opacity: 0.12;
    transform: rotate(12deg);
}

.bio-section::after {
    width: clamp(8rem, 16vw, 16rem);
    height: 3.8rem;
    left: clamp(1rem, 5vw, 4rem);
    bottom: clamp(1.5rem, 4vw, 3rem);
    border-bottom: 4px solid var(--blue);
    border-radius: 0 0 70% 45%;
    opacity: 0.2;
    transform: rotate(-7deg);
}

.bio-section__band,
.activity-zone__band,
.vertical-section__band {
    position: sticky;
    top: 5.4rem;
    align-self: start;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 5.4rem);
    padding: 1rem 0.2rem;
    border-right: 0;
    font-size: clamp(2.1rem, 5.5vw, 5.2rem);
    font-weight: 900;
    line-height: 0.86;
    text-align: center;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.bio-section__band,
.vertical-section__band {
    color: var(--blue);
}

.bio-section__inner {
    display: grid;
    grid-template-columns: minmax(14rem, 0.62fr) minmax(0, 1fr);
    --bio-gap: clamp(3.6rem, 9vw, 7rem);
    gap: var(--bio-gap);
    align-items: center;
    max-width: 74rem;
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) var(--page-gutter);
}

.bio-section__heading {
    position: sticky;
    top: 7rem;
}

.bio-section__heading .eyebrow {
    color: var(--blue);
}

/* Fleche titre -> bulle : UN SEUL dessin SVG (trait + pointe), donc la pointe est
   exactement le bout du trait. Avant : un arc et un triangle CSS positionnes separement,
   dont la pointe flottait ailleurs. La pointe (92 % de la largeur, 30 % de la hauteur) est
   calee au milieu vertical de la colonne, comme la queue de la bulle. */
.bio-section__heading::after {
    content: "";
    position: absolute;
    top: 50%;
    /* Part 1 rem a l'interieur de la colonne ; la pointe (92 % de la largeur) s'arrete a 0,4 rem
       du sommet de la queue de la bulle (a 0,97 rem a gauche du cadre). */
    left: calc(100% - 1rem);
    width: calc((var(--bio-gap) - 0.37rem) / 0.92);
    aspect-ratio: 100 / 60;
    transform: translateY(-30%);
    pointer-events: none;
    /* SVG utilise comme masque : la couleur vient de --blue (un SVG en url() ne lit pas les variables). */
    background-color: var(--blue);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60' fill='none' stroke='%23000' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 52C30 58 60 40 92 18'/%3E%3Cpath d='M78.1 19.6L92 18L85.5 30.4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60' fill='none' stroke='%23000' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 52C30 58 60 40 92 18'/%3E%3Cpath d='M78.1 19.6L92 18L85.5 30.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bio-section__heading h2 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(2.35rem, 5.6vw, 5rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0;
}

.bio-section__doodles {
    position: relative;
    display: grid;
    gap: 0.72rem;
    justify-items: start;
    margin-top: clamp(1.4rem, 4vw, 2.5rem);
    padding-left: clamp(0.6rem, 2vw, 1.5rem);
}

.bio-section__doodles span {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.4rem 0.85rem 0.45rem;
    border: 2px solid var(--blue);
    border-radius: 64% 36% 58% 42% / 48% 54% 46% 52%;
    color: var(--blue);
    background: var(--white);
    box-shadow: 0.22rem 0.24rem 0 rgba(var(--blue-rgb), 0.14);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.bio-section__doodles span:nth-child(1) {
    transform: rotate(-5deg);
}

.bio-section__doodles span:nth-child(2) {
    margin-left: clamp(2rem, 5vw, 4rem);
    color: var(--blue-deep);
    background: var(--white);
    transform: rotate(3deg);
}

.bio-section__doodles span:nth-child(3) {
    margin-left: clamp(0.8rem, 3vw, 2rem);
    color: var(--on-blue);
    background: var(--blue);
    box-shadow: 0.22rem 0.24rem 0 rgba(var(--blue-rgb), 0.16);
    transform: rotate(-2deg);
}

.bio-section__body {
    position: relative;
    max-width: none;
    margin: 0;
    padding: clamp(1.4rem, 3.5vw, 2.6rem);
    border: 3px solid var(--blue);
    border-radius: 58% 42% 52% 48% / 4% 5% 4% 6%;
    background: var(--white);
    box-shadow: 0.75rem 0.8rem 0 rgba(var(--blue-rgb), 0.12);
    transform: rotate(-0.35deg);
}

.bio-section__body::before,
.bio-section__body::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.bio-section__body::before {
    /* Queue de la bulle : un carre de 1,5 rem tourne de 45 deg, centre SUR le trait du cadre
       (3 px) et rempli de blanc pour interrompre ce trait. Seuls deux cotes sont traces : ils
       forment la pointe « < » (bureau) ou « ^ » (mobile, voir plus bas). Son sommet est a
       ~0,97 rem du bord ; la fleche du titre s'arrete juste avant (voir .bio-section__heading). */
    left: -0.84rem;
    top: calc(50% - 0.75rem);
    width: 1.5rem;
    height: 1.5rem;
    border-left: 3px solid var(--blue);
    border-bottom: 3px solid var(--blue);
    background: var(--white);
    transform: rotate(45deg);
}

.bio-section__body::after {
    right: clamp(1rem, 4vw, 2.5rem);
    bottom: -1.25rem;
    width: clamp(3.2rem, 7vw, 5.5rem);
    height: 2rem;
    border-bottom: 3px solid var(--blue);
    border-radius: 0 0 60% 45%;
    transform: rotate(-8deg);
}

.bio-section__body > *:first-child {
    margin-top: 0;
}

.bio-section__body > *:last-child {
    margin-bottom: 0;
}

.activity-zone {
    position: relative;
    display: grid;
    grid-template-columns: var(--band-w) minmax(0, 1fr);
    min-height: 100vh;
}

.activity-zone--blue {
    color: var(--on-blue);
    background:
        linear-gradient(currentColor, currentColor) calc(var(--band-w) - var(--divider-w)) 0 / var(--divider-w) 100% no-repeat,
        var(--grain),
        var(--surface-blue);
}

.activity-zone--white {
    color: var(--ink);
    background:
        linear-gradient(currentColor, currentColor) calc(var(--band-w) - var(--divider-w)) 0 / var(--divider-w) 100% no-repeat,
        var(--white);
}

.vertical-section {
    display: grid;
    grid-template-columns: var(--band-w) minmax(0, 1fr);
    min-height: calc(100vh - 5.4rem);
}

.vertical-section--paper {
    color: var(--ink);
    background:
        linear-gradient(var(--blue), var(--blue)) calc(var(--band-w) - var(--divider-w)) 0 / var(--divider-w) 100% no-repeat,
        var(--paper);
}

.vertical-section__content,
.activity-zone__content {
    min-width: 0;
}

.zone-panel {
    position: relative;
    padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 6vw, 5rem);
}

.zone-panel + .zone-panel {
    padding-top: clamp(2rem, 5vw, 4rem);
}

.activity-zone--blue .section-heading h2,
.activity-zone--blue .zone-panel--contact h2 {
    color: var(--on-blue);
}

.activity-zone--blue .eyebrow,
.activity-zone--blue .section-heading .eyebrow {
    /* `.section-heading .eyebrow` (bleu) vient plus bas : sans la 2e forme, plus
       specifique, le sur-titre etait bleu sur fond bleu. */
    color: var(--pink);
}

.activity-zone--white .section-heading h2 {
    color: var(--blue);
}

.activity-zone--blue .empty-state {
    border-color: var(--white);
}

.activity-zone--blue .media-wall article {
    color: var(--ink);
    background: transparent;
}

.zone-panel--contact {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.contact-zone {
    min-height: 100vh;
    /* Garde le trait de separation du bandeau (defini sur .activity-zone--white) : ce fond
       l'ecrasait. */
    background:
        linear-gradient(currentColor, currentColor) calc(var(--band-w) - var(--divider-w)) 0 / var(--divider-w) 100% no-repeat,
        var(--paper);
}

.contact-zone .activity-zone__content {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--paper);
}

.contact-zone .activity-zone__content::before,
.contact-zone .activity-zone__content::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.contact-zone .activity-zone__content::before {
    background:
        linear-gradient(90deg, var(--paper) 0%, rgba(var(--paper-rgb), 0.96) 14%, rgba(var(--paper-rgb), 0.58) 25%, rgba(var(--paper-rgb), 0.12) 35%, rgba(var(--paper-rgb), 0) 43%, rgba(var(--paper-rgb), 0) 57%, rgba(var(--paper-rgb), 0.12) 65%, rgba(var(--paper-rgb), 0.58) 75%, rgba(var(--paper-rgb), 0.96) 86%, var(--paper) 100%),
        linear-gradient(0deg, var(--paper) 0%, rgba(var(--paper-rgb), 0.72) 8%, rgba(var(--paper-rgb), 0) 28%),
        linear-gradient(180deg, rgba(var(--paper-rgb), 0.9) 0%, rgba(var(--paper-rgb), 0.2) 23%, rgba(var(--paper-rgb), 0) 44%);
}

.contact-zone .activity-zone__content::after {
    inset: 1rem;
    border: 1px solid rgba(var(--ink-rgb), 0.12);
}

.contact-zone__photo {
    position: absolute;
    z-index: 0;
    inset: 0;
    margin: 0;
}

.contact-zone__photo img {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    transform: translateX(-50%);
}

/* Panneau de contact cale sur l'ardoise de la photo. Le cadre a exactement la boite de la photo
   (meme ratio, meme position) et le panneau y est place et dimensionne en pourcentage / cqw :
   il suit la photo a toutes les hauteurs de fenetre, au lieu d'un decalage fixe en rem.
   L'ardoise occupe environ 9-90 % de la largeur et 44-87 % de la hauteur de la photo. */
.contact-zone .activity-zone__content {
    container-type: size;
}

.contact-zone .zone-panel--contact {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    min-height: 0;
    padding: 0;
}

.contact-zone__frame {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    aspect-ratio: 1800 / 2477;
    transform: translateX(-50%);
    container-type: inline-size;
}

.section-heading h2,
.zone-panel--contact h2,
.page-hero h1 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(2.05rem, 4.8vw, 3.8rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0;
}

.section-heading .eyebrow,
.page-hero .eyebrow {
    color: var(--blue);
}

.section-heading {
    max-width: 74rem;
    margin: 0 auto 2rem;
}

.section-heading > p:last-child {
    max-width: 42rem;
    font-size: 1.1rem;
}

.section-heading--split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.7rem 1rem;
    border: 2px solid currentColor;
    border-radius: 7px;
    color: var(--blue);
    background: var(--white);
    font-weight: 900;
    text-decoration: none;
}

.button--pink {
    color: var(--blue);
    background: var(--pink);
}

.work-grid,
.service-grid,
.media-wall,
.agenda-list {
    max-width: 74rem;
    margin: 0 auto;
}

.work-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.4rem);
}

.work-card {
    display: grid;
    grid-template-rows: auto 1fr;
    flex: 0 1 17.2rem;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--white-rgb), 0.45);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 0.7rem 1.5rem rgba(0, 0, 0, 0.14);
}

.activity-zone--white .work-card {
    border: 1px solid rgba(var(--blue-rgb), 0.2);
    box-shadow: 0 0.8rem 1.8rem rgba(var(--blue-rgb), 0.1);
}

.work-card__media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(11rem, 20vw, 17rem);
    padding: 0;
    overflow: hidden;
    color: var(--blue);
    background: var(--white);
    text-decoration: none;
}

.work-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.work-card__media span {
    display: grid;
    place-items: center;
    padding: 1rem;
    max-width: 10ch;
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 900;
    line-height: 0.9;
    text-align: center;
}

.work-card__copy {
    padding: 0.9rem 1rem 1rem;
}

.work-card__copy p:first-child {
    margin: 0 0 0.42rem;
    color: var(--blue);
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.15;
}

.work-card__copy h3 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    line-height: 1;
}

.work-card__copy p:last-child {
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.35;
}

.service-card,
.date-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    color: var(--ink);
}

.service-card figure {
    margin: 0;
    aspect-ratio: 13 / 9;
    background: var(--pink);
}

.service-card img,
.media-wall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card {
    padding: 1rem;
}

.role-line {
    color: var(--blue);
    font-weight: 900;
}

.service-card h3,
.date-card h3 {
    margin: 0.2rem 0 0.5rem;
    font-size: 1.35rem;
    line-height: 1.05;
}

.agenda-list {
    display: grid;
    gap: 1rem;
}

.date-card {
    display: grid;
    grid-template-columns: minmax(5rem, 7rem) 8rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 3px solid var(--blue);
}

.date-card__poster {
    margin: 0;
    align-self: stretch;
    min-height: 7rem;
    border-radius: 6px;
    overflow: hidden;
    background: var(--pink);
}

.date-card__poster img {
    width: 100%;
    height: 100%;
    min-height: 7rem;
    object-fit: cover;
}

.date-card time {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 7rem;
    color: var(--on-blue);
    background: var(--blue);
    border-radius: 6px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.date-card time span {
    display: block;
    font-size: 3rem;
    line-height: 1;
}

.date-card p {
    margin: 0 0 0.45rem;
}

.date-card a {
    display: inline-block;
    margin-right: 0.65rem;
    font-weight: 900;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}

.media-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.8rem;
}

.media-wall article {
    color: var(--on-blue);
    background: var(--blue);
}

.media-wall article > img,
.video-placeholder {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.media-wall p {
    margin: 0;
    padding: 0.7rem;
    font-weight: 800;
}

.video-placeholder {
    display: grid;
    place-items: center;
    color: var(--blue);
    background: var(--pink);
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.video-placeholder span {
    padding: 1rem;
}

.contact-panel {
    position: absolute;
    top: 66%;
    left: 49.5%;
    display: grid;
    justify-items: center;
    width: 68cqw;
    margin: 0;
    padding: 1.2cqw 1.6cqw;
    border: 0;
    border-radius: 0;
    color: var(--on-blue);
    background:
        radial-gradient(ellipse at center, rgba(6, 9, 18, 0.32) 0%, rgba(6, 9, 18, 0.2) 48%, rgba(6, 9, 18, 0) 78%);
    box-shadow: none;
    text-align: center;
    text-shadow: 0 0.12rem 0.35rem rgba(0, 0, 0, 0.64);
    /* Centre sur l'ardoise, inclinee comme elle. */
    transform: translate(-50%, -50%) rotate(-1.8deg);
}

.contact-panel h2 {
    margin: 0 0 max(0.3rem, 1.1cqw);
    color: var(--on-blue);
    /* « CONTACTEZ-MOI » (13 lettres) tient sur une ligne dans le panneau (68 % de la photo). */
    font-size: max(1.25rem, 5.7cqw);
    font-weight: 900;
    line-height: 0.88;
    text-transform: uppercase;
    white-space: nowrap;
}

.contact-panel__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: max(0.6rem, 2.4cqw);
}

.contact-panel__row > div,
.contact-panel__direct {
    min-width: 0;
}

.contact-panel__direct {
    margin-top: max(0.7rem, 2.6cqw);
}

.contact-panel p {
    margin: 0.4cqw 0 0.15cqw;
    font-size: max(0.76rem, 2.35cqw);
    font-weight: 900;
}

.contact-panel__label {
    color: rgba(var(--white-rgb), 0.68);
    font-size: max(0.56rem, 1.5cqw);
    line-height: 1;
    text-transform: uppercase;
}

.contact-panel a:not(.button) {
    display: inline-block;
    margin-bottom: 0.26rem;
    color: var(--on-blue);
    font-size: max(0.76rem, 2.35cqw);
    font-weight: 900;
    line-height: 1.05;
    text-decoration-color: rgba(var(--white-rgb), 0.52);
    text-shadow: 0 0.12rem 0.35rem rgba(0, 0, 0, 0.72);
}

.contact-panel .button {
    min-height: max(1.7rem, 4.7cqw);
    margin-top: 0;
    padding: max(0.3rem, 0.9cqw) max(0.5rem, 1.5cqw);
    color: var(--on-blue);
    background: transparent;
    font-size: max(0.66rem, 1.8cqw);
    line-height: 1;
    white-space: nowrap;
}

.contact-panel .button:hover,
.contact-panel .button:focus-visible {
    color: var(--blue);
    background: var(--white);
    text-shadow: none;
}

.site-footer {
    display: grid;
    place-items: center;
    min-height: var(--footer-height);
    padding: 1rem;
    color: var(--on-blue);
    background: var(--blue-deep);
}

body:not(.home-snap) .site-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
}

.site-footer p {
    margin: 0;
}

.page-hero {
    padding: clamp(6.3rem, 8vw, 7.5rem) clamp(1.2rem, 6vw, 5rem) clamp(3rem, 5vw, 4rem);
    color: var(--on-blue);
    background: var(--grain), var(--surface-blue);
}

.page-hero__inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.page-hero h1 {
    color: var(--on-blue);
}

.page-hero--compact {
    padding-top: clamp(5.8rem, 8vw, 7rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.page-hero--compact h1 {
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    line-height: 0.9;
}

.page-hero__inner > p:not(.eyebrow),
.page-hero__inner--split > div > p:not(.eyebrow) {
    max-width: 42rem;
    font-size: 1.2rem;
}

.page-hero__inner--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 32rem);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.page-hero figure {
    justify-self: end;
    width: max-content;
    max-width: 100%;
    margin: 0;
    border: 6px solid var(--pink);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.page-hero figure img {
    width: auto;
    height: clamp(16rem, 32vw, 30rem);
    max-width: 100%;
    object-fit: contain;
}

.page-hero .project-hero__media {
    width: min(100%, 32rem);
    border: 0;
    background: transparent;
    box-shadow: 0 1.1rem 2.2rem rgba(0, 0, 0, 0.24);
}

.page-hero .project-hero__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.rich-content {
    max-width: 58rem;
    margin: 0 auto;
    font-size: 1.1rem;
}

.project-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
    max-width: calc(var(--content-width) + (2 * var(--page-gutter)));
    margin-right: auto;
    margin-left: auto;
}

.project-detail__copy {
    max-width: none;
    margin: 0;
}

.project-facts {
    padding: clamp(1rem, 3vw, 1.4rem);
    border: 3px solid var(--blue);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0.45rem 0.45rem 0 var(--pink);
}

.project-facts h2 {
    margin: 0 0 1rem;
    color: var(--blue);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1;
}

.project-facts dl {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.project-facts div {
    padding-top: 0.85rem;
    border-top: 2px solid rgba(var(--blue-rgb), 0.16);
}

.project-facts dt {
    margin: 0 0 0.18rem;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.project-facts dd {
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
}

.project-gallery {
    background: var(--grain), var(--surface-blue);
}

.project-gallery .section-heading h2 {
    color: var(--on-blue);
}

.project-gallery .eyebrow {
    color: var(--pink);
}

.project-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    max-width: 74rem;
    margin: 0 auto;
}

.project-gallery figure {
    margin: 0;
    overflow: hidden;
    border: 3px solid var(--pink);
    border-radius: var(--radius);
    background: var(--white);
}

.project-gallery img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.project-gallery figcaption {
    padding: 0.75rem 0.9rem;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.25;
}

.empty-state {
    max-width: 42rem;
    padding: 1rem;
    border: 3px dashed var(--blue);
    border-radius: var(--radius);
    font-weight: 800;
}

.agenda-page {
    padding-top: 0;
}

.agenda-content {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(6.2rem, 9vw, 7.5rem) clamp(1.2rem, 6vw, 5rem) clamp(3rem, 7vw, 5rem);
}

.agenda-intro {
    max-width: 58rem;
}

.agenda-intro h1 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(2.5rem, 8vw, 5.6rem);
    font-weight: 900;
    line-height: 0.9;
}

.agenda-intro > p:last-child {
    max-width: 38rem;
    font-size: 1.05rem;
}

.agenda-month {
    display: grid;
    gap: 1.1rem;
}

.agenda-month__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--blue);
}

.agenda-month__heading h2 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: capitalize;
}

.agenda-month__heading p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.agenda-month__layout {
    display: grid;
    /* Calendrier et liste : moitie-moitie. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
}

.agenda-calendar {
    display: grid;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid rgba(var(--blue-deep-rgb), 0.16);
    background: var(--white);
}

.agenda-calendar__weekdays,
.agenda-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.agenda-calendar__weekdays {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.agenda-calendar__day {
    min-height: 4.2rem;
    padding: 0.35rem;
    border: 1px solid rgba(var(--blue-deep-rgb), 0.14);
    background: rgba(var(--white-rgb), 0.72);
}

.agenda-calendar__day.is-empty {
    background: transparent;
    border-color: transparent;
}

.agenda-calendar__day.has-event {
    border-color: var(--blue);
    background: var(--white);
}

.agenda-calendar__day.is-today {
    border-color: var(--pink);
    box-shadow: inset 0 0 0 2px var(--pink);
}

.agenda-calendar__day time {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--blue);
    font-weight: 900;
}

.agenda-calendar__day--link {
    color: var(--ink);
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.agenda-calendar__day--link:hover {
    background: var(--focus);
    transform: translateY(-1px);
}

.agenda-calendar__day span {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agenda-event-list {
    display: grid;
    gap: 0.75rem;
}

.agenda-event {
    display: grid;
    grid-template-columns: 4.6rem 4.4rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid rgba(var(--blue-deep-rgb), 0.18);
    border-left: 4px solid var(--blue);
    background: var(--white);
}

.agenda-event__poster {
    margin: 0;
    aspect-ratio: 5 / 7;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(var(--blue-deep-rgb), 0.08);
    box-shadow: 0.16rem 0.18rem 0 rgba(var(--blue-rgb), 0.16);
}

/* Pas d'affiche : tuile teintee avec l'initiale du titre, pour garder l'alignement. */
.agenda-event__poster--empty {
    display: grid;
    place-items: center;
    color: var(--blue);
    background: var(--pink);
    font: 900 1.9rem/1 var(--font-display);
    text-transform: uppercase;
}

.agenda-event__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agenda-event__date {
    display: grid;
    justify-items: center;
    color: var(--blue);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.agenda-event__date span {
    font-size: 2.25rem;
}

.agenda-event__content {
    min-width: 0;
}

.agenda-event__kicker,
.agenda-event__place {
    margin: 0 0 0.25rem;
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 800;
}

.agenda-event h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.agenda-event__content > p:not(.agenda-event__kicker):not(.agenda-event__place) {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.agenda-event__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.55rem;
}

.agenda-event__links a {
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
}

.spectacle-sheet {
    position: relative;
    padding: clamp(5.8rem, 8vw, 7rem) var(--page-gutter) clamp(2rem, 5vw, 3rem);
    background: var(--paper);
}

.spectacle-sheet::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5.7rem;
    background: var(--grain), var(--surface-blue);
}

.spectacle-sheet__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 23rem);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
    max-width: var(--content-width);
    margin: 0 auto;
}

.spectacle-sheet__intro {
    min-width: 0;
    max-width: 48rem;
}

.spectacle-sheet h1 {
    max-width: 12ch;
    margin: 0;
    color: var(--blue);
    font-size: clamp(2.45rem, 4.6vw, 4rem);
    line-height: 0.9;
}

.spectacle-sheet__hook {
    max-width: 40rem;
    margin: 0.9rem 0 0;
    color: var(--blue-deep);
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    font-weight: 900;
    line-height: 1.12;
}

.spectacle-sheet__pitch {
    max-width: 42rem;
    margin: 1rem 0 0;
}

.spectacle-sheet__pitch p {
    margin: 0 0 0.65rem;
}

.spectacle-sheet__poster {
    width: max-content;
    max-width: 100%;
    margin: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 1rem 2.2rem rgba(var(--blue-rgb), 0.16);
}

.spectacle-sheet__poster img {
    width: auto;
    height: clamp(19rem, 38vw, 32rem);
    max-width: 100%;
    object-fit: contain;
}

.spectacle-sheet__side {
    display: grid;
    justify-items: end;
    gap: 1rem;
    align-self: start;
}

.spectacle-facts {
    width: min(100%, 23rem);
}

.spectacle-next-date {
    max-width: 42rem;
    margin-top: clamp(1.35rem, 3vw, 2rem);
    padding-top: clamp(1rem, 2vw, 1.35rem);
    border-top: 3px solid var(--blue);
}

.spectacle-next-date .eyebrow {
    color: var(--blue);
}

.spectacle-next-date article {
    display: grid;
    grid-template-columns: 4.8rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.spectacle-next-date time {
    display: grid;
    place-items: center;
    min-height: 4.8rem;
    border-radius: var(--radius);
    color: var(--on-blue);
    background: var(--blue);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.spectacle-next-date time strong {
    display: block;
    font-size: 2rem;
}

.spectacle-next-date h2 {
    margin: 0 0 0.25rem;
    color: var(--blue);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 1;
}

.spectacle-next-date p {
    margin: 0 0 0.35rem;
    font-weight: 800;
}

.spectacle-next-date a {
    color: var(--blue);
    font-weight: 900;
}

.lead {
    color: var(--blue);
    max-width: 42rem;
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    font-weight: 900;
    line-height: 1.25;
}

.spectacle-meta {
    display: grid;
    gap: 0.8rem;
    margin: 2rem 0;
    padding: 0;
}

.spectacle-meta--compact {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.55rem;
    max-width: 42rem;
    margin: 1rem 0 0;
}

.spectacle-meta div {
    display: grid;
    grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 0.8rem 0;
    border-top: 2px solid var(--blue);
}

.spectacle-meta dt {
    color: var(--blue);
    font-weight: 900;
}

.spectacle-meta dd {
    margin: 0;
}

.spectacle-meta--compact div {
    display: block;
    grid-template-columns: none;
    gap: 0;
    padding: 0.7rem;
    border: 0;
    border-radius: var(--radius);
    background: rgba(var(--white-rgb), 0.72);
}

.spectacle-quick-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}

.spectacle-quick-card {
    min-width: 0;
    padding: 1rem;
    border: 0;
    border-left: 5px solid var(--blue);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 0.7rem 1.8rem rgba(var(--blue-rgb), 0.12);
}

.spectacle-quick-card h2 {
    margin: 0 0 0.8rem;
    color: var(--blue);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 0.96;
}

.spectacle-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.compact-date-list,
.compact-social-list {
    display: grid;
    gap: 0.7rem;
}

.compact-date-list article {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
}

.compact-date-list time {
    display: grid;
    place-items: center;
    min-height: 4.2rem;
    border-radius: 999px;
    color: var(--on-blue);
    background: var(--blue);
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.compact-date-list time strong {
    display: block;
    font-size: 1.8rem;
}

.compact-date-list h3,
.compact-date-list p {
    margin: 0 0 0.2rem;
}

.compact-date-list h3 {
    font-size: 1rem;
    line-height: 1.1;
}

.compact-social-list a {
    display: grid;
    gap: 0.15rem;
    color: var(--ink);
    text-decoration: none;
}

.compact-social-list a strong {
    color: var(--blue);
}

.compact-social-list a span {
    font-size: 0.95rem;
    line-height: 1.3;
}

.social-embed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    max-width: 72rem;
    margin: 0 auto;
    align-items: start;
}

.social-embed-card {
    /* L'iframe Instagram est en position:absolute : sans ancre ici, son 100 % etait celui de
       la fenetre (390 px sur iPhone) et elle debordait de 42 px a droite. */
    position: relative;
    min-width: 0;
    padding: clamp(1rem, 3vw, 1.4rem);
    border: 3px solid var(--blue);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0.45rem 0.45rem 0 var(--pink);
}

.social-embed-card h3 {
    margin: 0 0 0.4rem;
    color: var(--blue);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1;
}

.social-embed-card p {
    margin: 0 0 1rem;
}

.social-embed-card .instagram-media {
    min-width: 0 !important;
    max-width: 100% !important;
    /* largeur du contenu de la carte (la carte moins son padding de chaque cote) */
    width: calc(100% - 2 * clamp(1rem, 3vw, 1.4rem) - 6px) !important;
    margin: 0 auto !important;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    max-width: 74rem;
    margin: 0 auto;
}

.review-card {
    margin: 0;
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border: 3px solid var(--blue);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0.45rem 0.45rem 0 var(--pink);
}

.review-card__rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--blue);
    font-weight: 900;
}

.review-card__rating strong {
    margin-left: 0.5rem;
}

.review-card h3 {
    margin: 0.8rem 0 0.4rem;
    font-size: 1.45rem;
    line-height: 1.05;
}

.review-card blockquote {
    position: relative;
    margin: 0;
    font-size: 1.04rem;
}

.review-card blockquote::before {
    content: "“";
    display: block;
    height: 0.45em;
    color: var(--pink);
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.7;
}

.review-card figcaption {
    display: grid;
    gap: 0.1rem;
    margin-top: 1rem;
    color: var(--blue);
}

.review-card figcaption span {
    color: var(--ink);
    font-size: 0.9rem;
}

.page-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.9rem;
    max-width: 74rem;
    margin: 0 auto;
}

.page-list-section {
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

.page-list-section + .page-list-section {
    padding-top: 2rem;
}

.page-hero + .page-list-section {
    padding-top: clamp(2rem, 4vw, 3rem);
}

.page-list-intro {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-list-intro p {
    margin-top: 0;
}

.page-list-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--blue-deep-rgb), 0.22);
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
}

.page-list-card figure {
    margin: 0;
    aspect-ratio: 4 / 5;
    background: rgba(var(--blue-deep-rgb), 0.08);
}

.page-list-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-list-card div {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 0.5rem;
    padding: 0.9rem;
}

.page-list-card__link {
    display: inline-grid;
    place-items: center;
    justify-self: start;
    width: 2.1rem;
    height: 2.1rem;
    margin-top: 0.25rem;
    border: 2px solid var(--blue);
    border-radius: 999px;
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.page-list-card__link:hover,
.page-list-card__link:focus-visible {
    color: var(--on-blue);
    background: var(--blue);
    transform: translateX(0.12rem);
}

.page-list-card p:first-child {
    margin: 0;
    color: var(--blue);
    font-weight: 900;
}

.page-list-card h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 760px) {
    .site-header {
        position: absolute;
        align-items: flex-start;
        padding: 0.75rem var(--page-gutter);
    }

    .brand {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 1.25rem;
    }

    .hero-screen {
        min-height: 100svh;
        padding: 6.4rem var(--page-gutter) 3.6rem;
    }

    .hero-screen::before {
        background:
            linear-gradient(90deg, var(--paper) 0%, rgba(var(--paper-rgb), 0.68) 10%, rgba(var(--paper-rgb), 0.12) 24%, rgba(var(--paper-rgb), 0) 40%, rgba(var(--paper-rgb), 0) 68%, rgba(var(--paper-rgb), 0.46) 88%, var(--paper) 100%),
            linear-gradient(180deg, rgba(var(--paper-rgb), 0.9) 0%, rgba(var(--paper-rgb), 0.24) 30%, rgba(var(--paper-rgb), 0) 56%),
            linear-gradient(0deg, var(--paper) 0%, rgba(var(--paper-rgb), 0.86) 16%, rgba(var(--paper-rgb), 0.24) 42%, rgba(var(--paper-rgb), 0) 66%);
    }

    .hero-screen::after {
        inset: 0.65rem;
    }

    .hero-screen__content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
        gap: 1.35rem;
        min-height: calc(100svh - 10rem);
    }

    .hero-screen__title {
        max-width: 8ch;
    }

    .hero-screen__title span {
        margin-left: 0.22em;
        font-size: clamp(2rem, 10.5vw, 3.2rem);
    }

    .hero-screen__title strong {
        font-size: clamp(3.25rem, 17.2vw, 5.2rem);
    }

    .hero-triptych {
        grid-column: 1;
        grid-row: 4;
        align-self: end;
        align-items: flex-start;
        justify-content: flex-start;
        justify-self: start;
        gap: 0.48rem;
        max-width: 100%;
    }

    .hero-triptych a {
        max-width: 100%;
        justify-content: flex-start;
        /* Une seule ligne, a taille proportionnelle a l'ecran : l'etiquette epouse son texte.
           Avant, des 394 px (iPhone recents) « Comédien & improvisateur » passait sur deux
           lignes dans une boite restee a 18 rem : un grand blanc a droite. */
        font-size: clamp(0.9rem, 4.7vw, 1.2rem);
        white-space: nowrap;
        text-align: left;
    }

    .hero-triptych a:nth-child(2),
    .hero-triptych a:nth-child(3),
    .hero-triptych a:nth-child(4) {
        transform: rotate(1.5deg);
    }

    .hero-screen__baseline {
        grid-column: 1;
        grid-row: 2;
        max-width: 17rem;
        margin: -1rem 0 0 0.1rem;
        font-size: 0.96rem;
    }

    .hero-screen__photo img {
        object-position: 53% 18%;
    }

    .project-detail,
    .zone-panel--contact,
    .page-hero__inner--split {
        grid-template-columns: 1fr;
    }

    .page-hero figure {
        justify-self: start;
        width: 100%;
    }

    .page-hero figure img {
        width: 100%;
        height: auto;
        max-height: 26rem;
    }

    .bio-section {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .bio-section__inner {
        grid-template-columns: 1fr;
        padding: clamp(3rem, 12vw, 5rem) var(--page-gutter);
    }

    .bio-section__heading {
        position: static;
    }

    .bio-section__inner {
        --bio-gap: 4.4rem;
    }

    :root {
        --divider-w: 0px;
    }

    /* Le cercle decoratif ne doit pas couper le bandeau « BIO » : on le descend sous lui. */
    .bio-section::before {
        top: 5.8rem;
    }

    /* « CONTACTEZ-MOI » (13 lettres) sur une seule ligne : le bandeau a ete dimensionne pour
       « BOOKEZ-MOI » (10) et passait a la ligne. */
    .contact-zone .activity-zone__band {
        font-size: clamp(1.5rem, 8.4vw, 2.6rem);
        white-space: nowrap;
    }

    .bio-section__heading {
        /* relative (et non static) : ancre la fleche ; `top` du mode collant du bureau annule. */
        position: relative;
        top: auto;
    }

    /* Empile : la fleche descend du titre vers la queue de la bulle (variante « bas »). */
    .bio-section__heading::after {
        top: calc(100% + 0.2rem);
        left: 1.45rem;
        width: 1.3rem;
        aspect-ratio: 50 / 100;
        transform: none;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 100' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4C2 30 40 50 30 88'/%3E%3Cpath d='M38.1 79.2L30 88L27.25 76.3'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 100' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4C2 30 40 50 30 88'/%3E%3Cpath d='M38.1 79.2L30 88L27.25 76.3'/%3E%3C/svg%3E");
    }

    .bio-section__body {
        border-radius: var(--radius);
        transform: none;
    }

    .bio-section__body::before {
        /* Empile : la queue est sur le bord haut et pointe vers le haut (« ^ ») : cotes haut et
           gauche traces, tournes de 45 deg. Centree sur le trait du cadre. */
        left: 1.4rem;
        top: -0.84rem;
        border-bottom: 0;
        border-top: 3px solid var(--blue);
    }

    .contact-zone .activity-zone__content {
        min-height: calc(100svh - 4.8rem);
    }

    .contact-zone .activity-zone__content::before {
        background:
            linear-gradient(90deg, var(--paper) 0%, rgba(var(--paper-rgb), 0.5) 12%, rgba(var(--paper-rgb), 0) 30%, rgba(var(--paper-rgb), 0) 70%, rgba(var(--paper-rgb), 0.42) 90%, var(--paper) 100%),
            linear-gradient(180deg, rgba(var(--paper-rgb), 0.94) 0%, rgba(var(--paper-rgb), 0.38) 19%, rgba(var(--paper-rgb), 0) 42%),
            linear-gradient(0deg, var(--paper) 0%, rgba(var(--paper-rgb), 0.6) 10%, rgba(var(--paper-rgb), 0) 28%);
    }

    .contact-zone .activity-zone__content::after {
        inset: 0.65rem;
    }

    .contact-zone__photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 52%;
        transform: none;
        left: 0;
    }

    /* Mobile : la photo est en « cover » centree a 52 % en hauteur ; le cadre reprend cette
       geometrie (largeur = max(zone, hauteur x ratio)) pour que le panneau reste sur l'ardoise. */
    .contact-zone__frame {
        top: 52%;
        width: max(100cqw, calc(100cqh * 1800 / 2477));
        height: auto;
        transform: translate(-50%, -52%);
    }

    .contact-panel {
        width: 70cqw;
        padding: 1.2cqw 1.4cqw;
    }

    .contact-panel h2 {
        font-size: max(1.3rem, 6.4cqw);
    }

    .contact-panel__row {
        flex-direction: column;
        gap: 0.32rem;
    }

    .contact-panel a:not(.button) {
        margin-bottom: 0.22rem;
        overflow-wrap: anywhere;
    }

    .contact-panel .button {
        margin-top: 0.28rem;
    }

    .activity-zone {
        grid-template-columns: 1fr;
    }

    .vertical-section {
        grid-template-columns: 1fr;
    }

    .bio-section__band,
    .activity-zone__band,
    .vertical-section__band {
        position: static;
        min-height: 0;
        justify-content: start;
        padding: 1.1rem var(--page-gutter);
        border-right: 0;
        border-bottom: 2px solid currentColor;
        font-size: clamp(2rem, 11vw, 4rem);
        line-height: 0.9;
        text-align: left;
        writing-mode: horizontal-tb;
        transform: none;
    }

    .zone-panel {
        padding: clamp(3rem, 12vw, 5rem) var(--page-gutter);
    }

    .agenda-content {
        padding: clamp(2.5rem, 10vw, 4rem) var(--page-gutter);
    }

    .agenda-month__heading,
    .agenda-month__layout {
        grid-template-columns: 1fr;
    }

    .agenda-month__heading {
        align-items: start;
        flex-direction: column;
    }

    .section-heading--split {
        align-items: start;
        flex-direction: column;
    }

    .date-card {
        grid-template-columns: 1fr;
    }

    .date-card__poster {
        aspect-ratio: 16 / 9;
    }

    .agenda-event {
        grid-template-columns: 4.4rem 3.6rem minmax(0, 1fr);
    }

    .spectacle-sheet {
        padding-top: 6rem;
    }

    .spectacle-sheet__inner {
        grid-template-columns: 1fr;
    }

    .spectacle-sheet h1 {
        max-width: none;
        font-size: clamp(2.55rem, 13vw, 4.3rem);
    }

    .spectacle-sheet__side,
    .spectacle-sheet__poster {
        justify-self: start;
        justify-items: start;
    }

    .spectacle-quick-grid {
        grid-template-columns: 1fr;
    }

    .compact-date-list article {
        grid-template-columns: 4rem minmax(0, 1fr);
    }

    .spectacle-meta div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

}

/* ── Navigation : menu plein ecran jusqu'a 1100px (tablette incluse) ───────── */
.nav-toggle {
    display: none;
}

.main-nav {
    gap: 0.35rem 1rem;
}

@media (max-width: 1100px) {
    .site-header,
    .site-header a,
    .nav-toggle {
        pointer-events: auto;
    }

    .site-header {
        position: fixed;
        align-items: center;
        padding: 0.6rem var(--page-gutter);
        background: var(--blue-deep);
        /* backdrop-filter ferait de l'en-tete le bloc conteneur du menu fixed. */
        backdrop-filter: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        min-height: 2.75rem;
        padding: 0 0.85rem;
        border: 2px solid currentColor;
        border-radius: 999px;
        color: inherit;
        background: transparent;
        font: 800 0.8rem var(--font-display);
        letter-spacing: 0.04em;
        text-transform: uppercase;
        cursor: pointer;
    }

    .nav-toggle__bars,
    .nav-toggle__bars::before {
        display: block;
        width: 1.1rem;
        height: 2px;
        background: currentColor;
        transition: transform 160ms ease;
    }

    .nav-toggle__bars {
        position: relative;
        margin-top: -0.3rem;
    }

    .nav-toggle__bars::before {
        content: "";
        position: absolute;
        top: 0.38rem;
    }

    .nav-open .nav-toggle__bars {
        transform: translateY(0.19rem) rotate(45deg);
    }

    .nav-open .nav-toggle__bars::before {
        top: 0;
        transform: rotate(-90deg);
    }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: -1;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 0.2rem;
        padding: 5rem var(--page-gutter) 2rem;
        overflow-y: auto;
        color: var(--on-blue);
        background: var(--blue-deep);
        font-size: clamp(1.35rem, 6vw, 2.4rem);
        line-height: 1.1;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-0.75rem);
        transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
    }

    .nav-open .main-nav {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .main-nav a {
        padding: 0.45rem 0;
        white-space: normal;
    }

    .nav-open {
        overflow: hidden;
    }
}

/* ── Tablette (761-1100px) : le trio du hero passe sous le titre ───────────── */
@media (min-width: 761px) and (max-width: 1100px) {
    .hero-screen__content {
        grid-template-columns: 1fr;
    }

    .hero-triptych {
        grid-column: 1;
        grid-row: auto;
        align-items: flex-start;
        justify-self: start;
        align-self: end;
    }
}

/* ── Grands ecrans ────────────────────────────────────────────────────────── */
@media (min-width: 1700px) {
    :root {
        --content-width: 84rem;
    }

    .work-grid,
    .service-grid,
    .media-wall,
    .agenda-list {
        max-width: 84rem;
    }
}

/* ── Mouvement reduit : pas d'animation ni de defilement anime ────────────── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Galerie : la vignette est un lien vers la visionneuse */
.media-wall article > a {
    display: block;
    cursor: zoom-in;
}

.media-wall article > a > img {
    /* meme ratio que la rendition fill-600x400 : aucune bande, aucun recadrage de plus */
    aspect-ratio: 3 / 2;
    transition: transform 200ms ease;
}

.media-wall article > a:hover > img,
.media-wall article > a:focus-visible > img {
    transform: scale(1.03);
}

.media-wall article {
    overflow: hidden;
}

/* ── Agenda : un mois a la fois, page plein ecran ───────────────────────────── */
.visually-hidden-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.agenda-page {
    min-height: 100svh;
}

.agenda-content {
    min-height: 100svh;
    align-content: start;
    gap: 1rem;
}

.agenda-content .agenda-intro {
    margin-bottom: -0.4rem;
}

.agenda-nav {
    display: grid;
    grid-template-columns: minmax(6rem, 1fr) auto minmax(6rem, 1fr);
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--blue);
}

.agenda-nav__title {
    text-align: center;
}

.agenda-nav__title h2 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(1.8rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: capitalize;
}

.agenda-nav__title p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-weight: 800;
}

.agenda-nav__arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 0.9rem;
    border: 2px solid var(--blue);
    border-radius: 999px;
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
    text-transform: capitalize;
    justify-self: start;
    transition: background-color 160ms ease, color 160ms ease;
}

.agenda-nav__arrow:last-child {
    justify-self: end;
}

a.agenda-nav__arrow:hover,
a.agenda-nav__arrow:focus-visible {
    color: var(--on-blue);
    background: var(--blue);
}

.agenda-nav__arrow.is-disabled {
    visibility: hidden;
}

.agenda-months {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0 0 0.3rem;
    overflow-x: auto;
    list-style: none;
}

.agenda-months a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(var(--blue-deep-rgb), 0.3);
    border-radius: 999px;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: capitalize;
    white-space: nowrap;
}

.agenda-months a.is-active {
    color: var(--on-blue);
    background: var(--blue);
}

.agenda-months a.is-empty {
    opacity: 0.55;
}

.agenda-months a span {
    font-size: 0.72rem;
    opacity: 0.85;
}

/* Le calendrier occupe la hauteur disponible : cellules plus hautes sur grand ecran. */
@media (min-width: 761px) {
    .agenda-calendar__day {
        min-height: clamp(4.2rem, 10vh, 7rem);
    }
}

@media (max-width: 760px) {
    .agenda-nav {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
    }

    .agenda-nav__label {
        display: none;
    }

    .agenda-nav__arrow {
        padding: 0 0.8rem;
    }
}

/* Bandeau « Aperçu du thème » (administrateurs connectes, voir home.templatetags.site_tags). */
.theme-preview-bar {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    max-width: calc(100vw - 2rem);
    padding: 0.55rem 1rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.88);
    font: 600 0.85rem/1.3 Arial, Helvetica, sans-serif;
    text-align: center;
    box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.35);
}

.theme-preview-bar a {
    margin-left: 0.5rem;
    color: #fff;
    text-decoration: underline;
}
