/* =========================================================
   Hemay — boutique d'appareils reconditionnés
   Couleurs du logo : bleu nuit #0B1426, turquoise #40E0D0, blanc cassé #F0EEE6.
   Turquoise = fonds et décors uniquement : jamais de texte turquoise sur fond clair,
   jamais de texte blanc sur turquoise (texte bleu nuit sur turquoise).
   ========================================================= */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B1426;
  --navy-2: #2A3550;
  --turq: #40E0D0;
  --turq-soft: #E3F9F6;
  --creme: #F0EEE6;
  --creme-doux: rgba(240, 238, 230, .84);
  --bg: #FFFFFF;
  --soft: #F5F6F8;
  --ink: #0B1426;
  --muted: #5B6472;
  --line: #E3E6EA;
  --ok: #17683F;
  --ok-soft: #E6F3EC;
  --error: #B3412E;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --g: 16px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.header__main :focus-visible, .footer :focus-visible, .toast :focus-visible { outline-color: var(--turq); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i--accent { color: var(--turq); }
.i--sm { width: 14px; height: 14px; }
mark.todo { background: #FFF3C4; color: #6B4E00; padding: 0 4px; border-radius: 4px; font-weight: 700; font-size: .9em; }
.petit { font-size: .85rem; color: var(--muted); }
.lien { background: none; border: 0; padding: 0; font-weight: 700; cursor: pointer; color: var(--navy); text-decoration: underline; text-decoration-color: var(--turq); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.no-scroll { overflow: hidden; }

/* ── BOUTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent;
  font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--turq); color: var(--navy); }
.btn--primary:hover:not(:disabled) { background: #D9732A; }
.btn--dark { background: var(--navy); color: var(--creme); }
.btn--dark:hover { background: #111827; }
.btn--line { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn--line:hover:not(:disabled) { background: var(--navy); color: var(--creme); }
.btn--xl { min-height: 56px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ── BANDE D'ANNONCE (disparaît au défilement : hors de l'en-tête collant) ── */
.annonce { background: var(--turq); color: var(--navy); text-align: center; font-size: .82rem; font-weight: 700; padding: 6px var(--g); line-height: 1.35; }

/* ── EN-TÊTE COLLANT : ligne principale + catégories ── */
.header { position: sticky; top: 0; z-index: 100; }
.header__main { background: var(--navy); color: var(--creme); }
.header__row { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo liens" "search search"; align-items: center; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { grid-area: logo; display: block; line-height: 0; border-radius: 6px; }
.logo img { display: block; width: auto; height: 46px; }
.liens { grid-area: liens; display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.liens__a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--creme); text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.liens__a:hover { background: rgba(240, 238, 230, .1); }
.liens__a .i { width: 22px; height: 22px; }
.liens__a--opt { display: none; }
.liens__n { font-variant-numeric: tabular-nums; }

.search { grid-area: search; position: relative; }
.search__box { display: flex; align-items: center; background: #fff; border: 2px solid transparent; border-radius: 12px; color: var(--ink); }
.search__box:focus-within { border-color: var(--turq); }
.search__box .i { margin-left: 14px; color: var(--navy); }
.search input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; background: none; font-size: 1rem; }
.search input:focus { outline: none; }
.search__sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 120; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(11, 20, 38, .35); padding: 6px; }
.search__sugg a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.search__sugg a:hover, .search__sugg a:focus { background: var(--soft); }

.cats { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.cats__ul { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cats__ul::-webkit-scrollbar { display: none; }
.cats__item > a { display: block; padding: 12px 12px 10px; border-bottom: 3px solid transparent; text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.cats__item > a:hover { color: var(--navy-2); border-bottom-color: var(--line); }
.cats__item > a[aria-current="page"] { border-bottom-color: var(--turq); }
.mega { display: none; }

/* ── SECTIONS ── */
.sec { padding: 40px 0; }
.sec--soft { background: var(--soft); }
.sec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec__head h2 { font-size: clamp(1.25rem, 4.4vw, 1.75rem); }

/* ── ACCUEIL ── */
.ban { background: var(--soft); }
.ban__in { display: grid; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.ban h1 { font-size: clamp(1.6rem, 6.4vw, 2.8rem); letter-spacing: -.035em; }
.ban p { color: var(--muted); margin-top: 4px; }
.ban .btn { justify-self: start; }

.sec--tuiles { padding: 14px 0 4px; }
.tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tuile { display: grid; justify-items: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: .78rem; text-align: center; line-height: 1.2; }
.tuile__img { width: 100%; aspect-ratio: 1; border-radius: 14px; background: var(--soft); display: grid; place-items: center; overflow: hidden; transition: background-color .15s; }
.tuile__img img { width: 82%; height: 82%; object-fit: contain; }
.tuile__img .i { width: 40%; height: 40%; }
.tuile:hover .tuile__img { background: var(--turq-soft); }

.sec--rangee { padding: 20px 0; }
.voir-plus { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--navy); white-space: nowrap; text-decoration: none; }
.voir-plus .i { width: 18px; height: 18px; transition: transform .15s; }
.voir-plus:hover .i { transform: translateX(3px); }
.rangee { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rangee::-webkit-scrollbar { display: none; }
.rangee > li { scroll-snap-align: start; }

.args { display: grid; grid-template-columns: 1fr; gap: 8px; }
.args a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.args a:hover { border-color: var(--navy); }
.args .i { width: 26px; height: 26px; }

.avis-moy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 1rem; }
.avis-moy strong { font-size: 1.2rem; }
.avis-moy span:last-child { color: var(--muted); }
.carrousel { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 360px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 8px; }
.avis { scroll-snap-align: start; display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.avis blockquote { margin: 0; font-size: 1.02rem; }
.avis__qui { font-size: .92rem; }
.avis__qui a { color: var(--navy); font-weight: 700; }
.stars { display: inline-flex; gap: 2px; }
.stars .i { width: 18px; height: 18px; fill: #D5D9DF; stroke: #D5D9DF; }
.stars .on .i { fill: var(--turq); stroke: var(--navy); }

.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq__chev { transition: transform .2s; }
.faq details[open] .faq__chev { transform: rotate(180deg); }
.faq details > div { padding: 0 18px 16px; color: var(--navy-2); }
.faq details > div p + p { margin-top: 8px; }

/* ── CARTES PRODUIT ── */
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .2s; }
article.pc:hover { border-color: var(--navy); box-shadow: 0 14px 30px -22px rgba(11, 20, 38, .55); }
.pc__img { position: relative; aspect-ratio: 1; background: var(--soft); display: block; }
.pc__img img, .pc__img svg { width: 100%; height: 100%; object-fit: contain; }
.tag { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 6px; font-size: .72rem; font-weight: 800; background: #fff; color: var(--navy); border: 1px solid var(--line); }
.tag--nouveau { background: var(--navy); color: var(--creme); border-color: var(--navy); }
.tag--dernier { background: var(--turq); color: var(--navy); border-color: var(--turq); }
.pc--reserve .pc__img { opacity: .6; }
.pc__body { display: flex; flex-direction: column; gap: 4px; padding: 10px; flex: 1; }
.pc__nom { font-weight: 800; font-size: .95rem; line-height: 1.25; }
.pc__lien { text-decoration: none; }
.pc__lien::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pc__lien:focus-visible { outline: none; }
.pc:has(.pc__lien:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.pc__det { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.pc__prix { margin-top: auto; padding-top: 6px; }
.prix { display: inline-block; white-space: nowrap; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.prix__e { font-size: 1.45rem; }
.prix sup { font-size: .72rem; vertical-align: top; position: relative; top: .1em; margin-left: 1px; letter-spacing: 0; line-height: 1; }
.pc__neuf { font-size: .76rem; color: var(--muted); }
.pc__btn { position: relative; z-index: 2; width: 100%; min-height: 40px; margin-top: 8px; padding: 0 10px; font-size: .88rem; border-radius: 10px; }
.pc__btn:disabled { background: var(--soft); color: var(--muted); opacity: 1; }
.pc__etat { align-self: flex-start; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.etat--parfait { background: var(--ok-soft); color: var(--ok); }
.etat--tres-bon { background: #E8F0FB; color: #1D4F91; }
.etat--correct { background: #F3F0E8; color: #6B5A2E; }
.eco { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: .85rem; }
.vide { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.vide a { font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--turq); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.sk { display: block; border-radius: 6px; background: linear-gradient(90deg, #EEF0F3 25%, #F7F8FA 50%, #EEF0F3 75%); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
.pc__img.sk { border-radius: 0; }
.sk--l { height: 12px; width: 90%; }
.sk--m { height: 12px; width: 50%; }
.sk--p { height: 22px; width: 40%; margin-top: 10px; }
.pc--sk { border-color: transparent; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── PAGE CATÉGORIE ── */
.cat { padding-top: 16px; padding-bottom: 48px; }
.cat h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
.cat__intro { color: var(--muted); margin-top: 6px; }
.cat__layout { display: grid; gap: 16px; margin-top: 16px; }
.outils { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.outils__nb { font-weight: 700; color: var(--muted); font-size: .92rem; margin-right: auto; }
.select { min-height: 44px; padding: 0 36px 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B1426' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-weight: 600; cursor: pointer; }
.btn-filtres { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--navy); border-radius: 10px; background: #fff; font-weight: 800; cursor: pointer; }

.filtres { position: fixed; inset: 0; z-index: 200; background: #fff; display: flex; flex-direction: column; transform: translateY(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
.filtres.is-open { transform: none; visibility: visible; }
.filtres__head { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--g); border-bottom: 1px solid var(--line); }
.filtres__head p { font-weight: 800; font-size: 1.15rem; }
.filtres__fermer { width: 44px; height: 44px; border: 0; background: var(--soft); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.filtres__fermer .i { width: 22px; height: 22px; }
.f-zone { flex: 1; overflow-y: auto; padding: 8px var(--g) 20px; display: grid; gap: 4px; align-content: start; }
.filtres__pied { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px var(--g) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.f-groupe { padding: 14px 0; border-bottom: 1px solid var(--line); }
.f-groupe legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.f-check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.f-check input { width: 20px; height: 20px; accent-color: var(--navy); }
.f-check small { margin-left: auto; color: var(--muted); }
.f-prix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-prix label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.f-prix input { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; width: 100%; color: var(--ink); }

/* ── FICHE PRODUIT ── */
.fiche { padding-top: 12px; padding-bottom: 40px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--navy); font-weight: 600; }
.pd { display: grid; gap: 20px; }
.gal__main { position: relative; border-radius: 18px; overflow: hidden; background: var(--soft); }
.gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: start; display: grid; place-items: center; }
.gal__slide img, .gal__slide svg { width: 100%; height: 100%; object-fit: contain; }
.gal__slide video { width: 100%; height: 100%; background: #000; }
.gal__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 20, 38, .8); color: var(--creme); font-size: .8rem; font-weight: 700; }
.gal__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; place-items: center; cursor: pointer; display: none; }
.gal__arrow .i { width: 22px; height: 22px; }
.gal__arrow--prev { left: 12px; }
.gal__arrow--next { right: 12px; }
.gal__thumbs { display: none; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gal__thumb { width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--soft); cursor: pointer; }
.gal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gal__thumb[aria-current] { border-color: var(--navy); }
.gal__thumb--video { display: grid; place-items: center; }

.pd__buy { display: grid; gap: 14px; align-content: start; }
.pd__det { margin-top: 6px; color: var(--muted); font-size: .92rem; }
.pd__titre { font-size: clamp(1.45rem, 5.6vw, 2.1rem); }
.var legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.var__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.var__opt { display: grid; gap: 2px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; font-size: .9rem; }
.var__opt small { color: var(--muted); font-weight: 600; }
a.var__opt:hover { border-color: var(--navy); }
.var__opt.is-on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--soft); }
.var__opt.is-off { color: var(--muted); background: var(--soft); border-style: dashed; cursor: not-allowed; }
.var__opt.is-off strong { text-decoration: line-through; text-decoration-color: var(--muted); }
.pd__infos { display: grid; gap: 6px; }
.pd__infos li { display: flex; gap: 8px; align-items: flex-start; }
.pd__infos .i { margin-top: 2px; }
.pd__prixbloc { display: grid; gap: 4px; padding-top: 4px; }
.pd__prix .prix__e { font-size: 2.6rem; letter-spacing: -.04em; }
.pd__prix .prix sup { font-size: 1.05rem; top: .25em; }
.pd__neuf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--muted); }
.pd__fois { font-weight: 700; color: var(--navy-2); }
.atouts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; }
.atout { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; font-size: .92rem; }
.atout + .atout { border-top: 1px solid var(--line); }
.atout > .i { margin-top: 1px; }
.atout small { display: block; color: var(--muted); font-size: .84rem; }
.atout a { color: inherit; }
.atout--details { display: block; padding: 0; }
.atout--details summary { display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 700; }
.atout--details summary::-webkit-details-marker { display: none; }
.atout--details summary span { flex: 1; }
.atout__chev { transition: transform .2s; }
details[open] .atout__chev { transform: rotate(180deg); }
.atout__tests { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 0 14px 14px 46px; }
.atout__tests li { display: flex; align-items: center; gap: 6px; }
.atout__tests .i { width: 16px; height: 16px; }
.pd__reserve { padding: 12px 14px; border-radius: 12px; background: var(--turq-soft); }
.pay { display: grid; gap: 8px; }
.pay--chips .pay__row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pay--chips .pay__opt { justify-content: center; padding: 10px 6px; gap: 0; font-weight: 800; }
.pay--chips .pay__opt span { justify-content: center; flex: none; }
.pay--chips .pay__opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay--chips .pay__opt:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.pay__detail { font-size: .92rem; color: var(--navy-2); font-weight: 600; }
.pay__detail:empty { display: none; }
.pay legend { font-weight: 800; margin-bottom: 6px; padding: 0; }
.pay__opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.pay__opt:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.pay__opt input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.pay__opt span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; flex: 1; }
.pay__opt small { color: var(--muted); font-weight: 600; font-size: .9rem; }
.pd__btns { display: grid; gap: 10px; }
.pd__erreur { color: var(--error); font-weight: 700; }
.pd__erreur:empty { display: none; }
.pd__secu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.paylogos { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.paylogos span { padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; font-size: .7rem; font-weight: 800; color: var(--navy); background: #fff; }
.pd__ailleurs { font-size: .8rem; color: var(--muted); }
.pd__ailleurs a { color: var(--muted); font-weight: 600; }
.pd__plus { display: grid; gap: 28px; margin-top: 32px; }
.pd__plus h2 { font-size: 1.35rem; margin-bottom: 12px; }
.pd__plus h3 { font-size: 1.02rem; margin: 18px 0 8px; }
.pd__desc { margin-top: 10px; }
.pd__liste { display: grid; gap: 4px; }
.pd__liste li { padding-left: 18px; position: relative; }
.pd__liste li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--turq); }
.pd__table { width: 100%; border-collapse: collapse; }
.pd__table th, .pd__table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pd__table th { color: var(--muted); font-weight: 600; width: 46%; padding-right: 10px; }
.pd__table td { font-weight: 700; }
.pd-vide { display: grid; gap: 14px; padding: 32px 0; justify-items: start; }
.pd-vide h1 { font-size: clamp(1.6rem, 6vw, 2.3rem); }
.barre-achat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(11, 20, 38, .5); }
.barre-achat:empty { display: none; }
.barre__prix { display: grid; font-size: 1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.barre__prix small { font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.barre-achat .btn { flex: 1; max-width: 240px; }
.page-produit { padding-bottom: 84px; }

.toast { position: fixed; left: 50%; bottom: 96px; z-index: 300; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; background: var(--navy); color: var(--creme); font-weight: 700; transition: opacity .2s, transform .25s var(--ease); max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--turq); }

/* ── PANIER ── */
.panier { padding-top: 20px; padding-bottom: 48px; }
.panier h1 { font-size: clamp(1.6rem, 6vw, 2.3rem); margin-bottom: 16px; }
.panier__layout { display: grid; gap: 20px; align-items: start; }
.info { padding: 12px 14px; border-radius: 12px; background: var(--turq-soft); font-weight: 600; margin-bottom: 14px; }
.lignes { display: grid; gap: 10px; }
.ligne { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); }
.ligne__img { width: 80px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--soft); }
.ligne__img img, .ligne__img svg { width: 100%; height: 100%; object-fit: contain; }
.ligne__txt { display: grid; gap: 2px; align-content: start; font-size: .92rem; }
.ligne__txt a { text-decoration: none; }
.ligne__alerte { color: var(--navy); font-weight: 700; }
.ligne__fin { grid-column: 2; display: flex; justify-content: space-between; align-items: center; }
.ligne__fin strong { font-size: 1.2rem; }
.resume { display: grid; gap: 14px; padding: 20px; border-radius: 18px; background: var(--soft); }
.resume h2 { font-size: 1.25rem; }
.recap { display: grid; gap: 8px; }
.recap div { display: flex; justify-content: space-between; }
.recap dd { font-weight: 700; }
.recap__total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.15rem; font-weight: 800; }

/* ── PAGES DE TEXTE ── */
.page-txt { padding-top: 24px; padding-bottom: 56px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(1.7rem, 6vw, 2.5rem); margin-bottom: 8px; }
.prose .maj { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.prose h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.prose h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.prose p, .prose li { color: var(--navy-2); }
.prose p + p { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 20px; margin: 8px 0; display: grid; gap: 4px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--turq); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.encadre { margin: 16px 0; padding: 18px 20px; border-radius: 14px; background: var(--soft); border-left: 4px solid var(--navy); }
.encadre p { font-size: .95rem; }
.lead { font-size: 1.1rem; }

/* ── RÉPARATION ── */
.rep-top { padding: 20px 0 8px; }
.rep-top h1 { font-size: clamp(1.7rem, 6.4vw, 2.6rem); }
.puces { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-weight: 700; color: var(--navy-2); font-size: .92rem; }
.puces li { display: inline-flex; align-items: center; gap: 6px; }
.tarifs { display: grid; gap: 14px; }
.tarif { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #fff; }
.tarif h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tarif h2 .i { width: 28px; height: 28px; }
.tarif table { width: 100%; border-collapse: collapse; }
.tarif td, .tarif th { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tarif th { font-weight: 700; }
.tarif th small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }
.tarif td { text-align: right; font-weight: 800; white-space: nowrap; padding-left: 10px; }
.etapes { display: grid; gap: 12px; counter-reset: e; }
.etapes li { position: relative; padding: 16px 16px 16px 60px; border-radius: 14px; background: #fff; border: 1px solid var(--line); counter-increment: e; }
.etapes li::before { content: counter(e); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--creme); font-weight: 800; display: grid; place-items: center; }
.form { display: grid; gap: 14px; max-width: 680px; }
.champ { display: grid; gap: 6px; }
.champ[hidden] { display: none; }
.champ > label, .champ > legend { font-weight: 700; padding: 0; }
.champ input:not([type="radio"]):not([type="checkbox"]), .champ select, .champ textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #CBD0D7; border-radius: 12px; background: #fff; }
.champ textarea { min-height: 110px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(64, 224, 208, .45); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.choix { display: grid; gap: 8px; }
.choix label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.choix input { width: 20px; height: 20px; accent-color: var(--navy); }
.choix--col label { align-items: flex-start; }
.choix--col input { margin-top: 2px; flex: none; }
.choix label:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.choix span { font-size: .92rem; color: var(--navy-2); }
.choix strong { color: var(--ink); }
.prose + .form, .form + .prose { margin-top: 28px; }
.form__ok { padding: 16px 18px; border-radius: 14px; background: var(--turq-soft); border-left: 4px solid var(--turq); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--navy-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.form__statut { font-weight: 700; }
.form__statut.is-error { color: var(--error); }
.form__statut.is-ok { color: var(--ok); }
.piege { position: absolute; left: -9999px; }
.form .petit a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--turq); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ── PIED DE PAGE ── */
.footer { margin-top: 24px; background: var(--navy); color: var(--creme-doux); font-size: .92rem; }
.footer__in { display: grid; gap: 26px; padding-top: 36px; padding-bottom: 28px; }
.footer .logo { display: inline-block; margin-bottom: 14px; }
.footer .logo img { height: 52px; }
.footer h2 { color: var(--creme); font-size: .95rem; margin-bottom: 10px; letter-spacing: 0; }
.footer ul { display: grid; gap: 6px; }
.footer a { color: var(--creme-doux); text-decoration: none; }
.footer a:hover { color: var(--creme); text-decoration: underline; text-decoration-color: var(--turq); }
.footer .lien { color: var(--creme-doux); font-weight: 400; text-decoration: none; font-size: inherit; }
.footer .lien:hover { color: var(--creme); text-decoration: underline; text-decoration-color: var(--turq); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer__bas { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid rgba(240, 238, 230, .14); font-size: .82rem; }
.footer .paylogos span { background: transparent; color: var(--creme); border-color: rgba(240, 238, 230, .3); }

/* ── BANDEAU COOKIES ── */
.cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 400; display: grid; gap: 12px; max-width: 560px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px -16px rgba(11, 20, 38, .45); }
.cookies[hidden] { display: none; }
.cookies__txt { font-size: .9rem; color: var(--navy-2); }
.cookies__txt strong { display: block; color: var(--ink); margin-bottom: 4px; }
.cookies__txt a { font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--turq); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cookies__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.page-produit .cookies { bottom: 84px; }

/* ── 404 ── */
.e404 { padding-top: 56px; padding-bottom: 56px; display: grid; gap: 14px; justify-items: start; }

/* =========================================================
   TABLETTE / ORDINATEUR
   ========================================================= */
@media (max-width: 639px) {
  .outils__nb { width: 100%; }
  .outils .select { flex: 1; }
}

@media (min-width: 640px) {
  :root { --g: 24px; }
  .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .pc__body { padding: 14px 16px 16px; }
  .tuiles { gap: 14px; }
  .tuile { font-size: .92rem; }
  .rangee { grid-auto-columns: 31%; gap: 14px; }
  .args { grid-template-columns: 1fr 1fr; }
  .ligne { grid-template-columns: 96px 1fr auto; align-items: center; }
  .ligne__img { width: 96px; height: 96px; }
  .ligne__fin { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 6px; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
  .tarifs { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  html { scroll-padding-top: 160px; }
  .header__row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search liens"; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
  .logo img { height: 56px; }
  .liens__a--opt { display: inline-flex; }
  .search input { height: 46px; }
  .cats__ul { overflow: visible; gap: 8px; }
  .cats__item > a { padding: 12px 14px 10px; }
  /* Méga-menu au survol */
  .mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(11, 20, 38, .45); }
  .cats__item:hover > .mega, .cats__item:focus-within > .mega { display: block; }
  .cats__item:hover > a { border-bottom-color: var(--navy); }
  .mega__in { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-top: 20px; padding-bottom: 24px; }
  .mega__info { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 12px; background: var(--soft); text-decoration: none; }
  .mega__info strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .mega__info-l { display: flex; align-items: center; gap: 8px; font-weight: 800; }
  .mega__info small { color: var(--muted); }
  .mega__info:hover .mega__info-l { text-decoration: underline; }
  .mega__tuiles { display: grid; grid-template-columns: repeat(auto-fill, 150px); gap: 16px; }
  .mega__tuile { display: grid; gap: 8px; justify-items: center; text-decoration: none; font-weight: 700; font-size: .9rem; text-align: center; }
  .mega__img { width: 120px; height: 120px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
  .mega__img img { width: 88%; height: 88%; object-fit: contain; }
  .mega__img .i { width: 40px; height: 40px; }
  .mega__tuile:hover .mega__img { background: var(--turq-soft); }
  .mega__tuile:hover > span:last-child { text-decoration: underline; }
  .sec { padding: 48px 0; }
  .sec--rangee { padding: 28px 0; }
  .ban__in { grid-template-columns: 1fr auto; align-items: center; padding-top: 28px; padding-bottom: 28px; }
  .tuiles { max-width: 560px; }
  .rangee { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; gap: 18px; }
  .rangee > li:nth-child(n+5) { display: none; }
  .args { grid-template-columns: repeat(4, 1fr); }
  .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .prix__e { font-size: 1.6rem; }
  .cat__layout { grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
  .btn-filtres, .filtres__head, .filtres__pied #voir-resultats { display: none; }
  .filtres { position: sticky; top: 150px; inset: auto; z-index: 1; transform: none; visibility: visible; transition: none; max-height: calc(100vh - 170px); }
  .f-zone { padding: 0; overflow-y: auto; }
  .filtres__pied { display: block; padding: 12px 0 0; border: 0; }
  .no-scroll { overflow: auto; }
  .pd { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .pd__buy { position: sticky; top: 150px; }
  .gal__arrow { display: block; }
  .gal__thumbs { display: flex; }
  .pd__btns { grid-template-columns: 1.4fr 1fr; }
  .pd__plus { grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
  .barre-achat { display: none; }
  .page-produit { padding-bottom: 0; }
  .page-produit .cookies { bottom: 12px; }
  .toast { bottom: 24px; }
  .panier__layout { grid-template-columns: 1fr 380px; gap: 32px; }
  .resume { position: sticky; top: 150px; }
  .footer__in { grid-template-columns: 1fr 3fr; }
  .tarifs { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.sk--carre { aspect-ratio: 1; }
[hidden] { display: none !important; }
