/* Pinpret - layout.css
   Structure: en-tete B (topbar + barre principale), hero card (encart plateforme phare),
   liste de plateformes en lignes numerotees, archive en grille, pied A (4 colonnes). */

/* ---------- conteneurs ---------- */
.pretfr-wrap { width: 100%; max-width: var(--pretfr-maxw); margin-inline: auto; padding-inline: 24px; }
.pretfr-wrap-narrow { max-width: 760px; }
.pretfr-main { display: block; min-height: 50vh; }

.pretfr-section { padding: 64px 0; }
.pretfr-section-alt { background: var(--pretfr-bg); }
.pretfr-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.pretfr-section-link { white-space: nowrap; font-weight: 700; }

/* ---------- en-tete variante B: topbar + barre principale ---------- */
.pretfr-topbar { background: var(--pretfr-primary-dark); color: #DCE7DE; font-size: .82rem; }
.pretfr-topbar-inner { max-width: var(--pretfr-maxw); margin-inline: auto; padding: 7px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pretfr-topbar-link { color: var(--pretfr-accent); font-weight: 700; }
.pretfr-topbar-link:hover { color: #fff; text-decoration: none; }

.pretfr-header { position: sticky; top: 0; z-index: 60; background: var(--pretfr-surface); border-bottom: 1px solid var(--pretfr-border); }
.pretfr-header-inner { max-width: var(--pretfr-maxw); margin-inline: auto; padding: 14px 24px; display: flex; align-items: center; gap: 30px; }
.pretfr-brand { flex: 0 0 auto; }
.pretfr-brand-text { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.pretfr-brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: var(--pretfr-primary); color: var(--pretfr-accent); font-family: var(--pretfr-font-head); font-weight: 700; font-size: .9rem; }
.pretfr-brand-name { font-family: var(--pretfr-font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .01em; color: var(--pretfr-text); text-transform: uppercase; }

.pretfr-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.pretfr-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; align-items: center; }
.pretfr-menu a { font-weight: 700; }

.pretfr-nav-platforms { position: relative; }
.pretfr-platforms-toggle { border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; color: var(--pretfr-text); display: inline-flex; align-items: center; gap: 7px; }
.pretfr-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.pretfr-platforms-toggle[aria-expanded="true"] .pretfr-caret { transform: rotate(-135deg) translateY(-1px); }
.pretfr-platforms-panel { position: absolute; top: calc(100% + 14px); right: 0; min-width: 280px; background: var(--pretfr-surface); border: 1px solid var(--pretfr-border); border-radius: var(--pretfr-radius); box-shadow: var(--pretfr-shadow-lg); padding: 14px 18px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 50; }
.pretfr-platforms-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.pretfr-platforms-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 22px; }
.pretfr-platforms-list li { margin-bottom: 8px; break-inside: avoid; }
.pretfr-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.pretfr-burger span { width: 24px; height: 2px; background: var(--pretfr-text); border-radius: 2px; }

/* ---------- hero card ---------- */
.pretfr-hero { padding: 66px 0 56px; }
.pretfr-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.pretfr-hero-kicker { text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; color: var(--pretfr-secondary); font-weight: 700; margin: 0 0 14px; }
.pretfr-hero-text h1 { margin: 0 0 18px; }
.pretfr-hero-sub { font-size: 1.08rem; color: var(--pretfr-muted); margin: 0 0 26px; }
.pretfr-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.pretfr-hero-card { background: var(--pretfr-surface); border: 1px solid var(--pretfr-border); border-radius: var(--pretfr-radius); box-shadow: var(--pretfr-shadow-lg); padding: 26px; }
.pretfr-topbar-claim { color: #DCE7DE; }
.pretfr-hero-card-badge { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; background: var(--pretfr-accent-soft); color: var(--pretfr-accent-dark); }
.pretfr-hero-card-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pretfr-muted); margin: 12px 0 4px; }
.pretfr-hero-card-name { margin: 0 0 4px; font-size: 1.6rem; }
.pretfr-hero-card-tag { color: var(--pretfr-muted); margin: 0 0 12px; }
.pretfr-hero-card-score { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pretfr-hero-card-num { font-family: var(--pretfr-font-head); font-size: 2.6rem; font-weight: 700; color: var(--pretfr-primary); line-height: 1; }
.pretfr-hero-card-num small { font-size: 1rem; color: var(--pretfr-muted); }
.pretfr-hero-card-facts { margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.pretfr-hero-card-btn { width: 100%; }

/* ---------- barre de confiance ---------- */
.pretfr-trust { background: var(--pretfr-primary); color: #EAF2EC; }
.pretfr-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 28px 24px; }
.pretfr-trust-item { text-align: center; }
.pretfr-trust-num { display: block; font-family: var(--pretfr-font-head); font-size: 2.2rem; font-weight: 700; color: var(--pretfr-accent); line-height: 1; }
.pretfr-trust-label { display: block; margin-top: 6px; font-size: .82rem; opacity: .85; }

/* ---------- etapes ---------- */
.pretfr-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pretfr-step { background: var(--pretfr-surface); border: 1px solid var(--pretfr-border); border-radius: var(--pretfr-radius); padding: 24px 20px; }
.pretfr-step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 9px; background: var(--pretfr-primary); color: var(--pretfr-accent); font-family: var(--pretfr-font-head); font-weight: 700; font-size: 1.2rem; }
.pretfr-step h3 { margin: 0 0 8px; }
.pretfr-steps-more { margin-top: 22px; text-align: center; font-weight: 700; }

/* ---------- liste de plateformes (lignes numerotees) ---------- */
.pretfr-platform-list { display: flex; flex-direction: column; gap: 14px; }
.pretfr-prow { display: flex; align-items: center; gap: 18px; background: var(--pretfr-surface); border: 1px solid var(--pretfr-border); border-radius: var(--pretfr-radius); padding: 18px 22px; box-shadow: var(--pretfr-shadow); }
.pretfr-prow.is-anchor { border-color: var(--pretfr-accent); box-shadow: var(--pretfr-shadow-lg); }
.pretfr-prow-rank { font-family: var(--pretfr-font-head); font-size: 1.5rem; font-weight: 700; color: var(--pretfr-accent-dark); width: 44px; flex: 0 0 auto; }
.pretfr-prow-logo { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--pretfr-bg); }
.pretfr-prow-initial { font-family: var(--pretfr-font-head); font-size: 1.4rem; font-weight: 700; color: var(--pretfr-primary); }
.pretfr-prow-body { flex: 1; min-width: 0; }
.pretfr-prow-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pretfr-prow-tag { color: var(--pretfr-muted); margin: 4px 0 0; font-size: .92rem; }
.pretfr-prow-facts { margin: 8px 0 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--pretfr-muted); }
.pretfr-prow-score { text-align: center; flex: 0 0 auto; }
.pretfr-prow-num { font-family: var(--pretfr-font-head); font-size: 1.9rem; font-weight: 700; color: var(--pretfr-primary); line-height: 1; }

