/* ==========================================================================
   Site public — Agouni N'teslent
   S'appuie sur les jetons de app.css (couleurs, police, motif).
   ========================================================================== */
body.site { background: var(--stone); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ------------------------------------------------------------------ En-tête */
.s-header { position: sticky; top: 0; z-index: 50; background: rgba(243,244,241,.9); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.s-header.scrolled { border-bottom-color: var(--line); }
.s-header .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.s-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.s-brand img { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); object-fit: contain; }
.s-brand strong { display: block; font-size: 1.02rem; line-height: 1.1; }
.s-brand > span > span { font-size: .75rem; color: var(--ink-3); display: block; }
.s-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.s-nav a { padding: 8px 11px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; }
.s-nav a:hover { color: var(--cedar); background: var(--olive-50); }
.s-nav .btn { margin-left: 8px; color: #fff; }
.s-burger { display: none; margin-left: auto; border: 0; background: var(--cedar); color: #fff; width: 42px; height: 42px; border-radius: 10px; font-size: 1rem; }
@media (max-width: 960px) {
  .s-burger { display: inline-grid; place-items: center; }
  .s-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); padding: 12px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
  .s-nav.open { display: flex; }
  .s-nav a { padding: 12px; }
  .s-nav .btn { margin: 8px 0 0; }
}

/* --------------------------------------------------------- Bandeau d'accueil */
.hero { position: relative; background: var(--cedar); color: #eef3ea; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; padding: clamp(56px, 9vw, 120px) 0 clamp(110px, 14vw, 190px); }
.hero-place { display: inline-flex; gap: 8px; align-items: center; color: var(--saffron); font-weight: 700; font-size: .92rem; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 7.5vw, 6.2rem); line-height: .95; letter-spacing: -.035em; font-weight: 800; margin: 0 0 22px; max-width: 12ch; }
.hero .slogan { font-size: clamp(1.05rem, 2vw, 1.35rem); color: #d6e1d2; max-width: 34ch; margin-bottom: 8px; }
.hero .desc { color: #b9c9b6; max-width: 60ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-cta .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hero-cta .btn-secondary:hover { background: rgba(255,255,255,.08); color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 46px; border-top: 1px solid rgba(255,255,255,.14); max-width: 820px; }
.hero-stats div { padding: 16px 18px 0 0; }
.hero-stats strong { display: block; font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: .85rem; color: #b9c9b6; }
.hero-mountains { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; width: 100%; height: clamp(90px, 13vw, 170px); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--motif) repeat-x center / 36px 18px; z-index: 3; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------------ Sections */
.s-section { padding: clamp(48px, 7vw, 88px) 0; }
.s-section.alt { background: var(--paper); border-block: 1px solid var(--line-2); }
.s-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.s-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.02em; margin: 0; max-width: 22ch; }
.s-head p { color: var(--ink-3); margin: 6px 0 0; max-width: 56ch; }
.s-head .more { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Personnalités */
.people { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: thin; }
.person-card { flex: 0 0 132px; scroll-snap-align: start; text-align: center; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; padding: 0; }
.portrait { width: 112px; height: 112px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; background: var(--olive-100); display: grid; place-items: center; color: var(--olive); font-size: 2rem; font-weight: 800; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--line); transition: box-shadow .2s; }
.person-card:hover .portrait, .person-card:focus-visible .portrait { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--saffron); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.person-card strong { display: block; font-size: .92rem; line-height: 1.2; }
.person-card > span:not(.portrait) { display: block; font-size: .8rem; color: var(--olive); font-weight: 600; margin-top: 2px; }
.people-label { font-weight: 700; color: var(--ink-2); margin: 18px 0 8px; }

/* Actualités */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.news-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; }
.news-card .img { aspect-ratio: 16/10; background: var(--olive-50); position: relative; overflow: hidden; }
.news-card .img:empty::before { content: ""; position: absolute; inset: 0; background: var(--motif) repeat center / 48px 24px; opacity: .14; }
.news-card .img:empty::after { content: "\f1ea"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; color: #b8c8a6; }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card time { font-size: .8rem; color: var(--ink-3); }
.news-card h3 { margin: 0; font-size: 1.12rem; }
.news-card p { color: var(--ink-2); margin: 0; font-size: .93rem; }
.news-card details summary { cursor: pointer; color: var(--olive); font-weight: 700; font-size: .88rem; margin-top: auto; }
.news-card details[open] summary { margin-bottom: 8px; }

/* Événements */
.events { display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 14px; }
.event-date { background: var(--cedar); color: #fff; border-radius: 12px; text-align: center; padding: 8px 4px; line-height: 1.1; }
.event-date strong { display: block; font-size: 1.7rem; font-weight: 800; }
.event-date span { font-size: .78rem; text-transform: lowercase; color: var(--saffron); font-weight: 700; }
.event h3 { margin: 0 0 4px; font-size: 1.05rem; }
.event p { margin: 0; color: var(--ink-3); font-size: .9rem; }

/* Galerie */
.gallery { columns: 4 220px; column-gap: 14px; }
.gallery button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative; break-inside: avoid; background: var(--line-2); }
.gallery img { width: 100%; display: block; transition: transform .35s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: .85rem; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgba(16,36,26,.75)); opacity: 0; transition: opacity .2s; }
.gallery button:hover figcaption, .gallery button:focus-visible figcaption { opacity: 1; }

/* Vidéos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.video-card { border: 0; padding: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.video-thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-l); overflow: hidden; background: var(--cedar-900); display: grid; place-items: center; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-thumb .play { position: absolute; width: 58px; height: 58px; border-radius: 50%; background: var(--saffron); color: var(--cedar-900); display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.video-card h3 { margin: 10px 0 0; font-size: 1rem; }

/* Comité */
.committee { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.member { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px 16px; text-align: center; }
.member .portrait { width: 96px; height: 96px; }
.member h3 { margin: 4px 0 2px; font-size: 1.02rem; }
.member .role { color: var(--olive); font-weight: 700; font-size: .88rem; }
.member p { font-size: .85rem; color: var(--ink-3); margin: 8px 0 0; }

/* Notifications */
.notify { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; background: var(--cedar); color: #e3ebe0; border-radius: 22px; padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; }
.notify::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: var(--motif) repeat-x center / 24px 12px; }
.notify h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin: 10px 0 10px; }
.notify p { color: #c3d1c0; }
.notify-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notify-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.notify-list a:hover { background: rgba(255,255,255,.13); }
.notify-list time { color: var(--saffron); font-size: .8rem; white-space: nowrap; }
@media (max-width: 820px) { .notify { grid-template-columns: 1fr; } }

/* Pied de page */
.s-footer { background: var(--cedar-900); color: #c3d1c0; padding: 54px 0 26px; position: relative; }
.s-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: var(--motif) repeat-x center / 24px 12px; }
.s-footer .grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.s-footer h3, .s-footer h4 { color: #fff; }
.s-footer a { color: #e3ebe0; text-decoration: none; }
.s-footer a:hover { color: var(--saffron); }
.s-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.s-social { display: flex; gap: 10px; margin-top: 14px; }
.s-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.s-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .s-footer .grid { grid-template-columns: 1fr; } }

/* Pages intérieures */
.page-head { background: var(--cedar); color: #fff; padding: 46px 0 52px; position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--motif) repeat-x center / 24px 12px; }
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; letter-spacing: -.02em; }
.page-head p { color: #c3d1c0; margin: 6px 0 0; }
.crumb { color: var(--saffron); text-decoration: none; font-weight: 700; font-size: .88rem; }

/* Visionneuse */
.viewer { border: 0; padding: 0; background: transparent; max-width: min(1100px, 96vw); width: 96vw; }
.viewer::backdrop { background: rgba(10,20,15,.9); }
.viewer img { max-width: 100%; max-height: 82vh; display: block; margin: 0 auto; border-radius: 10px; }
.viewer iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #000; }
.viewer .cap { color: #fff; text-align: center; margin-top: 10px; }
.viewer .x { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.2rem; cursor: pointer; }
.person-dialog { border: 0; border-radius: var(--radius-l); max-width: 460px; width: calc(100vw - 32px); padding: 28px; text-align: center; }
.person-dialog::backdrop { background: rgba(16,36,26,.55); }

/* Invitation aux notifications */
.notif-ask { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 420px; margin-left: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-2); padding: 18px; display: none; }
.notif-ask.show { display: block; animation: toast-in .25s ease; }
.notif-ask h3 { margin: 0 0 6px; font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.notif-ask p { font-size: .9rem; color: var(--ink-2); }
.notif-ask .help { font-size: .85rem; color: var(--ink-3); margin: 8px 0 0; }
