/* ==========================================================================
   03-components.css - Boutons, cartes, badges, composants réutilisables
   ========================================================================== */

/* ---- Boutons ---- */
.tinderet-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--t-space-2);
  font-family: var(--t-font-heading);
  font-size: var(--t-font-size-sm);
  font-weight: 600;
  text-decoration: none;
  padding: var(--t-space-3) var(--t-space-6);
  border-radius: var(--t-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-transition-base);
  white-space: nowrap;
  line-height: 1.4;
}

.tinderet-btn--primary {
  background-color: var(--t-primary);
  color: var(--t-white);
  border-color: var(--t-primary);
}
.tinderet-btn--primary:hover {
  background-color: var(--t-primary-dark);
  border-color: var(--t-primary-dark);
  color: var(--t-white);
  transform: translateY(-1px);
  box-shadow: var(--t-shadow-md);
}

.tinderet-btn--secondary {
  background-color: var(--t-secondary);
  color: var(--t-white);
  border-color: var(--t-secondary);
}
.tinderet-btn--secondary:hover {
  background-color: var(--t-secondary-dark);
  border-color: var(--t-secondary-dark);
  color: var(--t-white);
  transform: translateY(-1px);
  box-shadow: var(--t-shadow-md);
}

.tinderet-btn--outline {
  background-color: transparent;
  color: var(--t-primary);
  border-color: var(--t-primary);
}
.tinderet-btn--outline:hover {
  background-color: var(--t-primary);
  color: var(--t-white);
  transform: translateY(-1px);
}

.tinderet-btn--outline-white {
  background-color: transparent;
  color: var(--t-white);
  border-color: rgba(255,255,255,0.8);
}
.tinderet-btn--outline-white:hover {
  background-color: rgba(255,255,255,0.15);
  color: var(--t-white);
  border-color: var(--t-white);
}

.tinderet-btn--accent {
  background-color: var(--t-accent);
  color: var(--t-white);
  border-color: var(--t-accent);
}
.tinderet-btn--accent:hover {
  background-color: var(--t-accent-dark);
  border-color: var(--t-accent-dark);
  color: var(--t-white);
  transform: translateY(-1px);
}

.tinderet-btn--lg {
  font-size: var(--t-font-size-base);
  padding: var(--t-space-4) var(--t-space-8);
  border-radius: var(--t-radius-lg);
}

.tinderet-btn--sm {
  font-size: var(--t-font-size-xs);
  padding: var(--t-space-2) var(--t-space-4);
}

/* ---- Cartes activité ---- */
.tinderet-activity-card {
  background: var(--t-white);
  border-radius: var(--t-radius-lg);
  box-shadow: var(--t-shadow-sm);
  overflow: hidden;
  transition: transform var(--t-transition-base), box-shadow var(--t-transition-base);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--t-border-light);
}
.tinderet-activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--t-shadow-lg);
  text-decoration: none;
}

.tinderet-activity-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--t-space-8) var(--t-space-6) var(--t-space-4);
  background: var(--t-primary-light);
}
.tinderet-activity-card__icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.tinderet-activity-card__body {
  padding: var(--t-space-4) var(--t-space-5) var(--t-space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tinderet-activity-card__title {
  font-family: var(--t-font-heading);
  font-size: var(--t-font-size-base);
  font-weight: 600;
  color: var(--t-text);
  margin-bottom: var(--t-space-2);
  text-align: center;
}

.tinderet-activity-card__status {
  text-align: center;
  margin-top: auto;
  padding-top: var(--t-space-3);
}

/* ---- Cartes événement ---- */
.tinderet-event-card {
  background: var(--t-white);
  border-radius: var(--t-radius-md);
  box-shadow: var(--t-shadow-sm);
  padding: var(--t-space-5) var(--t-space-6);
  display: flex;
  gap: var(--t-space-5);
  border: 1px solid var(--t-border-light);
  text-decoration: none;
  transition: box-shadow var(--t-transition-base);
}
.tinderet-event-card:hover {
  box-shadow: var(--t-shadow-md);
}

.tinderet-event-card__date {
  flex-shrink: 0;
  text-align: center;
  background: var(--t-primary-light);
  border-radius: var(--t-radius-sm);
  padding: var(--t-space-3) var(--t-space-4);
  min-width: 60px;
}
.tinderet-event-card__date-day {
  font-family: var(--t-font-heading);
  font-size: var(--t-font-size-xl);
  font-weight: 800;
  color: var(--t-primary);
  line-height: 1;
}
.tinderet-event-card__date-month {
  font-size: var(--t-font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--t-primary-dark);
  letter-spacing: 0.05em;
}

.tinderet-event-card__content { flex: 1; }
.tinderet-event-card__title {
  font-family: var(--t-font-heading);
  font-size: var(--t-font-size-base);
  font-weight: 600;
  color: var(--t-text);
  margin-bottom: var(--t-space-2);
}
.tinderet-event-card__meta {
  font-size: var(--t-font-size-sm);
  color: var(--t-text-light);
}

/* ---- Cartes article/news ---- */
.tinderet-news-card {
  background: var(--t-white);
  border-radius: var(--t-radius-lg);
  overflow: hidden;
  box-shadow: var(--t-shadow-sm);
  border: 1px solid var(--t-border-light);
  transition: transform var(--t-transition-base), box-shadow var(--t-transition-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.tinderet-news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--t-shadow-md);
}

.tinderet-news-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.tinderet-news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-transition-slow);
}
.tinderet-news-card:hover .tinderet-news-card__image img {
  transform: scale(1.04);
}

