@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  padding-top: 60px;
  padding-bottom: 70px;
  font-family: 'CreatoDisplay', 'Courier New', Courier, monospace;
  background-color: #f2f2f2;
  min-height: 100vh;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  z-index: 1000;
}

.nav-hamburger {
  background-color: #333;
  position: relative;
}

#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 30px;
  color: #fff;
  padding: 10px;
  cursor: pointer;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
}

.menu li a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  padding: 10px 20px;
  display: block;
}

.menu li a:hover {
  background-color: #444;
}

@media (max-width: 600px) {
  .menu-icon {
    display: block;
  }
  .menu {
    flex-direction: column;
    display: none;
    width: 100%;
  }
  .menu li {
    text-align: center;
  }
  #menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }
}

.form-container {
  background-color: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-radius: 8px;
  margin: 2rem auto;
}

.form-container h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.form-group {
  margin-bottom: 1rem;
  padding: 0 30px;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
}

.form-group input {
  width: 80%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  margin: 0 auto;
  display: block;
}

button {
  width: 80%;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background-color: #007BFF;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  display: block;
  margin: 1rem auto 0;
}

button:hover {
  background-color: #0056b3;
}

.error {
  background-color: #ffdddd;
  border-left: 4px solid #f44336;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #a94442;
  border-radius: 4px;
}

.success {
  background-color: #ddffdd;
  border-left: 4px solid #4CAF50;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #3c763d;
  border-radius: 4px;
}

 .form-section, .listing-section, .message-section {
  display: none;
}

.toggle-link {
  display: inline-block;
  margin: 10px 0;
  padding: 10px 15px;
  background-color: #007BFF;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.toggle-link:hover {
  background-color: #0056b3;
}

.banner-section, .about-section, .form-section, .listing-section, .race-section {
  background-color: #fff;
  margin: 10px auto;
  max-width: 800px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.banner-section img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.about-section h1 {
  background-color: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 15px;
  color: #005f99;
  text-align: center;
}

.about-section h2 {
  background-color: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 10px;
  color: #444;
  text-align: center;
}
.about-section p {
  font-size: 18px;
  line-height: 1.5;
  text-align: justify;
}

.toggle-link {
  display: inline-block;
  margin: 10px;
  padding: 10px 15px;
  background-color: #007BFF;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}
.toggle-link:hover {
  background-color: #0056b3;
}

.summary {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}
.summary-label {
  font-weight: bold;
}
.summary-value {
  text-align: right;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sober-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
}

.sober-table th,
.sober-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

.sober-table th {
  background-color: #f2f2f2;
  color: #333;
  font-weight: normal;
}

.sober-table tr:nth-child(even) {
  background-color: #fafafa;
}

.sober-table tr:hover {
  background-color: #f0f0f0;
}

.action-icon {
  font-size: 16px;
  margin: 0 5px;
  color: #007BFF;
  cursor: pointer;
  transition: color 0.3s;
}
.action-icon:hover {
  color: #0056b3;
}


.visible {
  opacity: 1;
  max-height: none;
  transition: opacity 0.5s ease;
}

.hidden {
  display: none !important;
  opacity: 0;
}
.visible {
  display: block;
  opacity: 1;
}

.message-container {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;  
  width: 90%;        
  max-width: 600px;
}

.success, .error {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.success {
  background-color: #ddffdd;
  border-left: 4px solid #4CAF50;
  color: #3c763d;
}

.error {
  background-color: #ffdddd;
  border-left: 4px solid #f44336;
  color: #a94442;
}

  .qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none;
    z-index: 10000;
    align-items: center;
    justify-content: center;
  }
  .qr-modal.visible {
    display: flex;
  }
  .qr-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
  }
  .qr-modal-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
  }
  .qr-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
  }
  .qr-print-button {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
  }
  .qr-print-button:hover {
    background-color: #0056b3;
  }

  #showQRButton {
    display: block;
    margin: 20px auto;
  }

.about-section {
  background-color: #fff;
  margin: 20px auto;
  max-width: 800px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow: hidden;
}

.about-header h1,
.about-header h2 {
  text-align: center;
  margin: 10px 0;
}

.about-header h1 {
  font-size: 2.5em;
  color: #333;
  font-weight: bold;
  text-transform: uppercase;
}

.about-header h2 {
  font-size: 2em;
  color: #444;
  font-weight: bold;
}

.about-image {
  text-align: center;
  margin: 20px 0;
}

.about-image img {
  display: inline-block;
  width: 80%;
  height: auto;
  border-radius: 8px;
}

