/* Songes du futur · feuille de style du site (charte « La Luciole d'or ») */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("polices/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("polices/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("polices/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("polices/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("polices/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("polices/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("polices/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 600; font-display: swap; src: url("polices/source-serif-4-latin-600-italic.woff2") format("woff2"); }

:root {
  --nuit: #0a0919;
  --nuit-2: #100e24;
  --nuit-3: #191634;
  --encre: #efe7d6;
  --encre-2: #bdb5a6;
  --encre-3: #8f8899;
  --or: #e3b65c;
  --or-vif: #f6d489;
  --violet: #8a78b0;
  --filet: rgba(227, 182, 92, 0.26);
  --filet-fort: rgba(227, 182, 92, 0.55);
  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --texte: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --gouttiere: clamp(1.1rem, 4vw, 2.5rem);
  --large: 70rem;
  --mesure: 39rem;
}

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

html { background: var(--nuit); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.72;
  background:
    radial-gradient(60rem 36rem at 85% -8rem, rgba(138, 120, 176, 0.16), transparent 70%),
    radial-gradient(48rem 30rem at 5% 30rem, rgba(227, 182, 92, 0.05), transparent 70%),
    var(--nuit);
  background-attachment: scroll;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--or); text-decoration-color: var(--filet-fort); text-underline-offset: 0.2em; }
a:hover { color: var(--or-vif); }
:focus-visible { outline: 2px solid var(--or-vif); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(227, 182, 92, 0.35); color: #fff; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saut { position: absolute; left: 1rem; top: -4rem; background: var(--or); color: var(--nuit); padding: 0.5rem 1rem; z-index: 20; border-radius: 3px; }
.saut:focus { top: 1rem; }

.cadre { width: 100%; max-width: var(--large); margin-inline: auto; padding-inline: var(--gouttiere); }

/* En-tête */
.entete { position: relative; z-index: 5; }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.marque { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--or); font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: 0.01em; line-height: 1; white-space: nowrap; }
.marque img { width: 2.4rem; height: 2.4rem; border-radius: 50%; }
.menu { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 2rem); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.menu a { color: var(--encre-2); text-decoration: none; padding-block: 0.4rem; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--or-vif); }
.menu .yt { color: var(--or); border: 1px solid var(--filet-fort); border-radius: 99px; padding: 0.45rem 1rem; }
.menu .yt:hover { background: var(--or); color: var(--nuit); }
.menu a { white-space: nowrap; }
@media (max-width: 44rem) {
  .marque { font-size: 1.2rem; gap: 0.5rem; }
  .marque img { width: 2rem; height: 2rem; }
  .menu { gap: 1rem; font-size: 0.7rem; letter-spacing: 0.1em; }
  .menu .facultatif, .menu .yt { display: none; }
}

/* Boutons */
.bouton { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--texte); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--nuit); background: var(--or); border: 1px solid var(--or); border-radius: 99px; padding: 0.85rem 1.6rem; font-weight: 600; transition: background 0.2s, color 0.2s, transform 0.2s; }
.bouton:hover { background: var(--or-vif); border-color: var(--or-vif); color: var(--nuit); transform: translateY(-1px); }
.bouton.clair { background: transparent; color: var(--or); border-color: var(--filet-fort); }
.bouton.clair:hover { background: rgba(227, 182, 92, 0.12); color: var(--or-vif); }

/* Titres communs */
.surtitre { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--or); margin: 0 0 0.9rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; }
.titre-section { font-size: clamp(2.1rem, 5vw, 3.2rem); color: var(--encre); }
.chapo { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.35; color: var(--encre-2); margin: 0.9rem 0 0; text-wrap: balance; }
.ornement { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin: clamp(3rem, 8vw, 5.5rem) auto; color: var(--or); }
.ornement::before, .ornement::after { content: ""; height: 1px; width: min(9rem, 22vw); background: linear-gradient(90deg, transparent, var(--filet-fort)); }
.ornement::after { transform: scaleX(-1); }
.ornement i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--or-vif); box-shadow: 0 0 0.9rem 0.25rem rgba(246, 212, 137, 0.55); }

