/* ==========================================================================
   Kévin Rocha — feuille de styles principale
   Couleurs, polices et mesures communes : variables ci-dessous (:root).
   Pages reportage : mêmes styles que le thème Rebbati Studio (section « Page reportage »).
   ========================================================================== */

/* ---------- Polices (hébergées sur le site, dossier assets/fonts) ----------
   Les mêmes que le site mariage : EB Garamond (titres et textes) et DM Mono (libellés),
   licence SIL Open Font License. Fichiers « latin » (français, anglais) et « latin-ext »
   (accents plus rares) : le navigateur ne télécharge que ceux dont la page a besoin. */

@font-face {
  font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/dm-mono-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/dm-mono-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/dm-mono-normal-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/dm-mono-normal-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond'; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url("../fonts/eb-garamond-italic-400-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond'; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url("../fonts/eb-garamond-italic-400-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/eb-garamond-normal-400-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/eb-garamond-normal-400-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f2ede4;          /* papier */
  --ink: #1e1b17;         /* texte */
  --accent: #8e5219;      /* terre de Sienne : surtitres, italiques des grands titres */
  --beige: #e6ddcf;       /* fond du bandeau « Commandes & collaborations » */
  --muted: #6b6359;       /* libellés, pied de page */
  --muted-2: #5e574e;     /* libellés des coordonnées */
  --text-2: #3a352f;      /* paragraphes */
  --tone: #b3aa9a;        /* fond des photos en chargement */
  --dark: #1e1b17;        /* fonds sombres (reportages) */
  --muted-dark: #a9a196;  /* libellés sur fond sombre */
  --placeholder: #e2dacd; /* fond des photos de reportage en chargement */
  --line: rgba(30, 27, 23, .14);
  --line-dark: rgba(242, 237, 228, .16);

  --display: 'EB Garamond', Garamond, 'Times New Roman', serif;      /* titres */
  --serif-texte: 'EB Garamond', Garamond, 'Times New Roman', serif;  /* textes */
  --serif: var(--display);
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;                 /* libellés */

  --largeur: 1600px;              /* largeur maximale du contenu des pages */
  --pad: max(clamp(20px, 5vw, 120px), calc((100vw - var(--largeur)) / 2)); /* marges de côté : le contenu reste centré sur grand écran */
  --gutter: 28px;                 /* marges des pages reportage (comme Rebbati Studio) */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-texte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: color .25s ease, opacity .3s ease; }
a:hover { color: var(--accent); }
::selection { background: var(--ink); color: var(--bg); }
input, textarea, select, button { font: inherit; }
img { max-width: 100%; }
picture { display: contents; }
em { font-style: italic; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
main:focus { outline: none; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

/* Petites capitales en police à chasse fixe */
.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--accent { color: var(--accent); }

/* Petit titre de section (« Contact », « Clients »…) */
.label-titre {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.link-line {
  display: inline-block;
  padding: 12px 0;
  border-bottom: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bouton {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px;
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
}
.bouton:hover { background: var(--accent); color: var(--bg); }

/* Grands titres : les mots en italique prennent la couleur d'accent */
.titre-accent em { font-style: italic; color: var(--accent); }

/* Teinte argentique des vignettes et grandes photos (réglage « Teinte argentique ») */
.film { filter: sepia(.12) saturate(.9) contrast(1.03); }

/* Paragraphes */
.prose { display: flex; flex-direction: column; gap: clamp(16px, 1.4vw, 24px); font-size: clamp(17px, .35vw + 13px, 20px); line-height: 1.75; color: var(--text-2); }
.prose p { margin: 0; text-wrap: pretty; }

/* Grande phrase (colonnes, sections libres) */
.phrase { margin: 0; font-family: var(--display); font-size: clamp(28px, 2.4vw, 42px); font-weight: 400; line-height: 1.22; max-width: 20ch; text-wrap: pretty; }

/* ---------- Animations d'entrée ----------
   Les éléments sont masqués seulement si le JavaScript est actif (classe .js),
   puis révélés au chargement (.is-loaded) ou au défilement (.is-in).
   Réglages par élément : --d (délai) et --t (durée).

   Vitesse générale de l'arrivée de la page : les délais sont multipliés par
   --fx-delai et la durée des apparitions de texte par --fx-duree (1 = rythme de la
   maquette d'origine). Le texte arrive ainsi plus vite, ce qui compte aussi pour
   Google (le plus grand texte du premier écran doit s'afficher rapidement). */
:root { --fx-delai: .5; --fx-duree: .7; }

.js .fx-fade { opacity: 0; }
.fx-fade { transition: opacity calc(var(--t, 1.2s) * var(--fx-duree)) ease calc(var(--d, 0s) * var(--fx-delai)); }

.js .fx-rise { opacity: 0; transform: translateY(32px); }
.fx-rise {
  transition:
    opacity calc(var(--t, 1.4s) * var(--fx-duree)) ease calc(var(--d, 0s) * var(--fx-delai)),
    transform calc(var(--t, 1.4s) * var(--fx-duree)) var(--ease) calc(var(--d, 0s) * var(--fx-delai));
}

.js .fx-line { transform: translateY(110%); }
.fx-line { display: block; transition: transform calc(1.5s * var(--fx-duree)) var(--ease) calc(var(--d, .5s) * var(--fx-delai)); }

/* Photos : même avance, mais leur dévoilement garde sa lenteur */
.js .fx-print { clip-path: inset(100% 0 0 0); }
.js .fx-print--side { clip-path: inset(0 0 0 100%); }
.fx-print { transition: clip-path 1.6s var(--ease-io) calc(var(--d, .1s) * var(--fx-delai)); }
.js .fx-print img { transform: scale(1.15); }
.fx-print img { transition: transform 3s var(--ease) calc(var(--d, .1s) * var(--fx-delai)); }

.is-loaded .fx-fade { opacity: 1; }
.is-loaded .fx-rise { opacity: 1; transform: none; }
.is-loaded .fx-line { transform: none; }
.is-loaded .fx-print { clip-path: inset(0 0 0 0); }
.is-loaded .fx-print img { transform: none; }

/* Arrivée par le bas */
.js .fx-up { opacity: 0; transform: translateY(22vh); }
.fx-up { transition: transform 1.8s var(--ease) calc(var(--d, .1s) * var(--fx-delai)), opacity 1.2s ease calc(var(--d, .1s) * var(--fx-delai)); }
.is-loaded .fx-up { opacity: 1; transform: none; }

.js .rv { opacity: 0; transform: translateY(48px); }
.rv { transition: opacity var(--t, 1.3s) ease var(--d, 0s), transform var(--t, 1.3s) var(--ease) var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01s !important; transition-delay: 0s !important; animation: none !important; }
}

/* ---------- Grain argentique ---------- */

.grain {
  position: fixed; inset: 0; z-index: 45;
  pointer-events: none;
  opacity: .11;
  /* Grain noir : un mélange « multiply » donnerait le même rendu, mais obligerait le
     navigateur à recalculer le mélange à chaque défilement. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

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

.site-header {
  position: relative; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 40px;
  padding: 26px var(--pad);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1; }
.logo:hover { color: inherit; opacity: .75; }
.logo__nom {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 1.2vw + 14px, 32px);
  letter-spacing: -.01em;
}
.logo__sous { font-family: var(--mono); font-size: 9px; letter-spacing: .5em; padding-left: .5em; }

.site-nav {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px clamp(28px, 2.6vw, 48px);
  /* Même taille que « ← Reportages » des pages reportage */
  font-family: var(--mono); font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
}
.site-nav__lien { padding: 8px 0; }
.site-nav__lien[aria-current="page"] { padding-bottom: 7px; border-bottom: 1px solid currentColor; }

.langues { display: flex; gap: 10px; color: var(--muted); }
.langues__sep { padding: 8px 0; }
.langues__lien { padding: 8px 0; color: var(--muted); }
.langues__lien[aria-current="true"] { color: var(--ink); }

.menu-toggle {
  display: none; align-items: center; min-height: 44px; padding: 0;
  background: none; border: 0; color: inherit; cursor: pointer;
  font-family: var(--mono); font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- Menu plein écran (mobile) ---------- */

.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 26px 20px 32px; box-sizing: border-box; overflow: auto;
  background: var(--bg); color: var(--ink);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility 0s .35s;
}
.menu-open .menu { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s ease, visibility 0s; }
.menu__haut { display: flex; justify-content: space-between; align-items: center; }
.menu__logo { font-family: var(--display); font-size: 26px; letter-spacing: -.01em; }
.menu .menu-toggle { display: inline-flex; }
.menu__nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 16px; }
.menu__lien { display: block; padding: 10px 0; font-family: var(--display); font-size: 44px; line-height: 1.1; }
.menu__lien[aria-current="page"] { color: var(--accent); }
.menu__bas {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.menu__email { padding: 10px 0; color: var(--accent); overflow-wrap: anywhere; }
.menu .langues__lien, .menu .langues__sep { padding: 10px 0; }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 761px) {
  .menu { display: none; }
}

/* ---------- Bloc Introduction (haut de l'accueil) ---------- */

.intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 40px clamp(64px, 8vw, 200px);
  align-items: end;
  padding: clamp(40px, 5vw, 96px) var(--pad) clamp(40px, 4.5vw, 88px);
}
.intro__titre { margin: 0; display: flex; flex-direction: column; gap: clamp(20px, 2vw, 36px); }
/* Grand écran : le titre prend la plus grande part de la largeur, le texte reste à droite */
@media (min-width: 1000px) {
  /* Titre 3/5, paragraphe 2/5 de la largeur (paragraphe de 36em au plus) */
  .intro { grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); gap: 40px clamp(48px, 5vw, 96px); }
  .intro .intro__texte { max-width: 36em; }
  .intro__phrase { max-width: 20ch; }
}
.intro__phrase {
  display: block; max-width: 18ch;
  font-size: clamp(42px, 5.6vw, 104px); line-height: 1.04; letter-spacing: -.015em;
  text-wrap: balance;
}
.intro__texte { display: flex; flex-direction: column; gap: clamp(24px, 2.2vw, 40px); max-width: 32em; justify-self: end; }
.intro__texte p, .appel__texte p { margin: 0; font-size: clamp(17px, .35vw + 13px, 20px); line-height: 1.7; color: var(--text-2); text-wrap: pretty; }
.intro__texte .intro__lien { line-height: 1; }

/* ---------- Bloc Index des reportages ---------- */

.index { padding: 0 var(--pad) clamp(64px, 9vw, 180px); scroll-margin-top: 0; }
.index__barre {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
  padding: clamp(18px, 1.6vw, 28px) 0 clamp(20px, 2vw, 36px);
}
.index__barre.border-top { border-top: 1px solid var(--line); }
.index__barre--sans-ligne.border-top { border-top: 0; }
.index__titre {
  margin: 0; display: flex; gap: 18px; align-items: baseline;
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
}
.index__compte { color: var(--muted); }
/* Grille rangée ligne par ligne, de gauche à droite (ordre de la liste « Reportages ») :
   3 colonnes sur grand écran, 2 sur tablette, 1 sur téléphone */
.index__grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 32px);
}
@media (max-width: 999px) { .index__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .index__grille { grid-template-columns: minmax(0, 1fr); } }

