/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f4fdf6;
    line-height: 1.6;
}

/* Structure principale */
#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Section image de fond */
#hero {
    position: relative;
    min-height: 100vh;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f4fdf6; /* couleur de secours */
}

/* L’image seule, avec opacité contrôlable */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/themes/defaut/bg-1920x1080.jpg') no-repeat center center / cover;
    opacity: 0.7; 
    z-index: 0;
}

.hero-background {
    background: url('../images/themes/defaut/bg-1920x1080.jpg') no-repeat center center / cover;

}

/* Mobile portrait */
@media screen and (max-width: 767px) {
  .hero-background {
    background-image: var(--hero-bg, url('../images/themes/defaut/bg-750x1200.jpg'));
  }
}

/* Mobile paysage */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .hero-background {
    background-image: var(--hero-bg, url('../images/themes/defaut/bg-1280x800.jpg'));
  }
}

/* Tablette portrait */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .hero-background {
    background-image: var(--hero-bg, url('../images/themes/defaut/bg-1024x1366.jpg'));
  }
}

/* Desktop standard */
@media screen and (min-width: 1200px) and (max-width: 1919px) {
  .hero-background {
    background-image: var(--hero-bg, url('../images/themes/defaut/bg-1920x1080.jpg'));
  }
}

/* Desktop Full HD */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
  .hero-background {
    background-image: url('../images/bg-1920x1080.jpg');
  }
}


/* Grand écran (QHD) */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
  .hero-background {
    background-image: var(--hero-bg, url('../images/themes/defaut/bg-2560x1440.jpg'));
  }
}

/* Écran 4K */
@media screen and (min-width: 2560px) {
  .hero-background {
    background-image: var(--hero-bg, url('../images/themes/defaut/bg-3840x2160.jpg'));
  }
}


/* Formulaire + compte utilisateur */
#core {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.vertical-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}


#contents {
    flex: 2;
    background: #ffffffa6;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}


#account {
    flex: 1;
    background: #ffffffcc;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

#contents h2 {
    color: #2e8b57;
    margin-bottom: 20px;
}

/* Formulaires */
form {
    margin-bottom: 30px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form select {
    padding: 10px;
    width: 100%;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}

form input[type="submit"],
form button {
    padding: 10px 20px;
    background-color: #2e8b57;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

form input[type="submit"]:hover,
form button:hover {
    background-color: #226c45;
}

/* Zone des résultats */
#results-zone {
    background-color: #e4faeb;
    padding: 60px 0;
}

.results-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    background-color: #ffffff;
}

/* Résultats de club */
.club-result {
    background-color: #ffffff;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 5px solid #3cb371;
    border-radius: 8px;
}

.club-result a {
    color: #2e8b57;
    text-decoration: none;
}

.club-result a:hover {
    text-decoration: underline;
}

/* Pied de page */
#footer {
    background: #2e8b57;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/*La partie account*/
#account-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
    z-index: 999;
}

#account-toggle {
    cursor: pointer;
}

#account-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-align: center; 
    color: #333;    
}

#account-dropdown p,
#account-dropdown label {
    position: static;
    margin-bottom: 5px;
}


#account-dropdown.hidden {
    display: none;
}

#account-dropdown form input[type="email"],
#account-dropdown form input[type="password"],
#account-dropdown form input[type="submit"] {
    width: 100%;
    margin-top: 6px;
    margin-bottom: 10px;
}

#account-dropdown a {
    color: #2e8b57;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 5px;
}

#account-dropdown a:hover {
    text-decoration: underline;
}

#account-name {
    margin-top: 10px;
    font-size: 0.95em;
    font-weight: bold;
}

#image-selector {
  margin: 20px;
  text-align: right;
}

#image-selector select {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.texte-petit {
    font-size: 0.85em; /* ou 12px selon la taille voulue */
    color: #ffffff; /* facultatif, pour alléger le contraste */
}

.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a,
.pagination span.current,
.pagination span.dots {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 12px;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    text-decoration: none;
    color: #2e8b57;
}
.pagination span.current {
    background-color: #2e8b57;
    color: white;
    font-weight: bold;
}
.pagination a:hover {
    background-color: #2e8b57;
    color: white;
}
.pagination span.dots {
    border: none;
    color: #888;
}

