/* ============================================================
   NIYA — solaires afro-urbaines
   Design system : bleu ciel pastel / encre marine
   ============================================================ */

:root {
  /* DA fond blanc + bleu ciel principal (#5FA8DC) */
  --cream: #FFFFFF;
  --cream2: #F3F8FC;
  --sand: #E0EFFA;
  --ink: #2B6699;
  --ink2: #3A79AF;
  --terra: #5FA8DC;
  --terra-d: #4690C7;
  --muted: #6C8296;
  --line: #D8E8F4;
  --white: #FFFFFF;
  --r: 3px;
  --w: 1200px;
  --hh: 118px; /* annonce + header */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, sans-serif;
}

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

/* ---------- Transitions de pages (premium) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 0.25s; }
::view-transition-new(root) { animation-duration: 0.35s; }

@media (prefers-reduced-motion: no-preference) {
  body { animation: pageIn 0.5s ease both; }
  @keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
section { scroll-margin-top: var(--hh); }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--terra);
  margin-bottom: 14px;
}

/* ---------- Annonce ---------- */
.announce {
  background: var(--sand);
  color: var(--ink);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.announce b { color: #C9982F; font-weight: 800; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--terra);
  border-bottom: 1px solid var(--terra-d);
}
.header .logo, .header .nav a, .header .cart-btn, .header .burger { color: #FFFFFF; }
.header .logo { font-size: 13px; }
.header .logo span { color: var(--sand); }
.header .nav a:hover, .header .nav a.on { border-bottom-color: #FFFFFF; }
.header .cart-count { background: #FFFFFF; color: var(--terra-d); }
.header-in {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.42em;
  margin-right: 8px;
  padding-left: 0.1em;
}
.logo span { color: var(--terra); }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-n { height: 30px; width: auto; }
.promo-logo { height: 44px; width: auto; margin: 0 auto 14px; }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.brand-grid a { display: block; border-radius: var(--r); overflow: hidden; background: var(--sand); }
.brand-grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform 0.3s ease; }
.brand-grid a:hover img { transform: scale(1.04); }
.nav { display: flex; gap: 19px; flex: 1; }
.nav a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.nav a:hover, .nav a.on { border-bottom-color: var(--terra); }
.cart-btn {
  position: relative;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.cart-count {
  background: var(--terra);
  color: var(--white);
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-weight: 800;
}
.burger { display: none; background: none; border: none; font-size: 24px; color: var(--ink); }

/* ---------- Héro promo (plage) ---------- */
.hero-promo {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--sand);
}
.hero-promo-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.hero-promo::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(12, 28, 44, 0.28);
}
.hero-promo-content {
  position: relative;
  z-index: 2;
  max-width: var(--w);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  align-self: center;
  text-align: center;
}
.hp-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 18px;
}
.hero-promo h1 {
  font-family: "Titan One", var(--font-display);
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  text-shadow:
    2px 2px 0 #4690C7,
    4px 4px 0 #3A79AF,
    6px 6px 0 #2B6699,
    8px 8px 22px rgba(16, 42, 66, 0.45);
}
.hp-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin: 12px 0 34px;
}
.hp-sub b { color: #C9982F; font-weight: 700; letter-spacing: 0.08em; }
.hp-link {
  display: inline-block;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s;
}
.hp-link:hover { border-color: #FFFFFF; }
.hero-promo h1 {
  font-size: clamp(20px, 6.6vw, 82px);
  line-height: 1.08;
  margin: 0;
  white-space: nowrap;
}

/* ---------- Bandeau défilant ---------- */
.marquee {
  background: #FFFFFF;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 13px 0;
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.marquee-track .mq { padding-right: 110px; }
.marquee-track .mq b { color: #C9982F; font-weight: 800; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sous-menus ---------- */
.nav-item { position: relative; }
.nav .caret { font-size: 9px; opacity: 0.8; }
.submenu {
  position: absolute;
  top: 100%; left: -16px;
  min-width: 235px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 22px 50px rgba(43, 102, 153, 0.16);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 80;
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.submenu a {
  display: block;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ink) !important;
  border-bottom: none;
}
.submenu a:hover { background: var(--cream2); border-bottom: none; }

/* ---------- Icônes header ---------- */
.icon-btn { background: none; border: none; display: flex; align-items: center; color: var(--ink); }
.header .icon-btn { color: #FFFFFF; }

/* ---------- Recherche ---------- */
.search-pop {
  display: none;
  position: sticky;
  top: var(--hh);
  z-index: 55;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(43, 102, 153, 0.10);
}
body.search-open .search-pop { display: block; }
.search-in { max-width: 720px; margin: 0 auto; padding: 18px 24px; }
.search-in input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--cream2);
}
.search-in input:focus { outline: 2px solid var(--terra); border-color: transparent; }
.search-results { margin-top: 6px; }
.search-results a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-radius: var(--r);
}
.search-results a:hover { background: var(--cream2); }
.search-results img { width: 52px; height: 40px; object-fit: cover; border-radius: var(--r); background: var(--sand); }
.search-results span { flex: 1; font-weight: 800; letter-spacing: 0.06em; }
.search-results b { color: var(--terra-d); }
.search-empty { padding: 12px 8px; color: var(--muted); font-size: 14px; }

.brand-cols .img img { object-position: center top; }

/* ---------- Split plein écran ---------- */
.split-full {
  border-radius: 0;
  min-height: 96vh;
}
.split-full .split-media img { height: 100%; min-height: 96vh; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--sand);
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,30,45,0) 60%, rgba(15,30,45,0.32) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  padding: 0 24px 72px;
  max-width: var(--w);
  margin: 0 auto;
  width: 100%;
}
.hero h1 { font-size: clamp(40px, 6.5vw, 84px); max-width: 13ch; color: var(--white); }
.hero p { margin: 18px 0 30px; font-size: 18px; max-width: 46ch; color: rgba(250,252,255,0.9); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-solid { background: var(--terra); color: var(--white); }
.btn-solid:hover { background: var(--terra-d); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink2); }
.btn-ghost { border-color: var(--cream); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); }
.section-head .more {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 2px solid var(--terra);
  padding-bottom: 3px;
  white-space: nowrap;
}

