/**
 * Outil - Checklist du cycliste — Vélo and Co
 * Version : 1.0.1
 * Tout est scopé sous .vac-cc
 */

.vac-cc {
  font-family: 'Inter', -apple-system, sans-serif;
  max-width: 42rem;
  margin: 0 auto;
}

.vac-cc *, .vac-cc *::before, .vac-cc *::after { box-sizing: border-box; }

/* Blindage anti-thème / Elementor sur d'éventuels titres du bloc */
.vac-cc h2, .vac-cc h3 {
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #ffffff !important;
  margin: 0 0 0.875rem !important;
  padding: 0 !important;
}

/* ─── Carte sombre ─── */

.vac-cc-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .vac-cc-card { padding: 2rem; }
}

.vac-cc-field { margin-bottom: 1.5rem; }

.vac-cc-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #99a1af;
  margin-bottom: 0.75rem;
}
.vac-cc-label--green { color: #99ff00; }
.vac-cc-light { font-weight: 400; }

/* Blindés (!important) : les thèmes / Elementor stylent input[type=text]
   avec des sélecteurs plus spécifiques (fond blanc, largeur auto…) */
.vac-cc input.vac-cc-input {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  border-radius: 1rem !important;
  padding: 0.75rem 1rem !important;
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  transition: border-color 0.2s !important;
  box-sizing: border-box !important;
}
.vac-cc input.vac-cc-input::placeholder { color: #6a7282 !important; opacity: 1 !important; }
.vac-cc input.vac-cc-input:focus {
  border-color: rgba(153, 255, 0, 0.5) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
}

.vac-cc-items input.vac-cc-input { margin-bottom: 0.5rem !important; }
.vac-cc-items input.vac-cc-input:last-child { margin-bottom: 0 !important; }

/* ─── Grilles d'options ─── */

.vac-cc-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.vac-cc-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
@media (max-width: 640px) {
  .vac-cc-grid4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .vac-cc-grid2 { grid-template-columns: 1fr; }
}

/* Blindés (!important) : les thèmes stylent aussi les <button> */
.vac-cc button.vac-cc-opt {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.875rem !important;
  border-radius: 1rem !important;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  transition: background 0.15s, border-color 0.15s !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
}
.vac-cc button.vac-cc-opt:hover { background: #111827 !important; }
.vac-cc button.vac-cc-opt.is-sel { background: rgba(153, 255, 0, 0.07) !important; border-color: #99ff00 !important; }

.vac-cc button.vac-cc-opt--stack { flex-direction: column; justify-content: center; gap: 0.125rem; padding: 0.75rem 0.5rem !important; text-align: center; }

.vac-cc-opt-emoji { font-size: 1.25rem; line-height: 1; }
.vac-cc-opt-body { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.vac-cc-opt--stack .vac-cc-opt-body { align-items: center; }
.vac-cc-opt-title { font-size: 1rem; font-weight: 600; color: #ffffff; line-height: 1.3; }
.vac-cc-opt-sub { font-size: 0.875rem; color: #99a1af; line-height: 1.3; }

/* ─── Avatars ─── */

.vac-cc-avatars { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.vac-cc button.vac-cc-avatar {
  width: 2.75rem !important;
  height: 2.75rem !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0.75rem !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  transition: background 0.15s, border-color 0.15s !important;
}
.vac-cc button.vac-cc-avatar:hover { background: #111827 !important; }
.vac-cc button.vac-cc-avatar.is-sel { background: rgba(153, 255, 0, 0.07) !important; border-color: #99ff00 !important; }

/* ─── Aperçu miniature du poster ─── */

.vac-cc-pv-caption { font-size: 0.875rem; font-weight: 600; color: #99ff00; margin: 0 0 0.5rem; }

.vac-cc-pv {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vac-cc-pv-head {
  background: #0a0a0a;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.vac-cc-pv-brand { flex-shrink: 0; }
.vac-cc-pv-brand img { height: 0.625rem; display: block; margin-bottom: 0.125rem; }
.vac-cc-pv-overline {
  font-family: 'Rajdhani', sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #99ff00;
}
.vac-cc-pv-center { flex: 1; min-width: 0; text-align: center; }
.vac-cc-pv-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vac-cc-pv-title span { color: #99ff00; }
.vac-cc-pv-meta { font-size: 6.5px; line-height: 1.3; margin-top: 0.125rem; }
.vac-cc-pv-grade {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  background: #99ff00;
  color: #000000;
  border-radius: 999px;
  padding: 1px 6px;
}
.vac-cc-pv-club { color: #99a1af; margin-left: 0.25rem; }
.vac-cc-pv-side { flex-shrink: 0; text-align: right; }
.vac-cc-pv-avatar { font-size: 1.125rem; line-height: 1; }
.vac-cc-pv-sortie { font-size: 7px; color: #99a1af; margin-top: 0.125rem; }

.vac-cc-pv-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.375rem; align-items: start; }
.vac-cc-pv-col { border: 1px solid #1e2939; border-radius: 0.375rem; overflow: hidden; }
.vac-cc-pv-colhead {
  background: #0a0a0a;
  padding: 0.25rem 0.375rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 7px;
  font-weight: 700;
  color: #99ff00;
  white-space: nowrap;
  overflow: hidden;
}
.vac-cc-pv-colbody { padding: 0.375rem; }
.vac-cc-pv-item { display: flex; align-items: center; gap: 0.25rem; margin-bottom: 0.25rem; }
.vac-cc-pv-item:last-child { margin-bottom: 0; }
.vac-cc-pv-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  border: 1px solid #4a5565;
  flex-shrink: 0;
}
.vac-cc-pv-dot--blank { border-color: #99a1af; }
.vac-cc-pv-txt {
  font-size: 7px;
  color: #1e2939;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vac-cc-pv-blankline { flex: 1; border-bottom: 1px dotted #d1d5dc; }

.vac-cc-pv-notes {
  margin-top: 0.375rem;
  border: 1px dashed #d1d5dc;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 7px;
  color: #6a7282;
}

.vac-cc-pv-foot { font-size: 0.875rem; color: #6a7282; margin: 0.5rem 0 0; }

#vac-cc-preview { margin-bottom: 1.5rem; }
#vac-cc-preview:empty { margin-bottom: 0; }

/* ─── CTA ─── */

.vac-cc button.vac-cc-cta {
  width: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 !important;
  padding: 1rem !important;
  border-radius: 999px !important;
  border: none !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  background: #99ff00 !important;
  color: #0a0a0a !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s !important;
}
.vac-cc button.vac-cc-cta:hover:not(:disabled) { transform: scale(1.02); background: #99ff00 !important; color: #0a0a0a !important; }
.vac-cc button.vac-cc-cta:disabled { background: #222222 !important; color: #555555 !important; cursor: not-allowed; }

.vac-cc-generated {
  text-align: center;
  font-size: 0.875rem;
  color: #99ff00;
  margin: 0.75rem 0 0;
}

/* ─── Astuce sous la carte ─── */

.vac-cc-tip {
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px dashed #e5e7eb;
  background: #f9fafb;
  font-size: 1rem;
  color: #6a7282;
  line-height: 1.6;
}
.vac-cc-tip strong { color: #364153; }
