/* ==========================================================================
   Portfolio photographe — feuille de style
   Palette et reglages globaux en haut : change les 6 variables et tout suit.
   ========================================================================== */

:root {
  /* --- Couleurs (modifiables) --- */
  --ink:        #0c0c0d;   /* noir profond  */
  --ink-2:      #17171a;   /* noir leger    */
  --paper:      #f6f3ee;   /* blanc chaud   */
  --paper-2:    #ebe6dd;   /* beige clair   */
  --accent:     #c2a878;   /* or sable      */
  --muted:      #8b857c;   /* gris texte    */

  --line:       rgba(12, 12, 13, .12);
  --line-light: rgba(246, 243, 238, .16);

  /* --- Typographie --- */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  /* --- Rythme --- */
  --wrap: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 12vw, 9.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(.95rem, .35vw + .87rem, 1.0625rem);
  line-height: 1.75;
  letter-spacing: .008em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 300; }
p { margin: 0 0 1.25em; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .86em;
  background: rgba(12,12,13,.06);
  padding: .15em .45em;
  border-radius: 3px;
}

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: .9rem 1.4rem;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------- Titres --- */
.kicker {
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker--light { color: var(--accent); }

.sectionTitle {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5.5vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0 0 1.4rem;
}
.sectionTitle--xl { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.sectionTitle em { font-style: italic; color: var(--accent); }

.sectionIntro {
  max-width: 56ch;
  color: var(--muted);
}

.sectionHead { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sectionHead--center {
  text-align: center;
  margin-inline: auto;
  max-width: 46rem;
}
.sectionHead--center .sectionIntro { margin-inline: auto; }

.section { padding-block: var(--section-y); }

/* --------------------------------------------------- Boutons --- */
.btn {
  --btn-fg: var(--paper);
  --btn-bg: var(--ink);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: 1.05em 2.3em;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 0; /* cree un contexte d'empilement : le voile ::after reste sous le texte */
  overflow: hidden;
  transition: color .45s var(--ease), background-color .45s var(--ease), border-color .45s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  z-index: -1;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--ink); border-color: var(--accent); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: rgba(12,12,13,.28);
}
.btn--ghostLight,
.hero .btn--ghost {
  --btn-fg: var(--paper);
  --btn-bd: rgba(246,243,238,.4);
}
.btn--sm { padding: .85em 1.6em; font-size: .625rem; }
.btn--full { width: 100%; margin-top: auto; }
.btn--wa { --btn-bg: #1fa855; --btn-bd: #1fa855; --btn-fg: #fff; }

/* --------------------------------------------------- Navigation --- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), padding .5s var(--ease);
  padding-block: 1.4rem;
  color: var(--paper);
}
.nav.is-stuck {
  background: rgba(12,12,13,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding-block: .75rem;
  box-shadow: 0 1px 0 var(--line-light);
}

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo { display: inline-flex; align-items: center; gap: .7rem; }
.nav__mark {
  width: 9px; height: 9px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  flex: none;
}
.nav__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: .06em;
  white-space: nowrap;
}

.nav__links { display: flex; gap: clamp(1.1rem, 2.2vw, 2.4rem); }
.nav__links a {
  position: relative;
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-block: .3rem;
  opacity: .82;
  transition: opacity .3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after,
.nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: 1.1rem; }

.lang { display: flex; align-items: center; gap: .35rem; font-size: .625rem; letter-spacing: .18em; }
.lang__btn { opacity: .5; transition: opacity .3s; padding: .2rem; }
.lang__btn:hover { opacity: .85; }
.lang__btn.is-active { opacity: 1; color: var(--accent); }
.lang__sep { opacity: .3; }

.burger { display: none; width: 30px; height: 22px; position: relative; }
.burger span {
  position: absolute; left: 0; right: 0; height: 1px;
  background: currentColor;
  transition: transform .4s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 7px; }
.burger span:nth-child(2) { top: 14px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* --------------------------------------------------- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
  padding: 0 0 clamp(4.5rem, 10vh, 8rem);
}

.hero__media {
  position: absolute;
  inset: 0;
  /* le flou de pre-chargement (LQIP) doit couvrir, pas se repeter */
  background: var(--ink-2) center 32% / cover no-repeat;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 2.4s var(--ease);
}
.hero__media img.is-loaded { opacity: 1; transform: scale(1); }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12,12,13,.92) 0%, rgba(12,12,13,.45) 45%, rgba(12,12,13,.35) 100%),
    radial-gradient(120% 80% at 70% 20%, transparent 30%, rgba(12,12,13,.55) 100%);
}
/* Fond de secours quand aucune photo hero n'est encore posee */
.hero.is-empty .hero__media {
  background:
    radial-gradient(90% 70% at 25% 15%, rgba(194,168,120,.22), transparent 60%),
    linear-gradient(160deg, #17171a 0%, #0c0c0d 55%, #101014 100%);
}

.hero__grain {
  position: absolute; inset: 0;
  opacity: .5;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 9.5vw, 8rem);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0 0 1.6rem;
  max-width: 15ch;
}
.hero__title em { font-style: italic; color: var(--accent); }

