/* ============================================================
   Urbanito - Composants (components.css)
   Cartes produit, picks, catégories, guides, FAQ, related,
   + traitement d'image "flottante", outils de conversion.
   ============================================================ */

/* ---- Accent par carte (data-accent) ---- */
[data-accent="forest"] { --acc: var(--acc-forest); --acc-rgb: var(--acc-forest-rgb); }
[data-accent="mint"]   { --acc: var(--acc-mint);   --acc-rgb: var(--acc-mint-rgb); }
[data-accent="sage"]   { --acc: var(--acc-sage);   --acc-rgb: var(--acc-sage-rgb); }
[data-accent="amber"]  { --acc: var(--acc-amber);  --acc-rgb: var(--acc-amber-rgb); }
[data-accent="copper"] { --acc: var(--acc-copper); --acc-rgb: var(--acc-copper-rgb); }
[data-accent="slate"]  { --acc: var(--acc-slate);  --acc-rgb: var(--acc-slate-rgb); }

/* ============================================================
   TRAITEMENT D'IMAGE "FLOTTANTE" (anti-catalogue)
   Fond dégradé teinté + ombre portée colorée sous le produit.
   Appliqué à toutes les vignettes produit du site.
   ============================================================ */
.pcard__media, .pick__media, .podium__media, .gprod__media,
.hero__panel-media, .cmp-row__media, .sel-result__media {
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(var(--acc-rgb), .14), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fbfdfb 100%);
  position: relative;
}
.pcard__media img, .pick__media img, .podium__media img, .gprod__media img,
.hero__panel-media img, .sel-result__media img {
  filter: drop-shadow(0 16px 20px rgba(var(--acc-rgb), .26));
  transition: transform .3s cubic-bezier(.16,.8,.3,1), filter .3s ease;
}
.pcard:hover .pcard__media img,
.pick:hover .pick__media img,
.podium__card:hover .podium__media img { transform: translateY(-6px) scale(1.03); filter: drop-shadow(0 22px 26px rgba(var(--acc-rgb), .34)); }

/* ---------------- Grille produits ---------------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.pgrid--3 { grid-template-columns: repeat(3, 1fr); }

.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-acc); border-color: rgba(var(--acc-rgb), .4); }
.pcard__media { display: block; aspect-ratio: 4 / 3; padding: 18px; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; }
.pcard__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard__badge {
  align-self: flex-start;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--acc); background: rgba(var(--acc-rgb), .1);
  padding: 4px 10px; border-radius: 999px;
}
.pcard__title { font-size: 1.08rem; }
.pcard__title a { color: var(--ink); }
.pcard__title a:hover { color: var(--brand); }
.pcard__tagline { font-size: .9rem; color: var(--muted); margin: 0; flex: 1; }
.pcard__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.pcard__link { font-size: .88rem; font-weight: 700; }

/* ---------------- Picks (coups de cœur home) ---------------- */
.picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pick {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pick:hover { transform: translateY(-6px); box-shadow: var(--shadow-acc); }
.pick--star { border-color: rgba(var(--acc-rgb), .5); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .35), var(--shadow); }
.pick--star::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-mint); }
.pick__badge { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--acc); padding: 5px 12px; border-radius: 999px; }
.pick--star .pick__badge { background: var(--grad-brand); }
.pick__media { aspect-ratio: 4/3; border-radius: var(--radius); padding: 12px; }
.pick__media img { width: 100%; height: 100%; object-fit: contain; }
.pick__name { font-size: 1.15rem; }
.pick__name a { color: var(--ink); }
.pick__desc { font-size: .92rem; color: var(--muted); flex: 1; margin: 0; }
.pick__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.pick__link { font-size: .88rem; font-weight: 700; text-align: center; }

