/* ───────── Polices (auto-hébergées, aucune requête vers Google) ───────── */
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ───────── Couleurs ───────── */
:root {
  --papier: #f4f1ec;
  --encre: #1c1a18;
  --doux: #6f675f;
  --trait: #dcd5cb;
  --champ: #fbfaf7;
  --accent: #8a6a4f;
  --ok: #3f6b4f;
  --erreur: #9b3b32;
  --serif: "Cormorant", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #141312;
    --encre: #eeebe6;
    --doux: #9a9289;
    --trait: #2d2a27;
    --champ: #1c1b19;
    --accent: #c9a582;
    --ok: #7fb08f;
    --erreur: #e08a80;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── Icône Instagram ───────── */
.insta { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; }
.insta svg { width: 1.15em; height: 1.15em; }

/* ═════════ ACCUEIL ═════════ */
body.accueil { background: #0f0e0d; color: #f3efe9; overflow: hidden; height: 100vh; height: 100dvh; }
.fond { position: fixed; inset: 0; background: radial-gradient(ellipse at 30% 30%, #3a332d, #0f0e0d 70%); }
.fond .couche {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.8s ease;
  transform: scale(1.04);
}
.fond .couche.visible { opacity: 1; animation: approche 14s ease-out forwards; }
@keyframes approche { from { transform: scale(1.04); } to { transform: scale(1.11); } }
.fond::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,9,8,.45) 0%, rgba(10,9,8,.15) 35%, rgba(10,9,8,.2) 60%, rgba(10,9,8,.7) 100%);
}
.accueil-contenu {
  position: relative; z-index: 1;
  height: 100%;
  display: grid; grid-template-rows: 1fr auto 1fr;
  padding: 24px;
  text-align: center;
}
.titre { grid-row: 2; }
.titre .metier {
  font: 500 .72rem/1 var(--sans); letter-spacing: .38em; text-transform: uppercase;
  opacity: .85; margin: 0 0 1.4rem;
}
.titre h1 {
  font: 300 clamp(3.4rem, 13vw, 8.5rem)/.95 var(--serif);
  margin: 0; letter-spacing: .01em;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.sommaire { margin-top: 2.6rem; }
.sommaire ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 2.6rem; }
.sommaire a {
  font: 300 italic clamp(1.35rem, 3.6vw, 1.85rem)/1.2 var(--serif);
  text-decoration: none; position: relative; padding-bottom: .15em;
}
.sommaire a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: currentColor;
  transition: left .35s ease, right .35s ease;
}
.sommaire a:hover::after, .sommaire a:focus-visible::after { left: 0; right: 0; }
.accueil-pied {
  grid-row: 3; align-self: end;
  display: flex; justify-content: center;
  font: 400 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.accueil-pied .insta { opacity: .85; padding: .6rem; }
.accueil-pied .insta:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .fond .couche.visible { animation: none; }
  .fond .couche { transition-duration: .01s; }
}

/* ═════════ PAGES INTÉRIEURES ═════════ */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}
.entete-int {
  max-width: 1280px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.marque { text-decoration: none; font: 400 1.7rem/1 var(--serif); letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  text-decoration: none; font: 500 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--doux); padding: .5rem 0; transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--encre); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 currentColor; }
.nav .insta span { display: none; }

main.page { max-width: 1280px; margin: 0 auto; padding: 56px 24px 80px; }
@media (max-width: 1280px) { .pied { margin: 0 24px; } }
.page-titre { font: 300 clamp(2.4rem, 6vw, 3.6rem)/1.05 var(--serif); margin: 0 0 .4rem; }
.page-intro { color: var(--doux); margin: 0 0 3rem; max-width: 40rem; }

.pied {
  border-top: 1px solid var(--trait);
  max-width: 1232px; margin: 0 auto; padding: 28px 0 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: var(--doux);
}
.pied a { text-decoration: none; }
.pied a:hover { color: var(--encre); }

@media (max-width: 640px) {

  .marque { font-size: 1.45rem; }
  .nav { gap: 1rem; }
  .nav a { letter-spacing: .1em; font-size: .68rem; }
  main.page { padding: 36px 16px 64px; }
  .pied { margin: 0 16px; padding: 24px 0 32px; }
}

/* ───────── Galerie ───────── */
.galerie { display: flex; gap: 14px; align-items: flex-start; }
.galerie .colonne { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.galerie button {
  display: block; width: 100%; margin: 0; padding: 0; border: 0; background: var(--trait);
  cursor: zoom-in; overflow: hidden; min-height: 120px;
}
.galerie button.pret { min-height: 0; background: none; }
.galerie img {
  width: 100%; height: auto;
  opacity: 0; transition: opacity .6s ease, transform .8s ease;
}
.galerie img.chargee { opacity: 1; }
.galerie button:hover img { transform: scale(1.025); }
.galerie button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.etat { color: var(--doux); font-style: italic; }

/* ───────── Visionneuse ───────── */
.visionneuse {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12,11,10,.96); color: #eee;
  display: none; align-items: center; justify-content: center;
}
.visionneuse.ouverte { display: flex; }
.visionneuse img { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); object-fit: contain; user-select: none; }
.visionneuse button {
  position: absolute; background: none; border: 0; color: inherit; cursor: pointer;
  font: 300 2.4rem/1 var(--serif); padding: 16px; opacity: .7; transition: opacity .2s;
}
.visionneuse button:hover, .visionneuse button:focus-visible { opacity: 1; }
.visionneuse .fermer { top: 8px; right: 12px; font-size: 2rem; }
.visionneuse .prec { left: 8px; top: 50%; transform: translateY(-50%); }
.visionneuse .suiv { right: 8px; top: 50%; transform: translateY(-50%); }
.visionneuse .compteur { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font: 400 .75rem/1 var(--sans); letter-spacing: .2em; opacity: .6; }
@media (max-width: 640px) {
  .visionneuse img { max-width: 100vw; max-height: calc(100dvh - 120px); }
  .visionneuse .prec, .visionneuse .suiv { top: auto; bottom: 4px; transform: none; }
}

