/* ==========================================================================
   Presstivo : habillage des pages publiques (connexion, à propos, tarifs,
   comment ça marche, assistance, mentions légales).
   Chargé après styles.css : il en réutilise les variables et composants.
   ========================================================================== */

/* ---------- Bandeau de page ---------- */
.ph {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 70%, #1550D6 100%);
  padding: 56px 0 64px;
}
.ph::before, .ph::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.ph::before { width: 360px; height: 360px; right: -90px; top: -140px; background: rgba(255, 255, 255, .07); }
.ph::after { width: 220px; height: 220px; right: 14%; bottom: -130px; background: rgba(245, 138, 11, .22); }
.ph .container { position: relative; z-index: 1; }
.ph-badge {
  display: inline-block; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px; padding: 5px 14px; font-size: .75rem; font-weight: 600; letter-spacing: .03em;
}
.ph h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; max-width: 20em; margin: 14px 0 12px; color: #fff; }
.ph p { max-width: 42em; font-size: 1.02rem; color: #DCE6FF; }
.ph-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ph .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.ph .btn-outline:hover { background: rgba(255, 255, 255, .12); }

.pg { padding: 48px 0 24px; }
.pg-pull { margin-top: -34px; position: relative; z-index: 2; padding-top: 0; }
.pg-head { text-align: center; max-width: 42em; margin: 0 auto 30px; }
.pg-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.pg-head p { margin-top: 8px; }
.eyebrow { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 6px; }

/* ---------- Connexion ---------- */
[data-page="connexion"] { background: #F4F7FD; }
.cx { padding: 40px 0 72px; }
.cx-wrap { width: min(980px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; border-radius: 22px; overflow: hidden; box-shadow: 0 22px 50px rgba(10, 42, 122, .16); background: #fff; }
.cx-aside {
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%); color: #fff; padding: 44px 38px;
  display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden;
}
.cx-aside::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; bottom: -110px; background: rgba(245, 138, 11, .25); }
.cx-aside h2 { font-size: 1.7rem; line-height: 1.25; font-weight: 800; color: #fff; }
.cx-aside > p { color: #D4E0FF; font-size: .95rem; }
.cx-points { list-style: none; display: grid; gap: 14px; margin-top: 6px; position: relative; z-index: 1; }
.cx-points li { display: flex; gap: 12px; align-items: center; font-size: .9rem; color: #fff; }
.cx-points span { width: 32px; height: 32px; border-radius: 10px; background: var(--orange); display: grid; place-items: center; flex-shrink: 0; }
.cx-points .ico { width: 16px; height: 16px; }
.cx-card { padding: 44px 40px; display: grid; gap: 4px; align-content: center; }
.cx-card .auth-title { text-align: left; font-size: 1.6rem; margin-bottom: 4px; }
.cx-card .auth-sub { text-align: left; margin: 0 0 18px; font-size: .9rem; }
.cx-card form { display: grid; gap: 14px; }
.cx .f-input { background-color: #FAFBFE; }
.cx .f-input:focus { background-color: #fff; }
.cx .auth-forgot { margin: -4px 0 0; }
.cx .form-error:empty { display: none; }
.cx .form-error { background: #FDECEC; border: 1px solid #F6C4C6; border-radius: 12px; padding: 10px 14px; }
.cx .auth-switch { margin-top: 14px; font-size: .875rem; }
.cx-secure { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; font-size: .75rem; color: #7A869E; }
.cx-secure .ico { width: 14px; height: 14px; color: var(--green); }
.pw-field { position: relative; display: block; }
.pw-field .f-input { padding-right: 50px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent;
  color: var(--gray); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; cursor: pointer;
}
.pw-toggle .ico { width: 20px; height: 20px; }
.pw-toggle:hover { background: var(--bg-soft); }

/* ---------- Étapes (comment ça marche) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px 26px 26px;
  box-shadow: var(--shadow-soft); display: grid; gap: 12px; align-content: start; transition: transform .25s, box-shadow .25s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.step-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.step-card p { font-size: .9rem; }
.step-card ul { display: grid; gap: 8px; font-size: .875rem; margin-top: 4px; }
.step-card li { display: flex; gap: 10px; align-items: flex-start; }
.step-card li .ico { width: 16px; height: 16px; color: var(--green); margin-top: 4px; stroke-width: 2.4; flex-shrink: 0; }
.step-ico { width: 54px; height: 54px; border-radius: 16px; background: #E6EEFF; color: var(--blue); display: grid; place-items: center; }
.step-ico .ico { width: 26px; height: 26px; }
.step-card.or .step-ico { background: #FFF1DF; color: var(--orange); }
.step-n {
  position: absolute; top: 18px; right: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.step-card.or .step-n { background: var(--orange); color: #fff; }

.steps-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps-4 .step-card { padding: 26px 20px 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.callout {
  display: flex; gap: 14px; align-items: flex-start; background: #FFF7EA; border: 1px solid #FBDDB0; border-radius: 16px;
  padding: 18px 20px; font-size: .9rem; color: #5B4313;
}
.callout .ico { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.callout strong { color: #3F2D08; }
.callout.info { background: var(--bg-soft); border-color: #D3E0FA; color: var(--gray); }
.callout.info .ico { color: var(--blue); }
.callout.info strong { color: var(--navy); }

/* ---------- Tarifs ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 32px 28px 28px;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 12px; transition: transform .25s, box-shadow .25s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.price-card.featured { border: 2px solid var(--orange); box-shadow: 0 20px 44px rgba(245, 138, 11, .18); }
.price-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.price-for { font-size: .875rem; min-height: 2.9em; }
.price-amt { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.price-amt small { font-size: .85rem; font-weight: 500; color: var(--gray); white-space: nowrap; }
.plan-list { display: grid; gap: 11px; font-size: .9rem; padding-top: 16px; border-top: 1px solid var(--border); margin: 4px 0 8px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list li .ico { width: 18px; height: 18px; color: var(--green); margin-top: 3px; stroke-width: 2.4; flex-shrink: 0; }
.plan-list li.off { color: #8A96AE; }
.plan-list li.off .ico { color: #B4BDCD; }
.price-card .btn { margin-top: auto; }

.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.cmp { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .9rem; }
.cmp th, .cmp td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.cmp thead th { background: var(--bg-soft); color: var(--navy); font-weight: 700; font-size: .95rem; }
.cmp thead th.hl { background: #FFF1DF; color: var(--orange-text); }
.cmp tbody th { text-align: left; font-weight: 600; color: var(--navy); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td.hl { background: #FFFBF4; }
.cmp .yes { color: var(--green); font-weight: 700; }
.cmp .no { color: #B4BDCD; }

/* ---------- À propos ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 22px; box-shadow: var(--shadow-soft);
}
.stat strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.15; }
.stat span { font-size: .85rem; color: var(--gray); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.story .card-panel h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.story .card-panel p { font-size: .95rem; }
.mission-band {
  background: linear-gradient(135deg, var(--navy), var(--blue)); border-radius: 24px; color: #fff; padding: 40px 44px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
}
.mission-band h2 { color: #fff; font-size: 1.6rem; font-weight: 800; }
.mission-band p { color: #DCE6FF; margin-top: 10px; }
.mission-band ul { display: grid; gap: 12px; }
.mission-band li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 14px 16px; font-size: .9rem; }
.mission-band li .ico { width: 18px; height: 18px; color: #FFB45C; margin-top: 3px; flex-shrink: 0; }

/* ---------- Assistance : contact ---------- */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.help-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-soft); display: grid; gap: 8px; align-content: start; }
.help-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.help-card p { font-size: .875rem; }
.help-card a.more { color: var(--blue); font-weight: 600; font-size: .875rem; }
.help-card a.more:hover { text-decoration: underline; }
.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.checklist .ico { width: 18px; height: 18px; color: var(--green); margin-top: 3px; stroke-width: 2.4; flex-shrink: 0; }
.contact-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.contact-layout .contact-list { margin: 0; }

/* ---------- Pages légales ---------- */
.legal { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; padding: 44px 0 72px; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-soft); }
.legal-toc strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--orange-text); margin-bottom: 10px; }
.legal-toc a { display: block; padding: 7px 10px; border-radius: 8px; font-size: .875rem; color: var(--gray); }
.legal-toc a:hover, .legal-toc a.on { background: var(--bg-soft); color: var(--blue); font-weight: 600; }
.legal-body { min-width: 0; max-width: 820px; }
.legal-body section { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px 30px; box-shadow: var(--shadow-soft); margin-bottom: 20px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-body h2 { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.legal-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 18px 0 6px; }
.legal-body p, .legal-body li { font-size: .93rem; margin-bottom: 8px; }
.legal-body ul { list-style: disc; padding-left: 22px; }
.legal-body ol { padding-left: 22px; list-style: decimal; }
.legal-body a { color: var(--blue); text-decoration: underline; }
.legal-body .callout { margin-bottom: 20px; }
.legal-upd { font-size: .8125rem; color: #7A869E; margin-top: 10px; }

@media (max-width: 960px) {
  .steps, .steps-4, .price-grid, .help-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .story, .split, .mission-band, .contact-layout { grid-template-columns: 1fr; }
  .cx-wrap { grid-template-columns: 1fr; }
  .cx-aside { padding: 28px 24px; }
  .cx-aside h2 { font-size: 1.35rem; }
  .cx-points { display: none; }
  .cx-card { padding: 28px 22px; }
  .legal { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { position: static; }
  .legal-toc nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .mission-band { padding: 28px 22px; }
  .price-for { min-height: 0; }
}
@media (max-width: 560px) {
  .ph { padding: 36px 0 48px; }
  .stat-row { grid-template-columns: 1fr; }
  .legal-body section { padding: 22px 18px; }
}

/* ---------- Annuaire ---------- */
.ph-compact { padding: 40px 0 44px; }
.ph-compact h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.ph-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: .875rem; font-weight: 500; color: #fff; }
.ann-section { padding-top: 28px; }
.ann-side { border-radius: 18px; border-color: #DCE5F6; }
.ann-side-head strong { font-size: 1.05rem; }
.ann-toolbar .f-input, .ann-toolbar .f-select { background-color: #FAFBFE; border-radius: 12px; }
.ann-toolbar .f-input:focus, .ann-toolbar .f-select:focus { background-color: #fff; }
.ann-head { border-bottom: 0; border-radius: 0 0 14px 14px; }
.dir-count strong { font-size: 1.1rem; }
.pro-card { border-radius: 18px; border-color: #E3EAF7; }
.pro-actions .btn-outline { border-width: 1.5px; }
@media (max-width: 560px) { .ph-points { flex-direction: column; gap: 6px; } }

.pg-first { padding-top: 40px; }
@media (max-width: 560px) { .pg-first { padding-top: 24px; } }

/* ---------- Page de paiement ---------- */
[data-page="paiement-choix"] { background: #F4F7FD; }
.pay { padding: 28px 0 64px; }
.pay-back { display: inline-block; font-size: .875rem; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.pay-back:hover { text-decoration: underline; }
.pay-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--navy); margin-bottom: 18px; letter-spacing: -.01em; }
.pay-soon {
  display: flex; gap: 12px; align-items: flex-start; background: #FFF7EA; border: 1px solid #FBDDB0; color: #5B4313;
  border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-size: .9rem;
}
.pay-soon[hidden] { display: none; }
.pay-soon .ico { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; margin-top: 1px; }
#payGate { margin-top: 8px; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pay-grid[hidden] { display: none; }
.pay-card { background: #fff; border: 1px solid #E3EAF7; border-radius: 20px; padding: 26px; box-shadow: var(--shadow-soft); }
.pay-card h2 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.pay-methods { display: grid; gap: 12px; }
.pay-method { display: block; cursor: pointer; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method-box {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px;
  border: 2px solid var(--border); border-radius: 16px; background: #FAFBFE; transition: border-color .2s, background .2s, box-shadow .2s;
}
.pay-method:hover .pay-method-box { border-color: #C9D8F5; background: #fff; }
.pay-method input:checked + .pay-method-box { border-color: var(--orange); background: #FFF8EE; box-shadow: 0 0 0 4px rgba(245, 138, 11, .12); }
.pay-method input:focus-visible + .pay-method-box { outline: 3px solid var(--blue); outline-offset: 2px; }
/* Vignette de logo : largeur fixe pour aligner les noms ; le logo garde ses proportions et ses couleurs. */
.pay-logo {
  width: 96px; height: 54px; flex-shrink: 0; border-radius: 12px; background: #fff; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 9px; overflow: hidden;
}
.pay-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
/* Logos carrés (Wave, Moov Money) : affichés plus grands que les logos en largeur. */
.pay-logo.is-icon { padding: 3px; }
.pay-logo.is-icon img { height: 46px; width: 46px; max-height: none; max-width: none; border-radius: 10px; }
.pay-logo img[src$="visa.svg"], .pay-logo img[src$="mastercard.svg"] { max-width: 38px; }
.pay-method-txt { flex: 1; min-width: 0; display: grid; }
.pay-method-txt strong { font-size: .98rem; color: var(--navy); }
.pay-method-txt small { font-size: .78rem; color: #6B7893; }
.pay-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #B4BDCD; flex-shrink: 0; position: relative; transition: border-color .2s; }
.pay-method input:checked + .pay-method-box .pay-radio { border-color: var(--orange); }
.pay-method input:checked + .pay-method-box .pay-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange); }
.pay-hint { font-size: .82rem; color: #6B7893; margin-top: 14px; }
.pay-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.pay-lines { display: grid; gap: 10px; margin: 0 0 16px; }
.pay-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.pay-lines dt { color: #6B7893; }
.pay-lines dd { font-weight: 600; color: var(--navy); text-align: right; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; margin-bottom: 12px; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.pay-total span { font-weight: 600; color: var(--navy); }
.pay-total strong { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.pay .form-error:empty { display: none; }
.pay .form-error { background: #FDECEC; border: 1px solid #F6C4C6; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.pay-secure { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; font-size: .78rem; color: #6B7893; text-align: center; }
.pay-secure .ico { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }
.pay-terms { font-size: .75rem; color: #8A96AE; text-align: center; margin-top: 8px; }
.pay-terms a { color: var(--blue); text-decoration: underline; }
@media (max-width: 860px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-summary { position: static; }
  .pay-card { padding: 20px 16px; border-radius: 16px; }
}

.pr .f-field[hidden] { display: none; }

/* ---------- SEO : pages métier / ville (titre, liste lisible sans JavaScript, liens vers les pages voisines) ---------- */
.ann-seo-head { padding-top: 28px; }
.ann-seo-head .page-title { margin-bottom: 6px; }
.ann-seo-head p { max-width: 760px; }
.ann-ssr ul { margin: 12px 0 0; padding-left: 20px; line-height: 1.9; }
.seo-liens { padding-top: 10px; }
.seo-liens h2 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 22px 0 4px; }
.seo-liens .popular { margin-top: 10px; }