/* ---------------- Cartes catégories ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 8px; min-height: 156px;
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--acc), rgba(var(--acc-rgb), .35)); }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-acc); }
.cat-card__count { font-size: .78rem; font-weight: 700; color: var(--acc); }
.cat-card__title { font-size: 1.16rem; color: var(--ink); flex: 1; }
.cat-card__cta { font-size: .88rem; font-weight: 700; color: var(--acc); display: inline-flex; gap: 6px; }
.cat-card:hover .cat-card__cta span { transform: translateX(3px); }
.cat-card__cta span { display: inline-block; transition: transform .15s ease; }

/* ---------------- Tuiles guides ---------------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.guide-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.guide-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acc); }
.guide-tile::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--acc-rgb), .14), transparent 70%); }
.guide-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-acc); }
.guide-tile__badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--acc); position: relative; }
.guide-tile__title { color: var(--ink); position: relative; }
.guide-tile__desc { font-size: .92rem; color: var(--muted); flex: 1; margin: 0; position: relative; }
.guide-tile__cta { font-weight: 700; font-size: .9rem; color: var(--acc); position: relative; }

/* ---------------- Hub catégories (page Guides d'achat) ---------------- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.hubcard {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 8px; min-height: 210px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hubcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--acc), rgba(var(--acc-rgb), .3)); }
.hubcard::after { content: ""; position: absolute; right: -50px; top: -10px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--acc-rgb), .16), transparent 70%); }
.hubcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-acc); border-color: rgba(var(--acc-rgb), .4); }
.hubcard__ico { font-size: 2.2rem; line-height: 1; position: relative; }
.hubcard__count { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--acc); position: relative; }
.hubcard__title { font-size: 1.3rem; color: var(--ink); position: relative; }
.hubcard__top { font-size: .9rem; color: var(--muted); flex: 1; position: relative; }
.hubcard__top strong { color: var(--ink); }
.hubcard__cta { font-weight: 700; font-size: .92rem; color: var(--acc); position: relative; }

/* ---------------- Hero de page (hub) vibrant ---------------- */
.page-hero {
  position: relative; overflow: hidden; padding: 60px 0 46px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(720px 360px at 88% -12%, rgba(20, 224, 176, .2), transparent 60%),
    radial-gradient(560px 380px at 0% 0%, var(--brand-soft), transparent 58%);
}
.page-hero .section-head { margin-bottom: 0; }
.page-hero__stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.page-hero__stat { background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: .9rem; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.page-hero__stat b { font-family: var(--font-display); color: var(--brand); }

/* ---------------- Hub KB groupé par thème (vibrant) ---------------- */
.kb-themes { display: flex; flex-direction: column; gap: 50px; }
.kb-theme__head { display: flex; align-items: center; gap: 14px; font-size: 1.4rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid rgba(var(--acc-rgb), .25); }
.kb-theme__ico {
  font-size: 1.5rem; line-height: 1; flex: none;
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  border-radius: 14px; background: rgba(var(--acc-rgb), .14);
}
.kb-theme__label { flex: 1; color: var(--ink); }
.kb-theme__guide { font-family: var(--font); font-size: .88rem; font-weight: 700; color: var(--acc); white-space: nowrap; }
.kb-theme__guide:hover { filter: brightness(.9); }
.kb-theme__n { font-family: var(--font); font-size: .76rem; font-weight: 700; color: var(--acc); background: rgba(var(--acc-rgb), .12); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }

/* Cartes article accentuées dans un thème */
.kb-theme .learn-card { border-left: 3px solid var(--acc); }
.kb-theme .learn-card:hover { border-color: var(--acc); box-shadow: var(--shadow-acc); }
.kb-theme .learn-card__arrow { color: var(--acc); }

/* Bannière produit / CTA par thème (conversion + couleur) */
.kb-banner {
  margin-top: 18px; display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: center;
  background:
    radial-gradient(150% 130% at 0% 0%, rgba(var(--acc-rgb), .16), transparent 55%),
    var(--surface);
  border: 1px solid rgba(var(--acc-rgb), .35); border-radius: var(--radius-lg); padding: 20px 24px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.kb-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-acc); }