/* ───────── Qui suis-je ───────── */
.apropos { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.apropos figure { margin: 0; background: var(--trait); aspect-ratio: 4 / 5; overflow: hidden; }
.apropos figure img { width: 100%; height: 100%; object-fit: cover; }
.apropos .texte { padding-top: 1rem; max-width: 36rem; }
.apropos .texte p { font-size: 1.06rem; }
.apropos .texte p.accroche { font: 300 italic 1.7rem/1.35 var(--serif); margin-top: 0; }
.apropos .lien-contact {
  display: inline-block; margin-top: 1.4rem; text-decoration: none;
  font: 500 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: .35rem;
}
@media (max-width: 760px) {
  .apropos { grid-template-columns: 1fr; }
  .apropos .texte { padding-top: 0; }
}

/* ───────── Contact ───────── */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); }
.contact .aside p { color: var(--doux); }
.contact .aside .insta { margin-top: .6rem; color: var(--encre); border-bottom: 1px solid var(--trait); padding-bottom: .3rem; }
form.formulaire { display: grid; gap: 1.3rem; }
.champ label { display: block; font: 500 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--doux); margin-bottom: .55rem; }
.champ input, .champ textarea {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--encre);
  background: var(--champ); border: 1px solid var(--trait); border-radius: 2px;
  padding: .8rem .9rem; transition: border-color .2s;
}
.champ textarea { min-height: 11rem; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--accent); }
.pot-de-miel { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .note { font-size: .82rem; color: var(--doux); margin: 0; }
.formulaire button {
  justify-self: start;
  font: 500 .76rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--papier); background: var(--encre); border: 0; border-radius: 2px;
  padding: 1rem 1.8rem; cursor: pointer; transition: opacity .2s;
}
.formulaire button:hover { opacity: .85; }
.formulaire button:disabled { opacity: .5; cursor: progress; }
.retour { margin: 0; padding: .9rem 1rem; border-left: 2px solid; font-size: .95rem; }
.retour.ok { border-color: var(--ok); color: var(--ok); }
.retour.erreur { border-color: var(--erreur); color: var(--erreur); }
@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
}

/* ───────── Page Photos : phrase, filtres, catégories ───────── */
.page-intro.phrase { font: 300 italic clamp(1.4rem, 3vw, 1.8rem)/1.3 var(--serif); color: var(--doux); margin-bottom: 2.2rem; }
.filtres {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 0 0 3rem;
}
.filtres[hidden], .serie[hidden] { display: none; }
.filtres a {
  text-decoration: none;
  font: 500 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--doux);
  border: 1px solid var(--trait); border-radius: 999px;
  padding: .7rem 1.1rem;
  transition: color .2s, border-color .2s, background .2s;
}
.filtres a:hover { color: var(--encre); border-color: var(--doux); }
.filtres a[aria-current="true"] { color: var(--papier); background: var(--encre); border-color: var(--encre); }
.serie + .serie { margin-top: 4.5rem; }
.serie-titre {
  display: flex; align-items: baseline; gap: .7rem;
  font: 400 clamp(1.6rem, 3.6vw, 2.2rem)/1.1 var(--serif);
  margin: 0 0 1.6rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--trait);
}
.serie-titre .num { font: 500 .78rem/1 var(--sans); letter-spacing: .18em; color: var(--doux); }

/* ───────── Qui suis-je : identité ───────── */
.apropos .texte p.identite { font: 400 clamp(1.8rem, 3.4vw, 2.3rem)/1.15 var(--serif); margin: .2rem 0 .5rem; }
.apropos .texte p.infos {
  font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--doux);
  margin: 0 0 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--trait);
}
.apropos .texte p.signature { font: 300 italic 1.45rem/1.4 var(--serif); margin-top: 1.6rem; }
.apropos .liens { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1rem; }
.apropos .liens .lien-contact { margin-top: .4rem; }

/* ───────── En-tête mobile : nom au-dessus, menu en dessous ───────── */
@media (max-width: 640px) {
  .entete-int { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 16px 6px; }
  .nav { gap: 1.2rem; }
}

/* Qui suis-je : le portrait reste visible pendant la lecture du texte (écrans larges) */
@media (min-width: 761px) {
  .apropos figure { position: sticky; top: 96px; }
}
