/* jean.mouly.me — maquette V2 (contenu produit par le vault « mémoire », à intégrer par le vault serveurs) */
:root {
  --ink: #f4efe6;
  --ink-soft: rgba(244, 239, 230, 0.78);
  --ink-faint: rgba(244, 239, 230, 0.5);
  --paper: #14110e;
  --paper-2: #1d1914;
  --line: rgba(244, 239, 230, 0.16);
  --accent: #c9a96a;
  --serif: "Cormorant Garamond", "Baskerville", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 38rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }

/* --- en-tête commun -------------------------------------------------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(20, 17, 14, 0.85), rgba(20, 17, 14, 0));
}
.top .nom { font-size: 1.15rem; letter-spacing: 0.04em; text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.top nav a { text-decoration: none; color: var(--ink-soft); padding: 0.3rem 0; border-bottom: 1px solid transparent; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* --- accueil : film en fond, site par-dessus --------------------------- */
.accueil { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.accueil video.fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.accueil::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(20,17,14,0.45) 0%, rgba(20,17,14,0.78) 70%, rgba(20,17,14,0.9) 100%); }
.accueil .voile { position: relative; z-index: 2; text-align: center; padding: 6rem 1.25rem 3rem; max-width: 60rem; }
.accueil h1 { font-weight: 400; font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: 1.05; margin: 0; }
.accueil .dates { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.22em; color: var(--ink-soft); margin: 1.1rem 0 0; }
.accueil .mot { font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: var(--ink-soft); max-width: 34rem; margin: 2rem auto 0; }
.espaces { list-style: none; padding: 0; margin: 3rem auto 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 64rem; }
.espaces a { display: block; height: 100%; padding: 1.3rem 1rem; text-decoration: none; background: rgba(20, 17, 14, 0.55); backdrop-filter: blur(6px); transition: background 0.3s; }
.espaces a:hover { background: rgba(20, 17, 14, 0.8); }
.espaces .t { display: block; font-size: 1.3rem; }
.espaces .d { display: block; font-family: var(--sans); font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.35rem; line-height: 1.4; }
@media (max-width: 760px) { .espaces { grid-template-columns: 1fr 1fr; } .espaces li:last-child { grid-column: 1 / -1; } .top nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .accueil video.fond { display: none; } .accueil { background: var(--paper) url("assets/fond-accueil.jpg") center / cover; } }

/* --- pages intérieures ------------------------------------------------- */
.page { padding: 7rem clamp(1rem, 4vw, 2.5rem) 5rem; max-width: 72rem; margin: 0 auto; }
.page > header { max-width: var(--measure); margin: 0 auto 3rem; text-align: center; }
.page h1 { font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; line-height: 1.1; }
.page .chapo { color: var(--ink-soft); font-style: italic; margin-top: 1rem; }
.lecteur { max-width: 64rem; margin: 0 auto; background: #000; border: 1px solid var(--line); }
.lecteur video { width: 100%; aspect-ratio: 16 / 9; }
.note { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-faint); text-align: center; margin-top: 1rem; }

/* Jean chante */
.chant { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; max-width: 60rem; margin: 0 auto; }
.chant figure { margin: 0; }
.chant-photo img { width: 100%; height: auto; border: 1px solid var(--line); }
.chant-audio { text-align: center; }
.chant-audio .paroles { font-style: italic; font-size: 1.35rem; line-height: 1.7; color: var(--ink-soft); margin: 0 0 2rem; }
.chant-audio .source { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-faint); margin: -1.2rem 0 2rem; }
.chant-audio audio { width: 100%; }
.chant-audio .legende { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.8rem; }
@media (max-width: 760px) { .chant { grid-template-columns: 1fr; } }

/* textes longs */
.sommaire { list-style: none; padding: 0; max-width: var(--measure); margin: 0 auto 3rem; border-top: 1px solid var(--line); }
.sommaire li { border-bottom: 1px solid var(--line); }
.sommaire a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; text-decoration: none; }
.sommaire .qui { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-faint); align-self: center; }
article.texte { max-width: var(--measure); margin: 0 auto 4rem; padding-top: 2rem; }
article.texte h2 { font-weight: 400; font-size: 1.9rem; margin: 0 0 0.3rem; }
article.texte .auteur { font-family: var(--sans); font-size: 0.85rem; color: var(--accent); letter-spacing: 0.05em; margin: 0 0 2rem; }
article.texte p { margin: 0 0 1.1rem; }
article.texte.a-venir { color: var(--ink-faint); font-style: italic; }
.separateur { text-align: center; color: var(--accent); margin: 3rem 0; letter-spacing: 1em; }

.eglise { max-width: var(--measure); margin: 5rem auto 0; padding-top: 3rem; border-top: 1px solid var(--line); }
.eglise h2 { font-weight: 400; font-size: 2.2rem; text-align: center; margin: 0 0 2rem; }
.eglise h3 { font-weight: 400; font-size: 1.6rem; margin: 0 0 0.3rem; }
.intro-eglise { text-align: center; font-style: italic; color: var(--ink-soft); margin-bottom: 3rem; }
.intro-eglise p { margin: 0 0 0.3rem; }

