/* =========================================================
   HI-TECH — General High-Tech, The House of Technology
   Feuille de style principale (mobile-first)
   ========================================================= */

:root {
  --teal-900: #031d21;
  --teal-800: #062a30;
  --teal-700: #0a3a41;
  --teal-600: #0d5a62;
  --teal-500: #12a8a6;
  --teal-400: #1fc8c3;
  --teal-300: #6fe3dd;
  --teal-100: #dff7f5;
  --ink: #0d1b1e;
  --ink-soft: #4a5d61;
  --line: #e2ecec;
  --bg: #f5fafa;
  --surface: #ffffff;
  --hot: #ff7a1a;
  --wa: #25d366;
  --tile: #f5f5f7;         /* fond des photos produit, style Apple/Samsung */
  --tile-ink: #86868b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(3, 40, 45, .25);
  --shadow-lg: 0 30px 60px -20px rgba(3, 40, 45, .45);
  --font: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Orbitron", var(--font);
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; }   /* sections visibles sous l'en-tête fixe */
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55;
  color: var(--ink); background: var(--bg); overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico--xl { width: 54px; height: 54px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; line-height: 1; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--teal-400), var(--teal-500)); color: #022024; box-shadow: 0 8px 20px -8px rgba(18, 168, 166, .8); }
.btn--dark { background: var(--teal-800); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--outline { border-color: var(--teal-500); color: var(--teal-600); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--sm { padding: .6em 1em; font-size: .92rem; }
.btn--icon { padding: .6em; aspect-ratio: 1; }
.btn--block { width: 100%; }
.btn.is-disabled { opacity: .45; pointer-events: none; }

/* ---------- Barre d'annonce ---------- */
.topbar { background: var(--teal-900); color: var(--teal-300); font-size: .88rem; }
.topbar .container { display: flex; justify-content: center; gap: 24px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar__hide { display: none; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 42, 48, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .6); }
.header__inner { display: flex; align-items: center; gap: 16px; height: 70px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 46px; width: auto; }
.nav { display: none; }
.nav a { padding: 8px 4px; font-weight: 600; opacity: .85; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 2px; background: var(--teal-400); border-radius: 2px; }
.search-form { display: none; flex: 1; max-width: 340px; margin-left: auto; position: relative; }
.search-form input {
  width: 100%; padding: 10px 16px 10px 40px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .08); color: #fff;
}
.search-form input::placeholder { color: rgba(255, 255, 255, .55); }
.search-form svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; opacity: .7; }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 0; }
.cart-btn:hover { background: rgba(255, 255, 255, .16); }
.cart-btn__count {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--hot); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}
.cart-btn__count[hidden] { display: none; }
.cart-btn__count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 50% { transform: scale(1.4); } }
.header__wa { display: none; }
.burger { width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, .08); border-radius: 50%; display: grid; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }
.nav.is-open {
  display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
  background: var(--teal-800); padding: 12px 16px 20px; gap: 4px; border-top: 1px solid rgba(255, 255, 255, .08);
}
.nav.is-open a { padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(31, 200, 195, .55), transparent 60%),
    radial-gradient(700px 600px at 90% 90%, rgba(18, 168, 166, .45), transparent 60%),
    linear-gradient(160deg, #0b4d55 0%, var(--teal-800) 55%, var(--teal-900) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background:
    repeating-radial-gradient(circle at 0% 100%, transparent 0 38px, rgba(255, 255, 255, .06) 39px 40px);
}
.hero__inner { display: grid; gap: 24px; padding: 48px 0 0; align-items: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .85rem; font-weight: 600; letter-spacing: .03em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-300); box-shadow: 0 0 0 4px rgba(111, 227, 221, .25); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 7vw, 3.8rem); font-weight: 800; margin: 18px 0 14px; letter-spacing: .01em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--teal-300), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.12rem; opacity: .88; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.hero__services { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.hero__services span { font-family: var(--font-display); font-size: .78rem; letter-spacing: .12em; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; }
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__photo { position: relative; margin: 0 0 40px; width: min(360px, 88%); border-radius: 26px; padding: 6px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transform: rotate(1.5deg); }
.hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 968 / 1280; object-fit: cover; object-position: 50% 30%; border-radius: 20px; }
.hero__photo figcaption { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 999px; background: rgba(6, 40, 45, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: .78rem; font-weight: 600; text-align: center; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  background: rgba(255, 255, 255, .95); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg);
  font-size: .85rem; line-height: 1.2; animation: float 5s ease-in-out infinite;
}
.float-card img { width: 46px; height: 46px; border-radius: 10px; object-fit: contain; background: var(--tile); }
.float-card strong { display: block; font-size: .95rem; }
.float-card--a { left: 0; top: 6%; }
.float-card--b { right: 0; bottom: 30%; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Bandeau marques ---------- */
.marquee { background: var(--teal-900); color: rgba(255, 255, 255, .7); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scroll 30s linear infinite; font-family: var(--font-display); font-size: .95rem; letter-spacing: .2em; }
.marquee__track span::after { content: "◆"; margin-left: 56px; color: var(--teal-400); font-size: .6rem; vertical-align: middle; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--surface); }
.section--dark { background: linear-gradient(160deg, var(--teal-800), var(--teal-900)); color: #fff; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.kicker { display: inline-block; font-family: var(--font-display); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-500); margin-bottom: 8px; }
.section--dark .kicker { color: var(--teal-300); }
.section__title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; margin: 0; }
.section__sub { color: var(--ink-soft); max-width: 40em; margin: 8px 0 0; }
.section--dark .section__sub { color: rgba(255, 255, 255, .75); }

