/* Styles communs de la boutique : couleurs, en-tête, boutons, cartes produits (accueil et pages boutique) */
:root {
	color-scheme: light;
	--navy: #0a1f52;
	--navy-deep: #071638;
	--navy-mid: #13306f;
	--blue: #2453a6;
	--blue-soft: #eaf0fa;
	--blue-mist: #f4f7fc;
	--ink: #102044;
	--muted: #5f6b84;
	--line: #e1e7f0;
	--paper: #f7f8fb;
	--gold: #f0b429;
	--gold-soft: #fff4d6;
	--red: #d92d20;
	--green: #127a45;
	--white: #fff;
	--radius: 16px;
	--shadow-sm: 0 1px 2px rgb(10 31 82 / 6%), 0 4px 14px rgb(10 31 82 / 5%);
	--shadow-md: 0 14px 34px rgb(10 31 82 / 12%);
	--ease: cubic-bezier(.2, .7, .2, 1);
	font-family: 'DM Sans', sans-serif;
	color: var(--ink);
	scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: 'Outfit', sans-serif; letter-spacing: -.01em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

/* ---- Boutons ---- */
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 10px; background: var(--navy); color: var(--white); font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.button:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 8px 20px rgb(10 31 82 / 18%); }
.button svg { transition: transform .2s var(--ease); }
.button:hover svg { transform: translateX(3px); }
.button-ghost, .button.secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.button-ghost:hover, .button.secondary:hover { background: var(--navy); color: var(--white); }
.button-gold { background: var(--gold); color: var(--navy-deep); }
.button-gold:hover { background: #ffc94d; color: var(--navy-deep); }
.button-wa, .button.wa { background: #25d366; color: #fff; }
.button-wa:hover, .button.wa:hover { background: #1ebe5b; }
.button-pill { border-radius: 999px; }

/* ---- Bandeau du haut ---- */
.topline { background: var(--navy-deep); color: #dfe7f7; font-size: 13px; }
.topline-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topline-list { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.topline-list li { display: inline-flex; align-items: center; gap: 8px; }
.topline-list li + li { padding-left: 22px; border-left: 1px solid rgb(255 255 255 / 18%); }
.topline svg { color: var(--gold); flex: none; }
.topline .topline-help { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; color: #fff; font-weight: 700; }
.topline-help a { color: #fff; white-space: nowrap; }
.topline-help a:hover { color: var(--gold); }
.topline-help i { color: #6f82a8; font-style: normal; }
.topline-help svg { color: #25d366; }
.topline-help span { color: #b9c6e0; font-weight: 500; }

/* ---- En-tête ---- */
.head-main { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / 97%); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(12px); }
.head-row { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.head-main .brand { flex-shrink: 0; display: inline-flex; align-items: center; }
.head-main .brand-logo { display: block; height: 62px; width: auto; max-width: 260px; object-fit: contain; object-position: left center; }
.head-search { position: relative; flex: 1; max-width: 560px; margin-inline: auto; }
.head-search input { width: 100%; height: 48px; padding: 0 54px 0 48px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--blue-mist); color: var(--ink); font-size: 15px; transition: border-color .2s, background .2s, box-shadow .2s; }
.head-search input::placeholder { color: #8a95ab; }
.head-search input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgb(36 83 166 / 12%); }
.head-search > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.head-search button { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer; transition: background .2s; }
.head-search button:hover { background: var(--blue); }
.head-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.head-icon { position: relative; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--navy); cursor: pointer; transition: background .2s, color .2s; }
.head-icon:hover, .head-icon.is-current { background: var(--blue-soft); }
.head-badge, .head-fav-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; background: var(--red); color: #fff; font: 700 10.5px/1 'DM Sans', sans-serif; }
.head-fav-count { background: var(--navy); }
.head-fav-count:empty { display: none; }
.head-main .menu-button { display: none; }

/* Barre de navigation bleu marine */
.head-nav { position: relative; z-index: 30; background: var(--navy); }
.head-nav-list { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.head-nav-list > li { position: relative; }
.head-nav-link { position: relative; min-height: 52px; display: inline-flex; align-items: center; gap: 7px; padding: 0 18px; border: 0; background: none; color: #e3eaf8; font: 600 15px 'DM Sans', sans-serif; cursor: pointer; transition: color .2s; }
.head-nav-link::after { position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; content: ''; border-radius: 3px 3px 0 0; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.head-nav-link:hover, .head-nav-link.is-current { color: #fff; }
.head-nav-link:hover::after, .head-nav-link.is-current::after { transform: scaleX(1); }
.head-nav-link .chev { display: inline-flex; transition: transform .2s; }
.nav-tag { position: absolute; top: 5px; right: 2px; padding: 2px 6px; border-radius: 999px; background: var(--red); color: #fff; font: 700 9.5px/1.2 'DM Sans', sans-serif; letter-spacing: .02em; }
.nav-drop { position: absolute; top: 100%; left: 0; min-width: 270px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.has-drop:hover .nav-drop, .has-drop:focus-within .nav-drop, .has-drop.is-open .nav-drop { opacity: 1; visibility: visible; transform: none; }
.has-drop:hover .chev, .has-drop.is-open .chev { transform: rotate(180deg); }
.nav-drop a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 9px; color: var(--ink); font-size: 14.5px; font-weight: 600; transition: background .15s, color .15s; }
.nav-drop a:hover { background: var(--blue-soft); color: var(--navy); }
.nav-drop small { color: var(--muted); font-weight: 500; }
.nav-drop .nav-drop-all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; color: var(--blue); }

/* Menu mobile */
.mobile-panel, .mobile-search { display: none; }

/* ---- Titres de section ---- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-title { position: relative; margin: 0; padding-left: 50px; color: var(--navy); font-size: clamp(26px, 3vw, 32px); font-weight: 700; line-height: 1.15; }
.section-title::before { position: absolute; left: 0; top: 50%; width: 34px; height: 3px; content: ''; border-radius: 3px; background: var(--blue); }
.section-lead { margin: 8px 0 0 50px; color: var(--muted); font-size: 15px; }
.section-more { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 15px; font-weight: 700; transition: gap .2s, color .2s; }
.section-more:hover { gap: 11px; color: var(--navy); }

/* ---- Pastilles de filtre ---- */
.chips { display: flex; gap: 8px; margin: 0 0 26px; padding: 2px 0 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: #34435f; font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ---- Cartes produits ---- */
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.product { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.product:hover { transform: translateY(-5px); border-color: #c9d6ec; box-shadow: var(--shadow-md); }
.product-image { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; padding: 18px; background: linear-gradient(180deg, #f6f8fc, #eef2f9); }
.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
/* Deuxième photo au survol : superposée exactement sur la principale (même cadre, même marge intérieure) */
.product-image { --pad: 18px; }
.product-image .img-main { transition: transform .7s cubic-bezier(.16, 1, .3, 1), opacity .5s ease; }
.product-image .img-alt { position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.card-view { position: absolute; left: 50%; bottom: 14px; z-index: 2; padding: 8px 16px; border-radius: 999px; background: rgb(10 31 82 / 92%); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; transform: translate(-50%, 12px); transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
/* Survol seulement sur souris / pavé tactile : sur téléphone et tablette, l'image principale reste affichée */
@media (hover: hover) and (pointer: fine) {
	.product:hover .img-main { transform: scale(1.04); }
	.product:hover .has-alt .img-alt { opacity: 1; }
	.product:hover .has-alt .img-main { opacity: 0; } /* photos sur fond blanc fondu : la principale ne transparaît pas sous la deuxième */
	.product:hover .card-view { opacity: 1; transform: translate(-50%, 0); }
}
.product-placeholder { width: 74px; height: 74px; display: grid; place-items: center; border: 1px solid #cbd6e8; border-radius: 50%; color: var(--blue); font: 700 20px 'Outfit', sans-serif; }
.product-info { flex: 1; display: flex; flex-direction: column; padding: 14px 15px 15px; }
#produits .product-info { padding-right: 15px; }
.product-category, .product-cat { margin: 0 0 5px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.product h3, .product-info h2 { display: -webkit-box; min-height: 42px; margin: 0 0 10px; overflow: hidden; color: var(--navy); font: 600 15.5px/1.35 'Outfit', sans-serif; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product h3 a:hover, .product-info h2 a:hover { color: var(--blue); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; }
.product .price { margin: 0; color: var(--navy); font: 700 19px 'Outfit', sans-serif; }
.product .price.is-promo { color: var(--red); }
.price-old { color: #98a2b5; font-size: 13px; text-decoration: line-through; }
.stock-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 9px 0 12px; padding: 3px 10px; border-radius: 999px; background: #e8f6ee; color: var(--green); font-size: 12px; font-weight: 700; }
.stock-pill::before { width: 6px; height: 6px; content: ''; border-radius: 50%; background: currentColor; }
.stock-pill.is-low { background: var(--gold-soft); color: #9a5b00; }
.product .preorder-date { margin: 9px 0 12px; }
.product form { width: 100%; margin-top: auto; }
.product-add { width: 100%; min-height: 44px; gap: 8px; padding-inline: 10px; font-size: 14px; }
.product-add:hover { box-shadow: none; }
.product-add:hover svg { transform: none; }
.product .card-promo { top: 12px; left: 12px; padding: 4px 9px; border-radius: 999px; background: var(--red); }
.product .card-preorder { top: 12px; left: 12px; padding: 4px 9px; border-radius: 999px; }
.product .card-promo + .card-preorder { top: 40px; }
.product .card-fav { top: 10px; right: 10px; width: 36px; height: 36px; border-color: transparent; font-size: 21px; }

/* Apparition douce au défilement (seulement si JavaScript est actif) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
	.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.topline-list li:nth-child(2) { display: none; }
	.head-nav, .head-row > .head-search { display: none; }
	.head-row { min-height: 68px; gap: 12px; }
	.head-main .brand-logo { height: 52px; max-width: 220px; }
	.head-main .menu-button { display: grid; }
	.mobile-search { display: block; padding: 12px 0 14px; background: #fff; border-bottom: 1px solid var(--line); }
	.mobile-search .head-search { display: block; max-width: none; }
	.mobile-panel { position: absolute; top: 100%; left: 0; right: 0; display: block; max-height: calc(100dvh - 68px); overflow-y: auto; padding: 8px 0 22px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 18px 30px rgb(7 22 56 / 14%); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
	.mobile-panel.is-open { opacity: 1; visibility: visible; transform: none; }
	.mobile-panel nav > a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 16px; font-weight: 600; }
	.mobile-panel .nav-promo { color: var(--red); }
	.mobile-panel-title { margin: 20px 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
	.mobile-cats { display: flex; flex-wrap: wrap; gap: 8px; }
	.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.container { width: calc(100% - 32px); }
	.topline-inner { justify-content: center; min-height: 34px; font-size: 12.5px; }
	.topline-list { display: none; }
	.head-row { min-height: 64px; }
	.head-main .brand-logo { height: 46px; max-width: min(200px, 52vw); }
	.head-icon { width: 42px; height: 42px; }
	.mobile-panel { max-height: calc(100dvh - 64px); }
	.section-head { margin-bottom: 20px; }
	.section-title { padding-left: 36px; font-size: 22px; }
	.section-title::before { width: 26px; }
	.section-lead { margin-left: 36px; font-size: 14px; }
	.section-more { font-size: 14px; }
	.section-more .long { display: none; }
	.chips { margin-inline: -16px; padding-inline: 16px; margin-bottom: 20px; }
	.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.product { border-radius: 14px; }
	.product-image { padding: 12px; --pad: 12px; }
	.product-info, #produits .product-info { padding: 11px 11px 12px; }
	.product-category, .product-cat { font-size: 10px; }
	.product h3, .product-info h2 { min-height: 38px; font-size: 13.5px; }
	.product .price { font-size: 16px; }
	.price-old { font-size: 12px; }
	.stock-pill { margin: 7px 0 10px; padding: 2px 8px; font-size: 11px; }
	.product-add { min-height: 40px; gap: 6px; font-size: 12.5px; }
	.product-add svg { width: 16px; height: 16px; }
	.product-add .long { display: none; }
	.product .card-promo, .product .card-preorder { top: 8px; left: 8px; font-size: 10px; }
	.product .card-promo + .card-preorder { top: 32px; }
	.product .card-fav { top: 6px; right: 6px; width: 32px; height: 32px; font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
	.product-image .img-main, .product:hover .img-main { transform: none !important; }
	.product-image .img-alt, .card-view { transition: none; }
}
