body {
  min-height: 100vh;
  background: #012615;
  background: -moz-linear-gradient(left, #012615 0%, #038C5A 50%, #012615 100%);
  background: -webkit-linear-gradient(left, #012615 0%, #038C5A 50%, #012615 100%);
  background: linear-gradient(to right, #012615 0%, #038C5A 50%, #012615 100%);
  overflow-y: auto;
}

/* Harmonisation accueil et login */
.login-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 0;
}
.home-form-container, .login-form-container {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  box-shadow: none;
  background: transparent;
}
/* Supprimer la limitation globale de .form-container */
.form-container {
  box-shadow: none;
  background: transparent;
}

main {
  margin: 0 !important;
  padding: 0 !important;
}

form {
  padding: 0px 0px 0px 0px !important;
}

.swal2-actions .btn {
    margin-right: 0.5em;
    min-width: 110px;
    font-size: 1.1rem;
    padding: 0.5em 1.5em;
}
.swal2-actions .btn:last-child {
    margin-right: 0;
}

.swal2-confirm.swal2-styled {
    background-color: #28a745 !important;
    border: none !important;
    color: #fff !important;
}
.swal2-confirm.swal2-styled:focus,
.swal2-confirm.swal2-styled:hover {
    background-color: #218838 !important;
}

.swal2-popup .swal2-actions .swal2-confirm.swal2-styled {
    background-color: #28a745 !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
}
.swal2-popup .swal2-actions .swal2-confirm.swal2-styled:focus,
.swal2-popup .swal2-actions .swal2-confirm.swal2-styled:hover {
    background-color: #218838 !important;
}

/* Style commun pour footer logos (desktop et mobile) */
.footer-logos-wrapper,
.footer-logos-swiper {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    border-radius: 1px;
    padding: 10px;
    background: #fff;
}

/* Version desktop spécifique */
.footer-logos-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 15px 20px;
}

/* Version mobile (carousel) spécifique */
.footer-logos-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-img {
    height: 150px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .footer-logos-wrapper {
        gap: 20px;
        padding: 12px 15px;
    }
    .footer-logo-img {
        height: 100px;
        max-width: 160px;
    }
    
    /* Forcer la disparition de la grille desktop en responsive */
    .footer-logos-wrapper.d-none.d-md-flex {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 576px) {
    .footer-logos-wrapper {
        gap: 15px;
        padding: 10px 12px;
    }
    .footer-logo-img {
        height: 90px;
        max-width: 140px;
    }
    
    /* Forcer la disparition de la grille desktop en responsive */
    .footer-logos-wrapper.d-none.d-md-flex {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

footer .txt-info {
  color: #fff;
  font-size: 1rem;
}
footer .txt-info a {
  color: #fff;
  text-decoration: underline;
}
footer .txt-info a:hover {
  color: #ffd700;
}

.gold-flat {
  display: block;
  width: 100%;
  background: linear-gradient(90deg,
    #a97c2f 0%,
    #e7c873 18%,
    #FCE68E 45%,
    #eac14d 65%,
    #a97c2f 82%,
    #7a5a1a 100%
  );
  color: #1a1a1a;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 750;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  padding: 22px 10px 18px 10px;
  border-radius: 16px;
  box-shadow: 0 4px 16px 0 rgba(183, 140, 43, 0.18);
  margin-bottom: 24px;
  margin-top: 0;
  border: 2px solid #e7c873;
}
.gold-flat {
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .gold-flat {
    margin-left: 6px;
    margin-right: 6px;
    width: calc(100% - 12px); /* 100% moins les marges */
  }
}

.testata {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.piede {
  max-width: 420px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img.img-fluid {
  max-width: 100%;
  height: auto;
}

.card1 {
  background-color: #fff;
  border-radius: 1px;
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
  max-width: 1000px;
}

.card2 {
  background-color: #fff;
  border-radius: 1px;
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
  max-width: 1000px;
}

/* Responsive pour les cartes */
@media (max-width: 768px) {
  .card1, .card2 {
    border-radius: 1px;
  }
}

@media (max-width: 576px) {
  .card1, .card2 {
    border-radius: 1px;
  }
}

/* Alignement parfait label + input */
.form-label {
  text-align: left !important;
  display: block;
  margin-bottom: 0.5rem;
  padding-left: 2px;
}
.input-group, .form-control, .form-select {
  max-width: 400px;
  margin-left: 0 !important;
}
#message.form-control {
  max-width: 100%;
}
#help-form .form-control {
  max-width: 100%;
}

/* Alignement des cases à cocher et texte */
.checkbox-align {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 0.5rem auto;
}
.checkbox-align label {
  margin-bottom: 0;
  text-align: left;
}

/* Centrage de la checkbox privacy dans help.php */
#help-form .form-check {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  margin: 0 auto;
  max-width: 600px;
}

#help-form .form-check-label {
  text-align: center;
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .input-group, .form-control, .form-select {
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  .form-container {
    max-width: 98vw;
  }
  form {
    padding: 20px 8px !important;
  }
}

/* Suppression de la marge top sur le container principal de help.php */
.login-container, .container.login-container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
}

/* Optionnel : si .col a une marge top, on l'annule aussi dans ce contexte */
#help-form .col,
.login-container .col {
  margin-top: 0 !important;
}

.img-fluid.piede {
  margin-top: 0 !important;
}
.login-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(1, 138, 74, 0.15) !important; /* Vert transparent SISA */
  color: #212529;
  box-shadow: none;
}

input:focus, textarea:focus, select:focus {
  border-color: #018a4a !important;
  box-shadow: 0 0 0 0.2rem rgba(1, 138, 74, 0.15) !important;
  outline: none !important;
}

.registration-form-container {
  max-width: 800px !important;
  width: 100%;
  margin: 0 auto;
  box-shadow: none;
  background: transparent;
}
.registration-form-container .form-control,
.registration-form-container .form-select,
.registration-form-container .input-group {
  max-width: 100%;
}

#help-form {
  padding-left: 16px;
  padding-right: 16px;
}
@media (max-width: 600px) {
  #help-form {
    padding-left: 6px;
    padding-right: 6px;
  }
}

