/* La Blancherie — site vitrine. Aucune bibliothèque ni compilation nécessaire. */
:root {
  --cream: #FBF6E9; --paper: #fff; --ink: #352539; --ink-soft: #5E4C62;
  --pink: #ED1A74; --pink-deep: #C70F5E; --orange: #F89200; --orange-ink: #A24C00;
  --green: #86D325; --green-deep: #69B015; --violet: #9B3D9E; --violet-deep: #7C2E80;
  --night: #3A1E45; --shadow: 0 12px 24px -14px rgba(53,37,57,.32);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Nunito', 'Trebuchet MS', sans-serif; font-weight: 600; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: 'Fredoka', 'Trebuchet MS', sans-serif; font-weight: 600; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--violet-deep); outline-offset: 5px; }
img, svg { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(100% - 64px, 1088px); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 20px; border-radius: 24px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.site-header { padding-block: 25px 10px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img { width: 49px; height: 66px; object-fit: contain; }
.brand-text { font-family: 'Fredoka', 'Trebuchet MS', sans-serif; font-size: 20px; font-weight: 600; line-height: 1.08; color: var(--violet-deep); }
.brand-text strong { font-weight: 600; color: var(--pink-deep); }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 19px; background: white; border-radius: 100px; font-size: 14px; font-weight: 800; box-shadow: var(--shadow); transition: transform .2s ease; }
.nav a:hover { transform: translateY(-2px); color: var(--pink-deep); }
.nav a.contact-link { background: var(--pink-deep); color: white; }
.hero { position: relative; isolation: isolate; padding-block: 58px 76px; }
.hero-grid { display: grid; grid-template-columns: 1.17fr .83fr; gap: 28px; align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--violet-deep); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; }
.hero h1 { font-size: clamp(46px, 5.75vw, 72px); line-height: 1.09; letter-spacing: -.02em; }
.hero h1 .pink-word { display: inline-block; color: white; background: var(--pink); padding: 0 13px 5px; border-radius: 50px 50px 50px 14px; transform: rotate(-2deg); }
.hero h1 .orange-line { display: block; color: var(--orange-ink); margin-top: 5px; }
.hero-intro { font-size: 19px; color: var(--ink-soft); max-width: 39ch; margin-top: 25px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 23px; border-radius: 100px; font-family: 'Fredoka', 'Trebuchet MS', sans-serif; font-size: 16px; font-weight: 500; text-align: center; box-shadow: var(--shadow), inset 0 3px 4px rgba(255,255,255,.2); transition: transform .2s ease; }
.pill:hover { transform: translateY(-3px); }
.pill-pink { background: var(--pink-deep); color: white; }
.pill-white { background: white; color: var(--ink); }
.hero-art { position: relative; isolation: isolate; min-width: 0; }
.hero-art svg { width: 100%; height: auto; overflow: visible; position: relative; z-index: 1; }
/* Animations des personnages et des étoiles conservées du site d’origine.
   CSS uniquement ; la préférence « réduire les animations » est respectée. */
.hero-art .fig { animation: hop 2.6s cubic-bezier(.34,1.56,.64,1) infinite; }
.hero-art .fig.f2 { animation-delay: .3s; }
.hero-art .fig.f3 { animation-delay: .6s; }
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-art .twinkle { animation: tw 2.2s ease-in-out infinite; }
.hero-art .twinkle.t2 { animation-delay: .5s; }
.hero-art .twinkle.t3 { animation-delay: 1s; }
@keyframes tw {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.art-blob { position: absolute; z-index: -1; pointer-events: none; border-radius: 46% 54% 60% 40% / 46% 42% 58% 54%; }
.art-blob.green { width: 68%; height: 82%; background: var(--green); opacity: .22; left: -6%; top: 1%; transform: rotate(-16deg); }
.art-blob.violet { width: 56%; height: 64%; background: var(--violet); opacity: .14; right: 6%; bottom: -1%; transform: rotate(16deg); }
.art-blob.pink { width: 39%; height: 46%; background: var(--pink); opacity: .11; left: 32%; bottom: -8%; }
.section { padding-bottom: 78px; }
.section-heading { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 24px; row-gap: 8px; margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(32px, 3.5vw, 43px); }
.section-heading p { color: var(--ink-soft); font-size: 17px; }
.event { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 172px minmax(0,1fr); gap: 36px; align-items: center; padding: 40px 46px; border-radius: 44px; background: var(--night); color: white; box-shadow: 0 25px 40px -29px rgba(53,37,57,.5); }
/* Les décors sont hors de la grille : ils ne créent aucun espace vide. */
.event::before, .event::after { content: ''; position: absolute; z-index: -1; pointer-events: none; border-radius: 45% 55% 60% 40%; }
.event::before { width: 260px; height: 240px; right: -90px; top: -115px; background: var(--orange); opacity: .22; transform: rotate(30deg); }
.event::after { width: 220px; height: 170px; left: -80px; bottom: -100px; background: var(--violet); opacity: .42; }
.event-date { width: 158px; height: 158px; border-radius: 50%; background: var(--orange); color: #3D2203; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Fredoka', 'Trebuchet MS', sans-serif; transform: rotate(-6deg); box-shadow: inset 0 5px 8px rgba(255,255,255,.3), inset 0 -9px 14px rgba(0,0,0,.1), 0 14px 22px -12px rgba(0,0,0,.3); }
.event-date .day { font-size: 68px; font-weight: 600; line-height: .95; }
.event-date .month { font-size: 19px; letter-spacing: .1em; line-height: 1.4; }
.event-date .year { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 13px; }
.tag { display: inline-block; padding: 4px 13px; border-radius: 100px; color: #F1DCEC; background: rgba(255,255,255,.12); font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.event h3 { font-size: clamp(31px, 3.5vw, 44px); margin-bottom: 13px; }
.event h3 span { color: #FFAD36; }
.event-intro { font-size: 17px; color: #F2E8F3; max-width: 47ch; }
.event-meta { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 18px; }
.event-meta p { display: flex; align-items: flex-start; gap: 9px; color: white; font-size: 15px; font-weight: 800; }
.event-meta svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; }
.event-note { margin-top: 14px; color: #EAD8ED; font-size: 14px; }
.association-grid { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 58px; }
.scene { width: 100%; max-width: 330px; aspect-ratio: 1 / .94; position: relative; overflow: hidden; background: var(--orange); border-radius: 44% 56% 47% 53% / 52% 38% 62% 48%; box-shadow: 0 24px 35px -28px rgba(53,37,57,.45); transform: rotate(-3deg); }
.scene svg { width: 100%; height: 100%; transform: rotate(3deg); }
.association-copy h2 { font-size: clamp(32px, 3.5vw, 43px); margin-bottom: 18px; }
.association-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 17px; max-width: 55ch; }
.association-copy > p:not(.eyebrow) + p { margin-top: 13px; }
.association-copy > p strong { color: var(--ink); font-weight: 800; }
.contact-section { padding: 0; background: var(--violet-deep); color: white; border-radius: 52px 52px 0 0; }
.contact-inner { display: grid; grid-template-columns: 1fr .86fr; gap: 52px; align-items: center; padding-block: 44px 36px; }
.contact-section h2 { font-size: clamp(34px, 4vw, 47px); margin-bottom: 13px; }
.contact-intro { font-size: 17px; max-width: 42ch; color: #F5E9F5; }
.contact-card { border: 1px solid rgba(255,255,255,.48); background: rgba(255,255,255,.09); border-radius: 25px; padding: 24px; }
.contact-card .label { display: block; color: white; font-family: 'Fredoka', 'Trebuchet MS', sans-serif; font-size: 21px; margin-bottom: 10px; }
.contact-email { display: inline-block; color: white; text-decoration: underline; text-decoration-color: #F3B4D0; text-underline-offset: 5px; font-size: clamp(17px,2vw,21px); font-weight: 800; overflow-wrap: anywhere; }
.contact-email:hover { color: #FFE6B3; }
.site-footer { background: var(--violet-deep); color: #EFE0F0; padding-block: 0 25px; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px 26px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 20px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: white; text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible, .contact-section a:focus-visible { outline-color: white; }

/* Halloween : toute la carte est un lien, ouvrant l'affiche dans une fenêtre. */
.event { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.event:hover { transform: translateY(-3px); box-shadow: 0 21px 38px -25px rgba(27,6,37,.65); }
.event-open { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.event:focus-within { outline: 4px solid var(--orange); outline-offset: 5px; }
.event-cta { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 9px 17px; border-radius: 100px; color: #3A1E45; background: #FFCF76; font-family: 'Fredoka', 'Trebuchet MS', sans-serif; font-size: 16px; font-weight: 600; }
.event-cta > span { font-size: 21px; line-height: 1; }
.flyer-dialog { width: min(710px, calc(100% - 22px)); max-width: 710px; max-height: calc(100dvh - 24px); max-height: calc(100vh - 24px); margin: auto; padding: 0; overflow-y: auto; border: 0; border-radius: 22px; background: #FFFBF6; box-shadow: 0 25px 85px rgba(0,0,0,.45); color: var(--ink); }
@supports (height: 100dvh) { .flyer-dialog { max-height: calc(100dvh - 24px); } }
.flyer-dialog::backdrop { background: rgba(22, 10, 36, .83); backdrop-filter: blur(5px); }
/* Le défilement doit se faire sur <dialog> : overflow:hidden sur son contenu
   empêchait la barre « Fermer » de rester visible quand on scrollait le flyer. */
.flyer-dialog-inner { overflow: visible; }
.flyer-dialog-bar { z-index: 1; position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 54px; padding: 8px 12px 8px 20px; background: #FFFBF6; }
.flyer-dialog-bar h2 { font-size: clamp(16px, 2.5vw, 22px); }
.flyer-dialog-bar button { flex-shrink: 0; }
.flyer-close { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 14px; border: 0; border-radius: 40px; background: var(--pink-deep); color: white; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 17px; }
.flyer-close:hover { background: var(--violet-deep); }
.flyer-close:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.flyer-full-image { display: block; width: 100%; height: auto; background: white; }
@media (max-width: 440px) { .flyer-dialog { border-radius: 14px; }  .flyer-dialog-bar { padding-left: 12px; gap: 8px; } .flyer-close { padding-inline: 11px; font-size: 19px; } .flyer-close span { font-size: 13px; }  }

@media (min-width: 1300px) { .hero { padding-block: 60px 82px; } }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .hero-grid { grid-template-columns: 1.3fr .7fr; gap: 18px; }
  .hero h1 { font-size: clamp(44px, 6.4vw, 60px); }
  .hero-intro { font-size: 18px; }
  .nav a { padding-inline: 14px; }
  .event { gap: 24px; grid-template-columns: 144px minmax(0,1fr); padding: 35px 30px; }
  .event-date { width: 138px; height: 138px; }
  .event-date .day { font-size: 60px; }
  .association-grid { gap: 30px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-top: 18px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .brand img { width: 42px; height: 57px; }
  .brand-text { font-size: 20px; }
  .nav { width: 100%; gap: 8px; }
  .nav a { flex: 1; padding: 10px 12px; font-size: 13px; white-space: nowrap; }
  .hero { padding-block: 32px 45px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .eyebrow { font-size: 11px; letter-spacing: .095em; margin-bottom: 17px; }
  .hero h1 { font-size: clamp(40px, 10.9vw, 60px); }
  .hero-intro { font-size: 18px; margin-top: 22px; max-width: 40ch; }
  .hero-art { width: 235px; max-width: 70%; justify-self: center; }
  .actions { gap: 9px; margin-top: 23px; }
  .pill { font-size: 15px; padding: 12px 19px; }
  .section { padding-bottom: 48px; }
  .section-heading { margin-bottom: 19px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading p { font-size: 16px; }
  .event { grid-template-columns: 1fr; gap: 22px; padding: 29px 24px; border-radius: 32px; }
  .event-date { width: 110px; height: 110px; }
  .event-date .day { font-size: 48px; }
  .event-date .month { font-size: 15px; }
  .event-date .year { font-size: 11px; }
  .event h3 { font-size: 32px; max-width: 16ch; }
  .event-intro { font-size: 16px; }
  .event-meta p { font-size: 14px; }
  .event-note { font-size: 13px; }
  .association-grid { grid-template-columns: 1fr; gap: 24px; }
  .scene { display: none; }
  .association-copy h2 { font-size: 33px; }
  .association-copy > p:not(.eyebrow) { font-size: 16px; }
  .contact-section { border-radius: 34px 34px 0 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 23px; padding-block: 34px 28px; }
  .contact-section h2 { font-size: 37px; }
  .contact-card { padding: 20px; }
  .footer-inner { align-items: flex-start; gap: 5px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: 36px; }
  .hero h1 .pink-word { padding-inline: 10px; }
  .nav { gap: 5px; }
  .nav a { padding-inline: 9px; font-size: 12px; }
  .event { padding-inline: 21px; }
  .event h3 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { color: #222; background: white; font-size: 11pt; }
  .skip, .nav, .actions, .hero-art, .scene, .footer-inner > a, .event-cta { display: none; }
  .wrap { width: 100%; }
  .site-header { padding: 0 0 20px; }
  .hero, .section { padding: 0 0 24px; }
  .hero-grid, .association-grid, .contact-inner { display: block; }
  .hero h1 { font-size: 32pt; }
  .hero h1 .pink-word, .hero h1 .orange-line { background: white; color: #222; transform: none; }
  .event { color: #222; background: white; border: 1px solid #999; padding: 20px; break-inside: avoid; }
  .event p, .event h3 span, .tag { color: #222; }
  .contact-section, .site-footer { color: #222; background: white; }
  .contact-section p, .contact-card .label, .contact-email { color: #222; }
  .contact-inner { padding: 20px 0; }
  .contact-card { border: 1px solid #999; margin-top: 15px; }
}

/* État sans événement : conservé pour la prochaine mise à jour statique. */
.event-empty { display: block; }