/* ---------- archive en grille (cartes acard) ---------- */
.pretfr-archive-head { background: var(--pretfr-gradient); color: #fff; padding: 56px 0; text-align: center; }
.pretfr-archive-head h1 { color: #fff; }
.pretfr-archive-head .pretfr-archive-sub { color: #DCEBDF; max-width: 62ch; margin: 10px auto 0; }
.pretfr-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.pretfr-acard { background: var(--pretfr-surface); border: 1px solid var(--pretfr-border); border-radius: var(--pretfr-radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; box-shadow: var(--pretfr-shadow); }
.pretfr-acard.is-anchor { border-color: var(--pretfr-accent); }
.pretfr-acard-head { display: flex; align-items: center; gap: 12px; }
.pretfr-acard-logo, .pretfr-acard-initial { width: 46px; height: 46px; border-radius: 9px; display: grid; place-items: center; background: var(--pretfr-bg); font-family: var(--pretfr-font-head); font-weight: 700; color: var(--pretfr-primary); overflow: hidden; }
.pretfr-acard-rating { display: flex; align-items: center; gap: 10px; }
.pretfr-acard-score { font-family: var(--pretfr-font-head); font-size: 1.8rem; font-weight: 700; color: var(--pretfr-primary); }
.pretfr-acard-score small { font-size: .9rem; color: var(--pretfr-muted); }
.pretfr-acard-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .85rem; }
.pretfr-acard-btn { margin-top: auto; }

.pretfr-pagination { margin-top: 38px; }
.pretfr-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- profil ---------- */
.pretfr-profile { padding-block: 46px; }
.pretfr-phero-main { flex: 1; min-width: 0; }
.pretfr-phero-scorebox { text-align: center; }
.pretfr-crumbs { font-size: .82rem; margin-bottom: 12px; }

/* ---------- pied variante A (4 colonnes) ---------- */
.pretfr-footer { background: var(--pretfr-primary-dark); color: #C2D2C6; padding-top: 54px; }
.pretfr-footer-grid { max-width: var(--pretfr-maxw); margin-inline: auto; padding: 0 24px 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; }
.pretfr-footer-col h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.pretfr-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pretfr-footer-note { font-size: .84rem; line-height: 1.6; color: #9DB1A2; }
.pretfr-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 24px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; max-width: var(--pretfr-maxw); margin-inline: auto; font-size: .82rem; }