/* Vignette : photo recadrée en vertical 3:4 ; au survol, voile sombre avec les informations */
.tile {
  display: block; width: 100%;
  position: relative; overflow: hidden;
  outline-offset: 4px;
}
.tile__media { position: relative; width: 100%; background: var(--tone); transition: transform 1.2s var(--ease); }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile__vide {
  position: absolute; left: 18px; top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.tile__ov {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 24px;
  background: rgba(18, 14, 10, .56); color: #f6f1e8;
  opacity: 0; transition: opacity .45s ease;
}
.tile__haut {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}
.tile__bas { display: flex; flex-direction: column; gap: 14px; }
.tile__titre { margin: 0; font-family: var(--display); font-size: clamp(26px, 2.6vw, 44px); font-weight: 400; line-height: 1.05; }
.tile__cta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 12px; border-top: 1px solid rgba(246, 241, 232, .45);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  transform: translateY(6px); transition: transform .45s ease;
}
.tile__voir { flex: none; }
a.tile:hover { color: inherit; }
.tile:hover .tile__media, .tile:focus-visible .tile__media { transform: scale(1.035); }
.tile:hover .tile__ov, .tile:focus-visible .tile__ov { opacity: 1; }
.tile:hover .tile__cta, .tile:focus-visible .tile__cta { transform: none; }

