/* =========================================================
   Ougot — Pâtisserie sur mesure
   Palette : crème / vert forêt · Serif Cormorant + sans Jost
   ========================================================= */

:root {
  --cream:        #f7f2ea;
  --cream-soft:   #faf6ef;
  --cream-deep:   #efe6d8;
  --green:        #3b473e;
  --green-dark:   #2f382f;
  --green-soft:   #58685a;
  --ink:          #2b2b28;
  --muted:        #6f6a61;
  --line:         #e3d9c8;
  --gold:         #b08b5a;
  --white:        #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --radius: 4px;
  --shadow-sm: 0 2px 14px rgba(43, 43, 40, .06);
  --shadow-md: 0 18px 44px rgba(43, 43, 40, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: .2px;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .95rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--cream-soft); }
.btn-primary:hover { background: var(--green-dark); }
.btn-dark { background: var(--green); color: var(--cream-soft); }
.btn-dark:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-light { background: var(--cream-soft); color: var(--green-dark); }
.btn-light:hover { background: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 234, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: .5px;
  line-height: 1;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink);
  padding: .35rem 0;
  position: relative;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--green);
  transition: width .28s var(--ease);
}
.primary-nav a:hover,
.primary-nav a.is-active { color: var(--green); }
.primary-nav a:hover::after,
.primary-nav a.is-active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(176,139,90,.10), transparent 55%),
    linear-gradient(180deg, var(--cream-soft), var(--cream));
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  margin: 0 0 1.4rem;
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  z-index: -1;
}

/* ---------- Section heads ---------- */
.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.2rem, 4vw, 3.4rem);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  margin-bottom: 1rem;
}
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Services / cards ---------- */
.services { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-media { overflow: hidden; }
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.8rem 1.7rem 2rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body h3 { font-size: 1.7rem; }
.card-body p { color: var(--muted); margin: 0; flex: 1; }
.card-body .btn { align-self: flex-start; margin-top: 1.2rem; }

/* ---------- Menu : gâteaux ---------- */
.menu { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
.cake {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cake:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cake-media { overflow: hidden; background: var(--cream-deep); }
.cake-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: transform .6s var(--ease);
}
.cake:hover .cake-media img { transform: scale(1.03); }
.cake-body { padding: 1.4rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.cake-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.cake-head h3 { font-size: 1.55rem; }
.price {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}
.serves {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold);
  margin: 0;
}
.cake-desc { color: var(--muted); margin: .5rem 0 0; font-size: .95rem; }
.menu-note { text-align: center; color: var(--muted); font-style: italic; margin: 2.4rem 0 1.4rem; }
.menu-cta { text-align: center; }

/* ---------- Signature : features ---------- */
.signature { background: var(--cream-deep); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.feature:first-of-type { margin-top: 0; }
.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}
.feature--reverse .feature-media { order: 2; }
.feature-text h3 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
.feature-text p { color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem .8rem; }
.feature-list li {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green);
  background: rgba(59, 71, 62, .08);
  border-radius: 999px;
  padding: .35rem .9rem;
}
.feature-price { margin: 0 0 1.4rem; }
.feature-price span {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green);
}
.tiers { display: grid; gap: .6rem; margin: 1.4rem 0 1.8rem; max-width: 340px; }
.tier {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px dashed var(--line);
}
.tier-serves { color: var(--muted); font-size: .95rem; }
.tier-price { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--green); }

/* ---------- Platters & buffets ---------- */
.platters { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.subhead { font-size: 1.7rem; margin: 0 0 1.4rem; }
.pastry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
  margin-bottom: clamp(2.4rem, 5vw, 3.5rem);
}
.pastry {
  margin: 0;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pastry:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pastry img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.pastry:hover img { transform: scale(1.05); }
.pastry figcaption {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  text-align: center;
  padding: .85rem .8rem 1rem;
  line-height: 1.25;
}
.platter-showcase { margin-bottom: clamp(2rem, 4vw, 3rem); text-align: center; }
.platter-showcase img {
  max-width: 100%;
  max-height: 620px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}
.platters-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.pastry-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.pastry-chips li {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .9rem;
  color: var(--ink);
}
.platter-pricing { max-width: 460px; }
.pricing-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .6rem 1.4rem;
  margin-bottom: 1.1rem;
}
.pricing-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row span { color: var(--ink); display: flex; flex-direction: column; }
.pricing-row span em { font-style: normal; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.pricing-row strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--green); white-space: nowrap; }
.pricing-note { font-size: .88rem; color: var(--muted); margin-bottom: 1.4rem; }

