/* ==========================================================================
   Delphine Burtin – Photographie
   Feuille de styles unique du site. Aucun style dans le HTML.

   Sommaire
   1. Polices et variables
   2. Base
   3. En-tête / barre latérale / menu
   4. Mise en page commune des pages
   5. Home (grille des séries)
   6. Page série (galerie + texte)
   7. Expositions
   8. Books
   9. Bio & contact
   9b. Confidentialité et bandeau cookies
   10. Points de rupture
       - Tablette        860–1199 px
       - Mobile          520–859 px
       - Phone           < 520 px
   ========================================================================== */


/* 1. Polices et variables
   ========================================================================== */

@font-face {
  font-family: "Alaska";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("fonts/alaska-light.woff2") format("woff2");
}

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

:root {
  /* Couleurs */
  --olive: #9d9c87;        /* barre du haut, titres, liens secondaires */
  --olive-dark: #4a4939;   /* survols, vignette active, flèches vignettes */
  --ink: #111;             /* texte principal */
  --grey: #9ca3af;         /* menu inactif, flèches, compteur, dates */
  --rule: #c9c8bf;         /* tous les filets 1 px */
  --text: #1f2937;         /* texte courant des colonnes */
  --note: #6b7280;         /* notes en italique */
  --detail: #4b5563;       /* lignes de détail des livres */
  --placeholder: #f3f4f6;  /* fond des images pendant le chargement */

  /* Dimensions */
  --topbar: 4px;
  --sidebar: 240px;
  --header-h: 64px;        /* en-tête mobile (< 860 px) */

  /* Colonne de texte (galeries, books, bio) :
     largeur = 25 % de la fenêtre, bornée entre 420 et 640 px.
     Taille du texte = 14 px × k, avec k = largeur / 420 × 0,55 + 0,45 */
  --colw: clamp(420px, 25vw, 640px);
  --col-fs: calc(var(--colw) * 0.0183333 + 6.3px);    /* 14 px × k */
  --col-fs-s: calc(var(--colw) * 0.0157143 + 5.4px);  /* 12 px × k */
  --col-pad: calc(var(--colw) * 0.0366667 + 12.6px) calc(var(--colw) * 0.0419048 + 14.4px) 40px;
}


/* 2. Base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Alaska", ui-sans-serif, system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Barre de 4 px en haut de toutes les pages */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar);
  background: var(--olive);
  z-index: 200;
}

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

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

strong {
  font-weight: 700;
}

button {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 1px solid var(--olive-dark);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--rule);
  font-size: 13px;
}

.skip-link:focus {
  top: 12px;
}

.is-hidden {
  visibility: hidden;
}

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

/* Libellés de boutons à deux états (Lire la suite + / Réduire −) */
.label-open {
  display: none;
}

[aria-expanded="true"] > .label-open {
  display: inline;
}

[aria-expanded="true"] > .label-closed {
  display: none;
}


/* 3. En-tête / barre latérale / menu
   ========================================================================== */

/* Desktop et tablette : barre latérale fixe à gauche */
.site-header {
  position: fixed;
  top: var(--topbar);
  left: 0;
  bottom: 0;
  width: var(--sidebar);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--rule);
}

.site-logo {
  display: block;
  align-self: flex-start;
  margin-bottom: 60px;
}

.site-logo img {
  display: block;
  width: auto;
  height: 160px;
}

.menu-toggle {
  display: none;
}

.site-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-portfolio {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-series {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: -4px 0 0 16px;
}

.nav-series a,
.nav-pages a {
  display: block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.15s;
}

.nav-series a {
  font-size: 12px;
}

.nav-pages {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-pages a {
  font-size: 14px;
}

.nav-series a:hover,
.nav-pages a:hover,
.site-nav [aria-current="page"] {
  color: var(--ink);
}

.nav-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: auto 0 0;
  padding-top: 28px;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--grey);
}


/* 4. Mise en page commune des pages
   ========================================================================== */

.page {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding-top: var(--topbar);
}

.page-inner {
  display: flex;
  flex-direction: column;
  padding: 64px 32px;
}

/* En-tête des pages Expositions, Books, Bio… : même place et même filet
   que le titre des pages de galerie (.serie-head) */
