/* ==========================================================================
   Stéphanie REISS — Photographe · site statique
   Refonte HTML/CSS fidèle au design original (thème Border), sans WordPress.
   ========================================================================== */

:root {
  --frame: 42px;            /* épaisseur du cadre blanc */
  --bar-text: #777;
  --text: #444;
  --heading: #3b3b3b;
  --accent: #999;
  --mosaic-bg: #ccc;
  --font-body: "Raleway", sans-serif;
  --font-heading: "Playfair Display", serif;
  --font-menu: "Source Sans Pro", sans-serif;
  --font-slider: "Open Sans", sans-serif;
}

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

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 200;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  padding: var(--frame) var(--frame) 0;
}

/* ---------- Cadre blanc fixe (signature du thème Border) ---------- */
.frame-bar { position: fixed; background: #fff; z-index: 40; }
.frame-bar--top    { top: 0; left: 0; right: 0; height: var(--frame); }
.frame-bar--left   { top: 0; bottom: 0; left: 0; width: var(--frame); }
.frame-bar--right  { top: 0; bottom: 0; right: 0; width: var(--frame); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--frame);
  padding: 0 var(--frame);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  background: #fff;
}
.site-logo {
  font-family: var(--font-menu);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bar-text);
  text-decoration: none;
  white-space: nowrap;
}
.site-logo:hover { color: #000; }

/* Burger */
.nav-trigger {
  background: none; border: 0; cursor: pointer;
  width: 30px; height: 22px;
  position: relative;
  display: inline-block;
}
.nav-trigger span,
.nav-trigger span::before,
.nav-trigger span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--bar-text);
  transition: all .25s ease;
}
.nav-trigger span { top: 50%; }
.nav-trigger span::before { top: -7px; }
.nav-trigger span::after  { top: 7px; }
.nav-trigger:hover span,
.nav-trigger:hover span::before,
.nav-trigger:hover span::after { background: #000; }

/* ---------- Navigation (panneau latéral droit) ---------- */
.site-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: #fff;
  border-left: 1px solid #eee;
  z-index: 60;
  padding: 70px 36px 36px;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.site-nav.is-open { transform: translateX(0); }
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.6);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  z-index: 55;
}
.nav-overlay.is-visible { opacity: 1; pointer-events: auto; }
.nav-close {
  position: absolute; top: 20px; right: 26px;
  background: none; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--bar-text);
  font-family: var(--font-body);
}
.nav-close:hover { color: #000; }
.site-nav ul { list-style: none; }
.site-nav li { margin-bottom: 4px; }
.site-nav a {
  font-family: var(--font-menu);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
  text-decoration: none;
}
.site-nav a:hover, .site-nav .current a { color: #000; }
.nav-lang {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}
.nav-lang a, .nav-lang span {
  font-family: var(--font-menu);
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
  margin-right: 12px;
}
.nav-lang .lang-current { color: #bbb; }
.nav-lang a:hover { color: #000; }

/* ---------- Contenu ---------- */
.site-main { min-height: calc(100vh - 2 * var(--frame)); }

.page-narrow {
  max-width: 840px;
  margin: 0 auto;
  padding: 24px 12px;
}
.page-full { width: 100%; }

h1.page-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2em;
  color: var(--heading);
  text-align: center;
  margin: 20px 0 10px;
}
hr.separator {
  border: 0;
  border-top: 1px solid #444;
  width: 42px;
  margin: 0 auto 40px;
}
hr.separator--dotted {
  border: 0;
  border-top: 1px dotted #bbb;
  width: 100%;
  margin: 14px 0;
}

h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--heading);
  margin: 1.2em 0 .5em;
}
p { margin-bottom: 1.2em; }
a { color: var(--text); }
a:hover { color: #000; }
strong { font-weight: 600; }

blockquote {
  font-family: var(--font-heading);
  font-size: 1.15em;
  border-left: 12px solid #777;
  padding-left: 18px;
  margin: 1.4em 0 .6em;
  color: var(--heading);
}
.quote-attribution {
  display: block;
  text-align: right;
  font-size: .85em;
  margin-top: -10px;
  margin-bottom: 2em;
}

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}
.hero--full { margin-bottom: 40px; }
.hero a { display: block; }
.hero img.hero__bg { width: 100%; height: auto; display: block; }
.hero--full img.hero__bg { max-height: 82vh; object-fit: cover; object-position: center; }

/* ---------- 2 colonnes accueil (desktop uniquement) ---------- */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 840px;
  margin: 0 auto;
  padding: 10px 12px 24px;
}
.two-cols .col { text-align: justify; }
@media (max-width: 900px) {
  .two-cols { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Accessibilité ---------- */
.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;
}
.hero__caption {
  position: absolute;
  top: 40%; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  animation: heroFade 1.6s ease .4s both;
}
.hero__caption .line1,
.hero__caption .line2 {
  font-family: var(--font-slider);
  font-weight: 300;
  font-size: clamp(14px, 1.9vw, 24px);
  line-height: 1.65;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(0,0,0,.35);
}
.hero__caption .signature {
  font-family: var(--font-heading);
  font-size: clamp(12px, 1.4vw, 18px);
  margin-top: .6em;
  display: block;
}
.hero__trait {
  display: block;
  width: 350px;
  max-width: 70vw;
  margin: -50px auto 0px;   /* remonté de 50px pour ne pas toucher le texte */
  pointer-events: none;
  animation: heroFade 1.2s ease .2s both;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Grilles de cartes (pages hub) ---------- */
.cards {
  display: grid;
  gap: 24px;
  margin: 30px 0;
}
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); max-width: 700px; margin-left: auto; margin-right: auto; }