.hero__subtitle {
  max-width: 46ch;
  color: rgba(246,243,238,.76);
  margin-bottom: 2.4rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(4.5rem, 10vh, 8rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .625rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(246,243,238,.6);
}
.hero__scrollLine { width: 58px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.hero__scrollLine::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  animation: sweep 2.6s var(--ease) infinite;
}
@keyframes sweep {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* --------------------------------------------------- Galerie : deux chapitres --- */
.section--work {
  background: var(--paper);
  padding-top: clamp(4rem, 8vw, 6.75rem);
}
.section--work .sectionHead { margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }

/* Navigation des collections : retour aux couvertures / tout voir */
.workNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2.2rem, 4.5vw, 3.2rem);
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.workNav__btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .3rem 0;
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.workNav__btn--all { margin-left: auto; }
.workNav__btn:hover { color: var(--ink); }
.workNav__arrow {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--accent);
  transition: transform .35s var(--ease);
}
.workNav__btn--all:hover .workNav__arrow { transform: translateX(4px); }
.workNav__btn--back:hover .workNav__arrow { transform: translateX(-4px); }

/* Cartes de couverture des collections (vue par defaut) */
.covers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 2rem);
}
.cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  animation: tileIn .7s var(--ease) both;
}
.cover__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-2) center/cover no-repeat;
}
.cover__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0;
  transition: opacity .8s var(--ease), transform 1.5s var(--ease);
}
.cover__frame img.is-loaded { opacity: 1; }
.cover:hover .cover__frame img { transform: scale(1.05); }
.cover__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,12,13,.85) 0%, rgba(12,12,13,.28) 48%, rgba(12,12,13,.1) 100%);
}
.cover__body {
  position: absolute;
  left: clamp(1.4rem, 3vw, 2.6rem);
  right: clamp(1.4rem, 3vw, 2.6rem);
  bottom: clamp(1.3rem, 3vw, 2.3rem);
  display: flex;
  flex-direction: column;
  color: var(--paper);
}
.cover__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 1.9vw, 1.8rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: .4rem;
}
.cover__title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin-bottom: .85rem;
}
.cover__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .95rem;
  border-top: 1px solid rgba(246,243,238,.3);
}
.cover__count {
  font-size: .625rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(246,243,238,.78);
}
.cover__cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .625rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
}
.cover__cta::after {
  content: "\2192";
  display: inline-block;
  font-family: var(--serif);
  font-size: .95rem;
  line-height: 1;
  transition: transform .35s var(--ease);
}
.cover:hover .cover__cta::after { transform: translateX(4px); }
.cover:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Un chapitre = en-tete editorial + grille stricte */
.chapter { scroll-margin-top: 96px; }
.chapter + .chapter { margin-top: clamp(4.5rem, 9vw, 7.5rem); }

.chapter__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: clamp(1.5rem, 3.2vw, 2.8rem);
  padding-top: clamp(1.6rem, 3vw, 2.3rem);
  border-top: 1px solid var(--line);
  margin-bottom: clamp(1.9rem, 3.6vw, 2.8rem);
}
.chapter__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.2rem, 6.5vw, 5rem);
  line-height: .82;
  color: var(--accent);
  transform: translateY(.08em);
}
.chapter__kicker {
  margin: 0 0 .55rem;
  font-size: .625rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
}
.chapter__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0 0 .55rem;
}
.chapter__intro {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: .9375rem;
}
.chapter__count {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
  text-align: right;
}
.chapter__count strong {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  color: var(--ink);
}
.chapter__count span {
  font-size: .5625rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Grille uniforme : memes cadres, memes lignes */
.chapter__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.7rem) clamp(.9rem, 1.6vw, 1.5rem);
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: zoom-in;
  animation: tileIn .7s var(--ease) both;
}
@keyframes tileIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.tile.is-hidden { display: none; }