.page-head {
  padding: 24px 32px 16px;
  border-bottom: 1px solid var(--rule);
}

.page-head + .page-inner {
  padding-top: 40px;
}

/* Premier bloc sous l'en-tête : pas de second filet */
.book:first-child {
  border-top: 0;
}

.page-title {
  margin: 0;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--olive);
}

.notfound {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}


/* 5. Home (grille des séries)
   ========================================================================== */

.home {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
  align-items: start;
}

/* Desktop et tablette (≥ 860 px) : les 10 séries sur deux lignes de 5,
   toujours visibles en entier dans la hauteur de l'écran.
   Largeur d'une vignette = la plus petite des deux :
   - largeur disponible / 5 (grille)
   - (hauteur d'écran − marges − titres) / 2,8  (2 cadres 5/7 = 2 × 1,4)
   La grille est centrée ; les images gardent leurs proportions. */
@media (min-width: 860px) {
  .home {
    max-width: none;
    padding: 48px 32px;
  }

  .series-grid {
    grid-template-columns: repeat(5, minmax(0, calc((100vh - 260px) / 2.8)));
    justify-content: center;
    gap: 32px 24px;
  }

  /* Titre proportionnel à la largeur de la vignette (≈ 1/14),
     entre 11 px (petits écrans) et 15 px (taille de la maquette) */
  .series-grid .tile-title {
    font-size: clamp(11px, min(calc((100vh - 260px) / 39.2), calc((100vw - 400px) / 70)), 15px);
    letter-spacing: 0.06em;
  }
}

/* Tablette (860–1199 px) : titres plus petits */
@media (min-width: 860px) and (max-width: 1199px) {
  .series-grid .tile-title {
    font-size: 10px;
  }
}

.tile {
  display: block;
}

/* Cadre 5/7 : l'image garde ses proportions (largeur 100 %, hauteur auto),
   alignée en haut. Les couvertures actuelles font toutes 5/7 ou plus large :
   rien n'est rogné. */
.tile-frame {
  display: block;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  margin-bottom: 12px;
}

.tile-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.tile-title {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  transition: color 0.3s ease;
}

/* Filet qui se trace sous le titre au survol */
.tile-title::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: 6px;
  background: var(--olive-dark);
  transition: width 0.4s ease;
}

@media (hover: hover) {
  .tile:hover .tile-title {
    color: var(--olive-dark);
  }

  .tile:hover .tile-title::after {
    width: 100%;
  }
}

.tile:focus-visible .tile-title {
  color: var(--olive-dark);
}

.tile:focus-visible .tile-title::after {
  width: 100%;
}


/* 6. Page série
   ========================================================================== */

.serie {
  position: fixed;
  top: var(--topbar);
  left: var(--sidebar);
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.serie-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 24px 32px 16px;
  border-bottom: 1px solid var(--rule);
}

.serie-pager {
  display: flex;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey);
}

.serie-pager a,
.serie-pager-phone a {
  transition: color 0.15s;
}

.serie-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
}

/* Zone image. Les unités cqw / cqh se rapportent à cette zone :
   --box-top : haut de la boîte image (au niveau du filet sous « Masquer le texte »)
   --box-h   : hauteur disponible = zone − 171 px (vignettes + air) − 28 px (légende) */
.stage {
  container-type: size;
  position: relative;
  flex: 1;
  min-width: 0;
  margin-right: var(--colw); /* place fixe de la colonne : les images ne bougent pas */
  --side: 72px;
  --box-top: 52px;
  --box-h: calc(100cqh - 199px);
  --thumb-bottom: 2px;
}

.serie--no-text .stage {
  margin-right: 0;
}

.slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  top: var(--box-top);
  left: var(--side);
  right: var(--side);
  height: var(--box-h);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide-inner {
  position: relative;
  margin: 0;
}

/* L'image est la plus grande possible dans la boîte, proportions intactes,
   jamais agrandie au-delà de sa taille réelle (max-* uniquement). */
.slide-inner img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100cqw - 2 * var(--side));
  max-height: var(--box-h);
  background: var(--placeholder);
}

.slide-inner figcaption {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: center;
}