.kb-banner__media { aspect-ratio: 1/1; border-radius: var(--radius); padding: 8px; background: linear-gradient(180deg,#fff,#fbfdfb); }
.kb-banner__media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(var(--acc-rgb), .28)); }
.kb-banner__label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--acc); }
.kb-banner__name { font-size: 1.18rem; margin: 4px 0; }
.kb-banner__name a { color: var(--ink); }
.kb-banner__tag { font-size: .9rem; color: var(--muted); margin: 0; }
.kb-banner__cta { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; min-width: 200px; }
.kb-banner--cta { text-decoration: none; grid-template-columns: 80px 1fr auto; }
.kb-banner__bigico { font-size: 2.6rem; line-height: 1; text-align: center; }
.kb-banner__cta-btn { align-self: center; font-weight: 700; color: var(--acc); white-space: nowrap; }
@media (max-width: 680px) {
  .kb-banner, .kb-banner--cta { grid-template-columns: 1fr; text-align: center; }
  .kb-banner__media { max-width: 130px; margin: 0 auto; }
  .kb-banner__cta { min-width: 0; }
  .kb-theme__guide { display: none; }
}

/* ---------------- Bloc "À shopper" in-article (3 produits) ---------------- */
.kb-shop {
  margin: 30px 0; padding: 24px;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(var(--acc-rgb), .12), transparent 55%),
    var(--bg-alt);
  border: 1px solid rgba(var(--acc-rgb), .3); border-radius: var(--radius-lg);
}
.kb-shop__head { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.kb-shop__eyebrow { font-family: var(--font); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--acc); background: rgba(var(--acc-rgb), .14); padding: 5px 11px; border-radius: 999px; }
.kb-shop .pgrid--3 { gap: 16px; }
.kb-shop__more { text-align: center; margin: 20px 0 0; }

/* ---------------- CTA Amazon inline (milieu de texte) ---------------- */
.kb-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin: 28px 0; padding: 18px 22px; border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(var(--acc-rgb), .14), rgba(var(--acc-rgb), .04));
  border: 1px solid rgba(var(--acc-rgb), .3); border-left: 4px solid var(--acc);
}
.kb-inline__txt { font-size: .98rem; color: var(--text); }
.kb-inline__label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--acc); margin-bottom: 3px; }
.kb-inline__txt strong { color: var(--ink); }
.kb-inline .btn { flex: none; }
@media (max-width: 560px) { .kb-inline { flex-direction: column; align-items: stretch; text-align: center; } }

/* ---------------- Box reco Amazon (articles KB) ---------------- */
.reco-box {
  display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(var(--acc-rgb), .1), transparent 60%),
    var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--acc);
  border-radius: var(--radius-lg); padding: 22px; margin: 26px 0; box-shadow: var(--shadow-sm);
}
.reco-box__media { aspect-ratio: 1/1; border-radius: var(--radius); padding: 12px; background: linear-gradient(180deg,#fff,#fbfdfb); }
.reco-box__media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(var(--acc-rgb), .26)); }
.reco-box__label { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--acc); margin-bottom: 6px; }
.reco-box__name { font-size: 1.2rem; margin-bottom: 4px; }
.reco-box__name a { color: var(--ink); }
.reco-box__tagline { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.reco-box__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 560px) {
  .reco-box { grid-template-columns: 1fr; text-align: center; }
  .reco-box__media { max-width: 160px; margin: 0 auto; }
  .reco-box__actions { justify-content: center; }
  .kb-theme__head { font-size: 1.15rem; }
}

