/* Cani'Sports des Flandres — maquette statique
   Mise en page : sections pleine largeur, contenu centré sur 1200px, séparateurs en relief des Monts des Flandres. */
:root {
  --bg: #1C1C1C;
  --bg2: #262624;
  --bg-deep: #111111;
  --field: #141414;
  --light: #FAFAFA;
  --ink: #1C1C1C;
  --ink-soft: #3A3A3A;
  --orange: #E64A1A;
  --orange-hover: #FF6A3D;
  --orange-dark: #B8380F;
  --line-light: #E6E3DE;
  --font-display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  color-scheme: dark;
}
/* Variante « forêt » : ajouter class="foret" sur <html> */
:root.foret { --bg: #122019; --bg2: #1A2B22; }

html { scroll-behavior: smooth; scroll-padding-top: 68px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--light); font-family: var(--font-body); font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
input, textarea, button { font: inherit; }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 36px; }
.head { display: flex; flex-direction: column; gap: 14px; }

/* Typo */
.eyebrow { font-family: var(--font-cond); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.on-light .eyebrow { color: var(--orange-dark); }
.h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 8vw, 72px); line-height: .95; text-transform: uppercase; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: rgba(250,250,250,.82); text-wrap: pretty; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; font-family: var(--font-cond); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; padding: 18px 26px; }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #FF5A28; color: var(--ink); }
.btn-outline { border: 2px solid var(--light); color: var(--light); padding: 16px 24px; }
.btn-outline:hover { background: var(--light); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--orange); }
.btn-dark:hover { color: var(--orange-hover); }

/* Images à venir */
.ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; background-color: #2E2D2A; background-image: repeating-linear-gradient(135deg, rgba(250,250,250,.04) 0 12px, transparent 12px 24px); color: rgba(250,250,250,.55); font-size: 13px; line-height: 1.35; }
.ph::before { content: ""; position: absolute; top: 12px; left: 12px; width: 22px; height: 18px; border: 2px solid currentColor; border-radius: 2px; opacity: .6; }
.on-light .ph, .ph.light { background-color: #ECE9E4; background-image: repeating-linear-gradient(135deg, rgba(28,28,28,.04) 0 12px, transparent 12px 24px); color: #7A756D; }

/* Logo texte provisoire */
.logo { display: flex; align-items: center; gap: 12px; color: var(--light); }
.logo:hover { color: var(--light); }
.logo img { display: block; height: 40px; width: auto; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; justify-content: center; gap: 3px; text-transform: uppercase; }
.logo-text b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1; letter-spacing: .02em; }
.logo-text > span { display: block; font-family: var(--font-cond); font-weight: 700; font-size: 12.5px; line-height: 1; letter-spacing: .24em; color: var(--orange); }
@media (max-width: 360px) { .logo-text { display: none; } }

/* En-tête */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid rgba(250,250,250,.08); }
.site-header .bar { max-width: 1200px; margin: 0 auto; padding: 10px 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-wide { display: none; align-items: center; gap: 22px; font-family: var(--font-cond); font-weight: 600; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.nav-wide a { color: var(--light); }
.nav-wide a:hover { color: var(--orange); }
.nav-wide a.cta { background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: 3px; font-weight: 700; }
.burger { background: transparent; border: 1px solid rgba(250,250,250,.25); color: var(--light); width: 48px; height: 44px; border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--light); transition: transform .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: flex; flex-direction: column; padding: 8px 20px 24px; border-top: 1px solid rgba(250,250,250,.08); font-family: var(--font-display); font-size: 28px; text-transform: uppercase; letter-spacing: .01em; max-height: calc(100svh - 64px); overflow-y: auto; }
.nav-mobile a { color: var(--light); padding: 10px 0; border-bottom: 1px solid rgba(250,250,250,.08); }
.nav-mobile a.cta { margin-top: 16px; border: 0; background: var(--orange); color: var(--ink); padding: 16px; border-radius: 3px; text-align: center; font-family: var(--font-cond); font-weight: 700; font-size: 20px; letter-spacing: .06em; }
@media (min-width: 960px) {
  .nav-wide { display: flex; }
  .burger, .nav-mobile { display: none !important; }
}

/* Hero */
.hero { position: relative; min-height: min(calc(100svh - 64px), 860px); display: flex; align-items: flex-end; }
.hero .ph { align-items: flex-start; justify-content: flex-end; padding: 20px; text-align: right; background-color: #23302A; background-image: radial-gradient(ellipse at 70% 30%, rgba(230,74,26,.18), transparent 60%), repeating-linear-gradient(135deg, rgba(250,250,250,.035) 0 14px, transparent 14px 28px); }
.hero .ph::before { display: none; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(28,28,28,0) 30%, rgba(28,28,28,.85) 100%); }
.hero-inner { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 48px 20px 56px; display: flex; flex-direction: column; gap: 20px; }
.hero-logo { display: block; width: clamp(130px, 16vw, 190px); height: auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,.55)); }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(46px, 11vw, 112px); line-height: .92; text-transform: uppercase; letter-spacing: .005em; max-width: 12ch; }
.hero p { margin: 0; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.45; max-width: 36ch; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Relief */
.ridge { display: block; width: 100%; height: 56px; }

/* Le club */
.club { padding: 80px 20px 72px; }
.club .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: end; }
.club .text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.club .lead { max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(250,250,250,.12); border: 1px solid rgba(250,250,250,.12); }
.stats > div { background: var(--bg); padding: 22px 14px; display: flex; flex-direction: column; gap: 6px; }
.stats strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 6vw, 52px); line-height: 1; color: var(--orange); }
.stats span { font-size: 15px; color: rgba(250,250,250,.75); }