/* Grandes flèches : position fixe, au centre vertical de la boîte image */
.stage-arrow {
  position: absolute;
  top: calc(var(--box-top) + var(--box-h) / 2);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s;
}

.stage-arrow:hover {
  background: rgba(0, 0, 0, 0.06);
}

.stage-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--grey);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage-prev {
  left: 16px;
}

.stage-next {
  right: 16px;
}

/* Rangée de vignettes */
.thumbs {
  position: absolute;
  left: var(--side);
  right: var(--side);
  bottom: var(--thumb-bottom);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 85px;
}

.thumbs-arrow {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.thumbs-arrow:hover {
  opacity: 0.6;
}

.thumbs-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--olive-dark);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thumbs-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: safe center;
  gap: 6px;
  height: 85px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.thumbs-track::-webkit-scrollbar {
  display: none;
}

.thumb {
  flex: 0 0 auto;
  height: 85px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
}

.thumb.is-active {
  border-bottom-color: var(--olive-dark);
}

.thumb img {
  display: block;
  width: auto;
  height: 79px;
  background: var(--placeholder);
}

/* Colonne de texte à droite */
.serie-text {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--colw);
  overflow: hidden;
  background: #fff;
  border-left: 1px solid var(--rule);
  transition: width 0.35s ease;
}

.serie-text-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  border-bottom: 1px solid var(--rule);
}

.text-toggle {
  padding: 10px 6px;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--olive-dark);
  cursor: pointer;
  transition: color 0.15s;
}

.text-toggle:hover {
  color: var(--ink);
}

.serie-text-body {
  position: absolute;
  top: 52px;
  bottom: 0;
  left: 0;
  width: var(--colw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--col-pad);
  overflow-y: auto;
  color: var(--text);
  transition: opacity 0.25s, visibility 0.25s;
}

.serie-text-body p {
  margin: 0;
  font-size: var(--col-fs);
  line-height: 1.75;
  text-wrap: pretty;
}

.serie-text-body .text-note {
  font-size: var(--col-fs-s);
  line-height: 1.6;
  font-style: italic;
  color: var(--note);
}

.text-en {
  align-self: flex-start;
  font-size: var(--col-fs-s);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--olive);
}

.more-toggle {
  display: none;
}

/* Colonne repliée */
.text-collapsed .serie-text {
  width: 56px;
}

.text-collapsed .serie-text-head {
  height: 100%;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 0;
  border-bottom: 0;
}

.text-collapsed .text-toggle {
  writing-mode: vertical-rl;
}

.text-collapsed .serie-text-body {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Pied : compteur */
.serie-foot {
  display: flex;
  justify-content: flex-end;
  padding: 12px 32px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--grey);
}

.counter {
  font-variant-numeric: tabular-nums;
}

.serie-pager-phone {
  display: none;
}


/* 7. Expositions
   ========================================================================== */

.expo {
  gap: 32px;
}

.expo-views {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 880px;
}

.expo-stage {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expo-stage .stage-arrow {
  position: static;
  flex: 0 0 40px;
  border-radius: 0;
  transform: none;
}

.expo-stage .stage-arrow:hover {
  background: none;
  opacity: 0.6;
}

.expo-stage .stage-arrow svg {
  width: 22px;
  height: 22px;
}

.expo-stage .slides {
  container-type: inline-size;
  position: static;
  flex: 1 1 auto;
  min-width: 0;
  height: calc(60vh + 36px); /* image (60vh max) + place de la légende */
}

/* Même principe que les galeries : légende collée à l'image (8 px),
   horizontales centrées verticalement, comme dans Le point aveugle */
.expo-stage .slide {
  position: static;
  display: none;
  height: 100%;
  padding-bottom: 36px;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

.expo-stage .slide.is-active {
  display: flex;
}

.expo-stage .slide-inner img {
  max-width: 100cqw;
  max-height: 60vh;
}

.expo-views .thumbs {
  position: static;
}

.expo-more {
  display: none;
}

.expo-years {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.expo-year {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.expo-year-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.expo-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.expo-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.5;
}

.expo-venue {
  font-weight: 700;
}

.expo-dates {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--grey);
}


/* 8. Books
   ========================================================================== */

/* Comme Bio et les galeries : filet vertical continu entre images et texte,
   du filet de l'en-tête jusqu'en bas de page */
.page-books {
  display: flex;
  flex-direction: column;
}

.page-books .page-inner.books {
  flex: 1;
  padding: 0 0 0 32px;
}

.books {
  gap: 0;
}

.book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--colw);
  align-items: stretch;
  border-top: 1px solid var(--rule);
}

