@font-face {
  font-family: "Antic Didone";
  src: url("../fonts/antic-didone.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Petit Formal Script";
  src: url("../fonts/petit-formal-script.woff2") format("woff2");
  font-display: swap;
}

:root {
  --fond: #faf8f4;
  --texte: #2b2926;
  --texte-doux: #6b655c;
  --or: #a8834a;
  --largeur: 1140px;
  --titre: "Antic Didone", Georgia, "Times New Roman", serif;
  --script: "Petit Formal Script", cursive;
}

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 17px/1.6 Georgia, "Times New Roman", serif;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
figure { margin: 0; }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* En-tête */
.entete { text-align: center; padding: 48px 16px 8px; }
.entete-lien { display: inline-block; position: relative; text-decoration: none; }
.entete-icone { margin: 0 auto 8px; }
.entete-deco {
  display: block;
  font: clamp(72px, 16vw, 180px)/1 var(--script);
  color: var(--or);
  opacity: .18;
  user-select: none;
}
.entete-titre {
  display: block;
  margin: clamp(-90px, -8vw, -36px) 0 0;
  font: 400 clamp(34px, 6vw, 64px)/1.1 var(--titre);
  letter-spacing: .02em;
}

/* Menu des rubriques */
.menu {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px 32px;
  margin: 24px 0 0;
  font: 400 18px/1.4 var(--titre);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.menu a {
  padding: 4px 0;
  text-decoration: none;
  color: var(--texte-doux);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.menu a:hover, .menu a:focus-visible { color: var(--texte); border-color: var(--or); }
.menu a[aria-current="page"] { color: var(--texte); border-color: var(--or); }

main { max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }

.titre-rubrique { margin-top: 32px; font-size: 40px; }

.intro {
  max-width: 680px;
  margin: 16px auto 40px;
  text-align: center;
  color: var(--texte-doux);
}

figcaption {
  margin-top: 6px;
  font-size: 14px;
  font-style: italic;
  color: var(--texte-doux);
}

.une { margin-bottom: 64px; }
.une figcaption { text-align: center; }

.titre-section {
  margin: 0 0 24px;
  text-align: center;
  font: 400 32px/1.2 var(--titre);
}
.titre-section::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 12px auto 0;
  background: var(--or);
}

/* Galerie : colonnes façon mosaïque, les photos gardent leurs proportions */
.galerie { columns: 3 320px; column-gap: 24px; margin-bottom: 64px; }
.galerie figure { break-inside: avoid; margin-bottom: 24px; }

[data-visionneuse] { display: block; overflow: hidden; cursor: zoom-in; }
[data-visionneuse] img { transition: transform .4s ease, opacity .4s ease; }
[data-visionneuse]:hover img { transform: scale(1.02); opacity: .92; }

/* Vidéos : vignette locale, YouTube chargé seulement au clic */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  margin-bottom: 64px;
}
.video { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.video img, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-lecture {
  position: absolute; inset: 0; margin: auto;
  width: 68px; height: 48px; border-radius: 12px;
  background: rgba(0, 0, 0, .7);
  transition: background .2s;
}
.video-lecture::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 0; height: 0;
  border-style: solid; border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}
.video:hover .video-lecture, .video:focus-visible .video-lecture { background: #c00; }

/* Pied de page */
.pied {
  padding: 32px 16px 40px;
  border-top: 1px solid #e6e0d6;
  text-align: center;
  font-size: 15px;
  color: var(--texte-doux);
}
.pied p { margin: 6px 0; }
.pied a { color: var(--texte); }
.pied-contact { font-size: 17px; }
.pied-contact a { text-decoration-color: var(--or); text-underline-offset: 4px; }

/* Visionneuse */
.visionneuse {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(15, 14, 12, .96);
  color: #eee;
}
.visionneuse::backdrop { background: transparent; }
.visionneuse figure {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 64px 24px;
}
.visionneuse img { max-height: calc(100% - 40px); width: auto; object-fit: contain; }
.visionneuse figcaption { color: #ccc; text-align: center; }
.visionneuse button {
  position: absolute;
  background: none; border: 0; color: #fff;
  font: 44px/1 var(--titre);
  padding: 8px 16px;
  cursor: pointer; opacity: .7;
}
.visionneuse button:hover, .visionneuse button:focus-visible { opacity: 1; }
.visionneuse-fermer { top: 4px; right: 8px; }
.visionneuse-prec { left: 4px; top: 50%; transform: translateY(-50%); }
.visionneuse-suiv { right: 4px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .visionneuse figure { padding: 48px 8px 16px; }
  .visionneuse-prec, .visionneuse-suiv { top: auto; bottom: 4px; transform: none; }
}

/* Pages de texte (mentions légales…) */
.texte { max-width: 720px; margin: 0 auto 64px; }
.texte h1 { font: 400 36px/1.2 var(--titre); text-align: center; }
.texte h2 { font: 400 24px/1.3 var(--titre); margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
