/* ============================================
   NOUMA — Design System Partagé v4 (Mobile-First)
   ============================================ */

:root {
  /* Couleurs charte v3 */
  --dark-brown: #402E32;
  --warm-brown: #8A5A44;
  --cocoa: #A8765E;
  --cream: #F7F3EC;
  --sand: #EDE5DA;
  --blush: #F6DCD4;
  --soft-peach: #F8E5DC;
  --sage: #B8CDB8;
  --deep-sage: #8DA78F;
  --terracotta: #C68B73;
  --off-white: #FAF8F4;
  --white: #FFFFFF;
  --light-grey: #DFDFDF;
  --text-grey: #5F5F5F;
  --charcoal: #343434;

  /* Typo */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --tr-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --tr-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Ombres */
  --shadow-soft: 0 12px 40px rgba(64, 46, 50, 0.08);
  --shadow-card: 0 16px 50px rgba(64, 46, 50, 0.10);
  --shadow-strong: 0 24px 60px rgba(64, 46, 50, 0.16);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  --header-h: 56px;
}

@media (min-width: 768px) { :root { --header-h: 72px; } }

/* ============ RESET & GLOBAL ============ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark-brown); background: var(--off-white); line-height: 1.6; overflow-x: hidden; min-height: 100vh; }
body.menu-open { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: 16px; }

p, h1, h2, h3, h4, h5, h6, span, a, li { overflow-wrap: break-word; word-wrap: break-word; }

/* ============ CONTAINER ============ */

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ============ REVEAL ============ */

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-stagger.in-view > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.reveal-stagger.in-view > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.19s; }
.reveal-stagger.in-view > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
.reveal-stagger.in-view > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.33s; }
.reveal-stagger.in-view > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.40s; }

.eyebrow { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--warm-brown); display: inline-block; }

/* ============ BUTTONS ============ */

.btn {
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  padding: 14px 24px; border: 1px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; transition: all var(--tr-base);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  line-height: 1; min-height: 48px; white-space: nowrap; text-align: center;
}
@media (min-width: 768px) { .btn { padding: 14px 28px; } }

.btn-primary { background: var(--dark-brown); color: var(--cream); border-color: var(--dark-brown); }
.btn-primary:hover { background: var(--warm-brown); border-color: var(--warm-brown); transform: translateY(-1px); }
.btn-cream { background: var(--cream); color: var(--dark-brown); border-color: var(--cream); }
.btn-cream:hover { background: var(--white); transform: translateY(-1px); }
.btn-outline-cream { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline-cream:hover { background: var(--cream); color: var(--dark-brown); }
.btn-outline-dark { background: transparent; color: var(--dark-brown); border-color: var(--dark-brown); }
.btn-outline-dark:hover { background: var(--dark-brown); color: var(--cream); }
.btn-large { padding: 16px 28px; font-size: 14px; min-height: 52px; }
@media (min-width: 768px) { .btn-large { padding: 17px 34px; min-height: 54px; } }
.btn-arrow::after { content: '→'; transition: transform var(--tr-fast); font-family: Georgia, serif; }
.btn:hover .btn-arrow::after { transform: translateX(4px); }
.btn-link { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--dark-brown); padding-bottom: 3px; border-bottom: 1px solid var(--dark-brown); display: inline-flex; align-items: center; gap: 8px; transition: all var(--tr-fast); letter-spacing: 0.02em; }
.btn-link:hover { color: var(--cocoa); border-color: var(--cocoa); }
.btn-mobile-full { width: 100%; }
@media (min-width: 600px) { .btn-mobile-full { width: auto; } }

/* ============ ANNOUNCEMENT ============ */

