/* =========================================================
   Site de Marie Jeanne Mollero
   Reprend les codes de mjphoto.fr : fond #272626, titres blancs,
   textes et menu en Montserrat Alternates, nom en Montserrat Subrayada,
   orange #ff6700 pour la page active.
   ========================================================= */

:root {
  --bg: #272626;
  --bg-deep: #1d1c1c;
  --ink: #ffffff;
  --text: #a3a09c;      /* gris du site, éclairci pour une lecture confortable */
  --muted: #7a7a7a;     /* gris d'origine du site */
  --line: #3b3939;
  --accent: #ff6700;    /* orange du menu actif sur mjphoto.fr */
  --alt: "Montserrat Alternates", system-ui, sans-serif;
  --wrap: 1140px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 1rem/1.7 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- En-tête ---------- */

.site-header {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 1rem;
  max-width: calc(var(--wrap) + 2.5rem); margin: 0 auto;
  padding: 1rem 1.25rem;
}
.brand {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 500; font-size: 1.05rem; letter-spacing: .02em;
  color: var(--ink); text-decoration: none;
}
.brand span { color: var(--text); font-weight: 400; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); }
.site-nav a {
  font-family: "Montserrat Alternates", sans-serif; font-weight: 400;
  color: var(--ink); text-decoration: none; padding: .3rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ink); }
.site-nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .site-header { position: relative; flex-wrap: wrap; }
  .site-nav ul { gap: 1rem; flex-wrap: wrap; }          /* sans JavaScript : menu simplement visible */

  .js .nav-toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 28px; height: 3px; background: var(--ink); transition: transform .25s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .js .site-nav { display: none; position: absolute; inset: 100% 0 auto 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 1rem 1rem; }
  .js .site-nav a { display: block; padding: .8rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .js .site-nav li:last-child a { border-bottom: 0; }
}

/* ---------- Une série : titre, texte à côté des vignettes ---------- */

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

.index-intro { max-width: 40rem; margin: 2rem auto 0; padding: 0 1.25rem; text-align: center; }

.series-block {
  max-width: 1080px; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem 0;
}
.series-block { scroll-margin-top: 1rem; }
.series-block + .series-block { padding-top: clamp(3.5rem, 8vw, 6rem); }

.series-title {
  margin: 0 0 clamp(1.5rem, 4vw, 2.6rem);
  text-align: center;
  color: var(--ink);
  font: 600 clamp(1.6rem, 1.2rem + 1.4vw, 2rem)/1.2 Roboto, sans-serif;
}
.series-title a { color: inherit; text-decoration: none; }
.series-title a:hover { color: var(--accent); }

.series-body {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
}
.text-right .series-body { grid-template-columns: auto minmax(0, 1fr); }
.text-right .series-text { order: 2; }
.no-text .series-body, .no-text.text-right .series-body { grid-template-columns: auto; justify-content: center; }

.series-text { max-width: 30rem; justify-self: end; }
.text-right .series-text { justify-self: start; }
.series-text p { margin: 0 0 1em; }
.series-text p:last-child { margin-bottom: 0; }
.series-outro { margin-top: 1.6em; }

/* Vignettes : 2 colonnes jusqu'à 4 photos, 3 colonnes au-delà */
.thumbs { --cell: 260px; display: grid; gap: 10px; grid-template-columns: repeat(var(--cols), var(--cell)); }
.cols-1 .thumbs { --cols: 1; --cell: min(440px, 100%); }
.cols-2 .thumbs { --cols: 2; --cell: 260px; }
.cols-3 .thumbs { --cols: 3; --cell: 180px; }
.thumbs.is-vertical { --cell: calc(var(--base-cell) * var(--vertical-scale)); }
.cols-1 .thumbs { --base-cell: 440px; } .cols-2 .thumbs { --base-cell: 260px; } .cols-3 .thumbs { --base-cell: 180px; }

.thumb {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 3);
  background: var(--bg-deep);
  cursor: zoom-in;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.thumb:hover img, .thumb:focus-visible img { transform: scale(1.04); }

/* Titre de la photo au passage de la souris */
.thumb-title {
  position: absolute; inset: auto 0 0 0;
  padding: 2.2rem .7rem .55rem;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
  color: #fff; font-size: .88rem; line-height: 1.3; font-weight: 400;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.thumb:hover .thumb-title, .thumb:focus-visible .thumb-title { opacity: 1; transform: none; }

/* Sans titre : une petite loupe, comme sur le site actuel */
.thumb:not(:has(.thumb-title))::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0; transition: opacity .25s;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.6));
}
.thumb:hover::after { opacity: .9; }

