/* ================================================================
   PANACHE DISTRIBUTION — site institutionnel
   Direction artistique : minimal blanc, typographie noire,
   imagerie omniprésente, layouts asymétriques façon magazine.
   ================================================================ */

:root {
  --black:        #0a0a0a;
  --black-soft:   #1a1a1a;
  --grey-90:      #2a2a2a;
  --grey-50:      #6b6b6b;
  --grey-30:      #9a9a9a;
  --grey-15:      #d4d4d4;
  --grey-08:      #e8e8e8;
  --grey-04:      #f4f4f4;
  --grey-02:      #fafafa;
  --white:        #ffffff;

  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", "Cormorant Garamond", Georgia, serif;

  --container:    1640px;
  --container-md: 1280px;
  --gutter:       clamp(1.25rem, 4vw, 3rem);
  --section-y:    clamp(5rem, 12vw, 11rem);

  --ease:         cubic-bezier(0.2, 0, 0, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--black); color: var(--white); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--black);
  display: inline-block;
}
.eyebrow--muted { color: var(--grey-50); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--black);
}
.display {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: .98;
}

h1, .h1 {
  font-size: clamp(2.8rem, 9vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
h2, .h2 {
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
h3, .h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h4 {
  font-size: 14px;
  letter-spacing: .02em;
  font-weight: 600;
  line-height: 1.3;
}

p { margin: 0 0 1em; }
.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.4;
  color: var(--grey-50);
  font-weight: 400;
  max-width: 30ch;
}
.lead-light {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.5;
  color: var(--grey-50);
  max-width: 50ch;
}
.body-large {
  font-size: 18px;
  line-height: 1.55;
  max-width: 60ch;
}

.muted { color: var(--grey-50); }
.center { text-align: center; }
.italic { font-style: italic; font-family: var(--display); font-weight: 300; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-md {
  max-width: var(--container-md);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-sm { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.section-tight { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.section-soft { background: var(--grey-04); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark .eyebrow { color: var(--white); }
.section-dark .lead, .section-dark .muted { color: var(--grey-30); }

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--grey-08);
  transition: padding .3s var(--ease);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--black);
  line-height: 0;
}
.brand-logo {
  display: block;
  height: 38px;
  width: auto;
  user-select: none;
}
@media (max-width: 640px) {
  .brand-logo { height: 32px; }
}

.nav {
  display: flex;
  gap: clamp(1.4rem, 2.5vw, 2.4rem);
  align-items: center;
}
.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--black);
  position: relative;
  transition: opacity .2s ease;
}
.nav a:not(.nav-cta):hover { opacity: .55; }
.nav a.is-active { color: var(--black); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 1px;
  background: var(--black);
}
.nav a.nav-cta {
  background: var(--black);
  color: var(--white);
  padding: .65rem 1.25rem;
  border-radius: 100px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.nav a.nav-cta:hover { background: var(--grey-90); color: var(--white); transform: translateY(-1px); opacity: 1; }
.nav a.nav-cta::after { display: none !important; }

.nav-toggle { display: none; padding: .25rem; color: var(--black); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 60px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-08);
    padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-110%);
    transition: transform .3s var(--ease);
    box-shadow: 0 12px 30px rgba(0,0,0,.04);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--grey-08); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a.is-active::after { display: none; }
  .nav-cta { margin-top: 1rem; text-align: center; }
}

/* Push body content past fixed header */
main { padding-top: 70px; }