/* Disciplines */
.on-light { background: var(--light); color: var(--ink); }
.disciplines { padding: 56px 20px 80px; }
.cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.disc { background: #FFFFFF; border: 1px solid var(--line-light); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.disc .img { aspect-ratio: 4/3; position: relative; max-width: 100%; }
.disc .body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.disc .title { display: flex; align-items: center; gap: 12px; }
.badge { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--orange); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; }
.disc h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; text-transform: uppercase; line-height: 1; }
.disc p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); flex: 1; }
.level { font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; border-top: 1px solid var(--line-light); padding-top: 12px; }

/* Entraînements */
.alt { background: var(--bg2); }
.trainings { padding: 56px 20px 80px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 24px; }
.slot { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid rgba(250,250,250,.14); }
.slot:last-of-type { border-bottom: 1px solid rgba(250,250,250,.14); }
.slot .day { font-family: var(--font-display); font-size: 30px; text-transform: uppercase; line-height: 1; }
.slot .when { font-family: var(--font-cond); font-weight: 700; font-size: 22px; color: var(--orange); }
.slot .where { font-size: 16px; color: rgba(250,250,250,.82); margin-top: 4px; }
.note { margin: 20px 0 0; font-size: 15px; line-height: 1.5; color: rgba(250,250,250,.7); }
.map { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.map .img { aspect-ratio: 4/3; position: relative; border-radius: 4px; overflow: hidden; max-width: 100%; }
.map .meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.map .meta span { color: rgba(250,250,250,.82); }
.map .meta a { font-weight: 600; }

/* Débuter */
.start { background: var(--orange); color: var(--ink); padding: 72px 20px 80px; }
.start .eyebrow { color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.step { background: var(--ink); color: var(--light); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.step .num { font-family: var(--font-display); font-size: 56px; line-height: 1; color: var(--orange); }
.step h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; text-transform: uppercase; }
.step ul, .step p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(250,250,250,.85); }
.step ul { padding-left: 18px; }
.start .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-top: 2px solid var(--ink); padding-top: 24px; }
.start .foot p { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600; max-width: 46ch; }

/* Événements */
.events { padding: 80px 20px; }
.event { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid rgba(250,250,250,.14); }
.event:last-child { border-bottom: 1px solid rgba(250,250,250,.14); }
.date { text-align: center; border: 2px solid var(--orange); border-radius: 3px; padding: 6px 0; }
.date b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; }
.date span { font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.event .info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.event .name { font-family: var(--font-cond); font-weight: 700; font-size: 23px; text-transform: uppercase; }
.event .place { font-size: 15px; color: rgba(250,250,250,.72); margin-top: 2px; }
.tag { font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; border: 1px solid rgba(250,250,250,.4); color: var(--light); }
.tag.comp { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* Galerie */
.gallery { padding: 80px 20px; }
.gallery .top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.gallery .top > a { font-family: var(--font-cond); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.grid6 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(30%, 220px), 1fr)); gap: 6px; }
.grid6 > div { aspect-ratio: 1; position: relative; max-width: 100%; }
.grid6 .ph { font-size: 12px; padding: 8px; }