/* ---------- Catégories ---------- */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cat {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 12px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-300); }
.cat__media { width: 100%; aspect-ratio: 1.25; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: var(--tile); color: var(--tile-ink); margin-bottom: 8px; }
.cat__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.cat:hover .cat__media img { transform: scale(1.05); }
.cat__label { font-weight: 700; font-size: 1.05rem; }
.cat__count { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Onglets ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab, .chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .93rem; transition: .2s;
}
.tab:hover, .chip:hover { border-color: var(--teal-400); }
.tab.is-active, .chip.is-active { background: var(--teal-800); color: #fff; border-color: var(--teal-800); }
.chip .ico { width: 16px; height: 16px; }

/* ---------- Cartes produit ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product__media { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: var(--tile); overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.product:hover .product__media img { transform: scale(1.04); }
.media-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--tile-ink); background: var(--tile); }
.media-ph .ico { width: 34%; height: auto; stroke-width: 1; }
.media-ph span { font-family: var(--font-display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.media-ph--sm span { display: none; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: #fff; color: var(--teal-700); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .3); }
.badge--hot { background: var(--hot); color: #fff; }
.badge--new { background: var(--teal-900); color: var(--teal-300); }
.badge--out { background: #444; color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.badge--refurb { background: #fff3c4; color: #7a5b00; }
.product__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.product__cat { font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.product__name { font-size: 1.02rem; margin: 0; }
.product__name button { background: none; border: 0; padding: 0; text-align: left; font-weight: 700; }
.product__name button:hover { color: var(--teal-600); }
.product__from { font-size: .78rem; color: var(--ink-soft); margin-top: 2px; }
.product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 2px 0 10px; }
.product__price strong { color: var(--teal-600); font-size: 1.05rem; }
.product__price s { color: var(--ink-soft); font-size: .85rem; }
.product__price--lg strong { font-size: 1.6rem; }
.product__actions { display: flex; gap: 8px; margin-top: auto; }
.product__actions .btn--primary { flex: 1; }

/* ---------- Services ---------- */
.services { display: grid; gap: 16px; }
.service {
  position: relative; padding: 28px 24px; border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .09); border-color: var(--teal-400); }