/* ---------- Buttons / Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 1.1rem 2rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
}
.btn--primary { background: var(--black); color: var(--white); border: 1px solid var(--black); }
.btn--primary:hover { background: var(--grey-90); border-color: var(--grey-90); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--black); border: 1px solid var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }
.btn--white { background: var(--white); color: var(--black); border: 1px solid var(--white); }
.btn--white:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn .arrow { font-size: 1.1em; line-height: 1; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.flow-link {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--black);
  position: relative;
  padding: .25rem 0;
  text-transform: uppercase;
  transition: gap .25s var(--ease);
}
.flow-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(1);
  transition: transform .35s var(--ease);
}
.flow-link:hover { gap: 1em; }
.flow-link:hover::after { transform: scaleX(1.05); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: var(--black);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-weight: 500;
  font-size: 14px;
  transition: opacity .2s ease;
}
.text-link:hover { opacity: .55; }

.huge-link {
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
  font-family: var(--sans);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--black);
  position: relative;
  transition: opacity .25s var(--ease);
}
.huge-link .arrow { font-size: .9em; transition: transform .35s var(--ease); }
.huge-link:hover .arrow { transform: translate(.2em, -.05em); }
.huge-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.15em;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .55s var(--ease-out);
}
.huge-link:hover::after { transform: scaleX(1); }

/* ---------- Hero (vertical editorial) ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}
.hero .eyebrow { max-width: 80ch; }

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(3rem, 8vw, 6rem);
}
@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; gap: 2rem; }
  .hero-text { gap: 2rem; }
}
.hero-side-image {
  overflow: hidden;
  background: var(--grey-04);
  min-height: 320px;
}
@media (max-width: 900px) {
  .hero-side-image { aspect-ratio: 1 / 1; }
}
.hero-side-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-h1 {
  font-size: clamp(2.6rem, 9vw, 9.5rem);
  letter-spacing: -0.04em;
  line-height: .92;
  margin: 0;
}
.hero-h1 em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: baseline;
  padding-top: 1.25rem;
  border-top: 1px solid var(--grey-08);
}
.hero-meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: .65em;
}
.hero-meta-item strong {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-meta-item span {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-50);
}

.hero-image {
  position: relative;
  width: 100%;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-image-caption {
  position: absolute;
  left: var(--gutter);
  bottom: 1.2rem;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* ---------- Page head (interior) ---------- */
.page-head {
  padding: clamp(6rem, 11vw, 9rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--grey-08);
}
.page-head h1 { max-width: 14ch; }
.page-head .lead-light { margin-top: 1.5rem; max-width: 56ch; }
.page-head .legal-meta {
  margin-top: 1.25rem;
  font-size: 13px;
  color: var(--grey-50);
  letter-spacing: .02em;
}

/* ---------- Legal text (politique de confidentialité, etc.) ---------- */
.legal-text {
  max-width: 68ch;
  margin: 0 auto;
  color: var(--black-soft);
  font-size: 16px;
  line-height: 1.65;
}
.legal-text h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.01em;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--black);
}
.legal-text h2:first-child { margin-top: 0; }
.legal-text h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .01em;
  margin-top: 1.75rem;
  margin-bottom: .5rem;
  color: var(--black);
}
.legal-text p { margin-bottom: 1rem; }
.legal-text p:last-child { margin-bottom: 0; }
.legal-text ul {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.5rem;
  list-style: disc;
}
.legal-text ul li { margin-bottom: .35rem; }
.legal-text a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-text a:hover { color: var(--grey-50); }
body.lang-ar .legal-text {
  font-family: "Tajawal", var(--sans);
  font-size: 17px;
  line-height: 1.85;
}
body.lang-ar .legal-text h2 { font-family: "Tajawal", var(--sans); }

.crumbs {
  display: flex;
  gap: .55em;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--grey-50);
  margin-bottom: 2rem;
}
.crumbs a { color: var(--grey-50); }
.crumbs a:hover { color: var(--black); }
.crumbs span:not(.sep) { color: var(--black); }

/* ---------- Image utilities ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--grey-04);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.media:hover img { transform: scale(1.03); }
.media--portrait { aspect-ratio: 4 / 5; }
.media--portrait-tall { aspect-ratio: 3 / 4; }
.media--landscape { aspect-ratio: 16 / 10; }
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--ultrawide { aspect-ratio: 16 / 7; }

.caption { display: none; }

/* ---------- Editorial layout blocks ---------- */
.split-asym {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split-asym--reverse { grid-template-columns: 1fr 1.3fr; }
@media (max-width: 800px) {
  .split-asym, .split-asym--reverse { grid-template-columns: 1fr; }
}

.editorial-text p + p { margin-top: 1em; }

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: end;
}
/* In pairs, both images share the same aspect-ratio so heights match.
   Tweak the second child to match the first (3/4 portrait-tall is the canon). */
