@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-serif-display-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-serif-display-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Les pieds ont des oreilles : thème sobre. Palette tirée du logo, utilisée en touches. */
:root {
  --teal: #36b9b4;
  --orange: #f4813f;
  --yellow: #fdc16d;
  --red: #e5322d;
  --night: #1b1620;
  --ink: #1b1620;
  --bg: #f8f1e4;
  --alt: #efe5d2;
  --line: rgba(27, 22, 32, .2);
  --link: #a8261f;
  --btn-bg: #1b1620;
  --btn-ink: #f8f1e4;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17121b; --alt: #201a27; --ink: #f3eadb; --line: rgba(243, 234, 219, .2); --link: #fdc16d; --btn-bg: #fdc16d; --btn-ink: #1b1620; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; font: 400 1.05rem/1.65 var(--sans); background: var(--bg); color: var(--ink); }
a { color: var(--link); text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.005em; }
h2 { font-size: 2.1rem; margin-top: 0; }
h2::after { content: ""; display: block; width: 3rem; height: 2px; margin-top: .6rem; background: var(--orange); }
h3 { font-size: 1.35rem; }

/* En-tête du site */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; align-items: center; justify-content: space-between; padding: .6rem 1.2rem; background: var(--night); border-bottom: 1px solid rgba(248, 241, 228, .15); }
.brand { display: flex; align-items: center; gap: .7rem; color: #f8f1e4; font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.brand img { height: 2.4rem; width: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; }
.site-header nav a { color: rgba(248, 241, 228, .85); text-decoration: none; font: 500 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.site-header nav a:hover { color: var(--yellow); }
.nav-toggle { display: none; align-items: center; gap: .6rem; padding: .5rem .2rem; border: 0; background: transparent; color: #f8f1e4; font: 500 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.nav-toggle .bars { position: relative; width: 1.1rem; height: 2px; background: currentColor; transition: background .15s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .15s; }
.nav-toggle .bars::before { top: -.32rem; }
.nav-toggle .bars::after { top: .32rem; }
.site-header.open .nav-toggle .bars { background: transparent; }
.site-header.open .nav-toggle .bars::before { transform: translateY(.32rem) rotate(45deg); }
.site-header.open .nav-toggle .bars::after { transform: translateY(-.32rem) rotate(-45deg); }
.nav-toggle:focus-visible, .site-header nav a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 64rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .brand { flex: 1 1 0; min-width: 0; }
  .js .brand span { max-width: 9rem; font-size: .7rem; letter-spacing: .1em; }
  .js .site-header { flex-wrap: wrap; }
  .js .site-header nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; margin-top: .4rem; border-top: 1px solid rgba(248, 241, 228, .15); }
  .js .site-header.open nav { display: flex; }
  .js .site-header nav a { padding: .85rem .2rem; border-bottom: 1px solid rgba(248, 241, 228, .1); font-size: .8rem; }
}

section, footer { padding: 4rem max(1.2rem, calc((100% - 52rem) / 2)); }
section.alt { background: var(--alt); }

/* Boutons */
.button { display: inline-block; padding: .8rem 1.4rem; border: 1px solid var(--btn-bg); border-radius: 2px; background: var(--btn-bg); color: var(--btn-ink); font: 600 .78rem/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Accueil : en-tête photo */
.hn { position: relative; display: flex; align-items: flex-end; min-height: clamp(30rem, 82vh, 48rem); padding: 0; color: #f8f1e4; background: #1b1620 72% center / cover no-repeat; }
.hn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 22, 32, .88) 0%, rgba(27, 22, 32, .6) 48%, rgba(27, 22, 32, .15) 100%), linear-gradient(180deg, rgba(27, 22, 32, .1) 40%, rgba(27, 22, 32, .75) 100%); }
.hn-inner { position: relative; width: 100%; padding: 5rem max(1.2rem, calc((100% - 62rem) / 2)) 3.5rem; }
.hn h1 { margin: 0 0 1.2rem; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.04; color: #f8f1e4; }
.hn h1::after { display: none; }
.kicker { margin: 0 0 1.1rem; font: 600 .78rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.lead { margin: 0; max-width: 34rem; font-size: 1.15rem; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 0; }
.btn { display: inline-block; padding: .8rem 1.4rem; border: 1px solid transparent; border-radius: 2px; font: 600 .78rem/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; text-decoration: none; }
.btn.solid { background: var(--yellow); border-color: var(--yellow); color: #1b1620; }
.btn.solid:hover { background: #f8f1e4; border-color: #f8f1e4; }
.btn.line { border-color: rgba(248, 241, 228, .55); color: #f8f1e4; }
.btn.line:hover { background: rgba(248, 241, 228, .14); }

/* Prochains rendez-vous (mis à jour par js/next-event.js) */
.next-event { max-width: 32rem; margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid rgba(248, 241, 228, .3); }
.next-event[hidden] { display: none; }
.next-label { display: block; font: 600 .74rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }
.next-list { display: grid; margin-top: .3rem; }
.next-list a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .2rem 1rem; padding: .4rem 0; border-bottom: 1px solid rgba(248, 241, 228, .14); color: #f8f1e4; text-decoration: none; line-height: 1.35; }
.next-list a:hover strong { text-decoration: underline; }
.next-list strong { font-weight: 500; }
.next-list span { grid-column: 2; font-size: .85rem; opacity: .75; }
@media (max-width: 40rem) { .hn { background-position: 78% center; } .next-list a { grid-template-columns: 1fr; } .next-list span { grid-column: 1; } }

/* Activités */
.news { list-style: none; padding: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.cards article { padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 2px; background: var(--alt); }
.cards article:nth-child(2) { border-top-color: var(--teal); }
.cards article:nth-child(3) { border-top-color: var(--red); }
.cards article:nth-child(4) { border-top-color: var(--yellow); }
.cards h3 { margin-top: 0; font-size: 1.2rem; }

footer { text-align: center; font-size: .85rem; background: var(--night); color: rgba(248, 241, 228, .85); }
footer a { color: var(--yellow); }

/* Actualités : grille d'affiches et pages d'articles */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.4rem; margin-bottom: 1.5rem; }
.news-card { display: flex; flex-direction: column; gap: .5rem; color: var(--ink); text-decoration: none; }
.news-card:hover .news-title { text-decoration: underline; text-underline-offset: .2em; }
.thumb { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 2px; background: var(--night); }
.thumb img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb.fit::before { content: ""; position: absolute; inset: -12%; background: var(--bg) center / cover; filter: blur(14px) brightness(.85); }
.thumb.fit img { object-fit: contain; }
.no-poster { background: linear-gradient(135deg, #2a2330, #3a2f3f); }
.news-title { font: 500 1rem/1.3 var(--sans); }
.news-card time { font-size: .82rem; letter-spacing: .04em; color: var(--link); }
.badge-video { position: absolute; right: .5rem; bottom: .5rem; padding: .15rem .55rem; border-radius: 2px; background: rgba(27, 22, 32, .85); color: #f8f1e4; font: 600 .68rem/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; }

.subpage { min-height: 70vh; }
.subpage h1 { margin-top: 0; font-size: clamp(2rem, 5vw, 3rem); }
.post { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.2rem; }
.post time { display: block; margin-bottom: 1rem; font-size: .9rem; letter-spacing: .04em; color: var(--link); }
.post img { max-width: 100%; height: auto; border-radius: 2px; margin: .5rem 0; }
.post figure { margin: 1rem 0; }
.post .poster { display: block; margin: 0 auto 1.5rem; max-height: 36rem; }
.post-body { overflow-wrap: anywhere; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 500; }
.post-nav a { color: var(--link); }
.post-nav a:last-child { text-align: right; }
.post .note { padding: .6rem .9rem; background: var(--alt); border-left: 3px solid var(--teal); }
.post-body h2 { font-size: 1.5rem; margin-top: 2rem; }
.post-body h2::after { display: none; }
.post-body ul { padding-left: 1.2rem; }

/* page d'archive plus large : les bannières Facebook sont en paysage */
.archive section { padding-inline: max(1.2rem, calc((100% - 72rem) / 2)); }
.archive .news-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }

/* Vidéos YouTube (chargées au clic) */
.videos h2 { margin-top: 2.5rem; }
.video-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.2rem; }
.video { margin: 0; }
.video-lite, .video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 2px; background: var(--night) center / cover no-repeat; cursor: pointer; position: relative; }
.video-frame { cursor: auto; }
.video-lite .play { position: absolute; inset: 0; margin: auto; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: rgba(27, 22, 32, .75); border: 1px solid rgba(248, 241, 228, .7); }
.video-lite .play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-left: 1rem solid #f8f1e4; border-top: .65rem solid transparent; border-bottom: .65rem solid transparent; }
.video-lite:hover .play, .video-lite:focus-visible .play { background: var(--red); border-color: var(--red); }
.video figcaption { margin-top: .5rem; font-size: .92rem; line-height: 1.4; }

/* Formulaire de contact */
.contact-form { display: grid; gap: 1rem; max-width: 36rem; }
.contact-form label { display: grid; gap: .3rem; font-weight: 500; font-size: .92rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { width: 100%; padding: .7rem .8rem; border: 1px solid rgba(27, 22, 32, .45); border-radius: 2px; background: var(--bg); color: var(--ink); font: inherit; }
@media (prefers-color-scheme: dark) { .contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { border-color: rgba(243, 234, 219, .4); } }
.contact-form input:focus-visible, .contact-form textarea:focus-visible, .video-tools input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.contact-form .consent { display: block; font-weight: 400; font-size: .88rem; }
.contact-form .consent input { margin-right: .5rem; }
.contact-form .pot { position: absolute; left: -9999px; }
.contact-form button { justify-self: start; }
#contact h3 { margin-top: 2.2rem; }

/* Page Vidéos : recherche et filtres */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.video-tools { display: grid; gap: .8rem; margin: 1.5rem 0; }
.video-tools input[type="search"] { width: 100%; max-width: 32rem; padding: .75rem 1rem; border: 1px solid rgba(27, 22, 32, .45); border-radius: 2px; background: var(--bg); color: var(--ink); font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .35rem 1rem; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink); font: 500 .85rem/1.4 var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.video-gallery .video[hidden] { display: none; }
.video-gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
