/* Conseil Santé : la nuit en clair (15 octobre 2026, refait en clair à la demande de Wilfried : pas de fonds sombres) */
:root {
  --nuit: #2b3a7a; --nuit-2: #eef1fb; --minuit: #5866c4; --lune: #f2e9c9; --etoile: #c9d1ff;
  --aube-1: #f7b98a; --aube-2: #f4d9a6; --drap: #f7f6fb; --blanc: #ffffff; --encre: #1b1d33; --gris: #5e6280; --filet: #dfe1ee;
  --lcd: #2b3a7a; --ciel-1: #f3f5fd; --ciel-2: #e7ebfa; --lavande: #ece6f8; --peche: #fde9da;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--drap); color: var(--encre); font: 400 1.03rem/1.72 Lunasima, system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: #3b46b8; text-underline-offset: .2em; }
h1, h2, h3, h4 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; line-height: 1.1; }
.veilleuse { position: absolute; left: -999px; }
.veilleuse:focus { left: 1rem; top: 1rem; background: var(--lune); padding: .5rem 1rem; z-index: 9; }

/* la voûte */
.voute { background: var(--blanc); color: var(--nuit); border-bottom: 1px solid var(--filet); }
.voute__in { max-width: 1120px; margin: 0 auto; padding: .9rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.6rem; }
.voute__nom { display: flex; align-items: center; gap: .6rem; color: var(--nuit); text-decoration: none; font: 400 1.7rem/1 'Instrument Serif', serif; }
.voute__lune { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset -8px -3px 0 0 #e8c46a; transform: rotate(-20deg); }
.voute__nav { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.voute__nav a { color: var(--gris); text-decoration: none; font-size: .9rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.voute__nav a:hover, .voute__nav a[aria-current] { color: var(--nuit); border-color: var(--minuit); }

main { display: block; }

/* le soir */
.soir { background: linear-gradient(var(--ciel-2), var(--ciel-1)); color: var(--nuit); text-align: center; padding: 3.2rem 1rem 3rem; position: relative; overflow: hidden; }
.soir::before { content: ""; position: absolute; right: 8%; top: 22%; width: 90px; height: 90px; border-radius: 50%; box-shadow: inset -22px -8px 0 0 #f0d27e; transform: rotate(-20deg); opacity: .9; }
.soir > * { position: relative; }
.soir h1 { max-width: 880px; margin: 0 auto .9rem; font-size: clamp(2rem, 5vw, 3.4rem); color: var(--nuit); }
.soir p { max-width: 720px; margin: 0 auto; color: var(--gris); }
.soir--rubrique { padding: 2.4rem 1rem 2.2rem; }

/* la frise de la nuit */
.frise { background: linear-gradient(var(--ciel-1) 0%, var(--lavande) 60%, var(--peche) 100%); color: var(--nuit); padding: 2.4rem 1rem 3rem; }
.frise h2 { max-width: 920px; margin: 0 auto 1.6rem; font-size: 2.2rem; color: var(--nuit); }
.heures { list-style: none; max-width: 920px; margin: 0 auto; padding: 0 0 0 1.2rem; border-left: 2px dashed #b9c0e6; }
.heure { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; align-items: start; padding: 0 0 1.8rem; }
.heure > * { min-width: 0; }
.heure::before { content: ""; position: absolute; left: calc(-1.2rem - 7px); top: .8rem; width: 12px; height: 12px; border-radius: 50%; background: var(--minuit); box-shadow: 0 0 0 4px var(--ciel-2); }
.heure__h { font: 700 1.6rem/1 Lunasima, monospace; color: var(--lcd); letter-spacing: .04em; padding: .5rem .6rem; background: var(--blanc); border: 1px solid #c9cfee; border-radius: 6px; text-align: center; }
.heure__moment { margin: 0 0 .5rem; font: italic 400 1.35rem/1.1 'Instrument Serif', serif; color: var(--minuit); }
.heure__fiche { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; align-items: center; background: var(--blanc); border: 1px solid var(--filet); border-radius: 12px; padding: .6rem; text-decoration: none; color: var(--encre); box-shadow: 0 2px 0 #dfe3f5; }
.heure__fiche:hover { border-color: var(--minuit); }
.heure__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--ciel-2); }
.heure__img img { width: 100%; height: 100%; object-fit: cover; }
.heure__t { font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }

/* le carnet de nuit et les listes */
.carnet-nuit { max-width: 1000px; margin: 2.6rem auto 0; padding: 0 1rem; }
.carnet-nuit h2 { font-size: 2rem; margin: 0 0 .3rem; }
.carnet-nuit > p { margin: 0 0 1.1rem; color: var(--gris); }
.carnet-nuit--large { margin-top: 1.8rem; }
.songes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: .9rem; }
.songes > * { min-width: 0; }
.songe { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: center; background: var(--blanc); border: 1px solid var(--filet); border-radius: 14px; padding: .6rem; text-decoration: none; color: var(--encre); }
.songe:hover { border-color: var(--minuit); }
.songe__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--filet); }
.songe__img img { width: 100%; height: 100%; object-fit: cover; }
.songe__c { display: grid; gap: .2rem; min-width: 0; }
.songe__r { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #3b46b8; }
.songe__t { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.songe__m { font-size: .82rem; color: var(--gris); }

/* le rêve (article, page) */
.reve { max-width: 800px; margin: 0 auto; padding: 0 1rem; }
.reve__tete { padding: 2.4rem 0 1rem; }
.reve__r { display: inline-block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blanc); background: var(--minuit); padding: .4rem .7rem; border-radius: 999px; text-decoration: none; margin-bottom: .9rem; }
.reve__tete h1 { margin: 0 0 .6rem; font-size: clamp(2rem, 4.4vw, 3rem); overflow-wrap: anywhere; }
.reve__m { margin: 0; color: var(--gris); font-size: .9rem; }
.reve__img { margin: .4rem 0 1.6rem; }
.reve__img img { border-radius: 18px; }
.reve__texte { overflow-wrap: anywhere; }
.reve__texte h2 { font-size: 1.9rem; margin: 2.2rem 0 .6rem; color: var(--nuit); }
.reve__texte h3 { font-size: 1.45rem; margin: 1.6rem 0 .4rem; }
.reve__texte table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .93rem; display: block; overflow-x: auto; }
.reve__texte th, .reve__texte td { border: 1px solid var(--filet); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.reve__texte th { background: #ecedf8; }
.reve__texte blockquote { margin: 1.2rem 0; padding: .9rem 1.2rem; background: var(--blanc); border-left: 4px solid var(--minuit); border-radius: 0 12px 12px 0; }

/* l'aube du pied */
.aube { margin-top: 3.5rem; background: linear-gradient(var(--drap), var(--peche)); color: var(--encre); padding: 2.6rem 1rem 2rem; }
.aube__in { max-width: 1000px; margin: 0 auto; display: grid; gap: 1rem; text-align: center; }
.aube__mot { margin: 0 auto; max-width: 700px; color: var(--nuit); font: italic 400 1.35rem/1.35 'Instrument Serif', serif; }
.aube__rubriques { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; }
.aube__rubriques a { color: var(--nuit); font-weight: 700; text-decoration: none; }
.aube__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.1rem; font-size: .88rem; }
.aube__pages a { color: var(--nuit); }

@media (max-width: 640px) {
  .heure { grid-template-columns: 1fr; gap: .5rem; }
  .heure__h { justify-self: start; }
  .heure__fiche { grid-template-columns: 1fr; }
  .songe { grid-template-columns: 100px 1fr; }
}
