/* HS CENTER — ivoire #FAF8F5, cartes blanches, vert #0C5A40, or #E6B800. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: #FAF8F5;
  color: #1A1A1A;
}
body {
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  font-weight: 400;
}

img, video, svg { max-width: 100%; height: auto; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

:root {
  --signal: #0C5A40;
  --signal-dark: #084532;
  --carbon: #121212;
  --asphalt: #161616;
  --paper: #FAF8F5;
  --card: #FFFFFF;
  --line: #E8E4DC;
  --ink: #1A1A1A;
  --amber: #E6B800;
  --out: #5C5C5C;
  --shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
}

.font-display { font-family: "Barlow Condensed", "Barlow", system-ui, sans-serif; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--signal);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem;
  border-radius: 0;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn-primary:hover { background: var(--signal-dark); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid #1A1A1A;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem;
  border-radius: 0;
  text-decoration: none;
  background: transparent;
}

.logo-wordmark {
  height: 44px;
  width: auto;
  max-width: min(100%, 280px);
  display: block;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  border-radius: 0;
}
@media (min-width: 768px) {
  .logo-wordmark {
    height: 56px;
    max-width: min(100%, 420px);
  }
}

.section { padding: 3.5rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 700;
}
.band-prioritaire.kicker,
.kicker.band-prioritaire { color: var(--signal); }
.band-etudier.kicker,
.kicker.band-etudier { color: #8A6A00; }
.kicker.band-non_retenu { color: #8a3a3a; }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  color: #e8e4dc;
}
.social-link:hover { border-color: var(--signal); color: #fff; }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

.marquee {
  overflow: hidden;
  border-bottom: 1px solid rgba(232,228,220,0.14);
  background: #161616;
  color: #e8e4dc;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.7rem 0;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.stage-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .stage-grid {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.6fr);
    gap: 1.25rem;
    align-items: stretch;
  }
}

.step-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.step-card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  flex: 1;
}
.step-card .n {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--signal);
  line-height: 1;
}

.video-stage {
  position: relative;
  background: #FFFFFF;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 240px;
  overflow: hidden;
}
.video-stage img,
.video-stage video {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .video-stage,
  .video-stage img,
  .video-stage video { min-height: 420px; }
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(18, 18, 18, 0.08);
  color: #1a1a1a;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  width: 100%;
}
.video-play .disc {
  width: 64px;
  height: 64px;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 90, 64, 0.85);
}
.video-play[hidden] { display: none !important; }
.video-play .disc svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }
.video-label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .case-grid { grid-template-columns: 1fr 1fr; }
}
.case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
}
.case-code {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.65rem;
  white-space: nowrap;
}
.case.is-in .case-code { color: var(--signal); }
.case.is-out {
  opacity: 0.85;
  background: #FAF8F5;
  box-shadow: none;
  border-style: dashed;
}
.case.is-out .case-code { color: var(--out); }
.amber { color: var(--amber); letter-spacing: 0.04em; }

input, select, textarea {
  width: 100%;
  border: 1px solid #E8E4DC;
  background: #FFFFFF;
  color: #1A1A1A;
  padding: 0.75rem 0.85rem;
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  min-height: 48px;
}
textarea { min-height: 96px; }
label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.35rem; }

.nav-panel[hidden] { display: none !important; }
.nav-panel a.block {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.score-bar { height: 8px; background: #E8E4DC; overflow: hidden; }
.score-bar > span { display: block; height: 100%; background: var(--signal); }
.band-prioritaire { color: var(--signal); }
.band-etudier { color: var(--amber); }
.band-non_retenu { color: #8a3a3a; }

.btn-primary, .btn-ghost {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  min-height: 48px;
  padding: 0.65rem 0.5rem;
  border: 1px solid #E8E4DC;
  background: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 0;
}
.choice input { width: auto; min-height: 0; }
.choice:has(input:checked) {
  border-color: var(--signal);
  background: var(--signal);
  color: #fff;
}

.mobile-cta {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: #FFFFFF;
  border-top: 1px solid var(--line);
}
.mobile-cta a { flex: 1; text-align: center; }
@media (min-width: 768px) {
  .mobile-cta { display: none; }
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #121212;
  color: #e8e4dc;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
header .mx-auto { min-height: 72px; }

.photo-frame {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: var(--shadow);
}
.photo-frame img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}
.hero-photo {
  min-height: 220px;
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}
@media (min-width: 768px) {
  .hero-photo { min-height: 380px; max-height: 520px; }
}
.shot-caption {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3D3D3D;
  margin-top: 0.5rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}
.filter-btn.is-on {
  border-color: var(--signal);
  background: var(--signal);
  color: #fff;
}

@media (max-width: 767px) {
  body { padding-bottom: 4.5rem; }
  .hero-panel h1 { font-size: 1.875rem; line-height: 0.95; }
  .section { padding: 2.5rem 0; }
  .btn-primary, .btn-ghost { min-height: 48px; }
  .hero-panel + .section { padding-top: 2rem; }
  .section > .kicker,
  .section > h2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.card-surface {
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.status-bar .warn, .amber { color: var(--amber); }

.admin-head {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  min-height: 72px;
}
.admin-wrap { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
.admin-title {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  margin: 0.5rem 0 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
}
.admin-meta { margin-top: 0.75rem; max-width: 40rem; color: #1A1A1A; }
.admin-err { margin-top: 1rem; font-weight: 700; color: #8a3a3a; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.admin-tabs a { text-decoration: none; }
.admin-tabs a.filter-btn { color: inherit; }
.admin-login { max-width: 22rem; margin-top: 2rem; }
.admin-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-nav a { color: #e8e4dc; text-decoration: none; }
.admin-nav a:hover { color: #fff; }

.dossier-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.dossier {
  border: 1px solid var(--line);
  background: #FFFFFF;
  box-shadow: var(--shadow);
  padding: 1rem;
}
.dossier.is-called { border-left: 4px solid var(--signal); }
.dossier-top {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .dossier-top {
    grid-template-columns: 8.5rem minmax(0, 1fr) 9rem;
    align-items: start;
  }
}
.dossier-ref {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0.25rem 0 0;
}
.dossier-main h2 {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.35rem;
  line-height: 0.95;
  margin: 0;
}
.dossier-line { margin: 0.4rem 0 0; font-size: 0.85rem; color: #3D3D3D; }
.dossier-panne { margin: 0.45rem 0 0; }
.dossier-phone { margin: 0.5rem 0 0; }
.dossier-phone a { color: var(--signal); font-weight: 700; text-decoration: none; }
.dossier-phone a:hover { text-decoration: underline; }
.dossier-flags form { margin: 0; }
.call-btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid #1A1A1A;
  background: #FFFFFF;
  color: #1A1A1A;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
}
.call-btn.is-on {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}
.call-when { margin: 0.35rem 0 0; font-size: 0.7rem; color: #3D3D3D; }
.dossier-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 88px));
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.dossier-photos a {
  display: block;
  border: 1px solid var(--line);
  background: #FAF8F5;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.dossier-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dossier-note { margin-top: 0.85rem; }
.dossier-note textarea { min-height: 72px; }
.dossier-save { margin-top: 0.5rem; }

.header-social {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.header-social .social-link {
  width: 36px;
  height: 36px;
}
@media (max-width: 767px) {
  .header-social { display: flex; }
}
.nickel-band {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #E6B800;
  color: #1A1A1A;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1.2;
  border-radius: 0;
}