.platter-sub { font-size: .95rem; color: var(--muted); margin: -0.6rem 0 1.2rem; }
.platter-pareve { font-size: .9rem; color: var(--green); margin-top: 1.2rem; }
.platter-pareve strong { color: var(--green); }

/* Notice délai / livraison / cacherout */
.lead-notice {
  margin: 1.6rem auto 0;
  max-width: 760px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .7rem 1.4rem;
  font-size: .9rem;
  color: var(--ink);
  text-align: center;
}
.lead-notice strong { color: var(--green); }

/* Layer cake : note personnalisation */
.feature-custom {
  margin-top: 1.4rem;
  font-size: .92rem;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}
.feature-custom a { color: var(--green); text-decoration: underline; }

.buffet-section {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.buffet-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(.8rem, 2vw, 1.4rem);
}
.buffet-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}
.buffet {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  border-radius: 8px;
  color: var(--cream-soft);
  padding: clamp(2.4rem, 5vw, 3.4rem);
}
.buffet-inner { max-width: 640px; }
.buffet h3 { color: var(--cream-soft); font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
.buffet p { color: rgba(247, 242, 234, .85); }
.buffet-meta { font-size: .9rem; color: rgba(247, 242, 234, .7); margin-bottom: 1.6rem; }

/* ---------- About ---------- */
.about {
  background: var(--cream-deep);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}
.about-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1.2rem; }
.about-text p { color: var(--muted); }
.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
}
.about-highlights li { display: flex; flex-direction: column; }
.about-highlights strong {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--green);
  line-height: 1.1;
}
.about-highlights span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}

/* ---------- Testimonial ---------- */
.testimonial {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  text-align: center;
}
.testimonial blockquote { margin: 0; max-width: 820px; margin-inline: auto; }
.testimonial blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.testimonial footer {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .8rem;
  color: var(--gold);
}