/* Mobile et écrans tactiles : informations toujours visibles, en bas de la photo */
@media (max-width: 760px), (hover: none) {
  .tile__ov { opacity: 1; top: auto; background: rgba(18, 14, 10, .62); padding: 16px 18px; }
  .tile__haut { display: none; }
  .tile__cta { transform: none; }
  .tile:hover .tile__media { transform: none; }
}
/* Téléphone : la photo seule. Le titre reste dans la page, invisible, pour Google et les
   lecteurs d'écran (il donne son nom au lien). */
@media (max-width: 760px) {
  .tile__ov {
    position: absolute; inset: auto; width: 1px; height: 1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; background: none;
  }
}

/* ---------- Bloc Appel à l'action ---------- */

.appel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 40px clamp(64px, 8vw, 200px);
  align-items: end;
  padding: clamp(64px, 9vw, 180px) var(--pad);
  background: var(--beige);
  scroll-margin-top: 0;
}
.appel__titres { display: flex; flex-direction: column; gap: clamp(20px, 1.8vw, 32px); }
.appel__titre { margin: 0; font-size: clamp(38px, 4.6vw, 84px); line-height: 1.06; letter-spacing: -.015em; text-wrap: balance; }
.appel__texte { display: flex; flex-direction: column; gap: clamp(24px, 2.2vw, 40px); max-width: 32em; }
.appel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.appel__email { padding: 12px 0; font-family: var(--mono); font-size: clamp(15px, .5vw + 10px, 19px); letter-spacing: .04em; color: var(--text-2); overflow-wrap: anywhere; }
/* Bouton dans la couleur d'accent, foncé au survol */
.appel .bouton { background: var(--accent); }
.appel .bouton:hover { background: var(--ink); }

