/* =========================================================
   THEME & TOKENS
========================================================= */
:root {
  /* Colors */
  --bg: #f7f3ea;            /* crème doux */
  --paper: #ffffff;
  --ink: #241c15;
  --muted: #6b6b6b;
  --gold: #D4AF37;
  --gold-2: #B8860B;
  --cacao: #5C3A21;

  /* Effects & radii */
  --shadow: 0 8px 28px rgba(0,0,0,.08);
  --radius: 18px;
  --radius-lg: 26px;

  /* Layout */
  --container: clamp(16px, 4vw, 56px);
}

/* =========================================================
   RESET & BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

h1, h2 {
  letter-spacing: .2px;
  font-family: "Playfair Display", serif;
}

.eyebrow {
  font-size: .8rem;
  color: #ffcf5a;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* =========================================================
   LAYOUT
========================================================= */
.container { max-width: 1160px; margin: 0 auto; padding-inline: var(--container); }
section    { padding: 80px 0; }


/* =========================================================
   HEADER
   - Hidden initially (absolute, out of flow)
   - Slides in (is-shown)
   - Becomes sticky when pinned (is-sticky)
   - Optional shrink
========================================================= */
/* initial state when fixed */
.site-header.is-fixed {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);

  /* smoother transition */
  transform: translateY(-20px);
  opacity: 0;

  transition:
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.45s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    padding 0.25s ease;
}

/* visible state */
.site-header.is-fixed.is-shown {
  transform: translateY(0);
  opacity: 1;
}

/* Header content */
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--container);
}

.brand { display: flex; gap: 12px; align-items: center; }
.brand img { height: 46px; width: auto; transition: transform .25s ease; }
.brand:hover img { transform: scale(1.03); }

.menu { display: flex; gap: 28px; align-items: center; }
.menu a {
  position: relative;
  font-weight: 600;
  font-size: .95rem;
}
.menu a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.menu a:hover::after { transform: scaleX(1); }

.cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;

  padding: .65rem 1rem;
  color: #fff;
  font-weight: 700;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.cta:hover { transform: translateY(-1px); }

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  height: 78vh;
  min-height: 520px;
  overflow: hidden;
}

.slides { position: absolute; inset: 0; }

.slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}
.slide.active { opacity: 1; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding-inline: var(--container);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}

.hero h1 {
  margin: 0 0 .8rem;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  background: linear-gradient(90deg, #f4d264, var(--gold-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 1.2rem;
  color: #f7f2e9;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;

  padding: .9rem 1.4rem;
  font-weight: 700;
  border: 1px solid var(--gold);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.btn-ghost   { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }

/* =========================================================
   SERVICES
========================================================= */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(12, 1fr);
}

.service-card {
  grid-column: span 4;
  min-height: 190px;
  display: flex;
  gap: 18px;
  align-items: center;

  padding: 22px;
  color: inherit;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); }

.icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;

  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.icon img { width: 100%; height: 100%; object-fit: cover; }

.service-card h3 {
  margin: 0;
  color: var(--cacao);
  font: 600 1.05rem/1.2 Inter, sans-serif;
}

/* =========================================================
   PRODUCTS
========================================================= */
.section-title { text-align: center; margin-bottom: 32px; }

.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;

  background: var(--paper);
  border: 1px solid rgba(212,175,55,.24);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); }

.product-media {
    aspect-ratio: 4 / 3;
    background: #fff;
    overflow: hidden;
    margin: 0;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }

.product-info { padding: 16px 16px 10px; }
.product-info h4 { margin: 0 0 6px; font-size: 1.05rem; }
.price { color: var(--gold-2); font-weight: 700; }

.product-actions { margin-top: auto; padding: 0 16px 16px; }

