/* Les Hérons, basket club de la Varenne (exemple fictif Simplavie) */

@font-face { font-family: "Big Shoulders"; src: url("fonts/big-shoulders.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --yellow: #F4C430;   /* peinture de la raquette */
  --slate: #1E2A38;    /* bleu héron, le texte */
  --slate-2: #2C3B4D;
  --mist: #E7ECF0;     /* gris-bleu clair des sections */
  --muted: #4A5866;
  --white: #FFFFFF;
  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 4.5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--slate); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: .005em; text-wrap: balance; }
p, ul, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }
.shell { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--pad); }

/* Bandeau « exemple fictif » */
.demo-note { background: var(--slate); color: #fff; font-size: .85rem; }
.demo-note-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-block: .5rem; }
.demo-note a { color: var(--yellow); font-weight: 600; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.35rem; border-radius: 6px; border: 2px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.btn-ink { background: var(--slate); color: #fff; }
.btn-ink:hover { background: var(--slate-2); }
.btn-line { border-color: var(--slate); color: var(--slate); }
.btn-line:hover { background: var(--slate); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--slate); }
.btn-yellow:hover { background: #fff; }
.link { font-weight: 600; text-underline-offset: .2em; }

/* En-tête */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 2px solid var(--slate); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-ball { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: .9; }
.brand-name small { display: block; font-family: var(--body); font-weight: 600; font-size: .72rem; letter-spacing: 0; color: var(--muted); margin-top: .2rem; }
.nav { display: flex; align-items: center; gap: 1.4rem; font-weight: 600; font-size: .98rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.nav .nav-cta { padding: .5rem 1rem; border-radius: 6px; background: var(--yellow); }
.nav .nav-cta:hover { background: var(--slate); color: #fff; text-decoration: none; }
.nav-toggle { display: none; min-height: 2.75rem; padding: .4rem 1rem; border: 2px solid var(--slate); border-radius: 6px; background: none; color: var(--slate); font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--pad) 1.25rem; background: var(--white); border-bottom: 2px solid var(--slate); }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--mist); }
  .nav .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 0; }
}

/* Accueil : le terrain */
.court { background: var(--yellow); overflow: hidden; }
.court-grid { display: grid; gap: 1rem; padding-block: clamp(2.5rem, 7vw, 5rem) 0; }
@media (min-width: 900px) { .court-grid { grid-template-columns: 1.45fr .75fr; align-items: center; padding-block: 4.5rem; } }
.court h1 { font-size: clamp(3rem, 10.5vw, 5.6rem); font-weight: 900; max-width: 11.5em; }
.court-lead { margin-top: 1.4rem; max-width: 33em; font-size: 1.15rem; }
.court-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.court-free { margin-top: 1rem; font-size: .95rem; }
.court-drawing { width: min(100%, 440px); justify-self: center; margin-bottom: -6px; }
@media (min-width: 900px) { .court-drawing { margin-bottom: 0; } }

