/* ---------------------------------------------------
   PROCOKAB — Design tokens (charte graphique COOP-CA PROCOKAB)
--------------------------------------------------- */
:root {
  --dark:        #2f1b10;
  --primary:     #432817;
  --secondary:   #bb6c29;
  --tan:         #dea15e;
  --cream:       #fdfae2;
  --cream-alt:   #fbf6f0;
  --text-dark:   #2b1a10;
  --text-muted:  #7a6a5c;
  --text-light:  #f7efe2;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Montserrat', Arial, sans-serif;
  --font-body:    'Lora', Georgia, serif;

  --container-w: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

hr {
  border: none;
  border-top: 1px solid rgba(67, 40, 23, 0.15);
  margin: 2rem 0;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section { scroll-margin-top: 90px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0 1rem;
}

em { color: var(--secondary); font-style: italic; }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 0.75rem;
}

.eyebrow-light { color: var(--tan); }

/* ---------------------------------------------------
   Buttons
--------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-pill { border-radius: 999px; }

.btn-primary {
  background: var(--tan);
  color: var(--primary);
}
.btn-primary:hover { background: var(--secondary); color: #fff; }

.btn-outline-light {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(247, 239, 226, 0.6);
}
.btn-outline-light:hover { background: rgba(247, 239, 226, 0.12); }

.btn-dark {
  background: var(--primary);
  color: var(--text-light);
  width: 100%;
  justify-content: center;
}
.btn-dark:hover { background: var(--dark); }

.btn-whatsapp {
  background: #25D366;
  color: #06210f;
  width: 100%;
  justify-content: center;
}
.btn-whatsapp:hover { background: #1ebc59; }

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(67, 40, 23, 0.96);
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  padding: 0.7rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}

.brand-mark {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img { height: 100%; width: auto; object-fit: contain; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
}
.brand-text small {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tan);
}

.main-nav {
  display: flex;
  gap: 2.1rem;
}
.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { opacity: 1; color: var(--tan); }

.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text-light);
  border-radius: 2px;
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 11rem 0 3rem;
  color: var(--text-light);
  background-color: #3a2412;
  background-image: url('../assets/images/hero.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(187,108,41,0.25), transparent 60%),
    linear-gradient(0deg, rgba(20,12,6,0.92) 0%, rgba(20,12,6,0.55) 55%, rgba(20,12,6,0.75) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-left: 0;
  margin-right: auto;
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.05rem;
  max-width: 640px;
  color: rgba(247, 239, 226, 0.9);
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin-left: 0;
  margin-right: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 239, 226, 0.25);
}

.stat { display: flex; flex-direction: column; gap: 0.35rem; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
}
.stat-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 239, 226, 0.75);
}

/* ---------------------------------------------------
   About
--------------------------------------------------- */
.about { background: var(--cream-alt); padding: 7rem 0; }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.about-media { position: relative; }
.about-media img { border-radius: 4px; width: 100%; height: 620px; object-fit: cover; }

.about-caption {
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  background: var(--tan);
  color: var(--primary);
  padding: 1.4rem 1.6rem;
  max-width: 260px;
  box-shadow: 0 10px 30px rgba(67,40,23,0.25);
}
.caption-number {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem;
  margin-bottom: 0.2rem;
}
.caption-text {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.about-text h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.25; }
.about-text p { color: var(--text-dark); }

.about-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.meta-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 0.4rem;
}
.meta-value { margin: 0; font-size: 0.95rem; }

