/* Charte « Le temple des échos » — aecoute.xyz (proposée par Codex, adoptée par Pascal le 31/10/2026) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --paper: #101c2b;
  --ink: #f2eadc;
  --accent: #dec18a;
  --rule: #4c5866;
  --panel: #162638;
  --serif: 'Cinzel', Georgia, serif;
  --sans: 'Manrope', Arial, sans-serif;
}

/* Base */
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; overflow-wrap: break-word }
a { color: inherit; text-underline-offset: 5px }
a:hover { color: var(--accent) }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px }
img { display: block; max-width: 100%; height: auto }
h1, h2, h3, h4, h5, h6 { line-height: 1.15; font-family: var(--serif); font-weight: 400; margin: 0 }
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -.02em }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem) }
h3 { font-size: 1.6rem }
h4, h5, h6 { font-size: 1.3rem }
p { margin: 1rem 0 0 }
header, main, footer, .subnav-wrap { width: min(1280px, calc(100% - 96px)); margin: auto }
.skip { position: absolute; left: 16px; top: -100px; padding: 12px; background: var(--paper); z-index: 5 }
.skip:focus { top: 12px }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 600; color: var(--accent) }

/* En-tête et menus */
header { display: flex; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule) }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; text-decoration: none; font-weight: 600 }
.brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; background: #f4eddb }
.navigation { margin-left: auto }
.navigation summary { cursor: pointer }
.navigation nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: .75rem }
.navigation nav a { text-decoration: none }
.navigation nav a[aria-current] { color: var(--accent); text-decoration: underline }
.subnav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: .78rem }
.subnav strong { font-family: var(--serif); color: var(--accent); font-weight: 400; margin-right: 6px }
.subnav a { text-decoration: none }
.subnav a[aria-current] { color: var(--accent); text-decoration: underline }

/* Boutons et liens */
.button { display: inline-block; background: var(--accent); color: var(--paper); padding: 11px 20px; text-decoration: none; font-size: .85rem; font-weight: 600; margin: 6px 10px 6px 0 }
.button:hover { background: var(--ink); color: var(--paper) }
.plain-link { align-self: center; font-size: .85rem }
.buttons { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 4px 0 }

/* Pages de contenu */
.page-hero { padding: 64px 0 40px; display: grid; gap: 36px; align-items: center; border-bottom: 1px solid var(--accent) }
.page-hero.with-image { grid-template-columns: 1.2fr .8fr }
.page-hero .hero-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--rule) }
.page-hero p { max-width: 720px }
.block { padding: 44px 0; border-bottom: 1px solid var(--rule) }
.block:last-child { border-bottom: 0 }
.prose { max-width: 820px; margin: 0 auto }
.prose > h2:first-child, .prose > h3:first-child, .prose > h4:first-child, .prose > h5:first-child { margin-bottom: .6rem; color: var(--accent) }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { margin-top: 1.6rem }
.prose img { margin: 1.4rem auto; border: 1px solid var(--rule) }
.prose ul, .prose ol { padding-left: 1.4rem }
.prose blockquote { margin: 1.4rem 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); font-style: italic }
.prose table { border-collapse: collapse; width: 100%; margin-top: 1.2rem; font-size: .92rem }
.prose td, .prose th { border: 1px solid var(--rule); padding: 8px 10px; vertical-align: top }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0 }
.video { max-width: 960px; margin: 1.4rem auto 0 }
iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; background: #000 }
audio { width: 100%; margin-top: 1rem }
.caption { text-align: center; font-size: .85rem; color: var(--accent); margin-top: .6rem }
.callout { background: var(--panel); border: 1px solid var(--rule); padding: 36px; text-align: center }
.callout h2, .callout h3, .callout h4 { color: var(--accent) }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 1.6rem }
.card { background: var(--panel); border: 1px solid var(--rule); padding: 0 0 22px; min-width: 0; display: flex; flex-direction: column }
.card > :not(img):not(.video):not(a:first-child) { padding-left: 22px; padding-right: 22px }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; margin: 0 0 16px }
.card h2, .card h3, .card h4, .card h5, .card h6 { font-size: 1.25rem; margin-top: 12px }
.card .buttons { margin-top: auto; padding-top: 14px }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 1.4rem }

/* Discothèque */
.button.secondaire { background: transparent; color: var(--accent); border: 1px solid var(--accent) }
.button.secondaire:hover { background: var(--accent); color: var(--paper) }
.familles { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--rule); font-size: .8rem }
.familles a, .familles span { padding: 6px 14px; border: 1px solid var(--rule); text-decoration: none }
.familles span[aria-current] { border-color: var(--accent); color: var(--accent) }
.fiches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px }
.fiche { background: var(--panel); border: 1px solid var(--rule); display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 20px }
.fiche:target { border-color: var(--accent) }
.lecteur { aspect-ratio: 16/9; background: #000 }
.lecteur button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer }
.lecteur img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s }
.lecteur button:hover img, .lecteur button:focus-visible img { opacity: 1 }
.lecteur .lire { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--paper); display: grid; place-items: center; font-size: 1.5rem }
.lecteur iframe { height: 100% }
.fiche-texte { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1 }
.fiche-texte h2 { font-size: 1.45rem; color: var(--accent) }
.fiche-meta { font-size: .78rem; letter-spacing: .03em; color: var(--accent); opacity: .85; margin-top: .5rem }
.fiche-texte > p:not(.fiche-meta) { font-size: .93rem }
.versions { margin: 1rem 0 0; padding-left: 1.1rem; font-size: .86rem }
.versions span { color: var(--accent); font-size: .78rem; white-space: nowrap }
.fiche .buttons { margin-top: auto; padding-top: 1.2rem }

