* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.link {
  position: relative;
  display: inline-block;
  color: #222;
  text-decoration: none !important; 
  font-weight: 500;
  transition: color 0.3s ease;
}

.link:link,
.link:visited,
.link:hover,
.link:active,
.link:focus {
  text-decoration: none !important;
}

.link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.link:hover::after {
  width: 100%;
}


body {
  background: #f5f7fa;
  padding: 2rem 1rem;
  color: #1a1a1a;
  min-height: 100vh;
}

header.signup-header {
  max-width: 820px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #101010;
}

header.signup-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

header.signup-header small {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  white-space: nowrap;
  align-self: center;
  margin-left: 0.3rem;
}

header.signup-header .signup-breadcrumb {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin-top: 0.3rem;
  font-weight: 500;
  user-select: none;
}

h3.signup-title {
  max-width: 720px;
  margin: 2rem auto 1rem;
  font-weight: 600;
  font-size: 1.3rem;
  color: #101010;
  text-align: left;
}

.signup-card {
  max-width: 900px;
  margin: 0 auto 2rem;
  background: #fff;
  padding: 1.5rem 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  animation: signup-fadeIn 0.5s ease forwards;
}

.signup-form-grid {
  display: grid;
  gap: 1rem;
}

#signup-infos-perso .signup-form-grid {
  grid-template-columns: 1fr 1fr;
}
#signup-infos-perso .signup-row2 {
  display: grid;
  grid-template-columns: 1.8fr 0.8fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

#signup-adresse .signup-row1,
#signup-adresse .signup-row2,
#signup-adresse .signup-row3 {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
#signup-adresse .signup-row1 {
  grid-template-columns: 1fr;
}
#signup-adresse .signup-row2 {
  grid-template-columns: 1fr;
}
#signup-adresse .signup-row3 {
  grid-template-columns: 1.3fr 0.8fr 1fr;
  align-items: center;
}

#signup-adresse .signup-row4 {
  margin-top: 1rem;
}

#signup-infos-additionnelles p {
  margin: 0.6rem 0 0.4rem;
  font-weight: 500;
  color: #101010;
}
#signup-infos-additionnelles .signup-form-group {
  margin-bottom: 1rem;
}

#signup-securite .signup-form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.signup-form-group {
  position: relative;
}

.signup-form-group input,
.signup-form-group select {
  width: 100%;
  padding: 0.55rem 0.55rem 0.55rem 2.3rem;
  border: 1.5px solid #dee2e6;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.signup-form-group input:focus,
.signup-form-group select:focus {
  border-color: #101010;
  outline: none;
}

.signup-form-group i {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 1.1rem;
  pointer-events: none;
}

.signup-form-group select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L5 6L10 0H0Z' fill='%23999'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 6px;
  padding-right: 2.3rem;
}

.signup-form-note {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.3rem;
}

.signup-checkbox-group {
  max-width: 720px;
  margin: 1rem auto 3rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1a1a1a;
  user-select: none;
}
.signup-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.signup-checkbox-group a {
  color: #101010;
  text-decoration: none;
}
.signup-checkbox-group a:hover {
  text-decoration: underline;
}

.signup-submit-btn {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.signup-submit-btn button {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 5px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.signup-submit-btn button:hover {
  background: #002244;
}

#signup-gen-pass-btn {
  background: #101010;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-bottom: 0.7rem;
  user-select: none;
}
#signup-gen-pass-btn:hover {
  background: #003d75;
}

#signup-password-strength {
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
  margin-top: 0.2rem;
  user-select: none;
  min-height: 1.2em;
  transition: color 0.3s ease;
}


#signup-password-match {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.3rem;
  user-select: none;
}
#signup-password-match.match {
  color: green;
}
#signup-password-match.nomatch {
  color: red;
}

@keyframes signup-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  #signup-infos-perso .signup-form-grid,
  #signup-infos-perso .signup-row2,
  #signup-adresse .signup-row1,
  #signup-adresse .signup-row2,
  #signup-adresse .signup-row3,
  #signup-securite .signup-form-grid {
    grid-template-columns: 1fr !important;
  }

  header.signup-header {
    flex-direction: column;
    gap: 0.2rem;
  }
}

header.signin-header {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  color: #101010;
}

header.signin-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

header.signin-header small {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  display: block;
  margin-top: 0.5rem;
}