.series-text-center { max-width: 38rem; margin: 0 auto 2.2rem; text-align: center; }
.series-text-center:last-child { margin: 2.4rem auto 0; }
.layout-vedette .series-text-center { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Disposition « Mise en avant » : une grande photo + le reste à côté ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.feature-right .feature { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.feature-right .feature-main { order: 2; }
/* La grande photo garde ses proportions et se colle du côté des vignettes (pas de vide entre les deux) */
.feature-main { aspect-ratio: auto; justify-self: end; width: fit-content; max-width: 100%; }
.feature-right .feature-main { justify-self: start; }
.feature-main img { width: auto; max-width: 100%; height: auto; max-height: 78vh; }
/* Photos verticales : 20 % moins hautes pour rester équilibrées avec le reste de la page */
:root { --vertical-scale: .8; }
.feature-main.is-vertical img { max-height: calc(78vh * var(--vertical-scale)); }
@media (max-width: 860px) { .feature-main.is-vertical img { max-height: none; width: calc(100% * var(--vertical-scale)); margin: 0 auto; } }
.feature-side { display: grid; gap: 1.8rem; align-content: start; }
.feature-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.feature-thumbs .thumb { aspect-ratio: 1 / 1; }

@media (max-width: 860px) {
  .feature, .feature-right .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-right .feature-main { order: 0; }
  .feature-main, .feature-right .feature-main { justify-self: center; }
}

.series-more { text-align: center; margin: 1.4rem 0 0; font-size: .95rem; }
.series-more a { color: var(--text); }
.series-more a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .series-body, .no-text .series-body, .text-right .series-body { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .text-right .series-text { order: 0; }
  .series-text, .text-right .series-text { justify-self: center; max-width: 34rem; }
  .thumbs { width: 100%; max-width: 560px; justify-self: center; }
  .cols-2 .thumbs, .cols-3 .thumbs { --cell: minmax(0, 1fr); }
  .cols-3 .thumbs { --cols: 3; }
  .thumbs.is-vertical { --cell: minmax(0, 1fr); max-width: calc(560px * var(--vertical-scale)); width: calc(100% * var(--vertical-scale)); }
  .thumb-title { opacity: 1; transform: none; font-size: .78rem; padding: 1.6rem .45rem .35rem; }  /* pas de souris sur téléphone */
}
@media (max-width: 480px) {
  .cols-3 .thumbs { --cols: 2; }
}

.crumbs { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; font-size: .9rem; }
.crumbs a { color: var(--text); }

.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; margin: 0; }

.draft-note {
  margin: 0; padding: .8rem 1rem; text-align: center;
  background: #4a3b16; color: #f3e3b5; font-weight: 400;
}

/* ---------- Séries précédente / suivante ---------- */

.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  max-width: 1080px; margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding: 1.6rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.pager a:hover { color: var(--accent); }
.pager a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.pager small { display: block; color: var(--muted); font-weight: 300; font-size: .85rem; margin-bottom: .2rem; }
.pager .next { text-align: right; grid-column: 2; }

/* ---------- Pied de page ---------- */

.site-footer { text-align: center; padding: 3rem 1rem 2.5rem; color: var(--muted); font-size: .85rem; }
.site-footer p { margin: .2rem 0; }
.site-footer .private { color: var(--muted); }

/* ---------- Barre de la photographe connectée ---------- */

.adminbar {
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center; align-items: center;
  padding: .55rem 1rem; background: #f3f1ee; color: #272626; font: 400 .95rem/1.4 Roboto, sans-serif;
}
.adminbar a { color: #4b46cf; font-weight: 600; }
.adminbar-msg { color: #2b6b45; font-weight: 600; }

/* ---------- Visionneuse plein écran ---------- */

.lb {
  position: fixed; inset: 0; z-index: 1000;
  background: #0e0d0d;
  height: 100vh; height: 100dvh;                 /* la visionneuse fait toujours la taille de l'écran */
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  opacity: 0; transition: opacity .25s;
  touch-action: pan-y;
}
.lb[hidden] { display: none; }
.lb.on { opacity: 1; }
.lb-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 0; overflow: hidden;
  padding: clamp(1rem, 4vh, 3rem) clamp(.5rem, 7vw, 6rem) clamp(.5rem, 2vh, 1rem);
}
/* La photo tient toujours entière à l'écran, avec une marge, et ne dépasse
   jamais 1600 × 1100 px : au-delà, l'aperçu devient écrasant sur grand écran. */
.lb-stage img {
  width: auto; height: auto;
  max-width: min(100%, 1600px);
  max-height: min(calc(100vh - 9rem), 1100px);   /* navigateurs anciens */
  max-height: min(calc(100dvh - 9rem), 1100px);
  min-width: 0; flex: 0 1 auto;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .55);
  user-select: none; -webkit-user-drag: none;
  transition: opacity .2s;
}
.lb-stage img.loading { opacity: .25; }
.lb-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem clamp(1rem, 4vw, 3rem) 1.1rem; color: var(--text); font-size: .95rem; }
.lb-caption { color: var(--ink); font-style: italic; }
.lb-count { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb button {
  position: absolute; border: 0; background: none; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; width: 56px; height: 56px; opacity: .75;
}
.lb button:hover, .lb button:focus-visible { opacity: 1; }
.lb button svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.lb-close { top: .5rem; right: .5rem; z-index: 2; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); height: 40%; }
.lb-prev { left: 0; }
.lb-next { right: 0; }
@media (max-width: 600px) { .lb-prev, .lb-next { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
   Pages du site
   ========================================================= */

main { overflow-x: clip; }      /* les animations « depuis la droite » ne créent pas de défilement horizontal */

.page-title {
  margin: 0; text-align: center; color: var(--ink);
  font: 800 clamp(1.6rem, 1.2rem + 1.4vw, 2rem)/1.2 var(--alt);
}

/* ---------- Animations (reprises de l'ancien site) ---------- */
.js .anim { opacity: 0; }
.js .anim.is-in { animation: var(--anim-name) var(--anim-dur, 1.25s) cubic-bezier(.25,.46,.45,.94) var(--delay, 0s) both; }
.anim-fade-in       { --anim-name: mjFadeIn; }
.anim-fade-in-right { --anim-name: mjFadeInRight; }
.anim-fade-in-down  { --anim-name: mjFadeInDown; }
.anim-slow          { --anim-dur: 2s; }
@keyframes mjFadeIn      { from { opacity: 0; } to { opacity: 1; } }
@keyframes mjFadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes mjFadeInDown  { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .anim { opacity: 1; } .js .anim.is-in { animation: none; } }

/* ---------- Accueil : le nom et la photo forment un groupe centré ---------- */
.home {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  max-width: 1400px; margin: 0 auto;
  min-height: calc(100vh - 11rem);
  padding: clamp(1.5rem, 4vw, 3rem) 1.25rem 2rem;
}
.home-title { flex: 0 1 auto; text-align: right; }
.home h1 { margin: 0; font-weight: normal; }
.home-name {
  display: block; margin-left: auto; max-width: 8em;
  color: var(--ink); text-transform: uppercase;
  font: 700 clamp(2.6rem, 1.3rem + 3.6vw, 4.4rem)/1.12 "Montserrat Subrayada", var(--alt);
}
.home-sub {
  display: block; margin-top: 1.2rem;
  color: var(--ink); font: 100 clamp(1.8rem, 1.1rem + 1.9vw, 2.9rem)/1.1 var(--alt);
}
.home-image { margin: 0; flex: 0 1 auto; min-width: 0; }
.home-image img { width: auto; max-width: min(100%, 52vw); max-height: calc(100vh - 10rem); }
.home-no-image .home-title { text-align: center; }
.home-no-image .home-name { margin: 0 auto; }
@media (max-width: 760px) {
  .home { flex-direction: column; min-height: 0; padding-top: .5rem; }
  .home-title { text-align: center; }
  .home-name { margin: 0 auto; }
  .home-image img { max-width: 100%; max-height: 75vh; margin: 0 auto; }
}

/* ---------- À propos ---------- */
.about { max-width: var(--wrap); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 0; }
.about-content { margin-top: clamp(2rem, 5vw, 3rem); display: grid; gap: 1.25rem; }
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: center; }
.about-row > * { padding: 10px; }
.about-single { grid-template-columns: 1fr; }
.about-text { color: var(--ink); font: 400 1rem/2.19 var(--alt); }
.about-text p { margin: 0 0 1em; }
.about-text p:last-child { margin-bottom: 0; }
.about-photo { margin: 0; justify-self: center; }
.about-photo a { display: block; cursor: zoom-in; }
.about-photo img { max-height: 620px; width: auto; }
.about-photo img.is-vertical { max-height: calc(620px * var(--vertical-scale)); }
.about-photo figcaption { color: var(--muted); font-size: .85rem; text-align: center; margin-top: .4rem; }
.about-cta { text-align: center; margin: 2.5rem 0 0; }
.btn-contact {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 10px 18px; background: #605be5; color: #fff; text-decoration: none;
  font: 500 15px/1.5 Roboto, sans-serif; transition: background .3s, padding .3s;
}
.btn-contact svg { width: 9px; height: 15px; fill: currentColor; transition: transform .3s; }
.btn-contact:hover { background: #4b46cf; }
.btn-contact:hover svg { transform: translateX(4px); }
@media (max-width: 760px) {
  .about-row { grid-template-columns: 1fr; }
  .about-row > .about-photo { order: -1; }
}

/* ---------- Contact : l'image et les coordonnées forment un groupe centré ---------- */
.contact {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  max-width: 1400px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) 1.25rem 1rem;
}
.contact-image { margin: 0; flex: 0 1 540px; min-width: 0; }
.contact-image img { width: 100%; }
.contact-info { flex: 0 1 auto; }
.contact-name { margin: 0 0 1.2rem; color: var(--ink); font: 400 clamp(1.6rem, 1.2rem + 1.2vw, 2rem)/1.2 var(--alt); }
.contact-email { margin: 0; font: 400 1.05rem/1.5 var(--alt); }
.contact-email a { color: var(--ink); text-decoration: underline; text-decoration-color: currentColor; }
.contact-email a:hover { color: var(--accent); }
.contact-text { margin-top: 1.5rem; max-width: 26rem; color: var(--text); font: 400 1rem/1.9 var(--alt); }
.contact-no-image { text-align: center; }
@media (max-width: 760px) {
  .contact { flex-direction: column; }
  .contact-image { flex-basis: auto; width: 100%; }
  .contact-info { text-align: center; }
  .contact-text { margin-left: auto; margin-right: auto; }
}

.contact-form-wrap { max-width: 36rem; margin: 2.5rem auto 0; padding: 0 1.25rem; }
.contact-form-title { color: var(--ink); font: 400 1.35rem/1.3 var(--alt); text-align: center; margin: 0 0 1.4rem; }
.contact-form { display: grid; gap: 1.1rem; font-family: var(--alt); }
.contact-form label { display: grid; gap: .35rem; color: var(--ink); font-size: .95rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .75rem .85rem; border: 1px solid #4a4747; border-radius: 2px;
  background: #1f1e1e; color: var(--ink); font: 400 1rem/1.5 var(--alt);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.contact-form button {
  justify-self: center; padding: .8rem 2rem; border: 0; background: #605be5; color: #fff;
  font: 500 1rem/1 Roboto, sans-serif; cursor: pointer;
}
.contact-form button:hover { background: #4b46cf; }
.form-note { color: var(--muted); font-size: .82rem; text-align: center; margin: 0; }
.form-error { color: #ffb4a8; background: #3d2522; padding: .7rem 1rem; margin: 0 0 1rem; font-family: var(--alt); }
.form-sent { color: #c8f0d4; background: #213a2b; padding: 1.2rem; text-align: center; font-family: var(--alt); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pérégrinations ---------- */
.articles { max-width: var(--wrap); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 0; }
.articles-intro { max-width: 38rem; margin: 1.6rem auto 0; text-align: center; font: 400 1rem/1.9 var(--alt); }
.article-list { list-style: none; margin: clamp(2rem, 5vw, 3rem) auto 0; padding: 0; max-width: 52rem; display: grid; gap: 0; }
.article-card { border-top: 1px solid var(--line); }
.article-card:last-child { border-bottom: 1px solid var(--line); }
.article-card a { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; padding: clamp(1.4rem, 3vw, 2rem) 0; text-decoration: none; }
.article-card-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-deep); }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: filter .4s; }
.article-card a:hover .article-card-img img { filter: none; }
.article-card-body { display: grid; gap: .5rem; font-family: var(--alt); }
.article-card-body time { color: var(--muted); font-size: .85rem; }
.article-card-title { color: var(--ink); font-weight: 500; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); line-height: 1.25; }
.article-card-excerpt { color: #c9c6c2; line-height: 1.85; }
.article-card-more { color: var(--ink); font-size: .9rem; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .3em; }
.article-card a:hover .article-card-title, .article-card a:hover .article-card-more { color: var(--accent); }
.article-card-noimg a { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .article-card a { grid-template-columns: 84px minmax(0, 1fr); } }

.article { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 0; }
.article-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.crumbs-inline { margin: 0 0 1rem; font: 400 .9rem var(--alt); }
.crumbs-inline a { color: var(--text); }
.article-date { display: block; margin-top: .9rem; color: var(--muted); font: 400 .9rem var(--alt); }
.article-body { color: #d9d6d2; font: 400 1.05rem/2 var(--alt); }
.block-text p { margin: 0 0 1.3em; }
.block-heading { color: var(--ink); font: 500 1.35rem/1.35 var(--alt); margin: 2.2rem 0 1rem; }
.block-quote {
  margin: 2rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 2px solid var(--accent);
  color: var(--ink); font-style: italic; font-size: 1.12rem;
}
.block-quote p { margin: 0 0 .6em; }
.block-photo { margin: 2.2rem 0; }
.block-photo a { display: block; cursor: zoom-in; }
.block-photo img { margin: 0 auto; max-height: 85vh; width: auto; }
.block-photo img.is-vertical { max-height: calc(85vh * var(--vertical-scale)); }
@media (min-width: 1000px) {                 /* les photos d'un article débordent un peu du texte */
  .block-photo { margin-left: -6rem; margin-right: -6rem; }
}
.block-photo figcaption { text-align: center; color: var(--muted); font-size: .88rem; font-style: italic; margin-top: .6rem; }

/* ---------- Pages simples (404, mentions légales) ---------- */
.simple-page { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) 1.25rem 0; font-family: var(--alt); }
.simple-lead, .simple-links { text-align: center; }
.legal-text { margin-top: 2rem; line-height: 1.85; }
.legal-text h2 { color: var(--ink); font: 500 1.15rem var(--alt); margin: 2rem 0 .5rem; }
.legal-text p { margin: 0 0 1em; }

.footer-links { font-size: .8rem; }
.footer-links a { color: var(--muted); }

/* ---------- Envoyer une photo (visible seulement quand Marie Jeanne est connectée) ---------- */
.lb-bar { align-items: center; }
.lb-bar .lb-caption { flex: 1; }
.lb-bar .lb-count { flex: 1; text-align: right; }
.lb-share {
  position: static; flex: none;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem; border: 0; border-radius: 30px;
  background: #fff; color: #272626; font: 600 .95rem/1 Roboto, sans-serif; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.lb .lb-share { position: static; width: auto; height: auto; opacity: 1; background: #fff; color: #272626; }
.lb .lb-share:hover { background: #ffe6d4; }
.lb-share:hover { background: #ffe6d4; }
.share-dialog {
  position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 1rem;
  background: rgba(0, 0, 0, .6);
}
.share-dialog[hidden] { display: none; }
.share-box {
  width: min(100%, 30rem); max-height: 92vh; overflow: auto;
  background: #fff; color: #272626; border-radius: 12px; padding: 1.4rem;
  font: 400 1rem/1.5 Roboto, sans-serif;
}
.share-box h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.share-preview { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.share-preview img { width: 88px; height: 66px; object-fit: cover; border-radius: 6px; }
.share-preview span { color: #5b6066; font-size: .9rem; }
.share-box label { display: grid; gap: .3rem; font-weight: 500; margin-bottom: .9rem; }
.share-box small { color: #5b6066; font-weight: 400; }
.share-box input, .share-box textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid #b9bec3; border-radius: 8px; font: inherit; color: #272626; background: #fff;
}
.share-box input:focus, .share-box textarea:focus { outline: 3px solid #ecebfc; border-color: #605be5; }
.share-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-top: .4rem; }
.share-actions button { min-height: 46px; padding: .5rem 1.2rem; border-radius: 8px; font: 500 1rem Roboto, sans-serif; cursor: pointer; border: 1px solid #d9dcdf; background: #fff; color: #272626; }
.share-actions .primary { background: #605be5; border-color: #605be5; color: #fff; }
.share-actions .primary:disabled { opacity: .6; cursor: wait; }
.share-msg { margin: .2rem 0 .8rem; padding: .7rem .9rem; border-radius: 8px; font-weight: 500; }
.share-msg.ok { background: #e4f2e9; color: #2b6b45; }
.share-msg.err { background: #fbe6e2; color: #a3301d; }

/* ---------- Article : photos en vignettes selon la mise en page ---------- */
.article-body { display: flow-root; }                 /* contient les vignettes flottantes */
.article:has(.layout-marge) { max-width: 66rem; }
.text-thumb, .side-thumb, .end-thumb { margin: 0; }
.text-thumb a, .side-thumb a, .end-thumb a { position: relative; display: block; cursor: zoom-in; background: var(--bg-deep); }
.text-thumb img, .side-thumb img { width: 100%; height: auto; }
.text-thumb figcaption, .side-thumb figcaption, .end-thumb figcaption {
  margin-top: .4rem; color: var(--muted); font-size: .8rem; line-height: 1.4; font-style: italic;
}
/* Petite loupe : on sait qu'on peut agrandir */
.zoom-hint {
  position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 15px no-repeat;
  opacity: .75; transition: opacity .2s, transform .2s;
}
a:hover > .zoom-hint, a:focus-visible > .zoom-hint { opacity: 1; transform: scale(1.1); }

/* 1. Vignettes dans le texte (le texte contourne) */
.text-thumb { width: 240px; margin-bottom: 1rem; clear: both; }   /* jamais deux vignettes côte à côte : le texte garde sa largeur */
.text-thumb.is-vertical { width: 190px; }
.text-thumb.on-right { float: right; margin-left: 1.8rem; margin-top: .35rem; }
.text-thumb.on-left { float: left; margin-right: 1.8rem; margin-top: .35rem; }

/* 2. Photos dans la marge */
.layout-marge { padding-right: 17rem; }
.side-thumb { float: right; clear: right; width: 14.5rem; margin: .35rem -17rem 1.2rem 0; }
.side-thumb.is-vertical { width: 11.5rem; }

/* 3. Photos regroupées à la fin */
.end-photos {
  clear: both; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.end-thumb a { aspect-ratio: 1; overflow: hidden; }
.end-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.end-thumb a:hover img { transform: scale(1.04); }

@media (max-width: 900px) {
  .layout-marge { padding-right: 0; }
  .side-thumb, .side-thumb.is-vertical { width: 42%; max-width: 220px; margin: .35rem 0 1rem 1.4rem; }
}
@media (max-width: 560px) {
  /* Sur téléphone : la vignette se place entre deux paragraphes, le texte garde toute la largeur */
  .text-thumb, .text-thumb.on-left, .text-thumb.on-right,
  .side-thumb, .side-thumb.is-vertical { float: none; width: 62%; max-width: 260px; margin: .4rem auto 1.4rem; }
  .text-thumb.is-vertical, .side-thumb.is-vertical { width: 48%; }
}

/* ---------- Pérégrinations : liste sobre, un bouton noir par texte ---------- */
.article-buttons {
  list-style: none; margin: clamp(2rem, 5vw, 3rem) auto 0; padding: 0; max-width: 52rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem;
}
.article-button {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-width: 15rem; min-height: 4.2rem; padding: 1.1rem 2rem;
  background: #000; color: #fff; text-decoration: none;
  font: 700 1.12rem/1.3 var(--alt); letter-spacing: .01em;
  border: 1px solid #3a3838; border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .25s, box-shadow .25s, border-color .25s, color .25s;
}
.article-button:hover, .article-button:focus-visible {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}
.article-buttons { gap: 1.1rem; }
@media (max-width: 560px) { .article-buttons { flex-direction: column; align-items: stretch; } .article-button { min-width: 0; } }

/* ---------- Bouton de connexion (rond noir, dessin blanc) ---------- */
.login-btn {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: #000; color: #fff;
  border: 1px solid #3a3838;
  transition: border-color .25s, color .25s, transform .25s;
}
.login-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.login-btn:hover, .login-btn:focus-visible { border-color: var(--accent); color: var(--accent); transform: scale(1.06); }
.site-nav { margin-right: .4rem; }
@media (max-width: 760px) {
  .js .nav-toggle { order: 1; }
  .login-btn { order: 2; }
}
