/* ============================================================
   Savate Défense – Défense Urbaine Wintzenheim
   Design : noir profond + bleu / blanc / rouge (couleurs du logo)
   Rebrander = changer les variables ci-dessous.
   ============================================================ */
:root {
  --ink: #0b0d12;
  --ink-2: #151922;
  --blue: #2b63d9;
  --red: #e23b3b;
  --red-deep: #b72727;
  --accent: var(--red);
  --accent-deep: var(--red-deep);
  --accent-soft: #fdecec;
  --text: #1a1d24;
  --muted: #5b6270;
  --bg: #ffffff;
  --bg-alt: #f4f4f1;
  --border: #e3e3de;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 13, 18, 0.12);
  --max: 1160px;
  --font: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-title: 'Barlow Condensed', 'Inter Variable', Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); text-transform: uppercase; letter-spacing: .02em; line-height: 1.08; margin: 0 0 .6rem; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Bande tricolore (signature) */
.tricolore { height: 5px; background: linear-gradient(90deg, var(--blue) 0 33.33%, #fff 33.33% 66.66%, var(--red) 66.66% 100%); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 700 .95rem var(--font); text-transform: uppercase; letter-spacing: .05em; padding: .85rem 1.6rem; border-radius: 99px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Annonce ---------- */
.annonce { background: var(--blue); color: #fff; text-align: center; padding: .55rem 1rem; font-size: .92rem; font-weight: 600; }
.annonce a { text-decoration: underline; }

/* ---------- Navigation ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; background: rgba(11,13,18,.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav { max-width: var(--max); margin: 0 auto; padding: .55rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font: 700 1.2rem var(--font-title); text-transform: uppercase; letter-spacing: .04em; line-height: 1.05; }
.nav-logo-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.actu-img { width: 100%; height: auto; border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--red); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.nav-links a:focus-visible, .footer a:focus-visible { outline-color: #fff; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255,255,255,.88); text-decoration: none; font-weight: 600; font-size: .92rem; padding: .5rem .7rem; border-radius: 8px; display: inline-block; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links .btn { color: #fff; margin-left: .4rem; padding: .55rem 1.2rem; font-size: .85rem; }
.nav-links .btn:hover { background: var(--accent-deep); }
.nav-item { position: relative; }
.nav-parent { display: flex; align-items: center; }
.nav-caret { background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; padding: .4rem .2rem; margin-left: -.5rem; display: grid; place-items: center; }
.nav-caret svg { transition: transform .2s; }
.nav-item--sub.open .nav-caret svg { transform: rotate(180deg); }
.nav-sub { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--ink-2); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: .4rem; margin: 0; list-style: none; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav-sub a { display: block; width: 100%; font-weight: 500; }
.nav-item--right .nav-sub { left: auto; right: 0; }
.nav-item--sub:hover .nav-sub, .nav-item--sub.open .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

@media (max-width: 1100px) {
  .nav-burger { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: .5rem 1.25rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.1); display: none; max-height: calc(100vh - 70px); overflow: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .4rem; font-size: 1rem; }
  .nav-parent { justify-content: space-between; }
  .nav-parent a { flex: 1; }
  .nav-caret { margin: 0; padding: .6rem; }
  .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--red); border-radius: 0; background: transparent; padding: 0 0 0 .8rem; display: none; }
  .nav-item--sub:hover .nav-sub { display: none; opacity: 1; visibility: visible; }
  .nav-item--sub.open .nav-sub { display: block; }
  .nav-links .btn { margin: .6rem 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); padding: clamp(4.5rem, 12vw, 9rem) 1.25rem clamp(4rem, 9vw, 7rem); overflow: hidden; }
.hero--photo { min-height: min(78vh, 760px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero--photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, rgba(11,13,18,.94) 0%, rgba(11,13,18,.78) 45%, rgba(11,13,18,.3) 100%); }
@media (max-width: 760px) { .hero--photo::before { background: linear-gradient(180deg, rgba(11,13,18,.82), rgba(11,13,18,.62) 55%, rgba(11,13,18,.88)); } }
.hero-inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; width: 100%; }
.hero-inner > * { max-width: 700px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.eyebrow { display: inline-block; font: 700 .9rem var(--font-title); text-transform: uppercase; letter-spacing: .18em; color: var(--red); margin-bottom: .6rem; }
.hero .eyebrow, .page-hero .eyebrow, .section--dark .eyebrow { color: #ff6b6b; }
.page-hero { position: relative; color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 1.25rem; background: linear-gradient(100deg, rgba(11,13,18,.95), rgba(11,13,18,.7)), var(--hero-img) center/cover no-repeat; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero p { color: rgba(255,255,255,.82); max-width: 640px; font-size: 1.08rem; margin: 0; }

/* ---------- Stats ---------- */
.stats-band { background: var(--ink); color: #fff; border-top: 5px solid; border-image: linear-gradient(90deg, var(--blue) 0 33.33%, #fff 33.33% 66.66%, var(--red) 66.66% 100%) 1; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; padding-top: 2rem; padding-bottom: 2rem; }
.stat { text-align: center; padding: 0 .5rem; }
.stat-number { display: block; font: 800 3rem var(--font-title); color: #fff; line-height: 1; }
.stat-label { display: block; color: rgba(255,255,255,.65); font-size: .88rem; margin-top: .3rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.78); }
.section-head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section--dark .section-head p { color: rgba(255,255,255,.72); }

/* ---------- Cartes ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--4 { grid-template-columns: 1fr; } }
.card, .news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card--link:hover, .news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; overflow: hidden; height: 210px; background: var(--ink-2); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .5s; }
.card--link:hover .card-media img, .news-card:hover .card-media img { transform: scale(1.05); }
.card-body, .news-card-body { padding: 1.3rem 1.4rem 1.5rem; }
.card-body h3 { color: var(--ink); }
.card-body p { color: var(--muted); font-size: .96rem; margin: 0; }
.card--plain { padding: 1.5rem; border-top: 4px solid var(--red); }
.card--plain h3 { color: var(--ink); margin-bottom: .4rem; }
.card--plain p { color: var(--muted); margin: 0; font-size: .96rem; }
.card--plain:nth-child(3n+1) { border-top-color: var(--blue); }
.card--plain:nth-child(3n+2) { border-top-color: #cfd3da; }
.card--dark { background: var(--ink-2); border-color: rgba(255,255,255,.08); }
.card--dark h3 { color: #fff; }
.card--dark p { color: rgba(255,255,255,.7); }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent-deep); font: 700 .78rem var(--font); letter-spacing: .06em; text-transform: uppercase; padding: .2rem .65rem; border-radius: 99px; }
.news-card time { color: var(--muted); font-size: .85rem; }
.news-card h3 { color: var(--ink); margin-top: .5rem; text-transform: none; font-family: var(--font); font-size: 1.1rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split--rev .split-media { order: 2; }
.split-media { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 400px; background: var(--ink-2); box-shadow: var(--shadow); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.split-media--contain { background-color: #fff; background-size: contain; border: 1px solid var(--border); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split-media { order: 0; } .split-media { min-height: 300px; } }

/* ---------- Horaires ---------- */
.horaires { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; max-width: 760px; margin: 0 auto; }
.horaire { background: #fff; border-radius: var(--radius); padding: 1.8rem; text-align: center; border: 1px solid var(--border); border-bottom: 5px solid var(--red); }
.horaire:nth-child(2) { border-bottom-color: var(--blue); }
.horaire .jour { font: 800 2rem var(--font-title); text-transform: uppercase; color: var(--ink); letter-spacing: .03em; }
.horaire .heure { font: 700 1.5rem var(--font-title); color: var(--accent); letter-spacing: .03em; }
.horaire .detail { color: var(--muted); font-size: .9rem; margin: .2rem 0 0; }
.section--dark .horaire { background: var(--ink-2); border-color: rgba(255,255,255,.08); border-bottom-width: 5px; }
.section--dark .horaire .jour { color: #fff; }
.section--dark .horaire .heure { color: #ff6b6b; }
.section--dark .horaire .detail { color: rgba(255,255,255,.6); }
.lieu-line { text-align: center; margin-top: 1.6rem; color: var(--muted); }
.section--dark .lieu-line { color: rgba(255,255,255,.75); }

/* ---------- Équipe ---------- */
.grid--people { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.person { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; padding: 1.6rem 1.2rem; }
.person img, .person-avatar { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid var(--bg-alt); box-shadow: 0 0 0 3px var(--red); background: var(--ink-2); }
.person-avatar { display: grid; place-items: center; color: #fff; font: 800 2rem var(--font-title); }
.person h3 { color: var(--ink); font-size: 1.35rem; margin-bottom: .2rem; }
.person p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Galerie ---------- */
.gallery { columns: 3 250px; column-gap: 1rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1rem; position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--ink-2); display: block; width: 100%; border: 0; padding: 0; }
.gallery-item img { width: 100%; height: auto; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .7rem; color: #fff; font-size: .85rem; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.78)); opacity: 0; transition: opacity .25s; }
.gallery-item:hover span, .gallery-item:focus-visible span { opacity: 1; }
@media (hover: none) { .gallery-item span { opacity: 1; } }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,6,9,.94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 94vw; border-radius: 8px; }
.lightbox p { color: #fff; margin: .8rem 0 0; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; }
.lightbox .lb-next { right: 1rem; top: 50%; }

/* ---------- Texte / contact ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); }
.prose h2 { font-size: 1.7rem; margin-top: 2rem; }
.prose a { color: var(--accent-deep); }
.legal-date { color: var(--muted); font-size: .85rem; }
.prose ul { padding-left: 1.2rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { color: var(--ink); font-size: 1.15rem; margin: 1.3rem 0 .2rem; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info a { color: var(--accent-deep); font-weight: 600; }
.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.form input, .form textarea { width: 100%; font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--border); border-radius: 10px; margin-bottom: 1rem; background: var(--bg-alt); }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--accent); background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--muted); }
.form .check input { width: auto; margin: .25rem 0 0; }
.form-note { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/8; background: var(--bg-alt); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .map-wrap { aspect-ratio: 4/3; } }
.legit { max-width: 760px; margin: 2.4rem auto 0; padding: 1.3rem 1.6rem; border-left: 5px solid var(--red); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: 0 4px 16px rgba(0,0,0,.06); font-weight: 500; }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: #fff; padding: 3.5rem 0 0; border-top: 5px solid; border-image: linear-gradient(90deg, var(--blue) 0 33.33%, #fff 33.33% 66.66%, var(--red) 66.66% 100%) 1; }
.footer .container { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer .container { grid-template-columns: 1fr; } }
.footer-logo { display: flex; align-items: center; gap: .8rem; font: 700 1.5rem var(--font-title); text-transform: uppercase; letter-spacing: .04em; }
.footer-logo-img { width: 56px; height: 56px; border-radius: 50%; }
.footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-links li { margin-bottom: .45rem; font-size: .95rem; }
.footer-social { display: flex; gap: .7rem; margin-top: 1rem; }
.social-icon { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; }
.social-icon:hover { background: var(--blue); border-color: var(--blue); }
.footer-legal { max-width: var(--max); margin: 2rem auto 0; padding: 1.2rem 1.25rem 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: 1.4rem; font-size: .85rem; flex-wrap: wrap; }
.footer-copy { max-width: var(--max); margin: 0 auto; padding: .6rem 1.25rem 1.6rem; font-size: .8rem; color: rgba(255,255,255,.45); }

/* ---------- Apparition au scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media print { .nav-wrap, .footer, .hero-actions { display: none; } [data-reveal] { opacity: 1; transform: none; } }

.contact-cta { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); border-top: 5px solid var(--red); }
.contact-cta h3 { color: #fff; font-size: 1.8rem; }
.contact-cta p { color: rgba(255,255,255,.8); }
.contact-cta .form-note { color: rgba(255,255,255,.55); margin-top: 1rem; }
