/* =========================================================
   Image Passion Évreux — feuille de styles principale
   Palette : encre profonde, ivoire chaleureux, ocre
   ========================================================= */

:root {
  --ink: #0E1116;
  --ink-soft: #1a1f27;
  --paper: #F4F1EC;
  --paper-soft: #ebe6dc;
  --ochre: #C29545;
  --ochre-deep: #a07a31;
  --muted: #8a8780;
  --line: rgba(14, 17, 22, 0.12);
  --shadow: 0 30px 80px -30px rgba(14, 17, 22, 0.35);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease, opacity .25s ease;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ======================= Typographie ======================= */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ochre-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ochre);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ======================= Mise en page ======================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

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

.section--dark .eyebrow { color: var(--ochre); }
.section--dark .lead { color: var(--paper-soft); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

/* ======================= Navigation ======================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 241, 236, 0.0);
  color: var(--paper);  /* texte clair par défaut, lisible sur hero sombre */
  transition: background .35s ease, color .35s ease, backdrop-filter .35s ease, padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(244, 241, 236, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  color: var(--ink);  /* texte foncé une fois sur fond paper */
  padding: 0.85rem var(--gutter);
  border-bottom-color: var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav__brand-mark {
  width: 36px; height: 36px;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  font-size: 0.85rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Logo image dans la nav — PNG : lignes blanches sur fond transparent.
   Sur fond clair (état scrolled), on inverse la couleur pour rester lisible. */
.nav__logo {
  height: 58px;
  width: auto;
  display: block;
  transition: filter .3s ease, opacity .3s ease;
}
.nav.is-scrolled .nav__logo { filter: invert(1); height: 48px; }

@media (max-width: 600px) {
  .nav__logo { height: 44px; }
  .nav.is-scrolled .nav__logo { height: 38px; }
}

.nav__brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

.nav__menu {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav__menu a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--ochre);
  transition: width .3s ease;
}

.nav__menu a:hover::after,
.nav__menu a.is-active::after { width: 100%; }

.nav__menu a.is-active { color: var(--ochre); }
.nav.is-scrolled .nav__menu a.is-active { color: var(--ochre-deep); }

/* Lien "Espace membre" — bouton distinct dans la nav */
.nav__menu a.nav__member {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ochre);
  color: var(--ochre);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.nav__menu a.nav__member::after { display: none; }

.nav__menu a.nav__member::before {
  content: "";
  width: 5px; height: 5px;
  background: currentColor;
  border-radius: 50%;
}

.nav__menu a.nav__member:hover {
  background: var(--ochre);
  color: var(--ink);
  border-color: var(--ochre);
}

.nav.is-scrolled .nav__menu a.nav__member {
  color: var(--ochre-deep);
  border-color: var(--ochre-deep);
}

.nav.is-scrolled .nav__menu a.nav__member:hover {
  background: var(--ochre-deep);
  color: var(--paper);
  border-color: var(--ochre-deep);
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  border-radius: 2px;
  /* Couleur fixée explicitement (indépendante du cascade) :
     clair en haut de page (fond hero sombre), foncé une fois scrollé. */
  background: var(--paper);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.55);
  transition: transform .3s ease, opacity .3s ease, top .3s ease, background .3s ease;
}

/* Nav scrollée (fond ivoire) OU menu ouvert (overlay ivoire) → tirets foncés */
.nav.is-scrolled .nav__toggle span,
.nav.is-open .nav__toggle span {
  background: var(--ink);
  box-shadow: none;
}

.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }

.nav.is-open .nav__toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: var(--gutter);
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.7,0,.3,1);
  }
  .nav.is-open .nav__menu { transform: translateX(0); }
  .nav__menu a { font-size: 1.5rem; font-family: var(--serif); text-transform: none; letter-spacing: 0; }
  /* Menu mobile ouvert : fond paper, donc texte foncé */
  .nav.is-open { color: var(--ink); }
  .nav.is-open .nav__menu a.is-active { color: var(--ochre-deep); }

  /* IMPORTANT : un backdrop-filter/filter sur la nav crée un bloc conteneur
     qui casse le position:fixed du menu plein écran. On le neutralise quand
     le menu est ouvert pour que l'overlay recouvre tout l'écran. */
  .nav.is-open,
  .nav.is-scrolled.is-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border-bottom-color: transparent !important;
  }
}