/* ---------- CTA ---------- */
.cta {
  background:
    linear-gradient(180deg, var(--green), var(--green-dark));
  color: var(--cream-soft);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.cta-inner { max-width: 640px; margin-inline: auto; text-align: center; }
.cta-inner h2 { color: var(--cream-soft); font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1.1rem; }
.cta-inner p { color: rgba(247, 242, 234, .82); margin-bottom: 2rem; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 3rem 1.4rem 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green); }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--green);
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 3rem 1.5rem 0; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ---------- Instagram ---------- */
.instagram {
  background: var(--cream-deep);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.8rem, 2vw, 1.4rem);
}
.insta-tile {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.insta-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.insta-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(59, 71, 62, 0);
  transition: background .35s var(--ease);
}
.insta-tile:hover img { transform: scale(1.08); }
.insta-tile:hover::after { background: rgba(59, 71, 62, .18); }
.insta-cta { text-align: center; margin-top: 2.4rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(247, 242, 234, .82);
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2.4rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(247, 242, 234, .14);
}
.brand--footer .brand-name { color: var(--cream-soft); }
.brand--footer .brand-mark { filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { margin-top: .9rem; max-width: 28ch; }
.footer-col h3 {
  font-family: var(--sans);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 500;
  color: var(--cream-soft);
  margin-bottom: 1.1rem;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-list a { transition: color .2s var(--ease); }
.footer-list a:hover { color: var(--cream-soft); }
.footer-form { display: grid; gap: .8rem; }
.footer-form input,
.footer-form select,
.footer-form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(247, 242, 234, .22);
  background: rgba(247, 242, 234, .06);
  color: var(--cream-soft);
  font-family: var(--sans);
  font-size: .9rem;
}
.footer-form textarea { resize: vertical; min-height: 3.4rem; }
.footer-form select { appearance: none; cursor: pointer; }
.footer-form select option { color: #2b2b28; }
.footer-form input::placeholder,
.footer-form textarea::placeholder { color: rgba(247, 242, 234, .55); }
.footer-form input:focus,
.footer-form select:focus,
.footer-form textarea:focus { outline: none; border-color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  padding-top: 1.6rem;
  font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.footer-legal a:hover { color: var(--cream-soft); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 480px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature, .feature--reverse { grid-template-columns: 1fr; }
  .feature-media, .feature--reverse .feature-media { order: -1; max-width: 520px; }
  .pastry-grid { grid-template-columns: repeat(3, 1fr); }
  .platters-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--cream-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .primary-nav.is-open { max-height: 70vh; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 24px 1.2rem;
  }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav li:last-child { border-bottom: none; }
  .primary-nav a { display: block; padding: 1rem 0; font-size: .95rem; }
  .primary-nav a::after { display: none; }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .pastry-grid { grid-template-columns: repeat(2, 1fr); }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-media::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =========================================================
   Boutique : panier & commande
   ========================================================= */
.header-actions { display: flex; align-items: center; gap: .4rem; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  color: var(--ink);
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cart-btn:hover { background: rgba(59,71,62,.08); color: var(--green); }
.cart-count {
  position: absolute; top: 3px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--gold); color: #fff;
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

.btn-sm { padding: .5rem .9rem; font-size: .68rem; }

/* Add-to-cart in cake cards */
.cake-body .add-to-cart { align-self: flex-start; margin-top: 1.1rem; }
.add-to-cart.added { background: var(--gold); }

/* Layer cake tiers: make room for the button */
.tier { flex-wrap: wrap; }
.tier .add-to-cart { margin-left: auto; }

/* Overlay */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(43,43,40,.5);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0; transition: opacity .3s var(--ease);
}
.cart-overlay.is-open { opacity: 1; }

/* Drawer */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--cream-soft);
  z-index: 100;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  box-shadow: -12px 0 40px rgba(43,43,40,.18);
}
.cart-drawer.is-open { transform: none; }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-head h2 { font-size: 1.6rem; }
.cart-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.9rem; line-height: 1; color: var(--muted);
  width: 40px; height: 40px; border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cart-close:hover { background: rgba(59,71,62,.08); color: var(--ink); }
.cart-body { padding: 1.3rem 1.5rem 1.6rem; overflow-y: auto; flex: 1; }

/* Cart items */
.cart-items { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .9rem; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .2rem .8rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.cart-item h4 { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin: 0; }
.cart-item .ci-serves { grid-column: 1; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.cart-item .ci-price { font-family: var(--serif); font-size: 1.2rem; color: var(--green); font-weight: 600; text-align: right; }
.cart-qty { grid-column: 1; display: inline-flex; align-items: center; gap: .5rem; margin-top: .35rem; }
.cart-qty button {
  width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  font-size: 1rem; line-height: 1; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-qty button:hover { border-color: var(--green); color: var(--green); }
.cart-qty span { min-width: 20px; text-align: center; font-weight: 500; }
.ci-remove { grid-column: 2; align-self: end; background: none; border: none; color: var(--muted); cursor: pointer; font-size: .78rem; text-decoration: underline; padding: 0; }
.ci-remove:hover { color: #a33; }

.cart-empty { color: var(--muted); text-align: center; padding: 2rem 0; }
.cart-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 1rem 0; margin-top: .4rem;
  border-top: 2px solid var(--line);
  font-size: 1.05rem;
}
.cart-total strong { font-family: var(--serif); font-size: 1.7rem; color: var(--green); }
.cart-note { font-size: .78rem; color: var(--muted); margin: .8rem 0 0; text-align: center; }

/* Checkout form */
.checkout-form { display: grid; gap: .9rem; }
.checkout-back, .checkout-close-done {
  justify-self: start; background: none; border: none; cursor: pointer;
  color: var(--green); font-family: var(--sans); font-size: .85rem; padding: 0;
}
.checkout-back:hover { text-decoration: underline; }
.checkout-form h3, .checkout-done h3 { font-size: 1.4rem; }
.checkout-form label { display: grid; gap: .35rem; font-size: .82rem; color: var(--muted); font-weight: 500; }
.checkout-form input,
.checkout-form textarea {
  width: 100%; padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); font-family: var(--sans); font-size: .95rem; color: var(--ink);
}
.checkout-form input:focus,
.checkout-form textarea:focus { outline: none; border-color: var(--green); }
.mode-choice { border: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.mode-choice legend { font-size: .82rem; color: var(--muted); font-weight: 500; padding: 0; margin-bottom: .1rem; }
.mode-choice .radio { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--ink); font-weight: 400; }
.mode-choice .radio input { width: auto; margin: 0; }
.checkout-summary {
  background: var(--cream-deep); border-radius: var(--radius);
  padding: .9rem 1rem; font-size: .88rem; color: var(--ink);
}
.checkout-summary .cs-line { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; }
.checkout-summary .cs-total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .5rem; font-weight: 600; }

/* Confirmation */
.checkout-done { text-align: center; padding: 1.5rem 0; }
.check-ico {
  width: 64px; height: 64px; margin: 0 auto 1.1rem;
  border-radius: 999px; background: var(--green); color: var(--cream-soft);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.checkout-done p { color: var(--muted); margin-bottom: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-overlay { transition: none; }
}

.order-ref {
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--green);
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: .6rem 1rem;
  margin: 0 0 1.2rem;
  display: inline-block;
}
.checkout-done .btn + .btn { margin-top: .7rem; }

/* ---------- Options gâteau (taille + pareve/halavi) ---------- */
.cake-options { margin-top: 1rem; display: grid; gap: .6rem; }
.opt-group { display: flex; flex-wrap: wrap; gap: .4rem; }
.opt-group .opt {
  cursor: pointer;
  font-family: var(--sans);
  font-size: .82rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream-soft);
  color: var(--ink);
  transition: all .18s var(--ease);
  white-space: nowrap;
}
.opt-group .opt:hover { border-color: var(--gold); }
.opt-group .opt.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream-soft);
}
.opt-kind .opt.is-active { background: var(--gold); border-color: var(--gold); }

