/* ===================================================================
   YAOUNDÉ TABLE TENNIS CLUB - STYLES PERSONNALISÉS
   Version: 1.0 | CSS Simple (sans SCSS)
   =================================================================== */

/* ===================================
   IMPORT DES POLICES GOOGLE
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* ===================================
   VARIABLES CSS UNIFIÉES - YTTC
   =================================== */
:root {
    /* POLICES DE CARACTÈRES */
    --font-family-body: 'Inter', sans-serif;
    --font-family-headings: 'Inter', sans-serif;
    
    /* COULEURS PRINCIPALES - VERSION UNIFIÉE */
    --yttc-primary: #2d5016;
    --yttc-secondary: #4a7c24;
    --yttc-accent: #ff6b35;
    --yttc-yellow: #ffd23f;
    --yttc-light: #f8f9fa;
    --yttc-dark: #1a1a1a;
    
    /* COULEURS SUPPLÉMENTAIRES */
    --yttc-success: #28a745;
    --yttc-info: #17a2b8;
    --yttc-warning: #ffc107;
    --yttc-danger: #dc3545;
    
    /* COULEURS SPÉCIALISÉES */
    --yttc-orange: #ff6b35;
    --yttc-yellow: #ffd23f;
    --yttc-green-primary: var(--yttc-primary);
    --yttc-green-secondary: var(--yttc-secondary);
    --yttc-green-light: #2C5530;
}

.navbar-yttc {
    background: linear-gradient(135deg, var(--yttc-primary) 0%, var(--yttc-secondary) 100%) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.navbar-yttc .navbar-brand {
    color: white !important;
}

.navbar-yttc .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ===================================
   STYLES GLOBAUX
   =================================== */
body {
  font-family: var(--font-family-body);
  line-height: 1.6;
  color: var(--yttc-dark);
  background-color: #ffffff;
}

/* Titres */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-family-headings);
  font-weight: 600;
  line-height: 1.2;
  color: var(--yttc-green-primary);
  margin-bottom: 1rem;
}

h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1rem; }

/* Liens */
a {
  color: var(--yttc-green-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--yttc-green-light);
  text-decoration: none;
}

/* ===================================
   SURCHARGE BOOTSTRAP - BOUTONS
   =================================== */

/* Bouton principal (vert club) */
.btn-primary {
  background-color: var(--yttc-green-primary);
  border-color: var(--yttc-green-primary);
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: var(--transition-base);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--yttc-green-light);
  border-color: var(--yttc-green-light);
  transform: translateY(-1px);
  box-shadow: var(--box-shadow-yttc-hover);
}

/* Bouton outline principal */
.btn-outline-primary {
  color: var(--yttc-green-primary);
  border-color: var(--yttc-green-primary);
  font-weight: 500;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--yttc-green-primary);
  border-color: var(--yttc-green-primary);
  color: white;
}

/* Boutons personnalisés du club */
.btn-yttc {
  background-color: var(--yttc-green-primary);
  border-color: var(--yttc-green-primary);
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-lg);
  transition: var(--transition-base);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.btn-yttc:hover,
.btn-yttc:focus {
  background-color: var(--yttc-green-light);
  border-color: var(--yttc-green-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-yttc-hover);
}

.btn-yttc-orange {
  background-color: var(--yttc-orange-accent);
  border-color: var(--yttc-orange-accent);
}

.btn-yttc-orange:hover {
  background-color: #e55a2b;
  border-color: #e55a2b;
  color: white;
}

/* ===================================
   SURCHARGE BOOTSTRAP - CARTES
   =================================== */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-yttc);
  transition: var(--transition-base);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-yttc-hover);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-header {
  background-color: var(--yttc-green-primary);
  color: white;
  border: none;
  font-weight: 600;
  font-family: var(--font-family-headings);
}

.card-title {
  color: var(--yttc-green-primary);
  font-family: var(--font-family-headings);
  font-weight: 600;
}

/* Cartes spéciales club */
.card-yttc {
  border: none;
  box-shadow: 0 4px 6px rgba(45, 80, 22, 0.1);
  transition: var(--transition-base);
}

.card-yttc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 80, 22, 0.15);
}

.card-yttc .card-header {
  background: linear-gradient(135deg, var(--yttc-green-primary) 0%, var(--yttc-green-light) 100%);
  color: white;
  border: none;
  font-weight: 600;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-base);
}