/* ---------- Bloc Portrait et présentation ---------- */

.portrait {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 40px clamp(64px, 8vw, 200px);
  align-items: center;
  padding: clamp(24px, 3.5vw, 64px) var(--pad);
}
.portrait__photo {
  position: relative; overflow: hidden;
  margin: 0; width: 100%; max-width: 640px; aspect-ratio: 4 / 5;
  background: var(--tone);
}
.portrait__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait--inverse .portrait__photo { order: 2; justify-self: end; }
.portrait__texte { display: flex; flex-direction: column; gap: clamp(20px, 2vw, 36px); max-width: 34em; }
.portrait__titre { margin: 0; display: flex; flex-direction: column; gap: clamp(20px, 2vw, 36px); }
.portrait__titre .titre-accent { display: block; font-size: clamp(38px, 4.8vw, 88px); line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.portrait__texte > p { margin: 0; }

/* Grand écran : photo et texte rapprochés au centre de la page, titre plus large
   (le paragraphe garde une largeur de lecture confortable) */
@media (min-width: 1000px) {
  .portrait {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px clamp(56px, 5vw, 110px);
  }
  /* Photo limitée à la hauteur de l'écran : le haut de la section Contact reste visible sans défiler */
  .portrait__photo { justify-self: end; width: min(100%, max(44vh, 320px)); }
  .portrait--inverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .portrait--inverse .portrait__photo { justify-self: start; }
  .portrait__texte { max-width: none; }
  .portrait__titre .titre-accent { max-width: 21ch; }
  .portrait__texte .prose, .portrait__texte > p { max-width: 30em; }
}

/* ---------- Sections séparées par une ligne (page Infos & contact) ---------- */

.section-ligne {
  margin: 0 var(--pad);
  /* Même respiration que le portrait en haut de page */
  padding: clamp(32px, 3.5vw, 64px) 0;
  display: flex; flex-direction: column; gap: clamp(28px, 2.6vw, 48px);
}
.section-ligne.border-top { border-top: 1px solid var(--line); }
.section-ligne > p { margin: 0; }

/* Coordonnées */
.coordonnees { scroll-margin-top: 0; }
.coordonnees__email {
  align-self: flex-start; padding: 6px 0;
  font-family: var(--display); font-size: clamp(26px, 2.6vw, 44px); line-height: 1.2; font-style: italic;
  color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px;
  overflow-wrap: anywhere;
}
.coordonnees__email:hover { opacity: .7; }
.coordonnees__liste {
  margin: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 28px clamp(40px, 4vw, 80px);
}
.coordonnees__liste > div { display: flex; flex-direction: column; gap: 8px; }
.coordonnees__liste dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.coordonnees__liste dd { margin: 0; font-size: clamp(20px, .4vw + 16px, 24px); overflow-wrap: anywhere; }

/* Deux colonnes : pour qui je travaille / clients */
.deux-colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 40px clamp(64px, 8vw, 200px);
}
.deux-colonnes__col { display: flex; flex-direction: column; gap: 20px; }
.deux-colonnes .phrase { max-width: 27ch; } /* phrase plus large que dans les autres sections */
.clients {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); column-gap: 32px;
  border-top: 1px solid var(--line);
}
.clients li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 20px; }