/* Adhésion */
.join { padding: 80px 20px; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.price { border: 2px solid var(--ink); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.price.featured { background: var(--ink); color: var(--light); }
.price .label { font-family: var(--font-cond); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.price.featured .label { color: var(--orange); }
.price .amount { font-family: var(--font-display); font-size: 52px; line-height: 1; }
.price .amount small { font-size: 22px; }
.price .desc { font-size: 15px; color: #555; }
.price.featured .desc { color: rgba(250,250,250,.75); }
.included { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px 32px; border-top: 1px solid #DDD9D3; padding-top: 28px; }
.included h3 { grid-column: 1 / -1; margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; text-transform: uppercase; }
.included div { display: flex; gap: 12px; align-items: baseline; font-size: 17px; line-height: 1.5; }
.included div::before { content: ""; width: 10px; height: 10px; background: var(--orange); flex-shrink: 0; transform: rotate(45deg); }

/* Contact */
.contact { padding: 80px 20px; }
.contact .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; }
.contact .text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.contact .lead { max-width: 42ch; }
.links { display: flex; flex-direction: column; gap: 10px; font-size: 17px; padding-top: 8px; }
.links a { color: var(--light); }
.links .mail { color: var(--orange); font-weight: 600; user-select: all; }
form { display: flex; flex-direction: column; gap: 16px; background: var(--bg2); padding: 24px; border-radius: 4px; }
label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-cond); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
input, textarea { padding: 0 14px; border: 1px solid rgba(250,250,250,.2); background: var(--field); color: var(--light); border-radius: 3px; font-family: var(--font-body); font-size: 17px; letter-spacing: 0; text-transform: none; }
input { height: 52px; }
textarea { padding: 12px 14px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
input::placeholder { color: rgba(250,250,250,.4); }
form button { height: 58px; background: var(--orange); color: var(--ink); border: 0; border-radius: 3px; cursor: pointer; font-family: var(--font-cond); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
form button:hover { background: #FF5A28; }
.form-note { margin: 0; font-size: 13px; color: rgba(250,250,250,.5); text-align: center; }
.sent { background: var(--orange); color: var(--ink); padding: 32px 24px; border-radius: 4px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.sent h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 40px; text-transform: uppercase; line-height: 1; }
.sent p { margin: 0; font-size: 18px; line-height: 1.5; }
.sent button { align-self: flex-start; background: transparent; border: 2px solid var(--ink); color: var(--ink); padding: 10px 16px; border-radius: 3px; cursor: pointer; font-family: var(--font-cond); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; }

/* Pied de page */
.site-footer { background: var(--bg-deep); padding: 56px 20px 120px; border-top: 4px solid var(--orange); }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.logo-footer img { display: block; width: 150px; height: auto; }
.site-footer .btn { font-size: 18px; padding: 16px 22px; }
.partners-title { font-family: var(--font-cond); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,250,250,.6); }
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.partners > div { height: 64px; position: relative; }
.partners .ph { background-color: #1D1D1C; align-items: center; justify-content: center; }
.partners .ph::before { display: none; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: rgba(250,250,250,.6); border-top: 1px solid rgba(250,250,250,.1); padding-top: 20px; }
.legal div { display: flex; gap: 18px; }
.legal a { color: rgba(250,250,250,.75); }
@media (min-width: 960px) { .site-footer { padding-bottom: 56px; } }

/* Barre mobile */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(17,17,17,.94); border-top: 1px solid rgba(250,250,250,.1); display: flex; gap: 8px; }
.mobile-bar a { height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 3px; font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mobile-bar .primary { flex: 1; background: var(--orange); color: var(--ink); font-size: 18px; }
.mobile-bar .secondary { width: 96px; border: 2px solid var(--light); color: var(--light); font-size: 16px; }
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* Photos */
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #2E2D2A; }
.hero .photo { filter: saturate(1.05); }
.hero-shade { background: linear-gradient(180deg, rgba(28,28,28,.15) 0%, rgba(28,28,28,0) 30%, rgba(28,28,28,.88) 100%); }
.grid6 > div { overflow: hidden; }
.grid6 .photo { transition: transform .4s ease; }
.grid6 > div:hover .photo { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .grid6 .photo { transition: none; } }

/* Annonce course */
.race { background: var(--bg-deep); border-top: 4px solid var(--orange); border-bottom: 1px solid rgba(250,250,250,.08); padding: 32px 20px; }
.race .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 32px; }
.race-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 112px; height: 112px; background: var(--orange); color: var(--ink); border-radius: 4px; }
.race-date b { font-family: var(--font-display); font-weight: 400; font-size: 58px; line-height: .9; }
.race-date span { font-family: var(--font-cond); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.race-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.race h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 5vw, 46px); line-height: 1; text-transform: uppercase; }
.race p { margin: 0; font-size: 17px; line-height: 1.5; color: rgba(250,250,250,.82); max-width: 60ch; }
@media (max-width: 760px) {
  .race .wrap { grid-template-columns: auto minmax(0, 1fr); }
  .race-date { width: 84px; height: 84px; }
  .race-date b { font-size: 42px; }
  .race-date span { font-size: 12px; }
  .race .btn { grid-column: 1 / -1; }
}
/* Sur mobile, le logo est déjà dans l'en-tête : on libère le hero pour le titre */
@media (max-width: 759px) { .hero-logo { display: none; } }