.navbar-brand {
  font-family: var(--font-family-headings);
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-base);
}

/* Navigation thématique club */
.navbar-yttc {
  background: linear-gradient(135deg, var(--yttc-green-primary) 0%, var(--yttc-green-secondary) 100%);
  box-shadow: 0 2px 4px rgba(45, 80, 22, 0.2);
}

.navbar-yttc .navbar-brand {
  color: white !important;
  font-family: var(--font-family-headings);
  font-weight: 700;
}

.navbar-yttc .navbar-brand:hover {
  color: var(--yttc-yellow-accent) !important;
}

.navbar-yttc .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: var(--transition-base);
}

.navbar-yttc .nav-link:hover,
.navbar-yttc .nav-link.active {
  color: var(--yttc-yellow-accent) !important;
}

/* Bouton toggler mobile */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-yttc {
  background: linear-gradient(135deg, var(--yttc-green-primary) 0%, var(--yttc-green-light) 100%);
  color: white;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-yttc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 100px 100px;
}

.hero-yttc .hero-content {
  position: relative;
  z-index: 2;
}

.hero-yttc h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-yttc p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ===================================
   BADGES
   =================================== */
.badge-yttc {
  background-color: var(--yttc-green-primary);
  color: white;
}

.badge-tournament {
  background-color: var(--yttc-orange-accent);
  color: white;
}

.badge-match {
  background-color: var(--yttc-yellow-accent);
  color: var(--yttc-dark);
}

/* ===================================
   FOOTER
   =================================== */
.footer-yttc {
  background-color: var(--yttc-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1rem;
}

.footer-yttc .footer-brand {
  color: var(--yttc-green-light);
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-family-headings);
}

.footer-yttc .footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-yttc .footer-link:hover {
  color: var(--yttc-green-light);
}

/* ===================================
   CLASSES UTILITAIRES SPÉCIFIQUES
   =================================== */

/* Couleurs de texte */
.text-yttc-green { color: var(--yttc-green-primary) !important; }
.text-yttc-orange { color: var(--yttc-orange-accent) !important; }
.text-yttc-yellow { color: var(--yttc-yellow-accent) !important; }

/* Couleurs de fond */
.bg-yttc-green { background-color: var(--yttc-green-primary) !important; }
.bg-yttc-orange { background-color: var(--yttc-orange-accent) !important; }
.bg-yttc-yellow { background-color: var(--yttc-yellow-accent) !important; }

/* Fond dégradé */
.bg-yttc-gradient {
  background: linear-gradient(135deg, var(--yttc-green-primary) 0%, var(--yttc-green-light) 100%);
}

/* Motif de fond */
.bg-yttc-pattern {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(107, 168, 50, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(255, 107, 53, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Ombre de texte */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===================================
   ANIMATIONS
   =================================== */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Spinner de chargement */
.spinner-yttc {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(45, 80, 22, 0.1);
  border-left: 4px solid var(--yttc-green-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
  .hero-yttc {
    padding: 60px 0 40px;
  }
  
  .hero-yttc h1 {
    font-size: 2rem;
  }
  
  .card-img-top {
    height: 150px;
  }
  
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.75rem; }
  h3, .h3 { font-size: 1.5rem; }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  .hero-yttc {
    padding: 40px 0 30px;
  }
  
  .hero-yttc h1 {
    font-size: 1.75rem;
  }
  
  .card-img-top {
    height: 120px;
  }
}

/* ===================================
   GRID PERSONNALISÉ POUR CARTES
   =================================== */
.grid-yttc {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 576px) {
  .grid-yttc {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-yttc {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-yttc {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .grid-yttc {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================================
   ÉTATS DE FOCUS ET ACCESSIBILITÉ
   =================================== */
.btn:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--yttc-green-light);
  box-shadow: 0 0 0 0.25rem rgba(107, 168, 50, 0.25);
}

/* Améliorer le contraste pour l'accessibilité */
.text-muted {
  color: var(--yttc-gray) !important;
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
  .navbar,
  .footer-yttc,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
}

:root {
    --yttc-green-primary: #2d5016;
    --yttc-green-secondary: #4a7c23;
    --yttc-yellow-accent: #ffd700;
}
