/* Chez Isabelle Boulangerie — Oran
   Palette: cream / butter / chocolat / sage
*/
:root {
  --cream: #fbf6ec;
  --cream-2: #f3ebd9;
  --butter: #f1d9a8;
  --butter-deep: #d9b873;
  --chocolat: #3a221a;
  --chocolat-2: #5a3d31;
  --sage: #6b8c7c;
  --sage-deep: #4f6e60;
  --ink: #2b1d18;
  --muted: #7a6a60;
  --line: #e8dec9;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(58, 34, 26, 0.08);
  --shadow-lg: 0 14px 40px rgba(58, 34, 26, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-arabic: "Cairo", "IBM Plex Sans Arabic", "Noto Sans Arabic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
body[dir="rtl"] { font-family: var(--font-arabic), var(--font-body); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* ======= Header ======= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--chocolat); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 22px; letter-spacing: -1px;
}
.brand-name {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 24px; color: var(--chocolat); letter-spacing: 0.3px;
}
.brand-tagline {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}

.nav-toggle { display: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 15px; color: var(--chocolat-2); font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--butter-deep); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--chocolat); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px; background: var(--white);
  font-size: 13px;
}
.lang-toggle button {
  padding: 4px 10px; border-radius: 999px;
  font-weight: 600; color: var(--muted);
  font-size: 13px; min-width: 32px;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--chocolat); color: var(--cream);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: 8px;
    background: transparent; color: var(--chocolat);
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle span::before, .nav-toggle span::after {
    content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  }
  .nav-toggle span::before { top: -7px; }
  .nav-toggle span::after { top: 7px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav[data-open="true"] { max-height: 500px; padding: 16px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav a:last-of-type { border-bottom: none; }
  .nav .lang-toggle { margin-top: 8px; align-self: flex-start; }
}

/* ======= Hero ======= */
.hero {
  position: relative; min-height: 78vh;
  display: grid; place-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(58,34,26,0.55), rgba(58,34,26,0.30) 60%, rgba(58,34,26,0.65)),
              url('../images/hero-vitrine-pains-baguettes.jpg') center/cover no-repeat;
  color: var(--cream);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% 30%, rgba(241, 217, 168, 0.15), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--butter); padding: 6px 14px; border: 1px solid rgba(241, 217, 168, 0.5);
  border-radius: 999px; margin-bottom: 24px; backdrop-filter: blur(4px);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05; letter-spacing: -0.5px;
  margin-bottom: 18px;
  font-style: italic;
}
.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(251, 246, 236, 0.92);
  max-width: 580px; margin: 0 auto 36px;
}
.hero .cta-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer; line-height: 1;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary { background: var(--butter); color: var(--chocolat); }
.btn-primary:hover { background: var(--butter-deep); }
.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1.5px solid rgba(251, 246, 236, 0.6);
}
.btn-ghost:hover { background: rgba(251, 246, 236, 0.12); border-color: var(--cream); }
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #1ebe57; }
.btn-dark { background: var(--chocolat); color: var(--cream); }
.btn-dark:hover { background: var(--chocolat-2); }
.btn-outline {
  background: transparent; color: var(--chocolat);
  border: 1.5px solid var(--chocolat);
}
.btn-outline:hover { background: var(--chocolat); color: var(--cream); }

/* ======= Sections ======= */
section { padding: 80px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.section-eyebrow {
  display: block; font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--sage-deep);
  margin-bottom: 14px; font-weight: 600;
}
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1;
  color: var(--chocolat); letter-spacing: -0.3px;
  margin-bottom: 16px; font-style: italic;
}
.section-lead {
  font-size: 17px; color: var(--chocolat-2);
  max-width: 640px; margin-bottom: 48px;
}

/* Pillars (3-column features) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar {
  padding: 32px 28px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--cream-2); display: grid; place-items: center;
  margin-bottom: 18px; font-size: 24px;
}
.pillar h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.5rem; color: var(--chocolat); margin-bottom: 8px;
  font-style: italic;
}
.pillar p { color: var(--chocolat-2); font-size: 15px; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }

/* Cards grid (menu, services) */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4/3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px 22px 24px; }
.card-tag {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 600;
}
.card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.4rem; margin: 6px 0 6px; color: var(--chocolat);
  font-style: italic;
}
.card p { color: var(--chocolat-2); font-size: 14.5px; line-height: 1.55; }

/* Two-column layout */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
}
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } .split-img { aspect-ratio: 4/3; max-height: 420px; } }

