/* ======================================================
   Ekin Frites — maquette accueil
   Palette + typo alignées sur la charte EKIN
   (extraites du logo, de la maquette officielle et du PDF)
   ====================================================== */
:root {
  --red:       #FF0000;  /* accent / titres / numéros (charte) */
  --red-deep:  #D10000;  /* hover boutons */
  --gold:      #FDA500;  /* or / blé (logo, barres) */
  --gold-soft: #FFD191;
  --ink:       #111111;  /* noir charte */
  --ink-2:     #1C1C1C;
  --grey:      #5A5A5A;
  --cream:     #FBF7EF;  /* fond clair chaud (blé pâle) */
  --white:     #FFFFFF;
  --radius:    14px;
  --maxw:      1180px;
  /* Bebas (titres) + Graphik substitué par Inter en attendant la licence */
  --font-head: "Bebas Neue", "Oswald", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0 0 .4em; }
.section-title, .hero h1, .cta-inner h2, .block-title {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: .95;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Couche animation ---------- */
.fries-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.fry { position: absolute; top: -120px; will-change: transform; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.nav a:hover { color: var(--red); }
.nav-cta {
  background: var(--red); color: var(--white) !important;
  padding: 11px 20px; border-radius: 2px;
}
.nav-cta:hover { background: var(--red-deep); color: var(--white) !important; }

/* ---------- Hero (photo frites EKIN, fond sombre) ---------- */
.hero {
  position: relative; z-index: 10; text-align: center; color: var(--white);
  padding: 140px 0 130px;
  background:
    linear-gradient(180deg, rgba(17,17,17,.72) 0%, rgba(17,17,17,.84) 100%),
    url("/wp-content/uploads/2026/10/ekf-hero-leger.webp") center 40% / cover no-repeat;
}
.hero-inner { max-width: 820px; }
.hero-logo { height: clamp(90px, 14vw, 170px); width: auto; margin: 0 auto 26px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); color: var(--white); }
.hero-sub { font-size: 1.2rem; color: rgba(255,255,255,.85); margin: 18px auto 34px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; font-weight: 700; padding: 15px 30px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: .04em; font-size: .92rem;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.hero .btn-ghost { color: var(--white); border-color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-lg { padding: 18px 40px; font-size: 1rem; }

/* ---------- NOS VALEURS (bande sombre) ---------- */
.values {
  position: relative; z-index: 10; color: var(--white);
  background: var(--ink); padding: 90px 0;
  border-left: 14px solid var(--gold);
}
.values .block-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); }
.values .accent { color: var(--red); }
.values p { max-width: 720px; font-size: 1.1rem; color: rgba(255,255,255,.82); }

/* ---------- NOS ENGAGEMENTS (liste numérotée 01–04) ---------- */
.engagements { position: relative; z-index: 10; padding: 88px 0; }
.engagements-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.engagements .block-title { font-size: clamp(2rem, 4vw, 3rem); }
.engagements .lead { color: var(--grey); font-size: 1.05rem; }
.eng-list { display: grid; gap: 26px; }
.eng-item { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: baseline; }
.eng-num { font-family: var(--font-head); font-size: 2.8rem; line-height: 1; color: var(--red); }
.eng-item h3 { font-family: var(--font-head); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; margin: 0 0 4px; }
.eng-item p { margin: 0; color: var(--grey); font-size: .98rem; }

/* ---------- Sections génériques ---------- */
.section { position: relative; z-index: 10; padding: 88px 0; }
.section-alt { background: var(--cream); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); text-align: center; }
.section-lead { text-align: center; color: var(--grey); max-width: 580px; margin: 0 auto 48px; }

/* ---------- Cards catalogue ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card, .post {
  background: var(--white); border-radius: var(--radius); padding: 20px;
  box-shadow: 0 6px 22px rgba(17,17,17,.07); border: 1px solid #f0ece3;
}
.card h3, .post h3 { font-family: var(--font-head); font-weight: 400; font-size: 1.4rem; text-transform: uppercase; }
.card p, .post p { color: var(--grey); font-size: .95rem; margin: 0; }
.card-media {
  height: 170px; border-radius: 10px; margin-bottom: 16px;
  background: #111 center/cover no-repeat;
}
.card-media[data-cat="frites"]  { background-image: url("/wp-content/uploads/2026/10/ekf-cat-frites.webp"); }
.card-media[data-cat="viandes"] { background-image: url("/wp-content/uploads/2026/10/ekf-cat-viandes.webp"); }
.card-media[data-cat="sauces"]  { background-image: url("/wp-content/uploads/2026/10/ekf-cat-sauces.webp"); }
.card-media[data-cat="pains"]   { background-image: url("/wp-content/uploads/2026/10/ekf-cat-pains.webp"); background-color: #fff; }

/* Rangée secondaire des autres familles */
.more-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.more-cat {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid #f0ece3; border-radius: 10px; padding: 10px 14px;
}
.more-cat img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; background: #f3efe6; }
.more-cat span { font-family: var(--font-head); text-transform: uppercase; font-size: 1.1rem; letter-spacing: .02em; }
.post-media { height: 170px; border-radius: 10px; margin-bottom: 14px; background: var(--cream); }
.post-date { font-size: .78rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- CTA devis ---------- */
.cta-band { position: relative; z-index: 10; background: var(--gold); padding: 80px 0; text-align: center; }
.cta-inner h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--ink); }
.cta-inner p { font-size: 1.15rem; margin: 0 0 28px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 10; background: var(--ink); color: rgba(255,255,255,.7); padding: 40px 0; text-align: center; font-size: .9rem; }
.site-footer img { height: 40px; margin: 0 auto 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .more-cats { grid-template-columns: repeat(2, 1fr); }
  .engagements-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .more-cats { grid-template-columns: 1fr; }
}

