/* Styles communs Nouveaux-Consos (badge Score Carbone, listes de types) */

/* ── Badge Score Carbone ─────────────────────────────────────────────── */
.card-product .card-product-img { position: relative; }
.carbon-badge { display: inline-flex; align-items: stretch; border-radius: 8px; overflow: hidden; font-family: Montserrat, sans-serif; line-height: 1; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.carbon-badge-label { background: #2f4858; font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; padding: 4px 5px; display: flex; align-items: center; text-align: left; }
.carbon-badge-letter { font-weight: 700; font-size: 15px; min-width: 22px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.carbon-A .carbon-badge-letter { background: #1e8f4e; }
.carbon-B .carbon-badge-letter { background: #62b346; }
.carbon-C .carbon-badge-letter { background: #e6b800; color: #2f4858; }
.carbon-D .carbon-badge-letter { background: #ef8a2b; }
.carbon-E .carbon-badge-letter { background: #d9412b; }
.carbon-badge-card { position: absolute; top: 0; left: 0; z-index: 2; }
.carbon-badge-large .carbon-badge-label { font-size: 10px; padding: 6px 7px; }
.carbon-badge-large .carbon-badge-letter { font-size: 22px; min-width: 34px; }
.product-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.product-title-row h1 { margin-bottom: 0; }
.product-carbon-link { flex-shrink: 0; text-decoration: none; margin-top: 4px; }
.product-carbon-link:hover { text-decoration: none; }

/* ── Types de produits : une ligne défilante, dépliable ─────────────── */
.type-nav { margin: 16px 0 24px 0; }
.type-nav-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.type-nav-title { font-family: Barlow, sans-serif; font-weight: 600; font-size: 1.05em; color: #2f4858; margin: 0; }
.type-nav-toggle { background: none; border: 0; padding: 0; color: #2f4858; font-size: 0.85em; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.type-nav-list { list-style: none; margin: 0; padding: 0 0 6px 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.type-nav-list li { flex: 0 0 auto; scroll-snap-align: start; }
.type-nav-list a { display: inline-block; white-space: nowrap; background: #f2f4fa; border: 1px solid #e3e6f0; border-radius: 18px; padding: 5px 12px; font-size: 0.85em; color: #2f4858; text-decoration: none; }
.type-nav-list a:hover { background: #2f4858; color: #fff; border-color: #2f4858; }
.type-nav-list .type-count { color: #83869a; font-size: 0.9em; margin-left: 3px; }
.type-nav-list a:hover .type-count { color: #d6dbe8; }
.type-nav-group { display: none; }
/* déplié : groupes par sous-catégorie, retour à la ligne */
.type-nav.is-open .type-nav-list { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.type-nav.is-open .type-nav-group { display: block; flex: 0 0 100%; font-size: 0.8em; font-weight: 600; text-transform: uppercase; color: #83869a; margin: 8px 0 0 0; }
.type-nav.is-open .type-nav-group:first-child { margin-top: 0; }
@media (max-width: 575.98px) {
  .type-nav { margin: 8px 0 12px 0; }
  .type-nav-list a { padding: 4px 10px; font-size: 0.8em; }
}
.product-title-row h1 { flex: 1 1 auto; min-width: 0; width: auto; }
.product-title-row { flex-wrap: nowrap; }

/* ── Carte produit commune (productCard) ─────────────────────────────── */
.card-product, .card-product:hover, #home .card-product:last-child { display: flex !important; flex-direction: column !important; height: auto !important; max-height: none !important; padding: 0 !important; overflow: hidden; }
.card-product-main { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 10px 16px; color: inherit; text-decoration: none; }
.card-product-main:hover { text-decoration: none; color: inherit; }
.card-product .card-product-img, #home .home-grid .card-product .card-product-img, #home .card-product:last-child .card-product-img { order: 0 !important; width: 100% !important; height: 150px !important; display: flex; align-items: center; justify-content: center; position: static; }
.card-product .card-product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card-product .card-product-info, #home .card-product:last-child .card-product-info { display: flex !important; flex-direction: column; flex: 1; margin: 0 !important; }
.card-badges { display: flex; align-items: center; gap: 6px; min-height: 26px; margin: 10px 0 6px 0; }
.card-badges .carbon-badge-card, .card-badges .promo-discount { position: static; }
.card-product-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.card-product-rating { font-size: 0.85em; margin-bottom: 6px; }
.card-product-rating .rating { display: inline; }
.card-product .card-product-container-price, #home .card-product:last-child .card-product-container-price { margin-top: auto; text-align: left !important; align-items: flex-start !important; display: block; flex: 0 0 auto; }
.card-product-price { font-size: 1.2em; font-weight: 700; color: #2f4858; margin: 0 !important; display: inline-block; }
.card-product-merchant { display: block; font-size: 0.8em; color: #5b6275; }
.promo-old-price { display: inline-block; text-decoration: line-through; color: #83869a; font-size: 0.85em; margin-right: 6px; }
.promo-discount { background: #d9412b; color: #fff; font-weight: 700; font-size: 0.82em; padding: 4px 7px; border-radius: 7px; line-height: 1; }
.card-product-actions { display: flex; gap: 8px; padding: 0 16px 16px 16px; }
.card-btn { flex: 1; text-align: center; font-size: 0.82em; font-weight: 600; padding: 9px 6px; border-radius: 9px; text-decoration: none; line-height: 1.2; }
.card-btn:hover { text-decoration: none; }
.card-btn-detail { border: 1px solid #2f4858; color: #2f4858; background: #fff; }
.card-btn-detail:hover { background: #2f4858; color: #fff; }
.card-btn-buy { background: #f7d939; color: #2f4858; border: 1px solid #f7d939; }
.card-btn-buy:hover { background: #f2cc00; color: #2f4858; }
@media (max-width: 575.98px) {
  .card-product-main { flex-direction: row; gap: 12px; padding: 14px 14px 8px 14px; }
  .card-product .card-product-img, #home .home-grid .card-product .card-product-img { order: 2 !important; width: 110px !important; height: 110px !important; flex-shrink: 0; }
  .card-badges { margin-top: 0; }
  .card-product-actions { padding: 0 14px 14px 14px; }
}
.card-product .card-product-container-price { position: static !important; float: none !important; width: 100% !important; right: auto !important; bottom: auto !important; }
.card-product .card-product-container-price .card-product-price { position: static !important; display: block; }

/* ── Pages de contenu (Score Carbone, Qui sommes-nous, Réparation) ──── */
.content-page { padding-bottom: 40px; }
.content-page .container-medium { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.content-hero { padding: 40px 0 24px 0; }
.content-hero h1 { font-size: 2.1em; line-height: 1.2; margin-bottom: 16px; }
.content-lead { font-size: 1.12em; color: #2f4858; max-width: 760px; }
.content-note { font-size: 0.85em; color: #5b6275; margin-top: 8px; }
.content-section { padding: 32px 0; }
.content-section-alt { background: #f2f4fa; }
.content-section h2 { margin-bottom: 16px; }
.content-section h3 { margin: 24px 0 10px 0; font-size: 1.2em; }
.content-img { max-width: 100%; height: auto; margin-top: 16px; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.info-card { background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 1px 3px 15px 2px rgba(100,100,100,0.08); }
.info-card strong { display: block; color: #2f4858; margin-bottom: 6px; }
.info-card p { margin: 0; font-size: 0.92em; color: #4a5163; }
.info-card .info-tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.info-tag { font-size: 0.75em; font-weight: 600; padding: 3px 8px; border-radius: 10px; background: #e8f5ec; color: #1e8f4e; }
.info-tag.paid { background: #fff3d6; color: #8a6200; }
.info-tag.remote { background: #e6eefb; color: #2f5fa8; }
.score-hero-scale { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 6px 0; }
.score-hero-step { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 0.8em; color: #5b6275; min-width: 80px; }
.lifecycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.lifecycle > div { background: #fff; border-radius: 12px; padding: 14px; }
.lifecycle p { margin: 4px 0 0 0; font-size: 0.88em; color: #4a5163; }
.lifecycle-num { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #2f4858; color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 6px; }
.steps { padding-left: 20px; }
.steps > li { margin-bottom: 14px; }
.steps ul { margin-top: 6px; }
.table-scroll { overflow-x: auto; }
.ref-table { width: 100%; border-collapse: collapse; font-size: 0.9em; background: #fff; }
.ref-table th, .ref-table td { padding: 8px 10px; border-bottom: 1px solid #e3e6f0; text-align: left; white-space: nowrap; }
.ref-table th { background: #2f4858; color: #fff; font-weight: 600; }
.faq-list details { background: #fff; border: 1px solid #e3e6f0; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.faq-list summary { cursor: pointer; font-weight: 600; color: #2f4858; }
.faq-list details p { margin: 10px 0 0 0; }
.savings-list { padding-left: 18px; }
.savings-list li { margin-bottom: 8px; }
@media (max-width: 767.98px) { .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); } .content-hero h1 { font-size: 1.6em; } }

/* ── Fiche produit ───────────────────────────────────────────────────── */
ul.pros li.pros-badge { background-image: none !important; padding-left: 0 !important; }
.impact-score { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.impact-score a { font-size: 0.9em; text-decoration: underline; color: #2f4858; }
.alt-product { display: inline-flex; align-items: center; gap: 10px; color: #2f4858; text-decoration: none; vertical-align: middle; }
.alt-thumb { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid #eee; flex-shrink: 0; }
td .carbon-badge-card { position: static; margin-left: 6px; vertical-align: middle; transform: scale(0.85); }

/* ── Pied de page ────────────────────────────────────────────────────── */
.site-footer .footer-main { background: #2f4858; color: #dfe5ee; padding: 40px 0 20px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-brand p { font-size: 0.88em; color: #c9d2de; margin: 10px 0 14px 0; }
.footer-logo { font-family: Barlow, sans-serif; font-weight: 700; font-size: 1.4em; color: #fff !important; text-decoration: none; }
.footer-score-link { display: inline-flex; align-items: center; gap: 8px; color: #f7d939 !important; font-weight: 600; font-size: 0.9em; text-decoration: none; }
.footer-score-link .carbon-badge-card { position: static; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.footer-social a:hover { background: #f7d939; color: #2f4858 !important; }
.footer-col summary { list-style: none; font-family: Barlow, sans-serif; font-weight: 600; color: #fff; font-size: 1.05em; margin-bottom: 10px; cursor: default; }
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col a { display: block; color: #c9d2de !important; font-size: 0.88em; padding: 3px 0; text-decoration: none; }
.footer-col a:hover { color: #f7d939 !important; text-decoration: underline; }
.footer-disclaimer { font-size: 0.78em; color: #aeb9c8; margin: 28px 0 6px 0; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; }
.footer-copy { font-size: 0.78em; color: #aeb9c8; margin: 0; }
@media (max-width: 991.98px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 767.98px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer-brand { margin-bottom: 18px; }
  .footer-col { border-top: 1px solid rgba(255,255,255,0.12); padding: 12px 0; }
  .footer-col summary { cursor: pointer; margin-bottom: 0; display: flex; justify-content: space-between; }
  .footer-col summary::after { content: "+"; font-size: 1.2em; }
  .footer-col[open] summary::after { content: "−"; }
  .footer-col[open] summary { margin-bottom: 8px; }
}
.about-stats { margin-top: 18px; }
.about-stats .info-card strong { font-size: 1.7em; font-family: Barlow, sans-serif; }
.about-stats { margin-top: 18px; }
.about-stats .info-card strong { font-size: 1.7em; font-family: Barlow, sans-serif; }
.repair-table td { white-space: normal; vertical-align: top; }
.repair-table .info-tag { display: inline-block; margin: 2px 2px 2px 0; }
