/* Mayouri Tchô Nèg — feuille de style du site public */

@font-face { font-family: "Big Shoulders"; src: url(fonts/big-shoulders-display-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url(fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url(fonts/big-shoulders-display-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --encre: #1C1446;
  --encre-2: #57527A;
  --papier: #FFFFFF;
  --voile: #F4F2FA;
  --trait: #E1DDEE;
  --vert: #0F8B53;
  --orange: #F26A21;
  --rouge: #D7263D;
  --sur-rouge: #FFFFFF;
  --soleil: #FFC20E;
  --sur-soleil: #1C1446;
  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --texte: "Atkinson", "Segoe UI", Roboto, Arial, sans-serif;
  --gouttiere: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--texte);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--rouge); }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 2px; box-shadow: 0 0 0 5px var(--encre); border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; margin: 0 0 .4em; letter-spacing: .005em; }
h2 { font-size: clamp(2.3rem, 5.5vw, 3.75rem); }
h3 { font-size: 1.65rem; line-height: 1.05; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gouttiere); }
@media (min-width: 720px) { :root { --gouttiere: 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--soleil); color: var(--sur-soleil); padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Madras : le tissu créole, motif signature ---------- */
.madras {
  background:
    repeating-linear-gradient(90deg,
      color-mix(in srgb, var(--soleil) 88%, transparent) 0 22px,
      transparent 22px 40px,
      color-mix(in srgb, var(--vert) 75%, transparent) 40px 50px,
      transparent 50px 58px,
      rgba(255,255,255,.55) 58px 61px,
      transparent 61px 84px,
      color-mix(in srgb, var(--encre) 45%, transparent) 84px 88px,
      transparent 88px 104px),
    repeating-linear-gradient(0deg,
      color-mix(in srgb, var(--soleil) 70%, transparent) 0 22px,
      transparent 22px 40px,
      color-mix(in srgb, var(--vert) 60%, transparent) 40px 50px,
      transparent 50px 58px,
      rgba(255,255,255,.45) 58px 61px,
      transparent 61px 84px,
      color-mix(in srgb, var(--encre) 35%, transparent) 84px 88px,
      transparent 88px 104px),
    var(--rouge);
}
.madras--strip { height: 10px; }
.madras--fill { width: 100%; height: 100%; }

/* ---------- En-tête ---------- */
.top { background: var(--papier); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--trait); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.7rem; line-height: 1; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 20px; }
@media (min-width: 861px) and (max-width: 1100px) { .nav { gap: 14px; } .nav .btn--small { padding: 8px 11px; } .brand { font-size: 1.45rem; } }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--rouge); }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; font: 700 1rem var(--texte); background: var(--encre); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gouttiere) 18px; border-bottom: 1px solid var(--trait); box-shadow: 0 18px 30px rgba(28,20,70,.12); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--trait); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .brand { font-size: 1.45rem; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rouge); color: var(--sur-rouge);
  font: 700 1rem/1.2 var(--texte); text-decoration: none;
  padding: 13px 20px; border-radius: 10px; border: 2px solid var(--rouge);
  cursor: pointer; transition: transform .12s ease, background-color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--small { padding: 9px 14px; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--encre); border-color: var(--encre); }