/* ---------- Grille produits ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.grid.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card { position: relative; }
.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--sand);
}
.card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}
.card-media img.alt { opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.card-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: var(--ink);
  color: var(--cream);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 6px 10px;
  border-radius: var(--r);
}
.card-tag.promo { background: var(--terra); color: var(--white); }
.card-info { padding: 14px 2px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-name { font-weight: 800; font-size: 15px; letter-spacing: 0.08em; }
.card-colors { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-price { font-weight: 800; font-size: 15px; white-space: nowrap; }
.card-price s { color: var(--muted); font-weight: 600; margin-right: 6px; font-size: 13px; }

/* ---------- Carrousel ---------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--terra) transparent;
}
.rail .card { scroll-snap-align: start; }

/* ---------- Bandeau split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--sand);
  border-radius: var(--r);
  overflow: hidden;
  color: var(--ink);
}
.split-media { min-height: 480px; position: relative; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-body {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.split-body h2 { font-size: clamp(28px, 3.2vw, 42px); color: var(--ink); margin-bottom: 18px; }
.split-body p { color: var(--ink2); margin-bottom: 28px; max-width: 46ch; }

.split .btn-ghost { border-color: var(--terra-d); color: var(--terra-d); }
.split .btn-ghost:hover { background: var(--terra); border-color: var(--terra); color: var(--white); }

/* ---------- Avantages ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.perk {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 24px;
}
.perk .ic { font-size: 26px; margin-bottom: 14px; }
.perk h3 { font-size: 16px; margin-bottom: 6px; font-family: var(--font-body); font-weight: 800; }
.perk p { font-size: 13.5px; color: var(--muted); }

/* ---------- UGC ---------- */
.ugc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ugc-grid .tile {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--sand);
}
.ugc-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.ugc-grid .tile:hover img { transform: scale(1.05); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--terra);
  color: var(--white);
  border-radius: var(--r);
  padding: 60px 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.newsletter h2 { font-size: clamp(26px, 3vw, 38px); color: var(--white); }