.about-text {
  padding: 0 30px;
}


.about-text p {
  font-size: 18px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 15px;
}

.about-section::after {
  content: "";
  display: table;
  clear: both;
}
.toggle-container {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  clear: both;
}
@media (max-width: 600px) {
  .toggle-link {
    display: inline-block;
    margin: 10px 5px;
    padding: 10px 20px; 
  }

  .toggle-container {
    text-align: center;
  }
}

a.donation-link {
  color: #007BFF;
  text-decoration: underline;
  cursor: pointer;
}

a.donation-link:hover {
  color: #0056b3;
}
a {
  text-decoration: none  !important;
}
a:hover {
  text-decoration: none  !important;
}

.payment-buttons {
  text-align: center;
  margin: 20px 0;
}

.payment-button {
  background-color: #4CAF50;
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin: 0 10px;
  display: inline-block;
  transition: background-color 0.3s;
}

.payment-button:hover {
  background-color: #45a049;
}

.form-section h1 {
  background-color: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 15px; 
  color: #005f99;
  text-align: center;
}
.listing-section h1 {
  background-color: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 15px; 
  color: #005f99; 
  text-align: center;
}
.race-section h1 {
  background-color: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 15px;
  color: #005f99; 
  text-align: center;
}

.toggle-about button {
  background-color: #007BFF; 
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-about button:hover {
  background-color: #0056b3;
}
.about-toggle {
  max-width: 800px; 
  margin: 20px auto;
  padding: 0 20px;   
}

.about-toggle button {
  display: block;
  width: 100%;
  padding: 10px 0;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.about-toggle button:hover {
  background-color: #0056b3;
}

@media (max-width: 600px) {
  .payment-button {
    margin-bottom: 15px;
  }
}

.about-container {
  margin: 0 auto 10px auto;
}

.about-section {
  margin-top: 10px;
}

html, body {
  height: 100%;
  margin: 0;
}

.wrapper {
  min-height: calc(100vh - 100px); /* header (60px) + footer (40px) */
  padding-bottom: 20px; /* espace intérieur */
}

.footer {
  height: 40px;
  background-color: #333;
  color: #fff;
  text-align: center;
  line-height: 40px;
  position: relative;
  bottom: 0;
  width: 100%;
}


.welcome-section {
  background-color: #fff;
  margin: 10px auto;
  max-width: 800px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: center;
}

/* Effet lumineux clignotant sur le menu hamburger */
@keyframes glow {
  0% {
    text-shadow: 0 0 5px #ff9100, 0 0 10px #ff9100, 0 0 20px #ff9100;
    color: #ff9100;
  }
  50% {
    text-shadow: 0 0 20px #ff9100, 0 0 30px #ff9100, 0 0 40px #ff9100;
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 5px #ff9100, 0 0 10px #ff9100, 0 0 20px #ff9100;
    color: #ff9100;
  }
}

/* Appliquer l'animation uniquement sur mobile */
@media (max-width: 600px) {
  .menu-icon {
    animation: glow 2s infinite alternate;
  }
}

/* Style pour la modale d'information */
/* Style pour la modale d'information */
.info-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7); /* Fond semi-transparent */
  display: flex;
  align-items: center; /* Centrer verticalement */
  justify-content: center; /* Centrer horizontalement */
  padding: 20px;
  box-sizing: border-box;
}

.info-modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  max-height: 90vh; /* hauteur max 90% de l'écran */
  overflow-y: auto; /* Scroll interne si besoin */
  position: relative;
  width: 100%;
  text-align: left;
  font-family: Arial, sans-serif;
}

.info-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.info-close:hover {
  color: #000;
}


.info-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.info-close:hover {
  color: #000;
}

/* Icône info à droite dans le header */
.info-icon {
  position: absolute;
  right: 10px;
  top: 15px;
  cursor: pointer;
  color: #ffffff;
  font-size: 24px;
}

.info-icon:hover {
  color: #00bcd4;
}

/* Centre tout le form dans la section “Message” */
.message-section form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Limite la largeur des champs et espace les lignes */
.message-section .form-group {
  width: 100%;
  max-width: 500px;
  margin-bottom: 1.5rem;
}

/* Label centré (optionnel) */
.message-section .form-group label {
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Inputs et textarea s’étendent à 100% de la .form-group */
.message-section .form-group input,
.message-section .form-group textarea {
  width: 100%;
}

/* Agrandit par défaut le textarea et permet le redimensionnement vertical */
.message-section .form-group textarea {
  min-height: 200px;
  resize: vertical;
}