/* ---------------- Learn cards ---------------- */
.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.learn-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: flex; align-items: center; gap: 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.learn-card:hover { border-color: rgba(var(--acc-rgb), .45); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.learn-card__ico { font-size: 1.4rem; line-height: 1; flex: none; }
.learn-card__title { font-size: 1.02rem; color: var(--ink); }
.learn-card__desc { font-size: .88rem; color: var(--muted); margin: 4px 0 0; }
.learn-card__arrow { margin-left: auto; font-size: 1.4rem; color: var(--brand); flex: none; transition: transform .15s ease; }
.learn-card:hover .learn-card__arrow { transform: translateX(4px); }

/* ---------------- FAQ ---------------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 18px; transition: border-color .15s ease; }
.faq__item[open] { border-color: rgba(var(--acc-rgb), .4); }
.faq__question { font-weight: 700; color: var(--ink); cursor: pointer; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; font-family: var(--font-display); }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--brand); font-weight: 400; transition: transform .2s ease; }
.faq__item[open] .faq__question::after { content: "\2013"; }
.faq__answer { padding: 0 0 14px; color: var(--text); font-size: .95rem; }
.faq__answer p { margin: 0; }

/* ---------------- Related ---------------- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.related-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: transform .2s ease, box-shadow .2s ease; }
.related-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.related-tile__label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.related-tile__title { font-size: 1.05rem; color: var(--ink); }
.related-tile__desc { font-size: .88rem; color: var(--muted); flex: 1; margin: 0; }
.related-tile__cta { font-weight: 700; font-size: .88rem; color: var(--brand); }

/* ---- Podium top 3 (guides) ---- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; margin: 8px 0 12px; }
.podium__card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 20px 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.podium__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-acc); }
.podium__card--1 { border-color: rgba(var(--acc-rgb), .5); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .35), var(--shadow); }
.podium__card--1::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--grad-mint); }
.podium__rank {
  position: absolute; top: -16px; left: 20px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  font-family: var(--font-display); box-shadow: var(--shadow-sm);
}
.podium__card--1 .podium__rank { background: var(--grad-brand); }
.podium__badge { align-self: flex-start; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--acc); background: rgba(var(--acc-rgb), .1); padding: 4px 10px; border-radius: 999px; }
.podium__media { aspect-ratio: 4/3; border-radius: var(--radius); padding: 12px; }
.podium__media img { width: 100%; height: 100%; object-fit: contain; }
.podium__name { font-size: 1.06rem; }
.podium__name a { color: var(--ink); }
.podium__tagline { font-size: .88rem; color: var(--muted); flex: 1; margin: 0; }
.podium__link { font-size: .82rem; font-weight: 700; color: var(--brand); text-align: center; }

/* ---- Product-card horizontale détaillée (guides) ---- */
.gprod-list { display: flex; flex-direction: column; gap: 22px; counter-reset: gprod; }
.gprod {
  display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; scroll-margin-top: 90px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.gprod:hover { box-shadow: var(--shadow-acc); border-color: rgba(var(--acc-rgb), .35); }
.gprod__media { border-radius: var(--radius); padding: 18px; position: sticky; top: 90px; }
.gprod__media img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.gprod__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gprod__rank { font-family: var(--font-display); font-weight: 700; color: var(--brand); font-size: 1.15rem; }
.gprod__title { font-size: 1.45rem; margin-bottom: 4px; }
.gprod__title a { color: var(--ink); }
.gprod__title a:hover { color: var(--brand); }
.gprod__tagline { font-size: 1rem; color: var(--brand-dark); font-weight: 600; margin-bottom: 10px; }
.gprod__intro { font-size: .96rem; color: var(--text); margin-bottom: 14px; }
.gprod__specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.gprod__spec { font-size: .8rem; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.gprod__spec strong { color: var(--ink); font-weight: 700; }
.proscons--compact { gap: 14px; margin-bottom: 16px; }
.proscons--compact .proscons__col { padding: 14px 16px; }
.proscons--compact h4 { margin: 0 0 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.gprod__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   ROUTAGE PAR PROFIL (piliers) - "Quel modèle pour vous ?"
   ============================================================ */
.profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.profile-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.profile-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-acc); border-color: rgba(var(--acc-rgb), .4); }
.profile-card__ico { font-size: 1.6rem; line-height: 1; margin-bottom: 4px; }
.profile-card__use { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--acc); }
.profile-card__name { font-size: 1.12rem; font-family: var(--font-display); color: var(--ink); }
.profile-card__why { font-size: .86rem; color: var(--muted); flex: 1; margin: 2px 0 8px; }
.profile-card__cta { font-size: .85rem; font-weight: 700; color: var(--brand); display: inline-flex; gap: 6px; }

/* ============================================================
   TABLEAU SYNTHÈSE (piliers) - top modèles, gagnant surligné
   ============================================================ */
.ctable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.ctable { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.ctable th, .ctable td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.ctable thead th { background: var(--bg-alt); font-family: var(--font-display); font-size: .82rem; color: var(--ink); vertical-align: bottom; }
.ctable tbody th { font-weight: 700; color: var(--ink); }
.ctable tr:last-child td, .ctable tr:last-child th { border-bottom: none; }
.ctable__prod { display: flex; align-items: center; gap: 6px; }
.ctable__rank { font-family: var(--font-display); color: var(--brand); font-weight: 700; }
.ctable td.is-best { background: rgba(var(--acc-rgb, 21,127,102), .08); color: var(--ink); font-weight: 700; position: relative; }
.ctable td.is-best::after { content: "\2605"; color: var(--amazon-dark); font-size: .72em; margin-left: 5px; vertical-align: top; }
.ctable .ctable__cta { white-space: nowrap; }

/* ============================================================
   OUTIL SÉLECTEUR "Trouvez votre engin"
   ============================================================ */
.selector {
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(20, 224, 176, .1), transparent 60%),
    radial-gradient(600px 320px at 0% 100%, var(--brand-soft), transparent 60%),
    var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow);
}
.selector__progress { display: flex; gap: 8px; margin-bottom: 22px; }
.selector__dot { height: 5px; flex: 1; border-radius: 3px; background: var(--line); transition: background .3s ease; }
.selector__dot.is-on { background: var(--grad-mint); }
.sel-step { animation: selIn .35s cubic-bezier(.16,.8,.3,1); }
.sel-step[hidden] { display: none; }
@keyframes selIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sel-step__q { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 4px; }
.sel-step__hint { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.sel-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.sel-opt {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; font-family: inherit; color: var(--text);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.sel-opt:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-acc); }
.sel-opt__ico { font-size: 1.7rem; line-height: 1; }
.sel-opt__t { font-weight: 700; color: var(--ink); font-size: 1rem; }
.sel-opt__d { font-size: .82rem; color: var(--muted); }
.sel-back { background: none; border: none; color: var(--muted); cursor: pointer; font-family: inherit; font-size: .88rem; font-weight: 600; margin-top: 18px; padding: 0; }
.sel-back:hover { color: var(--brand); }

