/* Proportions originales, sans recadrage. Feuille chargée uniquement sur /sophie. */
.sophie-page .sophie.long {
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 90px);
  padding-top: 64px;
  padding-bottom: 72px;
}
.sophie-page .portrait-wrap { width: 100%; max-width: 360px; justify-self: center; }
.sophie-page .portrait-wrap img { width: 100%; height: auto; aspect-ratio: auto; }
.sophie-page .portrait-note { right: -16px; bottom: -20px; }
.sophie-page .sophie-copy h1 { font-size: clamp(40px, 4.25vw, 62px); line-height: 1.07; margin: 16px 0 26px; }
.sophie-page .sophie-copy > p { margin: 0 0 18px; }
.sophie-page .sophie-copy .eyebrow { font-size: 11px; line-height: 1.5; }
.sophie-page .sophie-copy .signature { margin: 20px 0 0; }
.sophie-page .interests { padding: 64px max(6vw, calc((100vw - var(--max))/2 + 28px)) 72px; }
.sophie-page .interests > p:not(.eyebrow) { max-width: 740px; margin: 0 auto; font: 500 clamp(22px, 2.5vw, 32px)/1.5 'Playfair Display', serif; }
.sophie-page .sophie-gallery { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 24px; margin-top: 32px; align-items: start; }
.sophie-page .sophie-gallery figure:first-child { grid-row: span 2; }
.sophie-page .sophie-gallery figure { background: transparent; overflow: visible; }
.sophie-page .photo-open { display: block; position: relative; color: var(--ink); cursor: zoom-in; }
.sophie-page .photo-open:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.sophie-page .sophie-gallery img { display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: auto; flex: none; object-fit: contain; }
/* Les deux captures ont 660 px noirs au-dessus et en dessous d'une photo de 970 × 727 px. */
.sophie-page .photo-crop { display: block; position: relative; overflow: hidden; aspect-ratio: 970 / 727; }
.sophie-page .photo-crop img { position: absolute; top: calc(-660 / 727 * 100%); left: 0; }
.sophie-page .sophie-gallery figcaption { padding: 14px 0 0; font-size: 11px; line-height: 1.65; }
.sophie-page .photo-hint { display: inline-flex; align-items: center; gap: 6px; position: absolute; right: 10px; bottom: 10px; padding: 6px 9px; background: var(--paper); color: var(--ink); font: 10px/1.4 'DM Mono', monospace; box-shadow: 0 2px 8px #10245118; }
.sophie-page .photo-hint svg { width: 13px; height: 13px; }
.sophie-page .callout { padding-top: 64px; padding-bottom: 64px; }
.sophie-page .callout > p { max-width: 950px; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.12; }
.photo-dialog { border: 0; padding: 0; width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); background: var(--paper); color: var(--ink); }
.photo-dialog::backdrop { background: #07152ce8; }
.photo-dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; }
.photo-dialog-bar p { margin: 0; font: 12px/1.5 'DM Mono', monospace; }
.photo-dialog button { font: inherit; color: var(--ink); background: transparent; border: 1px solid #10245135; cursor: pointer; min-width: 44px; min-height: 44px; }
.photo-dialog button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.photo-dialog-close { padding: 8px 12px; flex-shrink: 0; }
.photo-dialog figure { margin: 0; padding: 0 16px 16px; }
.photo-dialog img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 220px); object-fit: contain; }
.photo-dialog-image.is-landscape { position: relative; overflow: hidden; aspect-ratio: 970 / 727; width: min(100%, calc((100dvh - 220px) * 970 / 727)); margin: 0 auto; }
.photo-dialog-image.is-landscape img { position: absolute; top: calc(-660 / 727 * 100%); left: 0; max-height: none; }
.photo-dialog figcaption { text-align: center; margin: 12px 0 0; font: 14px/1.5 'DM Sans', sans-serif; }
.photo-dialog-controls { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 16px 16px; }
.photo-dialog-controls span { font: 12px 'DM Mono', monospace; }
.photo-dialog-open { overflow: hidden; }
@media (max-width: 760px) {
  .sophie-page .sophie.long { grid-template-columns: 1fr; gap: 44px; padding: 36px 22px 40px; }
  .sophie-page .portrait-wrap { max-width: 280px; margin: 0 auto; }
  .sophie-page .portrait-note { right: -12px; bottom: -16px; padding: 15px 18px; font-size: 20px; }
  .sophie-page .sophie-copy h1 { font-size: clamp(36px, 9.7vw, 48px); margin: 12px 0 22px; }
  .sophie-page .sophie-copy > p { font-size: 16px; line-height: 1.75; }
  .sophie-page .sophie-copy .eyebrow { font-size: 10px; }
  .sophie-page .interests { padding: 40px 22px 44px; }
  .sophie-page .interests > p:not(.eyebrow) { font-size: 24px; }
  .sophie-page .sophie-gallery { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .sophie-page .sophie-gallery figure:first-child { grid-column: auto; grid-row: auto; width: min(100%, 360px); justify-self: center; }
  .sophie-page .sophie-gallery figcaption { font-size: 10px; padding-top: 10px; }
  .sophie-page .photo-hint { right: 6px; bottom: 6px; padding: 5px; }
  .sophie-page .photo-hint span { display: none; }
  .sophie-page .callout { padding: 44px 22px; }
  .sophie-page .callout > p { font-size: clamp(34px, 8.7vw, 44px); margin-bottom: 24px; }
}

#aux-origines-de-scribeal{margin-block:2.2rem 1.5rem;scroll-margin-top:6rem}#aux-origines-de-scribeal h2{margin:0 0 1rem;font-size:clamp(1.65rem,3.3vw,2.3rem);line-height:1.15}