.announcement { background: var(--dark-brown); color: var(--cream); padding: 8px 0; overflow: hidden; position: relative; z-index: 101; }
.marquee { display: flex; animation: scroll 50s linear infinite; white-space: nowrap; font-family: var(--font-display); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
@media (min-width: 768px) { .announcement { padding: 10px 0; } .marquee { font-size: 11px; letter-spacing: 0.2em; } }
.marquee span { padding: 0 24px; display: inline-flex; align-items: center; }
.marquee span::after { content: '✦'; color: var(--blush); margin-left: 24px; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ HEADER ============ */

.header { position: sticky; top: 0; z-index: 100; background: var(--off-white); border-bottom: 1px solid var(--sand); padding: 10px 0; min-height: var(--header-h); }
@media (min-width: 768px) { .header { padding: 14px 0; } }

.header-inner { max-width: 1320px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 901px) { .header-inner { padding: 0 32px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; } }

.header-nav { display: none; gap: 28px; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
@media (min-width: 901px) { .header-nav { display: flex; } }
.header-nav a { color: var(--dark-brown); padding: 8px 0; position: relative; transition: color var(--tr-fast); }
.header-nav a.active { color: var(--cocoa); }
.header-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: currentColor; transition: width var(--tr-base); }
.header-nav a:hover::after, .header-nav a.active::after { width: 100%; }

.header-logo { position: relative; flex: 0 0 auto; }
.header-logo a { display: block; position: relative; }
.header-logo img { height: 28px; width: auto; transition: opacity var(--tr-base); }
@media (min-width: 768px) { .header-logo img { height: 36px; } }
.header-logo .logo-dark { position: absolute; top: 0; left: 0; opacity: 0; }
.header.scrolled .header-logo .logo-white { opacity: 0; }
.header.scrolled .header-logo .logo-dark { opacity: 1; }
.header.always-dark .header-logo .logo-white { opacity: 0; }
.header.always-dark .header-logo .logo-dark { opacity: 1; }

.header-actions { display: flex; gap: 14px; align-items: center; flex: 0 0 auto; }
@media (min-width: 901px) { .header-actions { gap: 18px; justify-content: flex-end; } }

.header-icon { width: 22px; height: 22px; stroke: var(--dark-brown); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; cursor: pointer; transition: stroke var(--tr-fast); flex-shrink: 0; }
.header-icon:hover { stroke: var(--cocoa); }

.cart-wrap { position: relative; cursor: pointer; display: inline-flex; }
.cart-count { position: absolute; top: -6px; right: -8px; background: var(--cocoa); color: var(--cream); font-family: var(--font-display); font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Hide search/account icons on small mobile (keep only cart + burger) */
@media (max-width: 599px) {
  .header-actions > .header-icon:first-of-type,
  .header-actions > a:not([href*="panier"]):not([href*="cart"]) {
    display: none;
  }
}

/* Burger button */
.header-mobile-menu { display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; background: transparent; border: none; width: 40px; height: 40px; z-index: 102; position: relative; flex-shrink: 0; }
@media (min-width: 901px) { .header-mobile-menu { display: none; } }
.header-mobile-menu svg { width: 26px; height: 26px; stroke: var(--dark-brown); stroke-width: 1.5; fill: none; pointer-events: none; }
.header-mobile-menu.is-open svg line { transition: transform 0.25s ease, opacity 0.25s ease; transform-origin: center center; transform-box: fill-box; }
.header-mobile-menu.is-open svg line:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.header-mobile-menu.is-open svg line:nth-child(2) { opacity: 0; }
.header-mobile-menu.is-open svg line:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile nav: use existing .header-nav with class .mobile-open on small screens */
@media (max-width: 900px) {
  .header-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: var(--off-white);
    padding: calc(var(--header-h) + 24px) 24px 32px;
    z-index: 101;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    overflow-y: auto;
    gap: 0;
  }
  .header-nav.mobile-open { transform: translateX(0); visibility: visible; }
  .header-nav a {
    padding: 20px 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-brown);
    border-bottom: 1px solid var(--sand);
    width: 100%;
    display: block;
    letter-spacing: -0.015em;
  }
  .header-nav a::after { display: none; }
}

/* ============ BREADCRUMB ============ */

.breadcrumb { padding: 12px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.breadcrumb-list { display: flex; gap: 6px; align-items: center; font-family: var(--font-body); font-size: 12px; color: var(--text-grey); white-space: nowrap; list-style: none; }
.breadcrumb-list a { transition: color var(--tr-fast); }
.breadcrumb-list a:hover { color: var(--cocoa); }
.breadcrumb-list .sep { opacity: 0.4; }
.breadcrumb-list .current { color: var(--dark-brown); font-weight: 500; }

/* ============ ACCORDIONS ============ */

.accordion-item { border-bottom: 1px solid var(--sand); }
.accordion-item:first-child { border-top: 1px solid var(--sand); }
.accordion-btn { width: 100%; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--dark-brown); text-align: left; transition: color var(--tr-fast); letter-spacing: -0.005em; }
.accordion-btn:hover { color: var(--cocoa); }
.accordion-icon { width: 16px; height: 16px; position: relative; flex-shrink: 0; margin-left: 16px; }
.accordion-icon::before, .accordion-icon::after { content: ''; position: absolute; background: currentColor; }
.accordion-icon::before { width: 16px; height: 1.5px; top: 50%; left: 0; transform: translateY(-50%); }
.accordion-icon::after { width: 1.5px; height: 16px; left: 50%; top: 0; transform: translateX(-50%); transition: transform var(--tr-base); }
.accordion-item.open .accordion-icon::after { transform: translateX(-50%) scaleY(0); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height var(--tr-base), padding var(--tr-base); }
.accordion-item.open .accordion-content { max-height: 800px; padding-bottom: 20px; }
.accordion-content p { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--text-grey); }
.accordion-content ul { padding-left: 20px; margin-top: 8px; }
.accordion-content li { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--text-grey); margin-bottom: 6px; }