/* poème de Julie : palimpseste, sa page manuscrite très estompée derrière les vers */
article.poeme .palimpseste { position: relative; max-width: 34rem; margin: 0 auto; aspect-ratio: 992 / 1400; display: flex; flex-direction: column; justify-content: center; padding: 2rem 1rem; }
article.poeme .manuscrit { position: absolute; inset: 0; margin: 0; z-index: 0; pointer-events: none; }
article.poeme .manuscrit img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; filter: grayscale(0.3) sepia(0.3) brightness(0.85); }
article.poeme .vers { position: relative; z-index: 1; text-align: center; font-style: italic; text-shadow: 0 0 6px var(--paper), 0 0 2px var(--paper); }
article.poeme .vers p { margin: 0 0 1.6rem; }
article.poeme .dedicace { font-style: normal; font-family: var(--sans); font-size: 0.85rem; color: var(--accent); letter-spacing: 0.05em; }

/* condoléances : lettres puis registre */
.ecrits { max-width: var(--measure); margin: 5rem auto 0; padding-top: 3rem; border-top: 1px solid var(--line); }
.ecrits h2 { font-weight: 400; font-size: 2.2rem; text-align: center; margin: 0 0 1rem; }
.intro-ecrits { text-align: center; font-style: italic; color: var(--ink-soft); margin: 0 0 3rem; }
article.lettre { border-top: 1px solid var(--line); padding: 2rem 0 1rem; }
article.lettre p { margin: 0 0 1rem; }
.ecrits .auteur { font-family: var(--sans); font-size: 0.85rem; color: var(--accent); letter-spacing: 0.05em; }

/* dépôts */
.liste-depots { max-width: var(--measure); margin: 0 auto; }
.depot { border-top: 1px solid var(--line); padding: 1.8rem 0; }
.depot .auteur { font-family: var(--sans); font-size: 0.85rem; color: var(--accent); margin-top: 0.8rem; }
.vide { text-align: center; color: var(--ink-faint); font-style: italic; }
form.deposer { max-width: var(--measure); margin: 4rem auto 0; padding: 2rem; background: var(--paper-2); border: 1px solid var(--line); font-family: var(--sans); font-size: 0.95rem; }
form.deposer h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 0 0 0.4rem; }
form.deposer .intro { color: var(--ink-soft); margin: 0 0 1.5rem; }
form.deposer label { display: block; margin: 1.1rem 0 0.35rem; color: var(--ink-soft); font-size: 0.85rem; }
form.deposer input[type="text"], form.deposer input[type="email"], form.deposer textarea, form.deposer input[type="file"] {
  width: 100%; padding: 0.7rem 0.8rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 2px; font: inherit; }
form.deposer textarea { min-height: 12rem; resize: vertical; font-family: var(--serif); font-size: 1.1rem; line-height: 1.6; }
form.deposer input:focus, form.deposer textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form.deposer .aide { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.3rem; }
form.deposer .hp { position: absolute; left: -9999px; }
form.deposer button { margin-top: 1.6rem; padding: 0.8rem 1.6rem; background: var(--accent); color: var(--paper); border: 0; border-radius: 2px; font: inherit; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; }
form.deposer button:disabled { opacity: 0.6; cursor: default; }
form.deposer .retour { margin-top: 1rem; min-height: 1.4em; }

/* photos */
.galerie { columns: 3 16rem; column-gap: 1rem; }
.galerie figure { break-inside: avoid; margin: 0 0 1rem; background: var(--paper-2); border: 1px solid var(--line); }
.galerie figcaption { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft); padding: 0.6rem 0.8rem; }
.galerie figcaption .auteur { color: var(--accent); }

footer.pied { border-top: 1px solid var(--line); padding: 2rem 1rem; text-align: center; font-family: var(--sans); font-size: 0.8rem; color: var(--ink-faint); }

/* Formulaires de dépôt en haut de page, repliés derrière un bouton (23/10/2026, demande de Frank) */
details.deposer-ouvrir { max-width: var(--measure); margin: -1.5rem auto 3rem; text-align: center; }
details.deposer-ouvrir > summary { display: inline-block; list-style: none; padding: 0.8rem 1.6rem; background: var(--accent); color: var(--paper); border-radius: 2px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.04em; cursor: pointer; }
details.deposer-ouvrir > summary::-webkit-details-marker { display: none; }
details.deposer-ouvrir > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
details.deposer-ouvrir[open] > summary { opacity: 0.75; }
details.deposer-ouvrir form.deposer { margin-top: 1.5rem; text-align: left; }
details.deposer-ouvrir form.deposer h2 { display: none; }

/* Accueil sur téléphone : blocs descendus pour dégager le visage de Jean, souvent au centre du film (23/10/2026, demande de Frank) */
@media (max-width: 760px) {
  .accueil { place-items: start center; }
  .accueil video.fond { height: 100svh; bottom: auto; }
  .accueil .voile { padding: 4.5rem 1.25rem 2rem; }
  .accueil .mot { margin-top: 1.2rem; }
  .espaces { margin-top: max(1.5rem, calc(56svh - 15rem)); }
  .espaces a { padding: 0.8rem 0.6rem; }
}
article.poeme .vers .source { font-style: normal; font-family: var(--sans); font-size: 0.8rem; color: var(--ink-faint); margin-top: -0.8rem; }
