/* ==========================================================================
   Passe-Montagne — feuille de style du site
   Couleurs inspirées de l'affiche Tribulations, contours noirs façon dessin.
   ========================================================================== */

@font-face {
  font-family: 'Bagel Fat One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/bagel-fat-one-latin-400-normal.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: 'Bagel Fat One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/bagel-fat-one-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1D1B22;
  --paper: #FFF8EE;
  --white: #FFFFFF;
  /* Couleurs de l'affiche Tribulations */
  --pink: #F097BE;
  --orange: #ED6E34;
  --blue: #2268B1;
  --yellow: #FABB34;
  --green: #1E8A5F;
  /* Déclinaisons pour la lisibilité (texte, fonds clairs) */
  --pink-link: #2268B1;
  --green-dark: #1E8A5F;
  --sky: #D3E2F3;
  --pink-soft: #FBE4EE;
  --green-soft: #DCEEE6;
  --blue-soft: #E3EDF8;
  --yellow-soft: #FEF1D1;
  --grey: #5E5966;
  --line: 2px solid var(--ink);
  --radius: 18px;
  --display: 'Bagel Fat One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --text: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: var(--paper); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.disp { font-family: var(--display); font-weight: 400; letter-spacing: .5px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 900px; }
.center-text { text-align: center; align-items: center; margin: 0 auto; }
.small { font-size: 14px; }
.muted-strong { font-weight: 600; }

/* Titres */
.h-hero { font-size: clamp(44px, 7vw, 84px); line-height: .98; }
.h-big { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; }
.h-mid { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; }
.h-small { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; }
.kicker { font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; color: var(--blue); }
.kicker-yellow { color: var(--yellow); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: .8em; }
.prose ul { margin: 0; padding-left: 1.2em; }
.prose-legal { font-size: 16px; }
.prose-legal p + p { margin-top: 1.2em; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: var(--line);
  font: 800 16px/1.1 var(--text); text-decoration: none; cursor: pointer; text-align: center;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-pink { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.btn-pink:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }
.more { font-weight: 800; }

/* En-tête */
.site-header { background: var(--paper); position: relative; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.logo img { height: 60px; width: auto; }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.main-nav a:hover { color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-header .header-cta { color: var(--ink); }
.site-header .header-cta:hover { color: var(--white); }
.mobile-menu { display: none; margin-left: auto; }
.mobile-menu summary {
  list-style: none; cursor: pointer; width: 48px; height: 48px; border: var(--line); border-radius: 12px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: var(--white);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { width: 22px; height: 3px; background: var(--ink); border-radius: 2px; }
.mobile-menu nav {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: var(--line);
  display: flex; flex-direction: column; padding: 12px 24px 24px; gap: 4px;
}
.mobile-menu nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; padding: 12px 0; border-bottom: 1px solid #E6DCCD; }
.mobile-menu nav .btn { margin-top: 12px; color: var(--ink); }
@media (max-width: 1140px) {
  .main-nav, .header-cta { display: none; }
  .mobile-menu { display: block; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 80px) 0; }
.section-sm { padding: clamp(40px, 6vw, 56px) 0; }
.band { }
.band-sky { background: var(--sky); }
.band-yellow { background: var(--yellow); }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-sky-soft { background: var(--blue-soft); }
.band-yellow-soft { background: var(--yellow-soft); }
.band-pink-soft { background: var(--pink-soft); }
.page-head { padding: clamp(48px, 7vw, 72px) 0; }
.page-head:not([class*="band-"]) { padding-bottom: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section-head .more, .band-sky .more { color: var(--ink); }
.crumbs { font-size: 15px; }
.crumbs a { color: var(--ink); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 72px) 0 clamp(40px, 6vw, 64px); }
.hero-pink { background: var(--pink-soft); }
.hero-green { background: var(--green-soft); }
.hero-row { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-visual { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.hero-title { font-size: clamp(36px, 10.4vw, 104px); line-height: .95; overflow-wrap: anywhere; }
@media (min-width: 601px) { .hero-title { overflow-wrap: normal; } }
.hero-date { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.date-pill { align-self: flex-start; background: var(--pink); color: var(--ink); border-radius: 999px; padding: 10px 24px; font-weight: 800; font-size: clamp(18px, 2vw, 22px); }
.notice { align-self: flex-start; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 8px 16px; font-weight: 700; }
.countdown { display: inline-flex; align-self: flex-start; align-items: baseline; gap: 10px; background: var(--ink); color: var(--paper); border-radius: 16px; padding: 12px 22px; font-size: 15px; }
.countdown .disp { font-size: 40px; color: var(--yellow); }
.poster { width: 100%; max-width: 420px; border-radius: 14px; }
.tilt-right { transform: rotate(2deg); box-shadow: 12px 12px 0 var(--yellow); }
.tilt-left { transform: rotate(-2deg); box-shadow: -12px 12px 0 var(--sky); }
.framed { width: 100%; border-radius: var(--radius); }
.framed.square { aspect-ratio: 1 / 1; object-fit: cover; }
.shadow-yellow { box-shadow: 12px 12px 0 var(--yellow); }
.shadow-green { box-shadow: 10px 10px 0 var(--green); }
.bunting { display: block; width: 100%; height: 44px; }

/* Deux colonnes */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split-main { flex: 999 1 520px; min-width: 0; }
.split-side { flex: 1 1 300px; min-width: 0; }
.split-reverse { align-items: center; }
.split-reverse .split-side { flex: 1 1 420px; }
.stats { display: grid; gap: 12px; }
.stat { border: var(--line); border-radius: 16px; padding: 18px 22px; background: var(--white); }
.stat-value { font-size: 34px; line-height: 1.2; }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.cards-wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--paper); border: var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-white { background: var(--white); }
.card-img { width: 100%; height: 240px; object-fit: cover; }
.card-img-top { object-position: top; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card-body h3 { font-size: 30px; line-height: 1.1; }
.card-text { font-size: 16px; line-height: 1.55; flex-grow: 1; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--white); }
.duo img { width: 100%; height: 240px; object-fit: cover; }
.badge { align-self: flex-start; font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.badge-pink { background: var(--pink); color: var(--ink); }
.badge-ink { background: var(--ink); color: var(--paper); }
.badge-green { background: var(--green-dark); color: var(--white); }
.badge-grey { background: var(--grey); color: var(--white); }
.badge-yellow { background: var(--yellow); border: var(--line); color: var(--ink); }

.involve-card { background: var(--paper); border: var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.band-yellow .involve-card { background: var(--paper); }
.involve-img { width: 100%; height: 160px; object-fit: cover; }
.involve-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.involve-body h3 { font-size: 28px; line-height: 1.1; }
.involve-body .btn { align-self: flex-start; }

/* Photos */
.photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.strip-img { width: 100%; height: 260px; object-fit: cover; border-radius: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: 14px; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { font-size: 14px; }
.gallery-dark img { background: var(--white); }

/* Infos et programme */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.info { border: var(--line); border-radius: 16px; padding: 20px; background: var(--white); display: flex; flex-direction: column; gap: 6px; }
.info-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blue); }
.info-value { font-size: 20px; font-weight: 800; color: var(--ink); }
.info-value-sm { font-size: 17px; font-weight: 600; }
.info-note { font-size: 15px; }
.programme { display: flex; flex-direction: column; gap: 16px; }
.prog-item { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; background: var(--paper); border: var(--line); border-radius: var(--radius); padding: 24px 28px; }
.prog-time { flex: 0 0 160px; display: flex; flex-direction: column; gap: 2px; }
.prog-time .disp { font-size: 24px; line-height: 1.15; }
.prog-body { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.prog-body h3 { font-size: 28px; line-height: 1.1; }
.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; color: var(--blue); }
.tag::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--yellow); }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips { gap: 8px 24px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.chips li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); flex: none; }
.note-yellow { background: var(--yellow); border: var(--line); border-radius: 14px; padding: 14px 18px; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.partner { border: var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: var(--white); }
.partner > div { display: flex; flex-direction: column; gap: 4px; }
.partner-name { font-weight: 800; font-size: 19px; color: var(--ink); }
.partner-logo { height: 64px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; }

/* FAQ */
.faq { border: var(--line); border-radius: 16px; background: var(--white); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; min-height: 56px; font-weight: 800; font-size: 19px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { font-size: 28px; line-height: 1; transition: transform .2s; }
.faq[open] .chev { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; font-size: 17px; }

/* Bandeau d'appel */
.cta-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-row > .stack { flex: 999 1 520px; }

/* Formulaire */
.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 800; }
.field input, .field textarea {
  font: inherit; font-size: 17px; padding: 12px 14px; border: var(--line); border-radius: 12px; background: var(--white); color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { align-self: flex-start; }
.alert { border: var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.alert-ok { background: #DDF3E7; }
.alert-err { background: #FDE2E8; }
.split-side .info a { color: var(--ink); font-weight: 600; }

/* Pied de page */
.site-footer { background: var(--ink); color: var(--paper); padding: 64px 0 32px; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--yellow); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer-cols > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; }
.footer-brand { flex-basis: 260px; gap: 16px !important; }
.footer-brand img { width: 180px; height: auto; }
.footer-brand p { max-width: 320px; }
.site-footer h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: var(--yellow); margin-bottom: 4px; }
.footer-bottom { border-top: 1px solid #4A4652; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; font-size: 14px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .prog-item { padding: 20px; }
  .card-body h3, .prog-body h3 { font-size: 26px; }
  .tilt-right, .tilt-left { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Visionneuse de photos */
.strip-link { display: block; border-radius: 14px; }
.strip-link img, .gallery a img { cursor: zoom-in; }
html.lb-open { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(20, 18, 24, .94); color: var(--paper);
}
.lightbox::backdrop { background: rgba(20, 18, 24, .94); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb-stage { flex: 1; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 64px 84px 8px; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #2A2730; }
.lb-caption { max-width: 900px; padding: 6px 24px 0; text-align: center; font-size: 16px; }
.lb-count { padding: 4px 0 18px; font-size: 14px; opacity: .8; min-height: 1em; }
.lb-btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--paper);
  background: rgba(29, 27, 34, .7); color: var(--paper); cursor: pointer; transition: background .15s, color .15s;
}
.lb-btn:hover, .lb-btn:focus-visible { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.lb-btn[hidden] { display: none; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-stage { padding: 72px 8px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; width: 52px; height: 52px; }
  .lb-count { padding-bottom: 32px; }
}

/* Page L'asso */
.asso-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 8px; }
.asso-stat { display: flex; flex-direction: column; gap: 2px; max-width: 240px; }
.asso-stat .disp { font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.asso-stat span:last-child { font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.value { position: relative; border-radius: var(--radius); padding: 32px 28px 28px; overflow: hidden; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.value-num { position: absolute; top: -18px; right: 14px; font-size: 120px; line-height: 1; opacity: .22; }
.value-word { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; }
.value-text { font-size: 18px; font-weight: 600; }
.goals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.goal { background: var(--paper); border: var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.goal-num { font-size: 40px; line-height: 1; color: var(--orange); }
.goal-body { display: flex; flex-direction: column; gap: 8px; }
.goal-body h3 { font-size: 26px; line-height: 1.1; }
.masonry { columns: 4 240px; column-gap: 14px; }
.masonry figure { margin: 0 0 14px; break-inside: avoid; display: flex; flex-direction: column; gap: 6px; }
.masonry img { width: 100%; height: auto; border-radius: 14px; cursor: zoom-in; transition: transform .2s; }
.masonry a:hover img { transform: scale(1.02); }
.masonry figcaption { font-size: 14px; }
@media (max-width: 600px) {
  .masonry { columns: 2; column-gap: 8px; }
  .masonry figure { margin-bottom: 8px; }
  .masonry img { border-radius: 10px; }
  .value { min-height: 150px; }
}

/* Titre multicolore : contour sombre pour que le rose et le jaune restent lisibles */
.hero-title span[style] { -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
