body {
  font-family: 'Segoe UI', sans-serif;
  background: #e9f0f5;
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 4rem;
}
.home-page {
  background: url("images/background.png");
  background-size: cover;                /* Ajuste pour couvrir tout l'écran */
  background-position: center center;    /* Centre l'image */
  background-repeat: no-repeat;          /* Pas de répétition */
  background-attachment: fixed;          /* Effet de parallaxe (optionnel) */
  min-height: 100vh;                     /* S'assure que le body occupe toute la hauteur */
}

.home-page h1, .home-page h2 {
  color: #fff;
}

.container {
  max-width: 480px;
  margin: auto;
}

@media (min-width: 1024px) {
  body {
    max-width: none;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

h1 {
  color: #2c3e50;
  margin-bottom: 1rem;
  text-align: center;
}

h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #2c3e50;
}

h4 {
  margin: 0 0 1rem 0;
}

.sticky-header {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 1000;
  padding: 1rem 1rem 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
}

.sticky-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.etape-select {
  text-align: center;
  margin-bottom: 1rem;
}

.etape-select select {
  padding: 0.5rem;
  font-size: 1rem;
}

.score-form,
.totaux {
  background: #8ec5de;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

/* Style général des blocs */
.hole-block {
  margin-bottom: 1rem;
  border: 1px solid #8ec5de;
  border-radius: 8px;
  background-color: #fff;
	margin-top: 1rem;
}

/* Style spécifique pour les blocs ROUNDS */
.hole-block.round {
  background-color: #8ec5de;
}

/* Style spécifique pour les blocs TROUS */
.hole-block.trou {
  background-color: #ffffff;
}

.hole-block.penalty {
  background-color: #ffffff;
}

.hole-block h3 {
  font-size: 1.2rem;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

.inputs-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.inputs-row label, .inputs-row span {
  color: #000000;
}

.inputs-row span {
  color: #000000;
}

.inputs-row div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inputs-row select {
  width: 42px;
  height: 42px;
  text-align: center;
  font-size: 1rem;
  border-radius: 5px;
}

.ecart {
  font-size: 0.75rem;
  color: #555;
  margin-top: 0.2rem;
}

.totaux-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.totaux-item {
  flex: 1;
  background: #dff0d8;
  padding: 0.8rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.5rem;
}

.sticky-menu {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-around;
  padding: 0.7rem 0;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.menu a {
  background: #ffffff;
  color: #2c3e50;
  text-decoration: none;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.menu a:hover {
  transform: scale(1.02);
}

.footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #000;
  text-align: center;
}

select {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: border 0.2s;
}

select:focus {
  border-color: #3498db;
  outline: none;
}

.etape-select select {
  margin: 0 0.5rem;
}

.inputs-row select {
  width: 52px;
  height: 52px;
  text-align: center;
  font-size: 1.50rem;
  border-radius: 5px;
  padding: 0;
  font-weight: 900;
  background-color: #000000;
  color: #ffffff;
}

.etape-select form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.full-width-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid #ccc;
  padding: 0.5rem 0;
  z-index: 1000;
}
.full-width-menu a {
  flex: 1;
  text-align: center;
  font-size: 1.4rem;
  text-decoration: none;
  color: #000;
}
.full-width-menu i {
  font-size: 1.4rem;
}
.full-width-menu a.active i {
  color: #007BFF;
}

/* Alignement des noms des joueurs à gauche */
td:nth-child(2) {
  text-align: left;
}

.logo-container {
  text-align: center;
  margin: 1rem 0;
}

.logo-img {
  max-width: 150px;
  height: auto;
}
.valeur-score {
  font-weight: 700;
  font-size: 1.1rem;
}

.inputs-row .totaux-round {
  flex: 1;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
}

.accordion .accordion-content {
    display: none;
    padding: 0.5em;
	border-radius: 0 0 8px 8px;
	margin-top: -5px;
}
.accordion.open .accordion-content {
    display: block;
}
.accordion .accordion-header {
    cursor: pointer;
    padding: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    margin: 0.5em 0 0 0;
	color: #000000;
	font-weight: 700;
}
.accordion .accordion-icon {
    transition: transform 0.3s ease;
}
.accordion.open .accordion-icon {
    transform: rotate(90deg);
}

#totaux h3 {
  text-align: center;
	margin: 0 0 1rem 0;
}

.sticky-menu {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
}
.sticky-menu a {
  color: #4b5563;
  font-size: 20px;
  text-decoration: none;
}
.sticky-menu a:hover {
  color: #111827;
}
/* === Accordéon complété (tous les scores du trou saisis) === */
.accordion.complet {
  background-color: #d1fae5;
  border: 0px solid #34d399;
  transition: background-color 0.3s ease;
}

.accordion.complet .accordion-header .accordion-content {
  color: #065f46;
  font-weight: bold;
  position: relative;
}

.accordion.complet .accordion-header .accordion-content :hover {
  background: #d1fae5;
}