#header-index {
  display: flex;
  flex: 0 0 auto; /* Hauteur fixe */
  flex-shrink: 0; /* CRITIQUE: Ne jamais réduire la taille */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Prend toute la largeur du parent */
  background-color: rgb(0, 0, 0);
  border: 0.15rem solid var(--custom-white);
  border-radius: 0.4rem;
}

#site-name-index {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-weight: 800;
  background-color: var(--custom-white);
  letter-spacing: -0.1rem;
  text-shadow:
    2px 3px 1px rgb(100, 100, 100),
    4px 6px 4px rgba(0, 0, 0, 1);
  color: var(--custom-white); /* Couleur claire pour l'effet gravé */
  font-size: clamp(1.1rem, 2.2dvw, 2.2rem); /* Responsive */
  border-radius: 0.8rem;
  background-image: radial-gradient(circle at center, rgb(0, 100, 0), rgb(0, 0, 0));
}

#logo-club img {
  display: block;
  width: clamp(140px, 40dvw, 260px); /* Réduit pour éviter débordement */
  height: clamp(140px, 38dvw, 260px);
  border-radius: 50%;
}

#login-container {
  display: flex;
  flex-direction: column;
  width: min(280px, 85dvw); /* Responsive : 85% largeur jusqu'à 280px */
  margin: 0;
  padding: clamp(0.7rem, 1.5dvh, 1.1rem);
  border: 2px solid var(--custom-white);
  border-radius: 10px;
  background-color: rgb(10, 10, 10);
  text-align: center;
}

#login-container button {
  padding-bottom: clamp(0.2rem, 0.5dvh, 0.35rem);
  font-size: clamp(1.2rem, 2dvw, 1.4rem);
  text-shadow:
    1px 1px 0px black,
    -1px 1px 0px black,
    1px -1px 0px black,
    -1px -1px 0px black;
}

/* Styles .input-content, .field-error, .form-error-bottom déplacés vers modals.css */
/* pour centralisation et réutilisation dans toutes les modales */

/* Messages d'erreur (spécifique à index.html) */
#registration-error {
  min-height: 0.8rem;
  margin: 0 0.5rem;
  padding: 0.1rem 0.5rem;
  font-family: "cooper", Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.3dvw, 0.95rem);
  color: #fff;
  background: var(--gradient-red);
  border-radius: 0.3rem;
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  text-shadow:
    1px 1px 0px black,
    -1px 1px 0px black,
    1px -1px 0px black,
    -1px -1px 0px black;
}

#registration-error:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}

#registration-error:empty {
  display: none;
}

/* Footer compact avec icônes sociales */
#footer-main.footer-compact {
  text-align: center;
  padding: 0.7rem 0.5rem 0.6rem;
  font-size: 0.75rem;
  color: var(--custom-white);
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 0.4rem;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.social-icon {
  display: inline-flex;
  color: #aaa;
  transition: color 0.2s ease;
}

.social-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.social-icon:hover {
  color: var(--custom-white);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.7rem;
}

.footer-links .separator {
  color: #666;
  -webkit-user-select: none;
  user-select: none;
}

.footer-links a:hover {
  color: var(--custom-white);
}

.footer-disclaimer {
  color: #ffeb3b;
  font-size: 0.68rem;
  margin: 0;
  line-height: 1.3;
  font-weight: 600;
}

.footer-copyright {
  color: var(--custom-white);
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.2;
}

.footer-trademark {
  color: var(--custom-white);
  font-size: 0.62rem;
  margin: 0;
  line-height: 1.25;
}

/* Section bienvenue */
#welcome-section {
  max-width: 700px;
  margin: 1rem auto 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 50, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  text-align: center;
}

#welcome-section h2 {
  font-size: var(--ui-text-xl);
  margin-bottom: 0.2rem;
  color: var(--color-gold);
  text-shadow:
    2px 2px 1px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(76, 175, 80, 0.3);
}

.tagline {
  font-size: var(--ui-text-md);
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.description {
  font-size: var(--ui-text-md);
  line-height: 1.6;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0;
  font-size: var(--ui-text-sm);
  color: #ddd;
}

.feature-item {
  white-space: nowrap;
}

.feature-separator {
  color: rgb(170, 255, 170);
  font-weight: bold;
}

.quick-start {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-start h3 {
  font-size: var(--ui-text-lg);
  margin-bottom: 1rem;
  color: rgb(170, 255, 170);
}

.quick-start ol {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
  padding-left: 1.5rem;
}

.quick-start li {
  margin: 0.6rem 0;
  line-height: 1.5;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: #ddd;
}