.service__num { position: absolute; right: 18px; top: 10px; font-family: var(--font-display); font-size: 3.4rem; font-weight: 800; color: rgba(255, 255, 255, .06); }
.service__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-400), var(--teal-500)); color: #022024; margin-bottom: 18px; }
.service__icon .ico { width: 28px; height: 28px; }
.service h3 { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .1em; }
.service p { color: rgba(255, 255, 255, .75); }
.service ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: .95rem; }
.service li::before { content: "✓"; color: var(--teal-300); margin-right: 8px; font-weight: 700; }
.service a.link { color: var(--teal-300); font-weight: 700; }
.service a.link:hover { text-decoration: underline; }

/* ---------- Échange / Réparation ---------- */
.split { display: grid; gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px; box-shadow: var(--shadow); }
.panel--teal { background: linear-gradient(150deg, var(--teal-500), var(--teal-700)); color: #fff; border: 0; }
.panel h3 { font-size: 1.5rem; }
.panel--teal p { opacity: .9; }
.steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: flex; gap: 12px; align-items: flex-start; counter-increment: s; }
.steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-weight: 700; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .93rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--teal-400); box-shadow: 0 0 0 4px rgba(31, 200, 195, .2); }
.panel--teal .field input, .panel--teal .field select { background: rgba(255, 255, 255, .95); border-color: transparent; }
.trade-result { padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, .18); font-size: 1.05rem; }
.trade-result strong { font-size: 1.2rem; }
.note { font-size: .82rem; opacity: .75; margin: 0; }

/* ---------- Atouts ---------- */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.perk { padding: 22px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.perk__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-600); margin-bottom: 12px; font-size: 1.4rem; }
.perk h3 { font-size: 1.05rem; margin-bottom: 4px; }
.perk p { color: var(--ink-soft); font-size: .93rem; margin: 0; }

/* ---------- Statistiques ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 6vw, 2.8rem); color: var(--teal-300); }
.stat span { color: rgba(255, 255, 255, .75); }

/* ---------- Avis ---------- */
.reviews { display: grid; gap: 16px; }
.review { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.review__stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 8px; }
.review p { font-size: 1.02rem; }
.review__who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-400), var(--teal-600)); color: #fff; font-weight: 700; }
.review__who small { display: block; color: var(--ink-soft); }

