* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0px;
    background: url('../IMG/global/fond_cup.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* CONTAINER DE LA PAGE*/
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    /*border: 2px solid linear-gradient(135deg,rgb(255, 0, 0) 0%,rgb(0, 26, 255) 100%);*/
    
}

/* HEADER : DIV DE TITRE DE LA PAGE */
.header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* BASE POUR LES PAGES */

.page-header {
  background: linear-gradient(135deg,rgb(255, 0, 0, 0.8) 0%,rgb(0, 26, 255, 0.8) 100%);
  color: white;
  padding: 40px 0;
  margin-bottom: 30px;
}

.page-subtitle {
  opacity: 0.9;
}

h1 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 18px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
}

h2 {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.8) 0%, rgba(0, 26, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 1.5rem;
    margin-bottom: 18px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 10px;
}

.btn-primary {
  background: linear-gradient(135deg,rgb(255, 0, 0) 0%,rgb(0, 26, 255) 100%);
  color: white;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s, opacity 0.3s, transform 0.3s;
}

.btn-primary:hover {
  background: linear-gradient(135deg,rgb(0, 26, 255) 0%,rgb(255, 0, 0) 100%);
  /*transform: translateY(-2px);*/
  transform: background 0.9s ease, color 0.9s ease, box-shadow 0.9s, opacity 0.9s, transform 0.9s;
  transition: transform 0.90s ease;
  opacity: 0.85;
}
/*
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgb(255, 0, 0) 0%, rgb(0, 26, 255) 100%);
  color: white !important;
  transition: color 0.3s, box-shadow 0.3s, opacity 0.3s;
  z-index: 1;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0; 
  background: linear-gradient(135deg, rgb(0, 26, 255) 0%, rgb(255, 0, 0) 100%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.btn-primary > * { position: relative; z-index: 1; }

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span, .btn-primary i, .btn-primary strong, .btn-primary b {
  position: relative;
  z-index: 1;
}*/

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
  /*transform: translateY(-2px);*/
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover {
  background: #218838;
  /*transform: translateY(-2px);*/
}

.btn-warning {
  background: #ffc107;
  color: #212529;
}

.btn-warning:hover {
  background: #e0a800;
  transform: translateY(-2px);
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.btn-info {
  background: #17a2b8;
  color: white;
}

.btn-info:hover {
  background: #138496;
  transform: translateY(-2px);
}

/* SECTION : DIV DE CONTENU DE LA PAGE */

.section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);

}


.section h2 {
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grille responsive pour la liste des participants */
#participants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.participant-card {
  flex: 1 1 300px;
  max-width: 350px;
  min-width: 250px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

/* BOUTON BBRBB */
.btn-BBRBB {
display:inline-block;
      padding:0.75em 2em;
      font-size:1.2em;
      font-weight:bold;
      color: rgba(0,38,84);
      background:linear-gradient(
          90deg,
          rgba(0,38,84,0.65) 0%,
          rgba(255,255,255,0.35) 20%,
          rgba(218,41,28,0.65) 50%,
          rgba(255,255,255,0.35) 80%,
          rgba(0,38,84,0.65) 100%
      );
      border:1px solid rgba(0,38,84);
      border-radius:2em;
      box-shadow:0 4px 16px rgba(0,0,0,0.15);
      cursor:pointer;
      backdrop-filter:blur(2px);
      outline:none;
}

.stats-flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.stats-formal-card, .stats-graph-card {
  flex: 1 1 48%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 24px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}
.stats-formal-card {
  align-items: flex-start;
}
.stats-graph-card {
  align-items: flex-start;
}
@media (max-width: 900px) {
  .stats-flex-container {
    flex-direction: column;
    gap: 16px;
  }
  .stats-formal-card, .stats-graph-card {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 800px) {
  #participants-list {
    gap: 10px;
  }
  .participant-card {
    min-width: 180px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0px;
        margin: 5px;
    }

    header {
        padding: 10px;
    }

    .section {
        padding: 10px;
    }
}

/* PIED DE PAGE */

.footer {
  /*background: #2c3e50;
  color: white;
  margin-top: 50px;
  padding: 40px 0 20px;*/
  background: linear-gradient(135deg,rgb(255, 0, 0, 0.9) 0%,rgb(0, 26, 255, 0.9) 100%);
  color: white;
  padding: 40px 0;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  
}



.footer-section {
  /*display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px;
  font-size: 24px
}

.footer-content {
  /*display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
  font-size: 14px;
  gap: 30px;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
  }
}