/* Accueil : ouverture */
.ouverture { position: relative; overflow: hidden; text-align: center; padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(4rem, 10vw, 7.5rem); }
.ouverture canvas, .tete-nuit canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ouverture .cadre { position: relative; }
.ouverture .luciole { width: clamp(6.5rem, 16vw, 10rem); height: auto; margin: 0 auto 1.2rem; border-radius: 50%; -webkit-mask-image: radial-gradient(circle, #000 38%, transparent 68%); mask-image: radial-gradient(circle, #000 38%, transparent 68%); }
.ouverture h1 { font-size: clamp(3.2rem, 11vw, 7rem); letter-spacing: -0.01em; color: var(--or); padding-bottom: 0.08em; }
.ouverture .chapo { max-width: 34rem; margin-inline: auto; }
.ouverture .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 2.2rem; }
.ouverture .note { margin: 2.4rem auto 0; max-width: 31rem; color: var(--encre-3); font-size: 0.95rem; }

/* Accueil : liste des nuits */
.nuits { padding-block: clamp(1rem, 4vw, 3rem) 0; }
.nuits > .cadre > header { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.nuit-ligne { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(3.5rem, 9vw, 6.5rem); }
.nuit-ligne:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.nuit-ligne:nth-of-type(even) .nuit-image { order: 2; }
.nuit-image { position: relative; display: block; border-radius: 5px; overflow: hidden; box-shadow: 0 0 0 1px var(--filet), 0 2rem 4rem -1.5rem rgba(0, 0, 0, 0.8); }
.nuit-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.nuit-image:hover img { transform: scale(1.035); }
.nuit-texte h3 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); }
.nuit-texte h3 a { color: var(--encre); text-decoration: none; }
.nuit-texte h3 a:hover { color: var(--or-vif); }
.nuit-texte .accroche { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.4rem; line-height: 1.35; color: var(--encre-2); margin: 0.7rem 0 0.7rem; }
.nuit-texte .heros { color: var(--encre-3); font-size: 0.98rem; margin: 0 0 1.3rem; }
.vignettes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.vignettes img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; opacity: 0.82; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.lien-fleche { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--or); border-bottom: 1px solid var(--filet-fort); padding-bottom: 0.25rem; }
.lien-fleche:hover { border-color: var(--or-vif); }
.lien-fleche::after { content: " →"; }
@media (max-width: 52rem) {
  .nuit-ligne, .nuit-ligne:nth-of-type(even) { grid-template-columns: 1fr; gap: 1.4rem; }
  .nuit-ligne:nth-of-type(even) .nuit-image { order: 0; }
}

/* Accueil : l'univers */
.univers { padding-block: clamp(1rem, 4vw, 2rem); }
.univers header { text-align: center; max-width: 40rem; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.univers header p { color: var(--encre-2); margin: 1.1rem 0 0; }
.piliers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.2rem); margin: 0; padding: 0; list-style: none; }
.piliers li { border-top: 1px solid var(--filet); padding-top: 1.3rem; }
.piliers h3 { font-size: 1.55rem; color: var(--or-vif); margin-bottom: 0.6rem; }
.piliers p { margin: 0; color: var(--encre-2); font-size: 0.98rem; line-height: 1.65; }
@media (max-width: 60rem) { .piliers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .piliers { grid-template-columns: 1fr; } }

/* Accueil : écouter */
.ecouter { text-align: center; padding-block: 0 clamp(3rem, 8vw, 5rem); }
.ecouter .boite { max-width: 44rem; margin-inline: auto; background: linear-gradient(180deg, rgba(25, 22, 52, 0.85), rgba(16, 14, 36, 0.6)); border: 1px solid var(--filet); border-radius: 8px; padding: clamp(2rem, 6vw, 3.5rem) clamp(1.3rem, 5vw, 3rem); }
.ecouter p { color: var(--encre-2); max-width: 32rem; margin: 1.1rem auto 1.8rem; }

/* Page d'une nuit */
.tete-nuit { position: relative; overflow: hidden; text-align: center; padding: clamp(2rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); }
.tete-nuit .cadre { position: relative; }
.retour { display: inline-block; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--encre-3); text-decoration: none; margin-bottom: 2rem; }
.retour:hover { color: var(--or-vif); }
.tete-nuit h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--encre); }
.tete-nuit .chapo { max-width: 36rem; margin-inline: auto; }
.tete-nuit .heros { color: var(--encre-3); margin: 1rem auto 0; max-width: 34rem; font-size: 0.98rem; }