/* Le dessin se trace une fois, au chargement */
.lines path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: trace 1.1s ease-out forwards; }
.lines .l4 { stroke-dasharray: 14 14; stroke-dashoffset: 0; opacity: 0; animation: appear .4s ease-out .9s forwards; }
.lines .l2 { animation-delay: .15s; } .lines .l3 { animation-delay: .35s; } .lines .l5 { animation-delay: .25s; } .lines .l6 { animation-delay: .5s; }
.hoop { opacity: 0; animation: appear .3s ease-out .8s forwards; }
.shot { opacity: 0; animation: appear .5s ease-out 1.1s forwards; }
.ball { animation: shoot 1.2s cubic-bezier(.3,0,.4,1) 1.5s both; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes shoot {
  0% { transform: translate(0, 0); }
  55% { transform: translate(-70px, -230px); }
  100% { transform: translate(-118px, -288px) scale(.7); opacity: 1; }
}
.ball { transform-box: view-box; transform-origin: 330px 360px; }

/* Sections */
.intro { margin-top: .9rem; max-width: 40em; color: var(--muted); font-size: 1.1rem; }
section h2 { font-size: clamp(2.5rem, 7vw, 4rem); }

/* Signature : le tableau d'affichage */
.finder { padding-block: clamp(3.5rem, 8vw, 6rem); }
.board { margin-top: 2.25rem; display: grid; background: var(--slate); color: #fff; border-radius: 14px; overflow: hidden; }
@media (min-width: 860px) { .board { grid-template-columns: .9fr 1.1fr; } }
.board-form { padding: clamp(1.5rem, 4vw, 2.5rem); border-bottom: 2px solid var(--slate-2); }
@media (min-width: 860px) { .board-form { border-bottom: 0; border-right: 2px solid var(--slate-2); } }
.board-form label { display: block; font-weight: 600; font-size: 1.05rem; }
.board-input { display: flex; gap: .6rem; margin-top: .7rem; }
.board-input input {
  width: 100%; min-width: 0; min-height: 3.6rem; padding: .3rem .9rem;
  font-family: var(--display); font-weight: 800; font-size: 2.2rem; letter-spacing: .06em; color: var(--yellow);
  background: #131c26; border: 2px solid #3d4f63; border-radius: 8px;
}
.board-input input::placeholder { color: #55687c; }
.board-input input:focus { outline: none; border-color: var(--yellow); }
.board-input input::-webkit-outer-spin-button, .board-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.board-input input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.board-quick { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: #c3ccd6; font-size: .95rem; }
.board-quick button { min-height: 2.5rem; padding: .2rem .8rem; border: 1.5px solid #4d6075; border-radius: 6px; background: none; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.board-quick button:hover { border-color: var(--yellow); color: var(--yellow); }
.board-screen { padding: clamp(1.5rem, 4vw, 2.5rem); min-height: 15rem; display: flex; flex-direction: column; justify-content: center; }
.board-empty { color: #9aa8b6; font-size: 1.05rem; }
.cat-name { font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 14vw, 6.5rem); line-height: .85; color: var(--yellow); }
.cat-age { margin-top: .5rem; font-size: 1.1rem; font-weight: 600; }
.cat-rows { list-style: none; padding: 0; margin-top: 1.25rem; display: grid; gap: .55rem; }
.cat-rows li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; padding-top: .55rem; border-top: 1px solid #3d4f63; }
.cat-rows span { color: #9aa8b6; }
.cat-note { margin-top: 1.25rem; color: #c3ccd6; font-size: .95rem; }
.cat-note a { color: var(--yellow); font-weight: 600; }
.board-screen.is-new .cat-name { animation: flip .35s ease-out; }
@keyframes flip { from { opacity: 0; transform: translateY(.3em); } to { opacity: 1; transform: none; } }

.planning { margin-top: 1.5rem; border-top: 2px solid var(--slate); border-bottom: 2px solid var(--slate); }
.planning summary { padding: 1rem 0; font-weight: 600; cursor: pointer; }
.planning-scroll { overflow-x: auto; padding-bottom: 1.25rem; }
.planning table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .98rem; }
.planning caption { text-align: left; color: var(--muted); padding-bottom: .75rem; }
.planning th, .planning td { text-align: left; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--mist); vertical-align: top; }
.planning th { font-size: .9rem; color: var(--muted); }
.planning td:first-child { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }

/* Le club */
.club { background: var(--mist); padding-block: clamp(3.5rem, 8vw, 6rem); }
.club-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .club-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.club-lead { margin-top: 1.2rem; font-size: 1.15rem; max-width: 32em; }
.values { list-style: none; padding: 0; display: grid; gap: 1.75rem; }
.values li { padding-left: 1.25rem; border-left: 5px solid var(--yellow); }
.values h3 { font-size: 1.9rem; }
.values p { margin-top: .35rem; color: var(--muted); }

/* Matchs */
.games { padding-block: clamp(3.5rem, 8vw, 6rem); }
.fixtures { list-style: none; padding: 0; margin-top: 2rem; border-top: 2px solid var(--slate); }
.fixtures li { display: grid; gap: .15rem 1.5rem; padding-block: 1rem; border-bottom: 1px solid #c9d2da; }
@media (min-width: 720px) { .fixtures li { grid-template-columns: 11rem 12rem 1fr; align-items: baseline; } }
.fixtures time { color: var(--muted); }
.fixtures time b { color: var(--slate); }
.fix-team { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.fix-opp { color: var(--slate); }

/* Inscription */
.signup { background: var(--yellow); padding-block: clamp(3.5rem, 8vw, 6rem); }
.signup-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .signup-grid { grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: center; } }
.signup-intro > p { margin-top: 1rem; font-size: 1.1rem; }
.signup-steps { margin-top: 1.5rem; padding-left: 1.4rem; display: grid; gap: .8rem; }
.signup-steps li::marker { font-family: var(--display); font-weight: 900; font-size: 1.3em; }
.signup-card { background: #fff; border: 2px solid var(--slate); border-radius: 14px; padding: clamp(1.5rem, 4vw, 2.25rem); }
.signup-price { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 8vw, 3.4rem); line-height: 1; }
.signup-card p + p { margin-top: .4rem; color: var(--muted); }
.signup-card .btn { margin-top: 1.4rem; width: 100%; }
.signup-card .signup-small { margin-top: .7rem; font-size: .88rem; }

/* Bénévoles */
.helpers { padding-block: clamp(3.5rem, 8vw, 6rem); }
.helpers-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .helpers-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.helpers-grid > div > p { font-size: 1.1rem; }
.helpers-list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .5rem; }
@media (min-width: 560px) { .helpers-list { grid-template-columns: 1fr 1fr; } }
.helpers-list li { padding: .7rem .9rem; background: var(--mist); border-radius: 8px; font-weight: 600; }

/* Contact */
.contact { background: var(--slate); color: #fff; padding-block: clamp(3.5rem, 8vw, 5rem); }
.contact-grid { display: grid; gap: 1.75rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; } }
.contact h2 { color: var(--yellow); }
.contact h3 { font-family: var(--body); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.contact-block p { margin-top: .35rem; color: #c3ccd6; }
.contact-block a { color: #fff; font-weight: 600; }
.contact :focus-visible { outline-color: var(--yellow); }

.foot { padding-block: 1.5rem; font-size: .9rem; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lines path { stroke-dashoffset: 0; } .lines .l4, .hoop, .shot { opacity: 1; }
}
