@font-face {
  font-family: 'Amarante'; src: url('../fonts/amarante-regular.woff2') format('woff2');
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-italic.woff2') format('woff2');
  font-style: italic; font-weight: 400; font-display: swap;
}
/* Charte Les Chahuteuses — recette. Logos provisoires extraits du PDF. */
html { box-sizing: border-box; }
:where(body, main, nav, section, article, footer, div, p, h1, h2, h3, ul, li, a, span, button, img, picture) { box-sizing: inherit; }
:where(body, p, h1, h2, h3, ul) { margin: 0; padding: 0; }
:root {
  --pourpre: #66033c;
  --rouge: #ff415b;
  --lavande: #d3c3ff;
  --gris: #2a2829;
  --blanc: #fff;
  --creme: #fffaf5;
  --encre: #390122;
  --font-h: 'Amarante', Georgia, serif;
  --font-italic: 'Instrument Serif', Georgia, serif;
  --font-b: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height: 94px;
  --page-max: min(1180px, calc(100% - 96px));
  color-scheme: light;
}
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { color: var(--gris); background: var(--creme); font: 1rem/1.7 var(--font-b); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-underline-offset: .24em; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid currentColor; outline-offset: 5px;
}
[hidden] { display: none !important; }
::selection { background: var(--lavande); color: var(--pourpre); }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 12px 22px; background: white; color: var(--pourpre); transform: translateY(-180%); border: 2px solid; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Une navigation constante et lisible sur tous les fonds. */
nav {
  position: sticky; top: 0; z-index: 100; min-height: 94px;
  padding: 7px max(32px, calc((100% - 1280px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  background: var(--pourpre); color: white; border-bottom: 1px solid #ffffff30;
}
nav.scrolled { box-shadow: 0 5px 25px #39012220; }
.nav-logo { display: block; flex-shrink: 0; line-height: 0; }
.nav-logo img { display: block; width: 210px; height: 69px; object-fit: contain; }
.nav-links { display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(14px, 1.8vw, 29px); list-style: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: white; font-size: .73rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--lavande); }
@supports (scroll-target-group: auto) and selector(:target-current) {
  .nav-links { scroll-target-group: auto; }
  .nav-links a:target-current { border-bottom-color: var(--lavande); }
}
.nav-links .nav-cta { background: var(--rouge); color: var(--encre); padding: 3px 19px; border: 0; border-radius: 40px; font-weight: 800; }
.nav-links .nav-cta:hover { background: var(--lavande); }
.nav-burger { display: none; background: transparent; color: white; border: 1px solid #ffffff80; border-radius: 50%; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; flex-shrink: 0; }
.nav-burger > span:not(.sr-only) { display: block; width: 20px; height: 2px; background: currentColor; }

/* Accueil : fond original Histoires de Q. */
#hero { position: relative; min-height: calc(100vh - var(--nav-height)); min-height: calc(100dvh - var(--nav-height)); padding: 95px 24px 110px; isolation: isolate; overflow: hidden; display: grid; place-items: center; text-align: center; color: white; background: var(--pourpre); }.hero-content { width: min(940px, 100%); }
.hero-kicker { display: inline-block; color: var(--lavande); font-size: .72rem; text-transform: uppercase; letter-spacing: .22em; margin-bottom: 24px; }
.hero-title { color: white; font: 400 clamp(2.55rem, 1rem + 4.4vw, 5rem)/1.15 var(--font-h); text-transform: uppercase; text-wrap: balance; letter-spacing: -.025em; }
.hero-sub { max-width: 740px; margin: 24px auto 32px; font: italic 400 clamp(1.3rem, 1rem + 1.2vw, 1.85rem)/1.35 var(--font-italic); text-wrap: balance; }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 25px; border-radius: 40px; text-decoration: none; font-size: .85rem; font-weight: 750; border: 1px solid transparent; transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-white { background: white; color: var(--pourpre); }
.btn-white:hover { background: var(--lavande); }
.btn-outline-w { border-color: #ffffffb3; color: white; }
.btn-outline-w:hover { background: var(--pourpre); }
.hero-scroll { position: absolute; bottom: 27px; left: 50%; transform: translateX(-50%); color: white; font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; text-align: center; }
.hero-scroll::after { content: ''; display: block; height: 36px; width: 1px; background: linear-gradient(to bottom, white, transparent); margin: 9px auto 0; }
@keyframes discover-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}
@media (prefers-reduced-motion: no-preference) {
  /* Un rappel de quatre secondes, puis un repère stable qui reste visible. */
  .hero-scroll { animation: discover-bounce 2s ease-in-out 2; }
  .hero-scroll:hover, .hero-scroll:focus-visible { animation-play-state: paused; }
}

section { padding: 96px 0; }
section > .reveal, .about-grid, .formats-grid, #agenda-root, .videos-grid, .videos-empty, .yt-cta, .insta-block, .benv-grid, .soutien-grid, .soutien-note, .footer-inner, .footer-bottom { width: var(--page-max); margin-inline: auto; }
.section-label, .event-label, .insta-kicker { font: italic 400 clamp(1.45rem, 1rem + 1.2vw, 1.9rem)/1.2 var(--font-italic); color: var(--pourpre); margin-bottom: 12px; }
.section-title { color: var(--pourpre); font: 400 clamp(2.15rem, 1rem + 3vw, 3.5rem)/1.15 var(--font-h); text-transform: uppercase; text-wrap: balance; }
.section-divider { width: 64px; height: 3px; background: var(--rouge); margin: 24px 0 36px; }
.reveal { opacity: 1; transform: none; }
.max-w { max-width: 1180px; }

/* Association : l'espace et la typographie font respirer les contenus. */
#about { background: var(--creme); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; }
.about-text p { margin-bottom: 18px; line-height: 1.85; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value-card { border-top: 1px solid #66033c40; padding: 20px 12px 14px 0; }
.value-icon { font-size: 1.6rem; display: block; margin-bottom: 12px; }
.value-icon img { display: block; width: auto; height: 46px; object-fit: contain; max-width: 140px; }
.value-title { color: var(--pourpre); font-weight: 750; font-size: .94rem; margin-bottom: 6px; }
.value-desc { font-size: .83rem; line-height: 1.65; }

/* Formats et bénévolat : lavande, encre pourpre, accents rouges. */
#formats, #benevoles { background: var(--lavande); }
.formats-intro { max-width: 690px; margin-bottom: 35px; color: var(--pourpre); }
.formats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 24px; }
.format-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(26px, 4vw, 48px); border: 1px solid #66033c50; background: #ffffff45; border-radius: 4px 36px 4px 4px; color: var(--pourpre); }
.format-emoji { display: flex; align-items: center; min-height: 100px; font-size: 2.4rem; margin-bottom: 24px; }
.format-logo { display: block; width: 120px; height: 100px; object-fit: contain; object-position: left center; margin-bottom: 24px; }
.format-card .format-link { margin-top: auto; }
.format-badge { display: inline-block; font-size: .65rem; text-transform: uppercase; font-weight: 750; letter-spacing: .12em; padding: 6px 12px; border: 1px solid currentColor; border-radius: 30px; margin-bottom: 20px; }
.format-title { font: 400 clamp(1.5rem, 1rem + 1.7vw, 2.1rem)/1.3 var(--font-h); margin-bottom: 20px; }
.format-desc { max-width: 78ch; margin-bottom: 18px; font-size: .95rem; line-height: 1.8; white-space: pre-line; }
.format-link { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-size: .85rem; font-weight: 750; text-decoration: underline; }
.format-link:hover { text-decoration-thickness: 2px; }

/* Agenda : l'encre très sombre maintient le contraste sur le rouge de la charte. */
#evenement { color: var(--encre); background: var(--rouge); }
#agenda-root { display: grid; gap: 24px; }
.agenda-event { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 32px; border: 1px solid #39012245; border-radius: 8px; }
.agenda-event > .event-title { margin: 0; }
.agenda-event .event-desc { margin-bottom: 0; }
.agenda-event .event-details { margin-bottom: 20px; }
.agenda-event > .event-actions { padding: 0; margin: 0; background: none; color: inherit; }
.agenda-event > .event-photo { width: 100%; margin: 0; }
@media (min-width: 701px) {
  .agenda-event:has(> .event-photo) { grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr); column-gap: 48px; }
  .agenda-event > .event-photo { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .agenda-event > :not(.event-photo) { grid-column: 1; }
}
@media (max-width: 700px) {
  .agenda-event { padding: 22px; }
}
.agenda-heading { margin-bottom: 38px; }
.agenda-heading .section-title { color: var(--encre); }
.agenda-heading .section-divider { background: var(--encre); margin-bottom: 0; }
.event-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr); align-items: center; gap: 60px; }
.event-label { color: var(--encre); }
.event-title { font: 400 clamp(1.65rem, 1rem + 1.6vw, 2.6rem)/1.3 var(--font-h); font-synthesis: none; text-wrap: balance; margin-bottom: 24px; overflow-wrap: break-word; }
.event-details { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.event-chip { display: inline-flex; align-items: center; border: 1px solid #39012250; font: 500 .875rem/1.5 var(--font-b); padding: 7px 12px; border-radius: 30px; }
.event-desc, .event-empty { max-width: 65ch; font: 400 1.0625rem/1.75 var(--font-b); margin-bottom: 26px; white-space: pre-line; text-wrap: pretty; }
.btn-event { background: var(--encre); color: white; }
.btn-event:hover { background: var(--pourpre); }
.event-photo { width: 100%; max-height: 440px; object-fit: contain; border-radius: 8px; display: block; }
.event-visual { font-size: 8rem; text-align: center; }
.event-more { border-top: 1px solid #39012250; padding-top: 35px; margin-top: 50px; }
.event-more-title { font: italic 400 1.8rem/1.2 var(--font-italic); margin-bottom: 24px; }
.event-card { padding: 32px; margin-bottom: 20px; border: 1px solid #39012245; border-radius: 6px; }
.event-card .event-title { font-size: clamp(1.5rem, 1rem + 1.7vw, 2.1rem); }
.event-card-img { display: block; max-width: 100%; max-height: 360px; object-fit: contain; margin-bottom: 25px; border-radius: 4px; }

/* Vidéos : une galerie stable, sans lecteur lourd au chargement. */
#videos { background: var(--pourpre); color: white; }
.videos-label, .insta-kicker { color: var(--lavande); }
.videos-title, .insta-title { color: white; }
.videos-intro { max-width: 690px; margin-bottom: 36px; color: white; }
.videos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.video-card { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; background: var(--encre); color: white; }
.video-card.featured { grid-column: span 2; grid-row: span 2; }
.video-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s; }
.video-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, #000d); pointer-events: none; }
.video-card:hover img { transform: scale(1.025); }
.video-play { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--rouge); color: var(--encre); border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; }
.video-title { position: absolute; z-index: 1; left: 15px; bottom: 13px; right: 15px; font-size: .81rem; line-height: 1.4; font-weight: 650; }
.video-card.featured .video-title { font-size: 1.05rem; }
.videos-empty { display: none; border: 1px solid #ffffff65; padding: 22px; }
.videos-empty.visible { display: block; }
.yt-cta { margin-top: 32px; }
.btn-yt { display: inline-flex; align-items: center; min-height: 48px; padding: 11px 23px; border: 1px solid #ffffff80; border-radius: 30px; color: white; text-decoration: none; font-size: .85rem; font-weight: 650; }
.btn-yt:hover { color: var(--pourpre); background: white; }
.insta-block { border-top: 1px solid #ffffff40; margin-top: 64px; padding-top: 35px; }
.insta-kicker { margin-bottom: 7px; }
.insta-title { font: 400 1.8rem/1.3 var(--font-h); margin-bottom: 18px; }
.insta-panel { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.insta-copy { max-width: 650px; font-size: .9rem; }
.insta-cta { flex-shrink: 0; color: var(--lavande); font-size: .86rem; font-weight: 700; padding-block: 12px; }

.benv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.benv-text p { margin-bottom: 20px; color: var(--pourpre); }
.benv-lead { font-weight: 750; }
.btn-benv { color: var(--encre); background: var(--rouge); margin-top: 6px; }
.btn-benv:hover { background: white; }
.benv-missions { display: grid; gap: 13px; }
.mission { display: flex; align-items: start; gap: 16px; padding: 19px 22px; border: 1px solid #66033c40; border-radius: 5px; color: var(--pourpre); }
.mission-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.mission-text strong { display: block; font-size: .89rem; margin-bottom: 4px; }
.mission-text span { display: block; font-size: .8rem; }

/* Deux façons de soutenir, avec des démarches externes clairement identifiées. */
#soutenir { color: white; background: var(--pourpre); border-bottom: 1px solid #ffffff40; }
.soutien-label { color: var(--lavande); }
.soutien-title { color: white; }
.soutien-intro { max-width: 70ch; margin-bottom: 38px; line-height: 1.8; }
.soutien-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.soutien-card { display: flex; align-items: flex-start; flex-direction: column; color: var(--pourpre); background: var(--creme); padding: clamp(26px, 3vw, 42px); border-radius: 4px 32px 4px 4px; }
.soutien-card-don { background: var(--lavande); }
.soutien-kicker { font: italic 400 1.5rem/1.25 var(--font-italic); margin-bottom: 14px; }
.soutien-card h3 { font: 400 clamp(1.5rem, 1rem + 1vw, 1.9rem)/1.3 var(--font-h); margin-bottom: 20px; text-wrap: balance; }
.soutien-card > p:not(.soutien-kicker) { font-size: .95rem; line-height: 1.8; margin-bottom: 28px; }
.btn-soutien { color: white; background: var(--pourpre); margin-top: auto; }
.btn-soutien:hover { background: var(--encre); }
.soutien-note { color: white; font-size: .8rem; margin-top: 24px; }

footer { background: var(--pourpre); color: white; padding: 48px 0 22px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 32px; }
.footer-brand img { width: 240px; height: auto; object-fit: contain; display: block; margin: 0 0 24px; }
.footer-brand p { max-width: 350px; font-size: .82rem; }
.footer-col h3 { font: 400 1.1rem/1.3 var(--font-h); margin-bottom: 17px; }
.footer-col a { display: block; font-size: .83rem; text-decoration: none; padding: 5px 0; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--lavande); text-decoration: underline; }
.footer-social { display: flex; gap: 12px; }
.social-btn { display: grid; place-items: center; flex: none; width: 48px; height: 48px; color: white; background: #ffffff0a; text-decoration: none; border: 1px solid #ffffff80; border-radius: 50%; transition: color .2s, background-color .2s, border-color .2s; }
.social-btn svg { display: block; width: 24px; height: 24px; pointer-events: none; }
.social-btn:hover, .social-btn:focus-visible { color: var(--pourpre); background: var(--lavande); border-color: var(--lavande); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid #ffffff40; }
.footer-copy { font-size: .72rem; }
.footer-admin-row { width: var(--page-max); margin: 20px auto 0; }
.footer-admin { display: inline-flex; align-items: center; min-height: 44px; font-size: .73rem; color: white; }

@media (max-width: 1250px) {
  nav { gap: 20px; padding-inline: 24px; }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: .66rem; }
}
@media (max-width: 1100px) {
  :root { --page-max: calc(100% - 56px); --nav-height: 82px; }
  .about-grid, .benv-grid { gap: 36px; }
  nav { min-height: 82px; }
  .nav-logo img { width: 170px; height: 56px; }
  .js .nav-burger { display: flex; }
  .nav-links { display: flex; position: absolute; inset: 82px 0 auto; background: var(--pourpre); padding: 20px 28px 28px; flex-direction: column; align-items: stretch; gap: 3px; max-height: calc(100svh - 82px); overflow-y: auto; border-bottom: 1px solid var(--lavande); }
  .js .nav-links { display: none; }
  .js .nav-links.open { display: flex; }
  :root:not(.js) nav { flex-wrap: wrap; }
  :root:not(.js) .nav-links { position: static; width: 100%; padding: 8px 0; max-height: none; }
  .nav-links a { font-size: .83rem; display: flex; padding: 7px 0; }
  .nav-links .nav-cta { justify-content: center; margin-top: 10px; }
  #hero { padding: 85px 28px 105px; }
  .event-inner { gap: 30px; grid-template-columns: minmax(0, 1fr) minmax(180px, .5fr); }
  .insta-panel { align-items: flex-start; flex-direction: column; gap: 10px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr; }
}
@media (max-width: 700px) {
  :root { --page-max: calc(100% - 40px); }
  html { scroll-padding-top: 95px; }
  nav { padding-inline: 20px; }
  #hero { padding: 70px 20px 105px; }  .hero-title { font-size: clamp(2rem, 1rem + 4vw, 3.3rem); }
  .hero-sub { margin-block: 22px 27px; font-size: 1.45rem; }
  .hero-kicker { font-size: .6rem; margin-bottom: 20px; letter-spacing: .14em; }
  .hero-btns { gap: 10px; }
  .btn { padding: 12px 18px; font-size: .8rem; }
  section { padding-block: 62px; }
  .section-title { font-size: clamp(1.85rem, 1rem + 3.4vw, 2.6rem); }
  .section-divider { margin-bottom: 28px; }
  .about-grid, .benv-grid, .event-inner { grid-template-columns: 1fr; gap: 30px; }
  .soutien-grid { grid-template-columns: 1fr; }
  .about-values { gap: 16px; }
  .about-text p { font-size: .95rem; }
  .value-card { padding-right: 0; }
  .event-title { font-size: clamp(1.65rem, 1.2rem + 2vw, 2rem); }
  .event-photo { max-height: 350px; width: auto; margin-inline: auto; }
  .event-visual { display: none; }
  .event-card { padding: 22px; }
  .videos-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .video-card.featured { grid-column: span 2; grid-row: auto; }
  .video-title { font-size: .72rem; left: 10px; right: 10px; bottom: 9px; }
  .video-play { width: 38px; height: 38px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { display: block; }
  .footer-copy { display: block; margin-bottom: 6px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
@media (max-width: 380px) {
  .about-values, .videos-grid { grid-template-columns: 1fr; }
  .video-card.featured { grid-column: auto; }
  .hero-btns { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :where(.btn, .video-card img, .reveal) { animation: none !important; transition: none !important; }
}
@media print {
  nav, .hero-scroll, .hero-btns, .footer-admin-row { display: none; }
  section, footer, #hero { color: black; background: white; padding: 24px 0; min-height: auto; }  .hero-title, .hero-sub { color: black; }
}

/* Authentic HelloAsso media: preserve the complete artwork. */
.soutien-kicker-logo { display: flex; align-items: center; gap: 12px; }
.soutien-kicker-logo img { border-radius: 50%; flex-shrink: 0; }

/* Wide banners need the full card width to remain legible. */
.agenda-event.agenda-event-panoramic { grid-template-columns: minmax(0, 1fr); }
.agenda-event-panoramic > .event-photo { grid-column: 1 / -1; grid-row: auto; width: 100%; height: auto; max-height: none; align-self: start; }
.agenda-event-panoramic > .event-copy { max-width: 72ch; }

/* Rétablissement du fond original de l’accueil. */
.hero-bg, .hero-overlay { position: absolute; inset: 0; z-index: -1; }
.hero-bg { background: url('../img/back_image.webp') center / cover no-repeat; }
.hero-overlay { background: linear-gradient(100deg, #390122c9, #66033c91 65%, #390122b8); }
@media (max-width: 700px) { .hero-bg { background-image: url('../img/back_image-mobile.webp'); } }
@media print { .hero-bg, .hero-overlay { display: none; } }