/* Accueil */
.hero { padding: 90px 0; display: grid; grid-template-columns: 1.4fr .6fr; gap: 50px; align-items: center }
.hero h1 { margin-top: 22px; font-size: clamp(2.7rem, 5.5vw, 5.5rem) }
.hero .motto { font-family: var(--serif); color: var(--accent); font-size: 1.4rem; margin-top: 12px }
.hero .intro { max-width: 560px }
.hero-actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px }
.hero-art { position: relative; display: grid; place-items: center; padding: 25px; border: 1px solid var(--accent); border-radius: 50%; aspect-ratio: 1; background: radial-gradient(circle, #253b50, transparent 70%) }
.hero-art:before, .hero-art:after { content: '✦'; position: absolute; top: -17px; left: 48%; color: var(--accent); background: var(--paper); padding: 0 8px }
.hero-art:after { top: auto; bottom: -17px }
.hero-art img { width: 90%; aspect-ratio: 1; object-fit: contain; border-radius: 50% }
.art-caption { position: absolute; bottom: -48px; text-align: center; font-size: .55rem }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; border-top: 1px solid var(--accent); padding-top: 24px }
.section-head span { font-size: .8rem }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px }
.news-card { display: flex; flex-direction: column; min-width: 0; background: var(--panel); padding: 16px }
.news-card h3 { font-size: 1.4rem }
.news-card p { font-size: .92rem; padding-bottom: 15px }
.cover { display: block; overflow: hidden }
.cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .25s }
.cover:hover img { transform: scale(1.025) }
time { display: block; font-size: .72rem; letter-spacing: .06em; color: var(--accent); margin: 20px 0 12px }
.read { margin-top: auto; padding-top: 20px; font-size: .8rem; font-weight: 600; color: var(--accent) }
.latest { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; margin: 72px 0; padding: 40px; background: var(--panel); border: 1px solid var(--rule) }
.latest h2 { margin-top: 16px }
.latest p { font-size: .95rem }
.latest a { display: inline-block; margin-top: 22px; font-size: .85rem }
.rubric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px }
.rubric { border: 1px solid var(--rule); min-width: 0; background: var(--panel) }
.rubric img { width: 100%; aspect-ratio: 16/9; object-fit: cover }
.rubric-body { padding: 24px }
.rubric .eyebrow { font-size: .62rem }
.rubric h3 { margin-top: 12px; font-size: 1.25rem }
.rubric p { font-size: .9rem }
.rubric a { display: inline-block; margin-top: 20px; font-size: .8rem }
.closing { padding: 65px 0; text-align: center; font-family: var(--serif); font-size: 1.8rem; font-style: italic; color: var(--accent) }

/* Pied de page */
footer { border-top: 1px solid var(--rule); padding: 30px 0; display: flex; gap: 32px; justify-content: space-between; font-size: .75rem }
footer p { margin-top: 8px; max-width: 520px }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; align-content: start }

/* Adaptations */
@media (min-width: 1101px) { .navigation summary { display: none } }
@media (max-width: 1100px) {
  header { position: relative; justify-content: space-between }
  .navigation { margin-left: 0 }
  .navigation nav { position: absolute; right: 0; top: 90px; z-index: 4; background: var(--paper); border: 1px solid var(--rule); padding: 24px; display: grid; min-width: 260px; font-size: .95rem }
  .hero { gap: 25px }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 700px) {
  header, main, footer, .subnav-wrap { width: calc(100% - 36px) }
  header { padding: 16px 0 }
  .brand img { width: 42px; height: 42px }
  .hero { grid-template-columns: 1fr; padding: 45px 0; gap: 24px }
  .hero-art { grid-row: 1; width: 160px; justify-self: center; padding: 8px; margin-bottom: 30px }
  .hero-art img { width: 100% }
  .art-caption { bottom: -30px; white-space: nowrap }
  .hero h1 { font-size: 2.8rem }
  .page-hero, .page-hero.with-image { grid-template-columns: 1fr; padding: 40px 0 28px }
  .news-grid, .rubric-grid, .cards, .fiches { grid-template-columns: 1fr; gap: 26px }
  .fiche-texte { padding: 18px }
  .section-head { align-items: start; flex-direction: column; gap: 8px }
  .latest { grid-template-columns: 1fr; gap: 26px; padding: 24px 18px; margin: 48px 0 }
  .rubric { display: grid; grid-template-columns: 100px minmax(0, 1fr) }
  .rubric img { height: 100%; aspect-ratio: auto }
  .rubric-body { padding: 18px }
  .callout { padding: 24px 18px }
  .closing { font-size: 1.4rem; padding: 45px 10px }
  footer { flex-direction: column; gap: 22px }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } .cover img { transition: none } }
