/* =========================================================
   MOGUN — feuille de style principale
   Palette : noir profond / blanc cassé, typo condensée
   ========================================================= */

:root {
  --black: #0c0c0c;
  --ink: #161616;
  --off-white: #efede8;
  --paper: #f7f6f3;
  --grey: #9a9a96;
  --grey-dark: #555;
  --line: rgba(255, 255, 255, .18);

  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-script: "Permanent Marker", cursive;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Typographie ---------- */
.display, .title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: .01em;
  margin: 0;
}
.display { font-size: clamp(64px, 10vw, 132px); }
.title { font-size: clamp(36px, 4.6vw, 56px); }
.title--dark { color: var(--ink); }

.eyebrow, .tagline, .caps-text, .subtitle {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 600;
}
.eyebrow { margin: 0 0 14px; }
.tagline { margin: 22px 0 28px; line-height: 1.7; }
.caps-text { margin: 14px 0 0; line-height: 1.8; color: #d9d9d6; font-weight: 500; }
.subtitle { color: var(--ink); margin: 10px 0 18px; }
.body-text { color: #333; font-size: 14px; line-height: 1.7; margin: 0 0 22px; }
.body-text--light { color: #cfcfcb; margin-top: 18px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .2s, color .2s, transform .2s;
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 12, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; gap: 44px;
}
.header__logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: #fff; transition: width .25s;
}
.nav a:hover::after { width: 100%; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.icon-btn { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; position: relative; display: inline-flex; }
.icon-btn svg { width: 20px; height: 20px; }
.lang { font-size: 11px; font-weight: 600; letter-spacing: .12em; display: flex; gap: 6px; color: var(--grey); }
.lang .is-active { color: #fff; }
.cart__count {
  position: absolute; top: -4px; right: -8px;
  min-width: 16px; height: 16px; border-radius: 8px;
  background: #fff; color: var(--ink);
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(82vh, 720px);
  display: flex; align-items: center;
  background: var(--black);
}
.hero__media {
  position: absolute; inset: 0 0 0 30%;
  background-size: cover; background-position: center 20%;
  filter: grayscale(1) contrast(1.05);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--black) 0%, rgba(12,12,12,.55) 30%, rgba(12,12,12,0) 60%),
              linear-gradient(0deg, rgba(12,12,12,.6) 0%, transparent 30%);
}
.hero__content { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.hero__script {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%) rotate(-8deg);
  font-family: var(--font-script); font-size: 22px; line-height: 1.35;
  color: rgba(255,255,255,.75); margin: 0; z-index: 1;
}
.hero__script::after { content: ""; display: block; width: 60px; height: 1px; background: rgba(255,255,255,.5); margin: 18px 0 0 40px; }

/* ---------- Réassurance ---------- */
.reassurance { background: var(--off-white); color: var(--ink); padding: 26px 0; }
.reassurance__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reassurance__item { display: flex; align-items: center; justify-content: center; gap: 14px; }
.reassurance__item svg { width: 26px; height: 26px; flex: none; }
.reassurance__item p { margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; }

/* ---------- Le grit ---------- */
.grit { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; min-height: 340px; background: var(--black); }
.grit__media { background-size: cover; background-position: center; filter: grayscale(1); position: relative; }
.grit__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--black)); }
.grit__content { display: flex; flex-direction: column; justify-content: center; padding: 48px var(--gutter); }
.rule { display: block; width: 40px; height: 1px; background: rgba(255,255,255,.5); margin-top: 22px; }

