/* Polices auto-hébergées (Google Fonts, licence OFL) */
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/great-vibes-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/poppins-300.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/poppins-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/poppins-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/poppins-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --espresso: #2e1d12;
  --espresso-2: #1c120b;
  --gold: #c49b63;
  --gold-dark: #a77f48;
  --gold-text: #8a6431; /* or lisible sur fond clair (contraste ≥ 4.4) */
  --cream: #faf6f0;
  --sand: #f1e8dc;
  --ink: #2b2420;
  --muted: #6f625a;
  --line: #e6dccf;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(46, 29, 18, .08);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0 0 .6em; color: var(--espresso); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.kicker {
  font-family: "Great Vibes", cursive;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold-text);
  margin: 0 0 .25em;
}
.hero .kicker { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 500; font-size: .95rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--espresso-2); }
.btn-gold:hover { background: var(--gold-text); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-dark { background: var(--espresso); color: var(--white); }
.btn-dark:hover { background: var(--espresso-2); }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--espresso-2);
  color: var(--white);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { border-radius: 50%; background: var(--white); }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font-weight: 600; letter-spacing: .02em; }
.brand small { font-size: .75rem; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: .92rem; font-weight: 400; color: rgba(255, 255, 255, .85); }
.nav a:hover, .nav a[aria-current] { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav .lang { border: 1px solid rgba(196, 155, 99, .6); color: var(--gold); margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 10px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--espresso-2); padding: 8px 16px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 8px; }
  .nav .lang { margin: 8px 0 0; text-align: center; }
}

/* Hero */
.hero, .page-hero { position: relative; color: var(--white); overflow: hidden; background: var(--espresso-2); }
.cover-img {
  position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: center;
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20, 12, 7, .85) 0%, rgba(20, 12, 7, .55) 55%, rgba(20, 12, 7, .35) 100%);
}
.hero-content { position: relative; z-index: 2; padding: clamp(96px, 16vw, 180px) 16px clamp(80px, 12vw, 140px); max-width: var(--wrap); }
@media (min-width: 720px) { .hero-content { padding-left: 28px; padding-right: 28px; } }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 500; max-width: 13ch; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 52ch; color: rgba(255, 255, 255, .85); margin-bottom: 2em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 72px; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3rem); margin: 0; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { text-align: center; margin-bottom: 40px; }

.story { background: var(--white); }
.story-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 300px 1fr; gap: 72px; } }
.story-badge {
  aspect-ratio: 1; max-width: 300px; width: 100%; margin: 0 auto;
  border-radius: 50%; background: var(--espresso); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 0 0 10px var(--sand);
}
.story-badge strong { font-size: 4.2rem; font-weight: 500; line-height: 1; color: var(--gold); margin: 6px 0; }
.story-badge span { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; padding: 0 24px; }
.story p { color: var(--muted); }
.quote { font-family: "Great Vibes", cursive; font-size: 2rem; color: var(--espresso) !important; margin-top: .6em; }

.brands-grid { display: grid; gap: 24px; max-width: 900px; margin: 0 auto; }
@media (min-width: 720px) { .brands-grid { grid-template-columns: 1fr 1fr; } }
.brand-card { background: var(--white); border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--shadow); }
.brand-logo { height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.brand-logo img { max-height: 120px; width: auto; }
.brand-card h3 { font-size: 1.25rem; }
.brand-card p { color: var(--muted); margin: 0; }

.machines { background: var(--sand); }
.machines-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .machines-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }
.machines p { color: var(--muted); margin-bottom: 1.6em; }
.carousel { min-width: 0; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; border-radius: var(--radius);
}
.track::-webkit-scrollbar { display: none; }
.slide { margin: 0; scroll-snap-align: start; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 24px; background: var(--white); }
.slide figcaption { padding: 14px 20px; background: var(--espresso); color: var(--white); font-weight: 400; text-align: center; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.carousel-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--espresso); background: transparent;
  color: var(--espresso); display: grid; place-items: center; cursor: pointer;
}
.carousel-nav button:hover { background: var(--espresso); color: var(--white); }
.dots { display: flex; gap: 2px; }
.dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(46, 29, 18, .25); }
.dots button[aria-current="true"]::before { background: var(--espresso); }

.band { position: relative; overflow: hidden; background: var(--espresso-2); color: var(--white); text-align: center; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(28, 18, 11, .72); }
.band-inner { position: relative; z-index: 2; padding: clamp(72px, 10vw, 120px) 16px; }
.band h2 { color: var(--white); text-transform: uppercase; letter-spacing: .06em; font-size: clamp(1.4rem, 3.2vw, 2.2rem); }
.band p { color: var(--gold); font-size: 1.1rem; margin: 0; }

.services { background: var(--white); }
.services-grid { display: grid; gap: 40px; }
@media (min-width: 820px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service { text-align: center; padding: 0 12px; }
.service-icon { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%; background: var(--espresso); display: grid; place-items: center; }
.service-icon img { width: 48px; height: 48px; filter: invert(1) sepia(.6) saturate(2) hue-rotate(-12deg) brightness(.95); }
.service p { color: var(--muted); margin: 0; }

/* Products */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.tabs button {
  font: inherit; font-size: .92rem; font-weight: 400; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--espresso);
  padding: 10px 18px; border-radius: 999px; min-height: 44px;
}
.tabs button span { font-size: .75rem; color: var(--muted); margin-left: 4px; }
.tabs button[aria-selected="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--white); }
.tabs button[aria-selected="true"] span { color: var(--gold); }
.products-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; contain: layout paint; }
.product-img { aspect-ratio: 1; background: var(--white); border-bottom: 1px solid var(--line); }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.product-body { padding: 18px 20px 22px; }
.product h3 { font-size: .9rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--gold-text); }
.desc { font-size: .88rem; color: var(--muted); margin: 0; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { background: none; border: 0; padding: 6px 0 0; font: inherit; font-size: .85rem; font-weight: 500; color: var(--espresso); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.cta { background: var(--espresso); color: var(--white); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 56px 16px; }
@media (min-width: 720px) { .cta-inner { padding: 56px 28px; } }
.cta h2 { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .3em; }
.cta p { margin: 0; color: rgba(255, 255, 255, .75); }

/* Contact */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 4fr 7fr; gap: 64px; } }
.contact-info dl { margin: 0; display: grid; gap: 24px; }
.contact-info dt { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--espresso); }
.contact-info dt svg { color: var(--gold); }
.contact-info dd { margin: 4px 0 0 30px; color: var(--muted); }
.contact-intro { color: var(--muted); margin: 0 0 28px; }
.contact-map { margin: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.contact-map iframe { display: block; width: 100%; height: clamp(300px, 48vw, 460px); border: 0; background: var(--cream); }
.contact-map figcaption { padding: 14px 20px; }
.contact-map figcaption a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--espresso); text-decoration: none; }
.contact-map figcaption a:hover { text-decoration: underline; }
.contact-map figcaption svg { color: var(--gold); }

/* Footer */
.site-footer { background: var(--espresso-2); color: rgba(255, 255, 255, .78); font-size: .92rem; }
.footer-grid { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr auto; } }
.site-footer address { font-style: normal; display: grid; gap: 12px; }
.site-footer address p { display: flex; gap: 10px; margin: 0; }
.site-footer address svg { color: var(--gold); margin-top: 3px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 24px; font-size: .82rem; color: rgba(255, 255, 255, .5); }

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