.btn-outline {
  width: 100%;
  padding: .6rem 1rem;
  color: var(--gold-2);
  font-weight: 700;

  background: #fff;
  border: 1px solid var(--gold);
  border-radius: 999px;
}
.btn-outline:hover { background: var(--gold); color: #fff; }

/* =========================================================
   DELIVERY
========================================================= */
.delivery {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: center;
  justify-content: center;

  padding: 32px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.delivery img { width: 260px; border-radius: 12px; }
.delivery p   { margin: 0; color: #3b3b3b; }

/* =========================================================
   FOOTER
========================================================= */
footer {
  margin-top: 70px;
  padding: 48px 0;
  color: #eee;
  background: #1e1a17;
}

.f-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.2fr .8fr .8fr;
}

.f-logo { display: flex; gap: 12px; align-items: center; }
.f-logo img { height: 40px; }

.f-links a { display: block; padding: 6px 0; color: #cfcfcf; }

.socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.copy { margin-top: 18px; font-size: .9rem; color: #aaa; }

/* =========================================================
   REVEAL (scroll-in)
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.on {
  opacity: 1;
  transform: none;
}
/* Burger button */
.burger{
  display:none; /* desktop hidden */
  width:42px;height:42px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  background:#fff;
  align-items:center;justify-content:center;
  gap:4px;
  cursor:pointer;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.burger:hover{ transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.burger .bar{
  display:block;width:20px;height:2px;background:#241c15;border-radius:2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger .bar:nth-child(2){ width:16px }

/* Transform to X when open */
.site-header.is-open .burger .bar:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.site-header.is-open .burger .bar:nth-child(2){ opacity:0; }
.site-header.is-open .burger .bar:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel */
@media (max-width: 980px){
  .burger{ display:inline-flex; }

  .menu{
    position: fixed;
    top: 64px; /* under header */
    right: 12px; left: 12px;
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(0,0,0,.14);
    transform-origin: top center;
    transform: translateY(-12px) scaleY(.94);
    opacity: 0;
    pointer-events: none;
    transition: transform .28s cubic-bezier(.25,1,.5,1), opacity .22s ease;
    z-index: 1000;
  }
  /* links */
  .menu a{
    padding: 12px 10px;
    border-radius: 10px;
    font-weight: 700;
  }
  .menu a:hover{ background: rgba(212,175,55,.08); }
  .menu .cta{ justify-content:center; }

  /* visible state */
  .site-header.is-open .menu{
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  /* prevent page scroll when menu open */
  body.nav-open{ overflow: hidden; }

  /* hide desktop inline menu layout */
  .nav{ gap: 12px; }
}

/* Desktop keeps your existing layout; if لازملك: */
@media (min-width: 981px){
  .menu{ display:flex; gap:28px; align-items:center; position:static; transform:none; opacity:1; pointer-events:auto; box-shadow:none; padding:0; border:0; background:transparent; }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px) {

  
  .service-card { grid-column: span 6; }
  .f-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .service-card { grid-column: span 12; }
}
/* =========================================================
   TRAITEUR & ÉVÉNEMENTS
   - يستعمل .section-title و .product-grid / .product-card لي عندك
========================================================= */
#traiteur {
  background: linear-gradient(180deg, rgba(212,175,55,.04), rgba(255,255,255,0));
}
#traiteur .section-title p {
  max-width: 760px;
  margin: 8px auto 0;
  color: var(--muted);
}
#traiteur .product-card {
  border-color: rgba(212,175,55,.28);
}
#traiteur .hero-actions { margin-top: 20px; }
/* Section CTA (best UX) */
#traiteur .section-cta{
  display:flex !important;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:26px;
  z-index:2;
}

#traiteur .section-cta .btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:.85rem 1.4rem;
  border-radius:999px;
  font-weight:700;
  line-height:1;
  user-select:none;
  cursor:pointer;
}

/* Primary & Ghost tuned for beige background */
#traiteur .btn-primary{
  color:#fff;
  background:linear-gradient(90deg,var(--gold),var(--gold-2));
  border:1px solid var(--gold);
  box-shadow:var(--shadow);
  transition:transform .2s ease, box-shadow .2s ease;
}
#traiteur .btn-primary:hover{ transform:translateY(-1px); box-shadow:0 10px 28px rgba(0,0,0,.12) }

#traiteur .btn-ghost{
  background:#fff;
  color:#2b2b2b;
  border:1px solid rgba(0,0,0,.1);
  backdrop-filter:saturate(120%) blur(6px);
}
#traiteur .btn-ghost:hover{ border-color:var(--gold); color:var(--gold-2) }

/* Focus (accessibility) */
#traiteur .btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(212,175,55,.25), 0 0 0 1px var(--gold);
}

/* Mobile layout: full width buttons */
@media (max-width:768px){
  #traiteur .section-cta{ flex-direction:column; align-items:stretch }
  #traiteur .section-cta .btn{ width:100% }
}

/* ------------------------------
   OPTIONAL: Sticky CTA (mobile)
   يظهر غير داخل قسم Traiteur
--------------------------------*/
.cta-sticky{
  position:fixed;
  left:12px; right:12px; bottom:12px;
  display:flex; gap:10px; align-items:center; justify-content:center;
  padding:10px;
  border-radius:16px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(0,0,0,.08);
  backdrop-filter:saturate(120%) blur(10px);
  box-shadow:0 10px 28px rgba(0,0,0,.14);
  transform:translateY(120%);
  opacity:0;
  visibility:hidden;
  transition:transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
  z-index:1100;
}
.cta-sticky.show{
  transform:translateY(0);
  opacity:1;
  visibility:visible;
  transition:transform .25s ease, opacity .25s ease;
}
.cta-sticky .btn{ flex:1 }
.cta-sticky .btn-ghost{ background:#fff; }

/* ما تحتاجهاش فالديسكتوب */
@media (min-width:769px){
  .cta-sticky{ display:none }
}
@media (max-width:769px){
  .product-grid {
     gap: 10px;
     grid-template-columns: repeat(2,1fr);
   }
}
/* =========================================================
   COFFRETS CADEAUX
   - بطاقات بنفس ستيل .product-card مع شارة سعر/هدية
========================================================= */
#coffrets {
  background: var(--paper);
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
#coffrets .product-card {
  position: relative;
  overflow: clip; /* for ribbon */
}