.signin-card {
  max-width: 480px;
  margin: 0 auto 2rem;
  background: #fff;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  animation: signin-fadeIn 0.5s ease forwards;
}

.signin-form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.signin-form-group input {
  width: 100%;
  padding: 0.6rem 0.6rem 0.6rem 2.5rem;
  border: 1.5px solid #dee2e6;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.3s ease;
}

.signin-form-group input:focus {
  border-color: #101010;
  outline: none;
}

.signin-form-group i {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 1.2rem;
  pointer-events: none;
}

.signin-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.signin-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.signin-options a {
  color: #101010;
  text-decoration: none;
}

.signin-options a:hover {
  text-decoration: underline;
}

.signin-submit-btn {
  width: 100%;
  text-align: center;
}

.signin-submit-btn button {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 12px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.signin-submit-btn button:hover {
  background: #002244;
}

.signin-bottom {
  max-width: 480px;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.signin-bottom a {
  color: #101010;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.4rem;
}

.signin-bottom a:hover {
  text-decoration: underline;
}

@keyframes signin-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
  .signin-card {
    padding: 1.5rem;
  }

  .signin-submit-btn button {
    font-size: 1rem;
  }
}

header.forgot-header {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  color: #101010;
}

header.forgot-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

header.forgot-header small {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  display: block;
  margin-top: 0.5rem;
}

.forgot-card {
  max-width: 480px;
  margin: 0 auto 2rem;
  background: #fff;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  animation: forgot-fadeIn 0.5s ease forwards;
}

.forgot-form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.forgot-form-group input {
  width: 100%;
  padding: 0.6rem 0.6rem 0.6rem 2.5rem;
  border: 1.5px solid #dee2e6;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.3s ease;
}

.forgot-form-group input:focus {
  border-color: #101010;
  outline: none;
}

.forgot-form-group i {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 1.2rem;
  pointer-events: none;
}

.forgot-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.forgot-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.forgot-options a {
  color: #101010;
  text-decoration: none;
}

.forgot-options a:hover {
  text-decoration: underline;
}

.forgot-submit-btn {
  width: 100%;
  text-align: center;
}

.forgot-submit-btn button {
  width: 100%;
  background-color: #000;
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.forgot-submit-btn button:hover {
  background: #002244;
}

.forgot-bottom {
  max-width: 480px;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.forgot-bottom a {
  color: #101010;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.4rem;
}

.forgot-bottom a:hover {
  text-decoration: underline;
}

@keyframes forgot-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
  .forgot-card {
    padding: 1.5rem;
  }

  .forgot-submit-btn button {
    font-size: 1rem;
  }
}


.auth-footer {
  background: #f1f3f7;
  padding: 1.2rem 1rem;
  font-size: 0.85rem;
  color: #444;
  border-top: 1px solid #ddd;
  position: relative;
}

.auth-footer-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.auth-footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.auth-footer-links a {
  color: #101010;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-footer-links a:hover {
  text-decoration: underline;
  color: #101010;
}

.auth-footer-top {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  color: #101010;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-footer-top:hover {
  color: #101010;
}

@media (max-width: 600px) {
  .auth-footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-footer-top {
    top: auto;
    bottom: 1rem;
  }
}

.alert-container {
  max-width: 480px;
  margin: 1rem auto;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  animation: alert-fadeIn 0.4s ease forwards;
}

.alert-success {
  background-color: #e6f4ea;
  color: #2c662d;
  border: 1.5px solid #2c662d;
}

.alert-error {
  background-color: #fbeaea;
  color: #a12622;
  border: 1.5px solid #a12622;
}

.alert-info {
  background-color: #eaf4fb;
  color: #205070;
  border: 1.5px solid #205070;
}

.alert-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}


@keyframes alert-fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.alert-close:hover {
  opacity: 1;
}


.paymentresume-choose-payment {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    margin-bottom: 20px;
}

.paymentresume-choose-payment label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #333;
}

.paymentresume-error-message {
    background-color: #fdd;
    color: #900;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #900;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .paymentresume-container {
        max-width: 90%;
    }

    .paymentresume-summary-total {
        font-size: 1rem;
    }

    .paymentresume-button {
        padding: 10px;
    }
}


.status-message {
  padding: 15px;
  margin-bottom: 20px;
  font-size: 16px;
  text-align: center;
}

.status-message.success {
  background-color: #4CAF50;
  color: white;
}

.status-message.error {
  background-color: #F44336;
  color: white;
}
