/* =============================================================================
   NFCLINKPRO — Frontend (4004) — Styles
   Design system : reproduction fidèle du site de référence « Carte Biz »
   Couleurs : Primary #007bff · Text #24272d · Panel #E6F1F7 · Success #5BA238
   Typo : Poppins (titres + texte)
   ============================================================================= */

/* ─────────────────────────────────────────────────────────────────────────────
   POLICE AUTO-HÉBERGÉE (correctif P2-T8 → recommandation 🔴 P1)
   Poppins 300→800, subsets `latin` + `latin-ext` (œ), fichiers `assets/fonts/`
   générés par `scripts/build-fonts.sh`. Remplace la feuille de style EXTERNE
   Google Fonts (render-blocking — cause prouvée de la bimodalité du LCP).
   `font-display: swap` : le texte s'affiche immédiatement (repli système) puis
   se substitue — aucune page en « FOIT ». `unicode-range` : le navigateur ne
   télécharge le subset `latin-ext` QUE si un glyphe le requiert (ex. « œ »).
   ───────────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-ext-300.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-ext-800.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary: #007bff;
  --primary-hover: #0069d9;
  --text: #24272d;
  --muted: #6c757d;
  --surface: #ffffff;
  --panel: #e6f1f7;
  --border: #eaeaec;
  --success: #5ba238;
  --danger: #b00c0c;
  --dark: #0f172a;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(36, 39, 45, .08), 0 8px 24px rgba(36, 39, 45, .08);
  --font: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.15; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, 92%); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 50;
  background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(36, 39, 45, .04);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 700; }
.brand-logo { border-radius: 6px; }
.brand-name { font-size: 1.05rem; }
.main-nav { display: flex; gap: 1.4rem; margin-inline: auto; }
.main-nav a { color: var(--text); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: .75rem; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-weight: 600; border: 1px solid transparent; border-radius: var(--radius);
  padding: .66rem 1.3rem; cursor: pointer; font-size: .95rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:focus-visible { outline: 3px solid rgba(0, 123, 255, .35); outline-offset: 2px; }
.btn-cta { background: var(--primary); color: #fff; }
.btn-cta:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); }
.btn-cta:disabled { opacity: .6; cursor: not-allowed; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }
.btn-google { background: #fff; color: var(--text); border-color: var(--border); box-shadow: var(--shadow); }
.btn-google:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; color: var(--text); cursor: pointer; position: relative;
  transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--panel); border-color: var(--primary); }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  border-radius: 999px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.nav-loading { color: var(--muted); font-size: .9rem; }
.nav-user { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; }
.nav-avatar { border-radius: 50%; }
.nav-user-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Anti-CLS (chantier P2-T6, axe F) ─────────────────────────────────────────
   `app.js` hydrate l'en-tête APRÈS le premier rendu : `#auth-nav` passe de
   « Chargement… » (span nu) au bouton « Se connecter » (`.btn`, plus large et plus
   haut). Sans réserve d'espace, la hauteur du header change et **tout le `<main>`
   se décale** — CLS ≈ 0,21 mesuré au Lighthouse mobile (page sans JS : CLS = 0).
   On réserve donc, dès le premier rendu, la MÊME boîte que le bouton final : la
   largeur (`min-width`) empêche la ligne de l'en-tête de se replier quand le bouton
   apparaît, et la hauteur (`min-height`) fige la rangée. L'hydratation ne déplace
   alors plus rien. */
.auth-nav {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 150px;
  min-height: 46px;
}
.auth-nav .btn { white-space: nowrap; }