.image-pair .media,
.image-pair .media--portrait,
.image-pair .media--portrait-tall,
.image-pair .media--landscape,
.image-pair .media--square {
  aspect-ratio: 3 / 4;
}
.image-pair--offset > :first-child { margin-top: clamp(2rem, 6vw, 6rem); }
.image-pair--offset > :last-child { margin-top: 0; }
@media (max-width: 700px) {
  .image-pair, .image-pair--offset { grid-template-columns: 1fr; }
  .image-pair--offset > :first-child { margin-top: 0; }
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 2rem);
}
.image-stack--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) {
  .image-stack, .image-stack--3 { grid-template-columns: 1fr 1fr; }
}

/* Magazine 12-column flexible grid */
.mag-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
.mag-grid > * { min-width: 0; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }
.start-2 { grid-column-start: 2; }
.start-3 { grid-column-start: 3; }
.start-4 { grid-column-start: 4; }
.start-5 { grid-column-start: 5; }
.start-6 { grid-column-start: 6; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }
.start-9 { grid-column-start: 9; }
.start-10 { grid-column-start: 10; }
@media (max-width: 1100px) {
  .col-3 { grid-column: span 6; }
  .col-4 { grid-column: span 6; }
  .col-5 { grid-column: span 12; }
  .col-6 { grid-column: span 12; }
  .col-7 { grid-column: span 12; }
  .col-8 { grid-column: span 12; }
  .col-9 { grid-column: span 12; }
  .start-2, .start-3, .start-4, .start-5, .start-6, .start-7, .start-8, .start-9, .start-10 { grid-column-start: auto; }
}
@media (max-width: 600px) {
  .col-3, .col-4 { grid-column: span 12; }
}

/* ---------- Manifest grid (big-left + comfortable-right) ---------- */
.manifest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) {
  .manifest-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Editorial intro (robust split for hero+body) ---------- */
.editorial-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: start;
}
.editorial-intro-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 500;
}
.editorial-intro-body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--grey-50);
  max-width: none;
}
.editorial-intro-body p + p { margin-top: 1em; }
@media (max-width: 900px) {
  .editorial-intro {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
}

/* ---------- Editorial header (eyebrow + title + side link) ---------- */
.editorial-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.editorial-head-aside {
  font-size: 17px;
  line-height: 1.55;
  color: var(--grey-50);
  max-width: 44ch;
}
@media (max-width: 900px) {
  .editorial-head { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
}

/* ---------- Marquee / oversized text ---------- */
.marquee-text {
  font-size: clamp(3rem, 11vw, 13rem);
  letter-spacing: -0.045em;
  line-height: .9;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  margin: 0;
}
.oversize {
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
  font-weight: 500;
  margin-bottom: 0;
}
.oversize-italic {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.04em;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 1;
}

/* ---------- Supplier card (editorial) ---------- */
.supplier-row {
  display: grid;
  grid-template-columns: 1fr;
}
.supplier-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-top: 1px solid var(--grey-08);
  text-decoration: none;
  color: inherit;
  transition: background .35s var(--ease);
  position: relative;
}
.supplier-card:last-child { border-bottom: 1px solid var(--grey-08); }
.supplier-card:hover { background: var(--grey-04); }
.supplier-card:hover .supplier-card-image img { transform: scale(1.04); }
.supplier-card:nth-child(even) > .supplier-card-text { order: 2; }
.supplier-card:nth-child(even) > .supplier-card-image { order: 1; }

.supplier-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--grey-04);
}
.supplier-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.supplier-card-text {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.supplier-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-50);
}
.supplier-card-text h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-weight: 500;
}
.supplier-card-desc {
  font-size: 17px;
  line-height: 1.5;
  color: var(--grey-50);
  max-width: 42ch;
}
.supplier-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.tag {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--grey-15);
  padding: .35rem .75rem;
  border-radius: 100px;
  color: var(--grey-50);
  font-weight: 500;
}

@media (max-width: 800px) {
  .supplier-card,
  .supplier-card:nth-child(even) { grid-template-columns: 1fr; }
  .supplier-card:nth-child(even) > .supplier-card-text { order: 2; }
  .supplier-card:nth-child(even) > .supplier-card-image { order: 1; }
}

