/* ==========================================================
   Fredereric — Librairie numérique
   Palette : bleu marine & noir · Glassmorphism · Moderne / Minimaliste
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #0b1b33;
  --navy-2: #12294a;
  --navy-deep: #060f1f;
  --black: #08090c;
  --ink: #111319;
  --white: #ffffff;
  --off: #f6f7fa;
  --gray: #8a93a6;
  --gray-2: #5c6579;
  --line: rgba(255, 255, 255, .12);
  --accent: #6f9eff;
  --accent-soft: rgba(111, 158, 255, .14);
  --gold: #e0b64a;
  --danger: #e2565a;
  --success: #3fbf8f;

  --glass-bg: rgba(255, 255, 255, .06);
  --glass-brd: rgba(255, 255, 255, .14);
  --blur: 18px;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 46px rgba(3, 8, 20, .34);
  --shadow-soft: 0 8px 26px rgba(3, 8, 20, .2);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--navy-deep);
  color: var(--white);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-dark { background: var(--black); }
.section-navy { background: linear-gradient(180deg, var(--navy-deep), var(--navy) 55%, var(--navy-deep)); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-eyebrow {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); font-weight: 600; display: block; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--gray); font-size: 15.5px; }
.section-head::after {
  content: ''; display: block; width: 54px; height: 2px; margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border-radius: 50px; border: 1px solid transparent;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  position: relative; overflow: hidden;
}
.btn-filled { background: var(--white); color: var(--navy-deep); }
.btn-filled:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(255, 255, 255, .18); }
.btn-accent { background: linear-gradient(120deg, var(--accent), #4d7fe0); color: #040b18; }
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(111, 158, 255, .32); }
.btn-ghost {
  background: var(--glass-bg); color: var(--white);
  border-color: var(--glass-brd); backdrop-filter: blur(var(--blur));
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  padding: 18px 0; transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.transparent { background: linear-gradient(180deg, rgba(6, 15, 31, .72), transparent); }
.site-header.scrolled {
  background: rgba(8, 12, 24, .82); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line); padding: 12px 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #2f5fb3);
  display: grid; place-items: center; color: #040b18;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px;
  box-shadow: 0 8px 20px rgba(111, 158, 255, .3);
}
.logo-text { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.logo-text small { display: block; font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--gray); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 12.5px; letter-spacing: 1.6px; text-transform: uppercase;
  font-weight: 500; color: rgba(255, 255, 255, .78); position: relative; padding: 4px 0;
  transition: color .3s var(--ease);
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent); transition: width .35s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--glass-bg);
  border: 1px solid var(--glass-brd); backdrop-filter: blur(var(--blur));
  color: var(--white); cursor: pointer; transition: background .3s var(--ease), transform .3s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 50px; background: var(--accent); color: #040b18;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.cart-count.bounce { animation: cartBounce .45s var(--ease); }
@keyframes cartBounce { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }

.nav-cta { padding: 12px 24px; font-size: 11.5px; }
.burger { display: none; }

/* ---------- MENU MOBILE ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(6, 15, 31, .92); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  visibility: hidden; opacity: 0; transform: translateY(-14px);
  transition: opacity .35s var(--ease), visibility .35s var(--ease), transform .35s var(--ease);
}
.mobile-menu.open { visibility: visible; opacity: 1; transform: translateY(0); }
.mobile-menu a {
  font-family: 'Playfair Display', serif; font-size: 26px; padding: 10px 0;
  opacity: 0; transform: translateY(14px); transition: color .3s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu.open a { animation: menuIn .5s var(--ease) forwards; }
.mobile-menu.open a:nth-of-type(1) { animation-delay: .06s; }
.mobile-menu.open a:nth-of-type(2) { animation-delay: .12s; }
.mobile-menu.open a:nth-of-type(3) { animation-delay: .18s; }
.mobile-menu.open a:nth-of-type(4) { animation-delay: .24s; }
.mobile-menu.open a:nth-of-type(5) { animation-delay: .3s; }
.mobile-menu.open a:nth-of-type(6) { animation-delay: .36s; }
.mobile-menu.open a:nth-of-type(7) { animation-delay: .42s; }
.mobile-menu.open a:nth-of-type(8) { animation-delay: .48s; }
@keyframes menuIn { to { opacity: 1; transform: translateY(0); } }
.mobile-menu .menu-close {
  position: absolute; top: 22px; right: 22px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-brd);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.mobile-menu .menu-div { width: 46px; height: 1px; background: var(--line); margin: 18px 0; }
.mobile-menu .menu-sub { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); }

/* Burger animé en croix */
.burger {
  width: 44px; height: 42px; border-radius: 50%; background: var(--glass-bg);
  border: 1px solid var(--glass-brd); cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 13px; width: 18px; height: 1.6px; background: #fff; border-radius: 2px;
  transition: transform .35s var(--ease), opacity .3s var(--ease), top .35s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }
.burger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(6, 15, 31, .96) 8%, rgba(11, 27, 51, .82) 46%, rgba(8, 9, 12, .9) 100%);
}
.hero-inner { max-width: 680px; position: relative; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 8px 18px; border-radius: 50px; background: var(--glass-bg);
  border: 1px solid var(--glass-brd); backdrop-filter: blur(var(--blur));
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255, 255, 255, .82);
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero p.lead { font-size: 17px; color: rgba(255, 255, 255, .72); margin-bottom: 34px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--gray);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after { content: ''; width: 1px; height: 34px; background: linear-gradient(180deg, var(--accent), transparent); animation: scrollPulse 2.2s infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- GLASS CARD ---------- */
.glass {
  background: var(--glass-bg); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(var(--blur)); border-radius: var(--radius);
}

/* ---------- CARROUSEL PRODUITS ---------- */
.carousel-wrap { position: relative; }
.carousel-viewport { overflow: hidden; padding: 10px 0 20px; }
.carousel-track {
  display: flex; gap: 24px; transition: transform .55s var(--ease); will-change: transform;
}
.carousel-track > * { flex: 0 0 calc((100% - 48px) / 3); }
.carousel-btn {
  position: absolute; top: 42%; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(8, 12, 24, .7); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px); color: #fff; display: grid; place-items: center;
  cursor: pointer; z-index: 5; transition: background .3s var(--ease), transform .3s var(--ease);
}
.carousel-btn:hover { background: var(--accent); color: #040b18; transform: scale(1.08); }
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }
.carousel-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- PRODUCT CARD (hover 3D) ---------- */
.product-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid var(--glass-brd); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.product-card:hover {
  transform: perspective(900px) rotateX(4deg) translateY(-8px);
  box-shadow: var(--shadow); border-color: rgba(111, 158, 255, .45);
}
.product-card .img-wrap {
  position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; background: var(--navy-2);
}
.product-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.product-card:hover .img-wrap img { transform: scale(1.07); }
.product-card .img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 15, 31, .55));
  opacity: 0; transition: opacity .5s var(--ease);
}
.product-card:hover .img-wrap::after { opacity: 1; }
.badge-promo {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  padding: 6px 14px; border-radius: 50px; background: var(--gold); color: #14100a;
  font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
}
.product-card .info { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card .cat {
  font-size: 10px; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 9px; font-weight: 600;
}
.product-card h3 { font-size: 19px; margin-bottom: 12px; line-height: 1.32; }
.product-card .price { font-size: 20px; font-weight: 700; font-family: 'Inter', sans-serif; margin-top: auto; }
.product-card .price .old { font-size: 13px; font-weight: 400; color: var(--gray); text-decoration: line-through; margin-left: 9px; }
.product-card .btns { margin-top: 18px; display: flex; gap: 10px; }
.product-card .btns .btn { flex: 1; padding: 12px 16px; font-size: 11px; }

/* ---------- COLLECTIONS ---------- */
.collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.collection-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; border: 1px solid var(--glass-brd);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.collection-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.collection-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.collection-card:hover img { transform: scale(1.08); }
.collection-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 15, 31, .1) 30%, rgba(6, 15, 31, .9));
}
.collection-body { position: relative; z-index: 2; padding: 30px; width: 100%; }
.collection-body span { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.collection-body h3 { font-size: 25px; margin: 8px 0 12px; }
.collection-body .link { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.collection-body .link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .35s var(--ease); }
.collection-card:hover .link svg { transform: translateX(5px); }

/* ---------- RÉASSURANCE ---------- */
.reassurance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.reassurance-item {
  padding: 34px 22px; border-radius: var(--radius); text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid var(--glass-brd); backdrop-filter: blur(var(--blur));
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.reassurance-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: rgba(111, 158, 255, .4); }
.reassurance-item svg { width: 46px; height: 46px; stroke: var(--accent); fill: none; stroke-width: 1.5; margin: 0 auto 18px; }
.reassurance-item h3 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.reassurance-item p { font-size: 13px; color: var(--gray); line-height: 1.55; }

/* ---------- GRILLE CATALOGUE ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center;
  margin-bottom: 44px;
}
.filter-chip {
  padding: 10px 22px; border-radius: 50px; border: 1px solid var(--glass-brd);
  background: var(--glass-bg); color: rgba(255, 255, 255, .8); cursor: pointer;
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 500;
  transition: all .3s var(--ease);
}
.filter-chip:hover { background: rgba(255, 255, 255, .13); }
.filter-chip.active { background: var(--accent); color: #040b18; border-color: var(--accent); font-weight: 600; }
.filter-select {
  padding: 11px 18px; border-radius: 50px; background: var(--glass-bg);
  border: 1px solid var(--glass-brd); color: #fff; font-size: 12.5px; font-family: 'Inter', sans-serif;
  cursor: pointer; outline: none;
}
.filter-select option { background: var(--navy); color: #fff; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.products-grid.wide { grid-template-columns: repeat(3, 1fr); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--gray); }
.empty-state svg { width: 54px; height: 54px; stroke: var(--gray-2); fill: none; stroke-width: 1.4; margin: 0 auto 20px; }

/* ---------- FICHE PRODUIT ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.gallery-main {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--navy-2); border: 1px solid var(--glass-brd);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .6s var(--ease); }
.gallery-main img:hover { transform: scale(1.03); }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-brd);
  background: rgba(6, 15, 31, .62); backdrop-filter: blur(10px); color: #fff;
  display: grid; place-items: center; cursor: pointer; z-index: 4;
  transition: background .3s var(--ease);
}
.gallery-arrow:hover { background: var(--accent); color: #040b18; }
.gallery-arrow.left { left: 16px; }
.gallery-arrow.right { right: 16px; }
.gallery-arrow svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 16px; }
.gallery-thumbs img {
  width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm);
  cursor: pointer; opacity: .55; border: 1px solid var(--glass-brd); transition: all .3s var(--ease);
}
.gallery-thumbs img:hover { opacity: .85; }
.gallery-thumbs img.active { opacity: 1; border-color: var(--accent); }

.product-info h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.product-info .cat-tag { font-size: 10.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.product-price { font-size: 32px; font-weight: 700; font-family: 'Inter', sans-serif; margin: 20px 0 6px; }
.product-price .old { font-size: 17px; color: var(--gray); text-decoration: line-through; margin-left: 12px; font-weight: 400; }
.product-desc { color: rgba(255, 255, 255, .72); font-size: 15.5px; margin: 22px 0 28px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 50px;
  background: var(--glass-bg); border: 1px solid var(--glass-brd); font-size: 12px; color: rgba(255, 255, 255, .82);
}
.meta-chip svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--glass-brd); border-radius: 50px; overflow: hidden; background: var(--glass-bg); }
.qty-control button {
  width: 44px; height: 46px; background: none; border: none; color: #fff;
  font-size: 20px; cursor: pointer; transition: background .3s;
}
.qty-control button:hover { background: rgba(255, 255, 255, .1); }
.qty-control input {
  width: 52px; height: 46px; text-align: center; background: none; border: none;
  color: #fff; font-size: 15px; font-weight: 600; outline: none;
}
.stock-info { font-size: 13px; color: var(--success); }
.stock-info.low { color: var(--gold); }
.stock-info.out { color: var(--danger); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-actions .btn { flex: 1; min-width: 190px; }
.product-reassurance {
  margin-top: 30px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--glass-bg); border: 1px solid var(--glass-brd); backdrop-filter: blur(var(--blur));
}
.product-reassurance div { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.product-reassurance div + div { margin-top: 12px; }
.product-reassurance svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.6; flex-shrink: 0; }
.product-reassurance a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(3, 6, 14, .95); z-index: 9999;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox.active { opacity: 1; }
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px; color: #fff; font-size: 38px; line-height: 1;
  cursor: pointer; background: none; border: none; transition: transform .3s;
}
.lightbox-close:hover { transform: rotate(90deg); color: var(--accent); }

/* ---------- PAGE HEADER INTERNE ---------- */
.page-hero { padding: calc(var(--header-h) + 70px) 0 60px; background: linear-gradient(180deg, var(--navy), var(--navy-deep)); position: relative; }
.page-hero::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 60px; height: 2px; background: var(--accent);
}
.page-hero h1 { font-size: clamp(28px, 5vw, 46px); margin-bottom: 12px; }
.page-hero p { color: var(--gray); max-width: 620px; }
.breadcrumb { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-2); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- PANIER ---------- */
.cart-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 34px; align-items: start; }
.cart-card { border-radius: var(--radius); border: 1px solid var(--glass-brd); background: var(--glass-bg); overflow: hidden; }
.cart-line { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; padding: 20px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: none; }
.cart-line img { width: 92px; height: 118px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-line h3 { font-size: 17px; margin-bottom: 5px; }
.cart-line .ref { font-size: 11.5px; color: var(--gray-2); letter-spacing: .6px; }
.cart-line .line-price { font-weight: 700; font-size: 17px; margin-top: 8px; }
.cart-line .remove {
  background: none; border: none; color: var(--gray-2); font-size: 12px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; margin-top: 10px; padding: 0;
  transition: color .3s;
}
.cart-line .remove:hover { color: var(--danger); }

.summary { border-radius: var(--radius); border: 1px solid var(--glass-brd); background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); padding: 28px; position: sticky; top: 100px; }
.summary h3 { font-size: 22px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--gray); padding: 9px 0; }
.summary-total { display: flex; justify-content: space-between; font-size: 22px; font-weight: 700; font-family: 'Inter', sans-serif; padding-top: 16px; margin-top: 12px; border-top: 1px solid var(--line); }