/* Menu page */
.menu-section { margin-bottom: 56px; }
.menu-section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.75rem; color: var(--chocolat);
  border-bottom: 2px solid var(--butter); padding-bottom: 10px;
  margin-bottom: 28px; font-style: italic; display: flex; align-items: baseline; gap: 14px;
}
.menu-section-title small { font-size: 13px; color: var(--muted); font-style: normal; letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-body); }
.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
@media (max-width: 720px) { .menu-list { grid-template-columns: 1fr; } }
.menu-item {
  display: flex; gap: 20px; padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.menu-item-name {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.15rem; color: var(--chocolat); font-weight: 500;
}
.menu-item-desc { font-size: 14px; color: var(--muted); margin-top: 4px; }
.menu-item-info { flex: 1; }
.menu-item-price { font-family: var(--font-display); font-weight: 600; color: var(--sage-deep); font-size: 1rem; white-space: nowrap; }

/* Gallery */
.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery a, .gallery .gal-item {
  display: block; aspect-ratio: 1/1; overflow: hidden;
  border-radius: var(--radius-sm); position: relative;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img, .gallery .gal-item:hover img { transform: scale(1.05); }

.expo-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  display: flex; gap: 20px; align-items: flex-start;
}
.expo-date {
  background: var(--cream-2); padding: 12px 14px; border-radius: var(--radius-sm);
  text-align: center; min-width: 76px; font-family: var(--font-display); font-style: italic;
}
.expo-date .day { font-size: 1.6rem; line-height: 1; color: var(--chocolat); display: block; }
.expo-date .month { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--sage-deep); margin-top: 6px; display: block; font-style: normal; font-family: var(--font-body); font-weight: 600; }
.expo-info h3 { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.3rem; color: var(--chocolat); margin-bottom: 4px; }
.expo-info p { color: var(--chocolat-2); font-size: 14.5px; }

/* Testimonials */
.testimonials {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.testimonial {
  background: var(--white); padding: 28px 26px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.testimonial-quote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.1rem; color: var(--chocolat); line-height: 1.5;
  margin-bottom: 18px; position: relative;
}
.testimonial-quote::before {
  content: '"'; position: absolute; top: -20px; left: -10px;
  font-size: 4rem; color: var(--butter); line-height: 1; font-family: var(--font-display);
}
.testimonial-source {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.testimonial-source .name { font-weight: 600; color: var(--chocolat-2); font-size: 14px; }
.testimonial-source .meta { font-size: 12.5px; color: var(--muted); }
.stars { color: var(--butter-deep); letter-spacing: 1px; font-size: 14px; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 600px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--chocolat-2); font-weight: 600; letter-spacing: 0.3px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--butter-deep);
  box-shadow: 0 0 0 4px rgba(217, 184, 115, 0.18);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* Info blocks (contact page) */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.info-block {
  background: var(--white); padding: 26px 24px;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.info-block h4 {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.2rem; color: var(--chocolat); margin-bottom: 8px;
}
.info-block p, .info-block a { color: var(--chocolat-2); font-size: 15px; line-height: 1.6; }
.info-block a:hover { color: var(--sage-deep); }

.map-wrap {
  margin-top: 40px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--chocolat) 0%, var(--chocolat-2) 100%);
  color: var(--cream); padding: 64px 40px;
  border-radius: var(--radius); text-align: center;
  margin: 80px auto;
}
.cta-banner h2 {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px;
}
.cta-banner p { font-size: 16px; color: rgba(251, 246, 236, 0.85); max-width: 540px; margin: 0 auto 28px; }
.cta-banner .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: var(--chocolat); color: var(--cream-2);
  padding: 64px 0 28px; margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand p { color: rgba(251, 246, 236, 0.7); font-size: 14.5px; margin-top: 14px; max-width: 340px; }
.footer-col h5 {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.1rem; margin-bottom: 16px; color: var(--cream);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col p { color: rgba(251, 246, 236, 0.75); font-size: 14.5px; }
.footer-col a:hover { color: var(--butter); }
.social-row { display: flex; gap: 12px; margin-top: 4px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(251, 246, 236, 0.08);
  transition: background 0.2s ease;
}
.social-row a:hover { background: rgba(241, 217, 168, 0.2); }
.footer-bottom {
  border-top: 1px solid rgba(251, 246, 236, 0.15);
  padding-top: 22px; display: flex; justify-content: space-between;
  font-size: 13px; color: rgba(251, 246, 236, 0.6); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--butter); }

/* Sticky mobile CTAs */
.fab-stack {
  position: fixed; bottom: 24px;
  inset-inline-end: 22px;
  display: flex; flex-direction: column; gap: 10px; z-index: 40;
}
.fab {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
}
.fab:hover { transform: scale(1.07); }
.fab-wa { background: #25D366; color: white; }
.fab-tel { background: var(--chocolat); color: var(--cream); }
.fab svg { width: 24px; height: 24px; }

/* Page header (subpage hero) */
.page-header {
  padding: 130px 0 60px;
  background: linear-gradient(180deg, var(--cream-2), var(--cream));
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--chocolat);
  letter-spacing: -0.3px; line-height: 1.05;
}
.page-header .breadcrumb {
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--sage-deep); margin-bottom: 16px; font-weight: 600;
}
.page-header p.lead { font-size: 17px; color: var(--chocolat-2); max-width: 640px; margin-top: 14px; }

/* Highlight box (on contact / order) */
.highlight {
  border-left: 3px solid var(--butter);
  padding: 14px 18px; background: var(--cream-2);
  border-radius: 6px; font-size: 14.5px; color: var(--chocolat-2);
  margin-bottom: 18px;
}
body[dir="rtl"] .highlight { border-left: none; border-right: 3px solid var(--butter); }

/* RTL adjustments */
body[dir="rtl"] .nav a::after { transform-origin: right; }
body[dir="rtl"] .testimonial-quote::before { left: auto; right: -10px; }
body[dir="rtl"] .fab-stack { inset-inline-start: 22px; inset-inline-end: auto; }

/* Helpers */
.hide-mobile { display: block; }
.show-mobile { display: none; }
@media (max-width: 720px) {
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
}

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
