/* House of Memory — feuille de style unique. */
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-roman-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/fira-sans-300-latin.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/fira-sans-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ivoire: #f5f2ec;
  --encre: #1c1a17;
  --noir: #0d0c0b;
  --gris: #7d776d;
  --filet: rgba(28, 26, 23, .16);
  --serif: "Cormorant Garamond", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Fira Sans", "Helvetica Neue", Arial, sans-serif;
  --marge: clamp(20px, 5vw, 80px);
  --bloc: clamp(88px, 13vw, 190px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivoire); color: var(--encre); font: 300 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: -.005em; }
h1 em, .tete__nom em, .pied__nom em { font-style: italic; font-weight: 300; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.label, figcaption, .tete__nav, .tete__langue, .film__sous, .film__jouer, .heros__credit, .bouton, .lecteur__fermer {
  font: 400 .6875rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.label { color: var(--gris); }
.lien { text-decoration: none; border-bottom: 1px solid var(--filet); padding-bottom: 2px; transition: border-color .25s; }
.lien:hover { border-color: currentColor; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--ivoire); padding: 10px 16px; z-index: 20; }
.evitement:focus { left: 0; }

/* ----------------------------------------------------------- en-tête */
.tete { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; gap: 32px;
  padding: 26px var(--marge); color: #fff; }
.tete a { text-decoration: none; }
.tete__nom { font: 400 1.25rem/1 var(--serif); letter-spacing: .02em; margin-right: auto; white-space: nowrap; }
.tete__nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.tete__nav a, .tete__langue { opacity: .86; transition: opacity .2s; }
.tete__nav a:hover, .tete__langue:hover { opacity: 1; }
.tete__langue { border: 1px solid rgba(255, 255, 255, .5); padding: 7px 10px 6px; letter-spacing: .18em; }

/* ------------------------------------------------------------- héros */
.heros { position: relative; height: 100vh; height: 100svh; min-height: 520px; background: var(--noir); color: #fff; overflow: hidden;
  display: grid; place-items: center; text-align: center; }
.heros .boucle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heros::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(13, 12, 11, .42), rgba(13, 12, 11, .18) 35%, rgba(13, 12, 11, .5)); }
.heros__texte { position: relative; z-index: 1; padding: 0 var(--marge); }
.heros__texte .label { color: rgba(255, 255, 255, .88); margin-bottom: clamp(18px, 2.4vw, 30px); }
.heros h1 { font-size: clamp(2.5rem, 7.4vw, 7rem); }
.heros__credit { position: absolute; z-index: 1; right: var(--marge); bottom: 24px; color: rgba(255, 255, 255, .7); font-size: .625rem; }

/* --------------------------------------------------------- manifeste */
.manifeste { max-width: 880px; margin: 0 auto; padding: var(--bloc) var(--marge); text-align: center; }
.manifeste__grand { font: 300 clamp(1.9rem, 4.2vw, 3.4rem)/1.16 var(--serif); margin-bottom: clamp(24px, 3vw, 40px); }
.manifeste p:last-child { max-width: 34em; margin: 0 auto; color: #4a463f; }

/* ------------------------------------------------------------ photos */
.photo { position: relative; }
.photo img { width: 100%; height: auto; background: #e6e1d8; }
figcaption { margin-top: 10px; color: var(--gris); font-size: .625rem; }
.pleine .photo img { max-height: 110vh; object-fit: cover; }
.pleine figcaption { padding: 0 var(--marge); }

.entete { max-width: 760px; margin: 0 auto clamp(48px, 7vw, 96px); padding: 0 var(--marge); text-align: center; }
.entete h2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.entete p { margin-top: 20px; color: #4a463f; }

/* --------------------------------------------------------------- duo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: start;
  max-width: 1280px; margin: 0 auto; padding: var(--bloc) var(--marge); }
.duo__bloc--film { margin-top: clamp(0px, 12vw, 180px); }
.duo .photo img, .duo__film { aspect-ratio: 4 / 5; object-fit: cover; }
.duo__film { position: relative; overflow: hidden; background: var(--noir); }
.duo__film .boucle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo .label { margin-top: 28px; }
.duo h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 8px 0 16px; }
.duo p { max-width: 30em; }
.duo p + p { margin-top: 16px; }

/* ----------------------------------------------------------- galerie */
.galerie { padding: 0 var(--marge) var(--bloc); max-width: 1500px; margin: 0 auto; }
.rangee { display: flex; gap: clamp(14px, 2.2vw, 34px); margin-bottom: clamp(28px, 3.6vw, 56px); }
.rangee .photo { flex: var(--r) 1 0%; min-width: 0; }
.rangee--seule { max-width: 1040px; margin-left: auto; margin-right: auto; }
.rangee:nth-child(odd) figcaption { text-align: right; }

/* ------------------------------------------------------------- films */
.films { background: var(--noir); color: #efeae2; padding: var(--bloc) var(--marge); }
.films .entete p { color: #b9b2a6; }
.films__grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4.4vw, 72px) clamp(14px, 2.2vw, 34px); max-width: 1500px; margin: 0 auto; }
.film--large { grid-column: 1 / -1; }
.film__lien { display: block; text-decoration: none; }
.film__image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.film--large .film__image { aspect-ratio: 2.39; }
.film__image .boucle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .6, .2, 1); }
.film__lien:hover .boucle { transform: scale(1.025); }
.film__jouer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #fff; border: 1px solid rgba(255, 255, 255, .7);
  padding: 12px 20px 11px; background: rgba(13, 12, 11, .28); opacity: 0; transition: opacity .3s; }
