/* ==========================================================
   Timi M. Bourdet — Photographe
   Esthétique fine art : blanc pur, charbon, typographie éditoriale
   ========================================================== */

:root {
  --paper: #FCFBF9;
  --ink: #2E2C2A;
  --ink-soft: #6B6763;
  --line: #E5E2DC;
  --ph: #EFEDE8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Langue : FR par défaut ---------- */
.lang-en { display: none; }
html[data-lang="en"] .lang-en { display: revert; }
html[data-lang="en"] .lang-fr { display: none; }

/* ---------- Typographie ---------- */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }

.caps {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

em, .it { font-family: var(--serif); font-style: italic; }

p { max-width: 62ch; }

a { color: var(--ink); text-decoration: none; transition: opacity 0.25s ease; }
a:hover { opacity: 0.55; }

/* ---------- Structure ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 6vw; }

section { padding: clamp(70px, 11vh, 130px) 0; }

.rule { border: none; border-top: 1px solid var(--line); }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 251, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 6vw;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand span { color: var(--ink-soft); }

nav.menu { display: flex; gap: 38px; align-items: center; }
nav.menu a {
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
nav.menu a.active { border-bottom-color: var(--ink); }

.lang-toggle {
  font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase;
  background: none; border: 1px solid var(--line); border-radius: 0;
  padding: 7px 14px; cursor: pointer; color: var(--ink); font-family: var(--sans);
  transition: border-color 0.25s ease;
}
.lang-toggle:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(80px, 14vh, 160px) 0 60px; }
.hero .caps { display: block; margin-bottom: 28px; }
.hero h1 { margin-bottom: 34px; }
.hero p { margin: 0 auto; color: var(--ink-soft); }

/* ---------- Placeholders photo ---------- */
.ph {
  background: var(--ph);
  display: flex; align-items: center; justify-content: center;
  color: #B9B4AC;
  font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase;
  overflow: hidden;
}
.ph--wide  { aspect-ratio: 21 / 9; }
.ph--land  { aspect-ratio: 3 / 2; }
.ph--port  { aspect-ratio: 4 / 5; }
.ph--sq    { aspect-ratio: 1 / 1; }

/* Quand tu remplaceras par de vraies photos : */
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Grilles ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }

/* ---------- Méthode — les trois approches ---------- */
.methode { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 5vw, 70px); }
.methode h3 { margin-bottom: 2px; }

/* ---------- Portfolio ---------- */
.folio-item { display: block; }
.folio-item .ph { position: relative; overflow: hidden; }
.folio-item figcaption {
  margin-top: 18px; text-align: center;
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.03em;
}
.folio-voile {
  position: absolute; inset: 0;
  background: rgba(252, 251, 249, 0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.45s ease;
}
.folio-voile span {
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--ink);
}
.folio-item:hover .folio-voile { opacity: 1; }
.folio-item .lieu-m { display: none; }
@media (hover: none) {
  .folio-item:active .folio-voile { opacity: 1; transition: opacity 0.2s ease; }
}
@media (max-width: 820px) {
  .folio-item .lieu-m {
    display: block; margin-top: 7px;
    font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.32em;
    text-transform: uppercase; color: var(--ink-soft);
  }
}
.folio-item figcaption .lieu { color: var(--ink-soft); }
.folio-item .amp { font-style: italic; }

/* ---------- Éditorial (2 colonnes texte/image) ---------- */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.editorial .caps { display: block; margin-bottom: 22px; }
.editorial h2 { margin-bottom: 26px; }
.editorial p + p { margin-top: 18px; }

/* ---------- Collections ---------- */
.collection { border-top: 1px solid var(--line); padding: 44px 0; display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.collection h3 { font-size: 1.6rem; }
.collection .caps { display: block; margin-top: 10px; }
.collection p { color: var(--ink-soft); }

/* ---------- Formulaire ---------- */
form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 780px; }
.field--full { grid-column: 1 / -1; }
label { display: block; font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
input, textarea, select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 10px 2px; font-family: var(--sans); font-weight: 300; font-size: 1rem; color: var(--ink);
  border-radius: 0;
}
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--ink); }
textarea { min-height: 130px; resize: vertical; }

.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-size: 0.68rem; letter-spacing: 0.35em; text-transform: uppercase;
  padding: 16px 42px; border: 1px solid var(--ink); cursor: pointer;
  font-family: var(--sans); transition: all 0.3s ease;
}
.btn:hover { background: transparent; color: var(--ink); opacity: 1; }

/* ---------- Citation ---------- */
.quote { text-align: center; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); font-style: italic; max-width: 30ch; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 54px 6vw; text-align: center; }
footer .caps { display: block; margin-bottom: 14px; }
footer .fine { font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.08em; }
footer nav { display: flex; gap: 30px; justify-content: center; margin-bottom: 22px; }
footer nav a { font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid-2, .grid-3, .editorial, form { grid-template-columns: 1fr; }
  .methode { grid-template-columns: 1fr; gap: 46px; }
  .collection { grid-template-columns: 1fr; gap: 14px; }

  /* ---- Header mobile : marque centrée, EN en haut à droite, menu centré ---- */
  .nav { flex-direction: column; gap: 16px; padding: 18px 6vw 16px; position: relative; }
  .brand { font-size: 1.05rem; }
  nav.menu { flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
  nav.menu a { font-size: 0.58rem; letter-spacing: 0.18em; }
  .lang-toggle { position: absolute; top: 13px; right: 5vw; padding: 5px 11px; font-size: 0.58rem; letter-spacing: 0.2em; }

  /* ---- Hero d'accueil plus immersif sur petit écran ---- */
  .ph--wide { aspect-ratio: 3 / 2; }

  /* ---- Footer : liens centrés sur plusieurs lignes, sans débordement ---- */
  footer nav { flex-wrap: wrap; gap: 12px 22px; padding: 0 4vw; }
  footer nav a { font-size: 0.6rem; letter-spacing: 0.22em; }
}

/* ---------- Mouvement discret ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Hero vivant (fondu enchaîné lent) ---------- */
.hero-rotator { position: relative; }
.hero-rotator .hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-rotator .hero-slide.is-active { opacity: 1; }

/* ---------- Navigation entre chapitres (boucle de voyage) ---------- */
.chap-nav {
  max-width: 1240px; margin: 0 auto;
  padding: 40px 6vw clamp(90px, 12vh, 130px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.chap-nav a {
  font-family: var(--sans); font-size: 0.64rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-soft); transition: color 0.25s ease;
}
.chap-nav a:hover { color: var(--ink); }
.chap-nav .chap-tous { letter-spacing: 0.38em; }
@media (max-width: 820px) {
  .chap-nav { flex-wrap: wrap; row-gap: 24px; }
  .chap-nav .chap-prev { order: 1; }
  .chap-nav .chap-next { order: 2; }
  .chap-nav .chap-tous { order: 3; width: 100%; text-align: center; }
}