/* ---------- Stats / numbers row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--grey-08);
}
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-right: 1px solid var(--grey-08);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  padding-right: clamp(1.25rem, 3vw, 2rem);
}
.stat-item:last-child { border-right: 0; }
@media (max-width: 700px) {
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--grey-08); }
}
.stat-num {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: .8rem;
}
.stat-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-50);
}

/* ---------- Pull quote / oversize statement ---------- */
.statement {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 22ch;
  margin: 0;
}
.statement-italic {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
}

/* ---------- Pillar cards ---------- */
.pillar {
  border-top: 1px solid var(--grey-15);
  padding-top: 1.5rem;
}
.pillar-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--grey-50);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}
.pillar h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-bottom: .8rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pillar p {
  color: var(--grey-50);
  font-size: 15px;
  line-height: 1.55;
  max-width: 36ch;
}

/* ---------- Product list (editorial) ---------- */
.product-list {
  border-top: 1px solid var(--grey-08);
}
.product-list-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.6fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--grey-08);
  transition: padding .25s var(--ease), background .25s var(--ease);
}
.product-list-row:hover {
  padding-left: .5rem;
  background: var(--grey-04);
}
.product-num {
  font-size: 12px;
  color: var(--grey-30);
  font-feature-settings: "tnum";
  letter-spacing: .05em;
}
.product-name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--black);
}
.product-desc {
  font-size: 14px;
  color: var(--grey-50);
  line-height: 1.4;
}
.product-cat {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--grey-50);
  text-align: right;
}
@media (max-width: 700px) {
  .product-list-row {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
  }
  .product-desc { grid-column: 2; font-size: 13px; }
  .product-cat { grid-column: 2; text-align: left; padding-top: .25rem; }
}

/* ---------- Categories grid (oversize) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--grey-08);
  border: 1px solid var(--grey-08);
}
.cat-tile {
  background: var(--white);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: background .3s var(--ease);
  text-decoration: none;
  color: inherit;
}
.cat-tile:hover { background: var(--grey-04); }
.cat-tile-num {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--grey-30);
  font-weight: 500;
}
.cat-tile h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 500;
}
.cat-tile p {
  font-size: 13px;
  color: var(--grey-50);
  margin-top: .5rem;
}

/* ---------- Marquee strip (suppliers strip) ---------- */
.suppliers-strip {
  border-top: 1px solid var(--grey-08);
  border-bottom: 1px solid var(--grey-08);
  padding: 2.5rem 0;
}
.suppliers-strip-inner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}
.supplier-item {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.supplier-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--black);
}
.supplier-country {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--grey-50);
  font-weight: 500;
}

/* ---------- CTA — drives forward ---------- */
.cta-block {
  padding: clamp(5rem, 12vw, 11rem) 0;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-block .container {
  position: relative;
  z-index: 2;
}
.cta-block h2 {
  font-size: clamp(2.5rem, 8vw, 8rem);
  letter-spacing: -0.04em;
  line-height: .98;
  font-weight: 500;
  color: var(--white);
  max-width: 16ch;
}
.cta-block h2 em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
}
.cta-block-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.cta-block-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.cta-block-foot p { color: var(--grey-30); max-width: 50ch; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  color: var(--black);
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
  border-top: 1px solid var(--grey-08);
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand-logo {
  display: block;
  height: clamp(48px, 6vw, 64px);
  width: auto;
  margin-bottom: 1rem;
  user-select: none;
}
.footer-brand-tag { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--grey-50); }
.footer-brand-desc { color: var(--grey-50); margin-top: 1.2rem; max-width: 36ch; line-height: 1.5; }
.footer-top h4 {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-50);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.footer-top ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-top a { color: var(--black); transition: opacity .2s ease; }
.footer-top a:hover { opacity: .55; }
.footer-bottom {
  border-top: 1px solid var(--grey-08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 12px;
  color: var(--grey-50);
}

/* ---------- Contact page ---------- */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
}
.contact-form .form-field label .req { color: var(--black); font-weight: 600; }
.contact-form .form-field label .opt {
  color: var(--grey-30);
  text-transform: none;
  letter-spacing: .02em;
  font-size: 10.5px;
  margin-left: .35em;
  font-weight: 400;
}
.form-foot {
  display: flex;
  align-items: center;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-08);
}
.form-note { font-size: 13px; margin: 0; max-width: 40ch; color: var(--grey-50); }

