/* France MCS — Adhésion par carte bancaire */
.fmcs-card-box{
  --fmcs-blue:#2f80ed;
  --fmcs-blue-dark:#185da8;
  --fmcs-ink:#17324d;
  --fmcs-soft:#edf6ff;
  --fmcs-border:#c8ddf3;
  max-width:680px;
  margin:24px auto;
  padding:22px;
  border:1px solid var(--fmcs-border);
  border-radius:18px;
  background:#fff;
  color:var(--fmcs-ink);
  box-shadow:0 10px 30px rgba(27,82,130,.10);
  box-sizing:border-box;
}
.fmcs-membership-top{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:14px;
  align-items:center;
  padding:14px;
  background:linear-gradient(135deg,#f4f9ff,#eaf4ff);
  border-radius:14px;
  border:1px solid #d2e5f8;
}
.fmcs-membership-symbol{
  display:flex;
  align-items:center;
  justify-content:center;
  width:58px;
  height:44px;
  border-radius:9px;
  background:var(--fmcs-blue);
  box-shadow:0 5px 14px rgba(47,128,237,.22);
}
.fmcs-membership-card-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:25px;
  height:25px;
  border-radius:50%;
  background:#fff;
  color:var(--fmcs-blue);
  font-size:17px;
  font-weight:900;
}
.fmcs-card-box h2{
  margin:0!important;
  color:#174d83!important;
  font-size:22px!important;
  line-height:1.25!important;
}
.fmcs-membership-duration{
  margin-top:3px;
  color:#57728a;
  font-size:14px;
  font-weight:700;
}
.fmcs-membership-price{
  color:var(--fmcs-blue-dark);
  font-size:28px;
  font-weight:900;
  white-space:nowrap;
}
.fmcs-card-member{
  display:grid;
  gap:2px;
  margin:16px 0;
  padding:12px 14px;
  border-radius:10px;
  background:#f7fafc;
  border:1px solid #e3ebf2;
}
.fmcs-card-member strong{font-size:15px}
.fmcs-card-member span{font-size:14px;color:#536f87}
.fmcs-card-member small{margin-top:5px;color:#667e91;font-size:12.5px;line-height:1.45}
.fmcs-card-box h3{
  margin:18px 0 12px!important;
  color:#244c6e!important;
  font-size:17px!important;
}
.fmcs-card-fields{display:grid;gap:12px}
.fmcs-card-fields label{
  display:grid;
  gap:6px;
  color:#355772;
  font-size:13px;
  font-weight:800;
}
.fmcs-card-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.fmcs-hosted-field,
#fmcs-card-postal{
  min-height:48px;
  box-sizing:border-box;
  border:1px solid #b9cee1;
  border-radius:10px;
  background:#fff;
}
.fmcs-hosted-field{padding:10px 12px}
#fmcs-card-postal{
  width:100%;
  padding:11px 13px;
  color:#17324d;
  font-size:16px;
  outline:none;
}
#fmcs-card-postal:focus{
  border-color:var(--fmcs-blue);
  box-shadow:0 0 0 3px rgba(47,128,237,.12);
}
.fmcs-pay-button{
  width:100%;
  min-height:50px;
  margin-top:16px;
  padding:12px 18px;
  border:0;
  border-radius:11px;
  background:var(--fmcs-blue);
  color:#fff;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 7px 18px rgba(47,128,237,.22);
}
.fmcs-pay-button:hover:not(:disabled){background:#2271d1}
.fmcs-pay-button:disabled{opacity:.55;cursor:not-allowed}
.fmcs-pay-button.is-loading{opacity:.72}
.fmcs-card-status{
  margin-top:12px;
  padding:11px 13px;
  border-radius:9px;
  background:#f2f6f9;
  color:#48667d;
  font-size:14px;
  line-height:1.45;
}
.fmcs-card-status.is-ready{background:#edf6ff;color:#235f98}
.fmcs-card-status.is-working{background:#fff9e8;color:#7b5a12}
.fmcs-card-status.is-success{background:#ecf8ef;color:#17683f;font-weight:700}
.fmcs-card-status.is-error{background:#fff0f0;color:#a23a3a;font-weight:700}
.fmcs-card-security{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:14px;
  color:#5c7183;
  font-size:12px;
  font-weight:700;
}
.fmcs-provider-note{
  margin:10px 0 0!important;
  color:#80909c!important;
  font-size:11px!important;
  line-height:1.4!important;
}
.fmcs-card-login{text-align:center}
.fmcs-card-login .fmcs-membership-symbol{margin:0 auto 12px}
.fmcs-card-login p{font-size:15px;line-height:1.6}
.fmcs-login-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px}
.fmcs-primary-link,.fmcs-secondary-link{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:9px 15px;
  border-radius:9px;
  font-weight:800;
  text-decoration:none!important;
}
.fmcs-primary-link{background:var(--fmcs-blue);color:#fff!important}
.fmcs-secondary-link{background:#fff;color:var(--fmcs-blue-dark)!important;border:1px solid #bcd5ee}
.fmcs-card-error{
  max-width:680px;
  margin:20px auto;
  padding:14px;
  border-left:4px solid #d68a1b;
  border-radius:8px;
  background:#fff8e9;
  color:#73531e;
}
.fmcs-card-box.is-success .fmcs-pay-button{background:#23884d}

@media(max-width:620px){
  .fmcs-card-box{padding:15px;border-radius:14px}
  .fmcs-membership-top{grid-template-columns:auto 1fr}
  .fmcs-membership-price{grid-column:2;font-size:24px}
  .fmcs-card-row{grid-template-columns:1fr}
}


/* =========================================================
 * Bouton flottant France MCS — bas gauche
 * ========================================================= */
.fmcs-floating-membership{
  --fmcs-float-blue:#2f80ed;
  --fmcs-float-blue-dark:#185da8;
  position:relative;
  z-index:999998;
}
.fmcs-floating-trigger{
  position:fixed;
  left:20px;
  bottom:20px;
  z-index:999998;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:9px 16px 9px 10px;
  border:0;
  border-radius:16px;
  background:#2f80ed;
  color:#fff;
  box-shadow:0 10px 28px rgba(17,74,132,.30);
  cursor:pointer;
  font-family:inherit;
  text-align:left;
}
.fmcs-floating-trigger:hover,
.fmcs-floating-trigger:focus-visible{
  background:#2271d1;
  box-shadow:0 12px 32px rgba(17,74,132,.38);
  outline:none;
}
.fmcs-floating-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:10px;
  background:#fff;
  color:#2f80ed;
  font-size:21px;
  font-weight:900;
}
.fmcs-floating-text{
  display:grid;
  line-height:1.12;
}
.fmcs-floating-text strong{
  color:#fff;
  font-size:14px;
  font-weight:900;
  white-space:nowrap;
}
.fmcs-floating-text small{
  margin-top:4px;
  color:#e9f4ff;
  font-size:12px;
  font-weight:700;
}
.fmcs-floating-overlay{
  position:fixed;
  inset:0;
  z-index:999998;
  background:rgba(15,39,64,.48);
  backdrop-filter:blur(2px);
}
.fmcs-floating-panel{
  position:fixed;
  left:20px;
  bottom:92px;
  z-index:999999;
  width:min(720px,calc(100vw - 40px));
  max-height:calc(100vh - 120px);
  overflow:auto;
  box-sizing:border-box;
  padding:48px 14px 14px;
  border:1px solid #bfd8ef;
  border-radius:18px;
  background:#f8fbff;
  box-shadow:0 22px 55px rgba(13,48,82,.30);
}
.fmcs-floating-panel[hidden],
.fmcs-floating-overlay[hidden]{
  display:none!important;
}
.fmcs-floating-close{
  position:absolute;
  top:10px;
  right:12px;
  min-height:32px;
  padding:5px 10px;
  border:1px solid #8fbae4;
  border-radius:8px;
  background:#fff;
  color:#185da8;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.fmcs-floating-close:hover,
.fmcs-floating-close:focus-visible{
  background:#edf6ff;
  outline:2px solid rgba(47,128,237,.22);
  outline-offset:1px;
}
.fmcs-floating-content .fmcs-card-box,
.fmcs-floating-content .fmcs-card-error{
  margin:0 auto;
  box-shadow:none;
}
html.fmcs-membership-open{
  overflow:hidden;
}

@media(max-width:620px){
  .fmcs-floating-trigger{
    left:12px;
    bottom:12px;
    min-height:52px;
    padding:7px 12px 7px 8px;
    border-radius:14px;
  }
  .fmcs-floating-icon{
    width:34px;
    height:34px;
    flex-basis:34px;
    font-size:18px;
  }
  .fmcs-floating-text strong{font-size:13px}
  .fmcs-floating-text small{font-size:11px}
  .fmcs-floating-panel{
    left:10px;
    right:10px;
    bottom:76px;
    width:auto;
    max-height:calc(100vh - 92px);
    padding:46px 8px 8px;
    border-radius:15px;
  }
}


/* Identité de l'adhérent */
.fmcs-person-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:14px 0 4px;
}
.fmcs-person-fields label{
  display:grid;
  gap:6px;
  color:#355772;
  font-size:13px;
  font-weight:800;
}
.fmcs-person-fields input{
  width:100%;
  min-height:48px;
  box-sizing:border-box;
  padding:11px 13px;
  border:1px solid #b9cee1;
  border-radius:10px;
  background:#fff;
  color:#17324d;
  font-size:16px;
  outline:none;
}
.fmcs-person-fields input:focus{
  border-color:#2f80ed;
  box-shadow:0 0 0 3px rgba(47,128,237,.12);
}
@media(max-width:620px){
  .fmcs-person-fields{grid-template-columns:1fr}
}


/* Adresse de facturation */
.fmcs-card-fields input[type="text"],
.fmcs-card-fields select{
  width:100%;
  min-height:48px;
  box-sizing:border-box;
  padding:11px 13px;
  border:1px solid #b9cee1;
  border-radius:10px;
  background:#fff;
  color:#17324d;
  font-size:16px;
  outline:none;
}
.fmcs-card-fields input[type="text"]:focus,
.fmcs-card-fields select:focus{
  border-color:#2f80ed;
  box-shadow:0 0 0 3px rgba(47,128,237,.12);
}


/* =========================================================
 * v1.1.0 — PayPal Standard Checkout
 * ========================================================= */
.fmcs-standard-checkout .fmcs-standard-info{
  margin:16px 0 12px;
  padding:14px;
  border:1px solid #d7e6f4;
  border-radius:11px;
  background:#f6faff;
}
.fmcs-standard-checkout .fmcs-standard-info h3{
  margin:0 0 8px!important;
  color:#244c6e!important;
  font-size:17px!important;
}
.fmcs-standard-checkout .fmcs-standard-info p{
  margin:0!important;
  color:#4c657a!important;
  font-size:14px!important;
  line-height:1.55!important;
}
.fmcs-standard-card-button{
  min-height:52px;
  margin:14px 0 10px;
  position:relative;
  z-index:2;
}
.fmcs-standard-checkout.is-success .fmcs-standard-card-button{
  display:none;
}


/* v1.1.5 — Codes promo */
.fmcs-promo-box{
  margin:14px 0;
  padding:14px;
  border:1px solid #d7e6f4;
  border-radius:11px;
  background:#fffdf3;
}
.fmcs-promo-box label{display:block;margin-bottom:8px;color:#244c6e}
.fmcs-promo-box label span{font-weight:400;color:#6b7f91}
.fmcs-promo-row{display:flex;gap:8px;align-items:stretch}
.fmcs-promo-row input{
  flex:1 1 auto;min-width:0;min-height:46px;padding:10px 12px;
  border:1px solid #b9cee1;border-radius:9px;font-size:16px;text-transform:uppercase
}
.fmcs-promo-row button{
  flex:0 0 auto;padding:0 16px;border:1px solid #2f80ed;border-radius:9px;
  background:#2f80ed;color:#fff;font-weight:700;cursor:pointer
}
.fmcs-promo-row button:disabled{opacity:.6;cursor:wait}
.fmcs-promo-status{margin-top:8px;min-height:18px;font-size:13px}
.fmcs-promo-status.is-valid{color:#08783e;font-weight:700}
.fmcs-promo-status.is-error{color:#b32d2e;font-weight:700}
.fmcs-promo-status.is-working{color:#195b9f}
.fmcs-old-price{text-decoration:line-through;opacity:.6;font-size:.72em;margin-right:4px}
.fmcs-new-price{font-weight:800}
@media(max-width:560px){
  .fmcs-promo-row{flex-direction:column}
  .fmcs-promo-row button{min-height:44px}
}


/* v1.1.8 — Paiement public et rattachement automatique par e-mail */
.fmcs-card-guest-info{
  display:grid;
  gap:5px;
  margin:14px 0;
  padding:12px 14px;
  border:1px solid #d7e6f4;
  border-radius:10px;
  background:#f6fbff;
  color:#355772;
  line-height:1.45;
}
.fmcs-card-guest-info strong{color:#1f5d93;font-size:14px}
.fmcs-card-guest-info span{font-size:13px}

.fmcs-email-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:12px 0 4px;
}
.fmcs-email-fields label{
  display:grid;
  gap:6px;
  color:#355772;
  font-size:13px;
  font-weight:800;
}
.fmcs-email-fields input{
  width:100%;
  min-height:48px;
  box-sizing:border-box;
  padding:11px 13px;
  border:1px solid #b9cee1;
  border-radius:10px;
  background:#fff;
  color:#17324d;
  font-size:16px;
  outline:none;
}
.fmcs-email-fields input:focus{
  border-color:#2f80ed;
  box-shadow:0 0 0 3px rgba(47,128,237,.12);
}
.fmcs-email-fields input[readonly]{
  background:#f2f6f9;
  color:#536f87;
}
@media(max-width:620px){
  .fmcs-email-fields{grid-template-columns:1fr}
}