.tinderet-news-card__body {
  padding: var(--t-space-5) var(--t-space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tinderet-news-card__category {
  font-size: var(--t-font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t-primary-dark);
  margin-bottom: var(--t-space-2);
}

.tinderet-news-card__title {
  font-family: var(--t-font-heading);
  font-size: var(--t-font-size-md);
  font-weight: 600;
  color: var(--t-text);
  margin-bottom: var(--t-space-3);
  line-height: 1.35;
}

.tinderet-news-card__excerpt {
  font-size: var(--t-font-size-sm);
  color: var(--t-text-light);
  flex: 1;
}

.tinderet-news-card__footer {
  padding-top: var(--t-space-4);
  margin-top: var(--t-space-4);
  border-top: 1px solid var(--t-border-light);
  font-size: var(--t-font-size-xs);
  color: var(--t-text-muted);
}

/* ---- Badges statut ---- */
.tinderet-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--t-font-heading);
  font-size: var(--t-font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--t-radius-full);
}
.tinderet-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tinderet-badge--open {
  background-color: #DCFCE7;
  color: var(--t-open);
}
.tinderet-badge--open::before { background-color: var(--t-open); }

.tinderet-badge--closed {
  background-color: #F3F4F6;
  color: var(--t-closed);
}
.tinderet-badge--closed::before { background-color: var(--t-closed); }

/* ---- Cartes club ---- */
.tinderet-club-card {
  background: var(--t-white);
  border-radius: var(--t-radius-lg);
  padding: var(--t-space-8);
  box-shadow: var(--t-shadow-sm);
  border: 1px solid var(--t-border-light);
  text-align: center;
  transition: transform var(--t-transition-base), box-shadow var(--t-transition-base);
  text-decoration: none;
  display: block;
}
.tinderet-club-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--t-shadow-lg);
}

.tinderet-club-card__logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--t-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--t-space-4);
}

.tinderet-club-card__name {
  font-family: var(--t-font-heading);
  font-size: var(--t-font-size-lg);
  font-weight: 700;
  color: var(--t-text);
  margin-bottom: var(--t-space-3);
}

.tinderet-club-card__desc {
  font-size: var(--t-font-size-sm);
  color: var(--t-text-light);
}

/* ---- CTA bloc ---- */
.tinderet-cta {
  background: linear-gradient(135deg, var(--t-primary) 0%, var(--t-primary-dark) 100%);
  border-radius: var(--t-radius-xl);
  padding: var(--t-space-16) var(--t-space-8);
  text-align: center;
  color: var(--t-white);
}

.tinderet-cta__title {
  font-size: var(--t-font-size-2xl);
  color: var(--t-white);
  margin-bottom: var(--t-space-4);
}

.tinderet-cta__text {
  font-size: var(--t-font-size-md);
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin: 0 auto var(--t-space-8);
}

.tinderet-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--t-space-4);
  justify-content: center;
}

/* ---- Stat blocs ---- */
.tinderet-stat {
  text-align: center;
}
.tinderet-stat__number {
  font-family: var(--t-font-heading);
  font-size: var(--t-font-size-3xl);
  font-weight: 800;
  color: var(--t-primary);
  line-height: 1;
  display: block;
  margin-bottom: var(--t-space-2);
}
.tinderet-stat__label {
  font-size: var(--t-font-size-sm);
  color: var(--t-text-light);
}

/* ---- Icône + texte ---- */
.tinderet-icon-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--t-space-4);
}

.tinderet-icon-text__icon {
  width: 56px;
  height: 56px;
  background: var(--t-primary-light);
  border-radius: var(--t-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tinderet-icon-text__icon img {
  width: 32px;
  height: 32px;
}

.tinderet-icon-text__title {
  font-family: var(--t-font-heading);
  font-size: var(--t-font-size-md);
  font-weight: 600;
  color: var(--t-text);
  margin-bottom: var(--t-space-2);
}

.tinderet-icon-text__text {
  font-size: var(--t-font-size-sm);
  color: var(--t-text-light);
  margin: 0;
}

/* ---- Tag catégorie ---- */
.tinderet-tag {
  display: inline-block;
  font-size: var(--t-font-size-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--t-radius-full);
  background: var(--t-primary-light);
  color: var(--t-primary-dark);
  text-decoration: none;
  transition: background var(--t-transition-fast);
}
.tinderet-tag:hover {
  background: var(--t-primary);
  color: var(--t-white);
}
