/* Fiche produit ComparoVélo. Tous les styles sont sous .cvp pour ne pas toucher aux autres pages. */

.cvp {
	--plaster: #efede8;
	--plaster-2: #e3e0d8;
	--paper: #fbfaf7;
	--ink: #23262b;
	--felt: #676a6f;
	--line: #d8d5cd;
	--accent: #e8692c;
	--accent-ink: #b9471a;
	--accent-veil: #fbe6d9;
	--green: #2f5d50;
	--green-veil: #e2ebe6;
	--sun: #f2b84b;
	--hi: #2f6b4f;
	--mid: #a86a12;
	--lo: #b2442c;
	--r: 6px;
	--r-l: 12px;
	--r-pill: 999px;
	--sh-1: 0 1px 2px rgba(35, 38, 43, .06), 0 4px 14px rgba(35, 38, 43, .06);
	--sh-2: 0 2px 6px rgba(35, 38, 43, .08), 0 18px 44px rgba(35, 38, 43, .14);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--dur: .45s;
	--f-title: 'Fraunces', Georgia, serif;
	--f-ui: 'Manrope', system-ui, sans-serif;

	background: var(--plaster);
	color: var(--ink);
	font-family: var(--f-ui);
	font-size: 17px;
	line-height: 1.6;
	padding-bottom: 96px;
	overflow-wrap: break-word;
}
.cvp *, .cvp *::before, .cvp *::after { box-sizing: border-box; }
.cvp img, .cvp svg { max-width: 100%; height: auto; }
.cvp a { color: var(--accent-ink); }
.cvp :focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.cvp h1, .cvp h2, .cvp h3 { font-family: var(--f-title); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0; }
.cvp h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); margin-bottom: 14px; }
.cvp h3 { font-size: 1.2rem; margin-bottom: 8px; }
.cvp p { margin: 0 0 12px; }

.cvp__wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.cvp__wrap--text { max-width: 780px; }
.cvp__section { padding: 44px 0; }
.cvp__section--alt { background: var(--plaster-2); }
.cvp__eyebrow { font: 700 .78rem/1.2 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 8px; }
.cvp__lead { font-size: 1.08rem; color: var(--felt); }
.cvp__muted { color: var(--felt); font-size: .92rem; }
.cvp__ico { display: inline-flex; width: 22px; height: 22px; color: var(--accent-ink); flex: 0 0 22px; }
.cvp__ico svg { width: 100%; height: 100%; }