.form-success { display: none; padding: 1rem 0; }
.form-success h3 {
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 .75rem;
  font-weight: 500;
}
.form-success p {
  font-size: 16px;
  color: var(--grey-50);
  margin: 0;
  max-width: 50ch;
  line-height: 1.5;
}
.contact-form.is-sent .form-body { display: none; }
.contact-form.is-sent .form-success { display: block; }

.form-error {
  display: none;
  margin: 1.25rem 0 0;
  padding: .75rem 1rem;
  background: #fdecea;
  color: #8b1d18;
  font-size: 14px;
  border-left: 3px solid #8b1d18;
  max-width: 60ch;
}
.contact-form.has-error .form-error { display: block; }

/* intl-tel-input integration — match underline-style inputs */
.form-field .iti { width: 100%; display: block; font-family: var(--sans); }
.form-field .iti--separate-dial-code .iti__selected-flag {
  background: transparent;
  padding: 0 .55rem;
  border-bottom: 1px solid var(--grey-15);
  transition: border-color .2s ease;
}
.form-field .iti--separate-dial-code .iti__selected-dial-code {
  font-size: 15px;
  color: var(--grey-50);
  font-family: var(--sans);
  margin-left: 6px;
}
.form-field .iti input[type="tel"] {
  font: inherit;
  font-size: 15px;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--grey-15);
  border-radius: 0;
  padding: .8rem 0 .8rem 92px !important;
  color: var(--black);
  font-family: var(--sans);
  width: 100%;
  transition: border-color .2s ease;
}
.form-field .iti input[type="tel"]:focus,
.form-field .iti input[type="tel"]:focus + .iti__selected-flag,
.form-field .iti:focus-within .iti__selected-flag {
  outline: none;
  border-bottom-color: var(--black);
}
.iti__country-list { font-family: var(--sans); font-size: 14px; }
.iti__country-name { letter-spacing: -0.005em; }
.iti__dial-code { color: var(--grey-50); }

/* Phone input stays LTR even in RTL layouts — numbers read left-to-right.
   The lib's [dir=rtl] rules match because <html dir="rtl"> — we counter each. */
.dir-rtl .form-field .iti { direction: ltr; }
.dir-rtl .form-field .iti input[type="tel"] { text-align: left; }
.dir-rtl .form-field .iti--allow-dropdown .iti__country-container {
  left: 0;
  right: auto;
}
.dir-rtl .form-field .iti .iti__selected-dial-code {
  margin-left: 6px;
  margin-right: 0;
}
.dir-rtl .form-field .iti__flag-box,
.dir-rtl .form-field .iti__country-name {
  margin-right: var(--iti-spacer-horizontal);
  margin-left: 0;
}
.dir-rtl .form-field .iti__arrow {
  margin-left: var(--iti-arrow-padding);
  margin-right: 0;
}
.dir-rtl .iti__country-list { text-align: left; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-block {
  border-top: 1px solid var(--grey-15);
  padding-top: 1.4rem;
  margin-bottom: 1.8rem;
}
.contact-block h4 {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-50);
  margin-bottom: .65rem;
  font-weight: 500;
}
.contact-block p {
  font-size: 18px;
  color: var(--black);
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.contact-block a { color: var(--black); border-bottom: 1px solid var(--grey-15); transition: border-color .2s ease; }
.contact-block a:hover { border-bottom-color: var(--black); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.form-field label {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--grey-50);
  font-weight: 500;
}
.form-field input, .form-field textarea, .form-field select {
  font: inherit;
  font-size: 15px;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--grey-15);
  padding: .8rem 0;
  color: var(--black);
  font-family: var(--sans);
  transition: border-color .2s ease;
  border-radius: 0;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-bottom-color: var(--black);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='black'/></svg>"); background-repeat: no-repeat; background-position: right 0 center; padding-right: 1.2rem; }

/* ---------- Origin badge ---------- */
.origin-badge {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-50);
}
.origin-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--black);
}

