/* ============================================================
   ConcertABBoyz — Charte graphique KFC Antilles
   Couleurs & typographie : kfc-antilles.com
   ============================================================ */

/* ── Fonts (KFC officiel) ────────────────────────────────────── */
@font-face {
  font-family: 'National2condensed';
  src: url('/fonts/National2Condensed-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'National2condensed';
  src: url('/fonts/National2Condensed-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'National2';
  src: url('/fonts/National2-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ───────────────────────────────────────────────── */
:root {
  --crimson:   #e4042d;
  --crimson-dk:#b8001f;
  --black:     #000000;
  --dark:      #0d0d0e;
  --white:     #ffffff;
  --offwhite:  #f8f7f5;
  --lightgrey: #f2f2f2;
  --grey:      #7e8990;
  --border:    #cfcfcf;
  --shadow:    1px 1px 6px rgba(126,137,144,.45);
  --success:   #22c55e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'National2', 'Segoe UI', Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  min-height: 100vh;
}

/* ── Notes musicales (hero background) ──────────────────────── */
.notes-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.note {
  position: absolute;
  bottom: -60px;
  font-size: 1.8rem;
  color: rgba(255,255,255,.1);
  animation: floatNote linear infinite;
  user-select: none;
}
.note:nth-child(1)  { left:  4%; animation-duration: 13s; animation-delay:  0s; font-size: 1.2rem; }
.note:nth-child(2)  { left: 11%; animation-duration: 19s; animation-delay:  4s; }
.note:nth-child(3)  { left: 21%; animation-duration: 15s; animation-delay:  1s; font-size: 2.2rem; color: rgba(255,255,255,.06); }
.note:nth-child(4)  { left: 32%; animation-duration: 21s; animation-delay:  6s; font-size: 1rem; }
.note:nth-child(5)  { left: 44%; animation-duration: 17s; animation-delay:  9s; }
.note:nth-child(6)  { left: 56%; animation-duration: 23s; animation-delay:  2s; color: rgba(255,255,255,.07); }
.note:nth-child(7)  { left: 66%; animation-duration: 14s; animation-delay:  7s; font-size: 2rem; }
.note:nth-child(8)  { left: 77%; animation-duration: 18s; animation-delay:  3s; }
.note:nth-child(9)  { left: 87%; animation-duration: 20s; animation-delay: 10s; font-size: 1rem; }
.note:nth-child(10) { left: 94%; animation-duration: 16s; animation-delay:  5s; }

@keyframes floatNote {
  0%   { transform: translateY(0)      rotate(0deg);   opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) rotate(720deg); opacity: 0; }
}

/* ══════════════════════════════════════════════
   TOP BAR (bande noire du haut — style KFC)
══════════════════════════════════════════════ */
.topb {
  background-color: var(--black);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 10px 20px;
}
.topb-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 1000px;
  width: 100%;
}
.topb-text {
  color: var(--white);
  font-family: 'National2condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .5px;
  text-align: center;
}
.topb-badge {
  background-color: var(--crimson);
  color: var(--white);
  font-family: 'National2condensed', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 3px;
}

/* ══════════════════════════════════════════════
   NAVBAR (barre blanche avec logo KFC)
══════════════════════════════════════════════ */
.navbar {
  background-color: var(--white);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1000px;
  width: 100%;
  justify-content: center;
}
.top-logo {
  width: 65px;
  height: auto;
  flex-shrink: 0;
}
.navbar-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.navbar-title {
  font-family: 'National2condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--black);
  line-height: 1.1;
}
.navbar-title span {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  color: var(--grey);
  text-transform: none;
  letter-spacing: 0;
}

/* ══════════════════════════════════════════════
   HERO — Bandeau rouge concert
══════════════════════════════════════════════ */
.hero {
  background-color: var(--crimson);
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(0,0,0,.04) 40px,
      rgba(0,0,0,.04) 41px
    );
  position: relative;
  overflow: hidden;
  padding: 40px 20px 48px;
  text-align: center;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.hero-label {
  display: inline-block;
  background: var(--white);
  color: var(--crimson);
  font-family: 'National2condensed', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 3px;
  margin-bottom: 18px;
}
.hero-title {
  font-family: 'National2condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 4rem);
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-family: 'National2condensed', sans-serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: rgba(255,255,255,.85);
  letter-spacing: .5px;
  margin-bottom: 32px;
}

/* ── Compte à rebours ────────────────────────────────────────── */
.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cd-block {
  background: var(--white);
  border-radius: 3px;
  padding: 14px 18px;
  min-width: 76px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.cd-block .cd-num {
  display: block;
  font-family: 'National2condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--crimson);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-block .cd-unit {
  font-family: 'National2condensed', sans-serif;
  font-size: .65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 5px;
  display: block;
}
.cd-sep {
  font-family: 'National2condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  align-self: flex-start;
  padding-top: 14px;
  line-height: 1;
}
.cd-label {
  width: 100%;
  font-family: 'National2condensed', sans-serif;
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
}

/* ── Jeu fermé ───────────────────────────────────────────────── */
.closed-msg {
  display: none;
  background: var(--black);
  border-radius: 4px;
  padding: 18px 24px;
  color: var(--white);
  font-family: 'National2condensed', sans-serif;
  font-size: 1.1rem;
  letter-spacing: .5px;
}

/* ══════════════════════════════════════════════
   SECTION FORMULAIRE
══════════════════════════════════════════════ */
.form-section {
  background: var(--offwhite);
  padding: 40px 20px 60px;
  display: flex;
  justify-content: center;
}

.form-card {
  background: var(--white);
  border-radius: 0;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 520px;
  padding: 32px 28px;
}

.form-card-title {
  font-family: 'National2condensed', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--black);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--crimson);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Champs ──────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-family: 'National2condensed', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 0;
  padding: 12px 14px;
  font-family: 'National2', Arial, sans-serif;
  font-size: .95rem;
  color: var(--black);
  transition: border-color .2s;
  outline: none;
  -webkit-appearance: none;
}
.field input:focus           { border-color: var(--crimson); }
.field input.invalid         { border-color: var(--crimson); background: #fff8f8; }
.field input.valid           { border-color: #a3d9a5; }

.field-error {
  font-size: .72rem;
  color: var(--crimson);
  margin-top: 4px;
  display: none;
  font-family: 'National2condensed', sans-serif;
  letter-spacing: .3px;
}
.field-error.show { display: block; }

.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 400px) { .fields-row { grid-template-columns: 1fr; } }

/* ── Checkbox règlement ──────────────────────────────────────── */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  cursor: pointer;
}
.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--crimson);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  border-radius: 0;
}
.checkbox-field span {
  font-family: 'National2condensed', sans-serif;
  font-size: .9rem;
  color: #444;
  line-height: 1.4;
}
.checkbox-field a {
  color: var(--crimson);
  font-weight: 700;
  text-decoration: underline;
}
.checkbox-field a:hover { color: var(--crimson-dk); }