.card { text-align: left; }
.card__image { position: relative; display: block; overflow: hidden; }
.card__image img { width: 100%; height: auto; display: block; transition: opacity .3s ease; }
.card__image::after {
  content: "+";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 100; color: #444;
  background: rgba(255,255,255,.75);
  opacity: 0;
  transition: opacity .3s ease;
}
.card__image:hover::after { opacity: 1; }
.card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05em;
  margin: 14px 0 6px;
}
.card__name a { text-decoration: none; }
.card__desc {
  font-size: .95em;
  text-align: justify;
}

/* ---------- Mosaïque de galerie ---------- */
.mosaic-wrapper { background: var(--mosaic-bg); padding: 6px; }
.mosaic {
  column-count: 4;
  column-gap: 6px;
}
.mosaic__item {
  break-inside: avoid;
  margin-bottom: 6px;
  position: relative;
  display: block;
}
.mosaic__item img { width: 100%; height: auto; display: block; }
.mosaic__item .zoom {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 100; color: #444;
  background: rgba(255,255,255,.7);
  opacity: 0;
  transition: opacity .25s ease;
}
.mosaic__item:hover .zoom { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,10,.94);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  box-shadow: 0 0 40px rgba(0,0,0,.6);
}
.lightbox__btn {
  position: absolute;
  background: none; border: 0; cursor: pointer;
  color: #ddd; font-size: 34px; line-height: 1;
  padding: 14px;
  font-family: Arial, sans-serif;
  user-select: none;
}
.lightbox__btn:hover { color: #fff; }
.lightbox__close { top: 10px; right: 16px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__caption {
  position: absolute; bottom: 14px; left: 0; right: 0;
  text-align: center; color: #bbb; font-size: .85em;
}

/* ---------- Layout scindé (bio, contact, expositions, livres, prix) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 calc(-1 * var(--frame) + 0px);
  min-height: calc(100vh - var(--frame));
}
.split__media {
  background-size: cover;
  background-position: center;
  position: sticky;
  top: var(--frame);
  height: calc(100vh - var(--frame));
}
.split__content {
  padding: 60px 56px;
  max-width: 620px;
}
h1.page-title--left { text-align: left; margin-top: 0; }
.split hr.separator--left,
hr.separator--left { margin: 0 0 36px; }
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__media { position: static; height: 44vw; min-height: 240px; }
  .split__content { max-width: none; padding: 36px 20px; }
}
@media (max-width: 560px) {
  .cols-2 { grid-template-columns: 1fr; }
}

/* ---------- Contenu riche (pages texte) ---------- */
.entry { text-align: left; }
.entry img { max-width: 100%; height: auto; }
.entry .aligncenter { display: block; margin: 20px auto; }
.entry .alignright { float: right; margin: 0 0 16px 24px; }
.entry .alignleft { float: left; margin: 0 24px 16px 0; }
.entry ul, .entry ol { margin: 0 0 1.2em 1.4em; }
.entry .small-right { float: right; margin-top: -20px; }
.entry .justify { text-align: justify; }
.entry table { border-collapse: collapse; width: 100%; margin-bottom: 1.4em; }
.entry td { vertical-align: top; padding: 6px 0; }
.entry td:first-child { white-space: nowrap; width: 1%; padding-right: 26px; }
.entry sup { font-size: .7em; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px var(--frame) 14px;
  margin: 60px calc(-1 * var(--frame)) 0;
  font-size: 12px;
  color: var(--bar-text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.site-footer a { color: var(--bar-text); text-decoration: none; }
.site-footer a:hover { color: #000; }
.footer-social a {
  text-transform: lowercase;
  letter-spacing: 1px;
}
.footer-menu a { margin-left: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .mosaic { column-count: 3; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  :root { --frame: 0px; }
  body { padding: 42px 12px 0; }
  .site-header { padding: 0 12px; background: #fff; height: 42px; }
  .frame-bar { display: none; }
  .mosaic { column-count: 2; }
  .cards--4, .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .hero__caption { top: 32%; }
  .hero__trait { margin: -20px auto -12px; }
  .site-footer { margin: 40px -12px 0; padding: 24px 12px 12px; flex-direction: column; text-align: center; }
  .footer-menu a { margin: 0 8px; }
}
@media (max-width: 480px) {
  .mosaic { column-count: 1; }
}
