/* Habillage du site (12 novembre 2026). D'abord aperçu sous /v2/ (« un site en v2, encore plus beau, plus récent, avec les
   mêmes fonctionnalités et la même clarté »), devenu la version par défaut le soir même sur décision de Benoît ; l'ancien
   habillage (v1) est retiré. Chargé après site.css sur toutes les pages (classe next sur <body>, scripts/build.mjs).
   Principes : fond clair à halos de couleur, en-tête en verre sur une seule ligne (logo, disciplines, réglages), onglets
   et vues dessous, cartes blanches à grands rayons, boutons en dégradé de la couleur du site, tableaux aérés, pied de
   page discret. Les dix couleurs d'accent continuent de marcher : tout part de --v2-accent. */
body.v2.next {
  --v2-bg: #f7f8fc; --v2-card: #ffffff; --v2-ink: #0b1020; --v2-muted: #5b6478; --v2-line: #e7eaf2;
  --v2-radius: 22px;
  --v2-shadow: 0 1px 2px rgba(11, 16, 32, .04), 0 14px 34px -14px rgba(11, 16, 32, .14);
  --nx-2: color-mix(in oklab, var(--v2-accent) 55%, #6d5efc);
  --nx-grad: linear-gradient(120deg, var(--v2-accent), var(--nx-2));
  --nx-glow: 0 10px 26px -10px color-mix(in srgb, var(--v2-accent) 70%, transparent);
  --nx-ring: 0 0 0 3px color-mix(in srgb, var(--v2-accent) 28%, transparent);
  --nx-head: 56px; /* hauteur de la barre de l'en-tête ; les onglets collés se placent dessous */
  background:
    radial-gradient(900px 520px at 8% -6%, color-mix(in srgb, var(--v2-accent) 16%, transparent), transparent 68%),
    radial-gradient(820px 480px at 96% -10%, color-mix(in srgb, var(--nx-2) 15%, transparent), transparent 66%),
    var(--v2-bg);
  background-repeat: no-repeat;
  letter-spacing: -.003em;
}
html:has(body.v2.next) { background: #f7f8fc; }
body.v2.next ::selection { background: color-mix(in srgb, var(--v2-accent) 24%, transparent); }
body.v2.next :is(a, button, select, input, summary):focus-visible { outline: none; box-shadow: var(--nx-ring); border-radius: 10px; }

/* ---------- en-tête : une barre en verre, logo, disciplines, réglages ---------- */
body.v2.next .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: .6rem; }
body.v2.next .header-inner { min-height: var(--nx-head); padding: 0 .9rem 0 .7rem; gap: .75rem; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: 0 1px 2px rgba(11, 16, 32, .05), 0 12px 30px -16px rgba(11, 16, 32, .2); }
body.v2.next .brand { font-size: 1.12rem; gap: .55rem; letter-spacing: -.025em; color: var(--v2-ink); flex: none; }
body.v2.next .brand-mark { width: 36px; height: 36px; border-radius: 11px; color: var(--v2-accent); filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--v2-accent) 35%, transparent)); }
body.v2.next .sections-head { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; background: none; }
body.v2.next .sections-head .sections { gap: .1rem; flex-wrap: nowrap; justify-content: center; }
body.v2.next .sections a.section { padding: .42rem .8rem; font-size: .84rem; font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--v2-muted); border-radius: 999px; transition: background .2s, color .2s; }
body.v2.next .sections a.section:hover { background: rgba(11, 16, 32, .05); color: var(--v2-ink); }
body.v2.next .sections a.section.is-active { background: var(--nx-grad); color: #fff; box-shadow: var(--nx-glow); }
body.v2.next:has(#s-pump:is(:hover, :focus-visible)) .sections a.section[data-section="pump"],
body.v2.next:has(#s-wing:is(:hover, :focus-visible)) .sections a.section[data-section="wing"],
body.v2.next:has(#s-surf:is(:hover, :focus-visible)) .sections a.section[data-section="surf"],
body.v2.next:has(#s-dw:is(:hover, :focus-visible)) .sections a.section[data-section="dw"],
body.v2.next:has(#s-para:is(:hover, :focus-visible)) .sections a.section[data-section="para"],
body.v2.next:has(#s-kite:is(:hover, :focus-visible)) .sections a.section[data-section="kite"] { background: var(--nx-grad); color: #fff; box-shadow: var(--nx-glow); }
/* le café reprend sa place dans la ligne (il était centré, là où sont maintenant les disciplines) */
body.v2.next .coffee-head { position: relative; left: auto; top: auto; transform: none; flex: none; width: 46px; height: 38px; margin: 0; }
body.v2.next .nav { flex: none; }
/* ordinateur (demande de Benoît du 19 novembre 2026) : barre plus haute, logo et disciplines plus grands ; la tasse du
   café, plus grande elle aussi, est au milieu de l'espace entre la dernière discipline et les pastilles de couleur
   (logo, disciplines, café et réglages se partagent l'espace libre à parts égales) */
@media (min-width: 1180px) {
  body.v2.next { --nx-head: 68px; }
  body.v2.next .header-inner { padding: 0 1.1rem 0 .85rem; gap: .5rem; border-radius: 24px; }
  body.v2.next .brand { font-size: 1.22rem; gap: .6rem; }
  body.v2.next .brand-mark { width: 42px; height: 42px; border-radius: 13px; }
  body.v2.next .sections-head { flex: 0 1 auto; }
  body.v2.next .sections a.section { padding: .5rem .8rem; font-size: .88rem; }
  body.v2.next .coffee-head { width: 64px; height: 52px; }
}
body.v2.next .lang-switch, body.v2.next .discover-link { border-color: var(--v2-line); background: #fff; box-shadow: 0 1px 2px rgba(11, 16, 32, .05); }
body.v2.next .discover-link .discover-long { display: none; } /* icône seule : la place est aux disciplines */

/* ---------- onglets de la discipline et vues (Guide | Comparateur | Toutes les …) sur une seule ligne ---------- */
body.v2.next .top-nav { top: calc(var(--nx-head) + .6rem); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; padding: .55rem 0 .35rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; width: min(1120px, 100% - 2rem); margin: 0 auto; }
/* fond de la barre sur toute la largeur de l'écran, sans déborder de la page (ombre découpée) */
body.v2.next .top-nav { background: #f7f8fc; box-shadow: 0 0 0 100vmax #f7f8fc; clip-path: inset(0 -100vmax); }
body.v2.next .top-nav:not(:has(.tab)) { padding: 0; }
body.v2.next .top-nav .wrap { width: auto; margin: 0; }
body.v2.next .tabs-bar { min-width: 0; }
body.v2.next .tabs { margin: 0; gap: .15rem; }
body.v2.next .tabs a.tab { padding: .42rem .85rem; font-size: .93rem; font-weight: 650; color: var(--v2-muted); transition: background .2s, color .2s; }
body.v2.next .tabs a.tab:hover { background: rgba(11, 16, 32, .05); color: var(--v2-ink); }
body.v2.next .tabs a.tab.is-active, body.v2.next .tabs a.tab.is-hot { background: #fff; color: var(--v2-accent); box-shadow: 0 1px 2px rgba(11, 16, 32, .06), inset 0 0 0 1px color-mix(in srgb, var(--v2-accent) 30%, transparent); }
body.v2.next .view-switch { padding: 0; flex-basis: 100%; } /* sous les onglets, comme sur le site (demande de Benoît) */
body.v2.next .segmented { background: rgba(11, 16, 32, .06); }
body.v2.next .seg { transition: background .2s, color .2s, box-shadow .2s; }
body.v2.next .seg.is-on { background: #fff; color: var(--v2-ink); box-shadow: 0 1px 2px rgba(11, 16, 32, .1), 0 4px 10px -4px rgba(11, 16, 32, .18); }
body.v2.next .view-switch .seg.is-on { background: var(--v2-ink); color: #fff; }

/* ---------- titres et textes ---------- */
body.v2.next h1 { letter-spacing: -.04em; font-weight: 800; }
body.v2.next main h1 { background: linear-gradient(105deg, var(--v2-ink) 35%, color-mix(in oklab, var(--v2-ink) 35%, var(--v2-accent))); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
body.v2.next h2 { letter-spacing: -.025em; }
body.v2.next .lead { color: var(--v2-muted); }
body.v2.next .eyebrow, body.v2.next .hub-name { display: inline-block; margin: 0 0 .7rem; padding: .32rem .8rem; border-radius: 999px; font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--v2-accent); background: color-mix(in srgb, var(--v2-accent) 10%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v2-accent) 22%, transparent); }
body.v2.next .crumbs { font-size: .85rem; color: var(--v2-muted); margin-bottom: .8rem; }
/* l'ancien décor de vague derrière le titre des comparateurs laisse la place aux halos du fond */
body.v2.next main > .section-tight:has(+ .comparator)::before, body.v2.next main > .section-tight:has(+ .comparator)::after { display: none; }
@media (prefers-reduced-motion: no-preference) {
  /* backwards, pas both : une animation de transform gardée à la fin ferait de la section le repère des éléments en
     position fixe (bloc collant des guides) */
  body.v2.next main > :is(section, div) { animation: nx-in .45s cubic-bezier(.2, .7, .2, 1) backwards; }
  body.v2.next main > :is(section, div):nth-child(2) { animation-delay: .06s; }
  @keyframes nx-in { from { opacity: 0; transform: translateY(10px); } }
}

/* ---------- cartes, panneaux, champs ---------- */
body.v2.next :is(.panel, .table-scroll, .chart, .legend-box, .about-box, .discover-card, .guide-tile, .guide-link-card, .gear-card, .gear-figure, a.hub-entry, a.sport-tile, .size-result) {
  border: 1px solid var(--v2-line); border-radius: var(--v2-radius); background: var(--v2-card); box-shadow: var(--v2-shadow); }
body.v2.next .panel.is-adding { background: transparent; box-shadow: none; border: 2px dashed color-mix(in srgb, var(--v2-muted) 32%, transparent); }
body.v2.next :is(select, input[type="number"], input[type="search"], input[type="text"]) { border-radius: 12px; border-color: var(--v2-line); transition: border-color .15s, box-shadow .15s; }
body.v2.next :is(select, input[type="number"], input[type="search"], input[type="text"]):hover { border-color: color-mix(in srgb, var(--v2-accent) 40%, var(--v2-line)); }
body.v2.next :is(select, input[type="number"], input[type="search"], input[type="text"]):focus { border-color: var(--v2-accent); box-shadow: var(--nx-ring); outline: none; }
body.v2.next .legend-box > summary { font-weight: 700; }
body.v2.next .calc-warning { border: 0; border-radius: 16px; background: color-mix(in srgb, var(--v2-accent) 8%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v2-accent) 18%, transparent); padding: .75rem 1rem; }

/* ---------- boutons d'action : dégradé de la couleur du site ---------- */
body.v2.next :is(.btn:not(.btn-ghost), a.list-compare-go, a.gear-action.is-main) { border: 0; border-radius: 999px; background: var(--nx-grad); color: #fff; box-shadow: var(--nx-glow);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
body.v2.next :is(.btn:not(.btn-ghost), a.list-compare-go, a.gear-action.is-main):hover { transform: translateY(-2px); filter: saturate(1.15) brightness(1.04); text-decoration: none; color: #fff; background: var(--nx-grad); }
body.v2.next a.cta { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem 1.1rem; border-radius: 999px; background: var(--nx-grad); color: #fff; font-weight: 700; text-decoration: none; box-shadow: var(--nx-glow); transition: transform .18s ease; }
body.v2.next a.cta:hover { transform: translateY(-2px); }

/* ---------- tableaux : en-têtes discrets, lignes aérées, survol ---------- */
body.v2.next .spec-table thead th { background: color-mix(in srgb, var(--v2-bg) 60%, #fff); font-size: .78rem; font-weight: 700; color: var(--v2-muted); letter-spacing: .01em; }
body.v2.next .spec-table thead th button { font-weight: 700; color: var(--v2-ink); }
body.v2.next .spec-table th, body.v2.next .spec-table td { border-bottom-color: #eef1f6; }
body.v2.next .list-table tbody tr { transition: background .15s; }
body.v2.next .list-table tbody tr:not(.is-match):hover { background: color-mix(in srgb, var(--v2-accent) 5%, #fff); }
body.v2.next .lift-table th { letter-spacing: .04em; }
body.v2.next .year-badge { border-radius: 999px; }

/* ---------- accueil : titre centré, grandes cases ---------- */
body.v2.next .home-page { text-align: center; padding-top: clamp(2rem, 6vw, 4.5rem); }
body.v2.next .home-page h1 { font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1; margin-bottom: .9rem;
  background: linear-gradient(100deg, var(--v2-ink) 20%, var(--v2-accent) 60%, var(--nx-2)); -webkit-background-clip: text; background-clip: text; }
body.v2.next .home-page .lead { display: inline-block; padding: .45rem 1.1rem; border-radius: 999px; background: #fff; color: var(--v2-ink); font-size: 1.05rem; font-weight: 650; box-shadow: var(--v2-shadow); border: 1px solid var(--v2-line); }
body.v2.next .sport-grid { gap: 1.25rem; margin-top: 2.2rem; text-align: left; }
body.v2.next a.sport-tile { border-radius: 28px; padding-bottom: 1.25rem; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease; }
body.v2.next a.sport-tile:hover, body.v2.next a.sport-tile:focus-visible { transform: translateY(-8px); border-color: transparent;
  box-shadow: 0 0 0 2px var(--v2-accent), 0 30px 60px -24px color-mix(in srgb, var(--v2-accent) 65%, transparent); }
body.v2.next .sport-art { margin-bottom: .9rem; }
body.v2.next .sport-name { font-size: clamp(1.25rem, 2.8vw, 1.8rem); letter-spacing: -.03em; }
body.v2.next .sport-go { background: #fff; box-shadow: 0 2px 8px rgba(11, 16, 32, .1); border: 0; }
body.v2.next a.sport-tile:hover .sport-go, body.v2.next a.sport-tile:focus-visible .sport-go { background: var(--nx-grad); color: #fff; }

/* ---------- page d'une discipline ---------- */
body.v2.next div.gear-figure { border-radius: 30px; }
body.v2.next a.gear-chip { background: #fff; box-shadow: 0 1px 2px rgba(11, 16, 32, .05); transition: transform .15s, background .2s, color .2s; }
body.v2.next a.gear-chip:hover { transform: translateY(-1px); }
body.v2.next a.gear-chip.is-active { background: var(--nx-grad); border-color: transparent; color: #fff; box-shadow: var(--nx-glow); }
body.v2.next .gear-card { position: relative; overflow: hidden; border-radius: 28px; }
body.v2.next .gear-stage.is-js .gear-card.is-active { border-color: var(--v2-line); }
body.v2.next .gear-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--nx-grad); }
body.v2.next .gear-card dt { color: var(--v2-accent); }
body.v2.next a.gear-action { background: #fff; box-shadow: 0 1px 2px rgba(11, 16, 32, .05); }
body.v2.next a.hub-entry { border-radius: 24px; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
body.v2.next a.hub-entry:hover, body.v2.next a.hub-entry:focus-visible { transform: translateY(-5px); border-color: transparent; box-shadow: 0 0 0 2px var(--v2-accent), 0 24px 44px -22px color-mix(in srgb, var(--v2-accent) 60%, transparent); }
body.v2.next a.hub-entry strong::after { content: " →"; color: var(--v2-accent); }

/* ---------- guides : réglages et réponse ---------- */
body.v2.next .size-result { padding: .2rem .4rem; }
body.v2.next .size-answer-value { background: var(--nx-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body.v2.next .guide-tile:hover, body.v2.next .guide-link-card:hover, body.v2.next .discover-card:hover { border-color: transparent; box-shadow: 0 0 0 2px var(--v2-accent), 0 20px 40px -22px color-mix(in srgb, var(--v2-accent) 60%, transparent); }

/* ---------- pied de page (demande de Benoît) : un filet, des textes discrets alignés à gauche ;
   mentions légales, contact, liens de version, relevé des prix, pays ---------- */
body.v2.next .site-footer { width: min(1120px, 100% - 2rem); margin: 4rem auto 0; padding: 1.2rem 0 1rem; border: 0; border-top: 1px solid var(--v2-line); border-radius: 0; background: none; color: #667085; font-size: .82rem; }
body.v2.next .site-footer .wrap { width: 100%; }
body.v2.next .site-footer .footer-inner { display: block; }
body.v2.next .site-footer .footer-copy { margin: .35rem 0; font-size: .82rem; }
body.v2.next .site-footer .legal summary { font-weight: 600; }
/* ligne de liens du pied de page : guides, marques, catalogue, méthode, à propos (_layout.html) */
body.v2.next .site-footer .footer-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0 0 .8rem; font-size: .88rem; font-weight: 600; }
body.v2.next .site-footer .footer-nav a { color: var(--v2-ink); text-decoration: none; }
body.v2.next .site-footer .footer-nav a:hover { text-decoration: underline; }
body.v2.next .site-footer :is(.footer-prices, .footer-market) { justify-self: start; text-align: left; justify-content: flex-start; }
body.v2.next .site-footer select { padding: .3rem .5rem; border: 1px solid var(--v2-line); border-radius: 10px; background: #fff; color: var(--v2-ink); }

/* ---------- écrans moyens et téléphones : les disciplines passent sous le logo, l'en-tête défile, les onglets restent ---------- */
@media (max-width: 1179px) {
  /* l'en-tête défile, mais reste au-dessus des onglets collés (bulle du café) */
  body.v2.next .site-header { position: relative; z-index: 52; padding-top: .5rem; }
  body.v2.next .header-inner { flex-wrap: wrap; padding: .35rem .7rem .45rem; row-gap: .3rem; }
  body.v2.next .sections-head { order: 9; flex-basis: 100%; }
  body.v2.next .sections-head .sections { width: 100%; justify-content: space-between; }
  /* la tasse du café au milieu de l'espace entre le logo et les pastilles de couleur, et non collée aux pastilles */
  body.v2.next .coffee-head { margin: 0 auto; }
  body.v2.next .top-nav { top: 0; }
}
/* fenêtre d'ordinateur étroite ou tablette (disciplines sous le logo) : tasse du café plus grande */
@media (min-width: 641px) and (max-width: 1179px) {
  body.v2.next .coffee-head { width: 58px; height: 47px; }
}
@media (max-width: 640px) {
  body.v2.next .site-header .wrap { width: calc(100% - 1rem); }
  body.v2.next .header-inner { min-height: 0; border-radius: 16px; padding: .4rem .5rem .45rem; column-gap: .4rem; }
  body.v2.next .brand { font-size: .95rem; gap: .4rem; flex: 0 1 auto; min-width: 0; }
  body.v2.next .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.v2.next .brand-mark { width: 30px; height: 30px; flex: none; }
  body.v2.next .coffee-head { width: 40px; height: 34px; }
  body.v2.next .nav { margin-left: 0; gap: .35rem; flex-wrap: nowrap; }
  body.v2.next .accent-picker { gap: .3rem; padding: 0; }
  body.v2.next .accent-dot, body.v2.next .accent-more-btn { width: 16px; height: 16px; }
  body.v2.next .sections a.section { padding: .34rem min(.5rem, 1.4vw); font-size: min(.78rem, 2.9vw); }
  body.v2.next .top-nav { width: calc(100% - 1.5rem); row-gap: .3rem; }
  body.v2.next .tabs a.tab:not(.tab-deals) { padding: .38rem min(.6rem, 2vw); font-size: min(.88rem, 3.5vw); }
  body.v2.next .tabs a.tab-deals { font-size: 0; padding-inline: .45rem; } /* « Bons plans » : l'étiquette seule, comme sur le site */
  body.v2.next .sport-grid { gap: .75rem; margin-top: 1.5rem; }
  body.v2.next a.sport-tile { border-radius: 20px; }
  body.v2.next .site-footer { width: calc(100% - 1.5rem); }
}