.tile__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2) center/cover no-repeat;
}
.tile__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0;
  transition: opacity .8s var(--ease), transform 1.1s var(--ease);
}
.tile__frame img.is-loaded { opacity: 1; }
.tile:hover .tile__frame img { transform: scale(1.045); }

.tile__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,12,13,.5), transparent 55%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.tile:hover .tile__veil { opacity: 1; }

.tile__tag {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  color: var(--paper);
  font-size: .625rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.tile:hover .tile__tag { opacity: 1; transform: none; }

/* Legende folio sous le cadre : « N° 01 —————— CATEGORIE » */
.tile__cap {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  padding-top: .6rem;
}
.tile__capNum {
  font-family: var(--serif);
  font-style: italic;
  font-size: .9375rem;
  letter-spacing: .06em;
  color: var(--accent);
  transition: color .35s;
  white-space: nowrap;
}
.tile__capRule {
  flex: 1;
  height: 1px;
  align-self: center;
  background: var(--line);
  transition: background-color .45s var(--ease);
}
.tile__capCat {
  font-size: .5625rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .35s;
  white-space: nowrap;
}
.tile:hover .tile__capNum { color: var(--ink); }
.tile:hover .tile__capRule { background: var(--accent); }
.tile:hover .tile__capCat { color: var(--ink); }

/* Vignettes de remplacement tant qu'aucune photo n'est posee */
.tile--ph {
  cursor: default;
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--paper-2), #ded7cb);
  display: grid;
  place-items: center;
  color: rgba(12,12,13,.32);
  font-size: .625rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.grid__empty {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.9;
}

/* --------------------------------------------------- A propos --- */
.section--about { background: var(--paper-2); }

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.about__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d6cfc2 center/cover no-repeat;
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.about__frame img.is-loaded { opacity: 1; }
.about__media { position: relative; z-index: 0; /* garde le cadre ::after visible apres la transition .reveal */ }
.about__media::after {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--accent);
  z-index: -1;
}

