/* =======================
   Mon compte – Header & liens retour
   ======================= */

.mps-account-authentication .page-header,
.page-header {
  margin-bottom: 1.5rem;
}

.mps-account-intro {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #666;
}

.mps-account-back {
  margin-bottom: 0;
}

.mps-account-back .mps-return-link {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 2px;
  font-size: 0.9rem;
}

/* ==========================================================================
   PAGE LOGIN – MPS
   ========================================================================== */

/* 0. Conteneur #content du thème classic : on le neutralise */
body#authentication #content.page-content.card.card-block {
  padding: 0;
  background: transparent;
  max-width: none;
  margin: 0;
  box-shadow: none;
  border: none;
}

/* 1. Fond global + suppression breadcrumb / header */
body#authentication {
  background: #f5f5f5;
}

body#authentication .breadcrumb,
body#authentication .page-header {
  display: none;
}

/* 2. Wrapper fullscreen centré */
.mps-auth-page {
  min-height: calc(100vh - 160px); /* marge pour header/footer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* 3. Carte de login */
.mps-auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.25rem 2.25rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

/* 4. Titre + sous-titre */
.mps-auth-title {
  margin: 0;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
}

.mps-auth-subtitle {
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;
  text-align: center;
  font-size: 0.95rem;
  color: #666666;
}

/* 5. Layout du formulaire : labels au-dessus, champs pleine largeur */
body#authentication .login-form {
  margin: 0;
}

/* On casse la grille Bootstrap Classic */
body#authentication .login-form .form-group.row {
  display: block;
  margin-bottom: 1rem;
}

body#authentication .login-form .form-group .col-md-3,
body#authentication .login-form .form-group .col-md-4,
body#authentication .login-form .form-group .col-md-6,
body#authentication .login-form .form-group .col-md-9 {
  width: 100%;
  max-width: 100%;
  flex: none;
  padding-left: 0;
  padding-right: 0;
  text-align: left ;
}

/* Label au-dessus du champ */
body#authentication .login-form .form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333333;
}

/* Champs confortables, full width */
body#authentication .login-form .form-control {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d4d4d4;
  padding: 0.7rem 0.75rem;
  font-size: 0.95rem;
}

/* 6. Bouton Afficher/Masquer mot de passe : gris foncé, lisible */
body#authentication .login-form .input-group {
  width: 100%;
}

body#authentication .login-form .input-group .input-group-btn .btn {
  border-radius: 0 8px 8px 0;
  border-color: #555555;
  background: #555555;
  color: #ffffff;
  font-size: 0.8rem;
  padding: 0.7rem 0.9rem;
}

/* 7. Lien "Mot de passe oublié ?" en bleu MPS */
body#authentication .login-form .form-footer {
  text-align: center;
  margin-top: 0.75rem;
}

body#authentication .login-form .form-footer .forgot-password a {
  font-size: 0.85rem;
  color: #009ee0;
}

/* 8. Bouton CONNEXION : full width, radius 10px, pas d’uppercase */
body#authentication .form-footer .btn-primary,
body#authentication .form-footer .btn.btn-primary,
body#authentication .form-footer #submit-login {
  display: block;
  width: 100%;
  background-color: #009ee0;
  border-color: #009ee0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9em;   /* comme demandé */
  text-transform: none;
  letter-spacing: normal;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}

body#authentication .form-footer .btn-primary:hover,
body#authentication .form-footer .btn.btn-primary:hover,
body#authentication .form-footer #submit-login:hover {
  background-color: #0088bf;
  border-color: #0088bf;
}

/* 9. Lien "Pas de compte ? Créez-en un" */
body#authentication .no-account {
  margin-top: 1.5rem;
  text-align: center;
}

body#authentication .no-account a {
  font-size: 0.9rem;
  color: #009ee0;
  text-decoration: none;
}

body#authentication .no-account a:hover {
  text-decoration: underline;
}

/* 10. Tous les liens à l’intérieur de la carte en bleu MPS
      (écrase le a global du thème) */
.mps-auth-card a {
  color: #009ee0;
}

/* 11. Responsive léger */
@media (max-width: 575.98px) {
  .mps-auth-card {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .mps-auth-title {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   PAGE "MOT DE PASSE OUBLIÉ ?" – MPS
   ========================================================================== */

/* Neutraliser la carte #content du thème classic sur cette page aussi */
body#password #content.page-content.card.card-block {
  padding: 0;
  background: transparent;
  max-width: none;
  margin: 0;
  box-shadow: none;
  border: none;
}

/* Le layout global (mps-auth-page / mps-auth-card) est déjà défini
   pour la page de login, donc on le réutilise tel quel. */

/* Formulaire : label au-dessus, champ full width, bouton en dessous */
body#password .mps-password-form .form-group {
  display: block;
  margin-bottom: 1rem;
}

body#password .mps-password-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333333;
  text-align: left ;
}

body#password .mps-password-form .form-control {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d4d4d4;
  padding: 0.7rem 0.75rem;
  font-size: 0.95rem;
}

/* Bouton bleu full width, même style que CONNEXION */
body#password .mps-password-form .mps-btn-submit {
  display: block;
  width: 100%;
  background-color: #009ee0;
  border-color: #009ee0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9em;
  text-transform: none;
  letter-spacing: normal;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}

body#password .mps-password-form .mps-btn-submit:hover {
  background-color: #0088bf;
  border-color: #0088bf;
}

/* Lien "Retour à la connexion" */
.mps-password-back {
  margin-top: 1.25rem;
  text-align: center;
}