.newsletter p { opacity: 0.85; margin-top: 10px; font-size: 15px; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input {
  flex: 1;
  padding: 15px 18px;
  border: none;
  border-radius: var(--r);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
.newsletter .btn { background: var(--white); color: var(--terra-d); }
.newsletter .btn:hover { background: var(--cream2); }

/* ---------- Footer ---------- */
.footer {
  background: var(--cream2);
  color: var(--ink);
  border-top: 1px solid var(--line);
  margin-top: 88px;
  padding: 70px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 54px;
}
.footer .logo { color: var(--ink); font-size: 22px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 34ch; }
.footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terra-d);
  margin-bottom: 18px;
  font-weight: 800;
}
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { color: var(--ink2); font-size: 14px; }
.footer ul a:hover { color: var(--terra-d); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.pay-badges { display: flex; gap: 8px; }
.pay-badges span {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ---------- Drawer panier ---------- */
.drawer-veil {
  position: fixed; inset: 0;
  background: rgba(10,25,40,0.55);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  background: var(--cream);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(10,25,40,0.25);
}
body.cart-open .drawer { transform: translateX(0); }
body.cart-open .drawer-veil { opacity: 1; pointer-events: auto; }
body.cart-open { overflow: hidden; }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 20px; }
.drawer-close { background: none; border: none; font-size: 26px; line-height: 1; color: var(--ink); }
.drawer-items { flex: 1; overflow-y: auto; padding: 10px 24px; }
.cart-line {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-line img { width: 76px; height: 95px; object-fit: cover; border-radius: var(--r); }
.cart-line .t { font-weight: 800; font-size: 14px; letter-spacing: 0.05em; }
.cart-line .c { font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}
.qty button { background: none; border: none; width: 28px; height: 28px; font-size: 15px; color: var(--ink); }
.qty b { min-width: 24px; text-align: center; font-size: 13px; }
.cart-line .p { font-weight: 800; font-size: 14px; text-align: right; }
.cart-line .rm { background: none; border: none; color: var(--muted); font-size: 12px; text-decoration: underline; margin-top: 8px; }
.drawer-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 24px 26px; background: var(--cream2); }
.drawer-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 6px;
}
.drawer-note { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.drawer-foot .btn { width: 100%; }

/* ---------- Page catalogue ---------- */
.page-head { padding: 60px 24px 8px; }
.page-head h1 { font-size: clamp(34px, 4.5vw, 56px); }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.tabs { display: flex; gap: 10px; margin: 30px 0 36px; flex-wrap: wrap; }
.tab {
  padding: 10px 22px;
  border: 1px solid var(--ink);
  border-radius: 40px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: none;
  color: var(--ink);
  transition: all 0.15s;
}
.tab.on, .tab:hover { background: var(--terra); border-color: var(--terra); color: var(--white); }

/* ---------- Page produit ---------- */
.product {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  padding: 48px 0 20px;
  align-items: start;
}
.gallery-main {
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sand);
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.thumbs button {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: var(--r);
  overflow: hidden;
  padding: 0;
  background: var(--sand);
}
.thumbs button.on { border-color: var(--terra); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { position: sticky; top: calc(var(--hh) + 20px); }
.pinfo h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: 0.04em; }
.pinfo .sub { color: var(--muted); margin-top: 6px; }
.pinfo .price { font-size: 26px; font-weight: 800; margin: 18px 0 4px; }
.pinfo .price s { color: var(--muted); font-weight: 600; font-size: 19px; margin-right: 10px; }
.pinfo .promo-note { color: var(--terra); font-weight: 700; font-size: 13.5px; }
.opt-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; margin: 26px 0 12px; }
.opt-label span { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.12s;
}
.swatch.on { border-color: var(--terra); background: var(--terra); color: var(--white); }
.add-row { display: flex; gap: 12px; margin-top: 30px; }
.add-row .qty { height: 52px; }
.add-row .qty button { width: 40px; height: 50px; }
.add-row .btn { flex: 1; }
.pfeatures { margin-top: 34px; border-top: 1px solid var(--line); }
.pfeatures details { border-bottom: 1px solid var(--line); }
.pfeatures summary {
  padding: 18px 2px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.pfeatures summary::after { content: "+"; font-size: 18px; color: var(--terra); }
.pfeatures details[open] summary::after { content: "–"; }
.pfeatures .body { padding: 0 2px 20px; color: var(--ink2); font-size: 14.5px; }
.pfeatures ul { padding-left: 20px; display: grid; gap: 6px; }

/* ---------- Pages texte ---------- */
.prose { max-width: 780px; margin: 0 auto; padding: 40px 24px 80px; }
.prose h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 28px; }
.prose h2 { font-size: 24px; margin: 36px 0 14px; }
.prose h3 { font-size: 18px; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--ink2); font-size: 15.5px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; display: grid; gap: 6px; }
.prose a { color: var(--terra); text-decoration: underline; }
.prose .lead { font-size: 19px; line-height: 1.65; }