/* ── Bouton submit (style KFC list-cta) ──────────────────────── */
.btn-submit {
  width: 100%;
  padding: 0 20px;
  height: 55px;
  background-color: var(--crimson);
  color: var(--white);
  font-family: 'National2condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit:hover:not(:disabled) { background-color: var(--crimson-dk); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── Messages ────────────────────────────────────────────────── */
.form-message {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  font-family: 'National2condensed', sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  border-radius: 3px;
}
.form-message.success {
  display: block;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #15803d;
}
.form-message.error {
  display: block;
  background: #fff8f8;
  border: 1.5px solid var(--crimson);
  color: var(--crimson);
}

/* ── Mention SOAC ────────────────────────────────────────────── */
.soac {
  margin-top: 14px;
  text-align: center;
  font-family: 'National2condensed', sans-serif;
  font-size: .78rem;
  color: var(--grey);
  letter-spacing: .3px;
}

/* ══════════════════════════════════════════════
   FOOTER (style KFC — fond très sombre)
══════════════════════════════════════════════ */
.site-footer {
  background-color: var(--dark);
  padding: 32px 20px;
  text-align: center;
}
.footer-logo {
  width: 50px;
  height: auto;
  margin-bottom: 14px;
  opacity: .6;
}
.footer-text {
  font-family: 'National2condensed', sans-serif;
  font-size: .8rem;
  color: #ababab;
  letter-spacing: .5px;
}
.footer-text a { color: #ababab; text-decoration: none; }
.footer-text a:hover { color: var(--white); }

/* ── Confetti ────────────────────────────────────────────────── */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .form-card { padding: 22px 16px; }
  .hero { padding: 28px 16px 36px; }
  .cd-block { min-width: 58px; padding: 10px 10px; }
  .cd-block .cd-num { font-size: 1.9rem; }
  .topb-inner { flex-direction: column; gap: 6px; }
}