/* ---------- Footer coordonnées ---------- */
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 4px 0 14px; font-size: .92rem; }
.footer-contact a { color: var(--gold); }

/* ====================================================== */
/* PAGE CATALOGUE                                          */
/* ====================================================== */
.page-hero {
  position: relative; z-index: 10; color: var(--white); text-align: center;
  padding: 90px 0 80px;
  background: linear-gradient(180deg, rgba(17,17,17,.74), rgba(17,17,17,.86)), url("/wp-content/uploads/2026/10/ekf-cat-sauces.webp") center/cover;
}
.page-hero h1 { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--white); margin: 0 0 10px; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto; }

/* Barre de filtres (= Taxonomy Filter Elementor) */
.filters { position: sticky; top: 76px; z-index: 40; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid #eee; }
.filters-inner { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 24px; justify-content: center; }
.filter-btn {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; font-size: 1rem;
  padding: 8px 16px; border-radius: 2px; border: 2px solid #e5e0d6; background: var(--white);
  color: var(--ink); cursor: pointer; transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--red); border-color: var(--red); color: var(--white); }

/* Grille produits (= Loop Builder) */
.catalog { position: relative; z-index: 10; padding: 48px 0 88px; }
.catalog-count { color: var(--grey); font-size: .9rem; margin: 0 0 22px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product {
  background: var(--white); border: 1px solid #f0ece3; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 6px 22px rgba(17,17,17,.06); display: flex; flex-direction: column;
}
/* display:block est indispensable : depuis la 3.13.0 le visuel est un <span>
   glissé dans le lien de la carte, et un <span> reste en ligne — la hauteur et
   l'image de fond étaient ignorées, la photo avait disparu des cartes.
   Le fond crème remplace le noir : un packshot détouré s'y détache, alors
   qu'il disparaissait sur fond sombre. */
.product-media { display: block; height: 170px; background: var(--cream) center/cover no-repeat; }
.product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-fam { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--red); }
.product h3 { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; font-size: 1.25rem; margin: 0; line-height: 1.05; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: var(--cream); color: var(--ink-2); border: 1px solid #ece6da; }
.tag.cold { background: #eaf3fb; border-color: #d4e6f6; color: #1c5a8f; }
.tag.fresh { background: #eef7ec; border-color: #d6ecd2; color: #2e7d32; }
.product-cta { margin-top: 12px; }
.product-cta a { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--red); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { top: 0; }
}
@media (max-width: 540px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ====================================================== */
/* BANDEAU NOUVEAUTÉS (marquee GSAP) — accueil            */
/* ====================================================== */
.news-band { position: relative; z-index: 10; background: var(--ink); color: var(--white); padding: 28px 0; overflow: hidden; }
.news-band-head { display: flex; align-items: center; gap: 14px; max-width: var(--maxw); margin: 0 auto 18px; padding: 0 24px; }
.news-tag { background: var(--red); color: var(--white); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; padding: 6px 14px; font-size: 1.1rem; border-radius: 2px; }
.news-band-head h2 { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; margin: 0; color: var(--white); }
.marquee-viewport { overflow: hidden; }
.marquee { display: flex; gap: 18px; width: max-content; will-change: transform; }
.news-card { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px 20px 12px 12px; width: 300px; flex: none; }
.news-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; background: #222; }
.news-card .nc-fam { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); font-weight: 700; }
.news-card .nc-name { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; font-size: 1.2rem; line-height: 1.05; }
/* fallback statique si reduced-motion : défilement manuel */
.marquee-viewport.is-static { overflow-x: auto; }

/* ====================================================== */
/* PAGE CONTACT / DEVIS                                    */
/* ====================================================== */
.contact { position: relative; z-index: 10; padding: 60px 0 88px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; }
.form-card { background: var(--white); border: 1px solid #f0ece3; border-radius: var(--radius); box-shadow: 0 6px 22px rgba(17,17,17,.06); padding: 32px; }
.form-card h2 { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; font-size: 1.8rem; margin: 0 0 6px; }
.form-card .form-lead { color: var(--grey); margin: 0 0 24px; font-size: .95rem; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd6c8; border-radius: 8px;
  font: inherit; color: var(--ink); background: var(--white); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,0,0,.12);
}
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.check input { width: auto; }
.form-actions { margin-top: 8px; }
.form-note { font-size: .8rem; color: var(--grey); margin: 12px 0 0; }
.form-success {
  display: none; background: #eef7ec; border: 1px solid #cfe8c9; color: #2e7d32;
  border-radius: 10px; padding: 16px 18px; font-weight: 600; margin-bottom: 20px;
}
.form-success.show { display: block; }

.info-card { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 30px; }
.info-card h3 { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; font-size: 1.4rem; margin: 0 0 18px; }
.info-row { display: flex; gap: 12px; margin-bottom: 18px; font-size: .95rem; line-height: 1.5; }
.info-row .ico { color: var(--gold); flex: none; font-size: 1.1rem; }
.info-card a { color: var(--gold); }
.info-hours { border-top: 1px solid rgba(255,255,255,.15); margin-top: 20px; padding-top: 18px; font-size: .9rem; color: rgba(255,255,255,.8); }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
}