/* ---------- Marque ---------- */
.brand-hero {
  background: var(--cream2);
  color: var(--ink);
  padding: 90px 0;
  text-align: center;
}
.brand-hero h1 { font-size: clamp(36px, 5vw, 64px); color: var(--ink); max-width: 18ch; margin: 0 auto; }
.brand-hero p { max-width: 56ch; margin: 22px auto 0; color: var(--ink2); font-size: 17px; }
.brand-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}
.brand-cols .img {
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sand);
}
.brand-cols img { width: 100%; height: 100%; object-fit: cover; }
.brand-cols h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 18px; }
.brand-cols p { color: var(--ink2); margin-bottom: 14px; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
  margin-top: 6px;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--terra); border-color: transparent; }

/* ---------- Success ---------- */
.success-box { max-width: 640px; margin: 80px auto; padding: 0 24px; text-align: center; }
.success-box .mark {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--white);
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
}
.success-box h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.success-box p { color: var(--muted); margin-bottom: 12px; }
.success-box .btn { margin-top: 24px; }

/* ---------- Icônes ---------- */
.ic svg { width: 30px; height: 30px; color: var(--terra); }
.promo-note .ico-sun, .drawer-hint .ico-sun {
  width: 15px; height: 15px;
  color: var(--terra-d);
  vertical-align: -2px;
  display: inline-block;
}

/* ---------- Pop-up promo ---------- */
.promo-veil {
  position: fixed; inset: 0;
  background: rgba(50, 100, 145, 0.45);
  backdrop-filter: blur(3px);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.promo-pop {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(0.97);
  width: min(880px, calc(100vw - 40px));
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 40px 100px rgba(43, 102, 153, 0.30);
  overflow: hidden;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s;
}
body.promo-open .promo-veil { opacity: 1; pointer-events: auto; }
body.promo-open .promo-pop {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.promo-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 44px;
}
.promo-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.15;
  white-space: nowrap;
  color: var(--ink);
}
.promo-rule {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--terra);
  margin: 22px 0;
}
.promo-code-min {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--terra-d);
  margin-bottom: 34px;
}
.promo-code-min:hover { color: var(--ink); }
.promo-cta {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s, border-color 0.2s;
}
.promo-cta:hover { color: var(--terra-d); border-color: var(--terra-d); }
.promo-media { position: relative; background: #F2F2F0; }
.promo-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.promo-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 19px;
  color: var(--ink);
  line-height: 1;
}
@media (max-width: 640px) {
  .promo-pop { grid-template-columns: 1fr; min-height: 0; }
  .promo-media { min-height: 210px; order: -1; }
  .promo-body { padding: 34px 26px; }
}

