/*
  Les Delices de Prunelle Restaurant
  Custom styles built on top of Bootstrap 5.
*/

:root {
  --color-primary: #23823c;
  --color-primary-dark: #155f2d;
  --color-primary-soft: #e9f6ed;
  --color-accent: #c9632b;
  --color-accent-dark: #9c441b;
  --color-gold: #f4bd45;
  --color-cream: #fffaf1;
  --color-soft: #f7fbf5;
  --color-ink: #1e2a23;
  --color-muted: #657266;
  --color-border: #dfebdf;
  --color-white: #ffffff;
  --shadow-sm: 0 10px 28px rgba(30, 42, 35, 0.08);
  --shadow-md: 0 18px 42px rgba(30, 42, 35, 0.12);
  --radius: 8px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

:focus-visible {
  outline: 3px solid rgba(244, 189, 69, 0.9);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 1100;
  padding: 0.65rem 1rem;
  color: var(--color-ink);
  background: var(--color-gold);
  border-radius: var(--radius);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.navbar {
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(223, 235, 223, 0.92);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  color: var(--color-ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
}

.brand-name {
  display: block;
  line-height: 1.15;
}

.brand-tagline {
  display: block;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.nav-link {
  color: var(--color-ink);
  font-weight: 650;
  border-radius: var(--radius);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
}

.navbar-toggler {
  border-color: var(--color-border);
}

.btn {
  border-radius: var(--radius);
  font-weight: 750;
}

.btn-prunelle {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 10px 24px rgba(35, 130, 60, 0.2);
}

.btn-prunelle:hover,
.btn-prunelle:focus {
  color: var(--color-white);
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-outline-prunelle {
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--color-primary);
}

.btn-outline-prunelle:hover,
.btn-outline-prunelle:focus {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-whatsapp {
  color: var(--color-white);
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  color: var(--color-white);
  background: #169f49;
  border-color: #169f49;
}

.hero-home {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(100deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 250, 241, 0.5) 46%, rgba(255, 255, 255, 0.08) 78%),
    url("../images/hero-cuisine-prunelle.webp");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero-content {
  max-width: 720px;
  padding: 7rem 0 5rem;
}

.hero-title,
.page-title {
  position: relative;
  margin: 0;
  color: var(--color-ink);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(255, 255, 255, 0.6);
}

.hero-title {
  font-size: 3.5rem;
}

.page-title {
  font-size: 2.85rem;
}

.hero-title::after,
.page-title::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 1.15rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  border-radius: 999px;
}

.hero-subtitle,
.page-subtitle {
  color: #47564a;
  font-size: 1rem;
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.75);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-badges,
.contact-list,
.clean-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  color: var(--color-primary-dark);
  background: rgba(233, 246, 237, 0.9);
  border: 1px solid rgba(35, 130, 60, 0.12);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 750;
}

.section {
  padding: 6rem 0;
}

.section-sm {
  padding: 4rem 0;
}

.section-soft {
  background: var(--color-soft);
}

.section-cream {
  background: var(--color-cream);
}

.section-kicker {
  margin-bottom: 0.7rem;
  color: var(--color-accent-dark);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-home .section-kicker,
.page-hero .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(35, 130, 60, 0.18);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero-home .section-kicker::before,
.page-hero .section-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--color-accent);
  border-radius: 50%;
}

.section-title {
  margin-bottom: 1rem;
  color: var(--color-ink);
  font-size: 2rem;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead-muted {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.page-hero {
  position: relative;
  padding: 7.5rem 0 5.5rem;
  background-image:
    linear-gradient(100deg, rgba(255, 250, 241, 0.9) 0%, rgba(255, 255, 255, 0.58) 52%, rgba(255, 255, 255, 0.15) 100%),
    url("../images/hero-cuisine-prunelle.webp");
  background-position: center;
  background-size: cover;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item.active {
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.8);
}

.breadcrumb {
  --bs-breadcrumb-divider-color: var(--color-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.logo-feature {
  max-width: 320px;
  padding: 1.1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card,
.feature-card,
.service-card,
.article-card,
.testimonial-card,
.contact-card,
.value-card,
.step-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature-card,
.testimonial-card,
.contact-card,
.value-card,
.step-card {
  height: 100%;
  padding: 1.5rem;
  background: var(--color-white);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.service-card,
.article-card {
  height: 100%;
  overflow: hidden;
  background: var(--color-white);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.feature-card:hover,
.service-card:hover,
.article-card:hover,
.testimonial-card:hover,
.contact-card:hover,
.value-card:hover,
.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(35, 130, 60, 0.32);
  box-shadow: var(--shadow-md);
}

.service-card img,
.article-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.article-card img {
  height: 210px;
}

.card-body {
  padding: 1.35rem;
}

.icon-badge {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  border-radius: 50%;
  font-size: 1.35rem;
}

.icon-badge.accent {
  color: var(--color-accent-dark);
  background: #fff0e7;
}

.category-time {
  color: var(--color-primary-dark);
  font-weight: 800;
}

.stats-band {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary-dark), #2b7d3c 56%, var(--color-accent-dark));
}

.stat-item {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.86);
}

.step-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 50%;
  font-weight: 850;
}

.quote-mark {
  color: var(--color-gold);
  font-size: 2rem;
  line-height: 1;
}

.cta-band {
  color: var(--color-white);
  background:
    linear-gradient(90deg, rgba(21, 95, 45, 0.96), rgba(35, 130, 60, 0.88)),
    url("../images/hero-cuisine-prunelle.webp");
  background-position: center;
  background-size: cover;
}

.cta-band .lead,
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
}

.menu-list li,
.contact-list li,
.clean-list li {
  margin-bottom: 0.75rem;
}

.menu-list i,
.contact-list i,
.clean-list i {
  color: var(--color-primary);
}

.service-list {
  padding-left: 1.1rem;
  margin-bottom: 1.25rem;
}

.service-list li {
  margin-bottom: 0.45rem;
}

.filter-panel {
  padding: 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.category-button {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-ink);
}

.category-button.active,
.category-button:hover {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.form-control,
.form-select {
  min-height: 48px;
  border-color: var(--color-border);
  border-radius: var(--radius);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.25rem rgba(35, 130, 60, 0.16);
}

.map-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
  font-weight: 700;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.article-meta-row i {
  color: var(--color-accent-dark);
  margin-right: 0.35rem;
}

.article-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  transform: translateY(0);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
  animation: fadeInUp 0.8s ease forwards;
}

.article-cover:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 48px rgba(30, 42, 35, 0.18);
  filter: saturate(1.05);
}

.article-gallery {
  perspective: 1200px;
}

.article-gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
}

.article-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateY(16px);
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
  animation: fadeInUp 0.75s ease forwards;
}

.article-gallery-item:hover .article-gallery-img {
  transform: scale(1.03);
  box-shadow: 0 18px 38px rgba(30, 42, 35, 0.16);
  filter: saturate(1.08) brightness(1.02);
}

.article-gallery-img {
  animation-delay: 0.12s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-content {
  max-width: 780px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-ink);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.9rem;
  color: var(--color-ink);
  font-weight: 800;
}

.article-content p {
  margin-bottom: 1.1rem;
}

.article-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.1rem;
  padding-left: 1.4rem;
}

.article-content a {
  font-weight: 700;
  text-decoration: underline;
}

.site-footer {
  color: rgba(255, 255, 255, 0.86);
  background: #13231a;
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .footer-brand {
  color: var(--color-white);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
  color: var(--color-gold);
}

.footer-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--color-white);
}

.footer-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-list li {
  margin-bottom: 0.55rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.35rem;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.social-link:hover {
  color: #13231a;
  background: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: var(--color-primary);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.back-to-top.is-visible {
  display: inline-flex;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
  }

  .hero-home {
    min-height: auto;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 241, 0.72)),
      url("../images/hero-cuisine-prunelle.webp");
  }

  .hero-content {
    max-width: 100%;
    padding: 5rem 0 4rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .page-title {
    font-size: 2.7rem;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (max-width: 575.98px) {
  :root {
    --header-height: 72px;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .brand-tagline {
    display: none;
  }

  .hero-title {
    font-size: 2.45rem;
  }

  .page-title {
    font-size: 2.25rem;
  }

  .hero-actions .btn,
  .cta-band .btn {
    width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-hero {
    padding: 5.5rem 0 4rem;
  }

  .service-card img,
  .article-card img {
    height: 205px;
  }
}