/* Résultat du sélecteur */
.sel-result__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.sel-result__eyebrow { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); }
.sel-hero {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center;
  background: var(--surface); border: 1.5px solid rgba(var(--acc-rgb), .4); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .25), var(--shadow); margin-bottom: 20px;
}
.sel-result__media { aspect-ratio: 1/1; border-radius: var(--radius); padding: 14px; }
.sel-result__media img { width: 100%; height: 100%; object-fit: contain; }
.sel-result__badge { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--grad-brand); padding: 5px 12px; border-radius: 999px; margin-bottom: 8px; }
.sel-result__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 6px; }
.sel-result__name a { color: var(--ink); }
.sel-result__tagline { color: var(--muted); margin-bottom: 14px; }
.sel-result__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sel-alts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.sel-alt { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.sel-alt:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.sel-alt__media { width: 64px; height: 64px; flex: none; border-radius: var(--radius-sm); padding: 6px; background: linear-gradient(180deg,#fff,#fbfdfb); }
.sel-alt__media img { width: 100%; height: 100%; object-fit: contain; }
.sel-alt__name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.sel-alt__name a { color: var(--ink); }
.sel-alt__badge { font-size: .76rem; color: var(--muted); }
.sel-restart { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 9px 18px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .88rem; }
.sel-restart:hover { border-color: var(--brand); color: var(--brand); }

/* Option déjà choisie (quand on revient en arrière) */
.sel-opt.is-selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-sm); }

/* Récap modifiable du résultat */
.sel-recap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.sel-recap__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sel-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-family: inherit; font-weight: 700; font-size: .88rem; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sel-chip:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.sel-chip__edit { font-weight: 600; font-size: .76rem; color: var(--brand); text-decoration: underline; }

/* CTA comparaison (sous la reco) */
.sel-compare { margin: 18px 0 8px; font-size: 1rem; }

/* Actions sous le résultat */
.sel-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sel-alt__txt { display: flex; flex-direction: column; }

/* ============================================================
   BANDEAU RÉASSURANCE (trust)
   ============================================================ */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.trust__item { display: flex; gap: 14px; align-items: flex-start; }
.trust__ico { font-size: 1.5rem; line-height: 1; flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--brand-soft); }
.trust__t { font-weight: 700; color: var(--ink); font-size: .98rem; font-family: var(--font-display); }
.trust__d { font-size: .86rem; color: var(--muted); margin: 2px 0 0; }