.book:last-child {
  flex: 1;
}

.book-media {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding: 40px 40px 48px 0;
}

.book-cover {
  display: block;
  width: 100%;
  height: auto;
  background: var(--placeholder);
}

.book-cover--large {
  max-width: 640px;
}

.book-cover--medium {
  max-width: 400px;
  background: transparent; /* PNG à fond transparent */
}

.book-cover--small {
  max-width: 250px;
}

.book-video {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  background: var(--placeholder);
}

.book-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 46px 32px 48px;
  border-left: 1px solid var(--rule);
  font-size: var(--col-fs);
  line-height: 1.6;
  text-wrap: pretty;
}

.book-info p {
  margin: 0;
}

.book-title {
  margin: 0;
  font-size: var(--col-fs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-line {
  color: var(--detail);
}

.book-price {
  font-weight: 700;
}

.book-info .book-shipping {
  font-size: 12px;
  color: var(--grey);
}

.book-info .book-order {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--olive);
}

.book-order a {
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: underline;
  color: var(--ink);
}

.book-order a:hover {
  color: var(--olive);
}


/* 9. Bio & contact
   ========================================================================== */

/* La page occupe toute la hauteur pour que le filet vertical
   descende du filet de l'en-tête jusqu'en bas, comme sur les galeries */
.page-bio {
  display: flex;
  flex-direction: column;
}

.page-bio .page-inner.bio {
  flex: 1;
  padding: 0 0 0 32px;
}

.bio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--colw);
  font-size: 15px;
  line-height: 1.75;
}

.bio-text {
  padding: 40px 56px 64px 0;
}

.bio-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-wrap: pretty;
}

.bio-text p {
  margin: 0;
}

.bio-text a {
  text-decoration: underline;
}

.bio-side {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 46px 32px 64px;
  border-left: 1px solid var(--rule); /* filet vertical, comme la colonne de texte des galeries */
  font-size: var(--col-fs);
  line-height: 1.6;
}

.bio-heading {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}