/* ======================= Hero ======================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: var(--paper);
  overflow: hidden;
  /* Padding-bottom généreux pour laisser respirer l'indicateur « Défiler » */
  padding: 0 var(--gutter) clamp(5.5rem, 9vw, 8rem);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) contrast(1.05);
  transform: scale(1.05);
  transition: transform 8s ease;
  z-index: 0;
}

.hero.is-loaded .hero__bg { transform: scale(1); }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,17,22,0.25) 0%, rgba(14,17,22,0.55) 60%, rgba(14,17,22,0.85) 100%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}

.hero__inner .eyebrow {
  color: var(--ochre);
  margin-bottom: 1.5rem;
}

.hero__inner .eyebrow::before { background: var(--ochre); }

.hero__title {
  font-size: clamp(2.75rem, 7.5vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: italic;
  color: var(--ochre);
  font-weight: 400;
}

.hero__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  max-width: 580px;
  color: rgba(244, 241, 236, 0.85);
  border-left: 1px solid var(--ochre);
  padding-left: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero__quote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ochre);
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(244, 241, 236, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--ochre), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* Sur mobile / petites tablettes, l'indicateur « Défiler » est masqué :
   les utilisateurs tactiles savent naturellement qu'il faut scroller, et
   l'espace vertical est précieux. */
@media (max-width: 900px) {
  .hero__scroll { display: none; }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.4); transform-origin: top; }
}

/* ======================= Boutons ======================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.85rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  border: 1px solid currentColor;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "→";
  font-size: 1rem;
  transition: transform .3s ease;
}

.btn:hover::after { transform: translateX(4px); }

.btn--filled {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--ink);
}
.btn--filled:hover { background: var(--ochre-deep); border-color: var(--ochre-deep); color: var(--paper); }

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: transparent; color: var(--ink); }

/* ======================= Cartes / éléments ======================= */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .4s ease, box-shadow .4s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Section titre : large titre + sous-titre */

.section-head {
  max-width: 780px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head h2 { margin-bottom: 1rem; }

.section-head--center {
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.section-head--center .eyebrow { justify-content: center; }

/* ======================= Présentation ======================= */

.intro__image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.intro__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.intro__image:hover img { transform: scale(1.04); }

.intro__image::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(244, 241, 236, 0.35);
  z-index: 2;
  pointer-events: none;
}

.intro__text p { margin-bottom: 1.25rem; max-width: 52ch; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.stat__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  display: block;
  color: var(--ochre-deep);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .stats > div { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
  .stats > div:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ======================= Galerie / grille photo ======================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
}

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease, opacity .5s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(244, 241, 236, 0.0);
  transition: border-color .35s ease;
  pointer-events: none;
}

.gallery__item:hover::after { border-color: rgba(244, 241, 236, 0.6); }

.gallery__caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  color: var(--paper);
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}

.gallery__item:hover .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery__caption strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 400;
}

.gallery__caption span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ochre);
}

/* Variantes de tailles dans la mosaïque (asymétrique) */
.gallery__item--lg { grid-column: span 8; aspect-ratio: 16/10; }
.gallery__item--md { grid-column: span 4; aspect-ratio: 4/5; }
.gallery__item--sm { grid-column: span 4; aspect-ratio: 1/1; }
.gallery__item--wide { grid-column: span 6; aspect-ratio: 3/2; }
.gallery__item--tall { grid-column: span 4; aspect-ratio: 3/4; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gallery__item--lg { grid-column: span 6; aspect-ratio: 16/10; }
  .gallery__item--md, .gallery__item--sm, .gallery__item--wide, .gallery__item--tall { grid-column: span 3; }
}