/* ---------- Spacers ---------- */
.spacer-sm { height: clamp(1.5rem, 3vw, 2.5rem); }
.spacer-md { height: clamp(3rem, 5vw, 5rem); }
.spacer-lg { height: clamp(5rem, 9vw, 8rem); }

.divider { border: 0; height: 1px; background: var(--grey-08); }

/* ---------- Responsive helpers ---------- */
.desktop-only { display: block; }
.mobile-only { display: none; }
@media (max-width: 800px) { .desktop-only { display: none; } .mobile-only { display: block; } }

/* ---------- Reveal-on-load (subtle) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .reveal.is-in { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   I18N — Arabe / RTL
   Variables, police Tajawal, switcher FR|AR, ajustements RTL.
   ================================================================ */

:root {
  --sans-ar: "Tajawal", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* En AR : Tajawal partout, sans exception sur les accents (em, italic).
   La serif Fraunces n'a pas de glyphes arabes — on simule l'accent avec
   italic synthétique + bold sur la même police principale. */
body.lang-ar,
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4,
body.lang-ar .display,
body.lang-ar .statement,
body.lang-ar .oversize,
body.lang-ar .hero-h1,
body.lang-ar em,
body.lang-ar i,
body.lang-ar .italic,
body.lang-ar .statement-italic {
  font-family: var(--sans-ar);
}
body.lang-ar .display,
body.lang-ar .statement,
body.lang-ar .oversize,
body.lang-ar .hero-h1 {
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.25;
}
/* Accent typographique en AR : italique synthétique + bold sur Tajawal. */
body.lang-ar em,
body.lang-ar i,
body.lang-ar .italic,
body.lang-ar .statement-italic {
  font-style: italic;
  font-weight: 700;
  color: var(--black);
}

/* Préserver Inter pour les libellés en caractères latins dans une page AR */
body.lang-ar [lang="fr"],
body.lang-ar .supplier-name {
  font-family: var(--sans);
}

/* En AR : remonter la taille de la majorité du texte courant (lecture
   confortable de l'arabe). H1 reste basé sur rem donc non affecté. */
body.lang-ar {
  font-size: 17.5px;
}
body.lang-ar p,
body.lang-ar li,
body.lang-ar .lead-light,
body.lang-ar .body-large,
body.lang-ar .muted,
body.lang-ar .supplier-card-desc,
body.lang-ar .footer-brand-desc,
body.lang-ar .nav a,
body.lang-ar .form-note {
  font-size: 1rem;
  line-height: 1.7;
}
body.lang-ar .body-large { font-size: 1.15rem; }
/* AR — bumper les libellés secondaires pour qu'ils restent lisibles
   (l'arabe nécessite ~3-4px de plus que le latin équivalent). */
body.lang-ar .eyebrow,
body.lang-ar .pillar-num,
body.lang-ar .cat-tile-num,
body.lang-ar .stat-label,
body.lang-ar .caption,
body.lang-ar .footer-brand-tag,
body.lang-ar .tag,
body.lang-ar .supplier-country,
body.lang-ar .origin-badge,
body.lang-ar .supplier-card-meta,
body.lang-ar .form-note,
body.lang-ar .crumbs,
body.lang-ar h4 {
  font-size: 15px;
}
body.lang-ar .stat-label {
  font-size: 16px;
}
body.lang-ar .btn,
body.lang-ar .nav a {
  font-size: 16px;
}
body.lang-ar .nav a.nav-cta {
  font-size: 16px;
}
body.lang-ar .lang-switcher-item {
  font-size: 14px;
}
body.lang-ar .lang-switcher-item[lang="ar"] {
  font-size: 16px;
}

/* RTL — la plupart des layouts flex s'inversent automatiquement avec dir=rtl.
   On corrige juste les cas où on l'a forcé en LTR via text-align ou margin. */
[dir="rtl"] {
  letter-spacing: 0; /* le tracking serré FR n'a pas de sens en arabe */
}
/* En AR : approche structurelle — on neutralise tous les letter-spacing
   et tous les text-transform: uppercase à l'échelle de la page. Ces deux
   propriétés cassent systématiquement les ligatures arabes (les lettres
   doivent se joindre dans un mot, ce que letter-spacing empêche, et
   l'arabe ignore la casse). Le !important bat aussi les styles inline. */
body.lang-ar,
body.lang-ar * {
  letter-spacing: 0 !important;
  text-transform: none !important;
}
/* On rétablit une légère graisse moyenne sur les anciens libellés
   "uppercase tracking" qui paraîtraient maintenant trop fins. */
body.lang-ar .eyebrow,
body.lang-ar .stat-label,
body.lang-ar .pillar-num,
body.lang-ar .cat-tile-num,
body.lang-ar .supplier-country,
body.lang-ar .origin-badge,
body.lang-ar .footer-brand-tag,
body.lang-ar .caption,
body.lang-ar .tag,
body.lang-ar .supplier-card-meta,
body.lang-ar h4 {
  font-weight: 500;
}

/* En AR : forcer LTR pour les numéros de téléphone, emails et URLs
   afin d'éviter les inversions bidi qui retournent "+212 5..." en
   "...5 212+". Les marques latines suivent l'isolation bidi naturelle. */
body.lang-ar a[href^="tel:"],
body.lang-ar a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* En AR : les inputs téléphone et email restent en LTR (saisie naturellement
   latine). Le composant intl-tel-input (drapeau + dropdown) suit la même
   règle. Les labels au-dessus restent en arabe. */
body.lang-ar .iti,
body.lang-ar input[type="tel"],
body.lang-ar input[type="email"] {
  direction: ltr;
  text-align: left;
}
body.lang-ar .iti__country-list {
  direction: ltr;
  text-align: left;
}
[dir="rtl"] .nav a.is-active::after {
  left: 0; right: 0; /* déjà neutre, garde au cas où */
}
[dir="rtl"] .supplier-card-meta { flex-direction: row-reverse; }
[dir="rtl"] .caption { flex-direction: row-reverse; }
[dir="rtl"] .crumbs { flex-direction: row-reverse; }

/* Switcher de langue dans la nav.
   TEMPORAIRE : masqué tant que la traduction AR n'est pas validée. Les URLs
   /ar/* restent accessibles en direct. Pour réactiver, supprimer le bloc
   display:none ci-dessous. */
.lang-switcher { display: none; }

.lang-switcher--enabled {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-inline-start: clamp(.6rem, 1.4vw, 1.2rem);
  padding-inline-start: clamp(.8rem, 1.6vw, 1.4rem);
  border-inline-start: 1px solid var(--grey-15);
}
.lang-switcher-item {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--grey-50);
  padding: .15rem .1rem;
  transition: color .2s ease;
}
.lang-switcher-item:hover { color: var(--black); opacity: 1; }
.lang-switcher-item.is-active { color: var(--black); }
.lang-switcher-item[lang="ar"] {
  font-family: var(--sans-ar);
  font-size: 13px;
  letter-spacing: 0;
}
.lang-switcher-sep {
  color: var(--grey-30);
  font-size: 12px;
  user-select: none;
}
.nav a.lang-switcher-item::after { display: none !important; }

@media (max-width: 820px) {
  .lang-switcher {
    margin-inline-start: 0;
    padding-inline-start: 0;
    border-inline-start: 0;
    margin-top: .75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--grey-08);
    justify-content: center;
  }
}

/* ---------- Cookie banner (consentement Meta Pixel) ---------- */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  background: var(--black);
  color: var(--white);
  padding: 1rem 0;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-banner-text {
  margin: 0;
  max-width: 70ch;
  color: var(--white);
}
.cookie-banner-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: .6rem 1.25rem;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  border: 1px solid var(--white);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cookie-btn--accept { background: var(--white); color: var(--black); }
.cookie-btn--accept:hover { background: transparent; color: var(--white); }
.cookie-btn--decline { background: transparent; color: var(--white); }
.cookie-btn--decline:hover { background: var(--white); color: var(--black); }
body.lang-ar .cookie-banner,
body.lang-ar .cookie-btn { font-family: "Tajawal", var(--sans); }

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: .9rem;
  }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1 1 0; text-align: center; }
}