/* ============================================================
   BARRE D'ACHAT STICKY (fiches produit)
   ============================================================ */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 28px rgba(17,32,27,.1);
  transform: translateY(110%); transition: transform .3s cubic-bezier(.16,.8,.3,1);
}
.buybar.is-on { transform: none; }
.buybar__inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.buybar__media { width: 52px; height: 52px; flex: none; border-radius: 10px; padding: 5px; background: linear-gradient(180deg,#fff,#fbfdfb); border: 1px solid var(--line); }
.buybar__media img { width: 100%; height: 100%; object-fit: contain; }
.buybar__info { flex: 1; min-width: 0; }
.buybar__name { font-weight: 700; color: var(--ink); font-size: .98rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__sub { font-size: .8rem; color: var(--muted); }
.buybar .btn { flex: none; }

@media (max-width: 760px) {
  .podium { grid-template-columns: 1fr; }
  .gprod { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .gprod__media { position: static; max-width: 240px; }
  .sel-hero { grid-template-columns: 1fr; text-align: center; }
  .sel-hero .sel-result__media { max-width: 200px; margin: 0 auto; }
  .sel-result__actions { justify-content: center; }
  .sel-alts { grid-template-columns: 1fr; }
  .selector { padding: 22px; }
  .buybar__sub { display: none; }
  .buybar__name { white-space: normal; font-size: .9rem; }
}

/* ---- Maillage : strip "À explorer" ---- */
.xlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 22px; background: var(--bg-alt); border-radius: var(--radius); }
.xlinks__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 4px; }
.xlink { font-size: .9rem; font-weight: 600; color: var(--brand-dark); background: var(--surface); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; transition: all .15s ease; }
.xlink:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }

@media (max-width: 860px) {
  .picks-grid, .pgrid--3 { grid-template-columns: 1fr; }
}
@media (min-width: 521px) and (max-width: 860px) {
  .pgrid--3 { grid-template-columns: 1fr 1fr; }
  .picks-grid { grid-template-columns: 1fr 1fr; }
}

/* Filet de sécurité petits écrans : tout en 1 colonne (évite tout débordement) */
@media (max-width: 430px) {
  .pgrid, .hub-grid, .learn-grid, .guide-grid, .cat-grid,
  .related-grid, .profiles, .trust, .criteria-grid, .sel-alts { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .sel-hero { padding: 18px; }
  .gprod__actions .btn { width: 100%; }
}

/* ----------------------------------------------------------------
   Bandeau cookies (consentement RGPD - consent.js)
   ---------------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  padding: 0 16px 16px;
  transform: translateY(120%); transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.cookie-banner.is-on { transform: none; pointer-events: auto; }
.cookie-banner__inner {
  max-width: 880px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px 22px;
}
.cookie-banner__txt { flex: 1; min-width: 240px; }
.cookie-banner__title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.02rem; margin: 0 0 4px; }
.cookie-banner__desc { font-size: .9rem; color: var(--muted); line-height: 1.5; margin: 0; }
.cookie-banner__desc a { color: var(--brand); font-weight: 600; }
.cookie-banner__actions { display: flex; gap: 10px; flex: none; }
.cookie-banner__btn { white-space: nowrap; }
@media (max-width: 560px) {
  .cookie-banner__inner { padding: 16px 18px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}