/* ── Menu utilisateur (avatar → menu déroulant au survol) ─────────────────── */
.user-menu { position: relative; display: inline-flex; }
.user-menu-trigger {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: .95rem; color: var(--text);
  padding: .3rem .45rem; border-radius: 999px; transition: background .15s;
}
.user-menu-trigger:hover, .user-menu-trigger:focus-visible { background: var(--panel); }
.nav-avatar--fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: .9rem;
}
.user-menu-caret { transition: transform .15s; flex-shrink: 0; }
.user-menu-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(36, 39, 45, .14); padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s; z-index: 30;
}
.user-menu:hover .user-menu-dropdown,
.user-menu:focus-within .user-menu-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu:hover .user-menu-caret,
.user-menu:focus-within .user-menu-caret { transform: rotate(180deg); }
.user-menu-item {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .6rem .8rem; border: none; background: transparent;
  font-family: var(--font); font-size: .92rem; font-weight: 600; color: var(--text);
  text-align: left; cursor: pointer; border-radius: 6px; text-decoration: none;
  transition: background .15s, color .15s;
}
.user-menu-item:hover, .user-menu-item:focus-visible { background: var(--panel); color: var(--primary); }
.user-menu-logout { color: var(--danger); }
.user-menu-logout:hover, .user-menu-logout:focus-visible { background: #fdecec; color: var(--danger); }

/* ── Page « Mes commandes » ───────────────────────────────────────────────── */
.orders-page { padding: 2.5rem 0 3.5rem; min-height: 55vh; }
.orders-empty--auth { text-align: center; padding: 2rem 1rem; }
.orders-empty--auth p { color: var(--muted); margin-bottom: 1rem; }
.orders-empty--auth .btn { display: inline-flex; align-items: center; gap: .5rem; }
.order-shipping { font-size: .82rem; color: var(--muted); margin-top: .45rem; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { background: #fff; padding: 3rem 0 4rem; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-title { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; line-height: 1.1; }
.hero-title .dot { color: var(--primary); }
.hero-sub { margin-top: 1.1rem; font-size: 1.12rem; color: #3a3f46; }
.hero-cta { margin-top: 1.6rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.4rem; }
.hero-points li { display: flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--muted); font-weight: 500; }
.hero-points li::before { content: "✓"; color: var(--success); font-weight: 700; }
.hero-figure { display: flex; justify-content: center; }
.hero-figure img { border-radius: 16px; box-shadow: var(--shadow); }

/* ── Marquee ─────────────────────────────────────────────────────────────── */
.marquee-section { padding: 2rem 0; border-top: 1px solid var(--border); }
.marquee-title { text-align: center; font-size: 1.3rem; font-weight: 700; margin-bottom: 1.2rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 22s linear infinite; }
.marquee-track span { font-size: 1.1rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.marquee-track span::before { content: "•"; color: var(--primary); margin-right: .6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Sections communes ───────────────────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: .6rem; }
.badge {
  display: inline-block; background: var(--panel); color: var(--primary); font-weight: 600;
  font-size: .8rem; padding: .25rem .7rem; border-radius: 999px;
}
.muted { color: var(--muted); }

/* ── Bénéfices ───────────────────────────────────────────────────────────── */
.benefits { padding: 4rem 0; background: var(--panel); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.benefit { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow); }
.benefit-num { font-size: 2.2rem; font-weight: 800; color: var(--primary); opacity: .35; }
.benefit h3 { margin-top: .4rem; font-size: 1.1rem; }
.benefit p { margin-top: .5rem; color: var(--muted); font-size: .92rem; }

/* ── Commandes (page « Mes commandes ») ──────────────────────────────────── */
.orders { display: flex; flex-direction: column; gap: .9rem; }
.order-card {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.3rem;
}
.order-sku { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.order-name { font-weight: 600; }
.order-items { list-style: none; margin-top: .4rem; }
.order-item { font-size: .88rem; color: var(--muted); }
.order-date { font-size: .82rem; color: var(--muted); margin-top: .5rem; }
.order-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.order-amount { font-weight: 700; font-size: 1.1rem; }
.status-pill { font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; }
.status-paid { background: rgba(91, 162, 56, .15); color: var(--success); }
.status-pending { background: rgba(217, 119, 6, .15); color: #d97706; }
.status-neutral { background: var(--panel); color: var(--muted); }

/* ── Catalogue / produits ────────────────────────────────────────────────── */
.catalog-section { padding: 4rem 0; }
.family-filter { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.family-tab {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; font-family: var(--font);
  font-weight: 600; font-size: .9rem; transition: all .15s;
}
.family-tab:hover { border-color: var(--primary); color: var(--primary); }
.family-tab[aria-selected="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.catalog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(36, 39, 45, .12); }
.product-thumb { aspect-ratio: 1 / 1; background: #f4f6f8; display: flex; align-items: center; justify-content: center; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback { color: var(--muted); font-weight: 700; font-size: 1rem; }
.product-card .product-family {
  position: static; margin: .9rem 1.1rem 0; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; color: var(--primary);
}
.product-name { margin: .3rem 1.1rem 0; font-size: 1.05rem; font-weight: 700; }
.product-desc { margin: .4rem 1.1rem; color: var(--muted); font-size: .88rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-top: 1px solid var(--border); }
.product-price { font-weight: 700; font-size: 1.05rem; }
.btn-buy { padding: .5rem 1rem; }

/* ── Témoignages ─────────────────────────────────────────────────────────── */
.testimonials { padding: 4rem 0; background: var(--panel); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testimonial { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.stars { color: #f1b51e; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial p { margin-top: .8rem; color: #3a3f46; font-size: .95rem; }
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; font-size: .88rem; color: var(--muted); }

/* ── Avantages ───────────────────────────────────────────────────────────── */
.advantages { padding: 4rem 0; }
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.advantage { border-left: 3px solid var(--primary); background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.advantage h3 { font-size: 1.05rem; }
.advantage p { margin-top: .5rem; color: var(--muted); font-size: .9rem; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-section { padding: 4rem 0; }
.faq { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: .7rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 1rem 1.3rem; font-weight: 600; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ── Panier (drawer) ─────────────────────────────────────────────────────── */
.cart-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 40; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: #fff; z-index: 50; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease; box-shadow: -12px 0 32px rgba(36,39,45,.15);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--border); }
.cart-title { font-size: 1.2rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; }
.cart-empty { color: var(--muted); text-align: center; padding: 2rem 0; }
.cart-line { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: none; }
.cart-line-thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #f4f6f8; flex-shrink: 0; }
.cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-main { flex: 1; min-width: 0; }
.cart-line-sku { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.cart-line-name { font-weight: 600; font-size: .95rem; }
.cart-line-price { font-size: .88rem; color: var(--muted); }
.cart-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.qty { display: flex; align-items: center; gap: .4rem; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--border); background: #fff; border-radius: 6px; cursor: pointer; font-size: 1rem; line-height: 1; }
.qty button:hover { background: var(--panel); }
.qty-value { min-width: 22px; text-align: center; font-weight: 700; font-size: .9rem; }
.cart-remove { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: .75rem; padding: 0; }
.cart-remove:hover { color: var(--danger); }
.cart-foot { padding: 1rem 1.3rem; border-top: 1px solid var(--border); }
.cart-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.cart-subtotal strong { font-size: 1.15rem; }
.cart-note { margin: 0 0 .9rem; color: var(--muted); font-size: .82rem; }
.cart-auth-note { margin: .6rem 0 0; color: var(--muted); font-size: .82rem; text-align: center; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 60; max-width: min(420px, 90vw);
  background: #24272d; color: #fff; padding: .8rem 1.2rem; border-radius: var(--radius);
  box-shadow: var(--shadow); font-weight: 600; font-size: .92rem;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: #24272d; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: #cbd5e1; padding: 3rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-brand img { max-height: 116px; width: auto; margin-bottom: .6rem; }
.footer-brand p { color: #94a3b8; font-size: .9rem; max-width: 30ch; }
.footer-nav { display: flex; flex-direction: column; gap: .45rem; }
.footer-nav h3 { color: #fff; font-size: .95rem; margin-bottom: .3rem; }
.footer-nav a { color: #cbd5e1; font-size: .9rem; }
.footer-nav a:hover { color: #fff; }
.footer-meta { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; }
.footer-meta p { color: #64748b; font-size: .82rem; }

/* ── Silo « familles de supports » de l'accueil (chantier P2-T2, axe E) ───── */
.family-silo { padding: 3.4rem 0; background: #f7f9fc; }
.family-silo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2rem; }
.family-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 1.4rem; transition: box-shadow .2s ease, transform .2s ease;
}
.family-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(36, 39, 45, .1); }
.family-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .5rem; scroll-margin-top: 90px; }
.family-card p { color: var(--muted); font-size: .92rem; }
.family-links { list-style: none; margin-top: .9rem; display: grid; gap: .45rem; }
.family-links a { color: var(--primary); font-weight: 600; font-size: .92rem; }
.family-links a:hover { text-decoration: underline; }
.family-silo-note { margin-top: 1.8rem; text-align: center; color: var(--muted); font-size: .92rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .catalog { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid, .advantages-grid, .family-silo-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-points { justify-content: center; }
  .hero-figure img { max-width: 420px; margin-inline: auto; }
  .main-nav { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .header-inner { flex-wrap: wrap; }
  .nav-user-name { display: none; }
  .order-card { flex-wrap: wrap; }
  .order-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .benefits-grid, .advantages-grid, .catalog, .family-silo-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none !important; }
}

/* ── Pages légales / statiques ───────────────────────────────────────────── */
.legal { padding: 2.5rem 0 3.5rem; max-width: 780px; margin-inline: auto; }
.legal h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.legal h2 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.legal p, .legal li { color: #334155; }
.legal ul { padding-left: 1.25rem; }
.legal .updated { color: var(--muted); font-size: .85rem; margin-bottom: 1.5rem; }

/* ── Liens « voir le produit » dans le catalogue ─────────────────────────── */
.product-thumb a {
  display: flex; width: 100%; height: 100%;
  align-items: center; justify-content: center;
}
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--primary); }
.product-more {
  display: block; text-align: center; padding: .7rem 1.1rem;
  font-size: .88rem; font-weight: 600; color: var(--primary);
  border-top: 1px solid var(--border);
}
.product-more:hover { background: var(--panel); }

/* ── Page produit (copie fidèle de la fiche cartebiz.fr) ─────────────────── */
.product-page { padding: 0 0 4rem; }
.product-page h1, .product-page h2 { font-family: var(--font); }

/* ── Fil d'Ariane + fallback <noscript> (rendus par le pré-rendu serveur,
      cf. product-seo.js — chantier SEO P2-T1) ─────────────────────────────── */
.pp-breadcrumb { padding: 1.1rem 0 .1rem; }
.pp-breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center;
  gap: .35rem; margin: 0; padding: 0; font-size: .82rem; color: var(--muted);
}
.pp-breadcrumb li { display: inline-flex; align-items: center; gap: .35rem; }
.pp-breadcrumb li + li::before { content: "›"; color: var(--border); }
.pp-breadcrumb a { color: var(--primary); }
.pp-breadcrumb a:hover { text-decoration: underline; }
.pp-breadcrumb [aria-current="page"] { color: var(--muted); }

.pp-noscript {
  max-width: 720px; margin: 1.5rem auto; padding: 1rem 1.2rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel); font-size: .92rem;
}
.pp-noscript p + p { margin-top: .5rem; }

.pp-hero { padding: 3rem 0 2rem; background: #fff; }
.pp-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.pp-gallery {
  background: #f4f6f8; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); position: sticky; top: 90px;
  display: flex; align-items: center; justify-content: center;
}
.pp-gallery img { width: 100%; height: auto; object-fit: contain; }
.pp-gallery-fallback { padding: 4rem 2rem; color: var(--muted); font-weight: 700; }

.pp-info { display: flex; flex-direction: column; gap: .9rem; }
.pp-rating { color: #f1b51e; font-weight: 600; font-size: .95rem; }
.pp-family {
  align-self: flex-start; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: var(--primary);
}
.pp-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.15; }
.pp-tagline { color: #3a3f46; font-size: 1.05rem; }
.pp-price { display: flex; align-items: baseline; gap: .7rem; }
.pp-price-amount { font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.pp-bullets { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.pp-bullets li { font-size: .98rem; }
.pp-stock { color: var(--success); font-weight: 600; font-size: .92rem; }

.pp-buy { display: flex; align-items: stretch; gap: .8rem; flex-wrap: wrap; }
.pp-qty {
  display: flex; align-items: center; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; background: #fff;
}
.pp-qty button {
  width: 42px; height: 48px; border: none; background: #fff; cursor: pointer;
  font-size: 1.2rem; line-height: 1; color: var(--text);
}
.pp-qty button:hover { background: var(--panel); }
.pp-qty-value { min-width: 40px; text-align: center; font-weight: 700; font-size: 1rem; }
.pp-buy .btn-lg { height: 48px; flex: 1; min-width: 200px; }

.pp-badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem;
}
.pp-badges li {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--panel); color: var(--text); font-weight: 600; font-size: .82rem;
  padding: .4rem .8rem; border-radius: 999px;
}
.pp-badges li::before { content: "✓"; color: var(--success); font-weight: 700; }

.pp-section { padding: 2.6rem 0; }
.pp-h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 800; margin-bottom: 1rem; }
.pp-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; }
.pp-block {
  background: var(--panel); border-radius: var(--radius); padding: 1.6rem;
}
.pp-block h2 { font-size: 1.15rem; margin-bottom: .6rem; }
.pp-block p { color: #334155; font-size: .95rem; }

.pp-specs { background: #fff; }
.pp-specs-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.pp-specs-list li {
  position: relative; padding-left: 1.6rem; color: #334155; font-size: .96rem;
}
.pp-specs-list li::before {
  content: ""; position: absolute; left: 0; top: .42rem;
  width: 10px; height: 10px; border-radius: 3px; background: var(--primary);
}

.pp-process { background: var(--panel); }
.pp-intro { color: var(--muted); margin-bottom: 1.4rem; max-width: 60ch; }
.pp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pp-step { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.pp-step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 800; margin-bottom: .7rem;
}
.pp-step p { color: #334155; font-size: .93rem; }

.pp-config-steps { list-style: none; counter-reset: cfg; display: flex; flex-direction: column; gap: .9rem; }
.pp-config-step {
  counter-increment: cfg; display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.3rem;
}
.pp-config-step::before {
  content: counter(cfg); flex-shrink: 0; width: 32px; height: 32px;
  border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.pp-config-step strong { font-weight: 700; }
.pp-config-step p { color: var(--muted); font-size: .92rem; margin-top: .15rem; }
.pp-note { margin-top: 1.2rem; color: var(--muted); font-size: .9rem; }

.pp-seo { background: #fff; }
.pp-seo p { color: #334155; max-width: 75ch; margin-bottom: .8rem; }
.pp-cta { margin-top: 1.4rem; }

.pp-faq { background: var(--panel); }

.pp-similar { background: #fff; }
.pp-similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pp-similar-card {
  display: flex; flex-direction: column; gap: .5rem; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.pp-similar-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(36,39,45,.12); }
.pp-similar-thumb {
  aspect-ratio: 1 / 1; background: #f4f6f8; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pp-similar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-similar-thumb--empty span { color: var(--muted); font-weight: 700; }
.pp-similar-name { font-weight: 700; font-size: .95rem; color: var(--text); }
.pp-similar-price { font-weight: 800; color: var(--primary); }

/* ── Enrichissement on-page (chantier P2-T2) ─────────────────────────────── */
/* H2/H3 des mots-clés secondaires + silo de familles : mêmes blocs côté SSR et
   côté client (rendus identiques, cf. `test/product-seo-test.js`). */
.pp-seo-detail { background: #f7f9fc; }
.pp-seo-detail p { color: #334155; max-width: 75ch; margin-bottom: .8rem; }
.pp-h3 { font-size: 1.05rem; font-weight: 700; margin: 1.4rem 0 .5rem; }

.pp-silo { background: var(--surface); }
.pp-silo-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.pp-silo-list a { color: var(--primary); font-weight: 600; }
.pp-silo-list a:hover { text-decoration: underline; }

.pp-notfound { padding: 5rem 0; text-align: center; }
.pp-notfound h1 { font-size: 2rem; margin-bottom: .6rem; }
.pp-notfound p { color: var(--muted); margin-bottom: 1.4rem; }

/* ── Responsive page produit ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .pp-hero-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .pp-gallery { position: static; }
  .pp-cols { grid-template-columns: 1fr; }
  .pp-steps { grid-template-columns: 1fr; }
  .pp-similar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .pp-similar-grid { grid-template-columns: 1fr; }
  .pp-buy { flex-direction: column; }
  .pp-buy .btn-lg { width: 100%; }
}






/* ── Pages de contenu éditorial (chantier P2-T5, axe D) ───────────────────── */
/* Hub `/avis-google/`, guides `/guide/…/` et page outil citable : **HTML pur**,
   lisible sans JavaScript (le seul script est l'outil de lien d'avis, en
   amélioration progressive). Réutilise le chrome du site (header/footer) et les
   composants existants : `.pp-breadcrumb`, `.faq-item`, `.btn`. */
.content-page { padding: 2.2rem 0 3.5rem; }
.content-article { max-width: 820px; margin-inline: auto; }
.content-article h1 { font-size: 1.9rem; line-height: 1.25; margin-bottom: .7rem; }
.content-article h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.content-article h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.content-article p, .content-article li { color: #334155; }
.content-article p { margin-bottom: .8rem; }
.content-article ul, .content-article ol { padding-left: 1.3rem; margin-bottom: .9rem; }
.content-article ul li, .content-article ol li { margin-bottom: .35rem; }
.content-article a { color: var(--primary); font-weight: 600; }
.content-article a:hover { text-decoration: underline; }
.content-lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.2rem; }
.content-updated { color: var(--muted); font-size: .85rem; margin-bottom: 1.4rem; }

.content-block {
  border: 1px solid var(--border); border-radius: var(--radius); background: #f7f9fc;
  padding: 1.3rem 1.4rem; margin: 1.6rem 0;
}
.content-block h2, .content-block h3 { margin-top: 0; }
.content-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.1rem 0 .4rem; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.content-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.content-card h3 { margin-top: 0; }
.content-card p { margin-bottom: .6rem; }
.content-card .content-card-link { font-weight: 700; }
.content-faq { display: grid; gap: .8rem; margin: 1rem 0 1.6rem; }

/* Outil « générateur de lien d'avis » (axe D.4) — formulaire local, sans réseau. */
.tool-box {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); padding: 1.3rem 1.4rem; margin: 1.2rem 0;
}
.tool-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; }
.tool-field { flex: 1 1 280px; }
.tool-field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.tool-field input {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--border);
  border-radius: var(--radius); font: inherit; color: var(--text);
}
.tool-field input:focus-visible { outline: 3px solid rgba(0, 123, 255, .35); outline-offset: 1px; }
.tool-hint { color: var(--muted); font-size: .85rem; margin-top: .5rem; }
.tool-output {
  margin-top: 1rem; padding: 1rem; border: 1px dashed var(--border);
  border-radius: var(--radius); background: #f7f9fc;
}
.tool-output code { display: block; word-break: break-all; font-size: .92rem; margin-bottom: .7rem; }
.tool-error { color: var(--danger); font-weight: 600; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

@media (max-width: 620px) {
  .content-article h1 { font-size: 1.55rem; }
  .content-cta .btn { width: 100%; justify-content: center; }
}