/* Fil d'Ariane */
.cvp__crumbs { font-size: .85rem; color: var(--felt); padding: 14px 0 0; }
.cvp__crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.cvp__crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line); }
.cvp__crumbs a { color: var(--felt); text-decoration: none; }
.cvp__crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.cvp__hero-grid { display: grid; gap: 24px; padding: 20px 0 36px; }
.cvp__media { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-1); padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 240px; }
.cvp__media img, .cvp__media svg { max-height: 300px; width: auto; }
.cvp__caption { font-size: .8rem; color: var(--felt); margin-top: 8px; }
.cvp__brand { font: 700 .82rem/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--felt); margin: 0 0 8px; }
.cvp__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin-bottom: 12px; }
.cvp__score { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cvp__xl { font-family: var(--f-title); font-weight: 600; font-size: clamp(3.4rem, 2.4rem + 3vw, 5rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.cvp__xl small { font-size: .38em; color: var(--felt); font-weight: 600; margin-left: 4px; }
.cvp__scorebox { flex: 1 1 260px; min-width: 0; }
.cvp__rank { font-size: .92rem; color: var(--felt); margin: 4px 0 0; }
.cvp__bars { display: grid; gap: 10px; margin: 14px 0 0; }
.cvp__bar { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; font-size: .9rem; }
.cvp__bar > span:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.cvp__track { height: 10px; background: var(--plaster-2); border-radius: var(--r-pill); overflow: hidden; }
.cvp__track i { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: var(--r-pill); transform-origin: left center; }

.cvp__price { font-family: var(--f-title); font-size: 1.6rem; font-weight: 600; color: var(--ink); margin: 0; }
.cvp__price-note { font-size: .82rem; color: var(--felt); margin: 2px 0 12px; }
.cvp__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.cvp__chips li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 12px; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.cvp__chips .cvp__ico { width: 18px; height: 18px; flex-basis: 18px; }

/* Boutons */
.cvp .cvp__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--r); font: 800 .98rem/1 var(--f-ui); text-decoration: none; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.cvp .cvp__btn--buy { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; box-shadow: var(--sh-1); }
.cvp .cvp__btn--buy:hover { transform: translateY(-2px); box-shadow: var(--sh-2); color: #fff; }
.cvp__btn--buy .cvp__arrow { transition: transform .3s var(--ease); }
.cvp__btn--buy:hover .cvp__arrow { transform: translateX(4px); }
.cvp__btn--block { width: 100%; }
.cvp__btn--sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.cvp__btn--ghost { background: transparent; }
.cvp__btn--ghost:hover { background: var(--plaster-2); }
.cvp .cvp__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cvp__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cvp__actions .cvp__btn { flex: 1 1 180px; }

/* Sommaire (desktop sticky) */
.cvp__toc { display: none; }
.cvp__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cvp__toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--felt); text-decoration: none; font-size: .92rem; }
.cvp__toc a:hover, .cvp__toc a.is-current { color: var(--ink); border-left-color: var(--accent); }

/* Cartes et blocs */
.cvp__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; box-shadow: var(--sh-1); }
.cvp__verdict { font-size: 1.08rem; }
.cvp__two { display: grid; gap: 14px; }
.cvp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cvp__list li { position: relative; padding-left: 26px; }
.cvp__list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.cvp__list--ok li::before { background: var(--green); }
.cvp__list--ko li::before { background: var(--lo); }
.cvp__empty { font-style: italic; color: var(--felt); }

/* Cartes de comparaison */
.cvp__picks { display: grid; gap: 14px; }
.cvp__pick { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; box-shadow: var(--sh-1); display: grid; gap: 8px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cvp__pick:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.cvp__pick h3 a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.cvp__pick h3 a:hover { background-size: 100% 1px; }
.cvp__pick-meta { font-size: .88rem; color: var(--felt); }
.cvp__pick-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* Notes */
.cvp__note { display: inline-flex; align-items: baseline; font-family: var(--f-title); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; padding: 6px 10px; border-radius: var(--r); color: #fff; background: var(--ink); }
.cvp__note--hi { background: var(--hi); }
.cvp__note--mid { background: var(--mid); }
.cvp__note--lo { background: var(--lo); }
.cvp__note small { font-size: .6em; opacity: .85; margin-left: 2px; font-family: var(--f-ui); }

/* Tableau de comparaison */
.cvp__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); }
.cvp__table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.cvp__table th, .cvp__table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cvp__table thead th { background: var(--plaster-2); font-weight: 700; font-size: .85rem; }
.cvp__table tbody th { position: sticky; left: 0; background: var(--paper); font-weight: 700; }
.cvp__table tr.is-model td, .cvp__table tr.is-model th { background: var(--accent-veil); }
.cvp__table tr.is-model th { box-shadow: inset 3px 0 0 var(--accent); }

/* Fiche technique */
.cvp__specs { display: grid; gap: 14px; }
.cvp__spec-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; }
.cvp__spec-group h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.cvp__spec-group dl { margin: 0; display: grid; gap: 0; }
.cvp__spec-group dl > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); }
.cvp__spec-group dt { color: var(--felt); font-size: .86rem; }
.cvp__spec-group dd { margin: 0; font-weight: 700; }
.cvp__missing { font-size: .92rem; color: var(--felt); }
.cvp__missing ul { margin: 8px 0 0; padding-left: 18px; }

/* Explications de notes */
.cvp__explain { display: grid; gap: 10px; }
.cvp__explain > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px 16px; }
.cvp__explain strong { display: block; font-family: var(--f-title); font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }

/* Détails animés (FAQ, méthode) */
.cvp__details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 0; margin-bottom: 10px; overflow: hidden; }
.cvp__details summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 18px; font-weight: 700; position: relative; min-height: 48px; }
.cvp__details summary::-webkit-details-marker { display: none; }
.cvp__details summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; line-height: 1; color: var(--accent-ink); transition: transform .3s var(--ease); }
.cvp__details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.cvp__details .cvp__details-body { padding: 0 18px 16px; color: var(--felt); }
.cvp__details::details-content { block-size: 0; overflow: hidden; transition: block-size var(--dur) var(--ease), content-visibility var(--dur) allow-discrete; }
.cvp__details[open]::details-content { block-size: auto; }
.cvp__method { margin-top: 14px; }

/* Offres et mentions */
.cvp__offers { margin-top: 8px; }
.cvp__disclosure { font-size: .85rem; color: var(--felt); margin-top: 12px; }
.cvp__links { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.cvp__links a { display: block; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 700; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.cvp__links a:hover { transform: translateY(-2px); box-shadow: var(--sh-1); }

/* Barre d'achat collante */
.cvp__buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ink); color: var(--paper); box-shadow: 0 -8px 24px rgba(35, 38, 43, .25); transform: translateY(110%); transition: transform var(--dur) var(--ease); visibility: hidden; }
.cvp__buybar.is-shown { transform: translateY(0); visibility: visible; }
.cvp__buybar-in { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: 1200px; margin: 0 auto; }
.cvp__buybar-txt { min-width: 0; flex: 1 1 auto; }
.cvp__buybar-name { display: block; font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvp__buybar-meta { font-size: .8rem; opacity: .85; }
.cvp__buybar .cvp__btn { min-height: 44px; flex: 0 0 auto; }

/* Animations : sans JS, tout reste visible */
.cvp [data-reveal] { opacity: 1; transform: none; }
.js .cvp [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(14px); }
.cvp [data-reveal] { transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.cvp [data-reveal-delay="1"] { transition-delay: .05s; }
.cvp [data-reveal-delay="2"] { transition-delay: .1s; }
.cvp [data-reveal-delay="3"] { transition-delay: .15s; }
.js .cvp .cvp__track i { transform: scaleX(0); transition: transform .9s var(--ease); }
.js .cvp .cvp__track i.is-in { transform: scaleX(var(--w, 0)); }

@media (min-width: 700px) {
	.cvp__hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
	.cvp__two { grid-template-columns: 1fr 1fr; }
	.cvp__picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cvp__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cvp__spec-group dl > div { grid-template-columns: 160px 1fr; }
}

@media (min-width: 1040px) {
	.cvp__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
	.cvp__toc { display: block; position: sticky; top: 96px; align-self: start; }
	.cvp__picks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.cvp__specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cvp__buybar-in { padding-left: 0; padding-right: 0; }
	.cvp__buybar { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.cvp *, .cvp *::before, .cvp *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.js .cvp [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
	.js .cvp .cvp__track i { transform: scaleX(var(--w, 0)); }
	.cvp__buybar { transition: none; }
}

/* Ajouts : sommaire, favoris, comparaison, texte d'aide */
.cvp__hero { padding-top: 6px; }
.cvp__fallback { width: 100%; max-width: 360px; }
.cvp__faq-q { font-family: var(--f-title); font-weight: 600; font-size: 1.15rem; display: block; }
.cvp .pc__actions { position: static; top: auto; right: auto; z-index: auto; display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.cvp .fav-btn, .cvp .cmp-btn { width: auto; height: auto; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: var(--r); border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 .9rem/1 var(--f-ui); cursor: pointer; transition: background .2s, color .2s; }
.cvp .fav-btn:hover, .cvp .cmp-btn:hover { background: var(--plaster-2); }
.cvp .fav-btn[aria-pressed="true"], .cvp .cmp-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cvp .fav-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.cvp .fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.cvp .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cvp__table td, .cvp__table th { white-space: normal; }
.cvp__table tbody th a { color: var(--ink); }