/* ---------- Produit Comp V1 ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr .8fr; background: var(--paper); color: var(--ink); }
.product__text { padding: 64px var(--gutter); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.product__price { font-family: var(--font-display); font-size: 30px; margin: 0 0 14px; }
.product__media { overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .6s; }
.product__media:hover img { transform: scale(1.03); }
.product__features { list-style: none; margin: 0; padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 26px; background: var(--off-white); }
.product__features li { display: flex; align-items: center; gap: 18px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.product__features small { font-weight: 500; color: var(--grey-dark); letter-spacing: .08em; }
.product__features svg { width: 26px; height: 26px; flex: none; }

/* ---------- Composer mon gi ---------- */
.composer { background: var(--black); padding: 70px 0; }
.composer__grid { display: grid; grid-template-columns: 1.1fr 1.1fr .9fr; gap: 40px; align-items: center; }
.composer__text .btn { margin-top: 24px; }
.composer__visual { display: flex; align-items: center; justify-content: center; gap: 14px; }
.composer__visual img { width: 44%; max-width: 210px; }
.plus { font-size: 26px; font-weight: 300; color: var(--grey); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.steps li { display: flex; gap: 22px; align-items: baseline; }
.steps__num { font-family: var(--font-display); font-size: 24px; color: #fff; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.steps strong { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.steps small { color: var(--grey); font-size: 12px; }

/* ---------- Stay the course ---------- */
.course { position: relative; overflow: hidden; padding: 70px 0; }
.course__media { position: absolute; inset: 0; background-size: cover; background-position: center 35%; filter: grayscale(1); }
.course__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,12,12,.85) 0%, rgba(12,12,12,.35) 55%, rgba(12,12,12,.7) 100%); }
.course__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: #070707; border-top: 1px solid rgba(255,255,255,.06); padding: 60px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 40px; }
.footer__logo { height: 54px; width: auto; }
.footer__claim { color: var(--grey); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 18px; }
.footer h3 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; }
.footer__grid a { display: block; color: var(--grey); font-size: 13px; margin-bottom: 10px; transition: color .2s; }
.footer__grid a:hover { color: #fff; }
.newsletter { display: flex; border-bottom: 1px solid var(--line); }
.newsletter input { flex: 1; background: none; border: 0; color: #fff; font: inherit; padding: 10px 0; outline: none; }
.newsletter button { background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); color: var(--grey); font-size: 12px; }
.footer__legal nav { display: flex; gap: 22px; }
.footer__legal a:hover { color: #fff; }

/* =========================================================
   Tablette
   ========================================================= */
@media (max-width: 1024px) {
  .header__inner { gap: 28px; }
  .nav { gap: 22px; }
  .product { grid-template-columns: 1fr 1fr; }
  .product__features { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-around; }
  .composer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .hide-mobile { display: none !important; }

  /* Header : burger | logo centré | panier */
  .header__inner { justify-content: space-between; gap: 0; }
  .header__logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .header__logo img { height: 38px; }
  .header__actions { margin-left: 0; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 32px; height: 32px; background: none; border: 0; padding: 4px; cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; gap: 0; padding: 24px var(--gutter);
    background: var(--black);
    transform: translateX(-100%); transition: transform .3s ease;
  }
  .nav.is-open { transform: none; }
  .nav a { font-family: var(--font-display); font-size: 34px; letter-spacing: .04em; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a::after { display: none; }

  /* Hero */
  .hero { min-height: 560px; align-items: flex-start; }
  .hero__media { inset: 0; background-position: 65% 20%; }
  .hero__media::after { background: linear-gradient(90deg, rgba(12,12,12,.85) 0%, rgba(12,12,12,.2) 70%), linear-gradient(0deg, var(--black) 0%, transparent 35%); }
  .hero__content { padding-top: 56px; }
  .display { font-size: 64px; }
  .tagline { max-width: 200px; }
  .hero__script { display: none; }

  /* Réassurance : 4 colonnes compactes */
  .reassurance { padding: 16px 0; }
  .reassurance__grid { gap: 6px; }
  .reassurance__item { flex-direction: column; text-align: center; gap: 8px; }
  .reassurance__item svg { width: 22px; height: 22px; }
  .reassurance__item p { font-size: 8.5px; letter-spacing: .06em; }

  /* Grit : texte sur l'image */
  .grit { grid-template-columns: 1fr; min-height: 300px; }
  .grit__media { position: absolute; inset: 0; }
  .grit__media::after { background: linear-gradient(90deg, transparent 20%, rgba(12,12,12,.85) 65%); }
  .grit__content { position: relative; margin-left: auto; width: 62%; padding: 40px var(--gutter) 40px 0; }
  .grit .title { font-size: 34px; }
  .grit .caps-text { font-size: 10px; }

  /* Produit : texte | image */
  .product { grid-template-columns: 1.1fr 1fr; }
  .product__text { padding: 36px 0 36px var(--gutter); }
  .product__text .body-text { display: none; }
  .product .title { font-size: 40px; }
  .product .subtitle { font-size: 10px; }
  .product .btn { padding: 11px 14px; font-size: 10px; }
  .product__media img { object-fit: contain; padding: 18px 10px; filter: none; }
  .product__features { display: none; }

  /* Composer */
  .composer { padding: 48px 0; }
  .composer__grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .composer__text .caps-text { font-size: 10px; }
  .composer__visual img { width: 34%; }
  .composer__text { display: flex; flex-direction: column; align-items: center; }

  /* Stay the course */
  .course { padding: 52px 0; }
  .course__inner { flex-direction: column; align-items: flex-start; }
  .course .caps-text { font-size: 10px; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Sélecteur de langue dans le menu mobile ---------- */
.nav__lang { display: none; }
@media (max-width: 760px) {
  .nav__lang { display: flex; gap: 24px; margin-top: 28px; }
  .nav .nav__lang a { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .16em; border: 0; padding: 0; color: var(--grey); }
  .nav .nav__lang a.is-active { color: #fff; }
}

/* Le flou du header empêche le menu plein écran de couvrir la page : on le retire sur mobile */
@media (max-width: 760px) {
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--black); }
  .nav { height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; }
}

/* =========================================================
   Page « L'esprit Mogun »
   ========================================================= */
.nav a[aria-current="page"]::after { width: 100%; }

.page-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(80vh, 680px); background: var(--black); }
.page-hero__media { overflow: hidden; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.page-hero__text { display: flex; flex-direction: column; justify-content: center; padding: 64px var(--gutter); max-width: 620px; }
.page-hero__title { font-size: clamp(56px, 8vw, 110px); margin-bottom: 28px; }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: #d9d9d6; margin: 0 0 14px; }
.lead--strong { color: #fff; font-weight: 600; }

.manifesto { background: var(--paper); color: var(--ink); padding: clamp(60px, 9vw, 110px) 0; }
.manifesto__inner { max-width: 820px; }
.manifesto p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.8; margin: 0 0 22px; color: #2a2a2a; }
.manifesto__quote {
  margin: 44px 0 0; padding-left: 26px; border-left: 3px solid var(--ink);
  font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 54px); line-height: 1; text-transform: uppercase;
}

.values { background: var(--black); padding: clamp(60px, 8vw, 100px) 0; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.value { border-top: 1px solid var(--line); padding-top: 24px; }
.value__num { font-family: var(--font-display); font-size: 22px; color: var(--grey); }
.value h2 { font-family: var(--font-display); font-weight: 400; font-size: 36px; text-transform: uppercase; margin: 10px 0 12px; letter-spacing: .02em; }
.value p { color: #bdbdb9; font-size: 14px; line-height: 1.7; margin: 0; }

@media (max-width: 1024px) {
  .values__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .page-hero { grid-template-columns: 1fr; }
  .page-hero__media { height: 360px; }
  .page-hero__text { padding: 40px var(--gutter) 52px; }
  .values__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   Menu déroulant « Boutique »
   ========================================================= */
.nav { align-items: center; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; }
.chev { width: 12px; height: 12px; stroke-width: 2; transition: transform .25s; }
.nav__toggle { display: none; }
.has-dropdown::after { content: ""; position: absolute; left: -20px; right: -20px; top: 100%; height: 22px; }

.dropdown {
  position: absolute; top: calc(100% + 20px); left: -22px; z-index: 70;
  width: 360px; padding: 10px;
  background: #121212; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 50px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown:hover .nav__link .chev,
.has-dropdown:focus-within .nav__link .chev { transform: rotate(180deg); }

.nav .dropdown a { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 400; padding: 0; }
.nav .dropdown a::after { display: none; }
.dropdown__item { display: flex !important; align-items: center; gap: 16px; padding: 10px !important; transition: background .2s; }
.dropdown__item:hover, .dropdown__item:focus-visible { background: #1d1d1d; }
.dropdown__item img { width: 58px; height: 58px; object-fit: cover; object-position: center 20%; filter: grayscale(1); flex: none; }
.dropdown__item span { display: flex; flex-direction: column; }
.dropdown__item strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: .03em; text-transform: uppercase; line-height: 1; }
.dropdown__item small { color: var(--grey); font-size: 12px; margin-top: 4px; }
.nav .dropdown .dropdown__all {
  display: flex; justify-content: space-between; margin-top: 6px; padding: 14px 10px 6px !important;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}

@media (max-width: 760px) {
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .nav__item > .nav__link { flex: 1; border-bottom: 0; }
  .nav__link .chev, .has-dropdown::after { display: none; }
  .nav__toggle {
    display: grid; place-items: center; width: 52px; height: 52px;
    background: none; border: 0; color: #fff; cursor: pointer;
  }
  .nav__toggle .chev { width: 20px; height: 20px; }
  .nav__toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .dropdown {
    position: static; width: 100%; padding: 0 0 14px; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .nav .dropdown a { font-family: var(--font-body); border-bottom: 0; }
  .dropdown__item { padding: 8px 0 !important; }
  .dropdown__item img { width: 46px; height: 46px; }
  .dropdown__item strong { font-size: 22px; }
  .nav .dropdown .dropdown__all { padding: 14px 0 4px !important; }
}
@media (max-width: 760px) { .nav { align-items: stretch; } }

/* Un élément masqué reste masqué, quel que soit son style d affichage */
[hidden] { display: none !important; }

/* Ancres internes (menu → blocs de l'accueil) */
.page-hero--home, .product { position: relative; }
.anchor { position: absolute; top: 0; left: 0; width: 0; height: 0; }
#esprit, #composer, #grit-v1, #comp-v1, #grit { scroll-margin-top: var(--header-h); }
.page-hero--home { min-height: min(72vh, 620px); }
.product__media img[src*="comp-v1-logo"] { object-position: center 40%; }

/* Bandeau d'environnement (recette / local) */
.env-banner { position: fixed; left: 12px; bottom: 12px; z-index: 200; background: #e0a43a; color: #111; font: 700 10px var(--font-body); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.35); }

/* Lien « Offres spéciales » du menu */
.nav a.nav__promo { color: #ff5a5f; }