.bio-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Liens de la page Bio : gris souligné, noir au survol */
.page-bio a {
  color: var(--note);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.page-bio a:hover {
  color: var(--ink);
}

.bio-side address {
  font-style: normal;
}

.gallery-contact {
  display: flex;
  flex-direction: column;
}

.gallery-contact + .gallery-contact {
  margin-top: 16px;
}


/* 9b. Confidentialité et bandeau cookies
   ========================================================================== */

.legal {
  gap: 28px;
  font-size: 15px;
  line-height: 1.75;
}

.legal p {
  margin: 0 0 10px;
}

.legal-heading {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}

.legal-date {
  font-size: 12px;
  color: var(--grey);
}

/* Lien « Cookies » dans le pied du menu (bouton présenté comme un lien) */
.cookie-settings {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
}

.cookie-settings:hover {
  color: var(--ink);
}

.popup {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 250;
  max-width: 520px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 0 6px 24px rgba(40, 39, 37, 0.08);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.popup p {
  margin: 0 0 14px;
}

.popup a {
  text-decoration: underline;
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Fenêtres en bas d'écran : cookies et avertissement (même dessin).
   Refuser / Accepter : exactement le même poids visuel */
.popup-btn {
  padding: 9px 18px;
  border: 1px solid var(--olive-dark);
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-dark);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.popup-btn:hover {
  background: var(--olive-dark);
  color: #fff;
}

/* Le lien « Retour » de l'avertissement a l'aspect d'un bouton */
a.popup-btn {
  display: inline-block;
  text-decoration: none;
}

.popup .notice-label {
  font-weight: 700;
}

/* L'avertissement est centré dans l'écran (le bandeau cookies reste en bas) */
.popup--notice {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: calc(100% - 32px);
  transform: translate(-50%, -50%);
}

/* Avertissement de la série « Elle/il/iel m'a dit… » :
   la classe notice-pending est posée par avertissement.js avant l'affichage.
   Tant qu'elle est là, seuls le titre et le menu sont visibles. */
[data-notice] {
  display: none;
}

.notice-pending [data-notice],
.popup--notice.is-open {
  display: block;
}

.notice-pending .serie-body,
.notice-pending .serie-foot,
.notice-pending .serie-pager-phone {
  visibility: hidden;
}


/* 10. Points de rupture
   ========================================================================== */

/* Tablette : 860–1199 px — colonne de texte fixe à 240 px, texte 14 px */
@media (min-width: 860px) and (max-width: 1199px) {
  :root {
    --colw: 240px;
    --col-fs: 14px;
    --col-fs-s: 12px;
    --col-pad: 24px 20px 40px;
  }
}

/* Mobile et phone : < 860 px — en-tête horizontal + menu burger */
@media (max-width: 859px) {
  :root {
    --colw: 420px;
    --col-fs: 14px;
    --col-fs-s: 12px;
  }

  .site-header {
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--header-h);
    z-index: 150;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .site-logo {
    align-self: center; /* centré verticalement dans l'en-tête */
    margin: 0;
  }

  .site-logo img {
    height: 44px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .menu-bar {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--ink);
  }

  /* Menu plein écran sous l'en-tête */
  .site-nav {
    display: none;
    position: fixed;
    top: calc(var(--topbar) + var(--header-h));
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px 28px 28px;
    overflow-y: auto;
    background: #fff;
  }

  .menu-open .site-nav {
    display: flex;
  }

  .menu-open {
    overflow: hidden;
  }

  .page {
    margin-left: 0;
    padding-top: calc(var(--topbar) + var(--header-h));
  }

  .page-inner,
  .home {
    padding: 28px 20px;
  }

  .page-head {
    padding: 24px 20px 16px;
  }

  .page-head + .page-inner {
    padding-top: 28px;
  }

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

  /* Série : pas de colonne, chapeau sous l'en-tête */
  .serie {
    top: calc(var(--topbar) + var(--header-h));
    left: 0;
  }

  .serie-body {
    flex-direction: column;
  }

  .stage {
    margin-right: 0;
    --box-top: 24px;
    --box-h: calc(100cqh - 223px);
    --thumb-bottom: 54px;
  }

  .serie-text {
    position: static;
    order: -1;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 32px 20px;
    overflow-y: auto;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }

  .text-open .serie-text {
    max-height: 46vh;
  }

  .serie-text-head {
    display: none;
  }

  .serie-text-body {
    position: static;
    width: auto;
    gap: 12px;
    padding: 0;
    overflow: visible;
    color: #374151;
  }

  .serie-text-body > * {
    display: none;
    max-width: 720px;
  }

  .serie-text-body p {
    font-size: 15px;
    line-height: 1.7;
  }

  .serie-text-body .lead {
    display: block;
    max-width: 880px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--ink);
  }

  .serie-text-body .text-note {
    font-size: 13px;
  }

  .text-en {
    font-size: 12px;
  }

  .text-open .serie-text-body > * {
    display: block;
  }

  .more-toggle {
    display: block;
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--olive);
    cursor: pointer;
    transition: color 0.15s;
  }

  .more-toggle:hover {
    color: var(--ink);
  }

  /* Books et Bio sur une colonne */
  .book,
  .bio {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-bio .page-inner.bio,
  .page-books .page-inner.books {
    padding: 0 20px;
  }

  /* Books sur une colonne : pas de filet vertical */
  .book-media {
    padding: 28px 0 0;
  }

  .book-info {
    padding: 24px 0 40px;
    border-left: 0;
  }

  .bio-text {
    padding: 28px 0 32px;
  }

  /* Une seule colonne : le filet devient horizontal */
  .bio-side {
    padding: 28px 0 48px;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}

/* Phone : < 520 px — défilement vertical, images l'une sous l'autre */
@media (max-width: 519px) {
  /* Bio : l'adresse (bloc Contact) passe au-dessus du texte */
  .bio {
    display: flex;
    flex-direction: column;
  }

  .bio-side {
    display: contents;
  }

  .bio-block--contact {
    order: -1;
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
  }

  .bio-side > .bio-block:not(.bio-block--contact) {
    padding-top: 28px;
    border-top: 1px solid var(--rule);
  }

  .bio-side > .bio-block:last-child {
    padding-bottom: 48px;
  }

  :root {
    --header-h: 157px; /* logo 117 px + 20 px d'air en haut et en bas */
  }

  .site-logo img {
    height: 117px;
  }

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

  .tile-frame {
    aspect-ratio: auto;
  }

  /* Série */
  .serie {
    position: static;
    display: block;
    padding-top: calc(var(--topbar) + var(--header-h));
  }

  .serie-head {
    display: block;
    padding: 24px 20px 0;
    border-bottom: 0;
  }

  .serie-head .page-title,
  .page-head .page-title {
    font-size: 24px;
  }

  .page-head {
    padding: 24px 20px 20px;
  }

  .serie-pager {
    display: none;
  }

  .serie-text {
    gap: 0;
    padding: 12px 20px 20px;
    overflow: visible;
  }

  .text-open .serie-text {
    max-height: none;
  }

  /* Aperçu de 3 lignes, la dernière s'estompe */
  .serie-text-body {
    display: block;
    max-height: 4.8em;
    overflow: hidden;
    font-size: 13px;
    color: var(--text);
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 1.6em), rgba(0, 0, 0, 0.28) 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 1.6em), rgba(0, 0, 0, 0.28) 100%);
  }

  .serie-text-body > *,
  .serie-text-body .lead {
    display: block;
    max-width: none;
  }

  .serie-text-body p,
  .serie-text-body .lead {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
  }

  .serie-text-body .text-note {
    font-size: 12px;
  }

  .text-en {
    font-size: 11px;
  }

  .text-open .serie-text-body {
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .more-toggle {
    margin-top: 12px;
    padding: 6px 0;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .stage {
    container-type: normal;
  }

  .slides {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0 32px;
  }

  .slide {
    position: static;
    height: auto;
    display: block;
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }

  .slide-inner {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* Image entière visible à l'écran : jamais recadrée, jamais agrandie.
     Largeur max = écran − marges ; hauteur max = écran − en-tête − air. */
  .slide-inner {
    padding: 0 20px;
  }

  .slide-inner img {
    width: auto;
    max-width: 100%;
    max-height: calc(100svh - var(--topbar) - var(--header-h) - 48px);
    margin: 0 auto;
  }

  .slide-inner figcaption {
    position: static;
    margin: 0;
    padding: 0;
    font-size: 12px;
    text-align: left;
  }

  .stage-arrow,
  .thumbs,
  .serie-foot {
    display: none;
  }

  .serie-pager-phone {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px 28px;
    border-top: 1px solid var(--rule);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--grey);
  }

  /* Expositions : liste d'abord, aperçu de 2 expositions */
  .expo-years {
    order: 1;
  }

  .expo-more {
    order: 2;
    display: block;
    align-self: flex-start;
    margin: -20px 0 -8px;
    padding: 6px 0;
    border: 0;
    background: none;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--olive);
    cursor: pointer;
  }

  /* Liste juste sous l'en-tête : pas de second filet */
  .expo-year:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .expo:not(.is-open) .is-extra {
    display: none;
  }

  .expo:not(.is-open) .expo-item--fade {
    opacity: 0.3;
  }

  .expo-views {
    order: 3;
    gap: 28px;
    width: auto;
    margin: 0 -20px;
  }

  .expo-stage {
    display: block;
  }

  .expo-stage .stage-arrow,
  .expo-views .thumbs {
    display: none;
  }

  /* Vues d'exposition l'une sous l'autre, comme les galeries sur phone */
  .expo-stage .slides {
    container-type: normal;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
  }

  .expo-stage .slide {
    display: block;
    height: auto;
    padding: 0;
  }

  .expo-stage .slide-inner img {
    max-width: 100%;
    max-height: calc(100svh - var(--topbar) - var(--header-h) - 48px);
  }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