/* ---------- Bannière ---------- */
.promo-banner { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.promo-banner img { width: 100%; min-height: 120px; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: none; border: 0; text-align: left; font-weight: 700; font-size: 1.02rem; }
.faq__q::after { content: "+"; font-size: 1.5rem; color: var(--teal-500); transition: transform .25s; }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq__a p { padding: 0 20px 18px; margin: 0; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 20px; }
.contact__cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.contact-card .ico { width: 26px; height: 26px; color: var(--teal-300); margin-top: 2px; }
.contact-card strong { display: block; margin-bottom: 2px; }
.contact-card a:hover { color: var(--teal-300); }
.contact-card p { margin: 0; color: rgba(255, 255, 255, .8); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 320px; border: 1px solid rgba(255, 255, 255, .12); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Pied de page ---------- */
.footer { background: var(--teal-900); color: rgba(255, 255, 255, .75); padding: 56px 0 24px; }
.footer__grid { display: grid; gap: 32px; }
.footer img { height: 52px; width: auto; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--teal-300); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .88rem; }

/* ---------- WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 25px -6px rgba(37, 211, 102, .7);
}
.wa-float .ico { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2s infinite; }
@keyframes ping { to { transform: scale(1.6); opacity: 0; } }

/* ---------- Tiroir panier & modal ---------- */
.layer { position: fixed; inset: 0; z-index: 100; }
.layer[hidden] { display: none; }
.layer__backdrop { position: absolute; inset: 0; background: rgba(2, 20, 24, .6); opacity: 0; transition: opacity .25s; }
.layer.is-open .layer__backdrop { opacity: 1; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease);
}
.layer.is-open .drawer { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 1.3rem; }
.close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); font-size: 1.5rem; line-height: 1; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--bg); }
.drawer__total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.drawer__total strong { color: var(--teal-600); }
.drawer__foot .form-row { grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__foot .field input, .drawer__foot .field select { padding: 10px 12px; background: #fff; }
.drawer__foot .field label { font-size: .82rem; }
.link-btn { background: none; border: 0; color: var(--ink-soft); font-size: .88rem; text-decoration: underline; justify-self: center; }
.cart-empty { text-align: center; padding: 48px 0; color: var(--ink-soft); }
.cart-empty .ico { width: 56px; height: 56px; color: var(--teal-400); margin: 0 auto 12px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line__media { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--tile); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__media .ico { width: 34px; }
.cart-line__info { display: flex; flex-direction: column; gap: 2px; font-size: .93rem; }
.cart-line__price { color: var(--teal-600); font-weight: 700; }
.cart-line__remove { border: 0; background: none; font-size: 1.4rem; color: var(--ink-soft); align-self: start; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; width: max-content; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--bg); font-weight: 700; }

.modal { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal__box {
  position: relative; width: min(920px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface);
  border-radius: 24px; pointer-events: auto; transform: translateY(20px) scale(.97); opacity: 0; transition: .3s var(--ease);
}
.layer.is-open .modal__box { transform: none; opacity: 1; }
.modal__box > .close { position: absolute; right: 12px; top: 12px; z-index: 2; }
.pm { display: grid; }
.pm__media { position: relative; aspect-ratio: 1.2; background: var(--tile); }
.pm__media img { width: 100%; height: 100%; object-fit: contain; }
.pm__info { padding: 24px; }
.pm__info h2 { font-size: 1.7rem; margin-top: 4px; }
.pm__opts { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pm__opts legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.chip-radio input { position: absolute; opacity: 0; }
.chip-radio span { display: inline-block; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 600; font-size: .92rem; cursor: pointer; transition: .2s; }
.chip-radio input:checked + span { border-color: var(--teal-500); background: var(--teal-100); color: var(--teal-700); }
.chip-radio input:focus-visible + span { outline: 3px solid var(--teal-400); }
.pm__perks { list-style: none; padding: 0; margin: 0 0 20px; color: var(--teal-600); font-size: .93rem; display: grid; gap: 4px; }
.pm__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 30px); opacity: 0;
  background: var(--teal-900); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: .3s var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Page boutique ---------- */
.page-hero { background: linear-gradient(160deg, #0b4d55, var(--teal-900)); color: #fff; padding: 44px 0 36px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 5vw, 2.6rem); margin: 6px 0; }
.page-hero p { opacity: .8; margin: 0; }
.crumbs { font-size: .88rem; opacity: .75; }
.crumbs a:hover { text-decoration: underline; }
.shop-tools { position: sticky; top: 70px; z-index: 20; background: rgba(245, 250, 250, .95); backdrop-filter: blur(10px); padding: 14px 0; border-bottom: 1px solid var(--line); }
.shop-tools__row { display: grid; gap: 10px; }
.shop-search { position: relative; }
.shop-search input { width: 100%; padding: 12px 16px 12px 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.shop-search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.shop-selects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shop-selects select { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; }
.chips--series { margin-top: 6px; }
.chips--series[hidden] { display: none; }
.chip--sm { padding: 5px 12px; font-size: .85rem; background: var(--teal-100); border-color: transparent; color: var(--teal-700); }
.chip--sm.is-active { background: var(--teal-500); color: #fff; border-color: var(--teal-500); }
.shop-meta { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 16px; }
.shop-meta h2 { margin: 0; font-size: 1.4rem; }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--ink-soft); display: grid; justify-items: center; gap: 16px; }

/* ---------- Cartes produit façon samsung.com ---------- */
.product { background: #f4f4f4; border: 0; border-radius: 22px; }
.product:hover { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .35); }
.product__media { background: transparent; aspect-ratio: 1.05; }
.product__visual { display: block; width: 100%; height: 100%; }
.product__visual > img { width: 100%; height: 100%; object-fit: contain; }
.float-card__media img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.render { width: 100%; height: 100%; display: block; transition: transform .5s var(--ease); }
.product:hover .render { transform: scale(1.03); }
.product__body { padding: 4px 18px 20px; gap: 10px; }
.product__name { font-size: 1.15rem; }
.product__name button { font-weight: 700; }
.pick__label { font-size: .85rem; color: var(--ink-soft); margin-bottom: -4px; }
.pick__label span { color: var(--ink); font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; padding: 2px; }
.swatch { width: 24px; height: 24px; border-radius: 50%; padding: 0; border: 1px solid rgba(0, 0, 0, .18); background: var(--c);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); transition: transform .15s; }
.swatch:hover { transform: scale(1.12); }
.swatch.is-active { outline: 2px solid #000; outline-offset: 2px; }
.caps { display: flex; flex-wrap: wrap; gap: 6px; }
.cap { padding: 5px 10px; border-radius: 8px; border: 1.5px solid transparent; background: none; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.cap:hover { color: var(--ink); }
.cap.is-active { border-color: #000; color: #000; background: #fff; }
.product__price { margin: 2px 0 0; }
.product__price strong { color: var(--ink); font-size: 1.15rem; }
.product__from { width: 100%; font-size: .78rem; color: var(--ink-soft); }
.product__actions { flex-direction: column; gap: 8px; }
.btn--black { background: #000; color: #fff; width: 100%; }
.product .btn { padding: .75em 1em; font-size: .95rem; }
.product__price { gap: 0 8px; }
.btn--black:hover { background: #222; }
.btn--line { border: 1.5px solid #000; color: #000; width: 100%; background: transparent; }
.btn--line:hover { background: #000; color: #fff; }
.pm__media { background: #f4f4f4; }
.pm .swatches, .pm .caps { margin-bottom: 14px; }
.pm .pick__label { margin-bottom: 8px; }
.cart-line__media .render { transform: none; }
.cat__media .render { transform: scale(1.08); }
.float-card__media { width: 52px; height: 52px; border-radius: 10px; background: #f4f4f4; overflow: hidden; flex: none; }

/* ---------- Crédits ---------- */
.credits { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; }
.credits th, .credits td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits th { background: var(--teal-800); color: #fff; font-weight: 600; }
.credits a { color: var(--teal-600); text-decoration: underline; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Barre de filtres : fixe seulement sur grand écran */
@media (max-width: 599px) { .shop-tools { position: static; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 600px) {
  .topbar__hide { display: inline; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .shop-tools__row { grid-template-columns: 1fr auto; align-items: center; }
  .shop-selects select { min-width: 150px; }
  .header__wa { display: inline-flex; }
}
@media (min-width: 900px) {
  .burger { display: none; }
  .nav { display: flex; gap: 22px; }
  .search-form { display: block; }
  .header__actions { margin-left: 0; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; padding-top: 64px; }
  .hero__text { padding-bottom: 64px; }
  .hero__inner { align-items: center; }
  .hero__photo { width: 100%; max-width: 400px; margin: 0 0 64px; }
  .products { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact { grid-template-columns: 1fr 1.2fr; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .pm { grid-template-columns: 1fr 1fr; }
  .pm__media { aspect-ratio: auto; min-height: 100%; }
  .pm__info { padding: 36px 32px; }
  .panel { padding: 36px 32px; }
  .section { padding: 96px 0; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(4, 1fr); }
  .perks { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 899px) {
  .header .search-form { display: none; }
}