.video { max-width: 60rem; margin-inline: auto; padding-inline: var(--gouttiere); }
.lecteur { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 0; background: #000; border-radius: 6px; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--filet), 0 2.5rem 5rem -2rem rgba(0, 0, 0, 0.9); }
.lecteur img, .lecteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.lecteur img { transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s; opacity: 0.92; }
.lecteur:hover img { transform: scale(1.02); opacity: 1; }
.lecteur .jouer { position: absolute; left: 50%; top: 50%; width: clamp(4rem, 10vw, 5.5rem); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(10, 9, 25, 0.55); border: 1.5px solid var(--or-vif); backdrop-filter: blur(4px); display: grid; place-items: center; box-shadow: 0 0 2.5rem rgba(246, 212, 137, 0.35); transition: background 0.2s, transform 0.2s; }
.lecteur:hover .jouer { background: var(--or); transform: translate(-50%, -50%) scale(1.06); }
.lecteur .jouer::before { content: ""; margin-left: 12%; border-style: solid; border-width: 0.75rem 0 0.75rem 1.25rem; border-color: transparent transparent transparent var(--or-vif); }
.lecteur:hover .jouer::before { border-left-color: var(--nuit); }
.legende-video { text-align: center; color: var(--encre-3); font-size: 0.92rem; margin: 1.1rem auto 0; max-width: 40rem; }

.intro { max-width: calc(var(--mesure) + 2 * var(--gouttiere)); margin: clamp(2.5rem, 7vw, 4.5rem) auto 0; padding-inline: var(--gouttiere); }
.intro p { margin: 0 0 1.2rem; color: var(--encre-2); }
.intro p:first-child { font-size: 1.22rem; line-height: 1.62; color: var(--encre); }

.livre > header { text-align: center; margin-bottom: clamp(2.5rem, 7vw, 4.5rem); padding-inline: var(--gouttiere); }
.livre > header p { color: var(--encre-3); margin: 0.9rem 0 0; }
.planche { max-width: var(--large); margin: 0 auto clamp(4rem, 10vw, 7.5rem); padding-inline: var(--gouttiere); scroll-margin-top: 2rem; }
.planche figure { margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--filet), 0 3rem 6rem -2.5rem rgba(0, 0, 0, 0.9); background: var(--nuit-2); }
.planche figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.planche .texte { display: grid; grid-template-columns: 6.5rem minmax(0, var(--mesure)); gap: clamp(1rem, 3vw, 2.2rem); justify-content: center; margin-top: clamp(1.4rem, 4vw, 2.4rem); }
.planche .rang { font-family: var(--display); font-weight: 500; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 0.9; color: var(--or); text-align: right; padding-top: 0.15rem; }
.planche h3 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--encre); margin-bottom: 0.8rem; }
.planche p { margin: 0 0 1rem; color: var(--encre-2); }
@media (max-width: 44rem) {
  .planche .texte { grid-template-columns: 1fr; gap: 0.3rem; }
  .planche .rang { text-align: left; font-size: 2.2rem; }
}

.suite { max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere) clamp(3rem, 8vw, 5rem); }
.suite .ecoute { text-align: center; margin-bottom: clamp(3rem, 7vw, 4.5rem); }
.suite .ecoute p { color: var(--encre-2); margin: 0 auto 1.6rem; max-width: 30rem; }
.voisins { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.voisins a { display: block; text-decoration: none; border: 1px solid var(--filet); border-radius: 6px; padding: 1.3rem 1.5rem; color: var(--encre); background: rgba(25, 22, 52, 0.45); transition: border-color 0.2s, background 0.2s; }
.voisins a:hover { border-color: var(--filet-fort); background: rgba(25, 22, 52, 0.9); }
.voisins small { display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--or); margin-bottom: 0.35rem; }
.voisins strong { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1.1; }
.voisins .apres { text-align: right; grid-column: 2; }
@media (max-width: 34rem) { .voisins { grid-template-columns: 1fr; } .voisins .apres { grid-column: 1; text-align: left; } }

/* Page de texte (À propos) */
.page { max-width: calc(var(--mesure) + 2 * var(--gouttiere)); margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--gouttiere) clamp(3rem, 8vw, 5rem); }
.page h1 { font-size: clamp(2.8rem, 8vw, 4.6rem); margin-bottom: 0.4rem; }
.page h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--or-vif); margin: 3rem 0 0.9rem; }
.page p, .page li { color: var(--encre-2); }
.page p { margin: 0 0 1.1rem; }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: 0.5rem; }
.page .petit { font-size: 0.93rem; color: var(--encre-3); }

/* Pied de page */
.pied { border-top: 1px solid var(--filet); margin-top: clamp(2rem, 6vw, 4rem); padding-block: 2.5rem 3rem; font-size: 0.9rem; color: var(--encre-3); }
.pied .cadre { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.pied p { margin: 0 0 0.6rem; max-width: 32rem; }
.pied nav { display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-end; }
.pied a { color: var(--encre-2); text-decoration: none; }
.pied a:hover { color: var(--or-vif); }
@media (max-width: 40rem) { .pied .cadre { grid-template-columns: 1fr; } .pied nav { align-items: flex-start; } }

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