#coffrets .product-card::before {
  content: "Coffret";
  position: absolute;
  top: 12px; left: -36px;
  padding: 6px 46px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: #fff;
  transform: rotate(-12deg);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  border-radius: 999px;
}

/* Price pill inside card */
#coffrets .price {
  display: inline-block;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: rgba(212,175,55,.12);
  color: var(--gold-2);
}

/* =========================================================
   AVIS CLIENTS + INSTAGRAM
========================================================= */
#avis {
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(92,58,33,.03));
}

#avis .grid {
  grid-template-columns: repeat(12, 1fr);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.testimonial-card {
  grid-column: span 4;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.testimonial-card p { margin: 0 0 8px; color: var(--ink); }
.testimonial-card .who { color: var(--muted); font-size: .92rem; }

/* optional stars */
.stars { color: var(--gold-2); letter-spacing: .1em; font-size: 1rem; }

/* Mini IG feed cards (يمكن تستعمل product-card مباشرة) */
.ig-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.ig-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.ig-card:hover { transform: translateY(-4px); }
.ig-card .media { aspect-ratio: 1/1; background: #fff; overflow: hidden; }
.ig-card .media img { width: 100%; height: 100%; object-fit: cover; }
.ig-card .meta { padding: 12px 14px; }
.ig-card .meta h4 { margin: 0 0 4px; font-size: 1rem; }
.ig-card .meta .muted { color: var(--muted); font-size: .9rem; }

/* =========================================================
   QUALITÉ (Engagement)
========================================================= */
#qualite {
  background: var(--paper);
}
#qualite .section-title p {
  max-width: 720px;
  margin: 8px auto 0;
  color: var(--muted);
}

.quality-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}

.quality-card {
  grid-column: span 4;
  display: flex; gap: 16px; align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.quality-card:hover { transform: translateY(-3px); }
.quality-card .q-icon {
  overflow: hidden;
  width: 64px; height: 64px; flex: 0 0 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: white;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.quality-card .q-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.15));
}
.quality-card h3 { margin: 0; font-size: 1.05rem; color: var(--cacao); }
.quality-card p  { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }

/* =========================================================
   UTILS / SPACING
========================================================= */
.section-title .eyebrow + h2 { margin-top: 6px; }
.section-title + .product-grid,
.section-title + .testimonials-grid,
.section-title + .quality-grid,
.section-title + .ig-grid { margin-top: 10px; }

/* CTA row reuse */
.section-cta { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top: 18px; }

/* CONTACT FORM */
.contact-section{
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(212,175,55,.04));
}

.contact-form{
  background: var(--paper);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.contact-form .hp{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }

.form-grid{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(12, 1fr);
}

.form-field{ grid-column: span 6; display:flex; flex-direction:column; gap:6px; }
.form-field.form-span{ grid-column: span 12; }

label{ font-weight:600; font-size:.95rem; color:#3b3b3b; }
.input, .select, textarea.input{
  width:100%;
  padding: .8rem .9rem;
  border-radius: 12px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  font: 500 1rem/1.3 Inter, system-ui, sans-serif;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, textarea.input:focus{
  outline:none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.18);
}

.radio-group{ display:flex; gap:14px; flex-wrap:wrap; }
.radio-group input{ transform: translateY(1px); margin-right:6px; }
.consent{ display:flex; align-items:center; gap:10px; }

.contact-actions{
  display:flex; gap:12px; justify-content:center; flex-wrap:wrap;
  margin-top: 14px;
}

.form-note{
  margin-top:12px;
  text-align:center;
  font-weight:600;
}
.form-note.ok{ color:#1b7f4a; }
.form-note.err{ color:#9a1b1b; }

@media (max-width: 980px){
  .form-field{ grid-column: span 12; }
  .contact-form{ padding: 18px; }
}


/* =========================================================
   RESPONSIVE (sections الجديدة)
========================================================= */
@media (max-width: 980px){
  /* Testimonials → 2 columns */
  .testimonial-card { grid-column: span 6; }

  /* Quality → 2 columns */
  .quality-card { grid-column: span 6; }
}

@media (max-width: 640px){
  /* Traiteur paragraph width */
  #traiteur .section-title p,
  #qualite .section-title p { padding-inline: 6px; }

  /* Testimonials → 1 column */
  .testimonial-card { grid-column: span 12; }

  /* Quality → 1 column */
  .quality-card { grid-column: span 12; }

  /* IG cards min size */
  .ig-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
