/* ═══════════════════════════════════════════
   GRAIN DU COIN — Feuille de style partagée
   Couvoir du Coin inc. · Estrie, Québec
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Jost:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── VARIABLES ── */
:root {
  --cream:   #F5EFE0;
  --paper:   #EDE4CF;
  --parchment: #E2D5BB;
  --wheat:   #C8A45A;
  --gold:    #A8841A;
  --grain:   #7A5C28;
  --earth:   #3C2710;
  --bark:    #5C3D1E;
  --forest:  #2E4020;
  --sage:    #5A6E49;
  --ink:     #1A0F05;
  --white:   #FDFAF4;
  --shadow:  rgba(60,39,16,.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius: 2px;
  --transition: .3s cubic-bezier(.22,1,.36,1);
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width:100%; display:block; }
a  { color: inherit; text-decoration: none; }

/* ── TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .4;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 48px;
  background: rgba(245,239,224,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122,92,40,.15);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 4px 32px var(--shadow); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-main {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--earth);
  letter-spacing: .5px;
  line-height: 1;
}
.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--wheat);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grain);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--wheat);
  transition: right var(--transition);
}
.nav-links a:hover { color: var(--earth); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--earth); }
.nav-links a.active::after { right: 0; }
.nav-cta {
  background: var(--earth);
  color: var(--wheat) !important;
  padding: 10px 22px;
  font-family: var(--font-mono) !important;
  font-size: 9px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  transition: background var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--bark) !important; color: var(--wheat) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--earth);
  transition: var(--transition);
}

/* ── MOBILE NAV ── */
@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 32px 24px 40px;
    gap: 24px;
    border-bottom: 1px solid var(--parchment);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a { font-size: 12px; }
  .nav-cta { padding: 12px 28px; }
}

/* ── PAGE WRAPPER ── */
.page-wrapper { padding-top: 72px; }

/* ── EYEBROW ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wheat);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .3;
  max-width: 48px;
}
.eyebrow-simple { font-family:var(--font-mono); font-size:9px; letter-spacing:3px; text-transform:uppercase; color:var(--wheat); margin-bottom:12px; }

/* ── SECTION TITLES ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  color: var(--earth);
  line-height: 1.1;
  letter-spacing: -.5px;
}
.section-title em { font-style: italic; color: var(--wheat); font-weight: 300; }
.section-subtitle {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 300;
  color: var(--grain);
  max-width: 520px;
  line-height: 1.8;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-dark {
  background: var(--earth);
  color: var(--wheat);
}
.btn-dark:hover { background: var(--bark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--earth);
  border: 1px solid rgba(60,39,16,.3);
}
.btn-outline:hover { background: var(--earth); color: var(--wheat); }
.btn-arrow::after { content: '→'; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid rgba(122,92,40,.1);
  overflow: hidden;
}
.card-warm { background: var(--paper); }

/* ── BADGE ── */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius);
}
.badge-earth { background: var(--earth); color: var(--wheat); }
.badge-wheat { background: rgba(200,164,90,.15); color: var(--grain); border: 1px solid rgba(200,164,90,.3); }
.badge-forest { background: var(--forest); color: #9CB88A; }
.badge-season { background: rgba(168,132,26,.12); color: var(--gold); border: 1px solid rgba(168,132,26,.25); }

/* ── DIVIDER ── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--wheat);
  margin: 20px 0;
}
.divider-center { margin: 20px auto; }

/* ── SECTION SPACING ── */
section { padding: 96px 48px; }
.container { max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) {
  section { padding: 64px 24px; }
}

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── FOOTER ── */
.footer {
  background: var(--earth);
  color: rgba(245,239,224,.6);
  padding: 64px 48px 40px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--wheat), var(--gold));
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245,239,224,.08);
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer { padding: 48px 24px 32px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--wheat);
  line-height: 1;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(245,239,224,.45);
  max-width: 240px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--wheat);
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: rgba(245,239,224,.45);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--wheat); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; color: rgba(245,239,224,.25); }
.footer-meunerie { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; color: rgba(245,239,224,.2); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── PAGE HERO (pages secondaires) ── */
.page-hero {
  background: var(--earth);
  padding: 80px 48px 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,var(--gold),var(--wheat),var(--gold));
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero .eyebrow { color: rgba(200,164,90,.6); }
.page-hero .eyebrow::before, .page-hero .eyebrow::after { background: rgba(200,164,90,.2); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -.5px;
}
.page-hero h1 em { color: var(--wheat); font-weight: 300; font-style: italic; }
.page-hero p {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 300;
  color: rgba(245,239,224,.5);
  max-width: 560px;
  line-height: 1.8;
}
@media (max-width: 768px) {
  .page-hero { padding: 60px 24px 56px; }
}

/* ── INGREDIENT PILLS ── */
.ingr-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.ingr-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid rgba(122,92,40,.12);
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--ink);
  transition: background var(--transition);
}
.ingr-pill:hover { background: var(--parchment); }