/* ---------------------------------------------------
   Products
--------------------------------------------------- */
.products { background: var(--cream); padding: 7rem 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 0; }
.section-lead { color: var(--text-dark); font-size: 1rem; margin: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(67,40,23,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(67,40,23,0.12); }

.product-media { height: 260px; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }

.product-body { padding: 1.8rem; }

.badges { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.badge {
  border: 1px solid var(--secondary);
  color: var(--secondary);
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.product-body h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.product-body p { font-size: 0.92rem; color: var(--text-dark); margin: 0; }
.product-body hr { margin: 1.3rem 0; }

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-price {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}
.product-footer a {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-footer a:hover { color: var(--secondary); }

/* ---------------------------------------------------
   Process
--------------------------------------------------- */
.process { background: var(--cream); padding-bottom: 7rem; }
.process h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); max-width: 700px; margin-bottom: 3.5rem; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(67,40,23,0.12);
}
.process-step {
  padding: 2.5rem 2rem;
  border-left: 1px solid rgba(67,40,23,0.12);
}
.process-step:first-child { border-left: none; }

.step-number {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}
.process-step h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.process-step p { font-size: 0.9rem; color: var(--text-dark); margin: 0; }

/* ---------------------------------------------------
   Engagements
--------------------------------------------------- */
.engagements {
  position: relative;
  background-color: #3a2412;
  background-image:
    linear-gradient(135deg, rgba(28,17,8,0.88) 0%, rgba(58,36,18,0.75) 55%, rgba(122,70,32,0.55) 100%),
    url('../assets/images/engagements.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding: 7rem 0;
  overflow: hidden;
}

.engagements h2.light { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.6rem); max-width: 620px; }
.light-hr { border-top-color: rgba(247,239,226,0.25); }

.engagement-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.engagement-grid h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.6rem; }
.engagement-grid p { color: rgba(247,239,226,0.85); font-size: 0.92rem; margin: 0; }

/* ---------------------------------------------------
   Gallery
--------------------------------------------------- */
.gallery { background: var(--cream); padding: 7rem 0; }
.gallery h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); max-width: 700px; margin-bottom: 3.5rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  display: block;
  width: 100%;
  height: 260px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(20, 12, 6, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--tan); }

/* ---------------------------------------------------
   Coop life (équipe / partenaires / actualité)
--------------------------------------------------- */
.coop-life { background: var(--cream-alt); padding: 6rem 0; }
.coop-life-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.coop-card {
  background: #fff;
  padding: 2.2rem;
  box-shadow: 0 4px 20px rgba(67,40,23,0.06);
}
.team-member { display: flex; gap: 1.2rem; align-items: flex-start; }
.team-member img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.team-member h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.team-role {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 0.6rem;
}
.team-member p:last-child { font-size: 0.88rem; margin: 0; }

.partners-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.partners-list li {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(67,40,23,0.1);
}
.partners-list li:last-child { border-bottom: none; padding-bottom: 0; }

.news-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.news-card p { font-size: 0.88rem; margin: 0; }

/* ---------------------------------------------------
   Contact
--------------------------------------------------- */
.contact { position: relative; background: var(--cream); padding-bottom: 7rem; }
.contact-topbar { height: 10px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-top: 5rem;
}

.contact-info h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.contact-info > p:nth-of-type(2) { max-width: 480px; margin-bottom: 2.5rem; }

.info-block {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(67,40,23,0.12);
}
.info-block:last-child { border-bottom: 1px solid rgba(67,40,23,0.12); }
.info-block .meta-value a:hover { color: var(--secondary); }

.contact-form-card {
  background: #fff;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(67,40,23,0.1);
}
.contact-form-card h3 { font-size: 1.4rem; margin-bottom: 1.5rem; }

#contactForm label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1.4rem;
}
#contactForm input,
#contactForm textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  border: none;
  border-bottom: 1px solid rgba(67,40,23,0.25);
  padding: 0.5rem 0.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: transparent;
  resize: vertical;
}
#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border-bottom-color: var(--secondary);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--secondary);
  min-height: 1.2em;
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer { background: var(--primary); color: var(--text-light); padding-top: 4.5rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .brand { margin-bottom: 1.2rem; }
.footer-brand p { color: rgba(247,239,226,0.75); font-size: 0.9rem; max-width: 340px; }

.footer-nav, .footer-contact { display: flex; flex-direction: column; }
.footer-nav a, .footer-contact p, .footer-contact a {
  color: rgba(247,239,226,0.85);
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--tan); }
.footer-contact p { margin: 0 0 0.7rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 2rem 1.8rem;
  border-top: 1px solid rgba(247,239,226,0.15);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247,239,226,0.6);
}

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
@media (max-width: 980px) {
  .about-grid,
  .contact-grid,
  .coop-life-grid { grid-template-columns: 1fr; }
  .about-media img { height: 420px; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(3) { border-left: none; }
  .process-step:nth-child(odd) { border-left: none; }
  .engagement-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
  }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-left: none !important; border-top: 1px solid rgba(67,40,23,0.12); }
  .process-step:first-child { border-top: none; }
  .about-caption { position: static; margin-top: 1rem; max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