.about__text p { color: rgba(12,12,13,.72); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  margin-top: 2.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.stats li { display: flex; flex-direction: column; gap: .2rem; }
.stats strong {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.stats span {
  font-size: .625rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------- Prestations --- */
.section--services { background: var(--paper); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 3.5vw, 3rem);
  border: 1px solid var(--line);
  background: #fffdfa;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px -30px rgba(12,12,13,.35); }

.card--feature {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.card--feature .card__desc { color: rgba(246,243,238,.68); }
.card--feature .card__list li { border-color: var(--line-light); color: rgba(246,243,238,.86); }
.card--feature .card__price { color: var(--accent); }

.card__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  margin-bottom: .8rem;
}
.card__desc { color: var(--muted); margin-bottom: 1.6rem; }

.card__list { margin-bottom: 1.8rem; }
.card__list li {
  padding: .8rem 0 .8rem 1.5rem;
  border-top: 1px solid var(--line);
  position: relative;
  font-size: .9375rem;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.45em;
  width: 6px; height: 1px;
  background: var(--accent);
}

.card__price {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  margin-bottom: 1.8rem;
  color: var(--ink);
}

.services__note {
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  max-width: 52ch;
  text-align: center;
  font-size: .875rem;
  color: var(--muted);
}

/* --------------------------------------------------- Deroulement --- */
.section--process { background: var(--paper-2); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.8rem, 3.5vw, 3rem);
}
.step { position: relative; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.step__num {
  position: absolute;
  top: -.75rem;
  left: 0;
  background: var(--paper-2);
  padding-right: .9rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--accent);
}
.step__title {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin-bottom: .6rem;
}
.step p { color: var(--muted); font-size: .9375rem; margin: 0; }

/* --------------------------------------------------- Contact --- */
.section--contact {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.section--contact::before {
  content: "";
  position: absolute;
  inset: auto -10% -55% auto;
  width: 60rem; height: 60rem;
  background: radial-gradient(circle, rgba(194,168,120,.13), transparent 62%);
  pointer-events: none;
}

.contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}
.contact .sectionIntro { color: rgba(246,243,238,.7); }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.4rem;
}

.contact__facts { display: grid; gap: 1.6rem; }
.contact__facts li {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-light);
}
.contact__factLabel {
  font-size: .625rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact__factValue { font-family: var(--serif); font-size: 1.35rem; }

/* --------------------------------------------------- Footer --- */
.footer {
  background: var(--ink);
  color: rgba(246,243,238,.55);
  padding-block: 2.2rem;
  border-top: 1px solid var(--line-light);
  font-size: .75rem;
  letter-spacing: .1em;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer__name { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .06em; color: var(--paper); }
.footer__top { text-transform: uppercase; letter-spacing: .22em; font-size: .625rem; transition: color .3s; }
.footer__top:hover { color: var(--accent); }

/* --------------------------------------------------- WhatsApp flottant --- */
.waFloat {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1fa855;
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(31,168,85,.6);
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.waFloat.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.waFloat:hover { transform: scale(1.07); }

/* --------------------------------------------------- Lightbox --- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 9, 10, .96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 4rem);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }

.lb__figure { margin: 0; max-width: 100%; max-height: 100%; display: grid; place-items: center; }
.lb__figure img {
  max-width: 100%;
  max-height: calc(100svh - clamp(2rem, 10vw, 8rem));
  width: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.9);
}
.lb__figure img.is-loaded { opacity: 1; transform: none; }

.lb__close,
.lb__nav {
  position: absolute;
  z-index: 2;
  color: rgba(246,243,238,.75);
  display: grid;
  place-items: center;
  transition: color .3s, background-color .3s;
  border-radius: 50%;
}
.lb__close { top: clamp(.8rem, 3vw, 2rem); right: clamp(.8rem, 3vw, 2rem); width: 48px; height: 48px; font-size: 2.2rem; line-height: 1; }
.lb__nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 2.6rem; line-height: 1; }
.lb__nav--prev { left: clamp(.4rem, 2vw, 2rem); }
.lb__nav--next { right: clamp(.4rem, 2vw, 2rem); }
.lb__close:hover, .lb__nav:hover { color: var(--accent); background: rgba(246,243,238,.08); }

.lb__counter {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: .6875rem;
  letter-spacing: .28em;
  color: rgba(246,243,238,.55);
}

/* --------------------------------------------------- Apparitions --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------- Responsive --- */
@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 26rem; }
  .contact { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 900px) {
  .chapter__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter { scroll-margin-top: 76px; }
}

@media (max-width: 900px) and (min-width: 561px) {
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .cover__body {
    left: .9rem;
    right: .9rem;
    bottom: .85rem;
  }
  .cover__num { font-size: 1.05rem; margin-bottom: .25rem; }
  .cover__title { font-size: 1.35rem; margin-bottom: .55rem; }
  .cover__meta { padding-top: .55rem; }
  .cover__cta { display: none; } /* la carte entiere est cliquable */
  .workNav__btn { letter-spacing: .16em; }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(12,12,13,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease);
    z-index: -1;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; z-index: 1; }
  .nav__links a { font-size: .9375rem; letter-spacing: .26em; opacity: 1; }
  .nav .btn--sm { display: none; }
  .hero__scroll { display: none; }
  .hero { align-items: center; padding-block: 7rem 4rem; }
}

@media (max-width: 560px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .lb__nav { width: 46px; height: 46px; font-size: 2rem; }
  .stats { gap: 1.4rem 2rem; }

  /* En-tete de chapitre compact : numero + textes, compteur masque */
  .chapter__head {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1.1rem;
  }
  .chapter__num { font-size: 2.6rem; }
  .chapter__count { display: none; }
  .chapter__intro { font-size: .875rem; }
  .chapter__grid { gap: .8rem .7rem; }
  .tile__cap { padding-top: .45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .waFloat, .lb, .hero__scroll, .workNav { display: none !important; }
  body { background: #fff; color: #000; }
}