/* Façon de travailler */
.methode { gap: clamp(36px, 3.4vw, 64px); }
.methode__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px clamp(48px, 5vw, 112px); }
.methode__point { display: flex; flex-direction: column; gap: 16px; max-width: 26em; }
.methode__num { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.methode__titre { margin: 0; font-size: clamp(28px, 2.2vw, 40px); line-height: 1.1; font-style: italic; }
.methode__point p { margin: 0; font-size: clamp(17px, .25vw + 14px, 19px); line-height: 1.7; color: var(--text-2); text-wrap: pretty; }

/* Titre et texte */
.texte-libre .phrase { max-width: 24ch; }
.texte-libre .prose { max-width: 38em; }

/* ---------- Bloc Grande photo ---------- */

.photo-large { margin: 0 var(--pad) clamp(32px, 3.5vw, 64px); display: flex; flex-direction: column; gap: 12px; }
.photo-large__cadre { position: relative; width: 100%; overflow: hidden; background: #5e5a55; }
.photo-large__cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-large__legende {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.photo-large__legende > * { padding: 12px 0; }
.photo-large__legende a { color: var(--muted); }
.photo-large__legende a:hover { color: var(--accent); }

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

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 40px;
  padding: 28px var(--pad);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.site-footer > span { padding: 12px 0; }
.site-footer__liens { display: flex; flex-wrap: wrap; gap: 0 28px; padding: 0 !important; }
.site-footer__liens a { padding: 12px 0; color: var(--muted); }
.site-footer__liens a:hover { color: var(--accent); }

/* ---------- Pages simples (mentions légales, 404…) ---------- */

.page-simple { padding: clamp(56px, 9vw, 160px) var(--pad) clamp(64px, 9vw, 160px); }
.page-simple__inner { max-width: 760px; display: grid; gap: 24px; }
.page-simple h1 { margin: 0 0 12px; font-size: clamp(42px, 5vw, 88px); line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.page-simple h1 em { color: var(--accent); }
.page-simple h2 { margin: 24px 0 0; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.15; }
.page-simple h3 { margin: 12px 0 0; font-size: 22px; }
.page-simple p, .page-simple li { margin: 0; font-size: clamp(17px, .25vw + 14px, 19px); line-height: 1.7; color: var(--text-2); }
.page-simple ul, .page-simple ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.page-simple a:not(.link-line) { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.page-simple .link-line { justify-self: start; }
.todo { background: #f6e3a8; color: var(--ink); padding: 0 .2em; }

/* ---------- Page reportage ----------
   Mêmes styles que le thème Rebbati Studio. Sur grand écran : galerie horizontale
   (.rail) pilotée par la molette. Sur mobile ou petite hauteur : galerie verticale (.stack). */

/* En-tête posé sur les photos : blanc en mode « différence », « ← Reportages » à gauche,
   logo au centre, liens à droite */
.site-header--fixe {
  position: fixed; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  padding: 22px var(--gutter);
  border-bottom: 0;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.site-header--fixe > * { pointer-events: auto; }
.site-header--fixe .site-nav { justify-self: end; }
.site-header--fixe .menu-toggle { justify-self: end; grid-column: 3; }
.site-header--fixe .langues, .site-header--fixe .langues__lien { color: inherit; }
.site-header--fixe .langues__lien:not([aria-current]) { opacity: .6; }
.site-header--fixe a:hover, .page-reportage .rail a:hover, .page-reportage .stack a:hover, .back-mobile:hover { color: inherit; opacity: .7; }
.site-header--fixe .site-nav__lien[aria-current="page"] { border-bottom: 0; }

/* Retour à l'index : même taille que les liens de l'en-tête ; la flèche n'apparaît qu'au survol
   (écrans tactiles : toujours visible, faute de survol) */
.back-link {
  display: inline-flex; align-items: baseline; justify-self: start;
  padding: 8px 0;
  font-family: var(--mono); font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
}
.back-link__arrow {
  display: inline-block; overflow: hidden; white-space: nowrap;
  max-width: 1.6em; padding-right: .5em;
  transition: max-width .5s var(--ease), padding .5s var(--ease), opacity .4s ease, transform .5s var(--ease);
}
@media (hover: hover) {
  .back-link__arrow { max-width: 0; padding-right: 0; opacity: 0; transform: translateX(.6em); }
  .back-link:hover .back-link__arrow, .back-link:focus-visible .back-link__arrow { max-width: 1.6em; padding-right: .5em; opacity: 1; transform: none; }
}

.rail, .rail-ui, .rail-follow { display: none; }

@media (min-width: 820px) and (min-height: 520px) {
  .page-reportage { overflow: hidden; }
  .page-reportage .stack,
  .page-reportage .site-footer { display: none; }
  .rail, .rail-ui { display: flex; }
  .rail-follow { display: block; }
}

.rail {
  position: fixed; inset: 0;
  align-items: stretch; gap: clamp(56px, 7vw, 120px);
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; overscroll-behavior: contain;
  background: var(--bg);
}
.rail::-webkit-scrollbar { display: none; }
.rail__intro {
  flex: 0 0 calc(50vw - clamp(56px, 7vw, 120px)); box-sizing: border-box;
  padding: clamp(84px, 14vh, 110px) var(--gutter) clamp(64px, 10vh, 90px);
  display: flex; flex-direction: column; justify-content: safe center; align-items: center; text-align: center;
  gap: clamp(14px, 2.6vh, 30px);
  overflow-y: auto; scrollbar-width: none;
}
.rail__title {
  flex: none; margin: 0 0 -.16em; overflow: hidden; padding-bottom: .24em;
  font-weight: 400; font-size: clamp(40px, min(4.4vw, 8vh), 80px); line-height: .95; letter-spacing: -.02em;
}
/* Le cadre est plus haut (jambes des lettres) : le titre part de plus bas avant d'apparaître */
.js .rail__title .fx-line { transform: translateY(130%); }
.is-loaded .rail__title .fx-line { transform: none; }
/* Texte du reportage (facultatif), sous le titre et le lieu */
.rail__texte { flex: none; display: grid; gap: 14px; max-width: 30em; font-size: 17px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.rail__texte p { margin: 0; }
.rail__cover { flex: 0 0 50vw; height: 100%; margin: 0; position: relative; overflow: hidden; background: var(--dark); }
.rail__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rail__shot { flex: none; height: calc(100% - 260px); margin: 140px 0 120px; background: var(--placeholder); overflow: hidden; }
.rail__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rail__end {
  flex: 0 0 auto; box-sizing: border-box;
  padding: 0 clamp(100px, 12vw, 200px) 0 clamp(40px, 6vw, 120px);
  display: flex; align-items: center;
}
.rail__next {
  display: block; padding: 40px 0;
  font-weight: 400; line-height: .95; letter-spacing: -.02em;
  font-size: clamp(56px, min(6.5vw, 12vh), 120px); white-space: nowrap;
}

.rail-follow {
  position: fixed; left: 0; top: 0; z-index: 35;
  width: clamp(160px, 14vw, 240px); aspect-ratio: 3/4;
  pointer-events: none; will-change: transform;
}
.rail-follow__inner {
  position: absolute; inset: 0; overflow: hidden; background: var(--dark);
  opacity: 0; transform: scale(.7);
  transition: opacity .45s ease, transform .6s var(--ease);
}
.rail-follow.is-on .rail-follow__inner { opacity: 1; transform: none; }
.rail-follow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.rail-ui {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; box-sizing: border-box;
  justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: 14px var(--gutter) 18px;
  color: #fff; mix-blend-mode: difference;
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.dial {
  position: relative; width: 170px; height: 46px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
}
.dial__mark { position: absolute; left: 50%; top: 1px; transform: translateX(-50%); overflow: visible; }
.dial__wheel { position: absolute; left: 50%; top: 72px; width: 0; height: 0; will-change: transform; }
.dial__tick { position: absolute; left: 0; top: 0; width: 1px; height: 4px; background: #fff; transform-origin: 0 0; }
.dial__tick--major { height: 8px; }
.dial__num {
  position: absolute; left: 0; top: 0; width: 22px; text-align: center;
  font-size: 11px; line-height: 11px; letter-spacing: 0; transform-origin: 0 0;
}

/* Reportage sur mobile : couverture plein écran, assombrie, titre blanc centré */
.stack__hero { position: relative; height: 100svh; min-height: 480px; overflow: hidden; background: var(--dark); color: #fff; }
.stack__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.stack__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12, 10, 8, .72), rgba(12, 10, 8, .42) 28%, rgba(12, 10, 8, .45)); }
.stack__hero-text {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  padding: 0 24px; text-align: center;
}
/* Texte du reportage sur mobile : sous le titre et le lieu, sur la photo d'ouverture.
   Si le texte est long, l'écran d'ouverture s'allonge au lieu de couper le texte. */
.stack__hero--texte { height: auto; min-height: 100svh; }
.stack__hero--texte .stack__hero-text { position: relative; min-height: 100svh; box-sizing: border-box; padding: 110px 24px 96px; }
.stack__texte {
  display: grid; gap: 14px; max-width: 34em; margin-top: 6px;
  font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .9); text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .35); /* lisible même sur une partie claire de la photo */
}
.stack__texte p { margin: 0; }
.rail__title, .rail__next { font-family: var(--display); }
/* « Projet suivant » : le mot en italique dans la couleur d'accent (ordinateur et mobile) */
.page-reportage .rail__next em, .page-reportage .stack a em { color: var(--accent); }
.rail .label, .stack .label { letter-spacing: .22em; }

/* Reportages sur mobile ou petite hauteur : logo à gauche, retour à l'index en bas à droite */
.back-mobile { display: none; }
@media (max-width: 819px), (max-height: 519px) {
  .site-header--fixe { grid-template-columns: auto 1fr; }
  .site-header--fixe .back-link { display: none; }
  .site-header--fixe .logo { justify-self: start; }
  .site-header--fixe .site-nav { grid-column: 2; }
  .site-header--fixe .menu-toggle { grid-column: 2; }
  .back-mobile {
    display: block; position: fixed; right: var(--gutter); bottom: 22px; z-index: 50;
    color: #fff; mix-blend-mode: difference;
    font-family: var(--mono); font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
  }
  .page-reportage .site-footer { padding-bottom: 72px; }
}

/* ---------- WordPress ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-image img, .page-simple img { height: auto; }