/* ---------- FORMULAIRES ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--glass-brd);
  color: #fff; font-family: 'Inter', sans-serif; font-size: 14.5px; outline: none;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: rgba(255, 255, 255, .08); }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-2); }
.field textarea { resize: vertical; min-height: 130px; }
.field select option { background: var(--navy); }
.field input[disabled] { opacity: .55; cursor: not-allowed; }
.form-note { font-size: 11.5px; color: var(--gray-2); margin-top: 6px; }

.form-card {
  max-width: 520px; margin: 0 auto; border-radius: var(--radius);
  border: 1px solid var(--glass-brd); background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)); padding: 40px;
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.auth-tab {
  flex: 1; padding: 14px; background: none; border: none; color: var(--gray);
  font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .3s var(--ease);
}
.auth-tab.active { color: #fff; border-bottom-color: var(--accent); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; display: none; }
.alert.show { display: block; animation: fadeUp .4s var(--ease); }
.alert-error { background: rgba(226, 86, 90, .14); border: 1px solid rgba(226, 86, 90, .4); color: #ffb9bb; }
.alert-success { background: rgba(63, 191, 143, .14); border: 1px solid rgba(63, 191, 143, .4); color: #a9f0d5; }
.alert-info { background: var(--accent-soft); border: 1px solid rgba(111, 158, 255, .4); color: #cfe0ff; }

.choice-grid { display: grid; gap: 12px; margin-top: 18px; }
.choice-btn {
  width: 100%; padding: 18px 22px; border-radius: var(--radius-sm); cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--glass-brd); color: #fff;
  text-align: left; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
  transition: all .3s var(--ease);
}
.choice-btn:hover { background: rgba(111, 158, 255, .14); border-color: var(--accent); transform: translateX(4px); }
.choice-btn small { display: block; font-size: 12.5px; color: var(--gray); font-weight: 400; margin-top: 3px; }

/* ---------- COMPTE ---------- */
.account-tabs { display: flex; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.order-card {
  border: 1px solid var(--glass-brd); border-radius: var(--radius);
  background: var(--glass-bg); overflow: hidden; margin-bottom: 18px;
}
.order-head {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}
.order-head strong { font-size: 15px; }
.order-head .date { font-size: 12.5px; color: var(--gray); }
.order-body { padding: 20px 22px; }
.order-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.order-item { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.order-item span.qty { color: var(--gray); }
.status {
  padding: 6px 15px; border-radius: 50px; font-size: 11px; font-weight: 700;
  letter-spacing: 1.3px; text-transform: uppercase;
}
.status-en_attente { background: rgba(224, 182, 74, .18); color: var(--gold); }
.status-confirmee { background: var(--accent-soft); color: var(--accent); }
.status-expediee { background: rgba(111, 158, 255, .22); color: #b9d0ff; }
.status-livree { background: rgba(63, 191, 143, .18); color: var(--success); }
.status-annulee { background: rgba(226, 86, 90, .18); color: #ff9ea1; }

/* ---------- CONTACT ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.6; flex-shrink: 0; margin-top: 3px; }
.contact-info-item h4 { font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gray); margin-bottom: 5px; font-weight: 600; }
.contact-info-item p, .contact-info-item a { font-size: 15.5px; color: rgba(255, 255, 255, .85); }
.contact-info-item a:hover { color: var(--accent); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-brd); margin-top: 32px; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: #fff;
  font-family: 'Playfair Display', serif; font-size: 19px; padding: 24px 40px 24px 0;
  cursor: pointer; position: relative; transition: color .3s;
}
.faq-q:hover { color: var(--accent); }
.faq-q::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: 'Inter', sans-serif; font-size: 24px; color: var(--accent); transition: transform .35s var(--ease);
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); color: var(--gray); font-size: 15px; }
.faq-a p { padding-bottom: 24px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 46px; }
.footer-grid h4 { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 2.6px; text-transform: uppercase; margin-bottom: 20px; color: rgba(255, 255, 255, .9); }
.footer-grid p, .footer-grid a { font-size: 14px; color: var(--gray); line-height: 2; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand .logo { margin-bottom: 18px; }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-brd);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.socials a:hover { background: var(--accent); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: #fff; }
.socials a:hover svg { fill: #040b18; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap;
  gap: 12px; justify-content: space-between; font-size: 12.5px; color: var(--gray-2);
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 120%);
  padding: 15px 26px; border-radius: 50px; background: rgba(8, 12, 24, .95);
  border: 1px solid var(--glass-brd); backdrop-filter: blur(16px);
  color: #fff; font-size: 14px; z-index: 9998; box-shadow: var(--shadow);
  transition: transform .45s var(--ease); max-width: 92vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { border-color: rgba(226, 86, 90, .5); }
.toast.success { border-color: rgba(63, 191, 143, .5); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes revealFallback { to { opacity: 1; } }
.reveal { animation: revealFallback .8s var(--ease) .35s forwards; }
.reveal.visible { animation: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- LOADER ---------- */
.loader { display: flex; justify-content: center; padding: 60px 0; }
.loader::after {
  content: ''; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- PAGES LÉGALES ---------- */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { font-size: 24px; margin: 34px 0 14px; }
.legal-content p, .legal-content li { color: rgba(255, 255, 255, .75); font-size: 15px; margin-bottom: 12px; }
.legal-content ul { padding-left: 22px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .products-grid, .products-grid.wide { grid-template-columns: repeat(3, 1fr); }
  .carousel-track > * { flex: 0 0 calc((100% - 24px) / 2); }
  .product-detail { grid-template-columns: 1fr; gap: 36px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  :root { --header-h: 66px; }
  .section { padding: 64px 0; }
  .container { padding: 0 18px; }

  /* Nav : menu mobile */
  .main-nav, .nav-cta { display: none; }
  .burger { display: block; }
  .logo-text { font-size: 19px; }

  /* Hero */
  .hero { min-height: 84vh; padding: calc(var(--header-h) + 40px) 0 70px; }
  .hero-scroll { display: none; }
  .hero-actions .btn { flex: 1; min-width: 150px; }

  /* Grilles : 1 colonne */
  .products-grid, .products-grid.wide { grid-template-columns: 1fr; gap: 20px; }
  .collections-grid { grid-template-columns: 1fr; }
  .reassurance { grid-template-columns: 1fr 1fr; gap: 14px; }
  .reassurance-item { padding: 24px 16px; }
  .reassurance-item svg { width: 36px; height: 36px; margin-bottom: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  /* Carrousel : scroll natif tactile */
  .carousel-track {
    transform: none !important;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; padding-bottom: 8px;
    scrollbar-width: none;
  }
  .carousel-track::-webkit-scrollbar { display: none; }
  .carousel-track > * { flex: 0 0 72vw; scroll-snap-align: start; }
  .carousel-btn { display: none; }
  .carousel-viewport { overflow: visible; }

  /* Fiche produit */
  .gallery-thumbs { overflow-x: auto; padding-bottom: 6px; }
  .gallery-thumbs img { width: 64px; height: 64px; flex-shrink: 0; }
  .gallery-arrow { display: none; }
  .product-actions .btn { flex: 1 1 100%; min-width: 0; }

  /* Panier */
  .cart-line { grid-template-columns: 74px 1fr; gap: 14px; }
  .cart-line img { width: 74px; height: 96px; grid-row: span 2; }
  .cart-line .line-actions { grid-column: 2; display: flex; align-items: center; gap: 14px; }
  .form-card { padding: 26px 20px; }

  /* Compte */
  .order-head { flex-direction: column; align-items: flex-start; }

  .section-head { margin-bottom: 40px; }
  .toast { left: 14px; right: 14px; transform: translate(0, 120%); max-width: none; }
  .toast.show { transform: translate(0, 0); }
}

@media (max-width: 420px) {
  .reassurance { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line img { width: 64px; height: 84px; }
}

/* --- Très petits écrans (≤ 420px) : header compact, rien ne se chevauche --- */
@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .nav-actions { gap: 8px; }
  .logo-mark { width: 36px; height: 36px; font-size: 18px; }
  .logo-text { font-size: 17px; }
  .logo-text small { font-size: 8px; letter-spacing: 2px; }
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn svg { width: 18px; height: 18px; }
  .cart-count { min-width: 17px; height: 17px; font-size: 10px; }
  .burger { width: 40px; height: 38px; }
  .burger span { left: 12px; width: 16px; }
  .burger span:nth-child(1) { top: 14px; }
  .burger span:nth-child(2) { top: 19px; }
  .burger span:nth-child(3) { top: 24px; }
  .burger.open span:nth-child(1) { top: 19px; }
  .burger.open span:nth-child(3) { top: 19px; }
}