/* ── NUTRI GRID ── */
.nutri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1px;
  background: rgba(122,92,40,.08);
  border: 1px solid rgba(122,92,40,.08);
}
.nutri-cell {
  background: var(--white);
  padding: 14px 16px;
  text-align: center;
}
.nutri-cell.highlight { background: var(--earth); }
.nutri-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--earth);
  line-height: 1;
}
.nutri-cell.highlight .nutri-val { color: var(--wheat); }
.nutri-lbl {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grain);
  margin-top: 4px;
}
.nutri-cell.highlight .nutri-lbl { color: rgba(200,164,90,.6); }

/* ── PRODUCT PHASE INDICATOR ── */
.phase-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.phase-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.phase-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grain);
}

/* ── QUOTE / TESTIMONIAL ── */
.testimonial {
  border-left: 3px solid var(--wheat);
  padding: 20px 28px;
  background: var(--paper);
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: var(--earth);
  line-height: 1.6;
  margin-bottom: 14px;
}
.testimonial-author {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wheat);
}

/* ── ACCORDION (FAQ) ── */
.accordion { border-top: 1px solid rgba(122,92,40,.15); }
.accordion-item { border-bottom: 1px solid rgba(122,92,40,.15); }
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.accordion-q {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--earth);
  line-height: 1.3;
}
.accordion-icon {
  width: 32px; height: 32px;
  border: 1px solid rgba(122,92,40,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--grain);
  transition: var(--transition);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); background: var(--earth); color: var(--wheat); border-color: var(--earth); }
.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease;
}
.accordion-content {
  padding: 0 0 24px;
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}
.accordion-content strong { color: var(--earth); font-weight: 500; }

/* ── WARNING BOX ── */
.warning-box {
  background: linear-gradient(135deg, #4A1A0A, #3C1208);
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-left: 4px solid #C0392B;
}
.warning-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.warning-title { font-family: var(--font-display); font-size: 17px; color: #F5EFE0; margin-bottom: 6px; font-weight: 600; }
.warning-body { font-size: 13px; color: rgba(245,239,224,.65); line-height: 1.7; }

/* ── GREEN BOX ── */
.green-box {
  background: linear-gradient(135deg, var(--forest), #223018);
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.green-box-title { font-family: var(--font-display); font-size: 17px; color: #F5EFE0; margin-bottom: 6px; font-weight: 600; }
.green-box-body { font-size: 13px; color: rgba(245,239,224,.65); line-height: 1.7; }

/* ── STAT / KPI ── */
.stat-big {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  color: var(--wheat);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245,239,224,.4);
  margin-top: 6px;
}

/* ── SCROLL TOP ── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--earth);
  color: var(--wheat);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 500;
  transform: translateY(8px);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--bark); }

/* ── PRICE BADGE ── */
.price-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f5ede0;
  border: 2px solid #7a5c28;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 4px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: #1a0f00;
  line-height: 1;
}
.price-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #3d2800;
  margin-top: 4px;
}
.price-note {
  font-size: 10px;
  color: #5a3e1b;
  margin-top: 6px;
  font-style: italic;
}