/* ---------- Paiement en ligne (Stripe) ---------- */
.cake-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.1rem; align-items: flex-start; }
.cake-actions .btn { margin-top: 0; }
.btn-pay { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-pay:hover { background: #9a7748; border-color: #9a7748; }
.cake-pay.is-soon { background: var(--cream-deep); color: var(--muted); border-color: var(--line); cursor: default; pointer-events: none; }

/* Rappel du délai de 6 jours */
.cake-delay { margin: 1.1rem 0 0; font-size: .82rem; color: var(--green); display: flex; align-items: center; gap: .3rem; }
.cake-delay strong { color: var(--green); }
.cart-delay {
  margin: 0 0 1rem; padding: .7rem .9rem; border-radius: var(--radius);
  background: rgba(176, 139, 90, .12); border: 1px solid rgba(176, 139, 90, .3);
  font-size: .85rem; color: var(--ink); text-align: center;
}
.cart-delay strong { color: var(--green); }

/* Layer cake : actions par palier (payer + ajouter) */
.tier-actions { margin-left: auto; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tier-actions .add-to-cart { margin-left: 0; }

/* Devis rapide (pied de page) */
.footer-devis-text { font-size: .85rem; color: rgba(247,242,234,.7); margin: 0 0 .8rem; }
.footer-devis-msg { font-size: .85rem; margin: .8rem 0 0; line-height: 1.5; }

/* Panier : action de paiement par article */
.ci-pay { grid-column: 1; justify-self: start; margin-top: .5rem; }
.ci-devis { grid-column: 1; margin-top: .5rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