@media (max-width: 540px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item, .gallery__item--lg, .gallery__item--md, .gallery__item--sm, .gallery__item--wide, .gallery__item--tall {
    grid-column: span 1; aspect-ratio: 4/5;
  }
}

/* ======================= Articles / actualités ======================= */

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

.post {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  padding-top: 1.5rem;
  transition: transform .4s ease;
}

.post:hover { transform: translateY(-4px); }

.post__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--ink);
}

.post__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.post:hover .post__media img { transform: scale(1.05); }

.post__date {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.post__title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.post__excerpt {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.post__more {
  margin-top: auto;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ochre-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.post__more::after {
  content: "→";
  transition: transform .3s ease;
}

.post:hover .post__more::after { transform: translateX(4px); }

/* Article in dark section */
.section--dark .post {
  background: transparent;
  border-top-color: var(--paper);
}
.section--dark .post__date { color: rgba(244, 241, 236, 0.6); }
.section--dark .post__excerpt { color: rgba(244, 241, 236, 0.8); }

/* ======================= Programme / horaires ======================= */

.program {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 700px) { .program { grid-template-columns: 1fr; } }

.program__cell {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.program__cell h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.program__cell .eyebrow { margin-bottom: 1rem; }

.program__cell p { color: var(--ink-soft); }

/* ======================= Citation pleine largeur ======================= */

.fullquote {
  text-align: center;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  background: var(--ink);
  color: var(--paper);
  position: relative;
}

.fullquote::before, .fullquote::after {
  content: "";
  display: block;
  width: 60px; height: 1px;
  background: var(--ochre);
  margin: 0 auto 2rem;
}
.fullquote::after { margin: 2rem auto 0; }

.fullquote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 400;
}

.fullquote cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ochre);
}

/* ======================= Pied de page ======================= */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(244, 241, 236, 0.15);
}

@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.footer__brand p {
  color: rgba(244, 241, 236, 0.7);
  font-size: 0.95rem;
  max-width: 30ch;
}

.footer h5 {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ochre);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer a:hover { color: var(--ochre); }

.footer__bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(244, 241, 236, 0.55);
}

/* ======================= Contact ======================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info > div {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-info > div:first-child { padding-top: 0; }
.contact-info > div:last-child { border-bottom: none; }

.contact-info h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-info .eyebrow { margin-bottom: 0.5rem; }

.contact-info p, .contact-info a { color: var(--ink-soft); }

.contact-info a:hover { color: var(--ochre-deep); }

.form {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.field input, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color .25s ease;
  resize: vertical;
}

.field input:focus, .field textarea:focus {
  border-bottom-color: var(--ochre);
}

.form .btn { justify-self: flex-start; }

/* ======================= Page header (intérieures) ======================= */

.page-head {
  padding: 11rem var(--gutter) clamp(3rem, 6vw, 5rem);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.page-head__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: contrast(1.05) brightness(0.7);
  z-index: 0;
}

.page-head__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
}

.page-head .eyebrow { color: var(--ochre); margin-bottom: 1.5rem; }
.page-head .eyebrow::before { background: var(--ochre); }
.page-head h1 { max-width: 18ch; margin-bottom: 1rem; }
.page-head p { max-width: 60ch; color: rgba(244, 241, 236, 0.75); font-family: var(--serif); font-size: 1.25rem; font-style: italic; }

.crumb {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(244, 241, 236, 0.55);
  margin-bottom: 2rem;
}

.crumb a:hover { color: var(--ochre); }

/* ======================= Animations on scroll ======================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ======================= Lightbox ======================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 17, 22, 0.96);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}

.lightbox.is-open { display: flex; animation: fadeIn .3s ease; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: var(--paper);
  font-size: 2rem;
  width: 48px; height: 48px;
  display: grid; place-items: center;
}

.lightbox__close:hover { color: var(--ochre); }

.lightbox__caption {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
}

/* ======================= Sélection ======================= */

::selection {
  background: var(--ochre);
  color: var(--ink);
}
