/* ============================================================
   Judo Club Bourg des Comptes — feuille de styles
   Palette & typographie reprises de la maquette d'origine.
   ============================================================ */

:root {
  --cream: #f7f2ea;
  --navy: #1b2a4a;
  --red: #e63329;
  --orange: #ed7d31;
  --gold: #201f1b;
  --ink: #2b2b2b;
  --muted: #6b6256;
  --sand: #8a7d63;
  --border: #e9dfcb;
  --wa: #25d366;
  --wa-dark: #128c3f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  background-image: radial-gradient(circle, rgba(237, 125, 49, 0.07) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: "Work Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: clamp(16px, 4vw, 32px); }
.display { font-family: "Bangers", system-ui; font-weight: 400; letter-spacing: 1px; color: var(--navy); line-height: 1; }
.brush { height: 13px; background: var(--orange); border-radius: 60% 40% 55% 45% / 100% 90% 100% 95%; transform: rotate(-1deg); margin: 8px 0 0 2px; }
.brush.orange { background: var(--orange); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--navy);
}
header.site .bar {
  max-width: 1180px; margin: 0 auto;
  padding: 10px clamp(14px, 4vw, 32px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
}
header.site img { height: 50px; width: auto; max-width: 120px; object-fit: contain; }
nav.main { display: flex; flex-wrap: wrap; gap: 8px; }
nav.main button,
nav.main a {
  font: 700 13.5px "Work Sans"; cursor: pointer;
  border: 2px solid var(--navy); border-radius: 999px; padding: 8px 16px;
  background: transparent; color: var(--navy); transition: all 0.15s;
  text-decoration: none; display: inline-block;
}
nav.main button:hover,
nav.main a:hover { background: rgba(27, 42, 74, 0.08); }
nav.main button.active,
nav.main a.active { background: var(--navy); color: #fff; }

/* Bouton "menu" (hamburger) — masqué en desktop, visible en mobile seulement. */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; flex: 0 0 auto;
  border: 2px solid var(--navy); border-radius: 10px;
  background: transparent; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  nav.main {
    flex-basis: 100%; flex-direction: column; gap: 4px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav.main.open { max-height: 320px; margin-top: 4px; }
  nav.main button, nav.main a { width: 100%; text-align: center; }
}

/* ---------- Boutons ---------- */
/* Effet "Button Fun" (shrink-border) : le contour d'origine s'efface pendant
   qu'un second contour, initialement plus grand et invisible, se resserre et
   apparaît à sa place — un léger "réajustement" du cadre au survol. */
.btn {
  cursor: pointer; font: 800 15px "Work Sans"; text-decoration: none; border-radius: 999px;
  padding: 13px 22px; display: inline-flex; align-items: center; gap: 10px; border: none;
  position: relative;
  transition: color 0.35s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(2px); }
.btn::before, .btn::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 2px solid transparent;
}
.btn::after {
  border-color: var(--navy);
  opacity: 0;
  transform: scaleX(1.12) scaleY(1.35);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.btn:hover::after { opacity: 1; transform: scaleX(1) scaleY(1); }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 5px 0 var(--wa-dark); }
.btn-red { background: var(--orange); color: var(--navy); }

.btn-outline {
  background: transparent; color: var(--navy); border: 2px solid var(--navy);
  transition: color 0.35s ease, border-color 0.3s ease, transform 0.18s ease;
}
.btn-outline:hover { border-color: transparent; color: var(--orange); }
.btn-outline::after { border-color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after, .btn-outline { transition: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .blob { position: absolute; top: -40px; right: -30px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 184, 0, 0.18), transparent 68%); pointer-events: none; }
.hero .grid { max-width: 1180px; margin: 0 auto; padding: clamp(26px, 5vw, 60px) clamp(16px, 4vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(20px, 4vw, 48px); align-items: center; }
.badge-pill { display: inline-block; background: var(--navy); color: var(--cream); font: 700 11.5px "Work Sans"; letter-spacing: 1.5px; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.hero h1 { font-family: "Bangers"; font-weight: 400; line-height: 0.9; letter-spacing: 1.5px; margin: 16px 0 0; font-size: clamp(2.7rem, 8.5vw, 5.2rem); color: var(--navy); text-shadow: 3px 3px 0 rgba(27, 42, 74, 0.07); }
.hero h1 .sub { color: var(--orange); display: block; white-space: nowrap; font-size: clamp(1.5rem, 4.8vw, 3rem); line-height: 1; }
.hero p.lead { font-size: clamp(1rem, 2.2vw, 1.18rem); line-height: 1.6; max-width: 46ch; margin: 22px 0 0; }
.hero .mascotte { position: relative; display: flex; justify-content: center; align-items: center; min-height: 260px; }
.hero .mascotte .halo { position: absolute; width: min(82%, 360px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(245, 184, 0, 0.22), transparent 68%); }
.hero .mascotte img { width: min(82%, 440px); height: auto; position: relative; z-index: 1; animation: floaty 5.5s ease-in-out infinite; filter: drop-shadow(0 14px 18px rgba(27, 42, 74, 0.18)); }

/* ---------- Titres de section ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
h2.title { font-family: "Bangers"; font-weight: 400; letter-spacing: 1px; color: var(--navy); font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin: 0; line-height: 1; }
h3.title { font-family: "Bangers"; font-weight: 400; letter-spacing: 1px; color: var(--navy); font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0; }
.sync { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--border); border-radius: 999px; padding: 6px 14px; font: 600 12.5px "Work Sans"; }
.sync .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wa); }
.muted { color: var(--muted); }
.pin { width: 11px; height: 11px; background: var(--red); border-radius: 50% 50% 50% 0; transform: rotate(45deg); flex: 0 0 auto; }

/* ---------- Événements ---------- */
.events { display: flex; flex-direction: column; gap: 16px; }
.event-card { background: #fff; border: 2px solid var(--border); border-radius: 18px; padding: 18px; display: flex; gap: 16px; flex-wrap: wrap; box-shadow: 0 6px 0 rgba(27, 42, 74, 0.05); }
.event-date { flex: 0 0 auto; width: 88px; background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 8px; text-align: center; align-self: flex-start; }
.event-date .d { font-family: "Bangers"; font-size: 2.2rem; line-height: 1; letter-spacing: 1px; }
.event-date .m { font: 800 14px "Work Sans"; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); margin-top: 2px; }
.event-date .y { font: 600 12px "Work Sans"; opacity: 0.75; }
.event-date .t { margin-top: 7px; font: 700 11px "Work Sans"; color: var(--orange); }
.event-body { flex: 1; min-width: 210px; }
.cat { font: 800 11px "Work Sans"; text-transform: uppercase; letter-spacing: 0.8px; padding: 5px 11px; border-radius: 999px; }
.src-wa { display: inline-flex; align-items: center; gap: 5px; font: 700 11px "Work Sans"; padding: 5px 10px; border-radius: 999px; background: rgba(37, 211, 102, 0.12); color: var(--wa-dark); border: 1px solid rgba(37, 211, 102, 0.4); }
.event-body h3 { font: 800 1.18rem "Work Sans"; color: var(--navy); margin: 0 0 6px; line-height: 1.25; }
.loc { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 600 13px "Work Sans"; margin-bottom: 8px; }
.event-body p { color: var(--ink); font-size: 14.5px; line-height: 1.55; margin: 0; }
.thumbs { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.thumb { width: 66px; height: 66px; border-radius: 10px; object-fit: cover; border: 1px solid #e2d8c4; }
.thumb.ph { background: repeating-linear-gradient(45deg, #efe7d8, #efe7d8 6px, #f7f2ea 6px, #f7f2ea 12px); display: flex; align-items: center; justify-content: center; font: 500 9px "JetBrains Mono", monospace; color: #a89a7c; }
.link-red { display: inline-block; margin-top: 12px; background: none; border: none; padding: 0; cursor: pointer; color: var(--red); font: 800 13px "Work Sans"; border-bottom: 2px solid rgba(230, 51, 41, 0.3); }

/* ---------- Carousel photos (accueil) ---------- */
.carousel-wrap { margin-top: 28px; }
.carousel { position: relative; overflow: hidden; border-radius: 18px; border: 2px solid var(--border); box-shadow: 0 6px 0 rgba(27, 42, 74, 0.05); background: #efe7d8; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel-slide { position: relative; flex: 0 0 100%; aspect-ratio: 16 / 9; min-height: 200px; background: #efe7d8; }
.carousel-photo { position: relative; width: 100%; height: 100%; display: block; }
.carousel-photo.ph { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, #efe7d8, #efe7d8 6px, #f7f2ea 6px, #f7f2ea 12px); font: 500 12px "JetBrains Mono", monospace; color: #a89a7c; }
/* Format libre (rectangle pas au format du carrousel) : photo entière visible
   (contain), fond flou de la même image pour combler les bandes latérales/haut-bas. */
.carousel-blur { display: none; position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(24px) brightness(0.6); transform: scale(1.15); }
.carousel-slide.blurred .carousel-blur { display: block; }
.carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 14px; background: linear-gradient(transparent, rgba(27, 42, 74, 0.78)); color: #fff; font: 800 14.5px "Work Sans"; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255, 255, 255, 0.85); color: var(--navy); font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.55); cursor: pointer; transition: all 0.2s; }
.carousel-dot.active { width: 20px; border-radius: 5px; background: var(--gold); }

/* ---------- États ---------- */
.skel { border-radius: 18px; background: linear-gradient(90deg, #ece3d3 25%, #f4ecdd 37%, #ece3d3 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.state-box { background: #fff; border-radius: 18px; padding: 28px; text-align: center; }
.state-box.err { border: 2px solid var(--red); }
.state-box.empty { border: 2px dashed #c9bda3; }
.state-box .big { font-family: "Bangers"; font-size: 1.7rem; letter-spacing: 0.5px; }

/* ---------- Tarifs ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 24px; }
.plan { position: relative; background: #fff; border: 2px solid var(--border); border-radius: 18px; padding: 24px 22px; display: flex; flex-direction: column; box-shadow: 0 6px 0 rgba(27, 42, 74, 0.05); }
.plan .label { font: 800 1.15rem "Work Sans"; color: var(--navy); }
.plan .aud { font: 600 12.5px "Work Sans"; color: var(--sand); margin-top: 3px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0; }
.plan .price .v { font-family: "Bangers"; font-size: 2.1rem; color: var(--navy); line-height: 1; }
.plan .price .p { font: 600 13px "Work Sans"; color: var(--sand); }
.feat { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink); margin-bottom: 9px; }
.feat .ck { color: var(--orange); font-weight: 800; flex: 0 0 auto; }

/* ---------- Horaires ---------- */
/* Horaires : tableau sobre, sans code couleur (style épuré façon FFJDA). */
.sched-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; border: 2px solid var(--border); overflow: hidden; }
.sched-table th, .sched-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--border); font: 600 13.5px "Work Sans"; }
.sched-table thead th { background: var(--navy); color: #fff; font: 800 11.5px "Work Sans"; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: none; }
.sched-table tbody th { color: var(--navy); font-weight: 800; white-space: nowrap; }
.sched-table tbody td { color: var(--ink); }
.sched-table tbody tr:last-child th, .sched-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Équipe ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-top: 26px; }
.member { background: #fff; border: 2px solid var(--border); border-radius: 18px; padding: 18px; text-align: center; box-shadow: 0 6px 0 rgba(27, 42, 74, 0.05); }
.member .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--orange); margin-bottom: 12px; }
.member .avatar.ph { border: 3px dashed #c9bda3; background: repeating-linear-gradient(45deg, #efe7d8, #efe7d8 6px, #f7f2ea 6px, #f7f2ea 12px); display: inline-flex; align-items: center; justify-content: center; font: 500 10px "JetBrains Mono", monospace; color: #a89a7c; }
.member .name { font: 800 15px "Work Sans"; color: var(--navy); }
.member .role { font: 600 12.5px "Work Sans"; color: var(--sand); margin-top: 4px; line-height: 1.4; }

/* ---------- Réseaux ---------- */
.wa-block { background: var(--wa); background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1.5px, transparent 1.6px); background-size: 22px 22px; border-radius: 22px; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.wa-block .pill { display: inline-block; background: rgba(255, 255, 255, 0.25); color: #fff; font: 800 11px "Work Sans"; letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.wa-block h3 { font-family: "Bangers"; font-weight: 400; letter-spacing: 1px; color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 14px 0 8px; line-height: 1; }
.wa-block p { color: #eafff1; font-size: 15px; line-height: 1.55; margin: 0; max-width: 48ch; }
.wa-block .btn-light { background: #fff; color: var(--wa-dark); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18); flex: 0 0 auto; }
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.social { text-decoration: none; background: #fff; border: 2px solid var(--border); border-radius: 18px; padding: 18px; display: flex; align-items: center; gap: 14px; }
.social .ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.social .ic.ig { background: linear-gradient(45deg, #f5b800, #e63329 45%, #ed7d31 80%); }
.social .ic.fb { background: #1877f2; }
.social .t { font: 800 15px "Work Sans"; color: var(--navy); }
.social .s { font: 600 12.5px "Work Sans"; color: var(--sand); }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: #c3cbda; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1.5px, transparent 1.6px); background-size: 24px 24px; margin-top: 20px; }
footer.site .cols { max-width: 1180px; margin: 0 auto; padding: clamp(30px, 5vw, 52px) clamp(16px, 4vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
footer.site .head { font: 800 12px "Work Sans"; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
footer.site a { display: inline-flex; align-items: center; gap: 9px; color: #c3cbda; text-decoration: none; font: 600 13.5px "Work Sans"; }
footer.site .logos span { background: #fff; border-radius: 12px; padding: 8px 12px; display: inline-flex; height: 54px; align-items: center; }
footer.site .copy { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 16px; text-align: center; font-size: 12px; color: #8a96ad; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(27, 42, 74, 0.55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: clamp(10px, 4vw, 44px); overflow: auto; }
.modal { background: var(--cream); max-width: 660px; width: 100%; border-radius: 22px; border: 3px solid var(--navy); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); overflow: hidden; }
.modal .mhead { background: var(--navy); background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1.5px, transparent 1.6px); background-size: 22px 22px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.modal .mdate { flex: 0 0 auto; width: 72px; background: var(--cream); border-radius: 12px; padding: 8px 6px; text-align: center; }
.modal .mdate .d { font-family: "Bangers"; font-size: 1.8rem; line-height: 1; color: var(--navy); letter-spacing: 1px; }
.modal .mdate .m { font: 800 10px "Work Sans"; text-transform: uppercase; letter-spacing: 0.5px; color: var(--orange); }
.modal .mdate .y { font: 600 11px "Work Sans"; color: var(--muted); }
.modal h3 { font: 800 1.3rem "Work Sans"; color: #fff; margin: 0 0 5px; line-height: 1.2; }
.modal .mclose { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255, 255, 255, 0.15); color: #fff; font: 400 22px "Work Sans"; line-height: 1; }
.modal .mbody { padding: 20px; max-height: 64vh; overflow: auto; }
.result { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--border); border-radius: 12px; padding: 9px 12px; margin-bottom: 8px; }
.result .rank { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: "Bangers"; font-size: 1.15rem; }
.result .rn { font: 800 14px "Work Sans"; color: var(--navy); }
.result .rc { font: 600 12px "Work Sans"; color: var(--sand); }
.dashbox { background: #fff; border: 2px dashed #c9bda3; border-radius: 12px; padding: 14px; font: 600 13px "Work Sans"; color: var(--sand); text-align: center; margin-bottom: 22px; }
.h4 { font-family: "Bangers"; font-weight: 400; letter-spacing: 0.8px; color: var(--navy); font-size: 1.3rem; margin: 0; }

.hidden { display: none !important; }