body#password .mps-password-back .mps-return-link {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Liens en bleu MPS dans cette card */
body#password .mps-auth-card a {
  color: #009ee0;
}

/* ==========================================================================
   FOOTER MPS
   ========================================================================== */

#footer {
  background: #f7f7f7;
  margin-top: 3rem;
}

/* Bloc principal */
.mps-footer-main {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid #ececec;
}

/* Disposition des colonnes */
.mps-footer-row {
  align-items: flex-start;
}

.mps-footer-col-left {
  margin-bottom: 1.5rem;
}

.mps-footer-logo a {
  display: inline-block;
}

.mps-footer-logo img {
  max-width: 260px;
  height: auto;
  width: 240px;
}

/* Texte boutique */
.mps-footer-tagline {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555555;
}

/* Colonne droite : titre + liens */
.mps-footer-col-right {
  text-align: left;
}

.mps-footer-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mps-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mps-footer-links li + li {
  margin-top: 0.35rem;
}

.mps-footer-links a {
  font-size: 0.95rem;
  color: #333333;
  text-decoration: none;
}

.mps-footer-links a:hover {
  color: #009ee0;
  text-decoration: underline;
}

/* Bas de footer (copyright) */
.mps-footer-bottom {
  border-top: 1px solid #e5e5e5;
  padding: 0.9rem 0 1.2rem;
}

.mps-footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: #777777;
}

.mps-footer-copy a {
  color: inherit;
}

/* Responsive */
@media (max-width: 767.98px) {
  .mps-footer-col-right {
    margin-top: 1.5rem;
  }

  .mps-footer-logo img {
    max-width: 180px;
  }
}

/* Cart & checkout cards */
body#checkout section.checkout-step {
  border-radius: 10px 10px 0 0;
}

body#checkout section#checkout-payment-step {
  border-radius: 0 0 10px 10px;
}

body#checkout article[id^="id_address_delivery-address-"] {
  border-radius: 10px;
}

/* Résumé panier à droite */
body#checkout section#js-checkout-summary {
  border-radius: 10px;
}


/* ==========================================================================
   CHECKOUT – POLISH TYPO & LAYOUT
   ========================================================================== */

/* Fond global plus doux */
body#checkout {
  background: #f5f5f5;
}

/* Titre "Commande" */
body#checkout .page-header h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Cartes d’étapes */
body#checkout section.checkout-step {
  margin-bottom: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 10px 10px 0 0;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

/* Étape paiement : arrondis bas */
body#checkout section#checkout-payment-step {
  border-radius: 0 0 10px 10px;
}

/* Titre d’étape (Adresse / Livraison / Paiement…) */
body#checkout .checkout-step .step-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Numéro d’étape plus discret mais lisible */
body#checkout .checkout-step .step-number {
  font-weight: 600;
  margin-right: 0.35rem;
  color: #009ee0;
}

/* Texte des options (transporteur, mode de paiement…) */
body#checkout .checkout-step label,
body#checkout .checkout-step .custom-radio label,
body#checkout .checkout-step .custom-checkbox label {
  font-size: 0.95rem;
  color: #333333;
}

/* Champs de formulaire (adresse, etc.) */
body#checkout .form-control {
  border-radius: 6px;
  border: 1px solid #d4d4d4;
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
}

/* Boutons principaux (Suivant, Commander…) */
body#checkout .btn-primary,
body#checkout .btn.btn-primary {
  background-color: #009ee0;
  border-color: #009ee0;
  border-radius: 9999px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
}

body#checkout .btn-primary:hover,
body#checkout .btn.btn-primary:hover {
  background-color: #0088bf;
  border-color: #0088bf;
}

/* Boutons secondaires (modifier, continuer les achats…) */
body#checkout .btn-secondary,
body#checkout .btn-outline-secondary {
  border-radius: 9999px;
  font-size: 0.9rem;
}

/* Résumé panier à droite */
body#checkout section#js-checkout-summary {
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

/* Lignes produit dans le résumé */
body#checkout #js-checkout-summary .cart-summary-products .media-body {
  font-size: 0.9rem;
}

/* Totaux (sous-total, livraison, total) */
body#checkout #js-checkout-summary .cart-summary-line {
  font-size: 0.95rem;
}

body#checkout #js-checkout-summary .cart-summary-line .label {
  color: #555555;
}

body#checkout #js-checkout-summary .cart-summary-line .value {
  font-weight: 600;
}

/* Adresse de livraison/facturation (cartes) */
body#checkout article[id^="id_address_delivery-address-"],
body#checkout article[id^="id_address_invoice-address-"] {
  border-radius: 10px;
}

/* Réassurance sous le résumé – un peu d’air et typo plus légère */
body#checkout #displayReassurance {
  margin-top: 1.5rem;
}

body#checkout #displayReassurance li {
  font-size: 0.9rem;
  color: #555555;
}

/* Responsive : boutons pleine largeur sur mobile */
@media (max-width: 767.98px) {
  body#checkout .btn,
  body#checkout .btn-primary,
  body#checkout .btn-secondary {
    width: 100%;
  }

  body#checkout section.checkout-step {
    padding: 1.25rem 1.1rem;
  }
}

/* ==========================================================================
   REASSURANCE (Checkout)
   ========================================================================== */

.mps-reassurance {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.mps-reassurance-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mps-reassurance-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #333333;
}

.mps-reassurance-item:last-child {
  margin-bottom: 0;
}

.mps-reassurance-item i {
  font-size: 1.3rem;
  color: #009ee0;
  margin-right: 0.5rem;
}
