/* Veloria — page produit (phase 2, 2026-09-29). Layout et tokens d'Irazia (IRAZIA_SPEC § 2 et § 4) :
   Urbanist 400, H1 24 px, H2 28 / 48 px, corps 14 px / 1.6, rayon 0 partout (sauf pastilles ✓ 30 px,
   barres de progression, radio), boutons noirs 52 px. Tokens : static/veloria/css/shell.css. */
.ve-page { font: 400 14px/1.6 var(--ve-font); color: var(--ve-ink); background: var(--ve-bg); }
.ve-page *, .ve-page *::before, .ve-page *::after { box-sizing: border-box; border-radius: 0; }
.ve-page b { font-weight: 700; }
.ve-testbar { margin: 0; background: #fff4c2; color: #3d3100; text-align: center; font-size: 12px; padding: 6px 16px; border-bottom: 1px solid #e6d58a; }
.ve-illu { display: inline-block; background: #ffe600; color: #000; font: 800 10px/1 var(--ve-font); letter-spacing: .06em; padding: 4px 6px; vertical-align: middle; border: 1px solid #000; }
.ve-tbd { display: inline-block; background: #fff; color: #7a4b00; border: 1px dashed #b37400; font: 700 10px/1.2 var(--ve-font); padding: 3px 6px; letter-spacing: .04em; }
.ve-muted { color: var(--ve-muted); }
.ve-center { text-align: center; }

/* --- Placeholders de médias (brief écrit dessus) --- */
.ve-ph { position: relative; background: var(--ve-beige); border: 1px dashed #c9b8b2; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 18px; color: var(--ve-brown); width: 100%; }
.ve-ph--sq { aspect-ratio: 1 / 1; }
.ve-ph--p { aspect-ratio: 4 / 5; }
.ve-ph--v { aspect-ratio: 9 / 16; background: #1d1716; color: #e9dfdc; border-color: #5b4744; }
.ve-ph__tag { position: absolute; top: 10px; left: 10px; font: 700 10px/1 var(--ve-font); letter-spacing: .08em; background: rgba(255,255,255,.85); color: var(--ve-brown); padding: 4px 6px; }
.ve-ph--v .ve-ph__tag { background: rgba(0,0,0,.6); color: #fff; }
.ve-ph__brief { margin: 0; font-size: 13px; line-height: 1.45; max-width: 34ch; }
.ve-ph .ve-illu { position: absolute; bottom: 10px; right: 10px; }
.ve-play { width: 56px; height: 56px; border-radius: 50% !important; background: rgba(255,255,255,.9); color: #000; display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }

/* --- 2 · Hero : galerie + buy box --- */
.ve-hero { max-width: 1440px; margin: 0 auto; display: grid; gap: 20px; padding: 0 0 32px; }
.ve-gallery { min-width: 0; }
.ve-gallery__thumbs { display: none; }
.ve-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding: 0 16px; scrollbar-width: none; }
.ve-gallery__track::-webkit-scrollbar { display: none; }
.ve-slide { flex: 0 0 calc(100% - 40px); scroll-snap-align: start; margin: 0; }
.ve-buy { padding: 0 16px; min-width: 0; }
.ve-h1 { font: 400 24px/1.1 var(--ve-font); margin: 0 0 12px; }
.ve-hook { font: 400 20px/1.25 var(--ve-font); margin: 0 0 8px; }
.ve-sub { margin: 0 0 12px; color: var(--ve-ink-2); }
.ve-rating { margin: 0 0 12px; color: #3D3D3D; }
.ve-stars { color: #000; letter-spacing: 2px; }
.ve-checks { list-style: none; margin: 0 0 10px; padding: 0; }
.ve-checks li { padding-left: 22px; position: relative; margin: 4px 0; }
.ve-checks li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.ve-link { background: none; border: 0; padding: 0; font: inherit; color: var(--ve-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ve-bundle-title { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; font-weight: 700; }
.ve-bundle-title::before, .ve-bundle-title::after { content: ""; flex: 1; height: 1px; background: var(--ve-line); }
.ve-tiers { display: grid; gap: 10px; }
.ve-tier { position: relative; border: 1px solid var(--ve-line); background: #fff; padding: 14px; cursor: pointer; }
.ve-tier.is-on { background: var(--ve-beige); border-color: var(--ve-brown); }
.ve-tier__head { display: flex; align-items: center; gap: 12px; }
.ve-radio { width: 18px; height: 18px; border-radius: 50% !important; border: 1.5px solid var(--ve-brown); flex: 0 0 18px; }
.ve-tier.is-on .ve-radio { background: radial-gradient(circle, var(--ve-brown) 45%, transparent 50%); }
.ve-tier__txt { display: flex; flex-direction: column; }
.ve-tier__txt b { font-size: 14px; }
.ve-tier__txt small { font: 500 12px/1.4 var(--ve-font); color: #555; }
.ve-tier__price { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.ve-tier__price b { font-size: 14px; }
.ve-tier__price s { font-size: 12px; color: var(--ve-accent); }
.ve-badge { position: absolute; top: -10px; right: 12px; background: var(--ve-accent); color: #fff; font: 700 11px/1 var(--ve-font); padding: 4px 8px; letter-spacing: .04em; }
.ve-tier__rows { display: none; margin-top: 12px; border-top: 1px solid rgba(79,59,57,.2); padding-top: 8px; }
.ve-tier.is-on .ve-tier__rows { display: grid; gap: 8px; }
.ve-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 6px 0; }
.ve-row + .ve-row { border-top: 1px solid rgba(79,59,57,.15); padding-top: 10px; }
.ve-row__head { grid-column: 1 / -1; margin: 0; font-size: 13px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ve-row__head em { font-style: normal; font-size: 11px; letter-spacing: .04em; }
.ve-row__tint { margin-left: auto; color: #555; font-size: 12px; }
.ve-rows-note { margin: 0 0 4px; font-size: 11px; color: #555; }
.ve-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Pastilles de teinte (Irazia : carrées, bordure brune 30 %, sélection encadrée noir) */
.ve-sw { display: flex; gap: 8px; }
.ve-sw__b { width: 32px; height: 32px; padding: 0; background: var(--sw); border: 1px solid rgba(79,59,57,.3); box-shadow: inset 0 0 0 2px #fff; cursor: pointer; }
.ve-sw__b.is-on { outline: 1.5px solid #000; outline-offset: 2px; }
.ve-sw__b:focus-visible { outline: 2px solid var(--ve-accent); outline-offset: 2px; }
.ve-size-sel { display: block; min-width: 150px; }
.ve-size-help { margin: 10px 0 0; font-size: 12px; color: #555; }
.ve-free { color: var(--ve-accent); font-weight: 800; }
.ve-incl { color: var(--ve-muted); }
.ve-row__opt { display: flex; flex-direction: column; font-size: 11px; color: #555; min-width: 0; }
.ve-sel { width: 100%; appearance: none; -webkit-appearance: none; border: 1px solid #000; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 6px; padding: 9px 30px 9px 10px; font: 500 13px var(--ve-font); color: #000; min-width: 0; min-height: 40px; }
.ve-giftbar { display: flex; align-items: center; gap: 10px; background: var(--ve-brown); color: #fff; padding: 10px 12px; margin-top: 10px; font: 700 13px/1.3 var(--ve-font); }
.ve-giftbar[hidden] { display: none; }
.ve-giftbar__ph { width: 34px; height: 34px; background: rgba(255,255,255,.15); display: grid; place-items: center; }
.ve-btn { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 52px; background: #000; color: #fff; border: 0; padding: 16px 24px; font: 400 14px/1.2 var(--ve-font); cursor: pointer; text-decoration: none; margin-top: 12px; transition: background .125s cubic-bezier(.33,1,.68,1); }
.ve-btn:hover { background: #262626; color: #fff; }
.ve-btn:disabled { opacity: .6; }
.ve-btn--inline { display: inline-flex; width: auto; }
.ve-atc-error { color: #b42318; }
.ve-under { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.ve-scarcity { margin: 16px 0; }
.ve-scarcity__t { font: 600 16px/1.3 var(--ve-font); margin: 0; }
.ve-scarcity__s { margin: 0 0 8px; color: #555; }
.ve-scarcity__bar { height: 8px; background: #ECECEC; border-radius: 50px !important; overflow: hidden; }
.ve-scarcity__bar span { display: block; height: 100%; background: var(--ve-accent); border-radius: 50px !important; }
.ve-scarcity__meta { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 13px; }
.ve-guar { display: flex; gap: 12px; background: var(--ve-grey); padding: 20px; margin: 16px 0; }
.ve-guar__ico { font-size: 20px; line-height: 1; }
.ve-guar p { margin: 4px 0 0; }
.ve-accs details, .ve-faq details { border-bottom: 1px solid var(--ve-line); }
.ve-accs summary, .ve-faq summary { cursor: pointer; padding: 11.2px 0; font-size: 12px; list-style: none; display: flex; justify-content: space-between; }
.ve-faq summary { font-size: 14px; }
.ve-accs summary::after, .ve-faq summary::after { content: "⌄"; }
.ve-accs summary::-webkit-details-marker, .ve-faq summary::-webkit-details-marker { display: none; }
.ve-plain { padding-left: 18px; }
.ve-paylist { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }

/* --- Bande d'engagements (mode réel : livraison, garantie, tailles) --- */
.ve-trust { max-width: 1440px; margin: 0 auto 24px; padding: 14px 16px; border-top: 1px solid var(--ve-line); border-bottom: 1px solid var(--ve-line); position: relative; }
.ve-trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font: 600 13px/1.3 var(--ve-font); }
.ve-trust li { position: relative; }
.ve-trust li + li::before { content: '·'; position: absolute; left: -16px; color: var(--ve-muted); font-weight: 400; }

/* --- Sections --- */
.ve-sec { max-width: 1440px; margin: 0 auto; padding: 40px 16px; }
.ve-h2 { font: 400 28px/1.1 var(--ve-font); margin: 0 0 20px; }
.ve-h3 { font: 700 14px/1.3 var(--ve-font); margin: 20px 0 4px; text-transform: uppercase; letter-spacing: .06em; }
.ve-divider { border: 0; border-top: 1px solid var(--ve-line); margin: 16px auto; max-width: 1440px; }
.ve-vtrack, .ve-ptrack, .ve-rtrack { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.ve-vtrack::-webkit-scrollbar, .ve-ptrack::-webkit-scrollbar, .ve-rtrack::-webkit-scrollbar { display: none; }
.ve-vcard { flex: 0 0 62%; max-width: 277px; scroll-snap-align: center; margin: 0; }
.ve-vcard figcaption { font-size: 12px; color: var(--ve-muted); margin-top: 6px; text-align: center; }
.ve-vcard__v { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #1d1716; }
.ve-pcard, .ve-review { flex: 0 0 82%; max-width: 312px; scroll-snap-align: start; margin: 0; }
.ve-pcard figcaption { font-size: 14px; margin-top: 8px; }
.ve-pcard figcaption small { display: block; color: var(--ve-muted); font-size: 12px; }
.ve-review p { margin: 6px 0; }
.ve-split { display: grid; gap: 20px; margin-bottom: 32px; align-items: center; }
.ve-encart { list-style: none; background: var(--ve-beige); padding: 14px 16px; margin: 16px 0 0; display: grid; gap: 6px; }
.ve-encart li::before { content: "✓  "; font-weight: 700; }
.ve-layers { padding-left: 20px; display: grid; gap: 8px; }
.ve-mono { background: var(--ve-beige); padding: 14px 16px; }
.ve-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ve-steps li { display: flex; gap: 12px; align-items: center; }
.ve-steps span { width: 28px; height: 28px; background: #000; color: #fff; display: grid; place-items: center; font-weight: 700; flex: 0 0 28px; }
.ve-cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.ve-cmp th, .ve-cmp td { border-bottom: 1px solid var(--ve-line); padding: 12px 6px; text-align: center; }
.ve-cmp tbody th { text-align: left; font-weight: 400; }
.ve-cmp thead th { font-weight: 700; font-size: 12px; }
.ve-pill { display: inline-grid; place-items: center; width: 56px; height: 36px; background: var(--ve-grey); border-radius: 30px !important; font-weight: 700; }
.ve-x { color: #9a9a9a; }
.ve-guarsec { background: var(--ve-grey); }
.ve-guarsec .ve-split { max-width: 1440px; margin: 0 auto; padding: 40px 16px; }
.ve-table-wrap { overflow-x: auto; }
.ve-size { width: 100%; border-collapse: collapse; font-size: 13px; }
.ve-size th, .ve-size td { border-bottom: 1px solid var(--ve-line); padding: 10px 8px; text-align: left; }
.ve-size thead th { background: var(--ve-grey); font-weight: 700; }
.ve-sg__units { display: inline-flex; border: 1px solid #000; margin: 0 0 12px; }
.ve-sg__units button { background: #fff; border: 0; padding: 6px 14px; font: 500 12px var(--ve-font); cursor: pointer; }
.ve-sg__units button.is-on { background: #000; color: #fff; }
.ve-sg__rule { background: var(--ve-accent-soft); border-left: 3px solid var(--ve-accent); padding: 10px 12px; margin: 14px 0; }
.ve-sg__tips { list-style: none; counter-reset: tip; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.ve-sg__tips li { counter-increment: tip; display: grid; grid-template-columns: 28px 1fr; gap: 0 10px; }
.ve-sg__tips li::before { content: counter(tip); grid-row: span 2; width: 28px; height: 28px; background: #000; color: #fff; display: grid; place-items: center; font-weight: 700; }
.ve-sg__tips span { color: #555; font-size: 13px; }
/* Mobile : chaque taille devient une carte (aucun défilement horizontal) */
@media (max-width: 599px) {
    .ve-size thead { display: none; }
    .ve-size, .ve-size tbody, .ve-size tr { display: block; width: 100%; }
    .ve-size tr { border: 1px solid var(--ve-line); margin: 0 0 8px; display: grid; grid-template-columns: 1fr 1fr; }
    .ve-size th[scope="row"] { grid-column: 1 / -1; background: var(--ve-grey); font-size: 14px; }
    .ve-size td { display: block; border-bottom: 0; padding: 6px 8px; }
    .ve-size td::before { content: attr(data-label); display: block; font-size: 11px; color: #555; }
}
.ve-modal { border: 0; padding: 24px; margin: auto; max-width: min(760px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 32px); overflow-y: auto; font-family: var(--ve-font); }
.ve-modal::backdrop { background: rgba(0,0,0,.45); }
.ve-modal__x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 18px; cursor: pointer; }
.ve-faq p { margin: 0 0 12px; }

/* --- F1 · bouton d'achat collant mobile --- */
.ve-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--ve-line); padding: 10px 16px; display: flex; gap: 12px; align-items: center; transform: translateY(110%); transition: transform .2s ease; }
.ve-sticky.is-on { transform: none; }
.ve-sticky__t { font-size: 12px; line-height: 1.2; flex: 0 1 38%; }
.ve-sticky__t small { color: var(--ve-muted); }
.ve-sticky .ve-btn { margin: 0; flex: 1; font-size: 13px; padding: 12px; }

/* --- Desktop (grille Irazia 1440, galerie + buy box sticky) --- */
@media (min-width: 990px) {
    .ve-hero { grid-template-columns: minmax(0, 1fr) 512px; gap: 48px; padding: 24px 24px 48px; align-items: start; }
    .ve-gallery { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; position: sticky; top: 84px; }
    .ve-gallery__thumbs { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; align-content: start; }
    .ve-thumb { width: 90px; aspect-ratio: 1 / 1; border: 1px solid var(--ve-line); background: var(--ve-beige); cursor: pointer; font: 600 13px var(--ve-font); color: var(--ve-brown); }
    .ve-thumb.is-on { border-color: #000; }
    .ve-gallery__track { padding: 0; }
    .ve-slide { flex: 0 0 100%; }
    .ve-buy { padding: 0; position: sticky; top: 84px; }
    .ve-h2 { font-size: 48px; }
    .ve-hook { font-size: 24px; }
    .ve-split { grid-template-columns: 1fr 1fr; gap: 48px; }
    /* Un visuel retiré du manifest (fail-open) laisserait une colonne vide : le texte reprend
       toute la largeur au lieu de flotter à gauche. Sans `:has()`, on retombe sur l'ancien rendu. */
    .ve-split:not(:has(.ve-media, .ve-ph)) { grid-template-columns: 1fr; max-width: 800px; margin-inline: auto; }
    .ve-split--rev .ve-ph { order: 2; }
    .ve-sec { padding: 56px 24px; }
    .ve-vtrack, .ve-ptrack, .ve-rtrack { justify-content: center; }
    .ve-vcard { flex-basis: 240px; }
    .ve-pcard, .ve-review { flex-basis: 280px; }
    .ve-sticky { display: none; }
    .ve-cmp { font-size: 14px; max-width: 960px; margin: 0 auto; }
}

/* --- Phase 4 (2026-09-29) : médias du manifest, plan de test CRO (SEO_CRO_TEST_PLAN § 9) --- */
.ve-media { position: relative; width: 100%; background: var(--ve-beige); overflow: hidden; }
.ve-media--sq { aspect-ratio: 1 / 1; }
.ve-media--p { aspect-ratio: 4 / 5; }
.ve-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ve-media .ve-illu { position: absolute; bottom: 10px; right: 10px; }
.ve-ov-list { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 70%; }
.ve-ov { background: rgba(0,0,0,.82); color: #fff; font: 600 12px/1.25 var(--ve-font); padding: 6px 8px; }
.ve-ph .ve-ov-list { position: static; margin-top: 10px; align-items: center; max-width: none; }
.ve-model { margin: 8px 16px 0; font-size: 12px; color: var(--ve-muted); }
.ve-row__sum { color: #555; font-weight: 400; }
.ve-row__lab { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; color: #555; }
.ve-row__lab b { color: #000; }
.ve-row .ve-sw { grid-column: 1 / -1; }
/* Un seul coloris : le groupe reste dans le DOM (page.js y lit la variante) mais ne s'affiche pas.
   ⚠️ `display: flex` de .ve-sw bat le `display: none` que le navigateur donne à [hidden]. */
.ve-sw[hidden] { display: none; }
.ve-sz { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.ve-sz__b { min-width: 48px; min-height: 40px; padding: 6px 10px; background: #fff; border: 1px solid rgba(0,0,0,.25); font: 600 13px/1.1 var(--ve-font); cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #000; }
.ve-sz__b small { font: 600 9px/1 var(--ve-font); color: var(--ve-accent); letter-spacing: .02em; }
.ve-sz__b.is-on { background: #000; color: #fff; border-color: #000; }
.ve-sz__b.is-on small { color: #ffd0d7; }
.ve-sz__b:focus-visible { outline: 2px solid var(--ve-accent); outline-offset: 2px; }
.ve-under-sizes { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 12px 0 0; font-size: 13px; }
.ve-scarce { color: var(--ve-accent); font-weight: 600; }
.ve-giftbar__txt { display: flex; flex-direction: column; gap: 3px; }
.ve-giftbar__extra[hidden] { display: none; }
.ve-under__guar { font-weight: 600; }
.ve-cmp-media { max-width: 560px; margin: 0 auto 24px; }
.ve-popup { max-width: min(420px, calc(100vw - 32px)); text-align: center; }
.ve-popup__t { font: 600 24px/1.2 var(--ve-font); margin: 12px 0 8px; }
.ve-popup .ve-link { margin-top: 10px; }

/* --- Bloc « lancement » : servi tant qu'aucun avis RÉEL n'existe (shop/veloria/avis.py) --- */
.ve-launch { max-width: 760px; }
.ve-launch p { margin: 0 auto 16px; max-width: 58ch; }
.ve-launch__list { list-style: none; margin: 0 auto 24px; padding: 20px; max-width: 58ch; display: grid; gap: 10px; border: 1px solid var(--ve-line); background: var(--ve-beige); }
.ve-launch__list li { padding-left: 24px; position: relative; font-size: 15px; }
.ve-launch__list li::before { content: '✓'; position: absolute; left: 0; color: var(--ve-accent); font-weight: 700; }