/* ---------- Le film ---------- */
.film-box {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sand);
}
.film-box video {
  width: 100%;
  display: block;
  max-height: 82vh;
  object-fit: cover;
}
.film-sound {
  position: absolute;
  bottom: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(16, 42, 66, 0.25);
}
.film-sound:hover { background: #FFFFFF; }

/* ---------- Essayage virtuel ---------- */
.tryon-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.tryon-stage {
  position: relative;
  background: var(--cream2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tryon-stage canvas { max-width: 100%; height: auto; display: block; }
.tryon-status {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
}
.tryon-side { display: flex; flex-direction: column; gap: 18px; }
.tryon-modes { display: flex; gap: 10px; }
.tryon-modes .btn { flex: 1; text-align: center; }
.tryon-models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}
.tryon-models button {
  background: var(--cream2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.tryon-models button.on { border-color: var(--terra-d); outline: 2px solid var(--terra); }
.tryon-models img { width: 100%; height: 34px; object-fit: contain; }
.tryon-models span { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: var(--ink); }
.tryon-tune { display: flex; flex-direction: column; gap: 10px; }
.tryon-tune label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.tryon-tune input { flex: 1; accent-color: var(--terra); }
@media (max-width: 900px) {
  .tryon-wrap { grid-template-columns: 1fr; }
}

/* ---------- Page catégorie (prochainement) ---------- */
.coming {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--cream2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.coming-body { padding: 56px 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.coming-body h2 { font-size: clamp(24px, 2.6vw, 34px); }
.coming-body p { color: var(--muted); max-width: 48ch; }
.coming-form { display: flex; gap: 10px; width: 100%; max-width: 460px; }
.coming-form input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
}
.coming-media { position: relative; min-height: 380px; }
.coming-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .coming { grid-template-columns: 1fr; }
  .coming-media { min-height: 240px; order: -1; }
}

/* ---------- Champ code promo ---------- */
.promo-field { display: flex; gap: 8px; margin-bottom: 14px; }
.promo-field input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
  text-transform: uppercase;
}
.promo-field input:focus { outline: 2px solid var(--terra); border-color: transparent; }
.promo-field .apply {
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.promo-field .apply:hover { background: var(--ink); color: var(--cream); }
.promo-applied {
  background: var(--cream2);
  border: 1px dashed var(--terra);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.promo-applied b { color: var(--terra-d); letter-spacing: 0.1em; }
.promo-applied button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
}

/* ---------- Lignes récap panier ---------- */
.drawer-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}
.drawer-row.bogo { color: var(--terra-d); font-weight: 800; }
.drawer-hint {
  background: var(--cream2);
  border: 1px dashed var(--terra);
  border-radius: var(--r);
  margin-bottom: 14px;
}
.hint-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}
.hint-btn b { color: #C9982F; }
.hint-btn:hover { background: var(--sand); }

/* ---------- Pop-up ajout panier ---------- */
.upsell-veil {
  position: fixed; inset: 0;
  background: rgba(50, 100, 145, 0.45);
  backdrop-filter: blur(3px);
  z-index: 160;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.upsell-pop {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(0.97);
  width: min(400px, calc(100vw - 40px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 34px 90px rgba(43, 102, 153, 0.32);
  padding: 38px 34px 30px;
  text-align: center;
  z-index: 170;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s, transform 0.28s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
body.upsell-open .upsell-veil { opacity: 1; pointer-events: auto; }
body.upsell-open .upsell-pop {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.upsell-check {
  width: 52px; height: 52px;
  border-radius: 52px;
  background: var(--sand);
  color: var(--terra-d);
  display: flex;
  align-items: center;
  justify-content: center;
}
.upsell-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
}
.upsell-pop p { color: var(--muted); font-size: 14.5px; }
.upsell-pop p b { color: #C9982F; }
.upsell-pop .btn { width: 100%; }
.upsell-later {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: underline;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--cream);
  padding: 13px 24px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid, .perks, .ugc-grid { grid-template-columns: repeat(2, 1fr); }
  .grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .newsletter, .product, .brand-cols, .footer-grid { grid-template-columns: 1fr; }
  .split-media { min-height: 320px; order: -1; }
  .newsletter { padding: 44px 28px; }
  .pinfo { position: static; }
  .thumbs { grid-template-columns: repeat(6, 1fr); }
  .section { padding: 60px 0; }
}
@media (max-width: 720px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-promo { min-height: 72vh; }
  .hero-promo-content { padding-bottom: 56px; }
  .nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav { max-height: 70vh; overflow-y: auto; }
  .nav-item { position: static; }
  .nav .caret { display: none; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
  }
  .submenu a { border-bottom: 1px solid var(--line); font-weight: 600; }
  .header .nav a { color: var(--ink); }
  .header .nav a:hover, .header .nav a.on { border-bottom-color: var(--terra); }
  body.nav-open .nav { display: flex; }
  .burger { display: block; }
  .header-in { gap: 16px; justify-content: space-between; }
  .hero { min-height: 66vh; }
  .newsletter form { flex-direction: column; }
  .footer-grid { gap: 30px; }
}