.btn--sun { background: var(--soleil); color: var(--sur-soleil); border-color: var(--soleil); }
.btn--ink { background: var(--encre); color: #fff; border-color: var(--encre); }
.btn--danger { background: #fff; color: #B3122B; border-color: #B3122B; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Accueil : héro ---------- */
.hero { position: relative; color: #fff; background: var(--encre); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,20,70,.1) 0%, rgba(28,20,70,.45) 42%, rgba(28,20,70,.93) 78%); }
.hero--madras .hero__bg::after { background: linear-gradient(180deg, rgba(28,20,70,0) 0%, rgba(28,20,70,.6) 36%, rgba(28,20,70,.97) 66%); }
@media (max-width: 899px) {
  .hero--madras .hero__bg::after { background: linear-gradient(180deg, rgba(28,20,70,.2) 0%, rgba(28,20,70,.82) 22%, rgba(28,20,70,.97) 48%); }
  .hero__bg::after { background: linear-gradient(180deg, rgba(28,20,70,.15) 0%, rgba(28,20,70,.6) 25%, rgba(28,20,70,.94) 55%); }
}
.hero__in { position: relative; min-height: min(84vh, 760px); display: grid; align-content: end; gap: 28px; padding-top: 120px; padding-bottom: 40px; }
.hero h1 {
  font-weight: 900; font-size: clamp(3.6rem, 13vw, 10.5rem); line-height: .82; margin: 0;
  text-wrap: balance; max-width: 11ch;
  text-shadow: 0 2px 30px rgba(28,20,70,.35);
}
.hero__slogan { font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 700; margin: 14px 0 0; max-width: 36ch; }
.hero__row { display: grid; gap: 22px; align-items: end; }
@media (min-width: 900px) { .hero__row { grid-template-columns: 1fr 380px; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero__actions .btn--ghost { color: #fff; border-color: #fff; }
.hero h1 { animation: hero-in .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); letter-spacing: .04em; } to { opacity: 1; transform: none; } }

.next {
  background: var(--soleil); color: var(--sur-soleil);
  border-radius: 14px; padding: 20px 22px 22px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--soleil) 30%, transparent);
}
.next__label { font-weight: 700; margin: 0 0 6px; }
.next__date { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: .95; margin: 0 0 8px; }
.next__title { font-weight: 700; font-size: 1.15rem; margin: 0 0 4px; }
.next__meta { margin: 0 0 14px; }
.next a { font-weight: 700; }
.next--empty .next__date { font-size: 2rem; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--voile { background: var(--voile); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 30px; }
.section__head h2 { margin: 0; }
.section__head a { font-weight: 700; }
.lead { font-size: 1.2rem; max-width: 62ch; }
.intro { display: grid; gap: 28px; }
@media (min-width: 900px) { .intro { grid-template-columns: 5fr 7fr; align-items: start; } }
.intro__text { max-width: 64ch; font-size: 1.15rem; }

.page-title { padding: 56px 0 22px; }
.page-title h1 { font-size: clamp(3rem, 9vw, 6rem); font-weight: 900; margin: 0 0 10px; line-height: .88; }
.page-title p { font-size: 1.15rem; max-width: 62ch; color: var(--encre-2); margin: 0; }

/* ---------- Programme ---------- */
.events { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--trait); }
@media (min-width: 720px) { .event { grid-template-columns: 120px 1fr; gap: 28px; } }
.datebox { display: grid; justify-items: start; line-height: 1; }
.datebox__day { font-family: var(--display); font-weight: 900; font-size: 3.4rem; line-height: .85; }
.datebox__month { font-weight: 700; margin-top: 4px; }
.datebox__wd { color: var(--encre-2); font-size: .95rem; }
@media (min-width: 720px) { .datebox__day { font-size: 4.4rem; } }
.event__title { font-size: 1.85rem; margin: 6px 0 4px; }
.event__meta { font-weight: 700; margin: 0 0 4px; }
.event__details { color: var(--encre-2); margin: 6px 0 0; max-width: 64ch; }
.event__more { display: inline-block; margin-top: 8px; font-weight: 700; }
.tag { display: inline-block; font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--voile); color: var(--encre); margin: 0; }
.tag--parade { background: var(--rouge); color: var(--sur-rouge); }
.tag--vide { background: var(--orange); color: #fff; }
.tag--bal-pare-masque { background: var(--encre); color: #fff; }
.tag--sortie { background: var(--vert); color: #fff; }
.tag--repetition { background: var(--soleil); color: var(--sur-soleil); }
.month-title { font-size: 2.2rem; margin: 46px 0 10px; }
.month-title:first-child { margin-top: 0; }
details.past { margin-top: 48px; border-top: 1px solid var(--trait); padding-top: 18px; }
details.past summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.empty { background: var(--voile); border-radius: 14px; padding: 26px 24px; max-width: 640px; }
.empty p:last-child { margin-bottom: 0; }

/* ---------- Défilés ---------- */
.pgrid { display: grid; gap: 30px 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pcard a { text-decoration: none; display: block; }
.pcard__img { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--voile); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard a:hover .pcard__img img { transform: scale(1.04); }
.pcard__title { font-size: 1.8rem; margin: 14px 0 4px; }
.pcard a:hover .pcard__title { text-decoration: underline; text-decoration-color: var(--rouge); }
.pcard__meta { margin: 0; font-weight: 700; }
.pcard__count { margin: 2px 0 0; color: var(--encre-2); }

.parade-head { padding: 48px 0 24px; display: grid; gap: 18px; }
.parade-head h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); font-weight: 900; line-height: .88; margin: 0; max-width: 16ch; }
.parade-head__meta { font-weight: 700; font-size: 1.15rem; margin: 0; }
.parade-head__theme { margin: 0; }
.back { font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery button { padding: 0; border: 0; background: var(--voile); cursor: zoom-in; aspect-ratio: 1; overflow: hidden; border-radius: 4px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.videos { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); grid-auto-flow: dense; align-items: start; }
@media (min-width: 700px) { .video:not(.video--vertical) { grid-column: span 2; } }
.video { margin: 0; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: var(--encre); display: block; }
.video--vertical iframe { aspect-ratio: 9 / 16; max-width: 340px; }
.video figcaption { font-size: .95rem; margin-top: 6px; }
.subhead { font-size: 2.4rem; margin: 54px 0 18px; }

.video video { width: 100%; border-radius: 8px; background: var(--encre); display: block; max-height: 80vh; }
.video--vertical video { max-width: 340px; }
.audios { display: grid; gap: 14px; max-width: 640px; margin-top: 26px; }
.audio { margin: 0; background: var(--voile); border-radius: 14px; padding: 16px 18px; }
.audio figcaption { font-weight: 700; margin-bottom: 8px; }
.audio audio { width: 100%; }

/* ---------- Actualités ---------- */
.ngrid { display: grid; gap: 30px 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ncard a { text-decoration: none; display: block; }
.ncard__img { position: relative; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--voile); margin-bottom: 12px; }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ncard a:hover .ncard__img img { transform: scale(1.04); }
.ncard__play { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--soleil); box-shadow: 0 4px 14px rgba(28,20,70,.35); }
.ncard__play::after { content: ""; position: absolute; left: 17px; top: 13px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--encre); }
.ncard__title { font-size: 1.7rem; margin: 8px 0 4px; }
.ncard a:hover .ncard__title { text-decoration: underline; text-decoration-color: var(--rouge); }
.ncard__meta { margin: 0; color: var(--encre-2); }
.tag--micro-trottoir { background: var(--vert); color: #fff; }
.tag--video { background: var(--rouge); color: var(--sur-rouge); }
.tag--photos { background: var(--soleil); color: var(--sur-soleil); }
.tag--info { background: var(--encre); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips a { text-decoration: none; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--trait); }
.chips a[aria-current="page"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* Visionneuse */
.lb { position: fixed; inset: 0; background: rgba(12,8,30,.96); z-index: 60; display: none; color: #fff; }
.lb.is-open { display: grid; grid-template-rows: auto 1fr auto; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; }
.lb__bar a, .lb__bar button { color: #fff; }
.lb__stage { display: grid; place-items: center; min-height: 0; padding: 0 8px; touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb__nav { display: flex; justify-content: center; gap: 12px; padding: 12px; }
.lb button { font: 700 1rem var(--texte); background: rgba(255,255,255,.12); border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.22); }

/* ---------- Partenaires ---------- */
.partners-band { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.plogo { display: grid; place-items: center; background: #fff; border: 1px solid var(--trait); border-radius: 10px; height: 96px; min-width: 150px; padding: 12px 18px; text-decoration: none; font-weight: 700; }
.plogo img { max-height: 70px; max-width: 170px; object-fit: contain; }
.plogo--big { height: 140px; min-width: 240px; }
.plogo--big img { max-height: 110px; max-width: 260px; }
.plevel { margin: 44px 0 16px; font-size: 2rem; }
.plevel:first-child { margin-top: 0; }
.pitem { display: grid; gap: 10px; justify-items: start; }
.pitem p { margin: 0; font-weight: 700; }
.plist { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------- Rejoindre (bloc tissu) ---------- */
.join { position: relative; overflow: hidden; color: var(--encre); }
.join__panel { position: relative; background: var(--papier); border-radius: 16px; padding: 30px 26px; max-width: 640px; box-shadow: 0 30px 60px rgba(28,20,70,.25); }
.join__panel h2 { margin-bottom: 12px; }
.join__wrap { padding: 72px var(--gouttiere); }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 18px; max-width: 720px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.form legend { font-family: var(--display); font-weight: 800; font-size: 1.8rem; margin-bottom: 8px; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field .hint { font-size: .93rem; color: var(--encre-2); margin: 0; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], input[type=url], select, textarea {
  width: 100%; font: 400 1.05rem/1.3 var(--texte); color: var(--encre);
  background: #fff; border: 2px solid #CBC6DD; border-radius: 10px; padding: 12px 13px; min-height: 50px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--encre); outline: none; box-shadow: 0 0 0 3px var(--soleil); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--rouge); }
.req { color: var(--rouge); }
.notice { border-radius: 12px; padding: 14px 18px; margin: 0 0 22px; font-weight: 700; border-left: 6px solid var(--vert); background: #E7F6EE; }
.notice--err { border-left-color: #B3122B; background: #FDECEF; }
.notice--info { border-left-color: var(--soleil); background: #FFF7DB; }
.card { background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: 24px; }
.split { display: grid; gap: 34px; }
@media (min-width: 960px) { .split { grid-template-columns: 7fr 4fr; align-items: start; } }
.aside-box { background: var(--voile); border-radius: 14px; padding: 22px; }
.aside-box h2 { font-size: 2rem; }
.minor-only[hidden] { display: none; }

/* ---------- Espace membres ---------- */
.member-head { padding: 44px 0 10px; }
.member-head h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 900; margin: 0 0 6px; line-height: .9; }
.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 2px solid var(--encre); margin: 18px 0 30px; scrollbar-width: none; }
.tabs a { text-decoration: none; font-weight: 700; padding: 11px 14px; border-radius: 10px 10px 0 0; white-space: nowrap; }
.tabs a[aria-current="page"] { background: var(--encre); color: #fff; }
.post { padding: 22px 0; border-bottom: 1px solid var(--trait); max-width: 760px; }
.post h2 { font-size: 2rem; margin-bottom: 4px; }
.post__date { color: var(--encre-2); font-weight: 700; margin-bottom: 10px; }
.post--pin { background: #FFF7DB; border-radius: 14px; padding: 22px; border-bottom: 0; margin-bottom: 12px; }
.docs { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.docs li { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--trait); }
.docs small { color: var(--encre-2); display: block; }
.status { display: inline-block; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.status--ok { background: #E7F6EE; color: #0B6B40; }
.status--wait { background: #FFF2C4; color: #6B4A00; }
.status--no { background: #FDECEF; color: #8F0F23; }
.paybox { max-width: 560px; }
.paybox__amount { font-family: var(--display); font-weight: 900; font-size: 3.6rem; line-height: 1; margin: 8px 0 12px; }
.danger-zone { margin-top: 56px; border-top: 1px solid var(--trait); padding-top: 24px; max-width: 720px; }

/* ---------- Pied de page ---------- */
.foot { background: var(--encre); color: #fff; margin-top: 0; }
.foot__in { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
@media (min-width: 820px) { .foot__in { grid-template-columns: 2fr 1fr 1fr; } }
.foot__name { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: .9; margin: 0 0 10px; }
.foot h2 { font-family: var(--texte); font-size: 1.05rem; font-weight: 700; color: var(--soleil); margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: #fff; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.18); font-size: .93rem; color: #CFCBE3; }

.legal { max-width: 760px; padding-bottom: 72px; }
.legal h2 { font-size: 2.1rem; margin-top: 38px; }

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