/* ============ FOOTER ============ */

.footer { background: var(--dark-brown); color: var(--cream); padding: 56px 0 24px; margin-top: 64px; }
@media (min-width: 768px) { .footer { padding: 80px 0 32px; margin-top: 80px; } }

.footer-top { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
@media (min-width: 600px) { .footer-top { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (min-width: 900px) { .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }

.footer-brand { grid-column: 1 / -1; margin-bottom: 16px; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; margin-bottom: 0; } }
.footer-brand img { height: 40px !important; margin-bottom: 16px; width: auto !important; }
@media (min-width: 768px) { .footer-brand img { height: 48px !important; } }
.footer-brand p { font-family: var(--font-display); font-size: 16px; color: rgba(247, 243, 236, 0.8); margin-bottom: 20px; line-height: 1.6; }
.footer-brand-socials { display: flex; gap: 12px; }
.footer-social { width: 38px; height: 38px; border: 1px solid rgba(247, 243, 236, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all var(--tr-fast); }
.footer-social:hover { border-color: var(--cream); background: rgba(247, 243, 236, 0.08); }
.footer-social svg { width: 16px; height: 16px; stroke: var(--cream); stroke-width: 1.5; fill: none; }

.footer-col h5 { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-family: var(--font-body); font-size: 14px; color: rgba(247, 243, 236, 0.7); transition: color var(--tr-fast); }
.footer-col a:hover { color: var(--cream); }

.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(247, 243, 236, 0.15); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; font-family: var(--font-body); font-size: 12px; color: rgba(247, 243, 236, 0.5); }
@media (min-width: 600px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; } }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(247, 243, 236, 0.5); transition: color var(--tr-fast); }
.footer-legal a:hover { color: var(--cream); }

/* ============ FORMS ============ */

input, textarea, select { width: 100%; padding: 14px 16px; border: 1px solid var(--sand); border-radius: var(--radius-sm); background: var(--white); font-family: var(--font-body); font-size: 16px; color: var(--dark-brown); transition: border-color var(--tr-fast); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cocoa); }

/* ============ UTILITIES ============ */

.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } .hide-desktop { display: none; } }

iframe, video { max-width: 100%; height: auto; }
table { width: 100%; border-collapse: collapse; }