#help-form .col-12,
#help-form .col-md-6 {
  padding-left: 8px;
  padding-right: 8px;
}
@media (max-width: 600px) {
  #help-form .col-12,
  #help-form .col-md-6 {
    padding-left: 2px;
    padding-right: 2px;
  }
}

@media (max-width: 600px) {
  .home-form-container .btn {
    margin-left: 6px;
    margin-right: 6px;
    width: calc(100% - 12px);
    box-sizing: border-box;
  }
}

#reset-password-form {
  max-width: 400px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 600px) {
  #reset-password-form {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 474px) {
  .storico-codici-table-wrapper table,
  .storico-codici-table {
    min-width: unset !important;
    font-size: 0.85rem;
  }
  .storico-codici-table-wrapper th,
  .storico-codici-table-wrapper td,
  .storico-codici-table th,
  .storico-codici-table td {
    padding: 0.25rem 0.2rem !important;
    white-space: nowrap;
    font-size: 0.85rem;
  }
  .storico-codici-table-wrapper {
    padding: 0;
    margin: 0;
  }
}

/* Forcer la bordure blanche par défaut pour tous les champs */
.form-control,
.form-select,
input,
select,
textarea {
  border-color: #dee2e6 !important;
  border-width: 1px !important;
  border-style: solid !important;
}

/* Forcer la bordure blanche même avec l'autofill Google */
.form-control:-webkit-autofill,
.form-select:-webkit-autofill,
input:-webkit-autofill,
select:-webkit-autofill,
textarea:-webkit-autofill {
  border-color: #dee2e6 !important;
  border-width: 1px !important;
  border-style: solid !important;
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  background-color: white !important;
}

/* Supprimer les validations visuelles - tous les champs restent blancs SAUF les mots de passe */
.form-control.is-valid,
.form-select.is-valid,
input.is-valid,
select.is-valid,
textarea.is-valid {
  border-color: #dee2e6 !important; /* Même couleur que les champs normaux */
}

/* Garder les icônes de validation SEULEMENT pour les mots de passe */
#password.is-valid,
#confirm_password.is-valid {
  border-color: #198754 !important; /* Vert pour les mots de passe */
}

/* Champs invalides en rouge */
.form-control.is-invalid,
.form-select.is-invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #dc3545 !important;
}

/* Scroll automatique vers les messages d'erreur */
html {
  scroll-behavior: smooth;
}

/* Mise en évidence des messages d'erreur */
#error-messages {
  scroll-margin-top: 20px;
}

