/* Style principal pour Section FoulÃ©e SG */

/* Variables de couleurs */
:root {
  --primary: #cc0033;
  --primary-dark: #aa0022;
  --primary-light: #ff335b;
  --dark: #222222;
  --light: #ffffff;
  --grey: #f4f4f4;
  --grey-dark: #e0e0e0;
  --grey-text: #666666;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --font-family: 'Montserrat', Arial, sans-serif;
}

/* RÃ©initialisation et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--grey);
  padding-bottom: 60px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header et navigation */
header {
  background: var(--primary);
  color: var(--light);
  padding: 25px 0;
  text-align: center;
  margin-bottom: 0;
  position: relative;
}

header:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(45deg, transparent 33.33%, var(--primary-light) 33.33%, var(--primary-light) 66.66%, transparent 66.66%);
  background-size: 20px 20px;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

header p {
  font-size: 1.1rem;
  margin-top: 8px;
  font-weight: 300;
}

nav {
  background: var(--dark);
  color: var(--light);
  padding: 0;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  max-width: 100%;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
}

.logo a {
  color: var(--light);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 30px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 15px 20px;
  display: block;
  text-align: center;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
  color: var(--light);
  background-color: var(--primary);
}

/* Cartes et conteneurs */
.card {
  background: var(--light);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--grey-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--grey-dark);
  background-color: rgba(0, 0, 0, 0.02);
}

/* Section de statistiques */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

.stats-card {
  flex: 0 0 calc(33.333% - 20px);
  background: var(--light);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary);
}

.stats-card h3 {
  color: var(--primary);
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.stats-value {
  font-size: 2.5em;
  font-weight: 700;
  margin: 15px 0;
  color: var(--dark);
}

.stats-card p {
  color: var(--grey-text);
  font-size: 0.9rem;
}

/* Performances */
.best-performances {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

.performance-card {
  flex: 0 0 calc(33.333% - 20px);
  background: var(--light);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.performance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.performance-card h3 {
  position: relative;
  color: var(--dark);
  margin-top: 0;
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.performance-card h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

.athlete-info {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.athlete-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  background-color: var(--grey);
  background-size: cover;
  background-position: center;
  border: 3px solid var(--primary);
}

.athlete-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
}

.time {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin: 15px 0;
  color: var(--primary);
}

.activity-name {
  font-style: italic;
  color: var(--grey-text);
  text-align: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.no-data {
  text-align: center;
  color: var(--grey-text);
  font-style: italic;
  margin: 25px 0;
}

/* Titres de section */
.section-title {
  color: var(--dark);
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background-color: var(--primary);
  border-radius: 3px;
}

/* Grille des membres */
.members-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.member-card {
  background: var(--light);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: calc(25% - 20px);
  text-align: center;
  transition: var(--transition);
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.member-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background-color: var(--grey);
  background-size: cover;
  background-position: center;
  border: 3px solid var(--primary);
}

.member-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.member-details {
  color: var(--grey-text);
  font-size: 0.9rem;
}

/* Tableaux */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: var(--light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--grey-dark);
}

th {
  background-color: #f8f8f8;
  font-weight: 600;
  color: var(--dark);
}

tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

tr:last-child td {
  border-bottom: none;
}

.rank {
  font-weight: 700;
  text-align: center;
  width: 50px;
}

.medal-1 {
  background-color: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  position: relative;
}

.medal-1:after {
  content: 'ðŸ¥‡';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
}

.medal-2 {
  background-color: rgba(192, 192, 192, 0.2);
  color: #c0c0c0;
  position: relative;
}

.medal-2:after {
  content: 'ðŸ¥ˆ';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
}

.medal-3 {
  background-color: rgba(205, 127, 50, 0.2);
  color: #cd7f32;
  position: relative;
}

.medal-3:after {
  content: 'ðŸ¥‰';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
}

.current-user {
  background-color: rgba(0, 123, 255, 0.05);
  font-weight: 600;
}

.perf-time {
  color: var(--primary);
  font-size: 1.1em;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

.activity-title {
  font-style: italic;
  color: var(--grey-text);
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  display: inline-block;
}

/* Onglets */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--grey-dark);
}

.tab {
  padding: 12px 25px;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  margin-right: 8px;
  border-radius: 8px 8px 0 0;
  transition: var(--transition);
  font-weight: 500;
}

.tab:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.tab.active {
  background: var(--light);
  border-color: var(--grey-dark);
  border-bottom: 2px solid var(--light);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: -2px;
}

.tab-content {
  display: none;
  background: var(--light);
  padding: 25px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--box-shadow);
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fil d'ariane */
.breadcrumbs {
  background-color: var(--light);
  padding: 10px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 25px;
}

.breadcrumbs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.breadcrumbs li:not(:last-child):after {
  content: '\203A'; /* â€º character */
  margin: 0 10px;
  color: var(--grey-text);
}

.breadcrumbs a {
  color: var(--grey-text);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .current {
  color: var(--primary);
  font-weight: 600;
}

/* Messages d'alerte */
.message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  position: relative;
  animation: slideDown 0.5s ease;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border-left: 5px solid #28a745;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 5px solid #dc3545;
}

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

/* Pied de page */
footer {
  background: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 15px;
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 0.9rem;
}

/* Media queries */
@media(max-width: 992px) {
  .stats-card, .performance-card {
    flex: 0 0 calc(50% - 15px);
  }

  .member-card {
    width: calc(33.333% - 20px);
  }
}

@media(max-width: 768px) {
  .stats-card, .performance-card {
    flex: 0 0 100%;
  }

  .member-card {
    width: calc(50% - 15px);
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .nav-links a {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
}

@media(max-width: 576px) {
  .member-card {
    width: 100%;
  }

  .tab {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Styles pour les pages dashboard et profil */
/* Carte générique */
.card {
  background: var(--light);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.card h3 {
  color: var(--dark);
  margin-top: 0;
  font-size: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grey-dark);
  margin-bottom: 20px;
  font-weight: 600;
}

.card-content {
  margin-bottom: 20px;
}

/* Tableaux de performances */
.performance-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.performance-table th {
  background-color: var(--grey);
  color: var(--dark);
  text-align: left;
  padding: 12px 15px;
  font-weight: 600;
  border-bottom: 2px solid var(--grey-dark);
}

.performance-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--grey);
}

.performance-table tr:last-child td {
  border-bottom: none;
}

.personal-best {
  color: var(--primary);
  font-weight: 700;
}

/* Dashboard */
.dashboard-welcome {
  display: flex;
  align-items: center;
  margin: 0 0 25px;
}

.dashboard-welcome img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 20px;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.dashboard-welcome h2 {
  margin: 0;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.dashboard-welcome a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.dashboard-welcome a:hover {
  background: var(--primary-dark);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Activités */
.activity-list-card {
  margin-top: 20px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.activity-item {
  background-color: white;
  padding: 15px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.activity-item h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.1rem;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--grey-text);
  font-size: 0.9rem;
}

/* Profil */
.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.profile-header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-right: 20px;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.profile-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.profile-header p {
  margin: 5px 0 0;
  color: var(--grey-text);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Badges et styles de formulaire */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge-success {
  background-color: #d4edda;
  color: #155724;
}

.badge-secondary {
  background-color: #e2e3e5;
  color: #383d41;
}

.badge-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-danger {
  background-color: var(--danger);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.8rem;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--grey-dark);
  border-radius: 4px;
  font-size: 0.9rem;
}

.time-input {
  display: flex;
  align-items: center;
  gap: 5px;
}

.time-input input {
  width: 60px;
}

.goal-form {
  margin-top: 20px;
}