/* KFSTORE — feuille de style principale */
:root {
  --navy: #06325C;
  --navy-dark: #041E38;
  --navy-2: #0F4378;
  --gold: #F8C600;
  --gold-dark: #D9A800;
  --ink: #0B1B33;
  --muted: #4A5872;
  --muted-2: #5A6780;
  --line: #E3E8F0;
  --field: #C9D2E0;
  --bg: #F4F6FA;
  --white: #FFFFFF;
  --green: #1F6F43;
  --green-bg: #EEF6F1;
  --red: #B3261E;
  --t-alim: #E5F3EA;
  --t-elec: #E4ECFA;
  --t-hab: #FBEBE3;
  --t-menager: #ECEEF2;
  --t-auto: #F7E8E6;
  --t-maison: #F3ECE2;
  --t-beaute: #F8E8F0;
  --t-sport: #E2F2F4;
  --t-jouets: #FDEBDD;
  --t-jardin: #E6F2E3;
  --t-livres: #E8EAF6;
  --radius: 16px;
  --display: "Sora", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.45; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.5px; margin: 0; line-height: 1.15; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--gold); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }

/* ---------- Barre du haut ---------- */
.topbar { background: var(--navy-dark); color: #E6ECF7; font-size: 13px; }
.topbar__in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar__links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { color: #E6ECF7; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #FFFFFF; }
.topbar .topbar__app { color: #FFD24D; font-weight: 700; }

/* ---------- En-tête ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__in { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__txt { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.5px; }
.logo__txt .kf { color: var(--navy); }
.logo__txt .st { color: var(--gold-dark); }
.logo__txt--light .kf { color: #FFFFFF; }
.logo__txt--light .st { color: var(--gold); }
.search { flex: 999 1 360px; display: flex; border: 2px solid var(--navy); border-radius: 12px; overflow: hidden; background: var(--white); min-width: 0; }
.search input { flex: 1; min-width: 0; border: 0; padding: 13px 16px; font-size: 15px; outline: none; }
.search__btn { border: 0; background: var(--navy); color: #FFFFFF; padding: 0 20px; display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.header__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hbtn { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; text-decoration: none; font-size: 13px; color: var(--ink); min-height: 44px; }
.hbtn--outline { border: 1px solid var(--line); }
.hbtn__txt { line-height: 1.2; }
.hbtn__txt small { display: block; color: var(--muted-2); font-size: 11px; }
.cartbtn { display: flex; align-items: center; gap: 8px; background: var(--navy); color: #FFFFFF; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 14px; min-height: 44px; }
.cartbtn:hover { color: #FFFFFF; background: var(--navy-dark); }
.badge { background: var(--gold); color: var(--navy-dark); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menubtn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 12px; font-size: 14px; font-weight: 600; }
.nav a { padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--navy); }
.nav a:hover { background: #EEF2F8; }
.nav a.active { background: var(--navy); color: #FFFFFF; }
.nav .nav__promo { color: var(--red); }
.nav .nav__promo.active { color: #FFFFFF; background: var(--red); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 14px 22px; font-weight: 800; text-decoration: none; cursor: pointer; min-height: 48px; font-size: 15px; transition: transform .1s ease, filter .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--navy-dark); }
.btn--gold:hover { filter: brightness(0.96); color: var(--navy-dark); }
.btn--navy { background: var(--navy); color: #FFFFFF; }
.btn--navy:hover { background: var(--navy-dark); color: #FFFFFF; }
.btn--outline { background: var(--white); border: 1.5px solid var(--navy); color: var(--navy); }
.btn--ghost-light { border: 1.5px solid #5D77A8; color: #FFFFFF; background: transparent; }
.btn--ghost-light:hover { color: #FFFFFF; background: rgba(255,255,255,.08); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 14px; min-height: 44px; font-size: 14px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--navy); font-weight: 700; cursor: pointer; text-decoration: underline; }
.link-danger { border: 0; background: none; padding: 6px 0; color: var(--red); font-weight: 700; font-size: 13px; cursor: pointer; }

/* ---------- Structure des pages ---------- */
main { outline: none; }
.page { padding-top: 24px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 40px; }
.page--tight { gap: 22px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; }
.crumbs { font-size: 13px; color: var(--muted-2); display: flex; gap: 8px; flex-wrap: wrap; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card h2 { font-size: 20px; margin-bottom: 4px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total-line { border-top: 1px solid var(--line); padding-top: 12px; }
.total-line strong { font-family: var(--display); font-size: 24px; color: var(--navy); }
.empty { background: var(--white); border: 1px dashed var(--field); border-radius: 20px; padding: 48px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* ---------- Accueil ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 20px; }
.hero__main { flex: 2 1 600px; min-width: 0; background: var(--navy); color: #FFFFFF; border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.hero__txt { flex: 1 1 300px; display: flex; flex-direction: column; gap: 18px; }
.hero__txt h1 { font-size: 46px; line-height: 1.08; letter-spacing: -1px; font-weight: 800; }
.hero__txt h1 span { color: var(--gold); }
.hero__txt p { margin: 0; font-size: 17px; color: #C9D4EA; }
.pill { align-self: flex-start; background: rgba(245,184,0,.16); color: #FFD24D; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.hero__visual { flex: 1 1 280px; height: 300px; border-radius: 16px; background: var(--navy-2); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.hero__visual span { border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.hero__visual img { width: 85%; height: 85%; object-fit: contain; }
.hero__side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.promo-card { flex: 1; border-radius: 20px; padding: 26px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.promo-card--gold { background: var(--gold); color: var(--navy-dark); }
.promo-card--gold:hover { color: var(--navy-dark); filter: brightness(.98); }
.promo-card--white { background: var(--white); border: 1px solid var(--line); color: var(--ink); flex-direction: row; align-items: center; gap: 14px; }
.promo-card--white:hover { color: var(--ink); border-color: var(--field); }
.eyebrow { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.promo-card strong { font-family: var(--display); font-size: 24px; line-height: 1.15; }
.promo-card img { width: 110px; height: 110px; object-fit: contain; flex: none; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.perk { display: flex; gap: 14px; align-items: center; }
.perk__ico { width: 46px; height: 46px; border-radius: 12px; background: #EEF2F8; display: flex; align-items: center; justify-content: center; flex: none; }
.perk strong { display: block; }
.perk small { font-size: 13px; color: var(--muted-2); }
.rayons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.rayon { border-radius: 18px; padding: 22px; text-decoration: none; color: var(--ink); display: flex; gap: 12px; align-items: center; min-height: 180px; transition: transform .15s ease; }
.rayon:hover { transform: translateY(-2px); color: var(--ink); }
.rayon__txt { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rayon__txt strong { font-family: var(--display); font-size: 22px; }
.rayon__txt span { font-size: 14px; color: #3D4B63; }
.rayon__txt em { font-style: normal; font-weight: 800; }
.rayon img { width: 110px; height: 110px; object-fit: contain; }
.band { background: #FFF6D6; border: 1px solid #F1DC8A; border-radius: 20px; padding: 36px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.band__txt { flex: 2 1 420px; display: flex; flex-direction: column; gap: 12px; }
.band__txt .eyebrow { color: #7A5A00; }
.band__txt h2 { font-size: 30px; }
.band__txt p { margin: 0; font-size: 16px; color: #3D4B63; }
.band__cta { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.appband { background: var(--navy); color: #FFFFFF; border-radius: 24px; padding: 44px; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; scroll-margin-top: 180px; }
.appband__txt { flex: 2 1 440px; display: flex; flex-direction: column; gap: 16px; }
.appband__txt h2 { font-size: 34px; }
.appband__txt h2 span { color: var(--gold); }
.appband__txt p { margin: 0; font-size: 16px; color: #C9D4EA; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: flex; align-items: center; gap: 12px; background: #FFFFFF; color: var(--navy-dark); border-radius: 12px; padding: 10px 18px; text-decoration: none; min-height: 56px; }
.store:hover { color: var(--navy-dark); filter: brightness(.96); }
.store small { display: block; font-size: 11px; color: var(--muted); }
.store strong { font-size: 17px; }
.appband__visual { flex: 1 1 260px; display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap; }
.qr { width: 150px; height: 150px; background: #FFFFFF; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 11px; text-align: center; padding: 12px; }
.phone { width: 150px; height: 290px; border-radius: 28px; background: var(--bg); border: 6px solid #2B4F8F; display: flex; flex-direction: column; gap: 8px; padding: 14px 10px; color: var(--ink); }
.phone__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.phone__grid span { border-radius: 8px; height: 62px; display: flex; align-items: center; justify-content: center; }
.phone__grid img { width: 48px; height: 48px; }

/* ---------- Onglets / puces ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid #D3DAE6; background: var(--white); color: var(--ink); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #FFFFFF; font-weight: 700; }
.chip--gold.active { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.chip--sm { padding: 8px 12px; font-size: 13px; min-height: 40px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { border: 0; border-bottom: 3px solid transparent; background: none; padding: 16px 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab.active { border-bottom-color: var(--gold); color: var(--navy); font-weight: 800; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #EEF2F8; border-radius: 12px; padding: 4px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.active { background: var(--white); color: var(--navy); font-weight: 800; }

/* ---------- Produits ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease; }
.pcard:hover { box-shadow: 0 10px 28px rgba(11,27,51,.08); transform: translateY(-2px); }
.pcard__img { position: relative; height: 200px; display: flex; align-items: center; justify-content: center; }
.pcard__img img { width: 165px; height: 165px; object-fit: contain; }
.pcard__badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #FFFFFF; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 800; }
.pcard__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard__cat { font-size: 12px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .6px; }
.pcard__name { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.35; }
.pcard__name:hover { text-decoration: underline; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-family: var(--display); font-size: 19px; color: var(--navy); }
.price s { font-size: 13px; color: var(--muted-2); }
.stock { font-size: 12px; color: var(--green); font-weight: 600; }
.pcard .btn { margin-top: auto; padding: 12px; min-height: 44px; font-size: 14px; border-radius: 10px; }
.tint-alim { background: var(--t-alim); }
.tint-elec { background: var(--t-elec); }
.tint-hab { background: var(--t-hab); }
.tint-menager { background: var(--t-menager); }
.tint-auto { background: var(--t-auto); }
.tint-maison { background: var(--t-maison); }
.tint-beaute { background: var(--t-beaute); }
.tint-sport { background: var(--t-sport); }
.tint-jouets { background: var(--t-jouets); }
.tint-jardin { background: var(--t-jardin); }
.tint-livres { background: var(--t-livres); }

/* ---------- Catalogue ---------- */
.filters { flex: 1 1 250px; max-width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 180px; }
.filters h3 { font-family: var(--body); font-size: 15px; letter-spacing: 0; margin-bottom: 6px; }
.flist { display: flex; flex-direction: column; gap: 4px; }
.flist button { text-align: left; border: 0; background: transparent; border-radius: 10px; padding: 10px 12px; cursor: pointer; min-height: 44px; display: flex; justify-content: space-between; }
.flist button:hover { background: #EEF2F8; }
.flist button.active { background: var(--navy); color: #FFFFFF; font-weight: 700; }
.flist button span { color: var(--muted-2); }
.flist button.active span { color: #FFFFFF; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); }
.sort { display: flex; gap: 10px; align-items: center; }
.sort label { font-size: 14px; color: var(--muted); }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea, .select { border: 1px solid var(--field); border-radius: 10px; padding: 12px; font-weight: 400; background: var(--white); min-height: 46px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, .select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14,42,92,.12); }
.field small { font-weight: 400; color: var(--muted); font-size: 13px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.option { display: flex; gap: 14px; align-items: center; border: 1px solid #D3DAE6; border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.option:has(input:checked) { border: 2px solid var(--navy); padding: 13px 15px; }
.option input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.option__txt { flex: 1; }
.option__txt strong { display: block; }
.option__txt small { font-size: 13px; color: var(--muted); }
.pay-ico { width: 42px; height: 42px; border-radius: 10px; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--field); border-radius: 12px; background: var(--white); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--navy); cursor: pointer; }
.qty span { min-width: 30px; text-align: center; font-weight: 800; }
.qty--lg button { width: 48px; height: 52px; font-size: 22px; }
.notice { background: var(--green-bg); color: #1F4F35; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 700; }

/* ---------- Fiche produit ---------- */
.gallery { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery__main { height: 460px; border-radius: 20px; display: flex; align-items: center; justify-content: center; position: relative; }
.gallery__main img { width: 75%; height: 75%; object-fit: contain; transition: transform .25s ease; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumbs button { height: 90px; border-radius: 12px; border: 1px solid #D3DAE6; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.thumbs button.active { border: 2px solid var(--navy); }
.thumbs img { width: 60px; height: 60px; }
.pinfo { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pinfo h1 { font-size: 32px; }
.pinfo .price strong { font-size: 34px; }
.pinfo .price s { font-size: 16px; }
.buy { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.buy .btn { flex: 1 1 180px; min-height: 52px; font-size: 16px; }
.mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; font-size: 13px; }
.mini div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mini strong { display: block; font-size: 14px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 620px; }
.specs span { padding: 12px; }
.specs span:nth-child(odd) { background: var(--bg); }
.review { border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Panier ---------- */
.line { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.line__img { width: 110px; height: 110px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.line__img img { width: 90px; height: 90px; object-fit: contain; }
.line__info { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.line__info a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
.line__info small { font-size: 13px; color: var(--muted-2); }
.line__total { font-family: var(--display); font-size: 18px; min-width: 150px; text-align: right; color: var(--navy); }
.recap-item { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.recap-item span:first-child { width: 56px; height: 56px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.recap-item img { width: 46px; height: 46px; }
.recap-item .grow { flex: 1; }

/* ---------- Étapes et suivi ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 700; align-items: center; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted-2); }
.steps .n { width: 26px; height: 26px; border-radius: 999px; border: 2px solid #9AA4B5; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.steps .done { color: var(--green); }
.steps .done .n { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.steps .now { color: var(--navy); }
.steps .now .n { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 16px; }
.timeline .rail { display: flex; flex-direction: column; align-items: center; }
.timeline .dot { width: 30px; height: 30px; border-radius: 999px; border: 2px solid var(--field); background: var(--white); color: var(--muted-2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.timeline .bar { width: 3px; flex: 1; min-height: 28px; background: var(--line); }
.timeline li:last-child .bar { background: transparent; }
.timeline .txt { padding-bottom: 22px; }
.timeline .txt strong { display: block; color: var(--muted-2); }
.timeline .txt small { font-size: 13px; color: var(--muted); }
.timeline .done .dot { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.timeline .done .bar { background: var(--green); }
.timeline .now .dot { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.timeline .done .txt strong, .timeline .now .txt strong { color: var(--ink); }
.success { background: var(--green-bg); border: 1px solid #BFDCC9; border-radius: 20px; padding: 24px 28px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.success__ico { width: 56px; height: 56px; border-radius: 999px; background: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.map { min-height: 300px; border-radius: 20px; background: #DCE5F2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #3D4B63; text-align: center; padding: 24px; }
.status { border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.status--route { background: var(--t-elec); color: var(--navy); }
.status--ok { background: var(--t-alim); color: #1F4F35; }
.status--ret { background: var(--t-hab); color: #7A3412; }

/* ---------- Compte ---------- */
.side-menu { display: flex; flex-direction: column; gap: 4px; }
.side-menu button, .side-menu a { text-align: left; border: 0; background: transparent; border-radius: 10px; padding: 12px 14px; cursor: pointer; min-height: 44px; text-decoration: none; color: var(--ink); }
.side-menu button:hover { background: #EEF2F8; }
.side-menu button.active { background: var(--navy); color: #FFFFFF; font-weight: 700; }
.side-menu .logout { color: var(--red); font-weight: 700; }
.avatar { width: 48px; height: 48px; border-radius: 999px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--display); flex: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kpi span { color: var(--muted); font-size: 14px; }
.kpi strong { display: block; font-family: var(--display); font-size: 22px; margin: 6px 0; }
.kpi--gold { background: #FFF6D6; border-color: #F1DC8A; }
.order { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.order__img { width: 70px; height: 70px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.order__img img { width: 56px; height: 56px; }
.order__info { flex: 1 1 200px; }
.order__info strong { display: block; }
.order__info small { font-size: 13px; color: var(--muted); }

/* ---------- Aide aux familles ---------- */
.fam-hero { background: var(--gold); border-radius: 24px; padding: 44px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; color: var(--navy-dark); }
.fam-hero__txt { flex: 2 1 460px; display: flex; flex-direction: column; gap: 14px; }
.fam-hero__txt h1 { font-size: 44px; letter-spacing: -1px; }
.fam-hero__txt p { margin: 0; font-size: 18px; }
.fam-hero__img { flex: 1 1 280px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fam-hero__img span { background: #FFFFFF; border-radius: 16px; height: 130px; display: flex; align-items: center; justify-content: center; }
.fam-hero__img img { width: 110px; height: 110px; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.how div { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.how b { width: 36px; height: 36px; border-radius: 999px; background: var(--navy); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.how strong { font-size: 17px; }
.how span { color: var(--muted); font-size: 14px; }
.fam-item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; flex-wrap: wrap; }
.fam-item img { width: 44px; height: 44px; }
.fam-item .grow { flex: 1; font-size: 14px; font-weight: 600; min-width: 140px; }
.fam-item .qty button { width: 40px; height: 40px; font-size: 18px; }
.fam-item b { min-width: 120px; text-align: right; font-size: 14px; }
.conditions { background: #FFF6D6; border: 1px solid #F1DC8A; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 14px; font-size: 14px; color: #3D4B63; }

/* ---------- Boutiques ---------- */
.shop { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.shop.active { border: 2px solid var(--navy); padding: 17px; }
.shop__head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.shop__state { font-size: 12px; font-weight: 800; color: var(--green); background: var(--green-bg); border-radius: 999px; padding: 4px 10px; }
.shop span { font-size: 14px; color: var(--muted); }
.contact-band { background: var(--navy); color: #FFFFFF; border-radius: 20px; padding: 28px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.contact-band > div { flex: 1 1 360px; }
.contact-band h2 { font-size: 22px; margin-bottom: 6px; }
.contact-band span { color: #C9D4EA; }

/* ---------- Connexion ---------- */
.auth { max-width: 1100px; margin: 0 auto; padding: 40px 24px 64px; display: flex; flex-wrap: wrap; gap: 28px; }
.auth__aside { flex: 1 1 380px; background: var(--navy); color: #FFFFFF; border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.auth__aside h1 { font-size: 30px; }
.auth__aside ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: #C9D4EA; }
.auth__imgs { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.auth__imgs span { border-radius: 14px; height: 90px; display: flex; align-items: center; justify-content: center; }
.auth__imgs img { width: 70px; height: 70px; }
.auth__form { flex: 1 1 420px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy-dark); color: #C9D4EA; margin-top: 24px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col p { margin: 0; line-height: 1.6; }
.footer__col a { color: #C9D4EA; text-decoration: none; }
.footer__col a:hover { color: #FFFFFF; text-decoration: underline; }
.footer__h { color: #FFFFFF; font-size: 15px; }
.footer__apps { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__apps a { border: 1px solid #3A5182; border-radius: 8px; padding: 8px 12px; color: #FFFFFF; font-weight: 700; font-size: 13px; }
.footer__bottom { border-top: 1px solid #22375E; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; padding-top: 18px; padding-bottom: 28px; }
.footer__pay { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__pay span { border: 1px solid #3A5182; border-radius: 6px; padding: 4px 10px; }

/* ---------- Notification ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--navy-dark); color: #FFFFFF; padding: 14px 20px; border-radius: 12px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: transform .25s ease; z-index: 200; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast a { color: var(--gold); margin-left: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header { position: static; }
  .filters { position: static; }
  .hero__txt h1 { font-size: 36px; }
  .appband, .band, .fam-hero, .hero__main { padding: 28px; }
  .page-head h1 { font-size: 28px; }
}
@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topbar__in > span:first-child { display: none; }
  .hbtn__txt, .search__btn span, .cartbtn > span:not(.badge) { display: none; }
  .menubtn { display: inline-flex; }
  .header__in { gap: 12px; }
  .search { order: 3; flex-basis: 100%; }
  .nav { display: none; flex-direction: column; padding-bottom: 14px; }
  .nav.open { display: flex; }
  .hero__visual { height: 240px; }
  .gallery__main { height: 320px; }
  .line__total { min-width: 0; text-align: left; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard__img { height: 150px; }
  .pcard__img img { width: 120px; height: 120px; }
  .pcard__body { padding: 12px; }
  .section-head h2 { font-size: 22px; }
}

/* ---------- Variantes ---------- */
.hero__visual a { border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.hero__visual a:hover { transform: scale(1.03); }
.price .from { width: 100%; font-size: 12px; color: var(--muted-2); font-weight: 600; margin-bottom: -6px; }
.swatches { display: flex; gap: 6px; align-items: center; min-height: 18px; }
.sw { width: 18px; height: 18px; border-radius: 999px; border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px #C9D2E0; }
.swatches small { font-size: 12px; color: var(--muted-2); font-weight: 700; }
.optsum { font-size: 12px; color: var(--muted-2); font-weight: 600; }
.pcard .btn--outline { border-width: 1.5px; }
.optgroup { display: flex; flex-direction: column; gap: 10px; }
.optgroup + .optgroup { border-top: 1px solid var(--line); padding-top: 14px; }
.optgroup__lbl { font-size: 14px; color: var(--muted); }
.optgroup__lbl strong { color: var(--ink); }
.chip.opt { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; padding: 8px 16px; border-radius: 12px; }
.chip.opt small { font-size: 11px; font-weight: 600; color: var(--muted-2); margin-top: 2px; }
.chip.opt.active small { color: #C9D4EA; }
.swatch-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.swb { position: relative; width: 64px; height: 64px; border-radius: 14px; border: 1px solid #D3DAE6; background: var(--white); cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center; }
.swb img { width: 100%; height: 100%; object-fit: contain; }
.swb__dot { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 999px; border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px #C9D2E0; }
.swb.active { border: 2px solid var(--navy); padding: 3px; box-shadow: 0 0 0 3px rgba(14,42,92,.12); }
.line__var { font-size: 13px; font-weight: 700; color: var(--navy); background: #EEF2F8; border-radius: 6px; padding: 2px 8px; align-self: flex-start; }
@media (max-width: 720px) {
  .swb { width: 54px; height: 54px; }
  .pcard .btn { font-size: 13px; padding: 10px 8px; }
}

/* ---------- Correctifs d'affichage ---------- */
.logo { flex: none; }
.logo__txt { white-space: nowrap; }
.rayon { overflow: hidden; }
.rayon img { flex: none; width: 104px; height: 104px; }
@media (max-width: 720px) {
  .topbar__links { gap: 14px; font-size: 12px; }
  .topbar__links a:last-of-type { display: none; }
  .logo__txt { font-size: 22px; }
  .header__actions { margin-left: auto; }
}
.shop__tag { font-size: 11px; font-weight: 800; color: var(--navy-dark); background: var(--gold); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }

/* ---------- Devenir fournisseur ---------- */
.nav .nav__supplier { color: var(--navy-dark); background: #FFF6D6; }
.nav .nav__supplier.active { background: var(--gold); color: var(--navy-dark); }
.supplier-hero { background: var(--navy); color: #FFFFFF; border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.supplier-hero__txt { flex: 2 1 420px; display: flex; flex-direction: column; gap: 12px; }
.supplier-hero__txt .eyebrow { color: var(--gold); }
.supplier-hero__txt h1 { font-size: 40px; }
.supplier-hero__txt p { margin: 0; color: #C9D4EA; font-size: 16px; }
.supplier-perks { flex: 1 1 320px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.supplier-perks div { background: rgba(255,255,255,.08); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.supplier-perks strong { color: var(--gold); font-family: var(--display); }
.supplier-perks span { font-size: 13px; color: #C9D4EA; }
.supplier-aside { position: sticky; top: 180px; }
.supplier-band { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: #FFF6D6; border-color: #F1DC8A; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px; }
.check--box { min-height: 40px; font-size: 14px; }
.subsector { background: var(--bg); border-radius: 12px; padding: 14px; }
[aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(179,38,30,.12) !important; }
@media (max-width: 900px) { .supplier-aside { position: static; } .supplier-hero { padding: 28px; } .supplier-hero__txt h1 { font-size: 30px; } }
@media (min-width: 721px) { .nav { gap: 2px; } .nav a { padding: 10px 11px; } }
@media (min-width: 721px) and (max-width: 1340px) { .nav { font-size: 13px; } .nav a { padding: 9px 9px; } }

/* ---------- Pages légales ---------- */
.footer__legal { border-top: 1px solid #22375E; padding-top: 16px; padding-bottom: 4px; }
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 13px; }
.footer__legal a { color: #C9D4EA; text-decoration: none; }
.footer__legal a:hover { color: #FFFFFF; text-decoration: underline; }
.footer__legal a + a::before { content: "-"; margin: 0 10px; color: #5D77A8; display: inline-block; }
.legal-nav { flex: 1 1 280px; max-width: 100%; position: sticky; top: 180px; align-self: flex-start; }
.legal-nav .side-menu button { font-size: 14px; padding: 10px 12px; }
.legal { gap: 6px; line-height: 1.7; color: #26334D; padding: 32px; }
.legal h1 { font-size: 32px; margin-bottom: 4px; }
.legal h2 { font-size: 20px; margin: 22px 0 4px; color: var(--navy); }
.legal p, .legal ul, .legal ol { margin: 6px 0; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal .lead { font-size: 17px; color: var(--ink); background: #EEF2F8; border-radius: 12px; padding: 16px 18px; margin-top: 18px; }
.legal .callout { background: #FFF6D6; border: 1px solid #F1DC8A; border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.legal .tbl { overflow-x: auto; margin: 10px 0; }
.legal table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg); }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sitemap { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
@media (max-width: 900px) { .legal-nav { position: static; } .legal { padding: 22px; } }

/* ---------- Logo officiel ---------- */
.logo__img { height: 58px; width: auto; display: block; }
.logo__img--footer { height: 52px; }
@media (max-width: 720px) { .logo__img { height: 44px; } }
@media (max-width: 720px) { .topbar__links a:nth-last-of-type(2) { display: none; } }

/* ---------- Assistant (chatbot) ---------- */
.cb { position: fixed; right: 20px; bottom: 20px; z-index: 150; font-size: 14px; }
.cb-launcher { display: flex; align-items: center; gap: 10px; border: 0; background: var(--navy); color: #FFFFFF; border-radius: 999px; padding: 8px 18px 8px 8px; box-shadow: 0 10px 30px rgba(4,30,56,.3); cursor: pointer; font-weight: 800; }
.cb-launcher img { width: 44px; height: 44px; border-radius: 999px; background: #FFFFFF; padding: 4px; }
.cb-launcher:hover { background: var(--navy-dark); }
.cb--open .cb-launcher { display: none; }
.cb-panel { width: min(380px, calc(100vw - 24px)); height: min(620px, calc(100vh - 40px)); background: var(--white); border-radius: 20px; box-shadow: 0 20px 60px rgba(4,30,56,.28); display: flex; flex-direction: column; overflow: hidden; }
.cb-panel[hidden] { display: none; }
.cb-head { background: var(--navy); color: #FFFFFF; padding: 14px 14px 14px 16px; display: flex; gap: 12px; align-items: center; }
.cb-head img { width: 42px; height: 42px; background: #FFFFFF; border-radius: 12px; padding: 4px; }
.cb-head div { flex: 1; display: flex; flex-direction: column; }
.cb-head small { color: #C9D4EA; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.cb-dot { width: 8px; height: 8px; border-radius: 999px; background: #3DDC84; display: inline-block; }
.cb-close { border: 0; background: rgba(255,255,255,.12); color: #FFFFFF; width: 36px; height: 36px; border-radius: 10px; font-size: 22px; line-height: 1; cursor: pointer; }
.cb-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.cb-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; word-wrap: break-word; }
.cb-msg--bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.cb-msg--user { background: var(--navy); color: #FFFFFF; border-bottom-right-radius: 4px; align-self: flex-end; }
.cb-msg a { font-weight: 700; }
.cb-typing { display: inline-flex; gap: 4px; }
.cb-typing i { width: 7px; height: 7px; border-radius: 999px; background: #9AA4B5; animation: cbdot 1s infinite ease-in-out; }
.cb-typing i:nth-child(2) { animation-delay: .15s; } .cb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cbdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.cb-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; background: var(--white); }
.cb-chips:empty { display: none; }
.cb-chips button { border: 1px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.cb-chips button:hover { background: #EEF2F8; }
.cb-form { display: flex; gap: 8px; padding: 10px 12px; background: var(--white); border-top: 1px solid var(--line); margin-top: 8px; }
.cb-form input { flex: 1; min-width: 0; border: 1px solid var(--field); border-radius: 12px; padding: 11px 12px; font-size: 14px; }
.cb-form input:focus { outline: none; border-color: var(--navy); }
.cb-form button { width: 44px; border: 0; border-radius: 12px; background: var(--gold); color: var(--navy-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cb-foot { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--muted-2); background: var(--white); text-align: center; }
.cb-cards { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 6px; }
.cb-card { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--white); }
.cb-card__img { width: 64px; height: 64px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.cb-card__img img { width: 54px; height: 54px; object-fit: contain; }
.cb-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cb-card__name { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 13px; line-height: 1.3; }
.cb-card__price { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 13px; }
.cb-card__price s { color: var(--muted-2); font-weight: 400; font-size: 12px; }
.cb-card__btn { align-self: flex-start; margin-top: 2px; border: 0; background: var(--gold); color: var(--navy-dark); border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 800; cursor: pointer; text-decoration: none; }
a.cb-card__btn { background: #EEF2F8; color: var(--navy); }
@media (max-width: 720px) {
  .cb { right: 12px; bottom: 12px; }
  .cb-launcher__txt { display: none; }
  .cb-launcher { padding: 6px; }
  .cb--open { left: 0; right: 0; bottom: 0; }
  .cb-panel { width: 100vw; height: 100vh; border-radius: 0; }
}
.toast { bottom: 96px; }
/* Notification : entièrement masquée quand elle n'est pas affichée */
.toast { opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(16px); transition: transform .25s ease, opacity .25s ease, visibility .25s; }
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- Guides vidéo ---------- */
.video-box { background: #041E38; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; }
.video-box video { width: 100%; height: 100%; display: block; background: #041E38; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.guide-card ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #26334D; line-height: 1.5; }
.guide-card h2 { font-size: 19px; }

/* ---------- Vraies photos produits ---------- */
.pcard__img:has(img[src*="/photos/"]), .gallery__main:has(img[src*="/photos/"]), .line__img:has(img[src*="/photos/"]),
.thumbs button:has(img[src*="/photos/"]), .cb-card__img:has(img[src*="/photos/"]), .recap-item span:has(img[src*="/photos/"]) { background: #FFFFFF; }
.pcard__img img[src*="/photos/"] { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.gallery__main img[src*="/photos/"] { width: 92%; height: 92%; }

/* Vidéo sur l'accueil */
.home-video{display:flex;flex-wrap:wrap;gap:24px;align-items:center}
.home-video__txt{flex:1 1 300px;display:flex;flex-direction:column;gap:10px}
.home-video__txt h2{font-size:26px}
.home-video__player{flex:1.4 1 380px;border-radius:12px;overflow:hidden;background:#041E38}
.home-video__player video{display:block;width:100%;aspect-ratio:16/9}
@media (max-width:640px){.home-video__player{flex-basis:100%}}
.hero__visual a:has(img[src*="/photos/"]) { background: #FFFFFF; overflow: hidden; }
.hero__visual a img[src*="/photos/"] { width: 100%; height: 100%; object-fit: cover; }

/* Choix de la langue (FR | EN) */
.topbar__links { align-items: center; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 2px; }
.lang-switch > span { display: none; }
.lang-switch button { background: transparent; border: 0; color: #E6ECF7; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; cursor: pointer; line-height: 1.2; }
.lang-switch button[aria-pressed="true"] { background: #F8C600; color: #041E38; }
.lang-switch button:hover:not([aria-pressed="true"]) { background: rgba(255,255,255,.12); }
.lang-switch button:focus-visible { outline: 2px solid #F8C600; outline-offset: 2px; }
@media (max-width: 480px) {
  .topbar__links { gap: 10px; }
  .lang-switch { padding: 1px; }
  .lang-switch button { padding: 2px 6px; font-size: 11px; }
}
/* La barre du haut reste sur une ligne avec le bouton de langue (grands écrans) */
@media (min-width: 1200px) {
  .topbar__in { flex-wrap: nowrap; column-gap: 12px; }
  .topbar__in > span:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar__links { flex: 0 0 auto; flex-wrap: nowrap; gap: 14px; white-space: nowrap; }
  .lang-switch button { padding: 2px 6px; }
}

/* Menu « Tous les rayons » (survol sur ordinateur) */
.nav__all { position: relative; display: inline-flex; }
.megamenu { display: none; position: absolute; top: 100%; left: 0; z-index: 70; width: min(980px, calc(100vw - 48px)); padding: 18px; margin-top: 4px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(4, 30, 56, .16);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; }
.nav__all:hover .megamenu, .nav__all:focus-within .megamenu { display: grid; }
.megamenu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav .megamenu a { padding: 0; border-radius: 0; background: none; font-weight: 400; }
.mega__cat { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 12px; }
.mega__cat:hover { background: #F4F6FA; }
.mega__img { flex: 0 0 52px; height: 52px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mega__img img { width: 100%; height: 100%; object-fit: cover; }
.mega__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nav .megamenu .mega__title { font-weight: 700; color: var(--navy); font-size: 14px; }
.nav .megamenu .mega__sub { font-size: 12.5px; color: #5B6B84; }
.nav .megamenu .mega__sub:hover, .nav .megamenu .mega__title:hover { text-decoration: underline; }
.mega__subs { display: flex; flex-wrap: wrap; gap: 2px 8px; }
@media (max-width: 720px) { .megamenu { display: none !important; } .nav__all { display: flex; flex-direction: column; } }
.footer__rayons { display: contents; }
/* Menu principal sur une ligne avec « Autos et pièces détachées » */
@media (min-width: 721px) { .nav { font-size: 13px; gap: 2px; } .nav a { padding: 9px 7px; } }