.film__lien:hover .film__jouer, .film__lien:focus-visible .film__jouer { opacity: 1; }
.film__titre { display: block; font: 300 clamp(1.4rem, 2.1vw, 1.9rem)/1.15 var(--serif); margin-top: 16px; }
.film__sous { display: block; margin-top: 6px; color: #9c958a; font-size: .625rem; }

/* ---------------------------------------------------------- approche */
.approche { padding: var(--bloc) var(--marge); max-width: 1280px; margin: 0 auto; }
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); counter-reset: etape; }
.etapes li { counter-increment: etape; border-top: 1px solid var(--filet); padding-top: 22px; }
.etapes li::before { content: counter(etape, decimal-leading-zero); font: 400 .6875rem/1 var(--sans); letter-spacing: .22em; color: var(--gris); }
.etapes h3 { font-size: 1.75rem; margin: 18px 0 12px; }
.etapes p { color: #4a463f; font-size: 1rem; }

/* ----------------------------------------------------------- contact */
.contact { padding: var(--bloc) var(--marge); }
.bouton { display: inline-block; margin-top: 18px; padding: 16px 30px 15px; border: 1px solid var(--encre); text-decoration: none; transition: background .25s, color .25s; }
.bouton:hover { background: var(--encre); color: var(--ivoire); }
.contact__grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); max-width: 860px; margin: 0 auto; text-align: center; }
.contact__personne { border-top: 1px solid var(--filet); padding-top: 26px; }
.contact__personne h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin: 10px 0 14px; }
.contact__personne a { text-decoration: none; overflow-wrap: anywhere; }
.contact__personne a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* -------------------------------------------------------------- pied */
.pied { background: var(--noir); color: #9c958a; text-align: center; padding: clamp(56px, 8vw, 100px) var(--marge); font-size: .875rem; }
.pied__nom { font: 300 clamp(1.6rem, 3vw, 2.4rem)/1 var(--serif); color: #efeae2; margin-bottom: 22px; }
.pied p + p { margin-top: 10px; }
.pied a { text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ----------------------------------------------------------- lecteur */
.lecteur { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(8, 7, 6, .96); color: #fff; }
.lecteur[open] { display: grid; place-items: center; }
.lecteur::backdrop { background: #080706; }
.lecteur__cadre { width: min(92vw, calc(82vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.lecteur__cadre iframe { width: 100%; height: 100%; border: 0; display: block; }
.lecteur__fermer { position: absolute; top: 20px; right: var(--marge); background: none; border: 1px solid rgba(255, 255, 255, .5); color: #fff; padding: 10px 14px 9px; cursor: pointer; }

.perdu { display: grid; place-items: center; min-height: 100vh; text-align: center; padding: var(--marge); }
.perdu h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 24px; }
.perdu h1 span { display: block; color: var(--gris); }

/* --------------------------------------------------------- téléphone */
@media (max-width: 860px) {
  .tete__nav { display: none; }
  .etapes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .tete { padding: 20px var(--marge); }
  .tete__nom { font-size: 1.125rem; }
  .duo { grid-template-columns: 1fr; gap: 72px; }
  .duo__bloc--film { margin-top: 0; }
  .rangee { flex-direction: column; gap: 28px; margin-bottom: 28px; }
  .rangee .photo { flex: none; }
  .rangee:nth-child(odd) figcaption { text-align: left; }
  .films__grille { grid-template-columns: 1fr; }
  .film--large .film__image { aspect-ratio: 16 / 9; }
  .film__jouer { opacity: 1; top: auto; left: 12px; bottom: 12px; transform: none; padding: 8px 12px 7px; font-size: .5625rem; }
  .etapes { grid-template-columns: 1fr; }
  .contact__grille { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film__image .boucle { transition: none; }
}
