/* ============================================================
   UFML-Syndicat — Adhésion (Lot 2)
   Pages /j-adhere et /adhesion-internes + relook compte adhérent.
   Réutilise les variables de charte définies sur .ufmls-page.
   ============================================================ */

/* ---------- Hero centré ---------- */
.ufmls-adh-hero{ position:relative; overflow:hidden;
  background:radial-gradient(900px 400px at 90% -20%, rgba(237,0,154,0.28), transparent 60%), var(--ufmls-violet); }
.ufmls-adh-hero__inner{ max-width:880px; margin:0 auto; padding:56px 32px 60px; text-align:center; }
.ufmls-adh-hero h1{ font-weight:800; font-size:46px; line-height:1.06; letter-spacing:-1.4px; color:#fff; margin:0 0 16px; text-wrap:balance; }
.ufmls-adh-hero p{ font-size:18px; line-height:1.6; color:#DDE0F7; margin:0 auto; max-width:640px; }

/* ---------- Section wrapper ---------- */
.ufmls-adh-section{ padding:48px 0 20px; }
.ufmls-adh-wrap{ max-width:1080px; margin:0 auto; padding:0 32px; }
.ufmls-adh-wrap--narrow{ max-width:520px; }

/* ---------- Sélecteur récurrent / unique ---------- */
.ufmls-toggle{ display:flex; justify-content:center; margin-bottom:18px; }
.ufmls-toggle__inner{ display:inline-flex; background:#E7E8FB; border-radius:14px; padding:5px; gap:4px; }
.ufmls-toggle__btn{ position:relative; border:none; cursor:pointer; font-family:var(--ufmls-font); font-weight:600;
  font-size:14.5px; padding:11px 22px; border-radius:10px; display:inline-flex; align-items:center; gap:9px;
  transition:all .18s ease; background:transparent; color:var(--ufmls-text-muted); }
.ufmls-toggle__btn.is-active{ background:var(--ufmls-violet); color:#fff; box-shadow:0 6px 16px rgba(84,91,227,0.3); }
.ufmls-toggle__badge{ font-size:10.5px; font-weight:700; letter-spacing:0.3px; padding:3px 9px; border-radius:100px;
  background:rgba(84,91,227,0.14); color:var(--ufmls-violet); }
.ufmls-toggle__btn.is-active .ufmls-toggle__badge{ background:rgba(255,255,255,0.22); color:#fff; }

.ufmls-adh__explain{ text-align:center; font-size:14.5px; line-height:1.6; color:var(--ufmls-text-muted);
  margin:0 auto 40px; max-width:620px; }

/* ---------- Cartes de tarif ---------- */
.ufmls-tiers{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; align-items:stretch; max-width:760px; margin:0 auto; }
.ufmls-tier{ background:#fff; border-radius:18px; border:1px solid #E4E5F2; padding:32px 28px; display:flex;
  flex-direction:column; box-shadow:0 14px 40px rgba(84,91,227,0.08); }
.ufmls-tier--featured{ border:2px solid var(--ufmls-magenta); box-shadow:0 22px 54px rgba(237,0,154,0.16);
  transform:translateY(-12px); position:relative; }
.ufmls-tier__flag{ position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:var(--ufmls-magenta);
  color:#fff; padding:5px 16px; border-radius:100px; font-size:11.5px; font-weight:700; letter-spacing:0.4px; white-space:nowrap; }
.ufmls-tier__name{ font-weight:700; font-size:18px; color:var(--ufmls-violet); margin-bottom:14px; }
.ufmls-tier__price{ font-weight:800; font-size:44px; letter-spacing:-1.5px; color:var(--ufmls-anthracite); line-height:1; margin-bottom:4px; }
.ufmls-tier--internes .ufmls-tier__price{ font-size:48px; }
.ufmls-tier__period{ font-size:13px; color:var(--ufmls-text-faint); margin-bottom:20px; }
.ufmls-tier__desc{ font-size:14px; line-height:1.55; color:var(--ufmls-text-muted); margin:0 0 26px; flex:1; }
/* Texte blanc forcé : la règle de base .ufmls-page a (violet) a une spécificité
   supérieure à une classe seule ; on ajoute les pseudo-classes + !important +
   -webkit-text-fill-color (sinon WebKit/Safari garde le violet). */
.ufmls-tier__cta,.ufmls-tier__cta:link,.ufmls-tier__cta:visited,
.ufmls-tier__cta:hover,.ufmls-tier__cta:focus,.ufmls-tier__cta:active{
  display:block; text-align:center; background:var(--ufmls-magenta) !important;
  color:#fff !important; -webkit-text-fill-color:#fff !important; text-decoration:none;
  padding:14px; border-radius:11px; font-weight:700; font-size:15px; box-shadow:0 8px 22px rgba(237,0,154,0.32); }
.ufmls-tier__cta:hover{ filter:brightness(1.05); }

/* Carte internes seule (centrée) */
.ufmls-tier--solo{ max-width:520px; margin:0 auto; padding:34px 32px; }

/* ---------- Encart internes / passage de relais ---------- */
.ufmls-inset{ max-width:760px; margin:30px auto 0; background:var(--ufmls-bg); border-left:4px solid var(--ufmls-violet);
  border-radius:0 12px 12px 0; padding:18px 22px; font-size:14.5px; line-height:1.55; color:var(--ufmls-anthracite); }
.ufmls-inset--magenta{ border-left-color:var(--ufmls-magenta); border-top:1px solid #E4E5F2;
  border-right:1px solid #E4E5F2; border-bottom:1px solid #E4E5F2; }
.ufmls-inset a{ color:var(--ufmls-violet); text-decoration:none; font-weight:600; white-space:nowrap; }
.ufmls-note{ text-align:center; font-size:13.5px; color:var(--ufmls-text-faint); margin:22px 0 0; }
.ufmls-note a{ color:var(--ufmls-violet); text-decoration:none; font-weight:600; }

/* ---------- Réassurance ---------- */
.ufmls-reassure{ max-width:1080px; margin:0 auto; padding:44px 32px 8px; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.ufmls-reassure__item{ display:flex; gap:14px; align-items:flex-start; background:#fff; border-radius:14px;
  padding:22px 24px; box-shadow:0 10px 30px rgba(84,91,227,0.06); }
.ufmls-reassure__icon{ flex:0 0 auto; width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  background:rgba(84,91,227,0.12); color:var(--ufmls-violet); }
.ufmls-reassure__icon--magenta{ background:rgba(237,0,154,0.12); color:var(--ufmls-magenta); }
.ufmls-reassure__title{ font-weight:700; font-size:15px; color:var(--ufmls-anthracite); margin-bottom:4px; }
.ufmls-reassure__desc{ font-size:13px; line-height:1.5; color:var(--ufmls-text-muted); }

/* La carte « prorata / résiliation » n'apparaît qu'en mode récurrent. */
.ufmls-adh[data-mode="unique"] .ufmls-prorata{ display:none; }

/* ---------- Argumentaire internes (3 cartes) ---------- */
.ufmls-args{ max-width:1080px; margin:0 auto; padding:56px 32px 20px; display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.ufmls-arg{ background:#fff; border-radius:18px; padding:30px 28px; box-shadow:0 14px 40px rgba(84,91,227,0.08); border-top:4px solid var(--ufmls-violet); }
.ufmls-arg--magenta{ border-top-color:var(--ufmls-magenta); }
.ufmls-arg__icon{ width:46px; height:46px; border-radius:12px; background:rgba(84,91,227,0.12); color:var(--ufmls-violet);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.ufmls-arg--magenta .ufmls-arg__icon{ background:rgba(237,0,154,0.12); color:var(--ufmls-magenta); }
.ufmls-arg h3{ font-weight:700; font-size:18px; color:var(--ufmls-anthracite); margin:0 0 9px; letter-spacing:-0.3px; }
.ufmls-arg p{ font-size:14px; line-height:1.55; color:var(--ufmls-text-muted); margin:0; }

/* ---------- FAQ (details/summary) ---------- */
.ufmls-faq-section{ padding:56px 0 64px; }
.ufmls-faq{ max-width:780px; margin:0 auto; padding:0 32px; }
.ufmls-faq h2{ font-weight:700; font-size:30px; letter-spacing:-0.7px; color:var(--ufmls-anthracite); margin:0 0 26px; text-align:center; }
.ufmls-faq__list{ display:flex; flex-direction:column; gap:12px; }
.ufmls-faq__item{ background:#fff; border-radius:14px; box-shadow:0 10px 30px rgba(84,91,227,0.06); overflow:hidden; }
.ufmls-faq__item summary{ list-style:none; cursor:pointer; padding:20px 24px; display:flex; align-items:center;
  justify-content:space-between; gap:16px; font-weight:600; font-size:16px; color:var(--ufmls-anthracite); }
.ufmls-faq__item summary::-webkit-details-marker{ display:none; }
.ufmls-faq__icon{ flex:0 0 auto; width:26px; height:26px; border-radius:8px; display:inline-flex; align-items:center;
  justify-content:center; font-weight:400; font-size:22px; line-height:1; background:#F0F1FB; color:var(--ufmls-violet); transition:transform .2s ease; }
.ufmls-faq__item[open] .ufmls-faq__icon{ background:var(--ufmls-magenta); color:#fff; transform:rotate(45deg); }
.ufmls-faq__answer{ padding:0 24px 22px; font-size:14.5px; line-height:1.65; color:var(--ufmls-text-muted); }
.ufmls-faq__answer--pending{ color:var(--ufmls-text-faint); font-style:italic; }
.ufmls-faq__answer a{ color:var(--ufmls-violet); text-decoration:none; font-weight:600; }
.ufmls-faq__more{ text-align:center; margin:26px 0 0; }
.ufmls-faq__more a{ color:var(--ufmls-violet); text-decoration:none; font-weight:600; font-size:14px;
  border-bottom:1px solid rgba(84,91,227,0.3); padding-bottom:2px; }

/* Accordéon « Conditions détaillées » (déploie le contenu sur place, plus de lien mort) */
.ufmls-conditions{ margin-top:12px; }
.ufmls-conditions__body{ padding-top:4px; }
.ufmls-conditions__body p{ margin:0 0 12px; }
.ufmls-conditions__body ul{ margin:0 0 14px; padding-left:20px; list-style:disc; }
.ufmls-conditions__body li{ margin:0 0 7px; }
.ufmls-conditions__body strong{ color:var(--ufmls-anthracite); font-weight:700; }
.ufmls-conditions__body h4{ margin:20px 0 8px; font-size:15.5px; font-weight:700; color:var(--ufmls-violet); }
.ufmls-conditions__body > p:first-child{ margin-top:0; }

/* ============================================================
   Relook compte adhérent (charte) — complète les styles MemberPress.
   ============================================================ */
.ufmls-account-portal{ max-width:900px; margin:20px auto; padding:22px 24px; background:#fff; border-radius:14px;
  border:1px solid #E4E5F2; box-shadow:var(--ufmls-card-shadow); display:flex; align-items:center; justify-content:space-between;
  gap:18px; flex-wrap:wrap; font-family:var(--ufmls-font); }
.ufmls-account-portal__text{ font-size:14.5px; line-height:1.5; color:var(--ufmls-text-muted); }
.ufmls-account-portal__text strong{ color:var(--ufmls-anthracite); }
.ufmls-account-portal a{ flex:0 0 auto; background:var(--ufmls-violet); color:#fff; text-decoration:none; padding:12px 22px;
  border-radius:11px; font-weight:700; font-size:14.5px; box-shadow:0 8px 22px rgba(84,91,227,0.28); }
.ufmls-account-portal a:hover{ filter:brightness(1.05); }

/* ---------- Responsive < 768px ---------- */
@media (max-width:768px){
  .ufmls-adh-hero__inner,.ufmls-adh-wrap,.ufmls-reassure,.ufmls-args,.ufmls-faq{ padding-left:20px; padding-right:20px; }
  .ufmls-adh-hero h1{ font-size:32px; }
  .ufmls-tiers{ grid-template-columns:1fr; }
  .ufmls-tier--featured{ transform:none; }
  .ufmls-reassure{ grid-template-columns:1fr; }
  .ufmls-args{ grid-template-columns:1fr; }
  .ufmls-toggle__inner{ flex-wrap:wrap; }
  .ufmls-account-portal{ flex-direction:column; align-items:flex-start; }
}
